/* Theme: colours, fonts and the logo for every page (docs/REDESIGN-2026-10-16.md §2). Load it after app.css.
   Home, draft and client pages map their own variable names onto these; nothing else defines colours.
   Status colours: waiting = apricot (amber), confirmed = mint (green), done = sky (blue), tentative = lavender,
   problem = peony (red), not started = grey. Our side / client side tags use --us / --cl, never a status colour. */

/* Poppins (SIL Open Font License, fonts/OFL-LICENSE.txt), served from this server — no third-party requests.
   "GLG Sans CJK" leaves out punctuation (U+2000–206F) so Chinese pages keep full-width quotes and dashes. */
@font-face { font-family: 'GLG Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/poppins-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'GLG Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/poppins-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'GLG Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'GLG Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'GLG Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'GLG Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'GLG Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'GLG Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'GLG Sans CJK'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/poppins-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'GLG Sans CJK'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/poppins-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'GLG Sans CJK'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'GLG Sans CJK'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'GLG Sans CJK'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'GLG Sans CJK'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'GLG Sans CJK'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'GLG Sans CJK'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #f5f6f8; --panel: #ffffff; --ink: #2b2b38; --muted: #535768; --faint: #686b7a; --line: #dfe2ee;
  --accent: #5b4ff0; --accent-hover: #4a3fd9; --accent-ink: #fff; --brand-tint: #ecebff;
  --brand-gradient: linear-gradient(90deg, #5b4ff0, #c25be8, #ff6fa8, #ff9d4d);
  --logo: url('/logo.svg');
  --green: #2a5c4e; --green-bg: #d7fbbf; --green-edge: #7be0a0;
  --blue: #0a5a78; --blue-bg: #d1f6ff; --blue-edge: #3ac9ff;
  --amber: #8a4b12; --amber-bg: #ffe3c7; --amber-edge: #ff9d4d;
  --red: #a3213a; --red-bg: #ffd6dc; --red-edge: #ff6b81;
  --tent: #5b3a8c; --tent-bg: #eddff7; --tent-edge: #b18cf0;
  --gray-bg: #eef0f3;
  --us: #3f37c9; --us-bg: #ecebff;
  --cl: #8f2a7a; --cl-bg: #fce4f6;
  --sans: 'GLG Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --serif: var(--sans); /* the serif headings are gone; the name stays so page styles need no change */
  --shadow: none;
  font-family: var(--sans);
}
:root:lang(zh) { --sans: 'GLG Sans CJK', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
body { border-top: 3px solid transparent; border-image: var(--brand-gradient) 1; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button.primary:hover, .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); filter: none; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-tint); border-color: var(--accent); }
.panel { border-radius: 14px; box-shadow: none; }
.panel h2, .next h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.choice.primary { border-color: var(--accent); background: var(--brand-tint); }
.note { color: var(--amber); }
.note.info { background: var(--gray-bg); color: var(--ink); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.note.ok { color: var(--green); }
.pill.tentative { background: var(--tent-bg); color: var(--tent); }
.side.client { background: var(--cl-bg); color: var(--cl); }
.side.vendor { background: var(--us-bg); color: var(--us); }
.logo-mark { display: inline-block; flex: none; width: 20px; height: 20px; background: var(--logo) center/contain no-repeat; }

/* ---------- header ---------- */
.topbar { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 32px; gap: 10px; flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand::before { content: ''; width: 20px; height: 20px; background: var(--logo) center/contain no-repeat; margin-right: 8px; }
.brand span { color: inherit; }
.topbar .crumb { color: var(--line); font-size: 20px; flex: none; }
.topbar .proj { color: var(--ink); text-decoration: none; font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .proj:hover { color: var(--accent); }
.topbar .pnav { display: flex; gap: 2px; margin-left: 10px; flex-wrap: nowrap; }
.topbar .pnav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.topbar .pnav a.active, .topbar .pnav a:hover { background: var(--brand-tint); color: var(--accent); }
.demo-clock { background: var(--gray-bg); white-space: nowrap; }

.topbar details { position: relative; flex: none; }
.topbar summary { list-style: none; cursor: pointer; }
.topbar summary::-webkit-details-marker { display: none; }
.topbar .acct summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 14px; font-weight: 600; }
.topbar .acct summary::after { content: ''; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); }
.topbar .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px rgba(43, 43, 56, 0.12); display: flex; flex-direction: column; }
.topbar .menu a, .topbar .menu button { display: block; width: 100%; text-align: left; text-decoration: none; color: var(--ink); background: none; border: 0; border-radius: 8px; padding: 9px 10px; font-size: 14px; font-weight: 500; }
.topbar .menu a:hover, .topbar .menu button:hover, .topbar .menu a.active { background: var(--brand-tint); color: var(--accent); }
.topbar .menu .who { padding: 8px 10px 6px; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.topbar .menu .who b { color: var(--ink); font-size: 14px; }
.topbar .menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.topbar .menu .lang { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px 6px; font-size: 13px; color: var(--muted); }
.topbar .menu .lang span { margin-right: 4px; }
.topbar .lang-select { font-size: 13px; padding: 5px 8px; border-radius: 7px; }
.topbar .lang-note { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.topbar .mnav { display: none; }
.topbar .mnav summary { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); font-size: 18px; }
.topbar .here { display: none; }

/* ---------- workflow step bar ---------- */
.steps a { background: var(--panel); }
.steps li.current a { border-color: var(--accent); box-shadow: 0 0 0 3px var(--brand-tint); }
.steps li.current .n { background: var(--accent); }
.steps li.active .n { background: var(--brand-tint); color: var(--accent); }

@media (max-width: 1060px) {
  .topbar .crumb, .topbar .proj { display: none; }
}
@media (max-width: 860px) {
  /* Phone: brand + menu button; project and page name on a second line. */
  .topbar { flex-wrap: wrap; padding: 10px 16px; row-gap: 6px; }
  .topbar .pnav, .topbar .acct, .topbar .demo-clock, .topbar > .lang-note { display: none; }
  .topbar .mnav { display: block; }
  .topbar .here { display: flex; align-items: baseline; gap: 8px; flex-basis: 100%; min-width: 0; font-size: 13.5px; color: var(--muted); }
  .topbar .here a { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .topbar .here span { flex: none; }
  .topbar .here span::before { content: '·'; margin-right: 8px; }
  .topbar .menu { min-width: 240px; }
  /* The step bar shows only the step you're on (and follow-up) on a phone. */
  .steps li:not(.current):not(.ongoing) { display: none; }
  .steps li { flex: 1 1 45%; }
}
