/* GTD visual system. Layout and workflow states remain in gtd-control.css. */
:root {
  --canvas: #f7f9f9;
  --sidebar: #f0f4f3;
  --surface: #fff;
  --surface-soft: #f8faf9;
  --surface-teal: #eaf5f1;
  --ink: #213630;
  --ink-soft: #3c514a;
  --muted: #62756e;
  --faint: #7c8c85;
  --line: #e3eae6;
  --line-strong: #cbd8d1;
  --teal: #087f68;
  --teal-dark: #08604f;
  --teal-soft: #daeee6;
  --radius-sm: 9px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-float: 0 16px 50px rgb(25 60 46 / 12%);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow-surface: 0 2px 3px rgb(25 60 46 / 2%), 0 8px 28px rgb(25 60 46 / 3%);
}

body { font-size: 14px; font-weight: 400; line-height: 1.55; }
button, .button, .secondary-button { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 550; letter-spacing: -.025em; }
strong, b { font-weight: 550; }
input, select, textarea { border-color: var(--line-strong); border-radius: 9px; }
input::placeholder, textarea::placeholder { color: #75847e; opacity: 1; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); }

/* A quiet frame keeps the work, rather than the navigation, in focus. */
.app-sidebar { background: var(--sidebar); border-right-color: var(--line); }
.brand-lockup strong { font-weight: 600; letter-spacing: -.025em; }
.side-nav a { font-size: 12px; font-weight: 450; border-radius: 10px; }
.side-nav a.active { background: #dceee6; border-color: transparent; font-weight: 550; }
.side-nav a:hover { background: #e5eeea; }
.side-nav a.active i { color: var(--teal-dark); }
.nav-section-label { font-weight: 500; letter-spacing: .12em; }
.sidebar-create { border-radius: 12px; font-weight: 500; }
.topbar { background: rgb(247 249 249 / 90%); border-bottom-color: rgb(218 228 222 / 65%); }
.topbar-plan { border-color: transparent; background: var(--surface-teal); font-size: 13px; font-weight: 500; }
.topbar-create { font-size: 13px; font-weight: 500; border-radius: 9px; }
.global-search { border-radius: 11px; box-shadow: 0 2px 8px rgb(25 60 46 / 2%); }
.content-shell { padding-top: 34px; }
.page-head { margin-bottom: 28px; }
.page-head h1, .pane-title-row h1, .plan-heading h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 550; letter-spacing: -.045em; line-height: 1.15; }
.header-kicker, .section-kicker, .login-eyebrow { font-weight: 600; font-size: 10px; letter-spacing: .12em; margin-bottom: 7px; }
.hero-copy, .pane-subtitle { font-size: 13px; line-height: 1.65; max-width: 760px; }
.header-tabs, .view-switcher { background: #edf2ef; border-color: transparent; border-radius: 11px; padding: 4px; }
.header-tabs a, .view-switcher a { border-radius: 8px; font-size: 12px; font-weight: 450; padding: 8px 13px; }
.header-tabs a.active, .view-switcher a.active { background: var(--surface); color: var(--teal-dark); box-shadow: 0 2px 6px rgb(25 60 46 / 7%); font-weight: 550; }

/* Surfaces use space and faint dividers instead of a stack of boxes. */
.panel, .list-surface, .gmail-list, .inspector, .calendar-surface, .plan-controls {
  border-color: var(--line);
  box-shadow: var(--shadow-surface);
}
.panel-head { padding-bottom: 16px; }
.panel-head h2, .section-heading h2, .settings-card h2, .review-stage h2 { font-size: 18px; font-weight: 550; }
.panel-head a, .section-heading a { font-size: 12px; font-weight: 500; }
.pane-header { padding: 24px; background: linear-gradient(135deg, #fff, #f8fbf9); }
.pane-count, .inbox-count-pill { background: #eef3f0; color: var(--ink-soft); font-size: 11px; font-weight: 450; }
.list-rule-strip { font-size: 11px; line-height: 1.6; border-left-width: 2px; }
.list-filter-drawer > summary, .inbox-filter-drawer > summary { font-size: 12px; font-weight: 500; }
.view-controls, .inbox-sort-form { background: var(--surface-soft); }
.item-card { padding-block: 17px; border-color: var(--line); }
.task-title { font-size: 14px; font-weight: 450; line-height: 1.45; }
.item-card .task-title strong, .item-card .task-title b { font-weight: inherit; }
.item-card p { font-size: 12px; line-height: 1.5; }
.item-code { font-weight: 500; color: var(--muted); }
.item-card:hover, .gmail-row:hover { background: #f4f8f6; }
.item-card.selected, .gmail-row.selected { background: #edf7f2; }
.empty-state { padding: 48px 24px; gap: 10px; }
.empty-state > i { color: #668e7e; font-size: 28px; }
.empty-state strong { color: var(--ink); font-size: 16px; font-weight: 500; }
.empty-state span { max-width: 390px; font-size: 13px; line-height: 1.6; }
.list-empty-state { min-height: 250px; }

/* Today: the calendar leads, while system information stays secondary. */
.today-overview-grid { gap: 20px; }
.hard-landscape-panel, .system-signals-panel { padding: 22px; }
.system-signals-panel { background: #f1f7f4; box-shadow: none; }
.timeline-row { padding-block: 15px; border-color: var(--line); border-radius: 6px; }
.timeline-row strong { font-weight: 450; font-size: 15px; }
.timeline-row time { font-weight: 500; font-size: 11px; }
.timeline-row small, .signal-row small { font-size: 11px; line-height: 1.5; }
.timeline-row:hover { background: #f5f9f7; }
.signal-row strong { font-weight: 500; font-size: 13px; }
.signal-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.signal-summary { gap: 12px; }
.signal-summary > span { background: transparent; }
.command-capture { border-radius: 14px; border-color: var(--line-strong); box-shadow: 0 4px 16px rgb(25 60 46 / 3%); }
.engage-filters { gap: 10px; }
.context-option, .estimate-option, .estimate-filter-option { font-weight: 450; }

/* Inbox and inspectors: readable decisions, calm supporting metadata. */
.gmail-row { padding-block: 16px; }
.mail-main .mail-title { font-size: 13px; font-weight: 450; line-height: 1.45; }
.mail-preview { font-size: 11px; line-height: 1.5; }
.inspector-title { font-size: 20px; font-weight: 550; letter-spacing: -.025em; }
.inspector-form label, .field-label { font-weight: 500; }
.inspector-form input, .inspector-form textarea, .inspector-form select { font-size: 14px; line-height: 1.5; }
.clarify-step { border-radius: 12px; }
.calendar-dialog, .voice-dialog { box-shadow: 0 28px 90px rgb(17 43 33 / 22%); }
dialog::backdrop { background: rgb(20 39 31 / 30%); backdrop-filter: blur(4px); }
.calendar-period-toolbar { background: var(--surface); }
.calendar-surface { border-radius: 14px; }
.calendar-head > div:first-child { flex: 1 1 430px; }
.calendar-head-actions { flex: 1 1 560px; }
.calendar-head h1 { font-size: 30px; font-weight: 550; }

/* Projects: align the next action above its context choices. */
.projects-layout { gap: 24px; }
.project-card-main { padding: 22px; gap: 14px; }
.project-card-title h3 { font-size: 17px; font-weight: 500; }
.project-card-copy > p, .project-linked-empty { font-size: 12px; line-height: 1.6; }
.project-area { font-weight: 500; font-size: 10px; letter-spacing: .08em; }
.risk-pill, .health-pill, .connection-pill { font-size: 10px; font-weight: 500; padding: 5px 9px; }
.project-linked-work { padding: 16px 22px; background: #f9fbfa; }
.project-next-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 18px 22px; }
.project-next-form > label { grid-column: 1 / -1; }
.project-next-form .context-picker { grid-column: 1; }
.project-next-form > button { grid-column: 2; }
.project-next-form input { font-size: 13px; min-height: 42px; }
.project-next-form button { font-size: 11px; font-weight: 500; }
.project-create-form { padding: 24px; }
.project-create-form h2 { font-size: 20px; font-weight: 550; }
.project-metrics { margin-top: 8px; }
.project-metrics a, .project-metrics span { font-size: 11px; background: transparent; padding: 2px 8px 2px 0; }

/* Review, settings and planning share the same reading rhythm. */
.validation-summary-valid { display: none; }
.review-progress-panel { padding: 18px 22px; border-color: #d6e7dd; border-radius: 14px; background: #edf7f1; }
.review-progress-panel p { font-size: 12px; line-height: 1.6; }
.review-progress-panel [data-review-progress-label] { font-weight: 500; font-size: 13px; }
.review-progress-track { height: 5px; border-radius: 999px; }
.review-stage-grid { gap: 20px; }
.review-stage { padding: 22px; }
.review-check { padding-block: 20px; gap: 12px; }
.review-check strong { font-size: 13px; font-weight: 500; }
.review-check small { font-size: 12px; line-height: 1.6; }
.review-check:has(input:checked) { background: #f0f8f3; border-radius: 8px; }
.review-check > a, .review-inline-links a { font-size: 11px; font-weight: 500; }
.review-complete-panel { padding: 24px; gap: 24px; }
.review-complete-panel p { font-size: 12px; line-height: 1.6; }
.settings-grid { gap: 20px; }
.settings-card { padding: 24px; gap: 16px; }
.settings-card-icon { width: 40px; height: 40px; border-radius: 12px; }
.settings-card-copy > p, .settings-card-copy li { font-size: 13px; line-height: 1.7; }
.settings-card-copy .guardrail-note { font-size: 12px; line-height: 1.6; }
.settings-actions { flex-wrap: wrap; }
.plan-page { padding-top: 0; }
.plan-heading .eyebrow { color: var(--teal); font-size: 10px; letter-spacing: .12em; font-weight: 600; }
.plan-controls { border-radius: 20px; padding: 32px; }
.plan-controls legend { font-weight: 550; font-size: 18px; }
.plan-sources > label { border-radius: 14px; padding: 22px; transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.plan-sources > label:has(input:checked) { background: #edf7f2; border-color: #3e9476; box-shadow: 0 0 0 1px #3e9476; }
.plan-sources strong { font-weight: 500; }
.plan-fields label { font-weight: 500; }
.plan-fields input, .plan-fields select { border-radius: 9px; font-weight: 400; }
.plan-item-text strong { font-weight: 450; }

/* Sign-in belongs to the same product, with a little more room to breathe. */
body.login-page { background: radial-gradient(ellipse at 15% 10%, #e6f0eb, transparent 55%), var(--canvas); }
.login-shell { border-color: var(--line); border-radius: 24px; box-shadow: 0 24px 80px rgb(25 60 46 / 10%); }
.login-story { background: linear-gradient(145deg, #173e33, #0c6550); padding: 40px; }
.login-brand img { filter: none; }
.login-story h1 { font-weight: 450; line-height: 1.06; letter-spacing: -.055em; }
.login-story-copy p { font-size: 14px; line-height: 1.8; }
.login-heading h2 { font-size: 27px; font-weight: 550; }
.login-subtitle, .login-security { font-size: 12px; line-height: 1.65; }
.login-field label { font-size: 12px; font-weight: 500; }
.login-input-wrap { border-radius: 10px; border-color: var(--line-strong); }
.login-submit { font-weight: 500; border-radius: 10px; min-height: 46px; }
.login-method li { font-weight: 500; font-size: 9px; }
.login-page .vc-network-footer { opacity: .9; }

/* Small, interruptible motion. Never animate the timeline geometry or drag transforms. */
@media (prefers-reduced-motion: no-preference) {
  .page-head, .plan-heading, .pane-header { animation: gtd-heading-in 320ms var(--ease-out) both; }
  .side-nav a, .header-tabs a, .view-switcher a { transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
  .review-check { transition: background-color 200ms ease; }
  .review-progress-track span { transition: width 320ms var(--ease-out); }
  .calendar-dialog[open], .voice-dialog[open] { animation: gtd-dialog-in 220ms var(--ease-out); }
  dialog[open]::backdrop { animation: gtd-fade-in 180ms ease; }
  .login-shell { animation: gtd-heading-in 420ms var(--ease-out) both; }
  .login-submit, .topbar-create, .sidebar-create { transition: background-color 160ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out); }
  .login-submit:hover, .topbar-create:hover, .sidebar-create:hover { box-shadow: 0 4px 14px rgb(8 127 104 / 18%); }
}
@keyframes gtd-heading-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes gtd-dialog-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes gtd-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 1000px) {
  .review-stage-grid { grid-template-columns: 1fr; }
  .review-check { min-height: 0; }
  .settings-card-title { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .calendar-head > div:first-child, .calendar-head-actions { flex: 0 1 auto; }
  .content-shell { padding-top: 22px; }
  .page-head { gap: 18px; margin-bottom: 22px; }
  .page-head h1, .pane-title-row h1, .plan-heading h1 { font-size: 28px; }
  .pane-header, .hard-landscape-panel, .system-signals-panel, .review-stage, .review-complete-panel, .settings-card { padding: 18px; }
  .item-card, .gmail-row { padding-block: 15px; }
  .task-title { font-size: 14px; }
  .project-next-form { padding: 16px; grid-template-columns: minmax(0, 1fr); }
  .project-next-form > label, .project-next-form .context-picker, .project-next-form > button { grid-column: 1; }
  .plan-controls { padding: 20px; border-radius: 16px; }
  .settings-card { gap: 12px; }
  .settings-actions > :is(a, button) { max-width: 100%; white-space: normal; }
  .login-story { padding: 28px; }
  .login-shell { border-radius: 18px; }
}

.execution-badge{display:inline-block;font-size:10px;font-weight:500;line-height:1.2;padding:1px 4px;border-radius:4px;vertical-align:middle;white-space:nowrap;margin-right:3px;color:#596273;background:#eef0f3;}
.execution-ai{color:#236c56;background:#e9f3ed;}.execution-human{color:#5f6084;background:#eeeef5;}.execution-clarify{color:#856439;background:#f6f0e5;}
.calendar-event-title .execution-badge{font-size:9px;padding:1px 3px;}
