@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --nav: #242528;
  --nav-2: #303134;
  --nav-text: #f5f5f4;
  --muted-nav: #b8b9bb;
  --line: #e0e1e4;
  --line-soft: #eff0f2;
  --text: #202124;
  --muted: #68707d;
  --soft: #f8f8f7;
  --panel: #ffffff;
  --accent: #ef6558;
  --accent-dark: #da5147;
  --violet: #8b7cf6;
  --cyan: #54c2d2;
  --green: #5aaa8d;
  --pink: #ee8bd0;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Lato", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font-family: "Lato", sans-serif;
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background: #f7f7f5;
}

.auth-panel {
  width: min(430px, 100%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--nav);
  color: #fff;
  font-weight: 900;
}

.auth-brand h1,
.auth-brand p,
.auth-card h2,
.auth-card p {
  margin: 0;
}

.auth-brand h1 {
  font-size: 22px;
  font-weight: 900;
}

.auth-brand p,
.auth-card p {
  color: var(--muted);
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.auth-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.auth-card .primary-btn {
  width: 100%;
}

.auth-switch {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
}

.auth-message,
.auth-loading {
  padding: 11px 12px;
  border-radius: 7px;
  background: #fff4e8;
  color: #8b4a00;
  font-weight: 700;
}

.ui-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--nav);
  color: var(--nav-text);
}

.side-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hamburger {
  width: 30px;
  height: 30px;
  border: 0;
  color: var(--nav-text);
  background: transparent;
  font-size: 20px;
}

.create-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0 14px;
  font-size: 13px;
}

.create-btn:hover,
.primary-btn:hover {
  background: var(--accent-dark);
}

.side-scroll {
  flex: 1;
  overflow: auto;
  padding: 12px 10px;
}

.nav-item,
.project-item,
.workspace-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  color: var(--nav-text);
  background: transparent;
  padding: 0 9px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

.nav-item:hover,
.project-item:hover,
.workspace-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.project-item.active,
.nav-item.active {
  background: rgba(255, 255, 255, 0.16);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: #151515;
  background: #c9c9c9;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.icon .ui-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.icon.home,
.icon.inbox,
.icon.mine {
  color: #d8d8d8;
  background: transparent;
  border: 1px solid #7c7d80;
}

.side-section {
  margin-top: 18px;
}

.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 0 9px 7px;
  letter-spacing: 0.01em;
}

.mini-add {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted-nav);
  font-size: 18px;
}

.mini-add:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.workspace-list {
  display: grid;
  gap: 4px;
}

.workspace-row.active {
  background: rgba(255, 255, 255, 0.12);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #0f172a;
  background: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.sidebar-bottom {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.members-btn,
.invite-btn {
  min-height: 36px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
}

.members-btn {
  border: 0;
  background: #f0f1f3;
  color: #171717;
}

.invite-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
}

.main {
  min-width: 0;
  background: var(--panel);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 22px;
  background: #2a2b2d;
  color: #fff;
}

.search {
  justify-self: center;
  display: flex;
  align-items: center;
  width: min(460px, 100%);
  height: 30px;
  border-radius: 999px;
  background: #4a4a4d;
  color: #e5e7eb;
  padding: 0 13px;
  font-size: 13px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.search input::placeholder {
  color: #e0e0e0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-notice {
  margin: 12px 22px 0;
  padding: 10px 12px;
  border: 1px solid #f2d2a9;
  border-radius: 7px;
  background: #fff7ed;
  color: #8a4b12;
  font-weight: 800;
}

.help-btn,
.profile-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
}

.help-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

.profile-btn {
  background: var(--cyan);
  color: #0f172a;
  font-weight: 800;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #d7c8ff;
  color: #4f3bc4;
  font-weight: 900;
}

.project-glyph .ui-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
}

.title-row h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: 0;
}

.subtitle {
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-stack {
  display: flex;
  margin-right: 2px;
}

.member-stack .avatar {
  margin-left: -6px;
  border: 2px solid #fff;
}

.share-btn,
.customize-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  border-radius: 7px;
  padding: 0 11px;
  font-weight: 700;
  font-size: 12px;
}

.share-btn {
  border: 0;
  background: #4f78ed;
  color: #fff;
}

.customize-btn,
.secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.ghost-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 9px 22px 0;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  min-height: 31px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.page-tabs {
  min-height: 40px;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  color: var(--text);
}

.tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--text);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.split-add {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.split-add button {
  min-height: 31px;
  border: 0;
  background: #fff;
  padding: 0 12px;
}

.split-add button + button {
  border-left: 1px solid var(--line);
}

.table-wrap {
  padding: 0 22px 30px;
  overflow: auto;
}

.task-table {
  min-width: 920px;
  border-top: 1px solid var(--line);
}

.table-head,
.task-row {
  display: grid;
  grid-template-columns: 42px minmax(360px, 1fr) 118px 118px 42px;
  align-items: center;
}

.table-head {
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
}

.table-head > div,
.task-cell {
  min-height: 34px;
  border-bottom: 1px solid var(--line-soft);
  padding: 7px 10px;
}

.table-head > div:not(:last-child),
.task-cell:not(:last-child) {
  border-right: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 750;
}

.chevron {
  color: var(--muted);
}

.task-row {
  min-height: 34px;
  font-size: 13px;
}

.task-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid #9ca3af;
  border-radius: 999px;
  background: #fff;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
  padding: 0;
}

.check.done {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.check:not(.done):hover {
  border-color: var(--green);
  box-shadow: inset 0 0 0 3px rgba(90, 170, 141, 0.12);
}

.task-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row.completed .task-title,
.task-row.completed .assignee,
.task-row.completed .due {
  color: #9ca3af;
}

.assignee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.due.overdue,
.due.today {
  color: #d61f45;
}

.add-line {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  padding-left: 86px;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.add-line:hover {
  background: var(--soft);
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  padding: 0 22px 30px;
}

.board-col {
  min-height: 420px;
  background: var(--soft);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 11px;
}

.board-title {
  margin: 0 0 10px;
  font-size: 13px;
}

.task-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.task-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 22px 30px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.workload-section {
  padding: 0 22px 30px;
}

.workload-section h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.workload-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.workload-head,
.workload-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 100px 100px 100px;
  align-items: center;
}

.workload-head {
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  background: var(--soft);
}

.workload-head > div,
.workload-row > div {
  padding: 10px 12px;
}

.workload-row {
  min-height: 48px;
  font-size: 13px;
  border-top: 1px solid var(--line-soft);
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.workload-row:hover {
  background: var(--soft);
}

.workload-member {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workload-member small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.member-task-list {
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
}

.member-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.member-task-row:hover {
  background: var(--soft);
}

.member-task-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-task-due {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.home-dashboard {
  padding: 18px 22px 30px;
}

.home-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-date {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-hero h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.home-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 12px;
}

.home-stat {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-left: 1px solid var(--line);
  padding-left: 10px;
  white-space: nowrap;
}

.home-panels {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 14px;
}

.home-card {
  min-height: 402px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.home-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 0;
}

.home-card-title {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.home-card-title h2 {
  margin: 7px 0 12px;
  font-size: 21px;
  line-height: 1;
}

.compact-title {
  align-items: center;
  gap: 14px;
}

.compact-title h2 {
  margin: 0;
}

.home-avatar {
  width: 48px;
  height: 48px;
  font-size: 14px;
}

.lock {
  color: var(--muted);
  font-size: 12px;
  vertical-align: 2px;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.home-card-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.home-card-tabs button {
  position: relative;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #555a62;
  font-weight: 700;
  padding: 0;
}

.home-card-tabs button.active {
  color: var(--text);
}

.home-card-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--text);
}

.home-task-list {
  max-height: 268px;
  overflow: auto;
  padding: 14px 24px 0;
}

.home-task-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  color: var(--text);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.mini-check {
  width: 16px;
  height: 16px;
  border: 1px solid #9aa0a6;
  font-size: 10px;
  background: #fff;
}

.home-task-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-task-project {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 96px;
  border-radius: 5px;
  background: #f0f1f4;
  color: var(--text);
  padding: 3px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-task-project i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.home-task-date {
  color: #c61d4a;
  white-space: nowrap;
}

.show-more,
.recents-btn {
  border: 0;
  background: transparent;
  color: #555a62;
  font-weight: 700;
}

.show-more {
  margin: 10px 24px 14px;
  padding: 0;
}

.recents-btn {
  color: var(--muted);
  font-size: 12px;
}

.home-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 22px 32px;
  padding: 26px 32px 12px;
}

.home-project-create,
.home-project-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 50px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.home-project-create span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px dashed #9aa0a6;
  border-radius: 12px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
}

.home-project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  color: #1f1f24;
  font-size: 24px;
  font-weight: 900;
}

.home-project-icon .ui-icon,
.portfolio-card .ui-icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.4;
}

.home-project-item strong,
.home-project-create strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-project-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.feed-list,
.portfolio-grid,
.goal-list {
  display: grid;
  gap: 10px;
  padding: 0 22px 30px;
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feed-item,
.portfolio-card,
.goal-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--text);
  text-align: left;
}

.portfolio-card {
  grid-template-columns: 24px 1fr;
  align-items: center;
}

.portfolio-card small {
  grid-column: 2;
  color: var(--muted);
}

.feed-item span,
.goal-row span {
  color: var(--muted);
  font-size: 12px;
}

.notification-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 10px;
  width: 100%;
  cursor: pointer;
}

.notification-row strong {
  display: block;
  font-size: 13px;
}

.notification-row time {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.notification-row.unread {
  background: #fff4e8;
  border-color: #f6d9b3;
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
}

.unread-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.5;
}

.goal-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.28);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: min(680px, calc(100vw - 40px));
  height: 100vh;
  background: #1f2222;
  color: #e9ecec;
  box-shadow: var(--shadow);
}

.drawer.expanded {
  width: min(920px, calc(100vw - 40px));
}

.drawer-toolbar,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.drawer-toolbar {
  min-height: 42px;
  background: #202323;
}

.drawer-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
}

.drawer-complete {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: transparent;
  color: #f4f5f5;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.drawer-complete .check {
  width: 13px;
  height: 13px;
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
  font-size: 9px;
}

.drawer-complete .check.done {
  border-color: var(--green);
  background: var(--green);
}

.dark-tool-btn,
.dark-icon-btn,
.close-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c5c9c9;
}

.dark-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 0 8px;
  color: #f4f5f5;
  font-size: 12px;
  font-weight: 700;
}

.dark-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.dark-icon-btn:hover,
.dark-icon-btn.active,
.dark-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dark-icon-btn.active .ui-icon {
  color: var(--green);
}

.drawer-menu-wrap {
  position: relative;
  display: inline-flex;
}

.task-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 170px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #202323;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  padding: 6px;
}

.task-menu button {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #e6e9e9;
  padding: 0 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.task-menu button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.dark-icon-btn .ui-icon,
.dark-tool-btn .ui-icon {
  width: 14px;
  height: 14px;
}

.close-btn:hover {
  background: var(--soft);
}

.drawer-visibility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #292c2c;
  color: #b9bebe;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 700;
}

.drawer-visibility span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.drawer-visibility button {
  border: 0;
  background: transparent;
  color: #a9adad;
  font-weight: 700;
}

.drawer-visibility button:hover {
  color: #fff;
}

.drawer-notice {
  min-height: 30px;
  background: rgba(90, 170, 141, 0.16);
  color: #dff3ec;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 800;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 18px 20px 24px;
}

.drawer-main-title {
  margin: 0 0 18px;
  color: #f5f6f6;
  font-size: 20px;
  line-height: 1.18;
}

.drawer-fields {
  display: grid;
  gap: 13px;
  margin-bottom: 28px;
}

.drawer-field {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.drawer-field label {
  color: #d0d4d4;
  font-weight: 800;
}

.drawer-field-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #dfe3e3;
}

.drawer-field-value select,
.drawer-field-value input,
.drawer-description,
.drawer-line-input,
.drawer-comment-row input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #f1f3f3;
}

.drawer-field-value select {
  max-width: 150px;
  appearance: none;
  font-weight: 700;
}

.drawer-field-value input {
  color: #ff6f87;
}

.drawer-field-value.danger {
  color: #ff6f87;
}

.project-dot {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.muted {
  color: #8f9696;
}

.drawer-section {
  margin-top: 24px;
}

.drawer-section h3,
.drawer-section-head h3 {
  margin: 0 0 11px;
  color: #e9ecec;
  font-size: 12px;
  font-weight: 900;
}

.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-section-head button,
.compact-section h3 button {
  border: 0;
  background: transparent;
  color: #c5c9c9;
  font-weight: 900;
}

.drawer-description {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  color: #f0f2f2;
  line-height: 1.5;
  font-size: 12px;
}

.drawer-line-input {
  width: 100%;
  height: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
}

.drawer-line-input::placeholder,
.drawer-comment-row input::placeholder {
  color: #747b7b;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #cfd3d3;
  font-size: 11px;
}

.app-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9bebe;
}

.drawer-activity {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #292c2c;
  padding: 11px 18px 8px;
}

.activity-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
  color: #aeb3b3;
  font-size: 11px;
}

.activity-tabs button {
  position: relative;
  min-height: 26px;
  border: 0;
  background: transparent;
  color: #aeb3b3;
  font-weight: 800;
  padding: 0;
}

.activity-tabs button.active {
  color: #fff;
}

.activity-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #fff;
}

.activity-tabs span {
  margin-left: auto;
}

.activity-feed {
  display: grid;
  gap: 10px;
  color: #aeb3b3;
  font-size: 11px;
  margin-bottom: 10px;
}

.activity-feed > div,
.activity-entry {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.activity-entry > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.activity-entry p {
  margin: 0;
  line-height: 1.35;
}

.activity-entry time {
  color: #7f8585;
  font-weight: 700;
  white-space: nowrap;
}

.activity-comment {
  color: #e2e5e5;
  line-height: 1.45;
}

.show-more-comments {
  display: block;
  margin: 4px 0 12px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.show-more-comments:hover {
  text-decoration: underline;
}

.avatar.small {
  width: 18px;
  height: 18px;
  font-size: 9px;
}

.drawer-comment-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.drawer-comment-row input {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  padding: 0 10px;
}

.drawer-comment-row button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: transparent;
  color: #f2f4f4;
  padding: 0 10px;
}

.field-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.field-grid label,
.form-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.text-input,
.select-input,
.textarea-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  outline: 0;
}

.text-input:disabled {
  background: var(--soft);
  color: var(--muted);
  cursor: not-allowed;
}

.textarea-input {
  min-height: 96px;
  resize: vertical;
}

.comments {
  margin-top: 24px;
}

.comment-box {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}

.comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.comment:last-child {
  border-bottom: 0;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 40;
  width: min(500px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-body {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.modal-copy {
  color: var(--muted);
  line-height: 1.55;
}

.share-summary {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.copy-link-btn {
  margin-right: auto;
}

.share-summary span {
  color: var(--muted);
  font-size: 12px;
}

.member-list {
  display: grid;
  gap: 8px;
}

.member-option {
  display: grid;
  grid-template-columns: 18px 24px 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}

.member-option.static {
  grid-template-columns: 24px minmax(0, 1fr) auto;
}

.member-option input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.member-option small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

.pending-invites {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pending-invites h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.pending-member {
  background: #fffaf2;
}

.pending-avatar {
  background: #f8d890;
  color: #4b3210;
  font-size: 10px;
}

.pending-empty {
  color: var(--muted);
  font-size: 13px;
}

.pending-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.resend-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.resend-btn:hover {
  text-decoration: underline;
}

.resend-btn:disabled {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}

.cancel-invite-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #c23b32;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cancel-invite-btn:hover {
  text-decoration: underline;
}

.resend-result {
  margin-top: 2px;
  font-weight: 700;
}

.resend-result.ok {
  color: var(--green);
}

.resend-result.error {
  color: #c23b32;
}

.danger-text-btn,
.member-lock {
  justify-self: end;
  font-size: 12px;
  font-weight: 800;
}

.danger-text-btn {
  border: 0;
  background: transparent;
  color: #c23b32;
}

.danger-text-btn:hover {
  text-decoration: underline;
}

.member-lock {
  color: var(--muted);
}

.ghost-btn.active {
  background: #f1f2f4;
  color: var(--text);
}

.main.compact .table-head > div,
.main.compact .task-cell {
  min-height: 30px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.main.compact .section-title {
  min-height: 40px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.empty {
  padding: 42px 24px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .drawer {
    width: 100vw;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .side-scroll {
    display: none;
  }

  .sidebar-bottom {
    display: none;
  }

  .topbar,
  .project-header,
  .toolbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .project-header,
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .board,
  .overview,
  .home-panels,
  .home-project-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-dashboard {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-task-row {
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }

  .home-task-project {
    display: none;
  }
}
