:root {
  color-scheme: light;
  --ink-950: #13211e;
  --ink-800: #263831;
  --ink-700: #3f5149;
  --muted: #788880;
  --muted-light: #a2aea7;
  --canvas: #f4f6f2;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --line: #e4ebe4;
  --line-strong: #d6e0d8;
  --green-900: #184c3c;
  --green-700: #24735a;
  --green-500: #6aa88d;
  --green-100: #e6f2e9;
  --green-50: #f3faf4;
  --warm-700: #a96a36;
  --warm-100: #fff0dc;
  --red-700: #b4594b;
  --red-100: #fae7e2;
  --blue-700: #4c7392;
  --blue-100: #e5eff5;
  --navy: #18362e;
  --shadow-sm: 0 4px 16px rgba(23, 49, 40, 0.045);
  --shadow-md: 0 14px 40px rgba(23, 49, 40, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --sidebar-width: 248px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink-950);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(65, 143, 112, 0.26);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--green-900);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 10;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 16px 18px;
  color: rgba(239, 247, 241, 0.85);
  background: var(--navy);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(224, 244, 230, 0.48);
  border-radius: 10px;
  color: #f5fff7;
  background: rgba(255, 255, 255, 0.09);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
}

.brand-lockup strong,
.brand-lockup small,
.profile-row strong,
.profile-row small {
  display: block;
}

.brand-lockup strong {
  color: #f6fff8;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.brand-lockup small {
  margin-top: 1px;
  color: rgba(206, 231, 214, 0.55);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.capture-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid rgba(204, 238, 215, 0.16);
  border-radius: var(--radius-md);
  color: #f0fff3;
  background: rgba(232, 252, 236, 0.1);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.capture-button:hover {
  border-color: rgba(204, 238, 215, 0.32);
  background: rgba(232, 252, 236, 0.16);
  transform: translateY(-1px);
}

.capture-button kbd {
  margin-left: auto;
  color: rgba(216, 239, 221, 0.5);
  font-size: 10px;
  font-weight: 500;
}

.capture-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  color: var(--navy);
  background: #c6e9ce;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.primary-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 10px;
  color: rgba(217, 237, 222, 0.64);
  background: transparent;
  font-size: 13px;
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  color: #f8fff9;
  background: rgba(221, 247, 227, 0.12);
}

.nav-icon {
  display: grid;
  width: 20px;
  place-items: center;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}

.nav-item.is-active .nav-icon {
  color: #bce9c6;
}

.nav-count {
  min-width: 21px;
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 99px;
  color: #d4f4db;
  background: rgba(193, 233, 202, 0.12);
  font-size: 11px;
  text-align: center;
}

.nav-count--warm {
  color: #ffe1b7;
  background: rgba(246, 186, 111, 0.15);
}

.sidebar-bottom {
  display: grid;
  gap: 18px;
}

.integration-card {
  padding: 13px 12px 12px;
  border: 1px solid rgba(207, 236, 216, 0.12);
  border-radius: var(--radius-md);
  background: rgba(240, 255, 243, 0.06);
}

.integration-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #eaf9ed;
  font-size: 12px;
  font-weight: 600;
}

.integration-label {
  margin-left: auto;
  color: rgba(207, 234, 214, 0.52);
  font-size: 10px;
  font-weight: 500;
}

.integration-card p {
  margin: 8px 0 0 16px;
  color: rgba(207, 234, 214, 0.54);
  font-size: 11px;
  line-height: 1.5;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 7px;
}

.profile-avatar,
.topbar-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-900);
  background: #c9e8cf;
  font-size: 12px;
  font-weight: 700;
}

.profile-row strong {
  color: #eefcf1;
  font-size: 12px;
}

.profile-row small {
  margin-top: 1px;
  color: rgba(207, 234, 214, 0.48);
  font-size: 10px;
}

.profile-row .icon-button {
  margin-left: auto;
}

.main-panel {
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  margin-left: var(--sidebar-width);
}

.topbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid rgba(214, 224, 216, 0.75);
  background: rgba(244, 246, 242, 0.78);
}

.topbar-left,
.topbar-actions,
.breadcrumb,
.search-button,
.heading-actions,
.last-sync,
.section-heading,
.section-kicker,
.project-tools,
.dialog-heading,
.dialog-actions,
.dispatch-row {
  display: flex;
  align-items: center;
}

.breadcrumb {
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb b {
  color: #c1cbc4;
  font-weight: 400;
}

.breadcrumb strong {
  color: var(--ink-800);
  font-weight: 600;
}

.topbar-actions {
  gap: 18px;
}

.search-button {
  gap: 8px;
  min-width: 224px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease;
}

.search-button:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.search-button > span:first-child {
  color: var(--ink-700);
  font-size: 18px;
  line-height: 1;
}

kbd {
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.3;
}

.icon-button,
.mobile-menu-button {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 17px;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease;
}

.icon-button:hover,
.mobile-menu-button:hover {
  color: var(--ink-950);
  background: var(--surface);
}

.icon-button--dark {
  color: rgba(214, 237, 219, 0.53);
}

.icon-button--dark:hover {
  color: #f1fff3;
  background: rgba(226, 247, 231, 0.1);
}

.notification-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--canvas);
  border-radius: 50%;
  background: var(--warm-700);
}

.mobile-menu-button {
  display: none;
}

.page-content {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 39px 42px 56px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.page-heading h1 {
  max-width: 720px;
  margin: 8px 0 4px;
  color: var(--ink-950);
  font-size: clamp(26px, 3vw, 35px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.page-subtitle {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.heading-actions {
  flex: 0 0 auto;
  gap: 14px;
}

.last-sync {
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(106, 168, 141, 0.12);
}

.status-dot--muted {
  background: #a9b8ae;
  box-shadow: 0 0 0 3px rgba(169, 184, 174, 0.1);
}

.primary-button,
.outline-button,
.quiet-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 650;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  color: #f7fff8;
  background: var(--green-700);
  box-shadow: 0 5px 12px rgba(36, 115, 90, 0.13);
}

.primary-button:hover {
  background: var(--green-900);
  transform: translateY(-1px);
}

.outline-button {
  border: 1px solid var(--line-strong);
  color: var(--green-900);
  background: var(--surface);
}

.outline-button:hover {
  border-color: var(--green-500);
  background: var(--green-50);
}

.outline-button--full {
  width: 100%;
  margin-top: 15px;
}

.quiet-button,
.text-button {
  min-height: 31px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
}

.quiet-button:hover,
.text-button:hover {
  color: var(--green-700);
  background: var(--green-50);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 17px;
}

.metric-card {
  position: relative;
  min-height: 130px;
  padding: 19px 20px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-card::after {
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(38, 116, 88, 0.08);
  border-radius: 50%;
  content: "";
}

.metric-card--accent {
  border-color: #cde3d1;
  background: var(--green-50);
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.metric-symbol {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 7px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 14px;
  font-weight: 700;
}

.metric-symbol--warm {
  color: var(--warm-700);
  background: var(--warm-100);
}

.metric-symbol--red {
  color: var(--red-700);
  background: var(--red-100);
}

.metric-symbol--blue {
  color: var(--blue-700);
  background: var(--blue-100);
}

.metric-card > strong {
  display: block;
  margin-top: 9px;
  color: var(--ink-950);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(315px, 0.75fr);
  gap: 17px;
  align-items: start;
}

.content-stack,
.side-stack {
  display: grid;
  gap: 17px;
  min-width: 0;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.focus-surface,
.review-surface,
.check-surface,
.reminder-surface,
.projects-surface,
.history-surface {
  padding: 22px;
}

.section-heading {
  justify-content: space-between;
  gap: 14px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-light);
  font-size: 9px;
}

.section-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--green-500);
}

.section-mark--green {
  background: var(--green-500);
}

.section-mark--warm {
  background: #d28b4f;
}

.section-mark--red {
  background: #cf7568;
}

.section-mark--blue {
  background: #7198b3;
}

.section-heading h2,
.dialog-heading h2 {
  margin: 6px 0 0;
  color: var(--ink-950);
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.heading-count {
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 99px;
  color: var(--warm-700);
  background: var(--warm-100);
  font-size: 11px;
  vertical-align: 2px;
}

.section-description {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.focus-list,
.review-list,
.check-list,
.reminder-list,
.history-list {
  display: grid;
}

.focus-list {
  gap: 3px;
  margin-top: 17px;
}

.focus-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 57px;
  padding: 8px 8px 8px 5px;
  border-bottom: 1px solid var(--line);
}

.focus-item:last-child {
  border-bottom: 0;
}

.priority-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 11px;
  font-weight: 800;
}

.focus-item:nth-child(2) .priority-number {
  color: var(--warm-700);
  background: var(--warm-100);
}

.focus-item:nth-child(3) .priority-number {
  color: var(--blue-700);
  background: var(--blue-100);
}

.task-title,
.review-title,
.project-name {
  display: block;
  overflow: hidden;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-meta,
.review-meta,
.project-meta,
.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.task-meta span + span::before,
.review-meta span + span::before,
.project-meta span + span::before,
.history-meta span + span::before {
  margin-right: 10px;
  color: #cad3cd;
  content: "·";
}

.time-badge,
.tag,
.status-badge,
.source-badge,
.dispatch-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.time-badge {
  color: var(--green-700);
  background: var(--green-100);
}

.time-badge.is-overdue {
  color: var(--red-700);
  background: var(--red-100);
}

.tag {
  color: var(--muted);
  background: var(--surface-soft);
}

.status-badge--progress {
  color: var(--green-700);
  background: var(--green-100);
}

.status-badge--waiting {
  color: var(--warm-700);
  background: var(--warm-100);
}

.status-badge--done {
  color: var(--green-900);
  background: #d9f0dc;
}

.status-badge--review {
  color: var(--warm-700);
  background: var(--warm-100);
}

.source-badge {
  color: var(--blue-700);
  background: var(--blue-100);
}

.dispatch-badge {
  color: var(--muted);
  background: var(--surface-soft);
}

.review-list {
  gap: 9px;
}

.review-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 13px 13px 13px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.review-item:hover {
  border-color: #cddfd1;
  background: var(--green-50);
  transform: translateY(-1px);
}

.review-item.is-viewed {
  opacity: 0.68;
}

.review-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #d18b4e;
  box-shadow: 0 0 0 4px #fff0dc;
}

.review-item.is-viewed .review-dot {
  background: #a8b6ac;
  box-shadow: 0 0 0 4px #e8eee8;
}

.review-summary {
  display: -webkit-box;
  max-width: 500px;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.small-button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink-700);
  background: var(--surface);
  font-size: 10px;
  font-weight: 650;
}

.small-button:hover {
  border-color: var(--green-500);
  color: var(--green-900);
  background: var(--green-50);
}

.small-button--plain {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.check-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 17px;
  padding: 13px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.progress-ring {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green-700) 0 40%, #dfebe1 40% 100%);
  font-size: 12px;
  font-weight: 800;
}

.progress-ring::after {
  position: absolute;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: var(--surface-soft);
  content: "";
}

.progress-ring span {
  position: relative;
  z-index: 1;
}

.check-progress-row strong {
  display: block;
  color: var(--ink-800);
  font-size: 12px;
}

.check-progress-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.check-list {
  gap: 10px;
}

.check-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.check-check {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: transparent;
  background: var(--surface);
  font-size: 11px;
}

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

.check-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-item.is-done strong {
  color: var(--muted-light);
  text-decoration: line-through;
}

.check-item small {
  color: var(--muted-light);
  font-size: 10px;
}

.mini-date {
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.reminder-list {
  gap: 12px;
  margin-top: 20px;
}

.reminder-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
}

.reminder-line {
  width: 5px;
  height: 29px;
  margin-top: 3px;
  border-radius: 5px;
  background: #78a8be;
}

.reminder-item:nth-child(2) .reminder-line {
  background: #d3945a;
}

.reminder-item:nth-child(3) .reminder-line {
  background: #82ad83;
}

.reminder-item strong {
  display: block;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 650;
}

.reminder-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.reminder-time {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.projects-surface,
.history-surface {
  margin-top: 17px;
}

.section-heading--projects {
  margin-bottom: 16px;
}

.project-tools {
  gap: 4px;
}

.filter-chip {
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--green-900);
  background: var(--green-100);
  font-weight: 650;
}

.project-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(185px, 1.2fr) minmax(170px, 1fr) 100px 115px 96px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 9px 13px;
  background: var(--surface);
}

.project-row + .project-row {
  border-top: 1px solid var(--line);
}

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

.project-row--head {
  min-height: 35px;
  color: var(--muted-light);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 700;
}

.project-row--head:hover {
  background: var(--surface-soft);
}

.project-next {
  overflow: hidden;
  color: var(--ink-700);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-status {
  color: var(--muted);
  font-size: 11px;
}

.project-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.project-check::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d38f55;
  content: "";
}

.project-check.is-done {
  color: var(--green-700);
}

.project-check.is-done::before {
  background: var(--green-500);
}

.history-list {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--surface-soft);
}

.history-item + .history-item {
  border-top: 1px solid var(--line);
}

.history-item .status-badge {
  flex: 0 0 auto;
}

.muted-caption {
  color: var(--muted-light);
  font-size: 10px;
}

.empty-state {
  padding: 25px 15px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.task-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--ink-950);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.task-dialog::backdrop {
  background: rgba(13, 36, 29, 0.38);
  backdrop-filter: blur(3px);
}

.task-form {
  padding: 25px;
}

.dialog-heading {
  justify-content: space-between;
  align-items: flex-start;
}

.dialog-description {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.voice-capture-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  margin-bottom: 17px;
  padding: 7px 9px;
  border: 1px solid #d7e9da;
  border-radius: var(--radius-md);
  background: var(--green-50);
}

.voice-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--green-900);
  background: #d9efdd;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background .16s ease, transform .16s ease;
}

.voice-button:hover,
.voice-button.is-listening {
  background: #bee4c5;
}

.voice-button:active {
  transform: translateY(1px) scale(.99);
}

.voice-button.is-unavailable {
  color: var(--muted);
  background: #edf1ed;
}

.voice-waves {
  font-size: 14px;
}

.voice-status {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.field-label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 700;
}

.field-label span {
  color: var(--red-700);
}

textarea,
input[type="text"],
input[type="date"],
input[type="time"] {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink-950);
  background: var(--surface);
  font-size: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 85px;
  padding: 10px 11px;
  resize: vertical;
}

input[type="text"],
input[type="date"],
input[type="time"] {
  height: 37px;
  padding: 0 10px;
}

textarea::placeholder,
input::placeholder {
  color: #b1bbb4;
}

textarea:focus,
input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(106, 168, 141, 0.12);
  outline: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin: 15px 0;
}

.dispatch-row {
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.dispatch-row strong,
.dispatch-row span {
  display: block;
}

.dispatch-row strong {
  color: var(--ink-700);
  font-size: 11px;
}

.dispatch-row div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.switch-label {
  position: relative;
  display: block;
  width: 39px;
  height: 22px;
  flex: 0 0 auto;
}

.switch-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #cbd6ce;
  transition: background 160ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 45, 34, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.switch-label input:checked + .switch {
  background: var(--green-700);
}

.switch-label input:checked + .switch::after {
  transform: translateX(17px);
}

.dialog-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 23px;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 11px 14px;
  border: 1px solid #cfe2d2;
  border-radius: 10px;
  color: var(--green-900);
  background: #eff9f0;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .topbar,
  .page-content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  }

  .project-row {
    grid-template-columns: minmax(150px, 1.15fr) minmax(135px, 1fr) 90px 100px 85px;
    gap: 8px;
  }
}

@media (max-width: 960px) {
  :root {
    --sidebar-width: 210px;
  }

  .sidebar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar,
  .page-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .search-button {
    min-width: 36px;
    width: 36px;
    justify-content: center;
    padding: 0;
  }

  .search-button > span:nth-child(2),
  .search-button kbd {
    display: none;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .metric-card {
    min-height: 118px;
    padding: 16px;
  }

  .metric-card > strong {
    font-size: 27px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    width: 250px;
    transform: translateX(-102%);
    transition: transform 200ms ease;
    box-shadow: 12px 0 32px rgba(12, 39, 29, 0.16);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main-panel {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    min-height: 62px;
    padding: 0 16px;
  }

  .mobile-menu-button {
    display: grid;
    margin-right: 7px;
  }

  .breadcrumb span,
  .breadcrumb b {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-avatar {
    width: 29px;
    height: 29px;
  }

  .page-content {
    padding: 27px 16px 40px;
  }

  .page-heading {
    margin-bottom: 22px;
  }

  .page-heading h1 {
    max-width: 100%;
    font-size: 27px;
  }

  .page-subtitle {
    font-size: 12px;
  }

  .heading-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .heading-actions .primary-button {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 12px;
  }

  .metric-card {
    min-height: 108px;
    padding: 14px;
    border-radius: 14px;
  }

  .metric-label {
    font-size: 11px;
  }

  .metric-symbol {
    width: 18px;
    height: 18px;
  }

  .metric-card > strong {
    margin-top: 7px;
    font-size: 25px;
  }

  .metric-note {
    margin-top: 5px;
    font-size: 10px;
  }

  .focus-surface,
  .review-surface,
  .check-surface,
  .reminder-surface,
  .projects-surface,
  .history-surface {
    padding: 17px 14px;
    border-radius: 15px;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .dialog-heading h2 {
    font-size: 16px;
  }

  .review-item {
    grid-template-columns: 9px minmax(0, 1fr);
  }

  .review-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .project-tools {
    align-self: flex-end;
  }

  .section-heading--projects {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-table {
    border: 0;
    border-radius: 0;
  }

  .project-row--head {
    display: none;
  }

  .project-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    min-height: 0;
    padding: 13px 0;
  }

  .project-row + .project-row {
    border-top: 1px solid var(--line);
  }

  .project-row > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .project-row > :nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .project-row > :nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .project-row > :nth-child(5) {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }

  .project-name {
    font-size: 12px;
  }

  .project-next {
    font-size: 11px;
  }

  .history-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .task-form {
    padding: 19px 16px;
  }

  .field-grid {
    gap: 10px;
  }

  .voice-capture-box {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 9px;
  }

  .dialog-actions {
    position: sticky;
    bottom: -19px;
    margin-right: -16px;
    margin-left: -16px;
    padding: 13px 16px 0;
    background: linear-gradient(transparent, var(--surface) 25%);
  }
}

@media (max-width: 450px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .search-button {
    display: none;
  }

  .last-sync {
    font-size: 10px;
  }

  .section-heading--review {
    align-items: flex-start;
  }

  .section-heading--review .quiet-button {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
