:root {
  /* Colours and fonts: theme.css (loaded after this file on every page). */
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.05);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 13px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; }

.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.topbar nav a.active, .topbar nav a:hover { background: var(--gray-bg); color: var(--ink); }
.topbar .spacer { flex: 1; }
.demo-clock { font-size: 13px; color: var(--muted); background: var(--gray-bg); padding: 4px 10px; border-radius: 999px; }

main { max-width: 1180px; margin: 0 auto; padding: 20px 24px 60px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head .spacer { flex: 1; }

button, .btn { font: inherit; font-size: 14px; font-weight: 600; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 7px 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover { border-color: var(--faint); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover { filter: brightness(1.07); }
button.good { background: var(--green); border-color: var(--green); color: #fff; }
button.danger { color: var(--red); }
button.small { padding: 4px 9px; font-size: 13px; }
button:disabled { opacity: 0.5; cursor: default; }

input, select, textarea { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: #fff; color: var(--ink); min-width: 0; }
textarea { width: 100%; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-tint); border-color: var(--accent); }
label { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 3px; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--gray-bg); color: var(--muted); white-space: nowrap; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.red { background: var(--red-bg); color: var(--red); }
.side { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.side.client { background: var(--amber-bg); color: var(--amber); }
.side.vendor { background: var(--us-bg); color: var(--us); }

/* go-live hero */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; border-left: 5px solid var(--green); }
.hero.risk { border-left-color: var(--red); }
.hero .kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.hero .big { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0; }
.hero .big s { color: var(--faint); font-weight: 500; font-size: 20px; margin-right: 6px; }
.hero .delta { font-size: 15px; font-weight: 700; color: var(--red); }
.hero .ok { color: var(--green); font-weight: 700; }
.cause { margin-top: 6px; color: var(--ink); }
.cause b { color: var(--red); }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); position: relative; margin: 8px 0 4px; }
.timeline::before { content: ''; position: absolute; top: 13px; left: 8%; right: 8%; height: 3px; background: var(--line); }
.ms { text-align: center; position: relative; padding: 0 4px; }
.ms .dot { width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%; background: var(--gray-bg); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); position: relative; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.ms.done .dot { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.ms.in_progress .dot { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.ms.attention .dot { background: var(--amber-edge); box-shadow: 0 0 0 2px var(--amber-edge); }
.ms.at_risk .dot { background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.ms .name { font-weight: 700; font-size: 13.5px; }
.ms .date { font-size: 12.5px; color: var(--muted); }
.ms .date s { color: var(--faint); }
.ms .late { color: var(--red); font-weight: 700; }
.ms .wait { font-size: 11.5px; color: var(--amber); font-weight: 600; margin-top: 3px; }
.ms .clear { font-size: 11.5px; color: var(--green); font-weight: 600; margin-top: 3px; }

/* item rows */
.group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 14px 0 6px; display: flex; gap: 8px; align-items: center; }
.item { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 2fr); gap: 12px; align-items: start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; background: #fff; }
.item.blocking { border-color: var(--red-edge); background: var(--panel); }
.item .title { font-weight: 600; }
.item .quote { font-size: 13px; color: var(--muted); margin-top: 3px; font-style: italic; }
.item .due s { color: var(--faint); margin-right: 4px; }
.item .reason { font-size: 12.5px; color: var(--amber); margin-top: 3px; }
.item .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.evidence { font-size: 12.5px; background: var(--gray-bg); border-radius: 7px; padding: 6px 8px; margin-top: 4px; word-break: break-word; text-align: left; width: 100%; }

.flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.flag { font-size: 12px; background: var(--amber-bg); color: var(--amber); padding: 2px 8px; border-radius: 6px; }
.flag.bad { background: var(--red-bg); color: var(--red); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.2); z-index: 10; max-width: 90vw; }
.toast.err { background: var(--red); }

.feed { font-size: 13px; max-height: 260px; overflow: auto; }
.feed div { padding: 4px 0; border-bottom: 1px dashed var(--line); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; align-items: start; }
.row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.row > div { display: flex; flex-direction: column; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  main { padding: 14px 16px 50px; }
  .grid2 { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; }
  .item .actions { justify-content: flex-start; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .timeline::before { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero .big { font-size: 23px; }
}

/* workflow step bar */
.steps { list-style: none; display: flex; gap: 6px; margin: 0 0 16px; padding: 0; flex-wrap: wrap; counter-reset: s; }
.steps li { flex: 1; min-width: 130px; }
.steps a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 8px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); height: 100%; }
.steps .n { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gray-bg); color: var(--muted); font-size: 12px; }
.steps li.done a { color: var(--green); }
.steps li.done .n { background: var(--green-bg); color: var(--green); }
.steps li.current a { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--brand-tint); }
.steps li.current .n { background: var(--accent); color: #fff; }

/* action-first blocks */
.next { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-left: 5px solid var(--accent); }
.next .what { flex: 1; min-width: 240px; }
.next .kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.next h1 { font-size: 22px; margin: 4px 0; letter-spacing: -0.01em; }
.big-btn { font-size: 15px; padding: 10px 16px; }
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; width: 100%; }
.count { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; text-decoration: none; color: var(--ink); background: #fff; }
.count b { font-size: 22px; display: block; }
.count span { font-size: 12.5px; color: var(--muted); }
.count.hot { border-color: var(--accent); background: var(--brand-tint); }
.count.risk { border-color: var(--red-edge); background: var(--red-bg); }
.linkbox { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.linkbox input { flex: 1; min-width: 200px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.note { font-size: 13px; background: var(--amber-bg); color: var(--amber); border-radius: 8px; padding: 8px 10px; }
.note.info { background: var(--brand-tint); color: var(--ink); }
.note.ok { background: var(--green-bg); color: var(--green); }
.sample-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--amber-bg); border: 1px solid var(--amber-edge); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; margin-bottom: 8px; }
.sample-banner b { color: var(--amber); }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 18px 0 8px; display: flex; gap: 8px; align-items: center; }
.section-title .c { background: var(--gray-bg); border-radius: 999px; padding: 0 8px; }
.sentence { font-size: 15px; }
.sentence b { font-weight: 650; }
.check { font-size: 13.5px; border-radius: 8px; padding: 7px 10px; margin-top: 8px; }
.check.warn { background: var(--amber-bg); color: var(--amber); }
.check.bad { background: var(--red-bg); color: var(--red); }
.check.ok { background: var(--green-bg); color: var(--green); }
.check ul { margin: 2px 0 0; padding-left: 18px; }
.cand { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.cand.approved { background: var(--panel); border-color: var(--green-edge); }
.cand .quote { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 6px; border-left: 3px solid var(--line); padding-left: 8px; }
.cand .bar { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.cand details summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 8px; }
.demo-tools { margin-top: 30px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
@media (max-width: 860px) {
  .steps li { min-width: 0; flex: 1 1 45%; }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-clock { font-size: 11.5px; }
}

/* v1: step states + ongoing follow-up */
.steps small { display: block; font-weight: 500; font-size: 11.5px; color: var(--faint); }
.steps li.active a { color: var(--ink); }
.steps li.active .n { background: var(--brand-tint); color: var(--accent); }
.steps li.done small { color: var(--green); }
.steps li.ongoing a { border-style: dashed; }
.steps a > span:last-child { display: flex; flex-direction: column; }
.auth-box { max-width: 420px; margin: 60px auto; }
.auth-box .row > div { flex: 1; }
.auth-box input { width: 100%; }
.plist { display: grid; gap: 10px; }
.pcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; text-decoration: none; color: var(--ink); }
.pcard:hover { border-color: var(--accent); }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 8px; margin-bottom: 6px; align-items: center; }
.plan-row input { width: 100%; }
.hist { font-size: 12.5px; color: var(--muted); margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }
.hist div { margin: 2px 0; }
@media (max-width: 860px) {
  .plan-row { grid-template-columns: 1fr 1fr; }
  .plan-row .x { grid-column: span 2; justify-self: end; }
}

/* Choices on the access notice and sign-in page */
.choices { display: grid; gap: 10px; }
.choice { display: block; text-align: left; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; }
.choice:hover { border-color: var(--accent); }
.choice b { display: block; font-size: 15px; }
.choice span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.choice.primary { border-color: var(--accent); background: var(--brand-tint); }

/* Owner / date not known yet: said in words, never left blank. */
.tbc { color: var(--amber); font-weight: 600; }
