/* AI Requests. Colours and fonts from the Solvint brand (solvint-brand skill §2–3). */
:root {
  --crimson: #9E212B;
  --crimson-dark: #B7110D;
  --orange: #EB7219;
  --plum: #5A104C;
  --navy: #0E2841;
  --gray: #E8E8E8;
  --gray-2: #EEEEEE;
  --link: #467886;
  --text: #1d1d1f;
  --muted: #64686d;
  --line: #e2e2e2;
  --bg: #f7f7f8;
  --card: #ffffff;
  --tint: #fbf1f2;
  --ok: #1e6b3a;
  --ok-bg: #e5f3ea;
  --warn: #7a4b00;
  --warn-bg: #fff4de;
  --bad: #9E212B;
  --bad-bg: #fbe8e9;
  --info: #0E2841;
  --info-bg: #eaf0f7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14, 40, 65, .06), 0 2px 8px rgba(14, 40, 65, .04);
  font-family: "Aptos", "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.5; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
h1, h2, h3 { font-family: "Aptos Display", "Aptos", "Segoe UI", "Inter", sans-serif; line-height: 1.2; margin: 0; }
h1 { font-size: 1.85rem; color: var(--navy); letter-spacing: -.01em; }
h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: .9rem; }
h3 { font-size: .95rem; color: var(--navy); margin: 1.1rem 0 .4rem; }
code { background: var(--gray-2); padding: 0 .3em; border-radius: 4px; }
p { margin: 0 0 .8rem; }

/* Header */
.devbar { background: var(--plum); color: #fff; text-align: center; font-size: .8rem; padding: .3rem 1rem; }
.guestbar { background: var(--navy); color: #fff; text-align: center; font-size: .8rem; padding: .3rem 1rem; }
.guest-form .q { margin-bottom: 1rem; }
.admin-code { margin: .2rem 0 .4rem; }
.admin-code summary { cursor: pointer; color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.site-header { background: #fff; }
.header-inner { max-width: 1040px; margin: 0 auto; padding: .85rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { height: 28px; width: auto; display: block; }
.app-name { color: var(--navy); font-weight: 600; border-left: 1px solid var(--line); padding-left: .9rem; }
.accent-bar { height: 3px; background: linear-gradient(90deg, #EB7219 0%, #9E212B 100%); }
.nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--navy); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a.on, .nav a:hover { border-bottom-color: var(--orange); }
.nav .who { color: var(--muted); }

.page { max-width: 880px; margin: 0 auto; padding: 1.6rem 16px 4rem; }
.page.wide { max-width: 1160px; }
.center { text-align: center; }

/* Cards and callouts */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 0 0 1rem; box-shadow: var(--shadow); }
.card.narrow { max-width: 520px; margin: 2rem auto; }
.card.attention { border-top: 3px solid var(--orange); }
.card.decision { border-top: 3px solid var(--crimson); }
.card.admin-box { border-top: 3px solid var(--plum); }
details.card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .6rem; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h2 { margin: 0; }
details.card > summary::after { content: "▾"; color: var(--muted); margin-left: auto; }
details.card[open] > summary::after { content: "▴"; }
details.card[open] > summary { margin-bottom: .8rem; }
details.card:not(.list-card) > summary { color: var(--crimson); font-weight: 600; }

.callout { background: var(--gray-2); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 0 0 1rem; }
.callout p { margin: 0; }
.callout .actions { margin-top: .8rem; }
.callout.info { background: var(--info-bg); color: var(--info); }
.callout.warn { background: var(--warn-bg); color: var(--warn); }
.callout.good { background: var(--ok-bg); color: var(--ok); }
.flash { background: var(--ok-bg); color: var(--ok); border-radius: var(--radius); padding: .75rem 1.1rem; margin-bottom: 1.2rem; font-weight: 500; }
.flash-warn { background: var(--warn-bg); color: var(--warn); }
.empty { color: var(--muted); margin: 0; }
.help { color: var(--muted); font-size: .88rem; margin: .1rem 0 .5rem; }
.opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
.crumbs { color: var(--muted); font-size: .88rem; margin: 0 0 .4rem; }
.crumbs a { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.05rem; margin: .5rem 0 0; }
.count-pill { display: inline-block; background: var(--gray-2); color: var(--muted); border-radius: 999px; padding: 0 .55rem; font-size: .8rem; font-weight: 600; margin-left: .3rem; }

/* Home */
.hero { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: linear-gradient(135deg, #EB7219 0%, #9E212B 100%); opacity: .07; border-radius: 24px; transform: rotate(18deg); }
.hero h1 { font-size: 2.1rem; color: var(--crimson); }
.hero .lead { max-width: 560px; margin: .8rem 0 1.4rem; }
.flow { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: var(--muted); font-size: .92rem; }
.flow li { display: flex; align-items: center; gap: .5rem; }
.flow strong { color: var(--navy); font-weight: 600; margin-right: .25rem; }
.n { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--crimson); color: #fff; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700; flex: none; }

/* Badges */
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-waiting { background: var(--warn-bg); color: var(--warn); }
.badge-good { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-muted, .badge-neutral { background: var(--gray-2); color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); padding: .45rem .55rem; }
td { border-bottom: 1px solid var(--gray-2); padding: .65rem .55rem; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.late { color: var(--bad); font-weight: 700; }
.ref { color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; font-size: .88rem; }
.title-link { color: var(--navy); font-weight: 600; text-decoration: none; }
.title-link:hover, .ref:hover { text-decoration: underline; }
.row-action { font-weight: 600; color: var(--crimson); text-decoration: none; white-space: nowrap; }

/* Buttons */
button, .button { font: inherit; border-radius: 8px; padding: .6rem 1.15rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.3; font-weight: 600; }
.primary { background: var(--crimson); color: #fff; }
.primary:hover { background: var(--crimson-dark); }
.primary.big { font-size: 1.05rem; padding: .8rem 1.6rem; }
.secondary { background: #fff; color: var(--crimson); border-color: #d9b5b9; }
.secondary:hover { background: var(--tint); border-color: var(--crimson); }
.secondary.small { padding: .3rem .75rem; font-size: .85rem; }
.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
button.link { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; font-weight: 400; }
.danger-link { color: var(--muted) !important; font-size: .88rem; }
button:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.cancel { color: var(--muted); margin-left: .4rem; }
form.inline { display: inline; }
.withdraw { margin: -.4rem 0 1rem; text-align: right; }

/* Forms */
.form-head { margin-bottom: 1.4rem; }
.form-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem .4rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.form-section h2 { display: flex; align-items: center; gap: .6rem; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.q { grid-column: 1 / -1; border: 0; margin: 0 0 1.3rem; padding: 0; min-width: 0; }
.q.half { grid-column: auto; }
.q[hidden] { display: none; }
.q-label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; padding: 0; font-size: .95rem; }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=date], textarea, select { font: inherit; width: 100%; padding: .6rem .75rem; border: 1px solid #cfd1d4; border-radius: 8px; background: #fff; color: var(--text); }
input.short { max-width: 140px; }
textarea { resize: vertical; min-height: 4.5rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(235, 114, 25, .18); }
button:focus-visible, .pill:focus-within, .card-choice:focus-within, .band-stop:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.has-error input, .has-error textarea, .has-error select, [aria-invalid=true] { border-color: var(--bad); }
.field-error { color: var(--bad); font-weight: 600; margin: .35rem 0 0; font-size: .88rem; }
.counter { color: var(--muted); font-size: .78rem; text-align: right; margin-top: .2rem; }
.form-actions { position: sticky; bottom: 0; background: rgba(247, 247, 248, .94); backdrop-filter: blur(4px); padding: .9rem 0; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: .5rem; }

/* Pills: compact single and multiple choice */
.pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: .45rem .9rem; border: 1px solid #cfd1d4; border-radius: 999px; background: #fff; font-size: .92rem; transition: all .12s; }
.pill:hover span { border-color: var(--crimson); }
.pill input:checked + span { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.pill input[type=checkbox]:checked + span::before { content: "✓ "; }

/* Cards: bigger choices (company, test person) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.cards.stack { grid-template-columns: 1fr; }
.card-choice { position: relative; cursor: pointer; }
.card-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.card-choice span { display: block; padding: .85rem 1rem; border: 1px solid #cfd1d4; border-radius: var(--radius); background: #fff; font-weight: 600; color: var(--navy); transition: all .12s; }
.card-choice span small { font-weight: 400; color: var(--muted); }
.card-choice:hover span { border-color: var(--crimson); }
.card-choice input:checked + span { border-color: var(--crimson); background: var(--tint); box-shadow: inset 0 0 0 1px var(--crimson); color: var(--crimson); }

/* Band slider: radio stops on a track */
.band { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; margin: .7rem 0 .1rem; }
.band::before { content: ""; position: absolute; left: 10%; right: 10%; top: 11px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #EB7219 0%, #9E212B 100%); opacity: .3; }
.band-stop { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; position: relative; padding: 0 .15rem; }
.band-stop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.band-stop .dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid #c9cbce; z-index: 1; transition: all .12s; }
.band-stop:hover .dot { border-color: var(--orange); }
.band-stop input:checked + .dot { background: var(--crimson); border-color: var(--crimson); box-shadow: 0 0 0 5px #f3d9dc; }
.band-label { font-size: .82rem; margin-top: .4rem; color: var(--muted); }
.band-stop input:checked ~ .band-label { color: var(--crimson); font-weight: 700; }
.band-scale { display: flex; justify-content: space-between; color: #a0a3a7; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: 0 2%; }
.exact { display: block; margin-top: .55rem; color: var(--muted); font-size: .85rem; }
.exact input { display: inline-block; width: 130px; margin: 0 .3rem; padding: .35rem .55rem; }

/* Payback */
.payback { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0 0 1.2rem; }
.payback > div { background: var(--bg); border-radius: var(--radius); padding: .8rem 1rem; display: flex; flex-direction: column; }
.payback .main { background: var(--tint); }
.payback .k { color: var(--muted); font-size: .78rem; }
.payback .v { font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.payback .main .v { color: var(--crimson); }
.payback .s { color: var(--muted); font-size: .75rem; }

/* After submitting an idea */
.thanks { text-align: center; padding: 1.5rem 0 1rem; }
.thanks .check { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: inline-grid; place-items: center; font-size: 1.6rem; font-weight: 700; margin-bottom: .8rem; }
.next-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 1.5rem; }
.choice-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.choice-card p { color: var(--muted); flex: 1; }
.choice-card:first-child { border-top: 3px solid var(--crimson); }

/* Request page */
.title-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .9rem; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem 1.4rem; margin: 0 0 1.2rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.meta dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.meta dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.meta .wide { grid-column: 1 / -1; }
.row-form label.grow { flex: 1 1 320px; }
.answers { display: grid; grid-template-columns: minmax(170px, 1fr) 2fr; gap: .45rem 1.2rem; margin: 0; }
.answers dt { color: var(--muted); font-size: .92rem; }
.answers dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.answer-group h3 { border-bottom: 1px solid var(--gray-2); padding-bottom: .3rem; }
.answer-group:first-child h3 { margin-top: 0; }
.comments, .history, .plain { list-style: none; padding: 0; margin: 0 0 1rem; }
.comments li { border-left: 3px solid var(--gray); padding: .2rem 0 .2rem .9rem; margin-bottom: .9rem; }
.c-body { white-space: pre-line; overflow-wrap: anywhere; margin-top: .15rem; }
.role { background: var(--gray-2); color: var(--muted); font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; }
.when { color: var(--muted); font-size: .82rem; }
.history li { padding: .35rem 0; border-bottom: 1px solid var(--gray-2); font-size: .93rem; }
.history li:last-child { border-bottom: 0; }
.history .note { white-space: pre-line; color: var(--navy); margin-top: .15rem; }
.contact { margin: .8rem 0 0; font-size: .92rem; }
.comment-form .q-label { margin-top: .4rem; }

/* Admin */
.row-form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; margin: .4rem 0; }
.row-form label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: .25rem; min-width: 180px; }
.row-form.tight { align-items: center; margin: .25rem 0; }
.row-form.tight input[type=text] { max-width: 360px; flex: 1; }
.row-form.add input[type=text] { max-width: 360px; flex: 1; }
.row-form .check { flex-direction: row; align-items: center; color: var(--text); min-width: 0; font-size: .9rem; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; align-items: end; margin-bottom: .8rem; }
.filters label { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); gap: .25rem; }
.filters .search { grid-column: span 2; }
.filter-actions { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; font-size: .9rem; }
.funnel { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .55rem; margin: 1rem 0 1.2rem; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .85rem; text-decoration: none; display: flex; flex-direction: column; color: var(--navy); box-shadow: var(--shadow); }
.stage .count { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stage .label { font-size: .78rem; color: var(--muted); }
a.stage:hover, .stage.on { border-color: var(--crimson); }
.stage.tone-waiting { border-top: 3px solid var(--orange); }
.stage.tone-good { border-top: 3px solid var(--ok); }
.stage.tone-bad { border-top: 3px solid var(--crimson); }
.stage.tone-info { border-top: 3px solid var(--navy); }
.stage.tone-muted { border-top: 3px solid var(--gray); }
.stage.later { opacity: .45; border-style: dashed; box-shadow: none; }

@media (max-width: 760px) {
  h1, .hero h1 { font-size: 1.55rem; }
  .hero { padding: 1.5rem 1.2rem; }
  .q-grid, .next-choices, .settings-grid, .payback { grid-template-columns: 1fr; }
  .q.half { grid-column: 1 / -1; }
  .answers { grid-template-columns: 1fr; }
  .answers dd { margin-bottom: .5rem; }
  .filters .search { grid-column: 1 / -1; }
  .brand img { height: 22px; }
  .card, .form-section { padding: 1.1rem 1rem; }
  table thead { display: none; }
  table tr { display: block; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .15rem 0; }
  table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
  .band-label { font-size: .7rem; }
}

/* Co-workers in the idea form */
.cw-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: .5rem .8rem; }
.tag { display: inline-block; background: var(--info-bg); color: var(--info); font-size: .72rem; font-weight: 600; padding: .05rem .5rem; border-radius: 999px; margin-left: .4rem; vertical-align: middle; }

/* End-to-end flow on the Review page */
.e2e { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 1rem 0 1.2rem; box-shadow: var(--shadow); }
.e2e-head { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: baseline; margin-bottom: 1rem; }
.e2e-head h2 { margin: 0; }
.e2e-head span { color: var(--muted); font-size: .9rem; }
.e2e-head strong { color: var(--navy); }
.flowline { display: flex; align-items: stretch; overflow-x: auto; padding-bottom: .3rem; }
.fstep { flex: 1 0 104px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--navy); background: var(--bg); border-radius: 8px; padding: .6rem .7rem; min-height: 92px; position: relative; }
.fstep + .fstep { margin-left: 20px; }
.fstep + .fstep::before { content: ""; position: absolute; left: -16px; top: 50%; border: 7px solid transparent; border-left-color: #b9bcc0; transform: translateY(-50%); }
.fstep .count { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.fstep .label { font-size: .76rem; color: var(--muted); line-height: 1.25; }
.fstep .phase { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: #9a9da1; }
a.fstep:hover, .fstep.on { box-shadow: inset 0 0 0 2px var(--crimson); }
.fstep.waiting { background: var(--warn-bg); }
.fstep.good { background: var(--ok-bg); }
.fstep.later { opacity: .55; }
.offflow { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .9rem; font-size: .88rem; color: var(--muted); }
.offflow a { color: var(--navy); text-decoration: none; }
.offflow a:hover { text-decoration: underline; }
.offflow strong { color: var(--navy); }

/* Categories on the Review page */
.cat-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.cat-grid .card { margin: 0; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li a { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--gray-2); text-decoration: none; color: var(--text); font-size: .9rem; }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list li a:hover .cat-name { text-decoration: underline; }
.cat-list .cat-n { font-weight: 700; color: var(--navy); min-width: 1.6rem; text-align: right; }
.cat-list .cat-pts { color: var(--muted); font-size: .78rem; min-width: 3.2rem; text-align: right; }
.cat-list .none .cat-name { color: var(--muted); font-style: italic; }
.bar { display: block; height: 4px; background: var(--gray-2); border-radius: 2px; margin-top: .25rem; }
.bar i { display: block; height: 4px; background: linear-gradient(90deg, #EB7219 0%, #9E212B 100%); border-radius: 2px; }
.bar i.w0 { width: 0%; }
.bar i.w10 { width: 10%; }
.bar i.w20 { width: 20%; }
.bar i.w30 { width: 30%; }
.bar i.w40 { width: 40%; }
.bar i.w50 { width: 50%; }
.bar i.w60 { width: 60%; }
.bar i.w70 { width: 70%; }
.bar i.w80 { width: 80%; }
.bar i.w90 { width: 90%; }
.bar i.w100 { width: 100%; }
.types li { margin-bottom: .6rem; }
.nexian { font-size: .68rem; color: var(--plum); font-weight: 600; margin-left: .3rem; }

@media (max-width: 760px) {
  .cat-grid, .cw-grid { grid-template-columns: 1fr; }
}


/* Pipeline on the Review page (colours validated with the dataviz palette checker) */
.owner-initiator { background: #6a4ce2; }
.owner-gate { background: #f47230; }
.owner-steering { background: #257de0; }
.owner-development { background: #f2a600; }
.owner-live { background: #008a17; }
.period { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; margin-bottom: 1.1rem; }
.period h2 { margin: 0 .8rem 0 0; align-self: center; }
.period label { display: flex; flex-direction: column; font-size: .76rem; color: var(--muted); gap: .2rem; }
.period input[type=date] { width: auto; padding: .4rem .55rem; }
.period .mode .pill span { font-size: .82rem; padding: .35rem .8rem; }
.period .quick { font-size: .85rem; color: var(--muted); align-self: center; }
.pipe-scroll { overflow-x: auto; }
.pipe { min-width: 860px; }
.pipe-heads, .pipe-rates { display: grid; grid-template-columns: repeat(9, 1fr); }
.ph { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .25rem .35rem; }
.ph-label { font-size: .74rem; font-weight: 600; color: var(--text); line-height: 1.2; min-height: 2.5em; display: flex; align-items: flex-end; justify-content: center; }
.ph-count { font-size: 1.55rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.ph-line { width: 56%; height: 4px; border-radius: 2px; margin-top: .25rem; }
.pipe-svg { width: 100%; height: auto; display: block; margin: .2rem 0; }
.pipe-rates span { font-size: .8rem; color: var(--muted); padding-left: .2rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; padding: 0; margin: .7rem 0 1rem; font-size: .82rem; color: var(--muted); }
.legend .dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; background: var(--bg); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .7rem; }
.kpis div { display: flex; flex-direction: column; }
.kpi-v { font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.kpi-l { font-size: .8rem; color: var(--muted); }

/* Where one request stands */
.stepper { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1rem; }
.stepper li { display: flex; align-items: center; gap: .35rem; font-size: .74rem; color: #9a9da1; padding: .2rem .55rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.stepper li.done { color: var(--muted); }
.stepper li.now { color: var(--navy); font-weight: 700; border-color: var(--navy); }
.sdot { width: .55rem; height: .55rem; border-radius: 50%; opacity: .3; }
.stepper li.done .sdot, .stepper li.now .sdot { opacity: 1; }
.move-any { margin-top: .9rem; border-top: 1px solid var(--gray-2); padding-top: .8rem; }

@media (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; }
}
.tag.muted { background: var(--gray-2); color: var(--muted); }
.callout.archived { background: var(--gray-2); color: var(--text); border-left: 4px solid #9a9da1; }
.archive-form { margin-top: .8rem; text-align: right; }
.archive-form .link { color: var(--muted); font-size: .88rem; }
.stepper li.next { border-style: dashed; }
.stepper .sn { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: #9a9da1; margin-left: .15rem; }
.stepper li.off { border-color: #9a9da1; color: var(--text); }

