/* Tembre UI. Brand tokens from brand/brand_tokens.css; semantic tokens below them.
   Dark is the default look; html[data-theme="light"] switches to the warm-ivory light look. */
@font-face { font-family: "Rubik"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/rubik-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/rubik-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/fonts/rubik-latin-700-normal.woff2") format("woff2"); }

:root {
  --tembre-forest-green: #1F5A3A;
  --tembre-deep-navy: #1E3A5F;
  --tembre-earth-red: #8B1E1E;
  --tembre-plum: #5B3A78;
  --tembre-charcoal: #45413C;
  --tembre-warm-ivory: #F5F0E6;
  --tembre-white: #FFFFFF;
  --tembre-black: #000000;
  --tembre-font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Dark (default). Brand colours lightened so they read on a near-black green ground; all text ≥ 4.5:1. */
  color-scheme: dark;
  --bg: #0E1311;
  --side: #0A0E0C;
  --surface: #151B18;
  --raised: #1C2420;
  --line: rgba(236, 232, 224, .09);
  --line2: rgba(236, 232, 224, .17);
  --field: #10161A;
  --text: #D9D4CB;
  --strong: #F5F1EA;
  --muted: #A19C92;
  --brand: #2D7A50;          /* filled buttons, white text 5.3:1 */
  --accent: #8AD3A6;         /* active menu item, section labels */
  --link: #AFC7E6;
  --focus: #AFC7E6;
  --pass-fg: #8AD3A6;  --pass-bg: rgba(138, 211, 166, .13);
  --fail-fg: #F2A0A0;  --fail-bg: rgba(242, 160, 160, .13);
  --blocked-fg: #C9B2E6; --blocked-bg: rgba(201, 178, 230, .14);
  --info-fg: #AFC7E6;  --info-bg: rgba(175, 199, 230, .12);
  --unknown-fg: #D9D4CB; --unknown-bg: rgba(236, 232, 224, .08);
  --side-text: #B8B3A9;
  --side-on: rgba(138, 211, 166, .12);
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --radius: 14px;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: var(--tembre-warm-ivory);
  --side: #FFFFFF;
  --surface: #FFFFFF;
  --raised: #FBF8F2;
  --line: #E4DDD0;
  --line2: #D4CBBB;
  --field: #FFFFFF;
  --text: #3A3632;
  --strong: #1D1B18;
  --muted: #6A645C;
  --brand: var(--tembre-forest-green);
  --accent: var(--tembre-forest-green);
  --link: var(--tembre-deep-navy);
  --focus: var(--tembre-deep-navy);
  --pass-fg: var(--tembre-forest-green); --pass-bg: #E2EEE6;
  --fail-fg: var(--tembre-earth-red);    --fail-bg: #F6E2E0;
  --blocked-fg: var(--tembre-plum);      --blocked-bg: #EEE7F4;
  --info-fg: var(--tembre-deep-navy);    --info-bg: #E9EEF4;
  --unknown-fg: var(--tembre-charcoal);  --unknown-bg: #ECE8E1;
  --side-text: #45413C;
  --side-on: #E2EEE6;
  --shadow: 0 12px 32px rgba(43, 40, 36, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--tembre-font); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { color: var(--strong); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2rem; font-weight: 500; letter-spacing: -.02em; }
h2 { font-size: 1.05rem; font-weight: 500; margin-top: 1.8em; }
h3 { font-size: .95rem; font-weight: 500; }
p { margin: 0 0 1em; }
strong { font-weight: 500; color: var(--strong); }
small, .muted { color: var(--muted); }
code { font-size: .88em; background: var(--unknown-bg); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, td, .stat .value { font-variant-numeric: tabular-nums; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; color: var(--strong); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand > span:not(.mark) { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.mark { width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--brand); display: grid; place-items: center; }
.mark img { width: 20px; height: auto; display: block; }

/* Top bar: on every signed-in page. */
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; min-height: 60px; padding: 10px 40px; border-bottom: 1px solid var(--line); }
.crumbs { flex: 1 1 240px; min-width: 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--strong); }
.crumbs [aria-current] { color: var(--strong); }
.crumbs .sep { margin: 0 8px; opacity: .6; }
.topbar .search { flex: 0 1 300px; margin: 0; }
.topbar .search input { min-height: 38px; padding: 0 12px; font-size: .9rem; border-radius: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap; line-height: 1.6; }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.info { background: var(--info-bg); color: var(--info-fg); }
.account { position: relative; }
.account summary { list-style: none; cursor: pointer; border-radius: 50%; }
.account summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 500; }
.accountmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 230px; padding: 8px; background: var(--raised); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); }
.accountmenu .who { display: flex; flex-direction: column; padding: 6px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: .9rem; }
.accountmenu .who span { color: var(--muted); font-size: .82rem; }
.accountmenu form { margin: 0; }
.menuitem { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.menuitem:hover { background: var(--unknown-bg); color: var(--strong); }
.ico { flex: 0 0 auto; width: 18px; height: 18px; }

/* Project shell: sidebar on desktop, icon rail on laptops and tablets, menu button on phones. */
.shell { display: flex; min-height: 100vh; }
.content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.content main { width: 100%; max-width: 1180px; margin: 0; padding: 36px 40px 56px; }
.content .foot { margin: auto 0 0; padding: 0 40px 24px; }
.sidebar { flex: 0 0 252px; width: 252px; background: var(--side); border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 0 8px; }
.project { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.project:hover { text-decoration: none; border-color: var(--line2); }
.project .lbl { display: flex; flex-direction: column; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.project .org { font-size: .74rem; color: var(--muted); }
.project .name { font-size: .9rem; font-weight: 500; color: var(--strong); }
.project .initials { width: 34px; height: 34px; flex: none; border-radius: 8px; background: var(--unknown-bg); color: var(--strong); display: grid; place-items: center; font-size: .74rem; font-weight: 500; }
.project .updown { flex: 0 0 auto; color: var(--muted); display: flex; }
.project .switch { font-size: .82rem; color: var(--link); }
.sidebar nav, .sheet nav { flex: 1 1 auto; display: flex; }
.sidebar ul, .sheet ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a, .sheet nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--side-text); font-size: .92rem; text-decoration: none; }
.sidebar nav a:hover, .sheet nav a:hover { background: var(--unknown-bg); color: var(--strong); }
.sidebar nav a[aria-current="page"], .sheet nav a[aria-current="page"] { background: var(--side-on); color: var(--accent); font-weight: 500; }
.sidebar .group, .sheet .group { font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
.sidebar .push { flex: 1; min-height: 16px; }
.sidebar .planned, .sheet .planned { color: var(--muted); font-size: .78rem; padding: 10px 12px 0; }
.sheet .push { display: none; }
.phonebar { display: none; }

/* Laptops and tablets: the sidebar shrinks to icons; names show on hover and to screen readers. */
@media (max-width: 1100px) and (min-width: 641px) {
  .sidebar { flex-basis: 72px; width: 72px; padding: 16px 10px; align-items: stretch; }
  .sidebar .brand { justify-content: center; padding: 0; }
  .sidebar .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sidebar .project { justify-content: center; padding: 6px 0; }
  .sidebar nav a { justify-content: center; padding: 0; }
  .sidebar .group { padding: 0; margin: 8px 6px; border-top: 1px solid var(--line); font-size: 0; }
  .sidebar .planned { display: none; }
  .content main { padding: 28px 28px 48px; }
  .topbar { padding: 10px 28px; }
  .content .foot { padding: 0 28px 24px; }
}

/* Phones: a top bar with a menu button that opens the same menu. */
@media (max-width: 640px) {
  .sidebar, .content > .topbar { display: none; }
  .phonebar { display: flex; align-items: center; gap: 8px; background: var(--side); border-bottom: 1px solid var(--line); padding: 8px 12px; position: relative; }
  .phonebar .brand { flex: 1; min-width: 0; gap: 8px; }
  .phonebar .mark { width: 28px; height: 28px; border-radius: 8px; }
  .phonebar .mark img { width: 17px; }
  .phonebar .crumb { color: var(--strong); font-weight: 500; font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .phonemenu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; color: var(--strong); }
  .phonemenu summary::-webkit-details-marker { display: none; }
  .phonemenu[open] summary { background: var(--unknown-bg); }
  .phonemenu .sheet { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--side); border-bottom: 1px solid var(--line2); padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
  .phonebar .avatar { width: 34px; height: 34px; }
  .content main { padding: 22px 16px 48px; }
  .content .foot { padding: 0 16px 24px; }
  h1 { font-size: 1.6rem; }
}

/* Pages outside a project */
.plain { min-height: 100vh; display: flex; flex-direction: column; }
.plainbar { padding: 16px 40px 0; }
.plain > .topbar { border-bottom: 1px solid var(--line); }
.plain main { width: 100%; max-width: 1180px; padding: 36px 40px 56px; }
.plain .foot { margin-top: auto; padding: 0 40px 24px; }
@media (max-width: 640px) { .plainbar, .plain > .topbar { padding-left: 16px; padding-right: 16px; } .plain main { padding: 22px 16px 48px; } .plain .foot { padding: 0 16px 24px; } }

main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; }

/* Page header: section label, title, purpose, key facts, buttons. */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.pagehead.divided { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.pagehead h1 { margin: 0; }
.ph-text { min-width: 0; flex: 1 1 420px; }
.eyebrow { margin: 0 0 8px; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow a { color: var(--accent); }
.eyebrow .badge { letter-spacing: 0; text-transform: none; }
.pagehead .sub { margin: 8px 0 0; color: var(--muted); max-width: 680px; }
.meta { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.meta li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .84rem; color: var(--text); }
.meta strong { color: var(--strong); }

/* Section title rows inside cards */
.sh { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px; }
.sh > div { flex: 1 1 200px; min-width: 0; }
.sh h2 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.sh p { margin: 3px 0 0; font-size: .85rem; color: var(--muted); }
.cnt { font-size: .75rem; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--unknown-bg); color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card.flush { overflow: hidden; }
.card + .card, .card + .cards, .cards + .card { margin-top: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.cards + .cards { margin-top: 20px; }
.cards > .card { margin-top: 0; }
.card .body { padding: 0 22px 22px; }
.card .sh + .tablewrap, .card .sh + .list { border-top: 1px solid var(--line); }
.card .tablewrap { border: 0; border-radius: 0; }

/* Surfaces */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.panel + .panel { margin-top: 16px; }
.grid > .panel { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat .label { font-size: .85rem; color: var(--muted); }
.stat .value { font-size: 1.7rem; font-weight: 500; letter-spacing: -.02em; color: var(--strong); line-height: 1.2; margin: 6px 0 2px; }
.stat .value.nm { font-size: 1rem; font-weight: 500; color: var(--unknown-fg); padding: 9px 0 5px; }
.stat .basis { font-size: .8rem; color: var(--muted); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--strong); margin-bottom: 4px; }
.install-start p { max-width: 620px; margin: 0 auto 8px; }
.install-steps { list-style: none; margin: 16px auto; padding: 0; max-width: 760px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; text-align: left; }
.install-steps li { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.install-steps li span { color: var(--strong); }
.install-steps li small:first-child { color: var(--accent); font-weight: 500; }
.callout { border-left: 3px solid var(--info-fg); background: var(--info-bg); padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; }
.callout.warn { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--info-fg); }
.callout.bad { border-left-color: var(--fail-fg); background: var(--fail-bg); }
.flash { background: var(--pass-bg); border-left: 3px solid var(--pass-fg); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; color: var(--strong); }
.errors { background: var(--fail-bg); border-left: 3px solid var(--fail-fg); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; color: var(--strong); }
.errors ul { margin: 4px 0 0; padding-left: 18px; }

/* Tables become stacked cards under 640px. */
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .92rem; }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .7rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; padding-top: 11px; padding-bottom: 11px; }
.table th:first-child, .table td:first-child { padding-left: 22px; }
.table th:last-child, .table td:last-child { padding-right: 22px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--raised); }
.table td .title { color: var(--strong); }
.tablewrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; background: var(--surface); }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 10px 6px; }
  .table td, .table td:first-child, .table td:last-child { border: 0; padding: 3px 12px; }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
}

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap; line-height: 1.6; background: var(--unknown-bg); color: var(--unknown-fg); }
.badge.pass { background: var(--pass-bg); color: var(--pass-fg); }
.badge.fail { background: var(--fail-bg); color: var(--fail-fg); }
.badge.blocked { background: var(--blocked-bg); color: var(--blocked-fg); }
.badge.na { background: var(--unknown-bg); color: var(--unknown-fg); }
.badge.draft { background: var(--info-bg); color: var(--info-fg); }
.badge.critical { background: var(--fail-fg); color: var(--bg); }
.badge.high { background: var(--fail-bg); color: var(--fail-fg); }
.badge.medium { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.badge.low { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line2); }

/* Forms */
form.stack { display: grid; gap: 16px; max-width: 720px; }
label { font-weight: 500; display: block; margin-bottom: 6px; color: var(--strong); font-size: .92rem; }
.hint { font-weight: 400; font-size: .84rem; color: var(--muted); display: block; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--field); color: var(--strong); min-height: 44px;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: .92rem; font-weight: 500; border-radius: 10px; padding: 9px 16px; min-height: 42px; border: 1px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: var(--raised); color: var(--strong); border-color: var(--line2); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .86rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0; background: var(--surface); }
legend { font-weight: 500; padding: 0 6px; color: var(--strong); }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.checks input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }

/* Outcome choice: large touch targets for the phone run screen. */
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice.four { grid-template-columns: repeat(4, 1fr); }
.choice label { margin: 0; font-weight: 500; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid var(--line2); border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; text-align: center; padding: 4px; font-size: .95rem; }
.choice span:hover { background: var(--raised); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input[value=pass] + span { color: var(--pass-fg); }
.choice input[value=fail] + span { color: var(--fail-fg); }
.choice input[value=blocked] + span { color: var(--blocked-fg); }
.choice input[value=pass]:checked + span { border-color: var(--pass-fg); background: var(--pass-bg); }
.choice input[value=fail]:checked + span { border-color: var(--fail-fg); background: var(--fail-bg); }
.choice input[value=blocked]:checked + span { border-color: var(--blocked-fg); background: var(--blocked-bg); }
.choice input[value=not_run]:checked + span, .choice input[value=na]:checked + span { border-color: var(--unknown-fg); background: var(--unknown-bg); color: var(--strong); }
.step { border-top: 1px solid var(--line); padding: 16px 0; }
.step:first-of-type { border-top: 0; }
.step .num { display: inline-block; min-width: 1.6em; font-weight: 500; color: var(--accent); }
.expected { border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; margin: 8px 0 12px; font-size: .95rem; color: var(--strong); }
ol.steps { padding-left: 1.3em; margin: 0; } ol.steps li { margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; color: var(--strong); }
.progress { height: 8px; background: var(--unknown-bg); border-radius: 99px; overflow: hidden; display: flex; gap: 2px; margin-top: 8px; }
.progress i { display: block; height: 100%; }
.progress .p { background: var(--pass-fg); } .progress .f { background: var(--fail-fg); } .progress .b { background: var(--blocked-fg); } .progress .n { background: var(--muted); }

/* Campaign board */
.badge.active { background: var(--pass-bg); color: var(--pass-fg); }
.tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; margin: 16px 0 0; }
.tally dt { font-size: .84rem; color: var(--muted); order: 2; } .tally div { display: flex; flex-direction: column; } .tally dd { margin: 0; font-size: 1.5rem; font-weight: 500; color: var(--strong); line-height: 1.2; font-variant-numeric: tabular-nums; }
.tiles { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tile { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .92rem; }
.tile:hover { color: var(--strong); text-decoration: none; }
.tile strong { font-size: .75rem; font-weight: 500; padding: 0 7px; border-radius: 999px; background: var(--unknown-bg); color: var(--text); }
.tile[aria-current="true"] { color: var(--strong); border-bottom-color: var(--accent); font-weight: 500; }
.status { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; line-height: 1.6; box-shadow: inset 0 0 0 1px var(--line2); color: var(--text); white-space: nowrap; }
.status.st-failed { background: var(--fail-bg); color: var(--fail-fg); box-shadow: none; }
.status.st-decision { background: var(--blocked-bg); color: var(--blocked-fg); box-shadow: none; }
.status.st-done { background: var(--pass-bg); color: var(--pass-fg); box-shadow: none; }
.status.st-waiting { background: var(--info-bg); color: var(--info-fg); box-shadow: none; }
.status.st-fixing { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.status.st-retest { background: var(--info-fg); color: var(--bg); box-shadow: none; }
.rowactions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rowactions form { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.decide input[type=text] { min-height: 36px; padding: 6px 10px; max-width: 200px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mark.ok, .mark.wait { width: auto; height: auto; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 500; white-space: nowrap; }
.mark.ok { background: var(--pass-bg); color: var(--pass-fg); } .mark.wait { background: var(--info-bg); color: var(--info-fg); }
.btn[disabled] { background: var(--unknown-bg); border-color: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }
.callout.ok { border-left-color: var(--pass-fg); background: var(--pass-bg); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.shots figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.shots img { display: block; width: 100%; height: 220px; object-fit: contain; background: var(--raised); border-radius: 8px; }
.shots figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.shots .gone div { height: 220px; display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); background: var(--unknown-bg); border-radius: 8px; font-size: .9rem; }
input[type=file] { font: inherit; padding: 8px 0; max-width: 100%; color: var(--text); }

/* Sign in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; max-width: none; }
.auth .panel { width: 100%; max-width: 400px; padding: 28px; }
.auth .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.auth .logo .mark { width: 40px; height: 40px; border-radius: 11px; }
.auth .logo .mark img { width: 24px; }
.auth .logo > span:last-child { font-weight: 700; font-size: 1.7rem; color: var(--strong); letter-spacing: -.01em; }
.tagline { letter-spacing: .18em; font-size: .72rem; font-weight: 500; color: var(--accent); margin-bottom: 22px; text-transform: uppercase; }
/* Public front page (signed out) */
.landing { display: flex; flex-direction: column; min-height: 100vh; }
.landing-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; width: 100%; margin: 0 auto; padding: 18px 24px; box-sizing: border-box; }
.landing-logo { display: flex; align-items: center; gap: 10px; color: var(--strong); font-weight: 700; font-size: 1.25rem; }
.landing-logo:hover { text-decoration: none; }
.landing main { flex: 1; max-width: 1080px; width: 100%; box-sizing: border-box; padding: 24px 24px 48px; }
.landing-hero { max-width: 680px; padding: 48px 0 40px; }
.landing-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: .4em; }
.landing-lede { font-size: 1.08rem; color: var(--text); margin: 0 0 24px; }
.landing-note { font-size: .85rem; margin-top: 10px; }
.landing-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.landing-features .panel + .panel { margin-top: 0; }
.landing-features h2 { margin-top: 0; font-size: 1rem; }
.landing-features p { margin: 0; font-size: .93rem; }
.landing-foot { max-width: 1080px; width: 100%; margin: 0 auto; padding: 0 24px 28px; box-sizing: border-box; font-size: .85rem; }
@media (max-width: 640px) { .landing-bar, .landing main, .landing-foot { padding-left: 16px; padding-right: 16px; } .landing-hero { padding: 24px 0 28px; } }
footer.foot { max-width: 1180px; margin: 0 auto; padding: 0 16px 24px; font-size: .78rem; color: var(--muted); }
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .panel.stat { padding: 14px; }
  .stat .value { font-size: 1.4rem; }
}

/* Before you test */
.startgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.startgrid > .panel { margin: 0; }
.startgrid h2 { margin-top: 0; }
.access { list-style: none; margin: 0 0 8px; padding: 0; }
.access li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.access form { margin: 0; }
.reveal summary { cursor: pointer; color: var(--link); min-height: 44px; display: inline-flex; align-items: center; }
.reveal code { display: inline-block; margin-top: 4px; font-size: 1rem; user-select: all; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; min-height: 32px; }
.linkish:hover { text-decoration: underline; }

/* Test detail and Claude */
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; margin-top: 12px; }
.split > div { display: flex; flex-direction: column; gap: 16px; } .split .panel + .panel { margin-top: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.attempts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.thread li { border-left: 2px solid var(--line2); padding: 2px 0 2px 12px; }
.thread li.claude { border-left-color: var(--info-fg); }
.retest { border: 1px solid var(--info-fg); margin-bottom: 16px; }
.btn.danger { background: transparent; color: var(--fail-fg); border-color: var(--fail-fg); }
a.callout.fixready { display: block; background: var(--info-bg); color: var(--strong); text-decoration: none; border-left-color: var(--info-fg); }
.proposal { border-top: 1px solid var(--line); padding: 12px 0; }
.proposal summary { cursor: pointer; }
code.token { display: block; padding: 12px; font-size: .95rem; user-select: all; word-break: break-all; }

/* DEV bypass (workspace only): a floating "All screens" button that pops out a small list. */
.devbar { position: fixed; right: 16px; bottom: 16px; z-index: 1000; }
.devbar summary { list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: var(--strong); color: var(--bg); font-size: .85rem; font-weight: 500; box-shadow: var(--shadow); }
.devbar summary::-webkit-details-marker { display: none; }
.devmenu { position: absolute; right: 0; bottom: calc(100% + 8px); width: min(320px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto; padding: 8px 14px 12px; background: var(--raised); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); }
.devmenu h2 { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin: 12px 0 4px; color: var(--accent); }
.devmenu ul { margin: 0; padding: 0; list-style: none; }
.devmenu li { padding: 2px 0; font-size: .85rem; }
.devmenu small { color: var(--muted); }

/* Overview */
.list .attn { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 22px; border-top: 1px solid var(--line); }
.list .attn:first-child { border-top: 0; }
.attn > .badge { min-width: 80px; justify-content: center; }
.attn .what { flex: 1 1 260px; min-width: 0; }
.attn .title, .campsum .title { color: var(--strong); font-weight: 500; }
.attn .muted { font-size: .85rem; margin-top: 2px; }
.campsum { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); font-size: .9rem; text-decoration: none; }
.campsum:first-child { border-top: 0; padding-top: 0; }
.campsum:hover { text-decoration: none; }
.campsum:hover .title { text-decoration: underline; }
.campsum .muted { font-size: .84rem; }
.metrics { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px 24px; }
.metric dt { font-size: .84rem; color: var(--muted); }
.metric dd { margin: 4px 0 0; display: flex; flex-direction: column; gap: 2px; }
.metric .v { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; color: var(--strong); line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric .v small { font-size: .85rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.metric .v .nm { font-size: 1rem; color: var(--unknown-fg); }
.metric .b { font-size: .8rem; color: var(--muted); }
.card > .tablewrap, .card > .list { border-top: 1px solid var(--line); }

/* Test Library */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px; }
.toolbar .search { flex: 1 1 280px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; font-size: .88rem; color: var(--text); text-decoration: none; }
.chip:hover { text-decoration: none; background: var(--raised); color: var(--strong); }
.chip b { font-weight: 500; color: var(--muted); }
.chip[aria-current="true"] { background: var(--strong); border-color: var(--strong); color: var(--bg); }
.chip[aria-current="true"] b { color: var(--bg); }
.withside { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.areas { flex: 1 1 220px; max-width: 250px; padding: 10px; display: flex; flex-direction: column; }
.areas a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border-radius: 8px; font-size: .9rem; color: var(--text); text-decoration: none; }
.areas a:hover { background: var(--unknown-bg); text-decoration: none; }
.areas a[aria-current="true"] { background: var(--side-on); color: var(--accent); font-weight: 500; }
.areas a span { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.areas .grp { margin: 14px 10px 6px; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tablefoot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) { .areas { max-width: none; } }
.withside > .card { margin-top: 0; }
.table td:first-child a { white-space: nowrap; }

/* Campaign board */
.progresscard { padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; margin-bottom: 24px; }
.progresscard .big { flex: 2 1 280px; min-width: 0; }
.progresscard h2 { margin: 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; }
.progresscard .tally { flex: 1 1 360px; margin: 0; }
.tally .t-pass dd { color: var(--pass-fg); } .tally .t-fail dd { color: var(--fail-fg); } .tally .t-blocked dd { color: var(--blocked-fg); }
.table tr.sel td { background: var(--raised); }
.table tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.table td.rowact { text-align: right; white-space: nowrap; }
.detail { flex: 1 1 300px; max-width: 380px; margin-top: 0; }
.detail .kicker { margin: 0 0 4px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.detail h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
.detail .sh > a { font-size: 1rem; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.stackgap { display: flex; flex-direction: column; gap: 12px; }
.stackgap form { margin: 0; }
@media (max-width: 640px) { .detail { max-width: none; } .table td.rowact { text-align: left; } }
.progresscard .tally { grid-template-columns: repeat(5, minmax(56px, 1fr)); flex: 1 1 420px; }
@media (max-width: 640px) { .progresscard .tally { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Run form */
[hidden] { display: none !important; }
.runform { max-width: 760px; }
.where { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.where > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; min-height: 52px; }
.where > summary::-webkit-details-marker { display: none; }
.where .what { display: flex; flex-direction: column; min-width: 0; font-size: .92rem; }
.where .what .muted { font-size: .84rem; }
.where .change { color: var(--link); font-size: .9rem; flex: none; }
.where[open] .change { display: none; }
.where fieldset { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; background: transparent; }
.where legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.steps { display: flex; flex-direction: column; gap: 12px; }
.stepbar { display: none; gap: 4px; }
.stepbar i { flex: 1; height: 4px; border-radius: 2px; background: var(--line2); }
.stepbar i.now { background: var(--strong); }
.stepbar i.done { background: var(--pass-fg); }
.stepbar i.done.fail { background: var(--fail-fg); } .stepbar i.done.blocked { background: var(--blocked-fg); } .stepbar i.done.not_run { background: var(--muted); }
.runform .step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.runform .step .kicker { margin: 0 0 6px; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.runform .step .action { margin: 0; font-size: 1.15rem; line-height: 1.35; letter-spacing: -.01em; outline-offset: 4px; }
.runform .step .action .num { color: var(--accent); margin-right: 4px; }
.expected span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.runform .choice { margin-top: 14px; }
.choice label.nr { grid-column: 1 / -1; }
.choice label.nr span { min-height: 36px; border: 0; font-size: .85rem; color: var(--muted); justify-content: flex-start; padding: 0 2px; background: transparent; }
.choice label.nr input:checked + span { background: transparent; border: 0; color: var(--muted); }
.choice label.nr input:checked + span::before { content: "● "; margin-right: 4px; }
.choice label.nr span::before { content: "○ "; margin-right: 4px; }
.stepnote { margin-top: 6px; }
.stepnote summary { cursor: pointer; color: var(--link); font-size: .9rem; min-height: 36px; display: inline-flex; align-items: center; }
.stepnav { display: flex; gap: 8px; position: sticky; bottom: 0; padding: 12px 0 16px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.stepnav .btn { flex: 1; min-height: 52px; }
.stepnav .btn.secondary { flex: 0 0 auto; }
/* Phones, with the script: one step open at a time; finished steps fold to one line. */
.stepping .stepbar { display: flex; }
.stepping .step.past, .stepping .step.future { padding: 12px 16px; border-radius: 12px; }
.stepping .step.past .action, .stepping .step.future .action { font-size: .92rem; font-weight: 400; cursor: pointer; display: flex; gap: 8px; }
.stepping .step.past .action { color: var(--muted); }
.stepping .step.past .action::after { content: attr(data-answer); }
.stepping .step.past > :not(.action), .stepping .step.future > :not(.action) { display: none; }
.stepping .step.past .action { justify-content: space-between; }
.stepping .step.future { border-style: dashed; background: transparent; }
.stepping .step.future .action { color: var(--muted); }
.stepping .step.current .action { font-size: 1.3rem; }
.stepping .step.current .choice span { min-height: 56px; font-size: 1rem; }
.saveactions .btn { flex: 1 1 auto; }
@media (max-width: 640px) { .saveactions { position: sticky; bottom: 0; padding: 12px 0 16px; background: linear-gradient(to top, var(--bg) 70%, transparent); } }
.runform .step .action .num { min-width: 0; }
.stepping .step .action .num { display: none; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.crumbs .brand { display: inline-flex; color: var(--strong); }
.crumbs .brand > span:not(.mark) { font-size: 1.1rem; }

/* UI & Usability */
.badge.sev-blocker { background: var(--fail-fg); color: var(--bg); }
.badge.sev-major { background: var(--fail-bg); color: var(--fail-fg); }
.badge.sev-minor { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.widths { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.widths .w { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 22px; padding: 0 4px; border-radius: 6px; font-size: .7rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.widths .w.works { background: var(--pass-bg); color: var(--pass-fg); }
.widths .w.broken { background: var(--fail-bg); color: var(--fail-fg); }
.widths .w.none { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line2); }
.legend { display: inline-flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: .8rem; }
.widthgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.widthgrid > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; gap: 4px; }
.widthgrid .lbl { font-size: .75rem; color: var(--muted); }
.widthgrid .n { font-size: 1.2rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.widthgrid .n.ok { color: var(--pass-fg); } .widthgrid .n.bad { color: var(--fail-fg); } .widthgrid .n.none { color: var(--muted); }
.plainlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.plainlist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notreviewed { border-top: 1px solid var(--line); }
.notreviewed summary { cursor: pointer; padding: 14px 22px; color: var(--link); font-size: .9rem; }
.notreviewed ul { list-style: none; margin: 0; padding: 0 22px 14px; columns: 2 260px; column-gap: 24px; }
.notreviewed li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; break-inside: avoid; font-size: .9rem; border-top: 1px solid var(--line); }
.fixedlist { margin-top: 20px; }
.fixedlist summary { cursor: pointer; padding: 16px 22px; color: var(--link); }
.checklist.body { padding-top: 0; }
.checklist.body li:first-child { border-top: 0; }
.checklist small { color: var(--muted); }
.checklist .why { color: var(--fail-fg); }
.uxsec h2 { margin: 0 0 4px; font-size: 1.05rem; }
.uxsec > .hint { margin: 0 0 8px; }
.uxrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 8px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.uxrow .lbl { display: flex; flex-direction: column; }
.uxrow .lbl small { color: var(--muted); font-size: .78rem; }
.uxrow .choice { margin: 0; }
.uxrow .choice span { min-height: 44px; font-size: .88rem; }
.uxrow .choice input[value=works]:checked + span, .uxrow .choice input[value=pass]:checked + span { border-color: var(--pass-fg); background: var(--pass-bg); color: var(--pass-fg); }
.uxrow .choice input[value=broken]:checked + span { border-color: var(--fail-fg); background: var(--fail-bg); color: var(--fail-fg); }
.uxrow .choice input[value=na]:checked + span, .uxrow .choice input[value=""]:checked + span { border-color: var(--unknown-fg); background: var(--unknown-bg); color: var(--strong); }
.uxrow .note { grid-column: 1 / -1; }
.uxrow .note label { margin-bottom: 4px; }
.finding { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; }
.finding .choice { margin-bottom: 6px; }
.choice .sv-blocker input:checked + span { border-color: var(--fail-fg); background: var(--fail-fg); color: var(--bg); }
.choice .sv-major input:checked + span { border-color: var(--fail-fg); background: var(--fail-bg); color: var(--fail-fg); }
.choice .sv-minor input:checked + span { border-color: var(--strong); background: var(--unknown-bg); color: var(--strong); }
.more summary { cursor: pointer; color: var(--link); min-height: 40px; display: inline-flex; align-items: center; font-size: .9rem; }
@media (max-width: 640px) { .uxrow { grid-template-columns: 1fr; } }
/* The note only matters when a width is broken (browsers without :has show it always). */
.uxrow:not(:has(input[value=broken]:checked)) .note { display: none; }
.stackgap > .metric { display: flex; flex-direction: column; gap: 2px; }
.checklist li { align-items: center; }
.split .attn { align-items: flex-start; }

/* Releases */
.badge.gate-ready { background: var(--pass-bg); color: var(--pass-fg); }
.badge.gate-not_ready { background: var(--fail-bg); color: var(--fail-fg); }
.badge.gate-insufficient { background: var(--blocked-bg); color: var(--blocked-fg); }
.gatecounts { display: inline-flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.gatecounts > span { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text); }
.gatecounts b { font-size: 1.8rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.gatecounts .gate-ready b { color: var(--pass-fg); } .gatecounts .gate-not_ready b { color: var(--fail-fg); } .gatecounts .gate-insufficient b { color: var(--blocked-fg); }
.gatecounts.small { gap: 4px; }
.gatecounts.small > span { padding: 0 9px; border-radius: 999px; font-size: .78rem; line-height: 1.6; }
.gatecounts.small b { font-size: .78rem; }
.gatecounts.small .gate-ready { background: var(--pass-bg); } .gatecounts.small .gate-not_ready { background: var(--fail-bg); } .gatecounts.small .gate-insufficient { background: var(--blocked-bg); }
.metric .v .gatecounts.small { vertical-align: middle; }
.releaselist { flex: 1 1 240px; max-width: 290px; margin-top: 0; }
.releaselist .rel { display: flex; flex-direction: column; gap: 4px; padding: 14px 22px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.releaselist .rel:hover { background: var(--raised); text-decoration: none; }
.releaselist .rel[aria-current] { background: var(--raised); box-shadow: inset 3px 0 0 var(--accent); }
.releaselist .rel .muted { font-size: .8rem; }
.releasemain { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.releasemain > .card { margin-top: 0; }
.gatesummary { padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.gatesummary p { margin: 0; font-size: .85rem; flex: 1 1 240px; }
.gate { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 18px; padding: 18px 22px; border-top: 1px solid var(--line); }
.list .gate:first-child { border-top: 0; }
.gate > .badge { min-width: 160px; justify-content: center; }
.gate .what { flex: 1 1 340px; min-width: 0; }
.gate .title { color: var(--strong); font-weight: 500; }
.gate .muted { font-size: .84rem; margin-top: 2px; }
.gate .ev { margin-top: 8px; font-size: .9rem; }
.gate .cases { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: .85rem; }
.shipform { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.shipform h2 { margin: 0; font-size: 1rem; }
.shipform p { margin: 4px 0 0; font-size: .85rem; }
.gateform .card + .card { margin-top: 20px; }
.gaterow { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(200px, 280px); gap: 10px 18px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); }
.gaterow .title { color: var(--strong); font-weight: 500; }
.gaterow .muted { font-size: .84rem; margin-top: 2px; }
.gaterow.off .what { opacity: .65; }
.gaterow .param { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.gaterow .param label { margin: 0; font-weight: 400; color: var(--muted); }
.gaterow .param input[type=number] { width: 84px; min-height: 40px; }
.gaterow .param select { width: auto; min-height: 40px; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span[aria-hidden] { position: absolute; inset: 0; border-radius: 999px; background: var(--line2); transition: background .15s; }
.switch span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { left: 21px; background: #fff; }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + span { opacity: .5; }
@media (max-width: 640px) { .gaterow { grid-template-columns: 48px minmax(0, 1fr); } .gaterow .param { grid-column: 2; } .releaselist { max-width: none; } }
/* Connected Monitoring: stack traces and the small "last N days" pickers. */
pre.code { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: .85rem; line-height: 1.5; white-space: pre; margin: 0; }
form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
/* Finding titles are sentences, not case refs: let them wrap on phones. */
.table td:first-child a.wrap { white-space: normal; overflow-wrap: anywhere; }
/* A one-time token wraps rather than scrolls, so it can be read and copied whole on a phone. */
pre.code.token { white-space: pre-wrap; word-break: break-all; font-size: 1rem; }
