/* Palette: CBRE brand colours (Dark Green, Accent Green, Dark Grey, Sage, Celadon, Light Grey). */
:root {
  --green-dark: #003F2D;
  --green-accent: #17E88F;
  --grey-dark: #435254;
  --sage: #538184;
  --celadon: #80BBAD;
  --grey-light: #CAD1D3;
  --grey-lighter: #E6EAEA;

  --bg: #F4F6F5;
  --surface: #FFFFFF;
  --surface-2: #EEF2F1;
  --ink: #012A2D;
  --ink-2: #435254;
  --ink-3: #7F8480;
  --line: #E1E6E5;
  --line-strong: #CAD1D3;
  --primary: var(--green-dark);
  --primary-ink: #FFFFFF;
  --edited: #FFF7D6;
  --edited-line: #E0B93A;
  --danger: #B3261E;

  --radius: 8px;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.34,1.3,.64,1);
  --dur-1: 150ms;
  --dur-2: 240ms;
  --dur-3: 420ms;
  --shadow-1: 0 1px 2px rgba(1,42,45,.06), 0 1px 1px rgba(1,42,45,.04);
  --shadow-2: 0 2px 4px rgba(1,42,45,.05), 0 12px 32px -8px rgba(1,42,45,.16);
  --s-submitted-bg: #D5F9E8; --s-submitted-fg: #00583B;
  --s-progress-bg: #F4EFC6; --s-progress-fg: #6B5A00;
  --s-idle-bg: #ECEFEF; --s-idle-fg: #56625F;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07191A;
    --surface: #0D2426;
    --surface-2: #133033;
    --ink: #E9F0EE;
    --ink-2: #B9C6C3;
    --ink-3: #87958F;
    --line: #1C3A3C;
    --line-strong: #2B4B4D;
    --primary: var(--green-accent);
    --primary-ink: #012A2D;
    --edited: #332B0F;
    --edited-line: #9C8023;
    --s-submitted-bg: #0F3F2C; --s-submitted-fg: #6FF3BA;
    --s-progress-bg: #3A3414; --s-progress-fg: #EDDB84;
    --s-idle-bg: #1C3538; --s-idle-fg: #A9B7B4;
    --shadow-1: 0 1px 2px rgba(0,0,0,.3);
    --shadow-2: 0 2px 4px rgba(0,0,0,.25), 0 12px 32px -8px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1 { font-family: var(--serif); font-size: 40px; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
.muted { color: var(--ink-3); font-weight: 400; }
.small { font-size: 13px; }
.spacer { flex: 1; }
code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--green-dark); color: #fff; }
.topbar-inner { max-width: 1360px; margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; gap: 32px; min-height: 60px; }
.brand { display: flex; align-items: center; font-family: var(--serif); font-size: 19px; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--green-accent); margin-left: 6px; }
.topnav { position: relative; display: flex; align-items: stretch; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  display: flex; align-items: center; padding: 0 14px; text-decoration: none; white-space: nowrap;
  color: rgba(255,255,255,.7); font-weight: 500; gap: 8px;
  transition: color var(--dur-1) var(--ease-out);
}
.topnav a .ico { width: 16px; height: 16px; }
.topnav a:hover { color: #fff; }
.topnav a.active { color: #fff; }
.nav-ink {
  position: absolute; left: 0; bottom: 0; width: 1px; height: 3px; background: var(--green-accent);
  transform-origin: 0 50%; border-radius: 3px 3px 0 0; opacity: 0;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2);
}
.nav-sep { width: 1px; background: rgba(255,255,255,.18); margin: 18px 8px; }

.banner { background: var(--edited); border-bottom: 1px solid var(--edited-line); font-size: 13px; color: #5A4700; }
@media (prefers-color-scheme: dark) { .banner { color: #F1DC8C; } }
.banner-inner { max-width: 1360px; margin: 0 auto; padding: 8px 24px; }

.container { max-width: 1360px; margin: 0 auto; padding: 40px 24px 96px; }

/* ---------- Group page ---------- */
.group-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 24px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.team-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 24px; }
.team-toggle {
  position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; box-shadow: var(--shadow-1);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.team-toggle:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.team-toggle:active { transform: translateY(0) scale(.99); }
.team-toggle.active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.team-toggle.active .avatar { background: var(--green-dark); color: var(--green-accent); }
.tt-main b { display: block; font-weight: 600; line-height: 1.25; }
.tt-main small { color: var(--ink-3); font-size: 12px; }
.tt-meta { display: flex; align-items: center; gap: 8px; }
.tt-meta b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dot-status { display: grid; place-items: center; }
.dot-status .ico { width: 18px; height: 18px; }
.dot-status.s-submitted { color: #0B9E61; }
.dot-status.s-progress { color: #B58F00; }
.dot-status.s-idle { color: var(--ink-3); }
@media (prefers-color-scheme: dark) { .dot-status.s-submitted { color: var(--green-accent); } .dot-status.s-progress { color: #EDDB84; } }

.placeholder { padding: 64px 16px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; justify-items: center; gap: 10px; }
.placeholder .ico { width: 28px; height: 28px; color: var(--line-strong); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }

.team-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.team-bar p { margin: 2px 0 0; }
.tb-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.team-bar .actions { margin-left: auto; }

.members { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.member {
  min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 13px; cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1), border-color var(--dur-1), transform var(--dur-1);
}
.member:active { transform: scale(.97); }
.member b { font-weight: 500; }
.member span { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.member:hover { border-color: var(--line-strong); color: var(--ink); }
.member.active { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.member.active span { background: rgba(255,255,255,.16); }

.subbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--radius); padding: 3px; flex-wrap: wrap; }
.seg button {
  border: 0; background: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; min-height: 32px;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1), box-shadow var(--dur-1);
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.seg button span { color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.toolbar input[type=search], .toolbar select {
  height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 13px;
}
.search { position: relative; display: inline-flex; max-width: 100%; }
.search .ico { position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.toolbar .search input[type=search] { width: 280px; max-width: 100%; padding-left: 34px; }
.toolbar input:focus, .toolbar select:focus { outline: 2px solid var(--celadon); outline-offset: -1px; }
.chk { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.chk input { accent-color: var(--green-dark); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid th:first-child, table.grid td:first-child { padding-left: 20px; }
table.grid th {
  font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em;
  background: var(--surface); cursor: pointer; white-space: nowrap; user-select: none;
}
table.grid th .sort { color: var(--sage); margin-left: 4px; }
table.grid th.num, table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid tbody tr { cursor: pointer; transition: background .1s; }
table.grid tbody tr:hover, table.grid tbody tr:focus-visible { background: var(--surface-2); outline: none; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid td.edited { background: var(--edited); box-shadow: inset 2px 0 0 var(--edited-line); }
table.grid tr.row-new td:first-child { box-shadow: inset 3px 0 0 var(--green-accent); }
.addr { font-weight: 500; }
.people { display: flex; flex-wrap: wrap; gap: 4px; }
.person { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.person.mine { background: transparent; box-shadow: inset 0 0 0 1px var(--celadon); color: var(--ink); }
.person.unmatched { background: #FBE7E5; color: var(--danger); }
@media (prefers-color-scheme: dark) { .person.unmatched { background: #3D1A18; color: #F5A39D; } }
.team-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; margin: 0 10px 2px 0; }
.team-chip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); letter-spacing: .02em; }
.tag.ok, .tag.new { background: #D5F9E8; color: #00583B; }
@media (prefers-color-scheme: dark) { .tag.ok, .tag.new { background: #0F3F2C; color: var(--green-accent); } }
.empty { padding: 48px 16px; text-align: center; color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; font-size: 13px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1);
}
.btn .ico { width: 16px; height: 16px; }
.btn:active { transform: scale(.97); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 14px; }
.btn.accent { background: var(--green-accent); color: #012A2D; border-color: var(--green-accent); font-weight: 600; }
.btn.accent:hover { background: #4DF0AB; border-color: #4DF0AB; }
.btn.accent .ico { transition: transform var(--dur-2) var(--ease-out); }
.btn.accent:hover .ico { transform: translateX(3px); }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover { background: #00563D; border-color: #00563D; }
@media (prefers-color-scheme: dark) { .btn.primary:hover { background: #4DF0AB; border-color: #4DF0AB; } }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn:focus-visible, .team-toggle:focus-visible, .member:focus-visible, .seg button:focus-visible, .topnav a:focus-visible {
  outline: 2px solid var(--green-accent); outline-offset: 2px;
}
.icon-btn { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 4px 8px; border-radius: 4px; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Master ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.kpi { background: var(--surface); padding: 18px 20px; }
.kpi b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 400; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--ink-3); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; gap: 10px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain a { text-decoration: none; }
.list-plain a:hover { text-decoration: underline; }
.note { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ---------- Drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(1,42,45,.45); z-index: 40; opacity: 0; pointer-events: none;
  backdrop-filter: blur(2px); transition: opacity var(--dur-2) var(--ease-out);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 50;
  background: var(--surface); box-shadow: -8px 0 32px rgba(0,0,0,.12);
  display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden;
  transition: transform 200ms cubic-bezier(.4,0,1,1), visibility 0s linear 200ms;
}
.drawer.open { transform: none; visibility: visible; transition: transform 340ms var(--ease-out); }
.drawer-head, .drawer-foot { display: flex; align-items: center; gap: 8px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-foot { border-top: 1px solid var(--line); border-bottom: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; align-content: start; }
.field.wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .drawer-body { grid-template-columns: 1fr; } }
.field label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field .orig { font-weight: 400; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field input, .field select, .field textarea {
  width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit;
}
.field textarea { height: auto; min-height: 88px; padding: 8px 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--celadon); outline-offset: -1px; border-color: var(--sage); }
.field.changed input, .field.changed select, .field.changed textarea { background: var(--edited); border-color: var(--edited-line); }
.field input[readonly] { background: var(--surface-2); color: var(--ink-3); }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(16px);
  background: var(--green-dark); color: #fff; padding: 10px 18px; border-radius: var(--radius); opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-spring);
  pointer-events: none; z-index: 60; font-weight: 500; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 760px) {
  h1 { font-size: 32px; }
  .topbar-inner { padding: 0 16px; gap: 16px; }
  .brand span { display: none; }
  .banner-inner { padding: 8px 16px; }
  .container { padding: 28px 16px 72px; }
  .toolbar { justify-content: flex-start; }
  .toolbar input[type=search] { width: 100%; }
}

/* ---------- Utilities ---------- */
.ico { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--green-accent); color: #012A2D; padding: 10px 14px; border-radius: var(--radius); font-weight: 600; transition: top var(--dur-1); }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }
.eyebrow.on-dark { color: var(--green-accent); }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge .ico { width: 15px; height: 15px; }
.badge.s-submitted { background: var(--s-submitted-bg); color: var(--s-submitted-fg); }
.badge.s-progress { background: var(--s-progress-bg); color: var(--s-progress-fg); }
.badge.s-idle { background: var(--s-idle-bg); color: var(--s-idle-fg); }

/* ---------- Hero status (home) ---------- */
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hero {
  margin-top: -40px; margin-bottom: 0; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(23,232,143,.16), transparent 60%),
    radial-gradient(700px 380px at -5% 120%, rgba(128,187,173,.18), transparent 60%),
    linear-gradient(180deg, #003F2D 0%, #012A2D 100%);
}
.hero::after { /* fine architectural grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1360px; margin: 0 auto; padding: 64px 24px 120px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
}
.hero h1 { font-size: 52px; color: #fff; }
.hero .lede { color: rgba(255,255,255,.72); font-size: 16px; max-width: 460px; margin: 16px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.hero-status {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  padding: 28px 32px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.45);
}
.ring-wrap { position: relative; width: 184px; height: 184px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-track { stroke: rgba(255,255,255,.12); }
.ring-bar { stroke: var(--green-accent); stroke-linecap: round; stroke-dashoffset: var(--full); transition: stroke-dashoffset 1.1s var(--ease-out) .15s; }
.ring-bar.filled { stroke-dashoffset: var(--off); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font-family: var(--serif); font-size: 48px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-label > span { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 6px; }

.hero-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: 12px; overflow: hidden; }
.hs { background: #0A3431; padding: 16px 18px; min-width: 0; }
.hs:nth-child(4) { grid-column: span 1; }
.hs dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.65); white-space: nowrap; }
.hs dt .ico { width: 15px; height: 15px; }
.hs dd { margin: 6px 0 0; font-family: var(--serif); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.hs.s-submitted dt { color: var(--green-accent); }
.hs.s-progress dt { color: #EDDB84; }
.hs:nth-child(4), .hs:nth-child(5) { background: #082E2C; }
.hs:nth-child(5) { grid-column: span 2; }

/* ---------- Status board ---------- */
.board { position: relative; z-index: 2; margin-top: -64px; }
.board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 0 0; border-bottom: 0;
  padding: 20px 24px; box-shadow: var(--shadow-2);
}
.board-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.board-head p { margin: 2px 0 0; }
.board-body { background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: var(--shadow-2); }
.board-group { padding: 4px 24px 24px; }
.board-group + .board-group .bg-head, .board-group[hidden] + .board-group .bg-head { border-top: 1px solid var(--line); }
.bg-head { display: flex; align-items: center; gap: 16px; padding: 18px 0 14px; }
.bg-name { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 20px; }
.bg-name .swatch { align-self: center; }
.bg-name small { font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
.bg-name:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bg-progress { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.meter { width: 120px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green-accent); border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ease-out) .2s; }
.meter i.filled { transform: scaleX(var(--w)); }

.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.status-card {
  position: relative; display: grid; gap: 16px; padding: 18px 18px 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1);
}
.status-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--line-strong); }
.status-card.s-submitted::before { background: var(--green-accent); }
.status-card.s-progress::before { background: #E0C23A; }
.status-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.status-card:active { transform: translateY(-1px) scale(.99); }
.status-card:focus-visible { outline: 2px solid var(--green-accent); outline-offset: 2px; }
.sc-top { display: flex; align-items: center; justify-content: space-between; }
.status-card .avatar { width: 42px; height: 42px; font-size: 14px; }
.status-card.s-submitted .avatar { background: var(--green-dark); color: var(--green-accent); }
.sc-name b { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.sc-name small { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--ink-3); font-size: 12px; }
.sc-name small .ico { width: 14px; height: 14px; }
.sc-stats { display: grid; grid-template-columns: auto auto 1fr; gap: 20px; align-items: end; padding-top: 14px; border-top: 1px solid var(--line); }
.sc-stats b { display: block; font-size: 20px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sc-stats span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.sc-when { text-align: right; }
.sc-when span { text-transform: none; letter-spacing: 0; font-size: 12px; }
.sc-go {
  position: absolute; right: 16px; top: 64px; color: var(--primary); opacity: 0; transform: translateX(-6px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.status-card:hover .sc-go, .status-card:focus-visible .sc-go { opacity: 1; transform: none; }


/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.enter [style*="--i"] { animation: rise 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.enter .status-card { animation: rise 480ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + var(--d) * 40ms + 120ms); }
.enter #team-panel tbody tr, .reveal tbody tr { animation: fade 360ms var(--ease-out) both; animation-delay: calc(var(--r) * 22ms + 120ms); }
.reveal { animation: rise 380ms var(--ease-out) both; }
table.grid tbody tr { transition: background var(--dur-1); }
.team-toggle.active::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; width: 12px; height: 12px; background: var(--surface);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg);
  animation: fade var(--dur-2) var(--ease-out) both; z-index: 1;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 104px; }
}
@media (max-width: 760px) {
  .hero-inner { padding: 40px 16px 96px; }
  .hero h1 { font-size: 38px; }
  .hero-status { grid-template-columns: 1fr; justify-items: center; padding: 24px 18px; }
  .hero-stats { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .hs:nth-child(5) { grid-column: span 2; }
  .hs:nth-child(3) { grid-column: span 1; }
  .ring-wrap { width: 160px; height: 160px; }
  .board-head, .board-group { padding-left: 16px; padding-right: 16px; }
  .status-grid { grid-template-columns: 1fr; }
  .meter { width: 72px; }
  .bg-name small { display: none; }
  .btn, .member, .seg button { min-height: 44px; }
  .toolbar .search, .toolbar .search input[type=search] { width: 100%; }
  .toolbar input[type=search], .toolbar select { height: 44px; }
  .topnav a { min-height: 56px; }
}
