/* Shared type scale: content 16px+, supporting labels 14px.
   Responsive layouts reflow content instead of shrinking text. */
:root {
  color-scheme: light;
  --bg: #eaf4ff;
  --surface: rgb(255 255 255 / 72%);
  --surface-solid: #f6fbff;
  --ink: #193b56;
  --muted: #4f657b;
  --line: rgb(81 135 181 / 18%);
  --line-strong: rgb(74 132 183 / 32%);
  --accent: #1478b9;
  --inverse: #ffffff;
  --aqua: #188a99;
  --lavender: #7764ae;
  --success: #246d5a;
  --warning: #996022;
  --danger: #ad4f46;
  --layer-soft: rgb(119 187 238 / 9%);
  --layer-inset: rgb(226 242 255 / 44%);
  --track: #dbe9f5;
  --status-progress: #479ed6;
  --status-done: #60ad98;
  --status-todo: #b9cade;
  /* Compatibility aliases: status meaning is also carried by labels/shapes. */
  --teal: var(--success);
  --green: var(--status-done);
  --coral: var(--danger);
  --amber: var(--warning);
  --project-color: var(--accent);
  --glass-blur: 18px;
  --glass-highlight: linear-gradient(135deg, rgb(255 255 255 / 55%), transparent 48%, rgb(255 255 255 / 12%));
  --glass-shadow: 0 14px 42px rgb(48 102 161 / 8%), inset 0 1px 0 rgb(255 255 255 / 95%);
  --sidebar: 240px;
  --radius: 18px;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; font-size: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: var(--text-base); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary, select { cursor: pointer; }
button { border: 0; transition: background .18s, border-color .18s; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
svg.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.coral-text { color: var(--coral) !important; }
.green-text { color: var(--teal) !important; }
.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; top: -100px; left: 20px; background: var(--surface); padding: 14px 20px; z-index: 100; }
.skip-link:focus { top: 10px; }

/* Navigation */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar);
  padding: 30px 18px 20px; background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; color: var(--ink); font-size: 23px; letter-spacing: -.6px; }
.brand b { font-weight: 450; }
.brand-title { display: flex; flex-direction: column; min-width: 0; }
.brand-team { font-size: 12px; letter-spacing: .1px; white-space: nowrap; }
.brand-title b { display: block; font-size: 20px; letter-spacing: -.5px; white-space: nowrap; }
.brand small { display: block; margin-top: 6px; font-size: 10px; letter-spacing: 1.8px; color: var(--ink); }
.brand-mark { position: relative; padding-right: 12px; font-size: 42px; line-height: 1; font-weight: 650; letter-spacing: -5px; }
.brand-mark span { position: absolute; top: -2px; right: -3px; font-size: 22px; color: var(--ink); }
.workspace { display: flex; align-items: center; gap: 10px; padding: 14px 10px; margin: 32px 0 25px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--ink); }
.workspace-icon { background: var(--surface); padding: 5px 11px; border-radius: 6px; font-weight: 600; }
.workspace small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink); }
.workspace-dot { width: 6px; height: 6px; background: var(--surface); border-radius: 50%; flex-shrink: 0; }
.nav-caption, .tiny-label { font-size: var(--text-xs); letter-spacing: 1.4px; color: var(--ink); }
.nav-caption { padding: 0 12px; margin-bottom: 10px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 13px 12px; margin: 5px 0; border-radius: 8px; font-size: 16px; }
.nav-link.active { color: var(--ink); background: var(--surface); }
.nav-link:hover { background: var(--surface); }
.nav-dot { width: 5px; height: 5px; background: var(--surface); border-radius: 50%; margin-left: auto; }
.nav-count { margin-left: auto; color: var(--ink); font-size: var(--text-sm); }
.sidebar-note { margin-top: auto; border-top: 1px solid var(--line); padding: 25px 8px 22px; }
.sidebar-note > div { margin: 14px 0 10px; font-size: 16px; color: var(--ink); }
.sidebar-note p { font-size: 13px; line-height: 1.9; color: var(--ink); }
.jira-mark { color: var(--ink); margin-right: 5px; }
.snapshot-label { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13px; color: var(--ink); }
.snapshot-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface); }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; padding: 19px 3px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.sidebar-bottom small { display: block; margin-top: 4px; color: var(--ink); font-size: 12px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; color: var(--ink); background: var(--surface); font-size: 13px; font-weight: 600; }
.avatar.small { width: 34px; height: 34px; }
.page { margin-left: var(--sidebar); }
.topbar { height: 72px; padding: 0 36px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb { display: flex; align-items: center; gap: 14px; font-size: var(--text-sm); color: var(--muted); }
.breadcrumb > span { color: var(--ink); }
.breadcrumb strong { font-weight: 550; }
.topbar-right { display: flex; gap: 20px; align-items: center; }
.read-only { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: var(--text-sm); }
.read-only .icon { width: 16px; height: 16px; }

/* Shared heading / control styles */
main { max-width: 1780px; margin: auto; padding: 36px; }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); letter-spacing: 1.5px; font-weight: 600; color: var(--ink); }
.eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: var(--surface); }
h1 { font-size: clamp(28px, 2.2vw, 38px); line-height: 1.4; letter-spacing: -1.3px; margin: 10px 0; font-weight: 650; word-break: keep-all; overflow-wrap: anywhere; }
h1 > span { color: var(--ink); margin-left: 3px; }
.page-heading p, .section-heading p { color: var(--muted); font-size: 16px; word-break: keep-all; overflow-wrap: anywhere; }
.button, .collapse-button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); font-size: var(--text-sm); font-weight: 550; white-space: nowrap;
}
.button:hover, .collapse-button:hover { background: var(--surface); border-color: var(--line); }
.section-heading { margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; line-height: 1.5; letter-spacing: -.8px; font-weight: 650; }
.section-heading p { margin-top: 6px; }
.count-pill { display: inline-flex; justify-content: center; align-items: center; min-width: 28px; height: 27px; padding: 0 6px; background: var(--surface); border-radius: 6px; font-size: var(--text-sm); color: var(--ink); letter-spacing: 0; }
select { max-width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 9px 30px 9px 12px; color: var(--ink); font-size: 16px; }
.context-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 26px 0 20px; }
.live-date { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: var(--text-sm); }
.live-date strong { color: var(--ink); font-weight: 600; }
.live-date .icon { width: 17px; height: 17px; }
.divider { color: var(--ink); margin: 0 5px; }
.scope-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--text-sm); }

/* Overview metrics */
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.summary-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-heading h2 { font-size: 17px; font-weight: 600; color: var(--ink); }
.metric-icon { color: var(--ink); }
.metric-icon.coral { color: var(--coral); }
.gauge { position: relative; align-self: center; width: 240px; max-width: 100%; margin: 18px auto 10px; }
.gauge > svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge-track, .gauge-fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.gauge-track { stroke: var(--line-strong); }
.gauge-fill { stroke: var(--line-strong); }
.gauge-ticks { stroke: var(--line-strong); stroke-width: 1; }
.gauge-value { position: absolute; width: 100%; bottom: 16%; text-align: center; font-size: 46px; font-weight: 600; letter-spacing: -2px; line-height: 1; }
.gauge-value > span { font-size: 23px; margin-left: 3px; color: var(--ink); font-weight: 450; letter-spacing: 0; }
.gauge-value small { display: block; margin-top: 9px; font-size: 14px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.gauge-min, .gauge-max { position: absolute; bottom: -3px; font-size: 12px; color: var(--ink); }
.gauge-min { left: 7%; }
.gauge-max { right: 3%; }
.gauge-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 7px; font-size: var(--text-sm); color: var(--muted); flex-wrap: wrap; }
.gauge-foot > span { display: flex; gap: 4px; align-items: center; }
.gauge-foot strong { color: var(--ink); font-weight: 600; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-right: 3px; }
.legend-dot.teal { background: var(--teal); }
.legend-dot.gray { background: var(--surface); }
.legend-dot.green { background: var(--green); }
.legend-dot.coral { background: var(--coral); }
.metric-value { font-size: 52px; font-weight: 600; line-height: 1.2; letter-spacing: -1.8px; margin-top: 26px; color: var(--ink); }
.metric-value > span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 7px; }
.metric-caption { margin-top: 9px; font-size: var(--text-sm); line-height: 1.7; color: var(--muted); }
.status-bar { display: flex; gap: 3px; height: 7px; border-radius: 6px; overflow: hidden; margin-top: auto; }
.status-bar i { border-radius: 6px; }
.status-breakdown { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.status-breakdown > span { display: flex; align-items: center; gap: 3px; }
.status-breakdown b { font-weight: 600; color: var(--ink); margin-left: 2px; }
.metric-bottom { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.metric-bottom small { font-size: var(--text-sm); color: var(--muted); }
.soft-badge { align-self: flex-start; padding: 6px 9px; border-radius: 5px; font-size: var(--text-sm); }
.soft-badge.coral { background: var(--surface); color: var(--ink); }
.schedule-progress { height: 7px; border-radius: 6px; background: var(--surface); margin-top: auto; overflow: hidden; }
.schedule-progress i { display: block; height: 100%; background: var(--surface); border-radius: 6px; }
.metric-bottom.inline { padding-top: 12px; gap: 5px; margin-top: 0; font-size: var(--text-sm); color: var(--muted); }
.metric-bottom strong { color: var(--ink); }
.attention-banner { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.banner-icon { color: var(--ink); }
.attention-banner > div { display: flex; flex-direction: column; gap: 4px; color: var(--ink); font-size: var(--text-sm); }
.attention-banner strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.attention-banner button { display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 8px 0 8px 12px; min-height: 44px; flex-shrink: 0; background: transparent; color: var(--ink); font-size: var(--text-sm); }
.attention-banner button .icon { width: 16px; height: 16px; }

/* Overview roadmap: stays independent of the detail filters. */
.schedule-section { margin-top: 32px; }
.schedule-section .section-heading { flex-wrap: wrap; gap: 12px; }
.schedule-section h2 { font-size: 23px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--text-sm); color: var(--muted); }
.legend > span { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.today-legend { width: 2px; height: 13px; background: var(--surface); margin-right: 4px; }
.timeline-container { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
#timeline { min-width: 800px; }
.timeline-head, .timeline-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 80px; gap: 22px; align-items: center; }
.timeline-head { padding: 10px 0 28px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.timeline-head > span:last-child, .timeline-row > span:last-child { text-align: right; }
.month-axis { height: 22px; position: relative; }
.month-axis > span { position: absolute; top: 0; font-size: var(--text-sm); padding-left: 4px; }
.timeline-today-label { position: absolute; top: -24px; transform: translateX(-50%); z-index: 4; white-space: nowrap; font-size: 13px; font-style: normal; padding: 3px 7px; background: var(--surface); color: var(--ink); border-radius: 5px; }
.timeline-row { min-height: 44px; font-size: 14px; color: var(--ink); }
.timeline-row > a { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 16px; font-weight: 500; }
.timeline-row > a:hover { text-decoration: underline; color: var(--ink); }
.timeline-row > a > i { width: 8px; height: 8px; flex-shrink: 0; border-radius: 3px; }
.timeline-track { height: 100%; min-height: 44px; position: relative; display: flex; align-items: center; }
.month-grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--surface); }
.timeline-bar { position: absolute; display: flex; align-items: center; height: 27px; min-width: 3px; overflow: hidden; white-space: nowrap; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; }
.timeline-bar > span { padding-left: 10px; }
.timeline-bar.late { background: var(--surface); border-color: var(--line); color: var(--ink); }
.today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--surface); opacity: .65; z-index: 3; }
.timeline-undated { padding-left: 5px; font-size: 14px; color: var(--ink); }
.timeline-empty { padding: 25px; text-align: center; }

/* Project controls */
.project-section { margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border-radius: 9px; }
.tab { min-height: 44px; padding: 9px 15px; display: flex; align-items: center; gap: 9px; background: transparent; border-radius: 6px; font-size: 15px; color: var(--ink); white-space: nowrap; }
.tab span { color: var(--ink); font-size: 14px; }
.tab.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 5px rgb(0 0 0 / 18%); }
.filter-inputs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.filter-inputs select { font-size: 15px; }
.search-field { display: flex; gap: 9px; align-items: center; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.search-field .icon { width: 18px; height: 18px; color: var(--ink); }
.search-field input { min-width: 0; width: 185px; border: 0; outline: none; background: transparent; padding: 0; font-size: 16px; color: var(--ink); }
.search-field input::placeholder { color: var(--ink); }
.search-field:focus-within { outline: 3px solid var(--line); outline-offset: 2px; }
.results-label { padding: 14px 0 20px; font-size: var(--text-sm); color: var(--muted); }

/* One project per row, expanded by default. */
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.project-card { min-width: 0; overflow: clip; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 12px rgb(0 0 0 / 18%); scroll-margin-top: 24px; }
.card-heading { display: flex; align-items: center; gap: 15px; padding: 25px 28px 20px; }
.component-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 13px; color: var(--project-color); border: 1px solid color-mix(in srgb, var(--project-color) 17%, var(--line)); background: var(--surface); }
.component-icon .icon { width: 28px; height: 28px; }
.component-name { min-width: 0; }
.component-name > span { display: block; font-size: var(--text-sm); color: var(--ink); letter-spacing: .3px; }
.component-name h3 { font-size: 29px; font-weight: 600; line-height: 1.4; letter-spacing: -.6px; color: var(--ink); overflow-wrap: anywhere; }
.card-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; font-size: var(--text-sm); white-space: nowrap; line-height: 1.5; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.progress { color: var(--ink); background: var(--surface); }
.status-badge.todo { color: var(--ink); background: var(--surface); }
.status-badge.done { color: var(--ink); background: var(--surface); }
.collapse-button { color: var(--ink); min-width: 96px; }
.collapse-button .icon { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .18s; }
.collapse-button[aria-expanded="true"] .icon { transform: rotate(-90deg); }
.project-overview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .85fr); gap: 32px; padding: 0 28px 25px; }
.project-context h4 { font-size: 20px; line-height: 1.5; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.component-description { font-size: 16px; line-height: 1.85; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.card-owner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 18px 0; font-size: var(--text-sm); color: var(--ink); }
.card-owner > span { display: inline-flex; align-items: center; gap: 8px; }
.owner-avatar { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 12px; }
.issue-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 14px; }
.issue-link:hover { text-decoration: underline; }
.issue-link .icon { width: 15px; height: 15px; }
.next-task { display: flex; align-items: baseline; gap: 12px; border-radius: 7px; background: var(--surface); padding: 11px 13px; font-size: var(--text-sm); line-height: 1.8; }
.next-task > span { color: var(--ink); white-space: nowrap; }
.next-task p { color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.project-metrics { align-self: start; padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; min-width: 0; }
.card-progress > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
.card-progress strong { font-size: 32px; line-height: 1.25; font-weight: 600; letter-spacing: -.8px; color: var(--ink); }
.card-progress strong small { font-size: 19px; margin-left: 2px; font-weight: 450; }
.progress-track { height: 8px; border-radius: 6px; background: var(--surface); overflow: hidden; margin-top: 12px; }
.progress-track i { display: block; height: 100%; border-radius: 6px; background: var(--project-color); }
.progress-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: var(--text-sm); color: var(--ink); }
.progress-caption b { font-weight: 600; }
.card-dates { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--ink); }
.card-dates > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.card-dates .icon { width: 17px; height: 17px; }
.date-arrow { color: var(--ink); }
.due-late { color: var(--coral); font-weight: 550; }
.due-neutral { color: var(--ink); }
.card-flags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.flag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 5px; font-size: 14px; }
.flag .icon { width: 14px; height: 14px; }
.flag.late { color: var(--ink); background: var(--surface); }
.flag.missing { color: var(--ink); background: var(--surface); }
.flag.normal { color: var(--ink); background: var(--surface); }

/* Accessible task table; narrow viewports retain visible field labels. */
.task-panel { border-top: 1px solid var(--line); padding: 0 28px 20px; }
.task-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 16px; }
.task-section-heading h4 { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 600; }
.task-section-heading > span { font-size: var(--text-sm); color: var(--ink); }
.task-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.task-table th { padding: 12px 10px; text-align: left; font-size: var(--text-sm); font-weight: 550; color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--line); }
.task-table th:first-child { width: auto; border-top-left-radius: 7px; }
.task-table th:nth-child(2) { width: 85px; }
.task-table th:nth-child(3) { width: 112px; }
.task-table th:nth-child(4), .task-table th:nth-child(5) { width: 82px; }
.task-table th:nth-child(6) { width: 116px; border-top-right-radius: 7px; }
.task-row td { padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); font-size: 16px; }
.task-row:last-child td { border-bottom: 0; }
.task-row:hover { background: var(--surface); }
.task-info { display: flex; align-items: flex-start; gap: 10px; }
.task-info > div { min-width: 0; }
.task-state { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex-shrink: 0; margin-top: 5px; border: 1px solid var(--line); border-radius: 50%; }
.task-state.is-done { background: var(--surface); border-color: var(--line); color: var(--ink); }
.task-state.is-done .icon { width: 11px; height: 11px; }
.task-state.is-late { background: var(--surface); border-color: var(--line); }
.task-title { font-size: 16px; font-weight: 500; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; word-break: keep-all; }
.task-title .icon { width: 15px; height: 15px; margin-left: 4px; }
.task-title:hover { text-decoration: underline; color: var(--ink); }
.task-meta { font-size: 14px; color: var(--ink); margin-top: 5px; }
.task-row .task-date, .task-row .task-schedule { font-size: 14px; font-variant-numeric: tabular-nums; }
.task-date { white-space: nowrap; }
.schedule-missing { color: var(--ink); }
.no-tasks { padding: 20px 0; color: var(--muted); }
.project-note { display: flex; align-items: flex-start; gap: 8px; padding: 13px 15px; margin-top: 15px; border-radius: 7px; font-size: 14px; line-height: 1.85; background: var(--surface); color: var(--ink); }
.project-note .icon { width: 17px; height: 17px; margin-top: 4px; }
.updated-note { text-align: right; margin-top: 15px; font-size: var(--text-sm); color: var(--ink); }
.empty-state { padding: 54px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--ink); }
.empty-state > .icon { width: 32px; height: 32px; }
.empty-state h3 { font-size: 23px; margin: 16px 0 10px; }
.empty-state p { margin-bottom: 22px; font-size: 16px; }

/* Data guide / ancillary UI */
.methodology { margin-top: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.methodology summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 18px 22px; font-size: 16px; color: var(--ink); }
.methodology summary::-webkit-details-marker { display: none; }
.method-arrow { margin-left: auto; }
.method-content { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 5px 24px 26px; }
.method-content h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.method-content p { font-size: 15px; line-height: 1.9; color: var(--ink); overflow-wrap: anywhere; }
.method-content code { font-size: 14px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; color: var(--ink); font-size: var(--text-sm); }
footer b { font-weight: 550; color: var(--ink); }
.footer-separator { margin: 0 8px; color: var(--ink); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: min(600px, 90vw); padding: 16px 22px; border-radius: 9px; background: var(--surface); color: var(--ink); box-shadow: 0 5px 20px rgb(0 0 0 / 18%); font-size: 16px; }
.noscript { position: fixed; inset: 10px; padding: 30px; background: var(--surface); z-index: 999; }

/* SKY / GLASS
   Sky-blue canvas, aqua/lavender light, frosted white surfaces and navy text.
   Typography and the tested responsive layout stay independent of the palette. */
body {
  isolation: isolate;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 76% 6%, rgb(121 197 248 / 46%), transparent 44%),
    radial-gradient(ellipse at 17% 65%, rgb(144 225 216 / 31%), transparent 44%),
    radial-gradient(ellipse at 96% 86%, rgb(187 170 243 / 32%), transparent 43%),
    linear-gradient(135deg, #ecf6ff, #e1efff 44%, #f1f0fd);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: min(800px, 88vw); aspect-ratio: 1; top: -145px; right: -90px;
  border-radius: 50%; border: 1px solid rgb(255 255 255 / 62%);
  background: radial-gradient(circle at 25% 25%, rgb(255 255 255 / 38%), rgb(161 209 252 / 14%) 60%, transparent 78%);
  box-shadow: inset 0 0 90px rgb(255 255 255 / 16%), 0 0 100px rgb(143 182 241 / 8%);
}
::selection { background: #bce6ff; color: #164567; }
input, textarea { caret-color: var(--accent); }
input[type="checkbox"] { accent-color: var(--accent); }
select option { color: var(--ink); background: #f7fbff; }
.sidebar {
  background: rgb(235 247 255 / 65%); border-right: 1px solid rgb(255 255 255 / 85%);
  box-shadow: 5px 0 30px rgb(79 137 188 / 5%);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
}
.topbar { background: rgb(248 252 255 / 58%); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.brand { letter-spacing: -1px; color: #205177; }
.brand small { color: var(--muted); letter-spacing: 2px; }
.brand-mark span { color: #3b9ddd; }
.workspace { background: linear-gradient(120deg, rgb(255 255 255 / 80%), rgb(224 243 255 / 42%)); border-color: var(--line-strong); }
.workspace-icon, .avatar, .owner-avatar { background: #e1f0fc; border: 1px solid #bedbf1; color: #276086; }
.avatar { background: linear-gradient(135deg, #d7edff, #e7e0fb); }
.workspace-dot, .nav-dot, .snapshot-label i { background: #339baf; }
.nav-link { color: #466782; border: 1px solid transparent; }
.nav-link:hover { background: rgb(255 255 255 / 58%); border-color: var(--line); }
.nav-link.active {
  color: #15547f; background: linear-gradient(105deg, rgb(160 216 255 / 49%), rgb(223 237 255 / 67%));
  border-color: rgb(78 153 208 / 34%);
  box-shadow: inset 3px 0 0 #3595d1, inset 0 1px 0 rgb(255 255 255 / 92%);
}
.sidebar-note { padding-top: 23px; }
.nav-caption, .tiny-label, .workspace small, .sidebar-note p, .sidebar-bottom small,
.snapshot-label, .breadcrumb, .read-only, .eyebrow, .scope-label, .live-date, .results-label { color: var(--muted); }
.breadcrumb strong, .live-date strong { color: var(--ink); }
.eyebrow { letter-spacing: 2px; font-weight: 550; }
.eyebrow > span { background: #389fc9; border-radius: 2px; }
h1 { font-weight: 550; letter-spacing: -1.5px; color: #193b56; }
h1 > span { color: #3194d1; }
.page-heading { padding: 3px 0 8px; }
.page-heading p, .section-heading p { color: var(--muted); }
.section-heading h2 { font-weight: 550; }

/* Frosted material only on primary surfaces, not every nested cell. */
:is(.summary-card, .timeline-container, .project-card, .platform-box, .methodology) {
  background-color: var(--surface); background-image: var(--glass-highlight);
  border: 1px solid var(--line); border-top-color: rgb(255 255 255 / 96%);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.summary-card { position: relative; }
.summary-card::before {
  content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, white, transparent);
}
.completion-card { background-image: linear-gradient(135deg, rgb(187 229 255 / 36%), rgb(255 255 255 / 54%) 75%); }
.summary-card:nth-child(2) { background-image: linear-gradient(135deg, rgb(215 204 246 / 22%), transparent 72%); }
.summary-card:nth-child(3) { background-image: linear-gradient(135deg, rgb(255 228 210 / 30%), transparent 72%); }
.summary-card:nth-child(4) { background-image: linear-gradient(135deg, rgb(181 235 227 / 28%), transparent 72%); }
.metric-heading h2 { font-weight: 550; color: #43637d; }
.metric-icon { color: #5389b4; }
.metric-icon.coral { color: #bc765d; }
.metric-value { color: #234e71; font-weight: 450; letter-spacing: -2px; }
.summary-card:nth-child(2) .metric-value { color: #70609e; }
.summary-card:nth-child(4) .metric-value { color: #287c85; }
.metric-value > span, .metric-caption, .metric-bottom small, .gauge-value small, .gauge-min,
.gauge-max, .gauge-foot, .status-breakdown, .metric-bottom.inline { color: var(--muted); }
.metric-bottom strong, .status-breakdown b, .gauge-foot strong { color: var(--ink); }
.gauge-track { stroke: #d5e8f6; }
.gauge-fill { stroke: #258fcf; filter: drop-shadow(0 0 5px rgb(50 151 218 / 20%)); }
.gauge-ticks { stroke: #94b5cc; }
.gauge-value { color: #20618d; font-weight: 500; }
.gauge-value > span { color: #507c9c; }
.schedule-progress, .progress-track { background: var(--track); }
.schedule-progress i { background: linear-gradient(90deg, #6fb7d4, #41aaa9); }
.progress-track i { background: linear-gradient(90deg, color-mix(in srgb, var(--project-color) 68%, white), var(--project-color)); }
.soft-badge.coral, .flag.late { background: #fff1e9; color: var(--danger); border: 1px dashed #ddb097; }
.attention-banner {
  background: linear-gradient(100deg, rgb(255 244 222 / 91%), rgb(255 251 242 / 78%));
  border-color: #e5cda7; border-left: 3px solid #d6a653;
}
.attention-banner strong, .attention-banner button, .banner-icon { color: #805924; }
.attention-banner > div { color: #796448; }
.attention-banner button:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Color reinforces labels and shape/pattern cues; it never replaces them. */
.legend { color: var(--muted); }
.legend-dot.teal { background: var(--status-progress); }
.legend-dot.gray { background: transparent; border: 1px solid #8199b0; }
.legend-dot.green { background: #4d9c84; }
.legend-dot.coral { background: #c58361; border-radius: 1px; transform: rotate(45deg); }
.today-legend, .today-line { background: #2484c2; }
.timeline-head, .timeline-row, .timeline-undated { color: var(--muted); }
.timeline-row > a { color: #375c78; }
.timeline-row > a:hover { color: var(--accent); }
.timeline-row > a > i { background: var(--project-color); border: 1px solid color-mix(in srgb, var(--project-color) 50%, white); }
.month-grid-line { background: rgb(104 153 190 / 12%); }
.timeline-today-label { background: #d9edff; border: 1px solid #b4d8f2; color: #22608c; font-weight: 550; }
.timeline-bar {
  background: linear-gradient(100deg, color-mix(in srgb, var(--project-color) 26%, white), color-mix(in srgb, var(--project-color) 12%, white));
  border-color: color-mix(in srgb, var(--project-color) 36%, white); color: #29465f;
}
.timeline-bar.late {
  background: repeating-linear-gradient(135deg, #f8e2cd 0 5px, #fff1e5 5px 10px);
  border: 1px dashed #c9986d; color: #82551f;
}
.due-late { color: var(--danger); text-decoration: underline dashed; text-underline-offset: 5px; }
.due-neutral { color: var(--muted); }

.button, .collapse-button, .appearance-toggle {
  background: rgb(255 255 255 / 65%); color: #285f88; border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%);
}
.button:hover, .collapse-button:hover, .appearance-toggle:hover { background: #e3f3ff; border-color: #8bbce0; }
#export { background: linear-gradient(125deg, #1478b9, #0d71b0); color: #fff; border-color: #1675b2; font-weight: 600; box-shadow: 0 5px 15px rgb(40 130 190 / 15%); }
#export:hover { background: #1067a4; }
.appearance-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; gap: 7px; font-size: 14px; white-space: nowrap; }
.appearance-toggle::before { content: ""; width: 9px; height: 9px; border: 1px solid #478bb9; border-radius: 50%; background: linear-gradient(90deg, #479cd4 50%, transparent 50%); }
.appearance-toggle[aria-pressed="false"]::before { background: #99b8d0; }
.tabs { background: rgb(192 218 240 / 31%); border: 1px solid var(--line); }
.tab, .tab span { color: var(--muted); }
.tab:hover { color: var(--accent); }
.tab.active { background: rgb(255 255 255 / 91%); color: #17649a; box-shadow: 0 2px 7px rgb(60 121 180 / 10%); }
.tab.active span { color: #2375aa; }
.search-field, select { background: rgb(255 255 255 / 72%); color: var(--ink); border-color: var(--line-strong); }
.search-field input { color: var(--ink); }
.search-field input::placeholder, .search-field .icon { color: var(--muted); }
.search-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.count-pill { background: #e0effb; border: 1px solid #c6dff1; color: #356e98; }
.project-section { border-top-color: var(--line); }
.component-icon {
  color: var(--project-color);
  background: linear-gradient(145deg, color-mix(in srgb, var(--project-color) 17%, white), color-mix(in srgb, var(--project-color) 5%, white));
  border: 1px solid color-mix(in srgb, var(--project-color) 25%, white);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%);
}
.component-name > span { color: var(--muted); font-size: 14px; }
.component-name h3 { color: #244967; font-weight: 500; letter-spacing: -.8px; }
.project-context h4 { color: #335a76; font-weight: 550; }
.component-description { color: #47617a; }
.card-owner, .issue-link, .next-task > span { color: var(--muted); }
.issue-link:hover { color: var(--accent); }
.next-task { background: var(--layer-soft); border: 1px solid var(--line); }
.next-task p { color: #375e7c; }
.project-metrics { background: var(--layer-inset); border-color: var(--line); box-shadow: inset 0 1px 10px rgb(93 145 190 / 4%); }
.card-progress > div:first-child, .progress-caption, .card-dates { color: var(--muted); }
.card-progress strong { color: #2a648e; font-weight: 500; }
.date-arrow { color: #66849c; }
.flag.missing { background: #f0edfa; color: #70548c; border: 1px dotted #c5b5dd; }
.flag.normal { background: #eaf6f1; color: #39775f; border: 1px solid #c6e1d4; }
.status-badge { border: 1px solid var(--line); }
.status-badge.todo { background: #f0f3f9; color: #526b85; }
.status-badge.progress { background: #e0f1fe; color: #24658f; border-color: #b9dcf5; }
.status-badge.done { background: #e5f5ec; color: var(--success); border-color: #b8dbc9; }
.status-badge i { width: 8px; height: 8px; }
.status-badge.todo i { background: transparent; border: 1px solid currentColor; }
.status-badge.progress i { border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status-badge.done i { background: currentColor; border-radius: 1px; transform: rotate(45deg); width: 6px; height: 6px; }
.task-panel { border-top-color: var(--line); }
.task-section-heading > span, .task-meta, .updated-note { color: var(--muted); }
.task-table th { color: #466882; background: rgb(204 229 249 / 35%); border-color: var(--line); }
.task-row td { color: #45617a; border-color: var(--line); }
.task-row:hover { background: rgb(116 192 244 / 7%); }
.task-state { border-color: #8faec5; }
.task-state.is-done { background: #4f9b85; color: #fff; border-color: #4f9b85; }
.task-state.is-late { background: #fff1e9; border: 1px dashed #b67965; border-radius: 3px; }
.task-title { color: #2c5777; }
.task-title:hover { color: #1174b5; }
.schedule-missing { color: #785690; }
.project-note { color: #675382; background: rgb(231 221 247 / 37%); border-left: 2px solid #a38acb; }
.methodology summary { color: #385e7b; }
.method-content h3 { color: #335574; }
.method-content p, footer, footer b { color: var(--muted); }
.toast { background: #e7f3ff; color: #23567d; box-shadow: 0 10px 40px rgb(53 101 151 / 20%); border: 1px solid #a9cfe9; }
.empty-state { color: var(--muted); border-color: var(--line-strong); }
.skip-link, .noscript { background: #f6fbff; color: var(--ink); }

/* Accessibility: preserve the light palette when translucency is disabled. */
html[data-glass="off"] { --surface: var(--surface-solid); --glass-highlight: none; --glass-blur: 0px; --glass-shadow: none; }
html[data-glass="off"] body { background-image: none; }
html[data-glass="off"] body::before { display: none; }
html[data-glass="off"] :is(.sidebar, .topbar, .summary-card, .project-card, .timeline-container, .platform-box, .methodology) {
  -webkit-backdrop-filter: none; backdrop-filter: none; background-color: var(--surface-solid); background-image: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --surface: var(--surface-solid); --glass-highlight: none; --glass-shadow: none; }
  .sidebar, .topbar { background: #eff7ff; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root { --surface: var(--surface-solid); --glass-highlight: none; --glass-shadow: none; --glass-blur: 0px; --muted: #354f67; }
  body { background-image: none; }
  body::before { display: none; }
  .sidebar, .topbar { background: #eff7ff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Reflow, don't shrink the task descriptions. */
.brand .brand-mark { font-size: 28px; letter-spacing: -2px; padding-right: 9px; }
.brand .brand-mark > span { font-size: 15px; top: -7px; right: -2px; }
@media (max-width: 1450px) {
  main { padding: 30px; }
  .summary-grid { gap: 14px; }
  .summary-card { padding: 19px; }
  .metric-heading h2 { font-size: 16px; }
  .gauge-value { font-size: 42px; }
  .metric-value { font-size: 46px; }
  .status-bar, .schedule-progress { margin-top: 22px; }
  .status-breakdown { justify-content: flex-start; }
  .project-overview { gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
}
@media (max-width: 1280px) {
  :root { --sidebar: 220px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 21px; }
  .workspace { font-size: 14px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .summary-card { padding: 24px; min-height: 275px; }
  .metric-heading h2 { font-size: 18px; }
  .metric-value { font-size: 54px; }
  .gauge-value { font-size: 46px; }
  .status-bar, .schedule-progress { margin-top: auto; }
  .status-breakdown { justify-content: space-between; }
  .project-overview { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 20px; }
  .project-metrics { padding: 17px; }
  .card-heading { padding: 24px 22px 18px; }
  .project-overview { padding: 0 22px 24px; }
  .task-panel { padding: 0 18px 20px; }
  .task-table th:nth-child(2) { width: 74px; }
  .task-table th:nth-child(3) { width: 104px; }
  .task-table th:nth-child(4), .task-table th:nth-child(5) { width: 72px; }
  .task-table th:nth-child(6) { width: 109px; }
  .task-table th, .task-row td { padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 1100px) {
  :root { --sidebar: 0px; }
  html { scroll-padding-top: 100px; }
  .sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 15px 24px; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; overflow: visible; border-bottom: 1px solid var(--line); }
  .workspace, .nav-caption, .sidebar-note, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 5px; }
  .nav-link { margin: 0; padding: 10px; gap: 7px; font-size: 14px; }
  .nav-dot, .nav-count { display: none; }
  .brand { font-size: 22px; }
  .brand-mark { font-size: 34px; }
  .brand-mark span { font-size: 18px; }
  .brand small { font-size: 10px; }
  .topbar { height: 58px; padding: 0 28px; }
  .project-card { scroll-margin-top: 100px; }
}
@media (max-width: 900px) {
  .page-heading { align-items: flex-start; }
  .page-heading > .button { margin-top: 26px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .project-overview { grid-template-columns: minmax(0, 1fr); }
  .project-metrics { max-width: none; padding: 20px; }
  .card-dates { justify-content: flex-start; gap: 18px; }
  .task-table, .task-table tbody { display: block; }
  .task-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .task-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; padding: 20px 5px; border-bottom: 1px solid var(--line); }
  .task-row:last-child { border-bottom: 0; }
  .task-row td { display: block; padding: 0; border: 0; }
  .task-main { grid-column: 1 / -1; }
  .task-row td:not(.task-main)::before { content: attr(data-label); display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
  .task-row .task-date, .task-row .task-schedule { font-size: 16px; }
  .task-title { font-size: 17px; }
  .task-meta { margin-top: 6px; }
  .task-section-heading { padding-bottom: 8px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 88px; }
  :root { --glass-blur: 10px; }
  .topbar-right .read-only { display: none; }
  .sidebar { padding: 14px 16px; gap: 10px; }
  .sidebar nav { gap: 4px; }
  .nav-link { font-size: 0; padding: 10px; gap: 0; min-width: 42px; min-height: 44px; justify-content: center; }
  .nav-link .icon { width: 21px; height: 21px; }
  .brand { font-size: 19px; padding: 0; gap: 8px; }
  .brand small { display: none; }
  .brand-mark { font-size: 30px; }
  .brand-mark span { font-size: 16px; }
  .topbar { padding: 0 20px; }
  .breadcrumb { font-size: 13px; gap: 9px; }
  .topbar-right { gap: 10px; }
  .read-only { font-size: 12px; }
  .read-only .icon { width: 14px; height: 14px; }
  .avatar.small { width: 28px; height: 28px; font-size: 12px; }
  main { padding: 26px 20px 22px; }
  h1 { font-size: 30px; letter-spacing: -1px; }
  .page-heading { flex-wrap: wrap; gap: 12px; }
  .page-heading > .button { margin: 0; }
  .eyebrow { font-size: 12px; letter-spacing: 1.1px; }
  .context-row { margin-top: 24px; }
  .live-date { font-size: 14px; gap: 6px; }
  .scope-label { width: 100%; justify-content: space-between; }
  .summary-card { padding: 20px; }
  .metric-heading h2 { font-size: 16px; }
  .metric-value { font-size: 46px; }
  .gauge-value { font-size: 40px; }
  .gauge-value small { font-size: 14px; margin-top: 7px; }
  .gauge-value > span { font-size: 20px; }
  .gauge-foot { font-size: 14px; }
  .metric-value > span { display: block; margin: 6px 0 0; font-size: 14px; }
  .attention-banner { align-items: flex-start; flex-wrap: wrap; padding: 17px; gap: 8px; }
  .banner-icon { margin-top: 3px; }
  .attention-banner > div { flex: 1; min-width: 180px; }
  .attention-banner button { margin-left: 28px; padding-left: 0; }
  .section-heading h2 { font-size: 24px; }
  .section-heading p { font-size: 16px; }
  .legend { gap: 12px; }
  .timeline-container { padding: 25px 18px 18px; }
  .project-section { margin-top: 34px; padding-top: 28px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 8px; gap: 6px; justify-content: center; font-size: 14px; }
  .filter-inputs { width: 100%; }
  .search-field { width: 100%; }
  .search-field input { width: 100%; }
  .filter-inputs select { flex: 1; min-width: 0; font-size: 16px; }
  .project-grid { gap: 24px; }
  .card-heading { padding: 22px 20px 18px; flex-wrap: wrap; gap: 12px; }
  .component-name h3 { font-size: 28px; }
  .component-name > span { font-size: 14px; }
  .component-icon { width: 48px; height: 48px; }
  .card-actions { width: 100%; margin-left: 0; justify-content: space-between; }
  .project-overview { padding: 0 20px 22px; }
  .project-context h4 { font-size: 20px; }
  .next-task { flex-direction: column; gap: 3px; font-size: 15px; }
  .project-metrics { padding: 18px; }
  .card-dates { gap: 8px; }
  .task-panel { padding: 0 20px 20px; }
  .task-section-heading { flex-wrap: wrap; gap: 5px; }
  .task-section-heading > span { font-size: 14px; }
  .task-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px 0; }
  .task-info { gap: 8px; }
  .task-state { width: 15px; height: 15px; }
  .task-title { font-size: 16px; }
  .updated-note { text-align: left; }
  .method-content { grid-template-columns: 1fr; gap: 22px; padding: 0 20px 22px; }
  .methodology summary { padding: 18px; align-items: flex-start; }
  .methodology summary .icon { margin-top: 3px; }
  footer { flex-direction: column; font-size: 14px; gap: 6px; }
  .project-card { scroll-margin-top: 88px; }
}
@media (max-width: 480px) {
  .brand-team { font-size: 10px; }
  .brand-title b { font-size: 14px; }
  .brand .brand-mark { font-size: 23px; }
  main { padding-left: 16px; padding-right: 16px; }
  .sidebar { padding: 12px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand-mark { font-size: 28px; }
  .nav-link { min-width: 36px; padding: 8px; }
  .sidebar nav { gap: 2px; }
  .breadcrumb { gap: 7px; font-size: 12px; }
  .topbar { padding: 0 16px; }
  .topbar-right .avatar { display: none; }
  .summary-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .summary-card { min-height: 0; padding: 24px; }
  .metric-heading h2 { font-size: 18px; }
  .metric-value { font-size: 52px; margin-top: 18px; }
  .metric-value > span { display: inline; margin-left: 8px; font-size: 16px; }
  .metric-caption { font-size: 16px; }
  .status-bar, .schedule-progress { margin-top: 24px; }
  .metric-bottom { padding-top: 18px; }
  .metric-bottom.inline { padding-top: 14px; }
  .gauge { margin: 15px auto; }
  .gauge-value { font-size: 48px; }
  .gauge-foot { margin-top: 0; }
  .section-heading h2 { font-size: 23px; }
  .card-heading { padding: 20px 17px 16px; }
  .component-name > span { font-size: 13px; letter-spacing: 0; }
  .project-overview { padding: 0 17px 20px; }
  .project-metrics { padding: 16px; }
  .card-dates > span:first-child { column-gap: 4px; row-gap: 6px; }
  .task-panel { padding: 0 17px 18px; }
  .task-section-heading h4 { font-size: 18px; }
  .card-owner { gap: 12px; }
  .flag { font-size: 14px; }
  .tabs { gap: 2px; padding: 3px; }
  .tab { gap: 5px; padding: 8px 5px; }
  .tab span { font-size: 13px; }
  .read-only { font-size: 12px; gap: 5px; }
  .live-date .muted { display: none; }
  .scope-label select { max-width: calc(100% - 75px); }
  .component-name { max-width: calc(100% - 62px); }
}
@media (max-width: 360px) {
  .brand .brand-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; --ink: #151515; --muted: #444; --surface: #fff; --bg: #fff; --line: #ccc; }
  body, html[data-glass="off"] body { background: #fff !important; background-image: none !important; }
  body::before, .summary-card::before { display: none !important; }
  body * { color: #151515 !important; box-shadow: none !important; background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .timeline-bar { background: #e2e2e2 !important; border-color: #555 !important; }
  .timeline-bar.late { background: repeating-linear-gradient(135deg, #ddd 0 5px, #f3f3f3 5px 10px) !important; }
  .gauge-fill { stroke: #222 !important; filter: none; }
  .gauge-track { stroke: #ddd !important; }
  .sidebar, .topbar, .toolbar, .button, .collapse-button, .attention-banner button, .scope-label, .toast { display: none !important; }
  .page { margin: 0; }
  main { padding: 0; }
  html { font-size: 12px; }
  body { background: var(--surface); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-card { min-height: 200px; }
  .project-grid { display: block; }
  .project-card { margin-bottom: 25px; overflow: visible; box-shadow: none; }
  .card-heading, .task-section-heading { break-after: avoid; }
  .task-row { break-inside: avoid; }
  .timeline-container { overflow: visible; }
  #timeline { min-width: 0; }
  .timeline-head, .timeline-row { grid-template-columns: 130px 1fr 60px; gap: 10px; }
}
