/* Verify360: register green, paper, DIN numerals */
:root {
  --green: #123D3A; --green-2: #0C2E2B; --green-3: #1E5550; --green-tint: #E6EFEC;
  --paper: #F5F7F4; --card: #FFFFFF; --ink: #1B2422; --ink-2: #44514D; --muted: #6B7874; --rule: #DCE3DE; --rule-2: #EBF0EC;
  --hi: #F2C94C; --hi-tint: #FDF5D8;
  --pass: #2E7D4F; --pass-tint: #E3F1E8;
  --fail: #C2412D; --fail-tint: #F9E6E1;
  --blocked: #B7791F; --blocked-tint: #FAF0DC;
  --na: #8A9692; --na-tint: #EEF1EF;
  --notrun: #D5DCD8;
  --link: #1E6B63;
  --display: "Bahnschrift", "DIN Alternate", "DIN 2014", "Barlow Semi Condensed", "DejaVu Sans Condensed", "Arial Narrow", sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 4px; --r: 8px;
  --focus: 0 0 0 3px rgba(242, 201, 76, .55);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.55 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a.plain { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; color: var(--ink-2); margin-top: 1.4em; }
code { background: var(--rule-2); padding: 1px 5px; border-radius: 3px; font-size: 12.5px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; } .right { text-align: right; }
.mt { margin-top: 1.6em; }
[hidden] { display: none !important; }
.num, .tile strong, .figure { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 236px; flex: 0 0 236px; background: var(--green); color: #C9D8D3; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; gap: 11px; align-items: center; padding: 20px 18px 18px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand strong { font-family: var(--display); font-size: 17px; font-weight: 600; display: block; }
.brand small { display: block; color: #93AFA8; font-size: 12px; line-height: 1.35; }
/* The Verify360 mark: coverage ring of test cells with the acceptance tick */
.logo { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.08); flex: 0 0 auto; }
.logo .lm { width: 74%; height: 74%; display: block; fill: none; }
.logo .c-on { fill: #7BC79B; }
.logo .c-now { fill: var(--hi); }
.logo .c-off { fill: rgba(255,255,255,.22); }
.logo .lm-tick { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.side nav { padding: 6px 10px 24px; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 1px 0; color: #D7E3DF; border-radius: 6px; }
.side nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.side nav a.active { background: #fff; color: var(--green); font-weight: 600; }
.side nav a .count { margin-left: auto; font-family: var(--display); font-size: 12px; background: var(--hi); color: var(--green-2); border-radius: 10px; padding: 0 7px; }
.nav-h { padding: 16px 10px 4px; font-size: 12px; color: #86A39C; }
.side-foot { padding: 14px 18px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #93AFA8; }
.side-foot strong { display: block; color: #fff; font-family: var(--display); font-weight: 600; font-size: 14px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.top h1 { margin: 0; flex: 1; font-size: 22px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: inline-grid; place-items: center; font-family: var(--display); font-weight: 600; margin-right: 6px; }
.menu-btn { display: none; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--green); }
.content { padding: 22px 28px 48px; max-width: 1480px; width: 100%; margin-inline: auto; }

/* ---------- Surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card.highlight { border-color: var(--hi); box-shadow: inset 4px 0 0 var(--hi); }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-h h2 { margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols > .card { margin-bottom: 18px; }
.cols > *, .case-grid > * { min-width: 0; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr); gap: 18px; align-items: start; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.span2 { grid-column: span 2; }
.narrow { max-width: 400px; margin: 0 auto; }
.narrow-wide { max-width: 780px; margin-inline: auto; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { padding: 36px; text-align: center; color: var(--muted); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #C9D3CE; border-radius: 6px; padding: 8px 10px; transition: border-color .12s; }
input:hover, select:hover, textarea:hover { border-color: #A9B7B1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-3); box-shadow: 0 0 0 3px rgba(30, 85, 80, .15); }
input[type=checkbox], input[type=radio] { display: inline-block; width: auto; margin: 0 7px 0 0; vertical-align: -2px; accent-color: var(--green); }
input[type=file] { padding: 6px; background: var(--paper); }
input::placeholder, textarea::placeholder { color: #9AA6A2; }
textarea { resize: vertical; line-height: 1.5; }
label.check { font-weight: 400; font-size: 14px; color: var(--ink); }
.inline-label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.inline-label input, .inline-label select { width: auto; margin: 0; }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.actions input[type=file] { width: auto; flex: 1; margin: 0; }
form.inline { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; }
.filters input, .filters select { width: auto; margin: 0; min-width: 130px; }
.filters input[type=search] { flex: 1; min-width: 220px; padding-left: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7874' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 10px center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #C9D3CE; background: #fff; color: var(--ink); padding: 7px 14px; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--rule-2); border-color: #B5C2BC; text-decoration: none; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); border-color: var(--green-2); }
.btn-danger { color: var(--fail); border-color: #E7BDB4; }
.btn-danger:hover { background: var(--fail-tint); border-color: var(--fail); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--rule-2); border-color: transparent; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; padding: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { border: 0; background: none; color: var(--link); cursor: pointer; padding: 0; font: inherit; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Alerts ---------- */
.alert { padding: 11px 14px 11px 16px; border-radius: 6px; margin-bottom: 16px; border: 1px solid; border-left-width: 4px; }
.alert-success { background: var(--pass-tint); border-color: #BCDCC8; border-left-color: var(--pass); color: #1D5A37; }
.alert-error { background: var(--fail-tint); border-color: #EBC2B8; border-left-color: var(--fail); color: #8A2A1B; }
.alert-warning { background: var(--blocked-tint); border-color: #EDD5A6; border-left-color: var(--blocked); color: #7A4F0F; }
.alert-info { background: var(--green-tint); border-color: #C3D7D0; border-left-color: var(--green-3); color: var(--green); }
.pw { font-size: 16px; padding: 3px 9px; user-select: all; background: #fff; border: 1px dashed var(--pass); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; background: var(--rule-2); color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.badge.big { font-size: 13.5px; padding: 3px 11px; }
.badge[class*="st-"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pass { background: var(--pass-tint); color: var(--pass); }
.st-fail { background: var(--fail-tint); color: var(--fail); }
.st-blocked { background: var(--blocked-tint); color: var(--blocked); }
.st-n-a { background: var(--na-tint); color: #66726E; }
.st-not-run { background: var(--rule-2); color: #66726E; }
.st-open { background: var(--fail-tint); color: var(--fail); }
.st-in-progress { background: #E3EEF3; color: #2B5F7A; }
.st-fixed-retest { background: var(--blocked-tint); color: var(--blocked); }
.st-closed { background: var(--pass-tint); color: var(--pass); }
.st-rejected { background: var(--na-tint); color: #66726E; }
.sev-critical { background: #7E2416; color: #fff; }
.sev-high { background: var(--fail-tint); color: var(--fail); }
.sev-medium { background: var(--blocked-tint); color: var(--blocked); }
.sev-low { background: var(--rule-2); color: var(--ink-2); }
/* priority: a quiet bar gauge instead of another coloured pill */
.badge[class*="pr-"] { background: none; padding: 0; color: var(--ink-2); font-weight: 500; gap: 6px; }
.badge[class*="pr-"]::before { content: ""; width: 14px; height: 9px; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 5px, var(--pc2, #D5DCD8) 5px 9px, transparent 9px 10px, var(--pc3, #D5DCD8) 10px); }
.pr-high { color: var(--fail) !important; --pc2: var(--fail); --pc3: var(--fail); }
.pr-medium { color: var(--blocked) !important; --pc2: var(--blocked); }
.pr-low { color: var(--na) !important; }
.dec-accepted { background: var(--pass-tint); color: var(--pass); }
.dec-accepted-with-conditions { background: var(--blocked-tint); color: var(--blocked); }
.dec-not-accepted { background: var(--fail-tint); color: var(--fail); }
.c-pass { color: var(--pass); } .c-fail { color: var(--fail); } .c-blocked { color: var(--blocked); }

/* ---------- Tables ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 9px 12px; border-bottom: 1px solid var(--rule-2); text-align: left; vertical-align: top; }
.table thead th { background: #FAFBFA; font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; position: sticky; top: 0; border-bottom: 1px solid var(--rule); }
.table tbody tr:hover { background: #F8FAF8; }
.table tfoot th { background: #FAFBFA; border-top: 1px solid var(--rule); border-bottom: 0; }
.table.compact th, .table.compact td { padding: 6px 10px; font-size: 13.5px; }
.table td input, .table td select, .table td textarea { margin: 0; font-size: 13px; padding: 5px 8px; min-width: 120px; }
.table td input[type=checkbox], .table th input[type=checkbox] { min-width: 0; width: auto; }
.table.cases td:nth-child(2) a strong { font-family: var(--display); font-weight: 600; }
.num { text-align: right !important; }
.w-check { width: 34px; } .w-bar { width: 22%; min-width: 130px; }
.row-today { background: var(--hi-tint) !important; box-shadow: inset 4px 0 0 var(--hi); }
.list-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.per select { display: inline-block; }
.pager { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); }
.bulkbar { display: flex; gap: 8px; align-items: center; background: var(--green-tint); border: 1px solid #C3D7D0; border-radius: var(--r); padding: 8px 12px; margin-bottom: 12px; flex-wrap: wrap; color: var(--green); font-weight: 600; }
.bulkbar select { width: auto; margin: 0; font-weight: 400; }

/* ---------- Case map (dashboard hero) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 282px; gap: 12px; padding: 12px; overflow: hidden; }
.map { padding: 8px 10px 6px; }
.map-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.map-h h2 { margin: 0; font-size: 19px; }
.map-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 52px; gap: 14px; align-items: start; padding: 7px 0; border-top: 1px solid var(--rule-2); }
.map-row:first-of-type { border-top: 0; }
.map-day { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.15; }
.map-day small { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 12px; }
.map-row.today { background: linear-gradient(90deg, var(--hi-tint), transparent 70%); margin: 0 -22px; padding: 7px 22px; }
.map-row.today .map-day::after { content: "Today"; display: inline-block; margin-top: 3px; font-family: var(--body); font-size: 11px; font-weight: 700; background: var(--hi); color: var(--green-2); padding: 0 6px; border-radius: 3px; }
.cells { display: flex; flex-wrap: wrap; gap: 3px; padding-top: 2px; }
.cell { width: 13px; height: 13px; border-radius: 2px; background: var(--notrun); display: block; transition: transform .08s; }
.cell:hover { transform: scale(1.5); position: relative; z-index: 1; text-decoration: none; }
.cell.s-pass { background: var(--pass); } .cell.s-fail { background: var(--fail); } .cell.s-blocked { background: #D9992E; } .cell.s-n-a { background: #AEB8B4; }
.cell.mine { box-shadow: inset 0 0 0 2px var(--hi); }
.map-pct { font-family: var(--display); text-align: right; color: var(--muted); font-size: 13px; padding-top: 1px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.map-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: var(--notrun); }
.map-legend .s-pass { background: var(--pass); } .map-legend .s-fail { background: var(--fail); } .map-legend .s-blocked { background: #D9992E; } .map-legend .s-n-a { background: #AEB8B4; } .map-legend .mine { background: #fff; box-shadow: inset 0 0 0 2px var(--hi); }
.figures { background: var(--green); color: #fff; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; border-radius: var(--r); }
.big-figure { font-family: var(--display); font-size: 54px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.big-figure small { font-size: 20px; color: #93AFA8; margin-left: 2px; }
.fig-label { color: #A9C2BC; font-size: 13px; margin-top: 4px; }
.fig-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.fig-rows li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: #D7E3DF; }
.fig-rows li b { font-family: var(--display); font-weight: 600; color: #fff; font-size: 15px; }
.fig-rows li b.f-fail { color: #F1A08F; } .fig-rows li b.f-pass { color: #8FD3A9; } .fig-rows li b.f-blocked { color: #F2C77A; }
.verdict { margin-top: auto; border-radius: 6px; padding: 10px 12px; font-size: 13px; background: rgba(255,255,255,.08); }
.verdict strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.verdict.met strong { color: #8FD3A9; } .verdict.notmet strong { color: #F1A08F; }

/* stacked progress bar (tables) */
.stack { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--notrun); min-width: 80px; margin-top: 6px; }
.stack span { display: block; height: 100%; }
.stack .st-pass { background: var(--pass); } .stack .st-fail { background: var(--fail); } .stack .st-blocked { background: #D9992E; } .stack .st-n-a { background: #AEB8B4; }
.legend { font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 12px; vertical-align: -1px; }
.legend .st-pass { background: var(--pass); } .legend .st-fail { background: var(--fail); } .legend .st-blocked { background: #D9992E; } .legend .st-n-a { background: #AEB8B4; } .legend .st-not-run { background: var(--notrun); }

/* exit criteria */
.exit { list-style: none; padding: 0; margin: 0 0 14px; }
.exit li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule-2); }
.exit .mark { width: 22px; height: 22px; border-radius: 50%; font-size: 0; display: grid; place-items: center; }
.exit .mark::after { font-size: 12px; font-weight: 800; }
.exit .met .mark { background: var(--pass-tint); color: var(--pass); }
.exit .met .mark::after { content: "✓"; }
.exit .notmet .mark { background: var(--fail-tint); color: var(--fail); }
.exit .notmet .mark::after { content: "✕"; }
.exit small { font-family: var(--display); color: var(--muted); font-size: 13px; }
.recommend { padding: 11px 14px; border-radius: 6px; font-size: 14px; }
.recommend strong { font-family: var(--display); font-size: 16px; }
.recommend.met { background: var(--pass-tint); color: #1D5A37; }
.recommend.notmet { background: var(--fail-tint); color: #8A2A1B; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule-2); }
.list li:last-child { border-bottom: 0; }
.list li a { flex: 1; color: var(--ink); }

/* "your turn" banner */
.mine { border: 0; background: var(--hi-tint); box-shadow: inset 4px 0 0 var(--hi); }
.mine-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.mine-row h2 { margin: 0 0 2px; }
.mine-row p { margin: 0; color: var(--ink-2); }
.mine-actions { display: flex; gap: 8px; }
.mine .stack { margin-top: 12px; background: #EADFB8; }

/* ---------- Case & defect detail ---------- */
.case-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.case-head h2 { margin: 4px 0 0; font-size: 21px; }
.case-id { font-family: var(--display); color: var(--muted); font-size: 14px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 0 0 6px; }
.meta dt { font-size: 12.5px; color: var(--muted); }
.meta dd { margin: 0; }
.signin-as { background: var(--green-tint); border-radius: 6px; padding: 8px 12px; }
.signin-as dd { font-weight: 700; color: var(--green); }
.text { background: #FAFBFA; border: 1px solid var(--rule-2); border-radius: 6px; padding: 10px 13px; }
.text.steps { background: #fff; border-color: var(--rule); counter-reset: step; }
.text.expected { background: var(--pass-tint); border-color: #CBE3D3; }
.status-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin: 0; padding: 10px 6px; border-radius: 6px; border: 1.5px solid var(--rule); background: #fff; color: var(--ink-2); cursor: pointer; font-weight: 600; text-align: center; transition: border-color .1s, background .1s; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick kbd { font: 600 11px var(--display); color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; background: var(--paper); }
.pick:hover { border-color: #A9B7B1; }
.pick:has(input:focus-visible) { box-shadow: var(--focus); }
.pick.st-pass:has(input:checked) { border-color: var(--pass); background: var(--pass-tint); color: var(--pass); }
.pick.st-fail:has(input:checked) { border-color: var(--fail); background: var(--fail-tint); color: var(--fail); }
.pick.st-blocked:has(input:checked) { border-color: var(--blocked); background: var(--blocked-tint); color: var(--blocked); }
.pick.st-n-a:has(input:checked) { border-color: var(--na); background: var(--na-tint); color: #4F5A57; }
.pick[class*="st-"] { background: #fff; color: var(--ink-2); }
.pick[class*="st-"]::before { display: none; }
.exec-card { border-top: 4px solid var(--green); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 2px 0 14px 18px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-3); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 1px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.tl-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 3px; }
.att { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 13px; }
.att img { max-width: 170px; max-height: 120px; border: 1px solid var(--rule); border-radius: 4px; display: block; background: var(--paper); }
.comment-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule-2); }
.sev-help { margin: -4px 0 14px; font-size: 13px; }
.sev-help summary { cursor: pointer; color: var(--link); }
.sign-row td { background: var(--hi-tint); }
.sign-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sign-form .pick { flex-direction: row; padding: 6px 10px; }
.sign-form .pick input { position: static; opacity: 1; pointer-events: auto; }
.sign-form input[name=comments] { flex: 1; min-width: 220px; margin: 0; }
.sign-form input[type=password] { width: 170px; margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--rule-2); align-items: flex-start; }
.checklist li:last-child { border-bottom: 0; }
.checklist li.done strong { color: var(--muted); }
.tick { width: 26px; height: 26px; border: 2px solid #B5C2BC; border-radius: 6px; background: #fff; color: #fff; font-weight: 800; display: inline-grid; place-items: center; cursor: pointer; padding: 0; flex: 0 0 26px; }
.tick:hover { border-color: var(--green-3); }
.done .tick { border-color: var(--pass); background: var(--pass); }
.checks { list-style: none; padding: 0; columns: 2; }
.checks li { padding: 2px 0; }
.checks .ok { color: var(--pass); } .checks .bad { color: var(--fail); font-weight: 600; }

/* ---------- Sign-in and installer ---------- */
body.bare { background: var(--green); min-height: 100vh; background-image: radial-gradient(rgba(255,255,255,.05) 1.5px, transparent 1.5px); background-size: 16px 16px; }
.bare-wrap { max-width: 800px; margin: 0 auto; padding: 56px 16px; }
.bare-brand { color: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 22px; }
.bare .card { border: 0; box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 26px 28px; }
.bare .card h2 { font-size: 22px; }

/* ---------- Printable report ---------- */
.print-body { background: #fff; }
.print-actions { padding: 12px 24px; display: flex; gap: 8px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.report { max-width: 980px; margin: 0 auto; padding: 28px 24px; }
.report h1 { font-size: 26px; margin-top: 4px; }
.report h2 { font-size: 16px; margin-top: 26px; padding-bottom: 5px; border-bottom: 2px solid var(--green); }
.kv { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.kv th, .kv td { border: 1px solid var(--rule); padding: 6px 9px; text-align: left; font-size: 13px; }
.kv th { background: #FAFBFA; width: 18%; font-weight: 600; color: var(--ink-2); }
.box { min-height: 60px; }
.sign-table td { height: 56px; }
.sigcell { width: 22%; }
@media print {
  .no-print { display: none !important; }
  .report { padding: 0; }
  .table thead th { position: static; }
  body { font-size: 12px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .hero { grid-template-columns: 1fr; } .figures { display: grid; grid-template-columns: auto 1fr; } .verdict { grid-column: 1 / -1; } }
@media (max-width: 960px) {
  .cols, .case-grid { grid-template-columns: 1fr; }
  .side { position: fixed; left: -250px; z-index: 20; transition: left .2s; }
  .side.open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,.25); }
  .menu-btn { display: block; }
  .content { padding: 16px; }
  .top { padding: 10px 16px; }
}
@media (max-width: 640px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .status-pick { grid-template-columns: 1fr 1fr; }
  .map-row { grid-template-columns: 1fr; gap: 6px; }
  .map-pct { text-align: left; }
  .figures { grid-template-columns: 1fr; }
  .checks { columns: 1; }
}

/* tabs */
.tabs { display: inline-flex; gap: 2px; background: var(--rule-2); border-radius: 7px; padding: 3px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 13px; color: var(--ink-2); padding: 5px 12px; border-radius: 5px; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--green); box-shadow: 0 1px 2px rgba(18, 61, 58, .15); }
.pick.st-pass { box-shadow: inset 0 3px 0 var(--pass); } .pick.st-fail { box-shadow: inset 0 3px 0 var(--fail); }
.pick.st-blocked { box-shadow: inset 0 3px 0 #D9992E; } .pick.st-n-a { box-shadow: inset 0 3px 0 #AEB8B4; }
.login-sub { margin: -4px 0 18px; font-size: 13.5px; }


/* ---------- Dropdown menus (account, row actions) ---------- */
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 10px 30px rgba(18, 61, 58, .16); padding: 6px; text-align: left; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 5px; font: inherit; color: var(--ink); cursor: pointer; white-space: nowrap; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--rule-2); text-decoration: none; }
.menu-pop form { margin: 0; }
.account > summary { display: flex; align-items: center; gap: 6px; padding: 3px 6px 3px 3px; border-radius: 20px; }
.account > summary:hover, .account[open] > summary { background: var(--rule-2); }
.account .avatar { margin: 0; width: 34px; height: 34px; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); }
.menu-who { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--rule-2); display: flex; flex-direction: column; line-height: 1.35; }
.menu-who span { color: var(--muted); font-size: 12.5px; }

/* ---------- Data tables ---------- */
.table tbody tr:nth-child(even) > td { background: #F7F9F7; }
.table[data-table] tbody tr:nth-child(even) > td { background: transparent; }
.table[data-table] tbody tr.alt > td { background: #F7F9F7; }
.table tbody tr:hover > td { background: var(--green-tint) !important; }
.row-today > td { background: var(--hi-tint) !important; }
.dt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.dt-size { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: var(--ink-2); }
.dt-size select { width: auto; margin: 0; padding: 5px 8px; }
.dt-search { width: 260px; max-width: 100%; margin: 0; padding-left: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7874' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 10px center; }
.dt-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.dt-pages { display: flex; gap: 3px; align-items: center; }
.dt-pages button { min-width: 32px; height: 30px; padding: 0 9px; border: 1px solid var(--rule); background: #fff; border-radius: 5px; font: inherit; font-family: var(--display); color: var(--ink-2); cursor: pointer; }
.dt-pages button:hover:not([disabled]) { border-color: var(--green-3); color: var(--green); }
.dt-pages button[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.dt-pages button[disabled] { opacity: .4; cursor: default; }
.dt-gap { padding: 0 4px; }
.dt-empty td { text-align: center; color: var(--muted); padding: 28px !important; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after { content: ""; display: inline-block; margin-left: 6px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #B5C2BC; vertical-align: 2px; opacity: .6; }
th.sortable:hover { color: var(--ink); }
th[aria-sort="ascending"]::after { border-top: 0; border-bottom: 5px solid var(--green); opacity: 1; }
th[aria-sort="descending"]::after { border-top-color: var(--green); opacity: 1; }
.dt .table thead th { position: static; }
.card.flush > .dt > .table-wrap { border-radius: 0; }

/* ---------- Evidence drop zone ---------- */
.dropzone { margin-bottom: 14px; }
.dz-label { font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }
.dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz-hint { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 0; padding: 16px 12px; border: 1.5px dashed #B5C2BC; border-radius: 8px; background: #FAFBFA; text-align: center; font-weight: 400; color: var(--ink-2); cursor: pointer; transition: border-color .12s, background .12s; }
.dz-hint:hover, .dropzone.over .dz-hint { border-color: var(--green-3); background: var(--green-tint); }
.dz-input:focus-visible + .dz-hint { box-shadow: var(--focus); }
.dropzone.flash .dz-hint { border-color: var(--pass); background: var(--pass-tint); }
.dz-hint u { color: var(--link); text-decoration: none; font-weight: 600; }
.dz-icon { width: 26px; height: 22px; border: 2px solid var(--muted); border-radius: 4px; position: relative; margin-bottom: 3px; }
.dz-icon::after { content: ""; position: absolute; left: 4px; bottom: 3px; width: 8px; height: 6px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: skewX(-20deg); }
kbd { font: 600 11px var(--display); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; background: #fff; color: var(--ink-2); }
.dz-files { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.dz-files li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.dz-files img { width: 56px; height: 40px; object-fit: cover; border-radius: 3px; border: 1px solid var(--rule-2); }
.dz-doc { width: 56px; height: 40px; display: grid; place-items: center; background: var(--rule-2); border-radius: 3px; font: 600 11px var(--display); color: var(--ink-2); }
.dz-meta { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-remove { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.dz-remove:hover { color: var(--fail); background: var(--fail-tint); }
.date-field { max-width: 220px; }

/* ---------- Misc ---------- */
fieldset.choice { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px 4px; margin: 0 0 14px; }
fieldset.choice legend { font-weight: 600; font-size: 13px; color: var(--ink-2); padding: 0 4px; }

/* user import */
.import-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.import-summary > div { border-radius: 6px; padding: 10px 14px; font-size: 13.5px; }
.import-summary b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.is-new { background: var(--pass-tint); color: #1D5A37; }
.is-exists { background: var(--rule-2); color: var(--ink-2); }
.is-error { background: var(--fail-tint); color: #8A2A1B; }
@media (max-width: 640px) { .import-summary { grid-template-columns: 1fr; } }

/* ---------- Settings page: two columns, no empty side ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-grid > * { min-width: 0; }
@media (max-width: 1100px) { .settings-grid { grid-template-columns: 1fr; } }

/* ---------- Bold, clear form borders ---------- */
input, select, textarea { border: 2px solid #7F918B; }
input:hover, select:hover, textarea:hover { border-color: #4F635D; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 61, 58, .2); }
form.card, .card:has(> form), form.filters { border: 2px solid #9FB0AA; }
fieldset.choice { border: 2px solid #9FB0AA; }
.dz-hint { border: 2px dashed #7F918B; }
.pick { border-width: 2px; border-color: #9FB0AA; }
.tick { border-color: #7F918B; }
.table td input, .table td select, .table td textarea { border-width: 1.5px; }
form.card.exec-card, .card.exec-card { border-top: 4px solid var(--green); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; }
.tester-line { display: flex; gap: 6px; align-items: center; margin-bottom: 5px; }
.tester-line strong { min-width: 130px; font-size: 13px; }
.tester-line input[type=email] { flex: 1; min-width: 150px; }
/* settings: both columns the same height */
.settings-grid { align-items: stretch; }
.settings-grid > div { display: flex; flex-direction: column; }
.settings-grid > div > .card:last-child { flex: 1; margin-bottom: 0; }

/* ---------- tick-list dropdown ---------- */
.multicheck { display: block; }
.bulkbar .multicheck { display: inline-block; min-width: 220px; font-weight: 400; }
.mc-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; padding: 8px 10px; background: #fff; border: 2px solid #7F918B; border-radius: 6px; color: var(--ink); }
.bulkbar .mc-summary { margin-top: 0; padding: 5px 10px; }
.multicheck[open] .mc-summary { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 61, 58, .2); }
.mc-pop { left: 0; right: auto; min-width: 100%; width: max-content; max-width: 440px; padding: 6px; }
.mc-list { max-height: 260px; overflow-y: auto; }
.mc-pop label { display: flex; align-items: center; gap: 4px; margin: 0; padding: 6px 8px; border-radius: 5px; font-weight: 400; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.mc-pop label:hover { background: var(--rule-2); }
.mc-pop label small { margin-left: auto; padding-left: 14px; }
.mc-all { border-bottom: 1px solid var(--rule); border-radius: 5px 5px 0 0 !important; margin-bottom: 4px !important; }
.mc-none { padding: 8px; margin: 0; }
.field { margin-bottom: 12px; }
.field-label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
details.menu.multicheck { display: block; max-width: 460px; }
.bulkbar details.menu.multicheck { display: inline-block; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 16px; }
.role-row { padding: 2px 0 6px; }
.role-row label.check { margin-bottom: 3px; }
.role-row input[type=email] { margin: 0 0 0 23px; width: calc(100% - 23px); padding: 4px 8px; font-size: 13px; border-width: 1.5px; }

/* case page: full-width header above the two columns */
.case-header { margin-bottom: 18px; }
.case-header .case-head { margin-bottom: 12px; }
.case-header .meta { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: start; }
.case-grid .card h2 + h3, h3.flush-top { margin-top: 0; }
.mt-xs { margin-top: 6px; }
.case-grid [role=tabpanel] .table { margin-bottom: 6px; }

/* ---------- Execution history rows ---------- */
.runs { list-style: none; margin: 0; padding: 0; }
.runs li + li { margin-top: 4px; }
.run { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--ink);
       background: #fff; border: 1.5px solid var(--rule); border-radius: 7px; padding: 7px 10px; cursor: pointer; }
.run:hover { border-color: var(--green-3); background: #FAFBFA; }
.run:focus-visible { box-shadow: var(--focus); outline: none; }
.run-main { flex: 1; min-width: 0; }
.run-who { display: block; font-weight: 600; font-size: 13px; }
.run-peek { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-meta { font-family: var(--display); font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- Modal ---------- */
.modal { padding: 0; border: 0; border-radius: 10px; width: min(640px, calc(100% - 32px)); max-height: 86vh;
         box-shadow: 0 24px 60px rgba(18, 61, 58, .3); color: var(--ink); background: var(--card); }
.modal::backdrop { background: rgba(18, 61, 58, .45); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); margin: 0; }
.modal-h h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; }
.modal-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; border-radius: 5px; }
.modal-x:hover { color: var(--fail); background: var(--fail-tint); }
.modal-b { padding: 16px 18px; overflow-y: auto; max-height: calc(86vh - 130px); }
.modal-b .att img { max-width: 100%; max-height: 300px; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--rule); text-align: right; margin: 0; }

/* ---------- Case page: columns of equal height ---------- */
.case-grid { grid-template-columns: minmax(0, 1.15fr) minmax(330px, 1fr); align-items: stretch; }
.case-grid > div { display: flex; flex-direction: column; }
.case-grid > div > .card:last-child, .case-grid > .card:last-child { flex: 1; margin-bottom: 0; }
@media (max-width: 960px) { .case-grid > div > .card:last-child, .case-grid > .card:last-child { flex: 0 1 auto; margin-bottom: 18px; } }

/* =====================================================================
   Lighter form borders, compact forms, case page v3
   ===================================================================== */
input, select, textarea { border: 1px solid #A9B7B1; padding: 6px 9px; }
input:hover, select:hover, textarea:hover { border-color: #7F918B; }
input:focus, select:focus, textarea:focus { border-color: var(--green-3); box-shadow: 0 0 0 3px rgba(30, 85, 80, .14); }
form.card, .card:has(> form), form.filters { border: 1px solid #C9D3CE; }
fieldset.choice { border: 1px solid #C9D3CE; }
.pick { border-width: 1px; border-color: #C9D3CE; padding: 7px 6px; }
.tick { border-width: 1.5px; border-color: #A9B7B1; }
.mc-summary { border: 1px solid #A9B7B1; padding: 6px 9px; }
.multicheck[open] .mc-summary { border-color: var(--green-3); box-shadow: 0 0 0 3px rgba(30, 85, 80, .14); }
.table td input, .table td select, .table td textarea { border-width: 1px; }
.role-row input[type=email] { border-width: 1px; }
.run { border-width: 1px; }
form.card.exec-card, .card.exec-card { border-top: 3px solid var(--green); }

/* compact forms */
label { margin-bottom: 9px; }
input, select, textarea { margin-top: 3px; }
.card { padding: 16px 18px; }
.hint { margin: 2px 0 10px; }
.dropzone { margin-bottom: 10px; }
.dz-hint { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 9px 12px; border: 1px dashed #A9B7B1; text-align: left; font-size: 13px; }
.dz-icon { width: 20px; height: 16px; margin: 0; flex: 0 0 auto; }
.dz-icon::after { left: 3px; bottom: 2px; width: 6px; height: 4px; }
.status-pick { margin-bottom: 10px; gap: 6px; }
.pick { flex-direction: row; gap: 6px; }

/* case page: steps + runs on the left, the form on the right, no dead space */
.case-grid { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr); align-items: stretch; }
.case-grid.one { grid-template-columns: 1fr; }
.case-grid > div > .card.no-grow { flex: 0 0 auto; }
.exec-card:not(.no-grow) { display: flex; flex-direction: column; }
.exec-form { flex: 1; display: flex; flex-direction: column; }
.exec-form label.grow { flex: 1; display: flex; flex-direction: column; min-height: 96px; }
.exec-form label.grow textarea { flex: 1; resize: none; }
.exec-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.exec-foot input[type=date] { width: 150px; }
.runs-table td, .runs-table th { vertical-align: middle; }
.run-row { cursor: pointer; }
.run-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--hi); }
.runs-table .run-peek { display: table-cell; white-space: normal; color: var(--ink-2); font-size: 13px; }
.pill-latest { background: var(--green); color: #fff; }
.runs-table .run-peek { width: 100%; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.runs-table th:last-child, .runs-table td:last-child { width: 100%; }
.runs-table .pills .badge + .badge { margin-left: 4px; }

/* evidence list in the run popup */
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 7px; background: #FAFBFA; }
.file-thumb { flex: 0 0 auto; line-height: 0; }
.file-thumb img { width: 76px; height: 54px; object-fit: cover; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.files .dz-doc { flex: 0 0 auto; width: 54px; height: 54px; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.file-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-acts { display: flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 520px) { .files li { flex-wrap: wrap; } .file-acts { width: 100%; } }
.sev-table { margin: 8px 0 4px; }
.sev-table td:first-child, .sev-table th:first-child, .sev-table td:last-child, .sev-table th:last-child { white-space: nowrap; width: 1%; }

/* ---------- Defects: quick filters, progress track ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.chip:hover { border-color: var(--green-3); text-decoration: none; }
.chip b { font-family: var(--display); font-weight: 600; background: var(--rule-2); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.on b { background: rgba(255,255,255,.18); color: #fff; }
.more-filters { margin-bottom: 12px; }
.more-filters > summary { cursor: pointer; color: var(--link); font-size: 13px; margin-bottom: 8px; width: max-content; }
.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 14px; padding: 0; }
.track li { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-right: 12px; }
.track li::after { content: ""; flex: 1; height: 2px; background: var(--rule); margin-left: 4px; }
.track li:last-child::after { display: none; }
.track .dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 22px; font: 600 12px var(--display); background: var(--rule-2); color: var(--muted); }
.track .done { color: var(--ink-2); } .track .done .dot { background: var(--pass); color: #fff; } .track .done::after { background: var(--pass); }
.track .now { color: var(--ink); font-weight: 700; } .track .now .dot { background: var(--hi); color: var(--green-2); }
.inline-select { display: inline-block; width: auto; margin: 0; padding: 3px 8px; font-size: 13px; }
.from-case { margin-top: 12px; } .from-case > summary, .edit-details > summary { cursor: pointer; color: var(--link); font-weight: 600; }
.edit-details[open] > summary { margin-bottom: 12px; }
@media (max-width: 640px) { .track { grid-template-columns: 1fr 1fr; gap: 8px 0; } .track li::after { display: none; } }
.case-grid.align-start { align-items: start; }
.case-grid.align-start > div > .card:last-child { flex: 0 0 auto; }

/* ---------- Acceptance certificate (A4 portrait) ---------- */
.cert { --c: var(--green); width: 210mm; min-height: 297mm; margin: 18px auto; background: #fff; padding: 9mm; position: relative; box-shadow: 0 6px 30px rgba(18, 61, 58, .18); color: var(--ink); }
.cert-conditional { --c: #8A5A12; } .cert-rejected { --c: #8A2A1B; } .cert.draft { --c: var(--green); }
.cert-frame { min-height: 279mm; border: 2.5px solid var(--c); outline: 1px solid var(--c); outline-offset: 3px; padding: 13mm 15mm 9mm; display: flex; flex-direction: column; position: relative; }
.cert-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-bottom: 5mm; border-bottom: 1px solid var(--rule); }
.cert-top .logo { background: var(--green); }
.cert-org { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.cert-no { font-size: 12px; color: var(--muted); text-align: right; }
.cert-no strong { display: block; font-family: var(--display); font-size: 14px; color: var(--ink); letter-spacing: .03em; }
.cert h1 { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.1; text-align: center; margin: 13mm 0 7mm; color: var(--c); letter-spacing: .01em; }
.cert-lead { text-align: center; color: var(--muted); margin: 0; font-size: 14px; }
.cert-system { text-align: center; font-family: var(--display); font-weight: 600; font-size: 25px; margin: 3mm auto 4mm; padding: 0 6mm 3mm; border-bottom: 2px solid var(--hi); width: fit-content; max-width: 100%; }
.cert-body { text-align: center; font-size: 15px; line-height: 1.65; max-width: 150mm; margin: 0 auto; }
.cert-verdict { margin: 8mm auto 7mm; padding: 2.5mm 9mm; border: 2px solid var(--c); color: var(--c); font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .12em; text-align: center; width: fit-content; }
.cert.draft .cert-verdict { border-style: dashed; color: var(--muted); border-color: #A9B7B1; letter-spacing: .04em; font-size: 15px; }
.cert-facts { width: 100%; border-collapse: collapse; margin-bottom: 6mm; }
.cert-facts td { border: 1px solid var(--rule); padding: 2.5mm 3mm; width: 20%; vertical-align: top; text-align: center; background: #FAFBFA; }
.cert-facts span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 1mm; }
.cert-facts strong { font-family: var(--display); font-size: 15px; font-weight: 600; }
.cert-conditions { border-left: 3px solid var(--c); padding: 1mm 0 1mm 4mm; margin-bottom: 6mm; }
.cert-conditions h2 { font-size: 13px; margin: 0 0 1.5mm; color: var(--c); }
.cert-conditions div { font-size: 13px; line-height: 1.55; }
.cert-sign { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9mm 14mm; margin-top: auto; padding-top: 4mm; }
.cert-signer { break-inside: avoid; }
.cert-sigline { height: 13mm; border-bottom: 1px solid var(--ink); display: flex; align-items: flex-end; padding: 0 1mm 1mm; }
.cert-esig { font-family: "Segoe Script", "Lucida Handwriting", "Brush Script MT", cursive; font-size: 19px; color: #1F3F7A; line-height: 1; }
.cert-name { font-weight: 700; font-size: 13.5px; margin-top: 1.5mm; }
.cert-role { font-size: 12.5px; color: var(--ink-2); }
.cert-meta { font-size: 11px; color: var(--muted); margin-top: 1mm; }
.cert-comment { font-style: italic; margin-top: .5mm; }
.cert-foot { display: flex; flex-wrap: wrap; gap: 1mm 6mm; justify-content: center; margin-top: 8mm; padding-top: 3mm; border-top: 1px solid var(--rule); font-size: 10.5px; color: var(--muted); text-align: center; }
.cert.draft .cert-frame::after { content: "DRAFT"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 150px; letter-spacing: .1em; color: rgba(18, 61, 58, .06); transform: rotate(-32deg); pointer-events: none; }
@page cert { size: A4 portrait; margin: 0; }
.cert { page: cert; }
@media print {
  .print-body:has(.cert) { background: #fff; }
  .cert { margin: 0; box-shadow: none; width: 210mm; height: 297mm; min-height: 0; page-break-after: avoid; }
  .cert-frame { min-height: 0; height: 100%; }
}
@media screen and (max-width: 820px) { .cert { width: auto; min-height: 0; margin: 0; padding: 12px; } .cert-frame { min-height: 0; padding: 20px 16px; } .cert-sign { grid-template-columns: 1fr; } .cert h1 { font-size: 26px; } .cert-facts td { display: block; width: auto; } }
.cert-facts td:first-child { width: 28%; }
.cert-facts strong { white-space: nowrap; font-size: 14px; }
.cert-sign.many { grid-template-columns: repeat(3, 1fr); gap: 6mm 8mm; }
.cert-sign.many .cert-sigline { height: 10mm; }
.cert-sign.many .cert-esig { font-size: 16px; }
.cert:has(.cert-sign.many) h1 { margin: 9mm 0 5mm; font-size: 31px; }
.cert:has(.cert-sign.many) .cert-verdict { margin: 6mm auto 5mm; }
@media print {
  html, body { margin: 0; padding: 0; }
  .cert { height: 296mm; overflow: hidden; }
}
/* certificate with more than four signatories: tighter so it still fits one A4 page */
.cert:has(.cert-sign.many) .cert-frame { padding: 9mm 13mm 6mm; }
.cert:has(.cert-sign.many) h1 { margin: 6mm 0 4mm; font-size: 29px; }
.cert:has(.cert-sign.many) .cert-system { font-size: 22px; margin: 2mm auto 3mm; }
.cert:has(.cert-sign.many) .cert-body { font-size: 14px; line-height: 1.55; }
.cert:has(.cert-sign.many) .cert-verdict { margin: 5mm auto 4mm; font-size: 16px; padding: 2mm 8mm; }
.cert:has(.cert-sign.many) .cert-facts { margin-bottom: 4mm; }
.cert:has(.cert-sign.many) .cert-conditions { margin-bottom: 3mm; }
.cert-sign.many { gap: 4mm 8mm; padding-top: 2mm; }
.cert-sign.many .cert-sigline { height: 8mm; }
.cert-sign.many .cert-meta { font-size: 10px; margin-top: .5mm; }
.cert:has(.cert-sign.many) .cert-foot { margin-top: 4mm; padding-top: 2mm; }

/* certificate: conditions overleaf (page 2) */
.cert-overleaf { text-align: center; font-size: 13px; font-style: italic; color: var(--c); margin: 0 0 4mm; }
.cert-back-h { font-family: var(--display); font-size: 22px; color: var(--c); margin: 10mm 0 2mm; }
.cert-lead.left { text-align: left; margin-bottom: 6mm; }
.cert-conditions-text { font-size: 14px; line-height: 1.7; border-left: 3px solid var(--c); padding: 1mm 0 1mm 5mm; }
.cert-back-sub { font-family: var(--display); font-size: 15px; color: var(--ink); margin: 10mm 0 3mm; }
.cert-remarks { width: 100%; border-collapse: collapse; font-size: 13px; }
.cert-remarks th, .cert-remarks td { border-top: 1px solid var(--rule); padding: 3mm 2mm; text-align: left; vertical-align: top; }
.cert-remarks th { width: 34%; font-weight: 700; }
.cert-remarks th span { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.cert-back .cert-foot { margin-top: auto; }
@media print {
  .cert.has-back { page-break-after: always; break-after: page; }
  .cert-back { page-break-before: always; break-before: page; }
}

/* ---------- UAT report ---------- */
@page report { size: A4 portrait; margin: 16mm 14mm; }
.uat-report { page: report; max-width: 900px; }
/* Body copy is justified, with hyphenation so the word spacing stays even */
.uat-report p { line-height: 1.6; max-width: 78ch; text-align: justify; hyphens: auto; }
/* Short lines and captions stay ranged left: justifying them opens ugly gaps */
.uat-report .rp-cover p, .uat-report p.small, .uat-report p.muted, .uat-report p.hint,
.uat-report .rp-kicker, .uat-report figcaption, .uat-report td p, .uat-report th p { text-align: left; hyphens: manual; }
.uat-report h3 { margin-top: 1.3em; }
.rp-cover { border: 1px solid var(--rule); border-top: 6px solid var(--green); border-radius: 8px; padding: 26px 28px 22px; margin-bottom: 8px; background: #FAFBFA; }
.rp-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.rp-brand .logo { background: var(--green); }
.rp-kicker { margin: 26px 0 2px; color: var(--muted); font-size: 14px; }
.rp-cover h1 { font-size: 32px; margin: 0 0 14px; }
.rp-verdict { display: inline-block; padding: 7px 14px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.rp-verdict strong { font-family: var(--display); font-size: 16px; }
.rp-verdict.met { background: var(--pass-tint); color: #1D5A37; } .rp-verdict.notmet { background: var(--fail-tint); color: #8A2A1B; }
.rp-control { max-width: 560px; margin: 0; background: #fff; }
.rp-control th { width: 32%; }
/* Laid out as a grid rather than a table: column rounding in paged media pushed the last cell off the page */
.rp-figures { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; margin: 10px 0 4px; }
.rp-figures tbody, .rp-figures tr { display: contents; }
.rp-figures td { display: block; border: 1px solid var(--rule); border-left: 0; padding: 8px 6px; text-align: center; min-width: 0; }
.rp-figures td:first-child { border-left: 1px solid var(--rule); }
.rp-figures span { overflow-wrap: anywhere; }
.rp-figures span { display: block; font-size: 11.5px; color: var(--muted); }
.rp-figures strong { font-family: var(--display); font-size: 20px; font-weight: 600; }
.rp-figures .f-pass strong { color: var(--pass); } .rp-figures .f-fail strong { color: var(--fail); } .rp-figures .f-blocked strong { color: var(--blocked); }
.rp-narrow { max-width: 420px; }
.rp-appendix { font-size: 11.5px; }
@media print {
  .uat-report { max-width: none; padding: 0; }
  .rp-cover { break-after: page; min-height: 235mm; display: flex; flex-direction: column; justify-content: center; border: 0; border-top: 6px solid var(--green); border-radius: 0; background: #fff; padding: 0 6mm; }
  .rp-cover h1 { font-size: 40px; }
  .uat-report h2 { break-after: avoid; } .uat-report h3 { break-after: avoid; }
  .uat-report tr, .uat-report .exit li { break-inside: avoid; }
  .rp-break { break-before: page; }
  .uat-report .table thead { display: table-header-group; }
}
.uat-report .table-wrap { overflow: visible; }
.uat-report .table-wrap td:first-child, .uat-report .table-wrap th:first-child { white-space: nowrap; }
.uat-report .w-bar { width: 16%; min-width: 70px; }
@media print {
  .uat-report .table { font-size: 11.5px; }
  .uat-report .table.compact th, .uat-report .table.compact td { padding: 4px 6px; }
  .uat-report .w-bar { min-width: 60px; }
}

/* ---------- Notifications ---------- */
.bell > summary { position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin-right: 2px; border-radius: 50%; cursor: pointer; }
.bell > summary:hover, .bell[open] > summary { background: var(--rule-2); }
.bell-icon { width: 20px; height: 20px; display: block; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bell[open] .bell-icon, .bell > summary:hover .bell-icon { stroke: var(--green); }
.bell-count { position: absolute; top: 0; right: 0; transform: translate(35%, -30%); min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--fail); color: #fff; font: 700 10px/15px var(--display); text-align: center; border: 2px solid var(--paper); box-sizing: content-box; }
.notes-pop { width: 360px; max-width: 92vw; padding: 0; }
.notes-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.notes-none { padding: 14px 12px; margin: 0; }
.notes { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.notes li { border-bottom: 1px solid var(--rule-2); }
.notes li:last-child { border-bottom: 0; }
.notes a { display: block; padding: 9px 12px 9px 24px; position: relative; color: var(--ink); white-space: normal; }
.note-t, .note-b, .note-w { white-space: normal; overflow-wrap: anywhere; }
.notes a:hover { background: var(--rule-2); text-decoration: none; }
.notes .unread > a::before { content: ""; position: absolute; left: 10px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-3); }
.notes .unread .note-t { font-weight: 700; }
.note-t { display: block; font-size: 13.5px; }
.note-b { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.note-w { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.notes-all { display: block; padding: 9px; text-align: center; border-top: 1px solid var(--rule); font-size: 13px; font-weight: 600; }
.notes.page { max-height: none; }
.notes.page a { padding: 12px 16px 12px 30px; }
.notes.page .unread > a::before { left: 14px; top: 18px; }
.notes.page .unread { background: #FAFCF8; }

/* ---------- Builds, rounds, requirements, progress ---------- */
.t-title { margin: 0; font-size: 17px; }
.row-now > td { background: var(--green-tint); }
.row-now > td:first-child { box-shadow: inset 3px 0 0 var(--green-3); }
.sub-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sub-form h3 { margin-top: 0; }
.round-start { margin-top: 16px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.round-start > summary { padding: 10px 14px; font-weight: 600; cursor: pointer; font-family: var(--display); }
.round-start[open] > summary { border-bottom: 1px solid var(--rule); }
.round-start > form { padding: 14px; }
.type-pick { margin-bottom: 4px; }
.pill-build { background: var(--green-tint); color: var(--green-3); font-family: var(--display); }
.pill-type { background: var(--hi-tint); color: #7A5B00; }
.pill-unscripted { background: var(--blocked-tint); color: #7A4F0F; font-weight: 500; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 11px 13px; }
.tile span { display: block; font-size: 11.5px; color: var(--muted); text-transform: none; }
.tile strong { display: block; font-size: 23px; line-height: 1.15; }
.tile.t-pass { border-color: #BFD9C9; } .tile.t-pass strong { color: var(--pass); }
.tile.t-fail { border-color: #E6BDB3; } .tile.t-fail strong { color: var(--fail); }
.c-pass { color: var(--pass); }

.cov-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--notrun); margin: 4px 0 12px; }
.cov-bar i { display: block; min-width: 2px; }
.cov-bar .st-pass { background: var(--pass); } .cov-bar .st-fail { background: var(--fail); }
.cov-bar .st-blocked { background: var(--blocked); } .cov-bar .st-n-a { background: var(--na); }
.cov-bar .st-untested { background: #8A5C53; }

.chart { margin: 4px 0 0; }
.chart svg { width: 100%; height: 210px; display: block; overflow: visible; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .ax { font: 10px var(--display); fill: var(--muted); }
.chart .ideal { stroke: var(--na); stroke-width: 1.2; stroke-dasharray: 4 4; }
.chart path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln-left { stroke: var(--green-3); }
.chart .ln-pass { stroke: var(--pass); }
.chart .ln-def { stroke: var(--fail); stroke-dasharray: 2 3; }
.chart .pt-left { fill: var(--green-3); }
.chart-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.chart-key span { display: inline-flex; align-items: center; gap: 6px; }
.chart-key i { width: 14px; height: 3px; border-radius: 2px; display: block; }
.chart-key .k-left { background: var(--green-3); } .chart-key .k-pass { background: var(--pass); }
.chart-key .k-def { background: var(--fail); } .chart-key .k-ideal { background: var(--na); }

.fig-ctx { font-size: 12px; color: #A9C2BC; border-top: 1px solid rgba(255,255,255,.14); padding-top: 10px; }
.fig-ctx a { color: #fff; text-decoration: underline; }
.steps-list { margin: 0; padding-left: 20px; }
.steps-list li { margin-bottom: 8px; }
.cert-deferred th span { display: block; }
.ink { color: var(--ink); }
/* A button that has been clicked and is waiting on the server */
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; color: #fff; animation: spin .6s linear infinite; }
.btn.is-busy:not(.btn-primary)::after { color: var(--green-3); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::after { animation: none; } }
button:disabled { opacity: .65; cursor: not-allowed; }

/* UAT report: a ruled border on every printed page, echoing the certificate's double rule.
   Fixed position is what repeats it page after page in print. */
.rp-frame { display: none; }
@media screen {
  .uat-report { background: #fff; border: 1px solid var(--rule); outline: 3px solid var(--paper); box-shadow: 0 2px 14px rgba(18,61,58,.07); padding: 34px 38px; }
}
@media print {
  /* Sized in mm against the A4 page box, not with inset: a viewport-sized fixed box
     widens the print layout and pushes the right edge of the content off the paper. */
  .rp-frame { display: block; position: fixed; top: 0; left: 0; width: 182mm; height: 265mm;
    border: 1.2px solid var(--green); outline: .5px solid var(--green); outline-offset: 2.4px;
    box-sizing: border-box; pointer-events: none; }
  /* the type sits inside the rule, not on it */
  .uat-report { padding: 4mm 5mm 0; }
  /* the type area is a little narrower now that it sits inside a rule */
  .uat-report .table { font-size: 10.5px; }
  /* the bar is a screen device: on paper the figures beside it say the same thing,
     and the space it frees keeps every column inside the rule */
  .uat-report .w-bar, .uat-report .table td:has(> .stack), .uat-report .table th:has(> .stack) { display: none; }
  .uat-report .table th, .uat-report .table td { padding: 3px 4px; }
  /* inside the rule the type area is narrower, so wide tables must be allowed to wrap */
  .uat-report .table .nowrap, .uat-report .table th { white-space: normal; }
  .uat-report .table { table-layout: auto; }
  .uat-report .table .code { white-space: nowrap; }
  .uat-report { border: 0; outline: 0; box-shadow: none; }
}
.chip-alert { border-color: #EDD5A6; background: var(--blocked-tint); color: #7A4F0F; }
.chip-alert b { background: rgba(0,0,0,.07); }
.dupe-group + .dupe-group { margin-top: 14px; }
.dupe-table input[type=radio], .dupe-table input[type=checkbox] { width: 16px; height: 16px; }
/* The three ways to raise something, each explained where it is chosen */
.raise-menu > summary { display: inline-flex; align-items: center; gap: 6px; }
.raise-menu > summary::after { content: "▾"; font-size: 10px; opacity: .8; }
.raise-menu .menu-pop { min-width: 290px; }
.raise-menu .menu-pop a { white-space: normal; padding: 9px 10px; }
.raise-menu .menu-pop small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.raise .k-note { margin-top: -2px; }

/* ---- switching between the systems under test ------------------------------- */
.switcher { position: relative; margin: 0 12px 10px; }
.switcher > summary { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r);
  background: rgba(255,255,255,.07); color: #fff; cursor: pointer; list-style: none; font-size: 13px; }
.switcher > summary::-webkit-details-marker { display: none; }
.switcher > summary::after { content: "⌄"; margin-left: auto; opacity: .6; font-size: 15px; line-height: 1; }
.switcher > summary:hover { background: rgba(255,255,255,.12); }
.sw-code { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 2px 6px;
  border-radius: 4px; background: rgba(255,255,255,.16); font-family: var(--display); font-size: 11px; letter-spacing: .04em; }
.sw-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-pop { left: 0; right: auto; width: 100%; min-width: 0; padding: 6px; }
.menu-pop .sw-item > span:last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop .sw-item > span:last-child small { overflow: hidden; text-overflow: ellipsis; }
.sw-h { padding: 6px 10px 8px; font-size: 11.5px; color: var(--ink-2); }
.menu-pop .sw-item { display: flex; align-items: center; gap: 9px; width: 100%; white-space: normal; padding: 8px 10px; border: 0; border-radius: 6px;
  background: none; text-align: left; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); }
.menu-pop .sw-item .sw-code { background: var(--rule-2); color: var(--ink-2); }
.menu-pop .sw-item small { display: block; color: var(--ink-2); font-size: 11.5px; }
.menu-pop .sw-item:hover { background: var(--rule-2); }
.menu-pop .sw-item.on { font-weight: 600; }
.menu-pop .sw-item.on .sw-code { background: var(--green); color: #fff; }
.sw-manage { display: block; padding: 9px 10px; margin-top: 4px; border-top: 1px solid var(--rule); font-size: 12.5px; }
.is-current > td { background: var(--green-tint); }
.menu-pop.pad { padding: 12px; min-width: 280px; }
.role-pick { display: flex; flex-wrap: wrap; gap: 5px; }
.role-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border: 1px solid var(--rule);
  border-radius: 20px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.role-chip:hover { background: var(--rule-2); }
.role-chip:has(input:checked) { background: var(--green-tint); border-color: var(--green); color: var(--green-ink, var(--green)); font-weight: 500; }
.role-chip input { margin: 0; }
.empty-card { padding: 22px 24px; }
.empty-card p { margin: 0 0 10px; }
.empty-card form { margin-top: 14px; }
.checklist .cl-edit { margin-left: auto; }
.checklist li { align-items: flex-start; }
.link-btn.danger { color: var(--fail); }
.role-name { width: 100%; min-width: 150px; font-weight: 600; }

/* ---- setting a system up: the steps live in the page, inside the ordinary shell ---- */
.steps-bar { margin: 0 0 22px; }
.steps { list-style: none; display: flex; gap: 6px; margin: 0 0 8px; padding: 0 0 2px; overflow-x: auto; }
.steps li { flex: 1 1 0; min-width: 132px; }
.steps a { display: flex; align-items: flex-start; gap: 9px; height: 100%; padding: 10px 11px; border: 1px solid var(--rule);
  border-radius: var(--r); background: #fff; color: var(--ink-2); text-decoration: none; }
.steps a:hover { border-color: var(--ink-3, var(--muted)); color: var(--ink); text-decoration: none; }
.steps .sn { flex: 0 0 21px; height: 21px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--rule);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--muted); }
.steps .sl { min-width: 0; }
.steps strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.25; }
.steps small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps .done .sn { background: var(--green); border-color: var(--green); color: #fff; }
.steps .here a { border-color: var(--green); background: var(--green-tint); color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); }
.steps .here strong { font-weight: 600; }
.steps-count { margin: 0; color: var(--muted); font-size: 12.5px; }
.step-h { margin: 0 0 4px; }
.step-blurb { margin: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
.setup-form { max-width: 780px; }
.setup-form > label, .setup-form > .grid2, .setup-form > .grid3 { margin-bottom: 18px; }
.setup-form h3 { margin: 30px 0 10px; }
.setup-table input[type=text], .setup-table input:not([type]) { width: 100%; }
.setup-add { display: block; width: 100%; margin-bottom: 8px; }
.setup-actions { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); }
.setup-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.setup-card { padding: 20px; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.setup-card.ok { border-color: var(--green); background: var(--green-tint); }
.setup-card h3 { margin: 0 0 6px; font-size: 16px; }
.setup-card p { margin: 0 0 14px; font-size: 13.5px; }
.setup-card .btn { margin-right: 6px; }
.setup-check { list-style: none; margin: 0 0 8px; padding: 0; }
.setup-check li { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--rule-2); }
.setup-check small { display: block; color: var(--ink-2); font-size: 12.5px; }
.setup-check .done strong { color: var(--muted); }
.with-suffix { display: flex; align-items: center; gap: 6px; }
.with-suffix input { flex: 1; }
@media (max-width: 880px) {
  .steps li { min-width: 150px; }
  .setup-cards { grid-template-columns: 1fr; }
}
.count-warn { background: var(--blocked); color: #fff; }
.steps .ahead a { opacity: .5; pointer-events: none; }
.setup-check .check-drop { margin-left: auto; align-self: center; }

/* ---- which system this page belongs to, always in the header ------------------ */
.sysnow { display: inline-flex; align-items: center; gap: 7px; max-width: 320px; padding: 5px 11px 5px 6px;
  border: 1px solid var(--rule); border-radius: 20px; background: var(--paper); color: var(--ink-2);
  font-size: 12.5px; text-decoration: none; }
.sysnow > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.sysnow:hover { border-color: var(--green); color: var(--ink); text-decoration: none; }
.sys-code { flex: 0 0 auto; padding: 2px 7px; border-radius: 4px; background: var(--ink); color: #fff;
  font-family: var(--display); font-size: 11px; letter-spacing: .04em; }
@media (max-width: 720px) { .sysnow > span:last-child { display: none; } .sysnow { max-width: none; padding: 5px 6px; } }

/* ---- what an import would do, before it does it ------------------------------ */
.tally { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; padding: 0; }
.tally li { flex: 1 1 130px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.tally strong { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.tally span { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.tally li.bad { border-color: var(--fail); background: var(--fail-tint); }
.tally li.bad strong { color: var(--fail); }
.card.checked { border-color: var(--green); }
.role-cell { display: flex; align-items: center; gap: 10px; }
.role-now { min-width: 0; flex: 1; font-size: 13px; }
.role-edit { flex: 0 0 auto; position: relative; }
.role-edit .menu-pop { right: 0; min-width: 300px; max-width: 380px; }
.role-edit .hint { margin-bottom: 8px; }

/* ---- which systems a person tests, and what they do on each ------------------- */
.systems-field { display: flex; flex-direction: column; gap: 8px; }
.sys-block { border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 12px; background: var(--paper); }
.sys-block.on { border-color: var(--green); background: #fff; }
.sys-head { margin: 0; display: flex; align-items: center; gap: 8px; }
.sys-head .sys-code { background: var(--rule-2); color: var(--ink-2); }
.sys-block.on .sys-head .sys-code { background: var(--green); color: #fff; }
.sys-roles { margin: 10px 0 2px 26px; display: flex; flex-direction: column; gap: 6px; }
.sys-roles .role-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sys-roles .role-row .check { margin: 0; min-width: 210px; }
.sys-roles input[type=email] { flex: 1 1 220px; }
.sys-roles .role-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.sys-roles .perms { margin-left: 2px; }
/* Leading a system is a different thing from holding a role on it, so it sits apart. */
.lead-line { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--rule); }
.lead-line strong { margin-right: 4px; }
.sys-account { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule); font-size: 13px; }
.sys-account input { max-width: 420px; }

/* A list of people shows what you scan for; the rest waits until you open a row. */
.rowopen { display: flex; align-items: baseline; gap: 7px; width: 100%; padding: 0; border: 0;
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rowopen:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.rowopen:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; border-radius: 3px; }
.chev { flex: none; width: 9px; height: 9px; border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted); transform: translateY(-2px) rotate(-45deg);
  transition: transform .12s ease; }
tr.open .chev { transform: translateY(-4px) rotate(45deg); }
tr.open > td { border-bottom-color: transparent; }
tr[data-detail] > td { padding-top: 0; background: #FAFBFA; }
.rowfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px 26px; margin: 0; padding: 12px 14px 14px 26px; border-left: 2px solid var(--rule); }
.rowfacts dt { font-size: 12.5px; color: var(--muted); }
.rowfacts dd { margin: 1px 0 0; }

/* Prose stays readable on a wide screen: tables may use the full width, sentences should not. */
p.lead, p.hint, p.muted, .checklist li > div .small, .rowfacts dd { max-width: 92ch; }

/* ---- Modals ------------------------------------------------------------------------------
   One dialog, filled by whichever page opened it. The same card also stands as a page of its
   own when there is no script, so it is styled to work in both places. */
#modal { padding: 0; border: 0; border-radius: 12px; width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); background: var(--card); color: var(--ink); overflow: hidden;
  box-shadow: 0 24px 60px rgba(12, 46, 43, .28), 0 2px 8px rgba(12, 46, 43, .12); }
#modal::backdrop { background: rgba(12, 46, 43, .42); }
#modal[open] { display: flex; flex-direction: column; animation: modal-in .16s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #modal[open] { animation: none; } }
.modal-body, .modal-card { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; margin: 0; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--rule-2); }
.modal-head h2 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.modal-head .sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.modal-head .modal-x { flex: none; width: 32px; height: 32px; margin: -4px -8px 0 0; border-radius: 6px; color: var(--muted);
  font-size: 24px; line-height: 30px; text-align: center; text-decoration: none; }
.modal-head .modal-x:hover { background: var(--rule-2); color: var(--ink); }
.modal-head .modal-x:focus-visible { outline: none; box-shadow: var(--focus); }
.modal-main { padding: 16px 22px 18px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.modal-main > :last-child { margin-bottom: 0; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--rule-2); background: var(--paper); }
.modal-foot .spacer { flex: 1; }
main.content > .modal-card { max-width: 640px; margin: 0 auto 18px; border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden; background: var(--card); }

/* a two-column list of plain facts about one thing */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 18px; }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.section-label { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* an on/off switch for choices that open more choices */
input.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 34px; height: 20px; margin: 0;
  border-radius: 999px; background: #C9D3CE; cursor: pointer; transition: background .15s; }
input.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
input.switch:checked { background: var(--green); }
input.switch:checked::before { transform: translateX(14px); }
input.switch:focus-visible { outline: none; box-shadow: var(--focus); }
@media (prefers-reduced-motion: reduce) { input.switch, input.switch::before { transition: none; } }

/* where someone works: one block per system, opened by its switch */
.acc-list { display: flex; flex-direction: column; gap: 8px; }
.acc { border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.acc.on { border-color: var(--green-3); box-shadow: inset 3px 0 0 var(--green); }
.acc-head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; cursor: pointer; }
.acc-head .name { flex: 1; min-width: 0; }
.acc-head .name .muted { margin-left: 4px; }
.acc-body { display: grid; gap: 12px; margin: 0 12px; padding: 12px 0 14px; border-top: 1px dashed var(--rule); }
.acc-body label.field { margin: 0; }
.acc-body .check { margin: 0; }

/* the list of people in Add people */
.people-search { margin: 0 0 8px; }
.people-list { max-height: 290px; overflow-y: auto; border: 1px solid var(--rule); border-radius: var(--r); }
.people-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--rule-2); cursor: pointer; }
.people-row:last-child { border-bottom: 0; }
.people-row:hover { background: var(--paper); }
.people-row:has(input:checked) { background: var(--green-tint); }
.people-row .who { flex: 1; min-width: 0; }
.people-row .who .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-none { padding: 14px 12px; margin: 0; color: var(--muted); }
.people-count { color: var(--muted); font-size: 13px; }

/* a person's place on each system, as read on their card */
.acc-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.acc-sum li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r); }
.acc-sum li > div { flex: 1; min-width: 0; }
.acc-sum .sys-code { margin-top: 1px; }

/* a person's name in a list opens their card */
a.person { color: var(--ink); font-weight: 600; text-decoration: none; }
a.person:hover { text-decoration: underline; text-underline-offset: 2px; }
.who-mail { display: block; font-size: 12.5px; color: var(--muted); }

.btn.danger { color: var(--fail); }
.btn.danger:hover { background: var(--fail-tint); border-color: var(--fail-tint); }
.gap-top { margin-top: 16px; }
.facts.one { grid-template-columns: 1fr; }
.people-row .who .returning { display: block; white-space: normal; color: var(--green-3); }
.acc-sum.kept li { border-style: dashed; background: var(--paper); }

/* ---- Setup wizard: one centred column, the width of the issue form ----------------------
   The steps run across the top and the step itself sits in a card beneath, so every step has
   the same balanced margins whatever the screen. */
.setup-page { max-width: none; }   /* the same width as every other page */
.setup-page .steps-bar { margin-bottom: 14px; }
.setup-page .steps li { min-width: 0; }
.setup-page .setup-form { max-width: none; }
.setup-body > :first-child { margin-top: 0; }
/* at this width the tiles carry the step and its state; the detail is on the card below */
.setup-page .steps a { align-items: center; gap: 8px; padding: 9px 10px; }
.setup-page .steps small { display: none; }
.setup-page .steps strong { font-size: 12.5px; }
.step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule-2); }
.step-head .step-blurb { margin: 0; }
.step-state { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 220px; text-align: right; }

/* the page for an installation, or a person, with no system to work on yet */
.welcome h2 { margin: 0 0 8px; }
.welcome-steps { list-style: none; counter-reset: ws; margin: 18px 0 0; padding: 0; }
.welcome-steps li { counter-increment: ws; display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule-2); }
.welcome-steps li::before { content: counter(ws); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-tint);
  color: var(--green); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.welcome-steps li > div { flex: 1; min-width: 0; }
.welcome-steps p { margin: 3px 0 0; font-size: 13.5px; }
.welcome-steps .btn { flex: none; }

/* compact lists: one line per row, long text cut short here and read in full in its modal */
td.clip { max-width: 0; width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 14px; border-bottom: 1px solid var(--rule-2); }
.facts.four dd { font-size: 20px; font-weight: 600; }
dd.pre { white-space: pre-line; }
.grid-day { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }

/* ---- Confirmations: the app's own dialog in place of the browser's box ---- */
.confirm-box { padding: 0; border: 0; border-radius: 12px; width: min(440px, calc(100vw - 32px));
  background: var(--card); color: var(--ink);
  box-shadow: 0 24px 60px rgba(12, 46, 43, .28), 0 2px 8px rgba(12, 46, 43, .12); }
.confirm-box::backdrop { background: rgba(12, 46, 43, .42); }
.confirm-box[open] { animation: modal-in .14s ease-out; }
.confirm-in { padding: 22px 22px 18px; }
.confirm-box h2 { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.confirm-box p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.confirm-box .btn-go.is-danger { background: var(--fail); border-color: var(--fail); color: #fff; }
.confirm-box .btn-go.is-danger:hover { background: #A63522; border-color: #A63522; }
.confirm-box .btn:focus-visible { outline: none; box-shadow: var(--focus); }
@media (prefers-reduced-motion: reduce) { .confirm-box[open] { animation: none; } }

/* ---- Sidebar: each group folds away ---- */
.nav-g { margin: 2px 0; }
.nav-g + .nav-g { border-top: 1px solid rgba(255,255,255,.07); padding-top: 2px; }
.nav-g > summary { list-style: none; display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 10px;
  border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #9DB8B1; cursor: pointer; user-select: none; }
.nav-g > summary::-webkit-details-marker { display: none; }
.nav-g > summary:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-g > summary:focus-visible { outline: none; box-shadow: var(--focus); }
.nav-l { flex: 1; }
.nav-chev { width: 12px; height: 12px; flex: none; transform: rotate(-90deg); transition: transform .15s ease; opacity: .8; }
.nav-g[open] > summary .nav-chev { transform: none; }
.nav-g[open] > summary .nav-sum { display: none; }   /* the count shows on the link itself once open */
.side nav .nav-sum { font-family: var(--display); font-size: 11.5px; font-weight: 600; background: var(--hi); color: var(--green-2);
  border-radius: 10px; padding: 0 7px; line-height: 18px; }
.nav-g:not([open]) > summary:has(~ .nav-links a.active) { color: #fff; }
.nav-links { padding-bottom: 4px; }
.side nav { padding-top: 2px; }
@media (prefers-reduced-motion: reduce) { .nav-chev { transition: none; } }

/* ---- Footer: the credit line on every page ---- */
.main { min-height: 100vh; }
.site-foot { margin-top: auto; width: 100%; max-width: 1480px; margin-inline: auto; padding: 14px 28px 18px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
  font-size: 12.5px; color: var(--muted); text-align: center; }
.content + .site-foot { border-top: 1px solid var(--rule-2); }
body.bare .site-foot { margin-top: 28px; padding: 0; color: rgba(255,255,255,.62); }
@media print { .site-foot { display: none; } }

/* ---- Licence agreement: installer box and its own page ---- */
.lic-box { max-height: 340px; overflow-y: auto; padding: 16px 20px; margin: 10px 0 14px; border: 1px solid var(--rule);
  border-radius: 8px; background: var(--paper); font-size: 13px; line-height: 1.6; }
.lic-box:focus-visible { outline: none; box-shadow: var(--focus); }
.lic-box .lic-title { margin: 0 0 4px; font-size: 16px; }
.lic-box h4, .lic-text h4 { margin: 16px 0 4px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.lic-box p, .lic-text p { margin: 0 0 8px; color: var(--ink-2); }
.lic-meta { color: var(--muted) !important; font-size: 12.5px; }
.lic-list { list-style: none; padding: 0; margin: 0 0 8px; }
.lic-list li { display: flex; gap: 8px; margin: 0 0 4px; color: var(--ink-2); }
.lic-list li span { flex: none; width: 22px; color: var(--muted); }
.lic-accept { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.lic-accept input { margin-top: 3px; }
.lic-accept:has(input:checked) { border-color: var(--green); background: #EEF5F2; }
.lic-page { max-width: 860px; margin-inline: auto; }
.lic-page h2 { margin-top: 0; }
.lic-text { font-size: 14px; line-height: 1.65; }
.lic-text h4 { font-size: 15px; margin-top: 20px; }
.lic-record { padding: 10px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--rule-2); font-size: 13px; color: var(--ink-2); }
body.bare .site-foot a { color: rgba(255,255,255,.8); }
.site-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-foot a:hover { color: var(--ink); }
body.bare .site-foot a:hover { color: #fff; }

/* ---- Installer: three tabs in one form ---- */
.install .ins-tabs { margin: 18px 0 20px; }
.install .ins-tabs li { min-width: 150px; }
.ins-panel { padding-top: 2px; }
.ins-panel:focus { outline: none; }
.ins-panel > h3:first-child { margin-top: 0; }
.ins:not(.ins-tabbed) .ins-panel + .ins-panel { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule-2); }
.ins:not(.ins-tabbed) .ins-nav [data-ins-go] { display: none; }   /* without script every section shows; nothing to move between */
.ins-checks { list-style: none; margin: 6px 0 14px; padding: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.ins-checks li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; }
.ins-checks li + li { border-top: 1px solid var(--rule-2); }
.ins-checks .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; }
.ins-checks .ok .ic { background: var(--pass); }
.ins-checks .bad .ic { background: var(--fail); }
.ins-checks .warn .ic { background: #C98A12; }
.ins-checks small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.ins-checks .bad small { color: var(--fail); }
.ins-say { margin: 0 0 4px; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; }
.ins-say.ok { background: var(--pass-tint, #E6F3EC); color: var(--ink); }
.ins-say.warn { background: #FBF1DC; color: var(--ink); }
.ins-say.bad { background: var(--fail-tint); color: var(--ink); }
.ins-nav { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.ins-nav .spacer { flex: 1; }
.install .steps .ahead a { cursor: not-allowed; }
