:root {
  --paper: var(--brand-paper, #f5f2ea);
  --paper-2: var(--brand-paper-2, #eae7df);
  --white: var(--brand-white, #ffffff);
  --ink: var(--brand-ink, #11120f);
  --muted: var(--brand-muted, #67675f);
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --coral: var(--brand-coral, #ff5a3c);
  --blue: var(--brand-blue, #3559ff);
  --signal: var(--brand-signal, #d8f65a);
  --font-head: var(--brand-font-heading, "Manrope", Arial, sans-serif);
  --font-body: var(--brand-font-body, "Inter", Arial, sans-serif);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { color: inherit; }
a { text-decoration: none; }
h1, h2, h3, p, ul, ol, dl { margin-top: 0; }
h1, h2, h3, strong { font-family: var(--font-head); }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 220px;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.dashboard-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 28px; font-size: 19px; }
.dashboard-brand .brand-mark { width: 38px; height: 38px; }
.dashboard-brand strong { font-family: var(--brand-font-wordmark, var(--font-head)); font-weight: var(--brand-wordmark-weight, 800); }
.dashboard-nav { display: grid; gap: 4px; }
.dashboard-nav button { min-height: 44px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; color: var(--muted); text-align: left; border: 0; border-radius: 6px; background: transparent; font-weight: 650; }
.dashboard-nav button:hover { color: var(--ink); background: var(--paper); }
.dashboard-nav button.is-active { color: var(--ink); background: var(--paper-2); box-shadow: inset 3px 0 0 var(--coral); }
.dashboard-nav svg, .dashboard-icon-button svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dashboard-account { margin-top: auto; padding: 16px 4px 0; display: grid; grid-template-columns: 38px 1fr 34px; gap: 9px; align-items: center; border-top: 1px solid var(--line); }
.dashboard-avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--font-head); font-size: 12px; font-weight: 800; }
.dashboard-account div { min-width: 0; display: grid; }
.dashboard-account strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-account small { color: var(--muted); font-size: 10px; }
.dashboard-icon-button { position: relative; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.dashboard-icon-button:hover { background: var(--paper-2); }

.dashboard-main { min-height: 100vh; margin-left: 220px; }
.dashboard-topbar { position: sticky; top: 0; z-index: 20; min-height: 66px; padding: 10px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.dashboard-topbar > div:first-child { display: grid; gap: 1px; }
.dashboard-topbar > div:first-child span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.dashboard-topbar > div:first-child strong { font-size: 14px; }
.dashboard-topbar__actions { display: flex; align-items: center; gap: 14px; }
.dashboard-topbar time { color: var(--muted); font-size: 12px; }
.notification-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.dashboard-content { width: min(100%, 1500px); margin: 0 auto; padding: 28px 32px 60px; }
.demo-notice { margin-bottom: 22px; padding: 15px 18px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; color: var(--ink); background: color-mix(in srgb, var(--signal) 42%, var(--paper)); border: 1px solid var(--ink); border-radius: 8px; }
.demo-notice strong { display: block; margin-bottom: 2px; font-size: 13px; }
.demo-notice > span { grid-column: 1; margin: 0; color: var(--muted); font-size: 12px; }
.demo-notice a { grid-column: 2; grid-row: 1 / span 2; color: var(--white); min-height: 38px; padding: 9px 13px; display: grid; place-items: center; background: var(--ink); border-radius: 5px; font-family: var(--font-head); font-size: 11px; font-weight: 760; }
.demo-notice a:hover { background: var(--blue); }
.is-demo .dashboard-account { background: color-mix(in srgb, var(--signal) 20%, transparent); }
.dashboard-view { animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.project-heading { padding-bottom: 26px; display: grid; grid-template-columns: 1fr 300px; gap: 60px; border-bottom: 1px solid var(--line); }
.dashboard-kicker { margin-bottom: 8px; color: var(--muted); font-family: var(--font-head); font-size: 11px; font-weight: 760; text-transform: uppercase; }
.dashboard-kicker span { width: 8px; height: 8px; margin-right: 6px; display: inline-block; border-radius: 50%; background: var(--signal); }
.project-heading h1, .view-heading h1 { margin-bottom: 9px; font-size: 32px; line-height: 1.15; }
.project-heading > div:first-child > p:last-child { max-width: 690px; margin: 0; color: var(--muted); }
.project-progress { display: grid; align-content: start; gap: 4px; }
.project-progress span { color: var(--muted); font-size: 11px; }
.project-progress strong { font-size: 32px; }
.project-progress i { height: 5px; margin-top: 7px; display: block; background: var(--paper-2); }
.project-progress i b { width: 34%; height: 100%; display: block; background: var(--coral); }

.project-facts { margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.project-facts div { padding: 0 20px; border-right: 1px solid var(--line); }
.project-facts div:first-child { padding-left: 0; }
.project-facts div:last-child { border-right: 0; }
.project-facts dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.project-facts dd { margin: 0; font-family: var(--font-head); font-size: 13px; font-weight: 700; }

.dashboard-band { padding: 22px 0 0; }
.dashboard-band > h2, .dashboard-tool h2 { margin-bottom: 15px; font-size: 18px; }
.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics-row article { min-height: 130px; padding: 20px; display: grid; align-content: start; border-right: 1px solid var(--line); }
.metrics-row article:first-child { padding-left: 0; }
.metrics-row article:last-child { border-right: 0; }
.metrics-row span { color: var(--muted); font-size: 11px; }
.metrics-row strong { margin: 9px 0 2px; font-size: 28px; font-weight: 650; }
.metrics-row small { color: var(--muted); font-size: 10px; }
.metrics-row small:first-letter { color: var(--signal); }
.is-coral { color: var(--coral) !important; }

.dashboard-grid { display: grid; border-bottom: 1px solid var(--line); }
.dashboard-grid--primary { grid-template-columns: 1.15fr .85fr; }
.dashboard-grid--secondary { grid-template-columns: 1.15fr .85fr; }
.dashboard-tool { min-width: 0; padding: 25px 26px 28px 0; }
.dashboard-tool + .dashboard-tool { padding-right: 0; padding-left: 26px; border-left: 1px solid var(--line); }
.dashboard-tool > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dashboard-tool > header button { padding: 5px 0; color: var(--blue); border: 0; background: transparent; font-size: 11px; font-weight: 700; }

.timeline-scale { margin: 3px 50px 8px 155px; display: grid; grid-template-columns: repeat(3, 1fr); color: var(--muted); font-size: 9px; text-align: center; }
.project-timeline { margin: 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.project-timeline li { display: grid; grid-template-columns: 145px 1fr 42px; gap: 10px; align-items: center; font-size: 10px; }
.project-timeline li > span { font-weight: 650; }
.project-timeline i { position: relative; height: 13px; display: block; background-image: linear-gradient(90deg, transparent calc(33.33% - 1px), var(--line) 33.33%, transparent calc(33.33% + 1px), transparent calc(66.66% - 1px), var(--line) 66.66%, transparent calc(66.66% + 1px)); }
.project-timeline i b { position: absolute; left: var(--start); width: var(--width); height: 100%; display: block; background: color-mix(in srgb, var(--ink) 12%, var(--paper)); }
.project-timeline i b.is-active { background: var(--blue); }
.project-timeline li:first-child i b { background: var(--signal); }
.project-timeline em { color: var(--muted); font-size: 9px; font-style: normal; text-align: right; }

.current-tasks ul, .activity-tool ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.current-tasks li { min-height: 57px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.current-tasks li div { display: grid; gap: 2px; }
.current-tasks li strong { font-size: 11px; }
.current-tasks li span, .current-tasks li em { color: var(--muted); font-size: 9px; font-style: normal; }

.activity-tool li { min-height: 56px; padding: 9px 0; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.activity-icon { width: 24px; height: 24px; display: grid; place-items: center; color: var(--white); background: var(--blue); border-radius: 50%; font-weight: 800; }
.activity-tool li:nth-child(3) .activity-icon { color: var(--ink); background: var(--signal); }
.activity-tool li div { display: flex; justify-content: space-between; gap: 15px; }
.activity-tool li strong { font-size: 11px; }
.activity-tool time { color: var(--muted); font-size: 9px; }
.help-tool p { max-width: 430px; color: var(--muted); }
.help-tool small { display: block; margin-top: 14px; color: var(--muted); }

.dashboard-button { min-height: 42px; padding: 10px 16px; color: var(--white); border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); font-family: var(--font-head); font-size: 12px; font-weight: 750; }
.dashboard-button:hover { background: var(--blue); border-color: var(--blue); }

.view-heading { padding-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.view-heading > span { color: var(--muted); font-size: 11px; }
.phase-list { margin: 0; padding: 0; list-style: none; }
.phase-list li { min-height: 140px; padding: 25px 0; display: grid; grid-template-columns: 55px 1fr 120px; gap: 22px; align-items: start; border-bottom: 1px solid var(--line); }
.phase-list li > span { color: var(--muted); font-family: var(--font-head); font-weight: 800; }
.phase-list h2 { margin-bottom: 7px; font-size: 22px; }
.phase-list p { max-width: 700px; margin: 0; color: var(--muted); }
.phase-list em { color: var(--muted); font-size: 11px; font-style: normal; text-align: right; }
.phase-list .is-complete > span, .phase-list .is-complete em { color: color-mix(in srgb, var(--signal) 45%, var(--ink)); }
.phase-list .is-current { background: color-mix(in srgb, var(--blue) 4%, transparent); }
.phase-list .is-current > span, .phase-list .is-current em { color: var(--blue); }

.task-filters { padding: 18px 0; display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.task-filters button { min-height: 36px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 5px; background: transparent; font-size: 11px; font-weight: 700; }
.task-filters button.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.task-table label { min-height: 72px; padding: 14px 0; display: grid; grid-template-columns: 28px 1fr 120px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); cursor: pointer; }
.task-table input { width: 18px; height: 18px; accent-color: var(--blue); }
.task-table label > span { display: grid; gap: 3px; }
.task-table strong { font-size: 13px; }
.task-table small, .task-table em { color: var(--muted); font-size: 10px; font-style: normal; }
.task-table em { text-align: right; }
.task-table label.is-done strong { color: var(--muted); text-decoration: line-through; }

.document-list article { min-height: 88px; padding: 15px 0; display: grid; grid-template-columns: 48px 1fr 80px; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.document-list article > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--coral); background: var(--white); border: 1px solid var(--line); font-family: var(--font-head); font-size: 9px; font-weight: 800; }
.document-list h2 { margin: 0 0 3px; font-size: 14px; }
.document-list p { margin: 0; color: var(--muted); font-size: 10px; }
.document-list button { padding: 7px 0; color: var(--blue); border: 0; background: transparent; font-size: 11px; font-weight: 700; }

.support-workspace { display: grid; grid-template-columns: 1fr 320px; gap: 55px; padding-top: 28px; }
.support-workspace form { display: grid; gap: 18px; }
.support-workspace label { display: grid; gap: 7px; }
.support-workspace label span { font-family: var(--font-head); font-size: 11px; font-weight: 750; }
.support-workspace input, .support-workspace textarea { width: 100%; padding: 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; background: var(--white); resize: vertical; }
.support-workspace form p { min-height: 20px; margin: 0; color: color-mix(in srgb, var(--signal) 45%, var(--ink)); font-size: 11px; }
.support-workspace aside { padding-left: 28px; border-left: 1px solid var(--line); }
.support-workspace aside h2 { font-size: 18px; }
.support-workspace aside a { display: block; margin-bottom: 10px; font-family: var(--font-head); font-weight: 750; }
.support-workspace aside p { margin-top: 26px; color: var(--muted); }

.dashboard-toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 340px; padding: 13px 16px; color: var(--white); background: var(--ink); border-radius: 6px; box-shadow: 0 12px 36px color-mix(in srgb, var(--ink) 24%, transparent); font-size: 12px; }

@media (max-width: 1100px) {
  .dashboard-sidebar { width: 190px; }
  .dashboard-main { margin-left: 190px; }
  .dashboard-content { padding-inline: 24px; }
  .project-heading { grid-template-columns: 1fr 240px; gap: 35px; }
  .dashboard-grid--primary, .dashboard-grid--secondary { grid-template-columns: 1fr; }
  .dashboard-tool + .dashboard-tool { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .dashboard-tool { padding-right: 0; }
}

@media (max-width: 820px) {
  .dashboard-sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 9px 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-brand { padding: 0; }
  .dashboard-brand strong { display: none; }
  .dashboard-brand .brand-mark { width: 36px; height: 36px; }
  .dashboard-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .dashboard-nav::-webkit-scrollbar { display: none; }
  .dashboard-nav button { min-width: max-content; min-height: 40px; padding: 8px 10px; gap: 7px; font-size: 11px; }
  .dashboard-nav button.is-active { box-shadow: inset 0 -3px 0 var(--coral); }
  .dashboard-nav svg { width: 16px; height: 16px; }
  .dashboard-account { margin: 0; padding: 0; display: block; border: 0; }
  .dashboard-account > span, .dashboard-account > div { display: none; }
  .dashboard-main { margin-left: 0; }
  .dashboard-topbar { top: 59px; padding-inline: 18px; }
  .dashboard-content { padding: 24px 18px 52px; }
  .demo-notice { grid-template-columns: 1fr; gap: 10px; }
  .demo-notice > span, .demo-notice a { grid-column: auto; grid-row: auto; }
  .demo-notice a { justify-self: start; }
  .project-heading { grid-template-columns: 1fr; gap: 20px; }
  .project-progress { max-width: 360px; }
  .project-facts { grid-template-columns: repeat(2, 1fr); }
  .project-facts div { padding: 13px 16px; border-bottom: 1px solid var(--line); }
  .project-facts div:nth-child(odd) { padding-left: 0; }
  .project-facts div:nth-child(even) { border-right: 0; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .metrics-row article:nth-child(2) { border-right: 0; }
  .metrics-row article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metrics-row article:nth-child(3) { padding-left: 0; }
  .timeline-scale { margin-left: 125px; }
  .project-timeline li { grid-template-columns: 115px 1fr 38px; }
  .support-workspace { grid-template-columns: 1fr; }
  .support-workspace aside { padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 560px) {
  .dashboard-nav button span { display: none; }
  .dashboard-nav button { min-width: 40px; justify-content: center; }
  .dashboard-topbar > div:first-child span, .dashboard-topbar time { display: none; }
  .dashboard-topbar > div:first-child strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .project-heading h1, .view-heading h1 { font-size: 27px; }
  .project-facts, .metrics-row { grid-template-columns: 1fr; }
  .project-facts div, .project-facts div:nth-child(odd), .metrics-row article, .metrics-row article:nth-child(3) { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics-row article { min-height: 105px; }
  .timeline-scale { display: none; }
  .project-timeline li { grid-template-columns: 105px 1fr; }
  .project-timeline em { display: none; }
  .activity-tool li div { display: grid; }
  .view-heading { align-items: flex-start; flex-direction: column; }
  .phase-list li { grid-template-columns: 36px 1fr; }
  .phase-list em { grid-column: 2; text-align: left; }
  .task-table label { grid-template-columns: 26px 1fr; }
  .task-table em { grid-column: 2; text-align: left; }
  .document-list article { grid-template-columns: 42px 1fr; }
  .document-list button { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
