:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18332e;
  background: #f3f5f2;
  font-synthesis: none;
  --ink: #18332e;
  --muted: #64716d;
  --line: #dce3df;
  --surface: #fff;
  --forest: #173a34;
  --forest-2: #24564c;
  --sage: #dcebe4;
  --blue-soft: #e6eff5;
  --blue: #2d607a;
  --amber-soft: #fff1d7;
  --amber: #8b5b13;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; background: #f3f5f2; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.skip-link { position: fixed; left: -9999px; top: 12px; z-index: 20; padding: 10px 14px; border-radius: 6px; background: #fff; }
.skip-link:focus { left: 12px; }
.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; }

.demo-boundary { position: fixed; inset: 0 0 auto; z-index: 10; min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 16px; background: #f8e8dc; border-bottom: 1px solid #e9c9b6; color: #7b3d27; font-size: 12px; }
.demo-boundary strong { text-transform: uppercase; letter-spacing: .05em; }
.boundary-dot { width: 7px; height: 7px; border-radius: 50%; background: #b65b39; }

.app-shell { min-height: 100vh; padding-top: 34px; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; top: 34px; bottom: 0; left: 0; width: 248px; display: flex; flex-direction: column; padding: 22px 16px 16px; background: var(--forest); color: #eaf2ee; }
.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; border-bottom: 1px solid rgba(255,255,255,.11); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e6bd88; color: #173a34; font: 700 20px Georgia, serif; }
.brand-lockup div, .user-card div { min-width: 0; display: grid; gap: 2px; }
.brand-lockup strong { font: 700 16px Georgia, serif; }
.brand-lockup span:last-child, .user-card span:last-child { color: #aabdb6; font-size: 11px; }
.primary-nav { display: grid; gap: 5px; padding-top: 24px; }
.primary-nav a, .guide-link { min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 7px; color: #c9d8d2; text-decoration: none; font-size: 14px; font-weight: 650; }
.primary-nav a:hover, .primary-nav a[aria-current="page"], .guide-link:hover, .guide-link[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.nav-icon { width: 19px; text-align: center; font-size: 17px; }
.nav-count { margin-left: auto; min-width: 23px; padding: 2px 7px; border-radius: 999px; background: #e6bd88; color: #173a34; text-align: center; font-size: 11px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 12px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 14px 10px 4px; border-top: 1px solid rgba(255,255,255,.11); }
.avatar { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border-radius: 50%; background: #315e54; font-size: 11px; font-weight: 800; }
.user-card strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }

main { grid-column: 2; min-width: 0; padding: 0 34px 52px; }
.page { width: min(1240px, 100%); margin: 0 auto; }
.page-header { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.page-heading p { margin: 0 0 5px; color: #6f7c77; font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); }
h1 { margin: 0; font: 500 clamp(28px, 3vw, 38px) Georgia, serif; letter-spacing: -.025em; }
h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
h3 { margin: 0; font-size: 15px; }
p { line-height: 1.55; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.today-chip { padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #53615c; font-size: 12px; font-weight: 700; }

.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border: 1px solid transparent; border-radius: 6px; font-weight: 750; font-size: 13px; text-decoration: none; }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: var(--forest-2); }
.button-secondary { border-color: #cfd8d3; background: #fff; color: var(--ink); }
.button-secondary:hover { background: #f5f7f5; }
.button-quiet { background: transparent; color: var(--forest-2); }
.button-danger { border-color: #e0b7ab; background: #fff; color: #8a3928; }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid rgba(60,120,150,.3); outline-offset: 2px; }

.content-stack { display: grid; gap: 22px; padding-top: 24px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.welcome-row p { max-width: 650px; margin: 8px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card { min-height: 126px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 4px 18px rgba(20,52,45,.035); }
.metric-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; color: #66736f; font-size: 12px; font-weight: 700; }
.metric-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 6px; background: var(--sage); color: var(--forest); }
.metric-card strong { display: block; margin-top: 14px; font: 500 30px Georgia, serif; }
.metric-card small { color: #74807c; font-size: 11px; }

.two-column { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 5px 20px rgba(20,52,45,.035); overflow: hidden; }
.card-header { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 18px; }
.work-list { display: grid; }
.work-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 15px 18px; border-bottom: 1px solid #e8ece9; text-decoration: none; }
.work-item:last-child { border-bottom: 0; }
.work-item:hover, tbody tr:hover { background: #fafbf9; }
.work-time { color: #40534d; font-size: 12px; font-weight: 800; }
.work-main { min-width: 0; }
.work-main strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.work-main span { display: block; margin-top: 4px; color: #71807b; font-size: 11px; }
.empty-state { padding: 42px 22px; text-align: center; }
.empty-state strong { display: block; margin-bottom: 7px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }

.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-incomplete { background: var(--amber-soft); color: var(--amber); }
.status-ready { background: var(--blue-soft); color: var(--blue); }
.status-confirmed { background: var(--sage); color: #27634f; }
.progress-list { display: grid; gap: 15px; }
.progress-row { display: grid; gap: 7px; }
.progress-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #53615c; font-size: 11px; font-weight: 700; }
.progress-track { height: 7px; border-radius: 999px; background: #e9eeeb; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: #4b8072; }
.progress-0 { width: 0; }
.progress-13 { width: 13%; }
.progress-25 { width: 25%; }
.progress-33 { width: 33%; }
.progress-38 { width: 38%; }
.progress-50 { width: 50%; }
.progress-63 { width: 63%; }
.progress-67 { width: 67%; }
.progress-75 { width: 75%; }
.progress-88 { width: 88%; }
.progress-100 { width: 100%; }
.boundary-card { padding: 18px; background: #f8eee6; border-color: #ead4c5; }
.boundary-card h3 { color: #7b3d27; }
.boundary-card p { margin: 7px 0 0; color: #77584d; font-size: 12px; }

.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 15px; background: #f7f9f7; color: #66736f; font-size: 10px; font-weight: 850; letter-spacing: .055em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 15px; border-top: 1px solid #e7ece9; color: #3e514b; font-size: 12px; vertical-align: middle; }
.table-link { color: var(--ink); font-weight: 800; text-decoration: none; }
.table-link:hover { text-decoration: underline; }
.subtext { display: block; margin-top: 3px; color: #7b8783; font-size: 10px; }

.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 354px; gap: 18px; align-items: start; }
.request-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.summary-cell { padding: 16px 18px; background: #fbfcfb; }
.summary-cell span { display: block; margin-bottom: 5px; color: #74807c; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.summary-cell strong { font-size: 12px; }
.form-section { padding: 20px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.section-intro { margin-bottom: 17px; }
.section-intro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; gap: 6px; }
.field label { color: #455750; font-size: 11px; font-weight: 800; }
.field select { width: 100%; min-height: 40px; padding: 7px 32px 7px 10px; border: 1px solid #ced8d2; border-radius: 6px; background: #fff; color: var(--ink); }
.field select[aria-invalid="true"] { border-color: #c47b42; background: #fffaf3; }
.required { color: #a54931; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.form-hint { margin: 0; color: #6e7b76; font-size: 11px; }
.action-group { display: flex; gap: 8px; }
.side-stack { display: grid; gap: 14px; }
.readiness { padding: 18px; }
.readiness-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.readiness-score { font: 500 23px Georgia, serif; }
.check-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: start; gap: 9px; color: #5c6a65; font-size: 11px; }
.check-icon { display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; border-radius: 50%; background: #e8ece9; color: #77837f; font-size: 10px; font-weight: 900; }
.check-complete .check-icon { background: var(--sage); color: #27634f; }
.check-complete { color: #314c44 !important; }
.confirm-panel { padding: 18px; background: var(--forest); color: #fff; }
.confirm-panel h3 { color: #fff; }
.confirm-panel p { margin: 7px 0 15px; color: #c9d7d2; font-size: 11px; }
.confirm-panel .button { width: 100%; background: #e6bd88; color: #173a34; }

.timeline { position: relative; display: grid; padding: 2px 0; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 1px; background: #d7dfdb; }
.timeline-event { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.timeline-dot { z-index: 1; width: 21px; height: 21px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #4b8072; box-shadow: 0 0 0 1px #bcd0c7; color: #fff; font-size: 8px; }
.timeline-content strong { display: block; font-size: 12px; }
.timeline-content p { margin: 3px 0 0; color: #6d7b76; font-size: 11px; }
.timeline-meta { margin-top: 4px; color: #8a9591; font-size: 10px; }
.journey-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.client-identity { display: flex; align-items: center; gap: 13px; }
.client-monogram { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sage); color: var(--forest); font: 17px Georgia, serif; }
.client-identity p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-step { padding: 20px; }
.step-number { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 27px; border-radius: 50%; background: var(--sage); color: var(--forest); font-size: 11px; font-weight: 900; }
.guide-step p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.guide-boundary { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 22px; }
.guide-boundary p { max-width: 720px; margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.success-note { padding: 14px 16px; border: 1px solid #b9d6c9; border-radius: 7px; background: #eef8f3; color: #2d634f; font-size: 12px; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-layout { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .confirm-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .confirm-panel p { margin-bottom: 0; }
  .confirm-panel .button { width: auto; flex: 0 0 auto; }
}

@media (max-width: 800px) {
  .demo-boundary span:last-child { display: none; }
  .app-shell { display: block; padding-top: 34px; }
  .sidebar { position: static; width: auto; padding: 13px 16px; display: block; }
  .brand-lockup { padding: 0 0 12px; border-bottom: 0; }
  .primary-nav { display: flex; overflow-x: auto; padding: 0; gap: 4px; }
  .primary-nav a { flex: 0 0 auto; }
  .sidebar-bottom { display: none; }
  main { padding: 0 18px 40px; }
  .page-header { min-height: 86px; }
  .two-column, .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-header, .welcome-row, .form-actions, .journey-header { align-items: flex-start; flex-direction: column; }
  .page-header { padding: 18px 0; }
  .header-actions { width: 100%; justify-content: space-between; }
  .metric-grid, .field-grid, .side-stack { grid-template-columns: 1fr; }
  .request-summary { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 38px minmax(0, 1fr); }
  .work-item .status { grid-column: 2; }
  .confirm-panel { display: block; }
  .confirm-panel p { margin-bottom: 15px; }
  .confirm-panel .button { width: 100%; }
  .guide-boundary { grid-template-columns: 1fr; }
  .action-group { width: 100%; }
  .action-group .button { flex: 1; }
}
