/* ARK Nexus Bytes — accessible UI (WCAG 2.2 AA). All sizes in rem so text scaling works. */
:root {
  --brand: #0B6E74;
  --bg: #F3F5F7;
  --surface: #FFFFFF;
  --ink: #14202B;
  --muted: #4A5763;
  --line: #DCE1E6;
  --line-soft: #EDF0F3;
  --field: #C3CBD3;
  --tint: #E4F1F1;
  --tint-ink: #063F42;
  --danger: #7A1F1F;
  --warn-bg: #FBEBD9;
  --warn-ink: #7A3606;
  --info-bg: #DCEBF7;
  --info-ink: #0F3A66;
  --ok: #1E5B2E;
  --neutral-bg: #E3E8ED;
  --neutral-ink: #2E3A45;
  --focus: #B4530F;
  --radius: 0.75rem;
  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
html { font-size: 100%; }
html.a11y-sz2 { font-size: 115%; }
html.a11y-sz3 { font-size: 130%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 0.9375rem; line-height: 1.5; }
a { color: #0B5E63; }
a:hover { color: #063F42; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 1.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0.5rem; }
.skip:focus { top: 0.75rem; color: #fff; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.split { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.split > .wide { flex: 999 1 34rem; min-width: 0; }
.split > .narrow { flex: 1 1 21rem; min-width: 0; }
.split > .half { flex: 1 1 26rem; min-width: 0; }

/* ---------- top bar */
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.brand-mark { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.brand img { height: 2.25rem; width: auto; }
.icon-btn { min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border: 1px solid var(--field); border-radius: 0.5rem; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.875rem; padding: 0 0.75rem; cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.user-chip { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); min-height: 2.75rem; padding-inline-end: 0.5rem; }
.avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--neutral-bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex: none; }
.avatar.lg { width: 4rem; height: 4rem; font-size: 1.35rem; }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.2; }
.user-chip .who small { color: var(--muted); font-size: 0.75rem; }

/* ---------- layout */
.layout { display: flex; flex-wrap: wrap; align-items: stretch; min-height: calc(100vh - 4.5rem); }
.sidebar { flex: 1 1 14rem; max-width: 100%; background: var(--surface); border-inline-end: 1px solid var(--line); padding: 1.25rem 0.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.nav-group { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 0 0.75rem 0.4rem; }
.nav-link { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 0.75rem; border-radius: 0.5rem; color: var(--ink); text-decoration: none; }
.nav-link svg { width: 1.1rem; height: 1.1rem; flex: none; }
.nav-link:hover { background: var(--line-soft); color: var(--ink); }
.nav-link[aria-current=page] { background: var(--tint); color: var(--tint-ink); font-weight: 700; }
.sidebar .powered { margin-top: auto; padding: 0.75rem; font-size: 0.75rem; color: var(--muted); }
.main { flex: 999 1 35rem; min-width: 0; padding: 1.75rem 2rem 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.page-head .lead { color: var(--muted); margin-top: 0.35rem; max-width: 48rem; }
.narrow-page { max-width: 30rem; margin: 3rem auto; padding: 0 1rem; }

/* ---------- cards & tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; min-width: 0; }
.card > h2 + *, .card > .row-between + * { margin-top: 0.75rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 0.3rem; }
.kpi:hover { border-color: var(--brand); color: var(--ink); }
.kpi .label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.kpi .value { font-family: var(--mono); font-size: 1.9rem; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.data th { text-align: start; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr.selected td { background: var(--tint); }
table.data td.num { font-family: var(--mono); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }
.list-plain > li:last-child { border-bottom: 0; }
dl.props { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; font-size: 0.875rem; }
dl.props dt { font-weight: 700; color: var(--muted); }
dl.props dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- pills */
.pill { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral-ink); }
.pill.open, .pill.ungraded, .pill.info { background: #fff; color: var(--ink); border: 1px solid #8A96A3; }
.pill.in_progress, .pill.a, .pill.active, .pill.claim_closed { background: var(--info-bg); color: var(--info-ink); }
.pill.waiting_parts, .pill.repair, .pill.claim_open, .pill.warning, .pill.low { background: var(--warn-bg); color: var(--warn-ink); }
.pill.overdue, .pill.danger, .pill.critical, .pill.out, .pill.failed, .pill.suspended { background: var(--danger); color: #fff; }
.pill.ok, .pill.sent, .pill.connected { background: var(--tint); color: var(--tint-ink); }
.pill.sample { background: var(--warn-bg); color: var(--warn-ink); }
.bin { font-family: var(--mono); font-weight: 600; font-size: 0.8125rem; padding: 0.15rem 0.5rem; border-radius: 0.35rem; background: var(--ink); color: #fff; display: inline-block; }
.bin.lg { font-size: 1.6rem; padding: 0.3rem 0.75rem; letter-spacing: 0.05em; }

/* ---------- forms */
label { font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field .hint { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=number],
input[type=date], input[type=datetime-local], input[type=color], select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 0.5rem; padding: 0.6rem 0.7rem; min-height: 2.75rem; width: 100%;
}
input[type=color] { padding: 0.2rem; width: 4rem; }
textarea { min-height: 7rem; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); margin: 0; flex: none; }
.check { display: flex; align-items: center; gap: 0.6rem; min-height: 2.5rem; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
fieldset { border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.75rem 1rem; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0 0.3rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; }
.btn { font: inherit; font-weight: 700; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 0.5rem; border: 1px solid var(--field); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; text-decoration: none; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(0.9); color: #fff; }
.btn.danger { border: 2px solid var(--danger); color: var(--danger); }
.btn.small { min-height: 2.25rem; padding: 0 0.75rem; font-size: 0.8125rem; }
.btn-link { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; color: #0B5E63; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 2.75rem; }
.inline { display: inline; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; align-items: end; }

/* ---------- flash */
.flashes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.flash { padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid; font-weight: 600; }
.flash.success { background: #E7F3EA; border-color: #9CC7A7; color: var(--ok); }
.flash.error { background: #F8E5E5; border-color: #D39A9A; color: var(--danger); }
.flash.info { background: var(--info-bg); border-color: #A9C7E5; color: var(--info-ink); }

/* ---------- meters (tasks by status) */
.meter-row { display: flex; flex-direction: column; gap: 0.3rem; }
meter { width: 100%; height: 0.7rem; }
meter::-webkit-meter-bar { background: var(--line-soft); border: 0; border-radius: 999px; height: 0.7rem; }
meter::-webkit-meter-optimum-value { background: var(--brand); border-radius: 999px; }
meter::-moz-meter-bar { background: var(--brand); border-radius: 999px; }
.strength { display: flex; gap: 0.25rem; }
.strength span { flex: 1; height: 0.5rem; border-radius: 999px; background: var(--neutral-bg); }
.strength[data-score="1"] span:nth-child(-n+1), .strength[data-score="2"] span:nth-child(-n+1) { background: var(--danger); }
.strength[data-score="3"] span:nth-child(-n+2) { background: var(--warn-ink); }
.strength[data-score="4"] span:nth-child(-n+3) { background: var(--info-ink); }
.strength[data-score="5"] span:nth-child(-n+4), .strength[data-score="6"] span { background: var(--ok); }
.rules li[data-ok="1"] { color: var(--ok); }
.rules li[data-ok="1"]::before { content: "✓ "; font-weight: 700; }
.rules li[data-ok="0"]::before { content: "• "; }

/* ---------- catalog */
.part-card { display: flex; gap: 0.9rem; align-items: center; padding: 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.part-card:hover { border-color: var(--brand); color: var(--ink); }
.thumb { width: 4.5rem; height: 4.5rem; flex: none; border-radius: 0.6rem; background: var(--neutral-bg); color: var(--muted); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 2rem; height: 2rem; }
.part-card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.part-card .qty { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; white-space: nowrap; }
.part-card .qty .num { font-family: var(--mono); font-size: 1.25rem; }
.hero-img { aspect-ratio: 4 / 3; border-radius: 0.6rem; background: var(--neutral-bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); }
.hero-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: 0.5rem; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.5rem; border: 2px solid transparent; }
.gallery .is-main img { border-color: var(--brand); }
.bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; }
.bin-card { border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.doc-icon { width: 2.75rem; height: 2.75rem; flex: none; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--neutral-ink); }
.doc-icon.PDF { background: var(--danger); } .doc-icon.DOC, .doc-icon.DOCX { background: #1F4FA3; }
.doc-icon.XLS, .doc-icon.XLSX, .doc-icon.CSV { background: var(--ok); } .doc-icon.MP4, .doc-icon.MOV { background: #4B3F99; }
.doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); }
.doc-row .name { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; overflow-wrap: anywhere; }
.dropzone { border: 2px dashed #8A96A3; border-radius: 0.6rem; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; background: #F8FAFB; }

/* ---------- footer, cookie banner, accessibility panel */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 1.1rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; font-size: 0.875rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.cookie-banner { position: sticky; bottom: 0; z-index: 25; background: var(--ink); color: #fff; padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.cookie-banner .text { flex: 999 1 30rem; display: flex; flex-direction: column; gap: 0.35rem; }
.cookie-banner p { color: #E3E8ED; font-size: 0.875rem; }
.cookie-banner a { color: #9FE0E3; font-weight: 600; }
.cookie-banner form { flex: 1 1 22rem; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }
.cookie-banner .btn { background: transparent; color: #fff; border: 2px solid #fff; }
.cookie-banner .btn.accept { background: #fff; color: var(--ink); }
.cookie-banner details { width: 100%; }
.a11y-panel { position: fixed; inset-inline-end: 1.5rem; top: 5rem; width: 22.5rem; max-width: calc(100% - 2rem); max-height: 80vh; overflow-y: auto; background: #fff; border: 1px solid var(--field); border-radius: var(--radius); box-shadow: 0 1rem 2.5rem rgba(20, 32, 43, 0.2); padding: 1.25rem; z-index: 30; display: flex; flex-direction: column; gap: 1rem; }
.a11y-panel[hidden] { display: none; }
.size-buttons { display: flex; gap: 0.5rem; }
.size-buttons button { flex: 1; }
.size-buttons button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.toggle-list label { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.toggle-list small { display: block; font-weight: 400; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding-top: 0.75rem; color: var(--muted); font-size: 0.875rem; flex-wrap: wrap; }
details.event > summary { cursor: pointer; font-weight: 600; color: #0B5E63; min-height: 2.25rem; display: flex; align-items: center; }
pre.json { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--line-soft); padding: 0.75rem; border-radius: 0.5rem; font-family: var(--mono); font-size: 0.8125rem; margin: 0.5rem 0 0; }
.diff del { color: var(--danger); }
.diff ins { color: var(--ok); text-decoration: none; font-weight: 600; }
.error-page { text-align: center; padding: 4rem 1rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.error-page .code { font-family: var(--mono); font-size: 3rem; color: var(--muted); }

/* ---------- accessibility modes (set from the accessibility menu) */
html.a11y-ul a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-rf body, html.a11y-rf input, html.a11y-rf select, html.a11y-rf textarea, html.a11y-rf button { font-family: Verdana, Tahoma, sans-serif !important; letter-spacing: 0.02em; line-height: 1.65; }
html.a11y-rm *, html.a11y-rm *::before, html.a11y-rm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-hc body, html.a11y-hc .card, html.a11y-hc .topbar, html.a11y-hc .sidebar, html.a11y-hc .footer, html.a11y-hc .kpi,
html.a11y-hc .part-card, html.a11y-hc input, html.a11y-hc select, html.a11y-hc textarea, html.a11y-hc .btn, html.a11y-hc .icon-btn,
html.a11y-hc .a11y-panel, html.a11y-hc .bin-card, html.a11y-hc .dropzone, html.a11y-hc .hero-img, html.a11y-hc .thumb, html.a11y-hc table.data td {
  background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important;
}
html.a11y-hc a, html.a11y-hc .btn-link, html.a11y-hc .nav-link[aria-current=page] { color: #FFE600 !important; background: #000 !important; }
html.a11y-hc .muted, html.a11y-hc .hint, html.a11y-hc .nav-title, html.a11y-hc th, html.a11y-hc .kpi .label { color: #fff !important; }
html.a11y-hc .pill, html.a11y-hc .bin, html.a11y-hc .brand-mark { background: #fff !important; color: #000 !important; }
html.a11y-hc .btn.primary { background: #FFE600 !important; color: #000 !important; }

@media (max-width: 40rem) {
  .main { padding: 1.25rem 1rem 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .sidebar, .topbar, .footer, .cookie-banner, .a11y-panel, .actions, .btn { display: none !important; } }
.pre-line { white-space: pre-line; }
input.w-qty { width: 7rem; }
.hero-img .stack-sm { align-items: center; }
.hero-img svg { width: 3.5rem; height: 3.5rem; }
.legal { max-width: 52rem; margin: 2rem auto 3rem; padding: 0 1rem; }
.legal ul { margin: 0; padding-inline-start: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
img.logo-preview { height: 3rem; width: auto; }
ol.stack-sm { margin: 0; padding-inline-start: 1.25rem; }

/* ---------- document viewer */
dialog.viewer { width: min(64rem, calc(100vw - 2rem)); height: min(85vh, 60rem); padding: 0; border: 1px solid var(--field); border-radius: var(--radius); box-shadow: 0 1.5rem 3rem rgba(20, 32, 43, 0.3); }
dialog.viewer[open] { display: flex; flex-direction: column; }
dialog.viewer::backdrop { background: rgba(20, 32, 43, 0.6); }
.viewer-head { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.viewer-head h2 { font-size: 1rem; overflow-wrap: anywhere; }
.viewer-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--line-soft); }
.viewer-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-body p { padding: 2rem; }
/* ---------- history timeline */
ol.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
ol.timeline > li { position: relative; padding: 0.4rem 0 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
ol.timeline > li::before { content: ""; position: absolute; inset-inline-start: -0.4rem; top: 0.65rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--brand); }
[dir=rtl] ol.timeline > li { padding: 0.4rem 1rem 0.9rem 0; }
/* ---------- right-to-left (Hebrew) */
[dir=rtl] .mono, [dir=rtl] .num, [dir=rtl] .bin, [dir=rtl] input[type=email], [dir=rtl] .json { direction: ltr; unicode-bidi: isolate; }
[dir=rtl] .num { text-align: right; }
[dir=rtl] .pagination, [dir=rtl] .row-between { direction: rtl; }
html[lang=zh] body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", var(--font); }
html[lang=he] body { font-family: "Segoe UI", Arial, "Noto Sans Hebrew", var(--font); }

/* ---------- two-step verification */
input.code-input { font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.3em; max-width: 12rem; text-align: center; direction: ltr; }
img.qr { width: 15rem; height: 15rem; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; }
p.secret { font-size: 1.1rem; word-spacing: 0.3em; overflow-wrap: anywhere; direction: ltr; }
ol.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
ul.recovery-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.5rem; }
ul.recovery-codes li { padding: 0.6rem 0.8rem; border: 1px dashed var(--field); border-radius: 0.5rem; font-size: 1.05rem; direction: ltr; text-align: center; }
details > summary.btn-link { list-style: none; }
.rules.list-plain > li { justify-content: flex-start; gap: 0.4rem; padding: 0.35rem 0; }

/* ---------- fault code lists */
.fault-card { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line-soft); color: var(--ink); text-decoration: none; }
.fault-card:hover { border-color: var(--brand); }
.fault-card .name { flex: 1 1 14rem; display: flex; flex-direction: column; gap: 0.15rem; }
.doc-icon.FAULT { background: var(--warn-ink); }
.doc-icon svg { width: 1.4rem; height: 1.4rem; }
.fault-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tab { font: inherit; font-weight: 600; padding: 0.45rem 0.85rem; border: 1px solid var(--field); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.tab .count { display: inline-block; min-width: 1.6rem; margin-inline-start: 0.3rem; padding: 0 0.4rem; border-radius: 999px; background: var(--line-soft); font-size: 0.8rem; }
.tab[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab[aria-pressed="true"] .count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.fault-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.fault-tools .grow { flex: 1 1 18rem; }
.fault-code { font-size: 1.05rem; }
.viewer-body.scroll { display: block; overflow: auto; padding: 1rem; background: var(--surface, #fff); }
.fault-viewer .fault-table { max-height: none; }
html.a11y-hc .tab[aria-pressed="true"] { background: #000; color: #fff; }

/* ---------- header: one clean row + a slim data-scope bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.topbar-main { display: flex; align-items: center; gap: 0.75rem 1.25rem; padding: 0.6rem 1.5rem; min-height: 4rem; }
.brand { flex: none; }
.brand-name { white-space: nowrap; }
.top-search { flex: 1 1 18rem; max-width: 34rem; position: relative; display: flex; align-items: center; }
.top-search svg { position: absolute; inset-inline-start: 0.75rem; width: 1.1rem; height: 1.1rem; color: var(--muted); pointer-events: none; }
.top-search input { width: 100%; min-height: 2.6rem; padding-inline-start: 2.4rem; border-radius: 999px; background: var(--bg); }
.tools { display: flex; align-items: center; gap: 0.4rem; margin-inline-start: auto; flex: none; }
.tools .icon-btn { min-height: 2.6rem; min-width: 2.6rem; }
.tools form { margin: 0; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg:last-child { width: 0.9rem; height: 0.9rem; }
.menu[open] > summary { border-color: var(--brand); }
.menu-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 0.35rem); min-width: 11rem; background: var(--surface); border: 1px solid var(--field); border-radius: 0.6rem; box-shadow: 0 0.75rem 2rem rgba(20, 32, 43, 0.18); padding: 0.35rem; display: flex; flex-direction: column; z-index: 40; }
.menu-panel button { font: inherit; text-align: start; padding: 0.55rem 0.75rem; border: 0; background: none; border-radius: 0.4rem; cursor: pointer; color: var(--ink); min-height: 2.5rem; }
.menu-panel button:hover, .menu-panel button:focus-visible { background: var(--tint); }
.menu-panel button[aria-current="true"] { font-weight: 700; background: var(--line-soft); }
.scope-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; padding: 0.45rem 1.5rem; background: var(--line-soft); border-top: 1px solid var(--line); font-size: 0.85rem; }
.scope-title { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--muted); }
.scope-title svg { width: 1rem; height: 1rem; }
.scope-bar label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--muted); }
.scope-bar select { min-height: 2.25rem; padding-block: 0.2rem; font-size: 0.85rem; width: auto; max-width: 14rem; background-color: var(--surface); }
.scope-bar .btn.small { min-height: 2.25rem; }
@media (max-width: 75rem) { .hide-md { display: none; } }
@media (max-width: 48rem) {
  .topbar-main { flex-wrap: wrap; padding: 0.6rem 1rem; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; }
  .hide-sm { display: none; }
  .scope-bar { padding: 0.5rem 1rem; }
  .scope-bar label { flex: 1 1 100%; justify-content: space-between; }
  .scope-bar select { flex: 1; max-width: none; }
}
html.a11y-hc .scope-bar, html.a11y-hc .menu-panel { background: #fff; border-color: #000; }

/* ---------- notices (import checks) */
.notice { padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.notice.error { background: #FBE9E9; border-color: var(--danger); color: var(--danger); }
.notice.warning { background: var(--warn-bg); border-color: var(--warn-ink); color: var(--warn-ink); }
.notice.info { background: var(--info-bg); border-color: var(--info-ink); color: var(--info-ink); }
.main > .notice { margin-bottom: 1rem; }

/* ---------- Nexus AI assistant (bottom corner) */
.nexus { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 35; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.nexus-fab { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3.25rem; padding: 0 1.25rem 0 1rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--brand), #14202B); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 0.75rem 1.75rem rgba(20, 32, 43, 0.3); cursor: pointer; }
.nexus-fab svg { width: 1.35rem; height: 1.35rem; }
.nexus-fab:hover { filter: brightness(1.1); }
.nexus.is-open .nexus-fab { display: none; }
.nexus-panel { width: min(25rem, calc(100vw - 2rem)); height: min(36rem, calc(100vh - 6rem)); background: var(--surface); border: 1px solid var(--field); border-radius: 1rem; box-shadow: 0 1.5rem 3rem rgba(20, 32, 43, 0.3); display: flex; flex-direction: column; overflow: hidden; }
.nexus-panel[hidden] { display: none; }
.nexus-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.85rem; background: linear-gradient(135deg, var(--brand), #14202B); color: #fff; }
.nexus-head h2 { font-size: 1rem; margin: 0; color: #fff; }
.nexus-head p { margin: 0; opacity: 0.9; }
.nexus-head > div { flex: 1; min-width: 0; }
.nexus-badge { width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; background: rgba(255, 255, 255, 0.18); display: inline-flex; align-items: center; justify-content: center; }
.nexus-badge svg { width: 1.3rem; height: 1.3rem; }
.nexus-icon { min-width: 2.5rem; min-height: 2.5rem; border: 0; border-radius: 0.5rem; background: transparent; color: #fff; font: inherit; font-size: 1.15rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nexus-icon:hover { background: rgba(255, 255, 255, 0.15); }
.nexus-icon svg { width: 1.15rem; height: 1.15rem; }
.nexus-log { flex: 1; overflow-y: auto; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--bg); }
.nexus-msg { max-width: 88%; padding: 0.6rem 0.8rem; border-radius: 0.9rem; font-size: 0.9rem; line-height: 1.45; overflow-wrap: anywhere; }
.nexus-msg p { margin: 0; min-height: 0.4rem; }
.nexus-msg.bot { background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 0.25rem; align-self: flex-start; }
.nexus-msg.user { background: var(--brand); color: #fff; border-end-end-radius: 0.25rem; align-self: flex-end; }
.nexus-msg.thinking { color: var(--muted); font-style: italic; }
.nexus-links { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.nexus-links a { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.nexus-links a:hover { text-decoration: underline; }
.nexus-suggest { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.nexus-suggest[hidden] { display: none; }
.nexus-suggest button { font: inherit; font-size: 0.82rem; text-align: start; padding: 0.4rem 0.7rem; border: 1px solid var(--field); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.nexus-suggest button:hover { border-color: var(--brand); }
.nexus-form { display: flex; gap: 0.5rem; align-items: flex-end; padding: 0.65rem; border-top: 1px solid var(--line); background: var(--surface); }
.nexus-form textarea { flex: 1; resize: none; min-height: 2.75rem; max-height: 8.75rem; padding: 0.6rem 0.75rem; border-radius: 0.75rem; font-size: 0.9rem; }
.nexus-send { min-width: 2.75rem; min-height: 2.75rem; border: 0; border-radius: 0.75rem; background: var(--brand); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nexus-send svg { width: 1.2rem; height: 1.2rem; }
[dir="rtl"] .nexus-send svg { transform: scaleX(-1); }
.footer { padding-inline-end: 11rem; }
@media (max-width: 40rem) { .nexus { inset-inline-end: 0.75rem; bottom: 0.75rem; } .nexus-fab span { display: none; } .nexus-fab { padding: 0 1rem; } .footer { padding-inline-end: 1rem; padding-bottom: 5rem; } }
@media print { .nexus { display: none !important; } }
html.a11y-hc .nexus-head, html.a11y-hc .nexus-fab, html.a11y-hc .nexus-msg.user, html.a11y-hc .nexus-send { background: #000; color: #fff; }
.viewer-body.scroll p { padding: 0; }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; vertical-align: middle; }
.btn { gap: 0.4rem; }

/* ---------- Support (public) and Customer service */
.support-page { max-width: 46rem; margin: 2.5rem auto; padding: 0 1rem; }
.support-form-card h1 { font-size: 2rem; margin: 0; }
.stack-tight { display: flex; flex-direction: column; gap: 0.35rem; }
.support-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.support-step legend { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; padding: 0 0.35rem; }
.support-step.primary-step { border: 2px solid var(--brand); background: var(--tint); }
.support-step.primary-step p { margin: 0; color: var(--tint-ink); }
.step-no { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.step-no.dark { background: var(--neutral-ink); }
.phone-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.phone-row select { width: auto; }
.phone-row input { flex: 1 1 12rem; font-family: var(--mono); font-size: 1.15rem; min-height: 3.1rem; }
.primary-step .phone-row select { min-height: 3.1rem; font-size: 1.05rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn.big { min-height: 3.1rem; padding: 0 1.75rem; font-size: 1rem; }
.support-done { text-align: center; padding: 2.5rem 1.5rem; }
.nav-badge { min-width: 1.4rem; height: 1.4rem; padding: 0 0.4rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-link .grow, .grow { flex: 1; min-width: 0; }
.inbox { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; margin-top: 1rem; }
.inbox-list { list-style: none; margin: 0; padding: 0; flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.inbox-item { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.inbox-item:hover { border-color: var(--brand); }
.inbox-item.active { border: 2px solid var(--brand); }
.inbox-item .pill { align-self: flex-start; }
.tint-text { color: var(--tint-ink); font-weight: 600; }
.inbox-detail { flex: 2 1 32rem; min-width: 0; }
.msg-head { align-items: flex-start; gap: 0.9rem; }
.msg-title { font-size: 1.15rem; font-weight: 600; margin: 0; }
.client-msg { margin: 0; padding: 1rem 1.1rem; border-radius: 0.6rem; background: var(--bg); font-size: 1.02rem; line-height: 1.55; }
.hint-chip { display: inline-block; padding: 0.35rem 0.7rem; border-radius: 0.5rem; background: var(--info-bg); color: var(--info-ink); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.hint-chip.neutral { background: var(--line-soft); color: var(--neutral-ink); }
.row.wrap { flex-wrap: wrap; }
.ask-task { border: 2px solid var(--brand); border-radius: var(--radius); padding: 1.2rem; }
.ask-task h3 { margin: 0; font-size: 1.15rem; }
.field.span-2 { grid-column: 1 / -1; }
.card-sub { border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.75rem 1rem; }
.card-sub summary { cursor: pointer; font-weight: 600; }
a.tab { text-decoration: none; display: inline-flex; align-items: center; }
.search-inline input[type=search] { width: 15rem; max-width: 100%; }

/* ---------- landing page */
.landing { max-width: 76rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; display: flex; flex-direction: column; gap: 3rem; }
.lp-hero { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; }
.lp-hero-text { flex: 999 1 30rem; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.lp-eyebrow { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.lp-hero h1 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.1; letter-spacing: -0.02em; }
.lp-lead { margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 40rem; }
.lp-checks { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; font-weight: 600; }
.lp-checks li { display: flex; gap: 0.6rem; align-items: center; }
.lp-checks li::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--brand); flex: none; }
.lp-access { flex: 1 1 22rem; min-width: 0; border-top: 4px solid var(--brand); box-shadow: 0 1.25rem 2.5rem rgba(20, 32, 43, 0.12); }
.lp-access h2 { margin: 0; }
.lp-access .btn.big { width: 100%; justify-content: center; }
.lp-features h2, .lp-band h2 { margin: 0 0 1.25rem; font-size: 1.6rem; }
.lp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.lp-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.lp-grid h3 { margin: 0; font-size: 1.1rem; }
.lp-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.lp-icon { width: 2.6rem; height: 2.6rem; border-radius: 0.6rem; background: var(--tint); color: var(--tint-ink); display: inline-flex; align-items: center; justify-content: center; }
.lp-icon svg { width: 1.35rem; height: 1.35rem; }
.lp-band { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 1rem; padding: 2rem; }
.lp-band > div { flex: 1 1 28rem; }
.lp-band h2 { margin-bottom: 0.5rem; color: #fff; }
.lp-band p { margin: 0; color: #D5DCE3; line-height: 1.6; }
.btn.lp-band-btn { background: #fff; color: var(--ink); border-color: #fff; }
html.a11y-hc .lp-band { background: #000; }
.login-tagline { margin: 0; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ---------- default ARK Nexus Bytes logo (wide, light theme) */
.brand img.brand-logo-wide { height: 2.9rem; width: auto; }
.brand:has(.brand-logo-wide) .brand-name { font-weight: 600; color: var(--muted); padding-inline-start: 0.6rem; border-inline-start: 1px solid var(--line); }
.lp-logo { width: min(22rem, 70%); height: auto; margin-bottom: 0.5rem; }
.login-logo { width: 13rem; height: auto; align-self: center; }

/* ---------- mobile & tablet: drawer menu, bottom tab bar, collapsible scope */
.nav-toggle, .mobile-only, .scope-summary { display: none; }
.scope-details > summary { list-style: none; }
.scope-details > summary::-webkit-details-marker { display: none; }
.nav-button { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: start; }
@media (max-width: 64rem) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex; }
  .nav-toggle { display: inline-flex; }
  .topbar { position: sticky; top: 0; z-index: 40; }
  .topbar-main { flex-wrap: nowrap; gap: 0.5rem; padding: 0.4rem 0.75rem; min-height: 3.5rem; }
  .brand img { height: 2rem; }
  .brand img.brand-logo-wide { height: 2.3rem; }
  .brand .brand-name { display: none; }
  .tools { gap: 0.25rem; }
  .user-chip .who { display: none; }

  /* data scope: one tappable line that opens the filters */
  .scope-summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem; min-height: 2.75rem;
    background: var(--line-soft); border-top: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
  .scope-summary .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .scope-summary svg { width: 1rem; height: 1rem; flex: none; }
  .scope-details[open] .scope-summary svg:last-child { transform: rotate(180deg); }
  .scope-bar { display: grid; grid-template-columns: 1fr; gap: 0.6rem; padding: 0.75rem 0.9rem 0.9rem; border-top: 0; }
  .scope-bar .scope-title { display: none; }
  .scope-bar label { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; }
  .scope-bar select { max-width: none; width: 100%; min-height: 2.6rem; font-size: 1rem; }
  .scope-bar .btn.small { min-height: 2.75rem; width: 100%; }

  /* side menu becomes a slide-in drawer */
  .layout { display: block; min-height: 0; }
  .sidebar { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(19rem, 86vw); z-index: 70; overflow-y: auto;
    overscroll-behavior: contain; padding: 0 0.75rem 1.5rem; gap: 1rem; border-inline-end: 0;
    box-shadow: 0 0 2.5rem rgba(20, 32, 43, 0.3); transform: translateX(-105%); transition: transform 0.22s ease; visibility: hidden; }
  [dir=rtl] .sidebar { transform: translateX(105%); }
  html.nav-open .sidebar { transform: none; visibility: visible; }
  html.nav-open, html.nav-open body { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(20, 32, 43, 0.45); }
  .drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
    gap: 0.5rem; padding: 0.6rem 0.25rem; margin: 0 -0.75rem; padding-inline: 0.75rem; background: var(--surface); border-bottom: 1px solid var(--line); }
  .drawer-search { position: relative; align-items: center; }
  .drawer-search svg { position: absolute; inset-inline-start: 0.75rem; width: 1.1rem; height: 1.1rem; color: var(--muted); pointer-events: none; }
  .drawer-search input { width: 100%; min-height: 2.75rem; padding-inline-start: 2.4rem; border-radius: 999px; background: var(--bg); font-size: 1rem; }
  .nav-group.mobile-only { flex-direction: column; }
  .nav-link { min-height: 3rem; font-size: 1rem; }
  .drawer-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem 0.5rem; }
  .drawer-lang svg { width: 1.1rem; height: 1.1rem; color: var(--muted); margin-inline-end: 0.25rem; }
  .drawer-lang button { font: inherit; font-size: 0.85rem; padding: 0.4rem 0.7rem; min-height: 2.25rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
  .drawer-lang button[aria-current="true"] { background: var(--tint); color: var(--tint-ink); border-color: var(--brand); font-weight: 700; }

  /* bottom tab bar for the daily screens */
  .tabbar { position: fixed; bottom: 0; inset-inline: 0; z-index: 45; display: flex; justify-content: space-around;
    background: var(--surface); border-top: 1px solid var(--line); padding: 0.25rem 0.25rem calc(0.25rem + env(safe-area-inset-bottom));
    box-shadow: 0 -0.25rem 1.25rem rgba(20, 32, 43, 0.08); }
  .tabbar a, .tabbar button { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.15rem; min-height: 3.4rem; border: 0; background: none; border-radius: 0.6rem; color: var(--muted); text-decoration: none;
    font: inherit; font-size: 0.7rem; font-weight: 600; cursor: pointer; }
  .tabbar svg { width: 1.35rem; height: 1.35rem; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar [aria-current=page] { color: var(--brand); background: var(--tint); }
  .tab-dot { position: absolute; top: 0.45rem; inset-inline-end: calc(50% - 1rem); width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #C0392B; box-shadow: 0 0 0 2px var(--surface); }
  body { padding-bottom: calc(4.1rem + env(safe-area-inset-bottom)); }
  .nexus { bottom: calc(4.9rem + env(safe-area-inset-bottom)) !important; }
  .footer { padding-inline-end: 1rem; }
  .cookie-banner { bottom: calc(4.1rem + env(safe-area-inset-bottom)); }

  /* content */
  .main { padding: 1rem 0.9rem 2rem; gap: 1rem; }
  .page-head { align-items: stretch; }
  .page-head h1 { font-size: 1.6rem; }
  .page-head .actions, .page-head > .btn, .page-head > a.btn { width: 100%; }
  .card { overflow-x: auto; }
  input, select, textarea { font-size: 1rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .kpi { padding: 0.75rem 0.85rem; }
  .table-wrap th, .table-wrap td, .card > table th, .card > table td { white-space: nowrap; }
  .nexus-fab { min-height: 3rem; }
}
html.a11y-hc .tabbar, html.a11y-hc .drawer-head, html.a11y-hc .scope-summary { background: #000; color: #fff; border-color: #fff; }
@media print { .tabbar, .nav-backdrop, .scope-summary { display: none !important; } }
