/* TED Tender Qualification — "Finance / Trust" theme: deep navy on a cool light canvas, dense tables,
   tabular numerals, hairline separators, flat surfaces. */
:root {
  --primary: #0F2F4F;
  --secondary: #4A5C70;
  --accent: #0A7558;
  --background: #EFF3F7;
  --surface: #FFFFFF;
  --text: #10233A;
  --muted: #57697D;
  --border: #CFDAE6;
  --success: #0E8F6E;
  --warning: #B26B00;
  --danger: #C0392B;
  /* text-safe variants derived from the fill colours (WCAG AA on white) */
  --success-text: #0A5C47;
  --warning-text: #7A4A00;
  --danger-text: #8E2A20;
  --accent-text: #08604A;
  --success-tint: #DDF2EC;
  --warning-tint: #FBEBD3;
  --danger-tint: #F8E1DE;
  --primary-tint: #E3EBF3;
  --row-hover: #F5F8FB;
  --radius: 3px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sidebar: 212px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--text); font: 13.5px/1.45 var(--font); }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--accent-text); }
h1, h2, h3 { font-weight: 700; color: var(--primary); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 19px; }
h2 { font-size: 14.5px; }
h3 { font-size: 13px; }
.num, td.num, .stat-value { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
td.num, th.num { text-align: right; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--primary); color: #DCE6F0; display: flex; flex-direction: column; position: sticky;
  top: 0; height: 100vh; }
.brand { padding: 16px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand strong { display: block; color: #fff; font-size: 13.5px; line-height: 1.25; }
.brand span { font-size: 11px; color: #A9BBCD; text-transform: uppercase; letter-spacing: .06em; }
.nav { list-style: none; margin: 10px 0; padding: 0; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 16px; color: #DCE6F0; text-decoration: none;
  border-left: 3px solid transparent; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.1); border-left-color: #5FC3A5; color: #fff; font-weight: 600; }
.nav svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav .count { margin-left: auto; background: rgba(255,255,255,.16); color: #fff; border-radius: 9px; padding: 0 7px;
  font-size: 11px; font-variant-numeric: tabular-nums; }
.nav .count.live { background: #5FC3A5; color: #06301F; }
.sidebar-foot { margin-top: auto; padding: 12px 16px; font-size: 11.5px; color: #A9BBCD; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-foot form { margin-top: 6px; }
.sidebar-foot button { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: var(--radius);
  padding: 3px 9px; font: inherit; cursor: pointer; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 24px; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar .crumbs { color: var(--muted); font-size: 12px; }
.trust { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.trust .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 5px; }
.content { padding: 18px 24px 40px; display: grid; gap: 16px; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.panel-head .sub { color: var(--muted); font-size: 12px; font-weight: 400; }
.panel-body { padding: 12px 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: #F6F8FA; color: var(--secondary); font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
tbody tr:hover { background: var(--row-hover); }
td .sub { display: block; color: var(--muted); font-size: 11.5px; }
td.title { min-width: 220px; max-width: 420px; }
.empty { padding: 26px 14px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }
tr.is-selected { background: var(--primary-tint); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1px 7px; font-size: 11.5px; font-weight: 600; background: #F6F8FA; color: var(--secondary); white-space: nowrap; }
.badge .num { font-weight: 700; color: var(--primary); }
.badge.bid, .badge.ok, .badge.up, .badge.completed, .badge.held { background: var(--success-tint); color: var(--success-text); border-color: #A9DCCB; }
.badge.no-bid, .badge.failed, .badge.down, .badge.missing { background: var(--danger-tint); color: var(--danger-text); border-color: #EBB8B1; }
.badge.review, .badge.degraded, .badge.running, .badge.queued, .badge.warn, .badge.partial { background: var(--warning-tint); color: var(--warning-text); border-color: #EBCB98; }
.badge.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.changed-flag { color: var(--warning-text); font-weight: 700; white-space: nowrap; }

/* ---------- forms ---------- */
form.inline { display: inline; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
label { display: block; font-size: 11.5px; font-weight: 600; color: var(--secondary); margin-bottom: 3px; }
.hint { font-size: 11px; color: var(--muted); margin-top: 2px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: 6px 8px; border: 1px solid #B4C3D3; border-radius: var(--radius); background: #fff;
  color: var(--text); font: inherit; min-height: 32px; }
textarea { min-height: 64px; resize: vertical; }
select[multiple] { min-height: 120px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid #2D6CA8; outline-offset: 1px; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }
.field-error, .form-error { color: var(--danger-text); font-size: 11.5px; margin-top: 3px; font-weight: 600; }
.checkbox { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--text); font-size: 13px; }
.checkbox input { width: 16px; height: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; min-height: 32px;
  border-radius: var(--radius); border: 1px solid var(--primary); background: var(--surface); color: var(--primary);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--primary-tint); color: var(--primary); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: #163E66; color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: #08604A; }
.btn.danger { border-color: var(--danger); color: var(--danger-text); }
.btn.small { padding: 2px 8px; min-height: 26px; font-size: 12px; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.btn.link { border-color: transparent; background: none; padding-left: 0; padding-right: 0; }

/* ---------- alerts ---------- */
.alert { border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius); padding: 8px 12px;
  background: var(--surface); }
.alert.ok { border-left-color: var(--success); }
.alert.error { border-left-color: var(--danger); color: var(--danger-text); background: #FDF5F4; }
.alert.warn { border-left-color: var(--warning); color: var(--warning-text); background: #FFF9F0; }
.secret-once { font-family: var(--mono); background: #F6F8FA; border: 1px dashed var(--secondary); padding: 8px; word-break: break-all; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.stat { padding: 10px 14px; border-right: 1px solid var(--border); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--primary); margin-top: 2px; overflow-wrap: anywhere; }
.stat-value.small { font-size: 13.5px; }

/* ---------- detail ---------- */
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li { padding: 9px 0; border-bottom: 1px solid var(--border); }
.req-list li:last-child { border-bottom: 0; }
.req-list .crit { font-weight: 600; }
.excerpt { margin: 4px 0 0; padding: 4px 8px; border-left: 3px solid var(--border); color: var(--secondary);
  font-size: 12.5px; background: #F9FBFC; overflow-wrap: anywhere; }
.not-stated { color: var(--muted); font-style: italic; }
.assist-log { list-style: none; margin: 0 0 10px; padding: 0; }
.assist-turn { padding: 8px 0; border-bottom: 1px solid var(--border); }
.assist-turn:last-child { border-bottom: 0; }
.assist-turn p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.assist-who { font-size: 12px; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: .04em; }
.assist-turn.assistant .assist-who { color: var(--primary); }
.assist-form textarea { width: 100%; }
.assist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 12px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
pre.prompt { white-space: pre-wrap; background: #F6F8FA; border: 1px solid var(--border); padding: 10px; max-height: 420px;
  overflow: auto; font: 12px/1.45 var(--mono); }
.versions { list-style: none; margin: 0; padding: 0; }
.versions li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.versions li .when { flex: 1 1 160px; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; }
.login-card .panel-body { display: grid; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-right: 0; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; }
  .nav { display: flex; overflow-x: auto; margin: 0; }
  .nav a { border-left: 0; border-bottom: 3px solid transparent; padding: 10px 12px; white-space: nowrap; }
  .nav a[aria-current="page"] { border-bottom-color: #5FC3A5; }
  .sidebar-foot { display: none; }
  .brand { padding: 10px 16px; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .form-grid, .filters { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-child(even) { border-right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color .12s ease, color .12s ease; }
}
/* half-width history tables: tighter cells so every column fits without horizontal scrolling on desktop */
table.compact th, table.compact td { padding: 5px 7px; font-size: 12.5px; }
table.compact th { font-size: 10.5px; }

/* ---------- readable dense tables ---------- */
.nowrap { white-space: nowrap; }
.clamp-1, .clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
th.wrap { white-space: normal; line-height: 1.25; }
td .t-link { color: var(--text); text-decoration: none; font-weight: 600; }
td .t-link:hover { color: var(--primary); text-decoration: underline; }
#results-table td.title { min-width: 260px; max-width: none; }
#results-table td.buyer { max-width: 240px; }
#results-table th.label-col, #results-table td[data-col=qualification] { width: 1%; }
#results-table td[data-col=changed] { width: 1%; white-space: nowrap; }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
details.ids summary { cursor: pointer; color: var(--primary); font-size: 12px; }
details.ids[open] summary { margin-bottom: 4px; }
details.ids .mono { display: block; font-size: 11.5px; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .form-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: tables become stacked cards instead of scrolling sideways */
@media (max-width: 760px) {
  .form-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--border); padding: 8px 12px; }
  table.stack td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 8px;
    text-align: left; white-space: normal; min-width: 0; max-width: none; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .03em; }
  table.stack td[data-label=""]::before { content: none; }
  table.stack td.num { text-align: left; }
  .table-scroll { overflow-x: visible; }
}
td .clamp-1, td .clamp-2 { display: -webkit-box; }
@media (max-width: 760px) {
  table.stack tr { display: flex; flex-direction: column; gap: 2px; }
  table.stack td { grid-template-columns: 7.5em minmax(0, 1fr); }
  table.stack td.title { order: -1; grid-template-columns: minmax(0, 1fr); padding-bottom: 4px; }
  table.stack td.title::before { content: none; }
  table.stack td.is-empty { display: none; }
  .nav { flex-wrap: wrap; overflow-x: visible; }
  .nav a { padding: 8px 10px; }
  .nav li { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  table.stack td > * { grid-column: 2; justify-self: start; max-width: 100%; }  /* values stay in the value column */
  table.stack td.title > *, table.stack td[data-label=""] > * { grid-column: 1; }
  table.stack td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- profile form ---------- */
.profile-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.profile-form { display: grid; gap: 18px; }
.form-section { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.form-section > legend { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em;
  padding: 0 0 6px; margin-bottom: 4px; width: 100%; border-bottom: 1px solid var(--border); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--border); padding-top: 14px; }
.checkbox-plain { font-weight: 400; align-items: flex-start; line-height: 1.4; }
.checkbox-plain input { margin-top: 2px; flex: none; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: grid; place-items: center; padding: 0 10px; border: 1px solid #B4C3D3; border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius); background: #F6F8FA; color: var(--secondary); }
.input-prefix > input { border-radius: 0 var(--radius) var(--radius) 0; }
.profile-versions .versions li { justify-content: space-between; }
.profile-versions .when { flex: 1 1 140px; }

/* ---------- searchable checklist picker ---------- */
.picker { display: grid; gap: 8px; min-width: 0; }
.picker-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.picker-head .label { font-size: 11.5px; font-weight: 600; color: var(--secondary); }
.picker-selected-count { font-size: 12px; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.picker-chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 4px 3px 9px;
  border: 1px solid #A9C4DE; background: var(--primary-tint); color: var(--primary); border-radius: 999px; font-size: 12.5px; }
.chip .chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip button { border: 0; background: transparent; color: var(--primary); cursor: pointer; font-size: 15px; line-height: 1;
  width: 22px; height: 22px; border-radius: 50%; flex: none; }
.chip button:hover { background: #fff; }
.picker-list { max-height: 260px; overflow-y: auto; border: 1px solid #B4C3D3; border-radius: var(--radius); background: #fff; }
.picker-list[aria-invalid=true] { border-color: var(--danger); }
.picker-item { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 7px 10px; border-bottom: 1px solid #EEF2F6;
  font-size: 13px; font-weight: 400; color: var(--text); cursor: pointer; }
.picker-item:last-child { border-bottom: 0; }
.picker-item:hover { background: var(--row-hover); }
.picker-item input { margin-top: 2px; flex: none; width: 15px; height: 15px; }
.picker-item:has(input:checked) { background: #F1F6FB; }
.picker-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.picker-code { color: var(--secondary); margin-right: 4px; }
.picker-count { flex: none; font-size: 11.5px; color: var(--muted); white-space: nowrap; padding-top: 1px; }
.picker-item[hidden] { display: none; }
.picker-empty { padding: 10px; color: var(--muted); font-size: 12.5px; }

@media (max-width: 1100px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .picker-item { flex-wrap: wrap; }
  .picker-count { width: 100%; padding-left: 25px; }
}
.btn-group { display: inline-flex; }
.btn-group > .btn + .btn { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-group > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.picker, .form-section, .profile-form { grid-template-columns: minmax(0, 1fr); }
.picker > *, .form-section > * { min-width: 0; }
@media (max-width: 760px) {
  .picker-item { display: grid; grid-template-columns: 15px minmax(0, 1fr); column-gap: 10px; }
  .picker-count { grid-column: 2; width: auto; padding-left: 0; }
}

/* Collapsible panel (<details class="panel collapsible">): the summary is the panel head, with a chevron. */
details.collapsible > summary { cursor: pointer; list-style: none; }
details.collapsible > summary::-webkit-details-marker { display: none; }
details.collapsible > summary::after { content: ""; width: 8px; height: 8px; flex: none; margin-left: auto;
  border-right: 2px solid var(--secondary); border-bottom: 2px solid var(--secondary); transform: rotate(45deg); }
details.collapsible[open] > summary::after { transform: rotate(-135deg); }
details.collapsible:not([open]) > summary { border-bottom: 0; }
details.collapsible > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
details.collapsible > summary h2 { margin: 0; }

/* Field tooltips: the ⓘ opens on hover, keyboard focus or tap (focus), and stays inside the viewport. */
.label-row { position: relative; display: flex; align-items: center; gap: 4px; }
.label-row label { margin-bottom: 3px; }
.tip { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px;
  margin: -4px 0 -1px; color: var(--primary); font-size: 13px; cursor: help; border-radius: 50%; }
.tip:focus-visible { outline: 2px solid var(--primary); }
.tooltip { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: max-content;
  max-width: min(280px, calc(100vw - 48px)); padding: 8px 10px; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.45; border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(15, 47, 79, .25); visibility: hidden; opacity: 0; pointer-events: none; }
.tip:hover + .tooltip, .tip:focus + .tooltip { visibility: visible; opacity: 1; }
/* anchor to the right edge in the right-hand columns so it never pushes past the panel */
.form-grid.cols-4 > .field:nth-child(4n) .tooltip, .form-grid.cols-4 > .field:nth-child(4n+3) .tooltip { left: auto; right: 0; }
@media (max-width: 1100px) {
  .form-grid.cols-4 > .field:nth-child(4n+3) .tooltip { left: 0; right: auto; }
  .form-grid.cols-4 > .field:nth-child(2n) .tooltip { left: auto; right: 0; }
}
@media (max-width: 760px) {
  .form-grid.cols-4 > .field .tooltip, .form-grid.cols-4 > .field:nth-child(n) .tooltip { left: 0; right: auto; }
}

/* Touch comfort: every tap target at least 24 px (WCAG 2.2 target size), and nothing pushes the page sideways. */
.chip button { min-width: 24px; min-height: 24px; }
label.checkbox { min-height: 24px; }
@media (max-width: 760px) {
  /* one column: the menu row takes only its own height, the page the rest (no stretched navy block on short pages) */
  .shell { grid-template-rows: auto minmax(0, 1fr); align-content: start; }
  /* stacked table cards: long emails, ids and values wrap instead of widening the page */
  table.stack td { overflow-wrap: anywhere; }
  table.stack td a:not(.t-link):not(.btn), .hint a, .topbar .crumbs a, .req-list a { display: inline-block; padding: 5px 0; }
  td .t-link { padding-block: 3px; }
}
