/* Shared look for the server pages, taken from workspace.html's theme. */
:root {
  --head: #00275E; --head-ink: #FFFFFF; --head-muted: #B8C4D9;
  --orange: var(--orange);
  --bg: #F3F5F9; --surface: #FFFFFF; --surface-2: #EDF0F5; --ink: #15213A; --muted: #5C6780; --line: #DDE2EA;
  --primary: #00275E; --primary-ink: #FFFFFF; --accent-soft: #FFF4E0; --accent-ink: #7A4A00;
  --bar: #00275E; --track: #E6EAF0;
  --good: #1F8656; --bad: #C2412D; --good-soft: #E3F3EB; --bad-soft: #FBE7E3;
  --font-head: "Exo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 8px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --head: #001D47; --head-muted: #9FB0CC;
  --bg: #0A1322; --surface: #111C30; --surface-2: #17243C; --ink: #E5EBF4; --muted: #96A2B9; --line: #24324B;
  --primary: #3A66A8; --accent-soft: #2B220F; --accent-ink: #FFC266;
  --bar: #6F93CC; --track: #1D2B44;
  --good: #3DB57F; --bad: #E2664F; --good-soft: #12301F; --bad-soft: #3A1A15;
  color-scheme: dark;
} }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--font-body); font-size: 14px; line-height: 1.45; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -.01em; }
a { color: var(--primary); }
.top { background: var(--head); color: var(--head-ink); display: flex; align-items: center; gap: 16px; padding: 10px 20px; }
.top img { height: 26px; }
.top .who { margin-left: auto; color: var(--head-muted); font-size: 13px; display: flex; gap: 12px; align-items: center; }
.top form { margin: 0; }
.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px var(--font-head); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.ghost { background: none; border-color: transparent; color: var(--head-muted); }
.btn.ghost:hover { color: var(--head-ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi .eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.kpi .metric { font: 700 26px var(--font-head); margin-top: 4px; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
.yes { color: var(--good); font-weight: 700; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.alert { background: var(--bad-soft); color: var(--bad); border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; }
.login { max-width: 420px; margin: 8vh auto; }
.login h1 { font-size: 22px; margin-bottom: 6px; }
.stack > * + * { margin-top: 10px; }
.dev { border-style: dashed; }
.dev button { width: 100%; justify-content: space-between; margin-top: 6px; }
.meter { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.meter > div { height: 100%; background: var(--bar); }
.cols { display: flex; align-items: flex-end; gap: 8px; height: 140px; margin-top: 10px; }
.cols .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.cols .cb { background: var(--bar); border-radius: 4px 4px 0 0; min-height: 2px; }
.collabs { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.collabs span { flex: 1; text-align: center; }
@media (max-width: 600px) { .top { padding: 10px 16px; } .top .who span { display: none; } }
.card .eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
/* client portal (share link) */
.portal-page { max-width: 880px; margin: 0 auto; }
.portal-page .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.portal-page .nowrap { white-space: nowrap; }
.portal-page .plink { color: var(--ink); font-weight: 600; text-decoration: none; }
.portal-page .plink:hover { color: var(--primary); text-decoration: underline; }
.portal-page .card.waiting { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }
.portal-page .callout { background: var(--accent-soft); color: var(--accent-ink); border-radius: 6px; padding: 10px 12px; font-size: 13.5px; }
.pstatus { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--line); color: var(--ink); font-weight: 600; font-size: 12px; }
.pstatus.wait { background: var(--orange); color: #2A1A00; }
.pupdate { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; }
.pupdate.client { border-left-color: var(--orange); }
.pupdate .pbody { white-space: pre-wrap; margin-top: 4px; }
.pupdate .pimg { display: block; max-width: 100%; max-height: 480px; border: 1px solid var(--line); border-radius: 6px; margin: 6px 0; }
.pinput { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.psubs { list-style: none; margin: 0; padding: 0; }
.psubs li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.psubs li:last-child { border-bottom: 0; }
.psubs .tick { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--muted); border-radius: 4px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.psubs .done .tick { background: var(--good, #1F8656); border-color: var(--good, #1F8656); color: #fff; }
.psubs .st { flex: 1; min-width: 0; }
.psubs .done .st { color: var(--muted); text-decoration: line-through; }
