/* ═══════════════════════════════════════════════════════════════════════════
   Swiss · app — the application kit. Mobile first, dark by default.
   Tokens derive from the design system (--accent, fonts) plus the app scale.
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --a-bg: #0e1116; --a-surface: #161b23; --a-surface-2: #1f2630; --a-border: #2a3140; --a-text: #e9ebef; --a-text-2: #9aa3b2; --a-primary: #2f55c8; --a-primary-ink: #ffffff; --a-logo-h: 28px; --a-success: #54c79a; --a-warning: #e0bd52; --a-danger: #e2696f; --a-medium: #9aa3b2; --a-radius: 10px; --a-fs: 16px; --a-gap: 12px; --a-header-h: 52px; --a-tabs-h: 58px; --a-shadow: 0 10px 40px rgba(0,0,0,.45); --a-safe-b: env(safe-area-inset-bottom, 0px); --a-safe-t: env(safe-area-inset-top, 0px); --a-max: 1180px; }
[data-scheme="light"] { --a-primary: #1e3a8a; --a-bg: #f4f4f2; --a-surface: #ffffff; --a-surface-2: #ececea; --a-border: #dcdcd8; --a-text: #111111; --a-text-2: #6b6b6b; --a-primary-ink: #ffffff; --a-success: #1f8a5b; --a-warning: #c48a00; --a-danger: #b3261e; --a-medium: #8a8a8a; --a-shadow: 0 10px 40px rgba(0,0,0,.18); }
body[data-mode="app"] { background: var(--a-bg); color: var(--a-text); font-family: var(--font-body); font-size: var(--a-fs); line-height: 1.4; margin: 0; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
body[data-mode="app"] .swiss-bar { display: none; }
.a-root { min-height: 100vh; min-height: 100dvh; }
.a-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; position: relative; }
.a-main { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.a-hidden { display: none !important; }
.a-tap { cursor: pointer; user-select: none; }
.a-icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; } .a-icon-text { font-size: 18px; line-height: 1; }
.a-icon-wrap { display: inline-flex; align-items: center; justify-content: center; } .a-icon-wrap.large .a-icon { width: 32px; height: 32px; } .a-icon-wrap.small .a-icon { width: 16px; height: 16px; }
.c-primary { --c: var(--a-primary); } .c-success { --c: var(--a-success); } .c-warning { --c: var(--a-warning); } .c-danger { --c: var(--a-danger); } .c-medium { --c: var(--a-medium); } .c-light { --c: var(--a-surface-2); } .c-dark { --c: var(--a-text); }

/* ── page: header, content, footer ─────────────────────────────────────── */
.a-page { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; animation: a-page-in .22s ease-out; }
@keyframes a-page-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.a-header { position: sticky; top: 0; z-index: 10; background: var(--a-surface); border-bottom: 1px solid var(--a-border); padding-top: var(--a-safe-t); }
.a-header.translucent { background: color-mix(in srgb, var(--a-surface) 80%, transparent); backdrop-filter: blur(14px); }
.a-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: var(--a-header-h); padding: 0 6px; gap: 4px; }
.a-toolbar-start, .a-toolbar-end { display: flex; align-items: center; gap: 2px; min-width: 40px; } .a-toolbar-end { justify-content: flex-end; }
.a-toolbar-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.a-toolbar-title.large { opacity: 0; } .a-large-title { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 12px; line-height: 1.05; }
.a-header .a-searchbar { margin: 0 12px 10px; } .a-header .a-segment { margin: 0 12px 10px; }
.a-header[class*="c-"] { background: var(--c); color: var(--a-primary-ink); border-bottom: 0; } .a-header[class*="c-"] .a-button.clear { color: inherit; }
.a-content { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; position: relative; }
.a-content.padded .a-content-inner { padding: 14px 14px calc(24px + var(--a-safe-b)); }
.a-content-inner { max-width: var(--a-max); margin: 0 auto; }
.a-footer { border-top: 1px solid var(--a-border); background: var(--a-surface); padding: 8px 12px calc(8px + var(--a-safe-b)); }
.a-content-inner > * + * { margin-top: var(--a-gap); }

/* ── text, headings, labels ───────────────────────────────────────────── */
.a-text p { margin: 0 0 .7em; } .a-text p:last-child { margin-bottom: 0; } .a-text h1, .a-text h2, .a-text h3 { font-family: var(--font-display); margin: .8em 0 .3em; letter-spacing: -0.02em; } .a-text h2 { font-size: 22px; } .a-text h3 { font-size: 18px; } .a-text ul, .a-text ol { padding-left: 1.3em; } .a-text a { color: var(--a-primary); text-decoration: underline; } .a-text code { background: var(--a-surface-2); padding: 1px 5px; border-radius: 4px; font-family: var(--font-mono); font-size: .9em; } .a-text blockquote { border-left: 3px solid var(--a-primary); margin: .6em 0; padding-left: 12px; color: var(--a-text-2); }
.a-heading h1, .a-heading h2, .a-heading h3, .a-heading h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin: 0; } .a-heading h1 { font-size: 34px; } .a-heading h2 { font-size: 26px; } .a-heading h3 { font-size: 20px; } .a-heading h4 { font-size: 17px; } .a-heading.xl h1 { font-size: clamp(40px, 9vw, 72px); }
.a-label { font-family: var(--font-display); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--a-text-2); font-weight: 600; }
.a-dek { color: var(--a-text-2); margin: 6px 0 0; font-size: 15px; line-height: 1.4; }
.a-note { color: var(--a-text-2); font-size: 13px; }
.a-hero { padding: 24px 0 12px; } .a-hero-word { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 13vw, 120px); line-height: .92; letter-spacing: -0.04em; margin: 8px 0; } .a-hero.sm .a-hero-word { font-size: clamp(32px, 8vw, 64px); } .a-hero .a-dek { max-width: 40em; font-size: 17px; } .a-hero .a-buttons { margin-top: 18px; }

/* ── buttons, badges, chips ───────────────────────────────────────────── */
.a-button { --c: var(--a-primary); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--font-display); letter-spacing: 0; min-height: 44px; padding: 0 18px; border-radius: var(--a-radius); border: 1.5px solid transparent; background: var(--c); color: var(--a-primary-ink); cursor: pointer; transition: transform .08s, opacity .15s, background .15s; white-space: nowrap; }
.a-button:active { transform: scale(.97); } .a-button:disabled { opacity: .45; cursor: default; }
.a-button.outline { background: transparent; color: var(--c); border-color: var(--c); } .a-button.clear { background: transparent; color: var(--c); padding: 0 8px; min-width: 40px; }
.a-button.c-light { color: var(--a-text); } .a-button.c-dark { color: var(--a-bg); } .a-button.c-warning { color: #111; }
.a-button.expand { display: flex; width: 100%; } .a-button.small { min-height: 32px; padding: 0 12px; font-size: 13px; } .a-button.small .a-icon { width: 16px; height: 16px; } .a-button.large { min-height: 52px; font-size: 17px; padding: 0 24px; } .a-button.round { border-radius: 999px; }
.a-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a-badge { --c: var(--a-primary); display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--c); color: var(--a-primary-ink); font: 700 12px/1 var(--font-display); font-variant-numeric: tabular-nums; } .a-badge.c-light, .a-badge.c-medium { color: var(--a-text); } .a-badge.c-warning { color: #111; }
.a-chip { --c: var(--a-surface-2); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--c); color: var(--a-text); font-size: 14px; border: 1px solid transparent; } .a-chip.outline { background: transparent; border-color: var(--a-border); } .a-chip.c-primary, .a-chip.c-success, .a-chip.c-danger, .a-chip.c-warning { color: var(--a-primary-ink); } .a-chip.c-warning { color: #111; } .a-chip .a-icon { width: 16px; height: 16px; } .a-chip-close { opacity: .7; } .a-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--a-surface-2); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; } .a-avatar img { width: 100%; height: 100%; object-fit: cover; } .a-avatar.small { width: 28px; height: 28px; } .a-avatar.large { width: 64px; height: 64px; } .a-initials { font: 700 14px var(--font-display); color: var(--a-primary); }
.a-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; } .a-thumb img { width: 100%; height: 100%; object-fit: cover; }
.a-spinner { width: 20px; height: 20px; border: 2.5px solid var(--a-border); border-top-color: var(--c, var(--a-primary)); border-radius: 50%; animation: a-spin .8s linear infinite; display: inline-block; } .a-spinner.large { width: 32px; height: 32px; } @keyframes a-spin { to { transform: rotate(360deg); } }
.a-progress { --c: var(--a-primary); height: 4px; background: var(--a-surface-2); border-radius: 2px; overflow: hidden; } .a-progress i { display: block; height: 100%; background: var(--c); transition: width .3s; } .a-progress.indeterminate i { width: 30%; animation: a-indet 1.2s infinite linear; } @keyframes a-indet { from { transform: translateX(-100%); } to { transform: translateX(400%); } }
.a-skeleton { display: grid; gap: 10px; padding: 8px 0; } .a-skel-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--a-surface-2) 25%, var(--a-border) 50%, var(--a-surface-2) 75%); background-size: 200% 100%; animation: a-shimmer 1.4s infinite; } @keyframes a-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── lists and items ──────────────────────────────────────────────────── */
.a-list { background: var(--a-surface); border-radius: var(--a-radius); overflow: hidden; border: 1px solid var(--a-border); }
.a-list.inset { margin: 0 0 var(--a-gap); } .a-list.no-lines .a-item { border-bottom: 0; } .a-list > .a-list-header:first-child { border-radius: var(--a-radius) var(--a-radius) 0 0; }
.a-list-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px; font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--a-text-2); }
.a-content-inner > .a-list-header { padding-left: 2px; }
.a-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-bottom: 1px solid var(--a-border); background: var(--a-surface); color: inherit; position: relative; }
.a-item:last-child { border-bottom: 0; } .a-item.full-lines { border-bottom: 1px solid var(--a-border); } .a-item.no-lines { border-bottom: 0; }
.a-item.a-tap:active { background: var(--a-surface-2); } .a-item.on { background: color-mix(in srgb, var(--a-primary) 14%, var(--a-surface)); }
.a-item-start { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--a-text-2); } .a-item.on .a-item-start, .a-item.on .a-item-label { color: var(--a-primary); }
.a-item-body { flex: 1 1 auto; min-width: 0; } .a-item-label { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .a-item-label.wrap { white-space: normal; } .a-item-text { color: var(--a-text-2); font-size: 14px; margin-top: 2px; } .a-item-note { font-size: 12px; color: var(--a-text-2); margin-top: 2px; }
.a-item-end { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--a-text-2); } .a-detail { width: 18px; height: 18px; opacity: .55; }
.a-item-group { border-radius: var(--a-radius); overflow: hidden; }
.a-divider { display: flex; align-items: center; gap: 10px; padding: 8px 14px 4px; font: 600 12px var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--a-text-2); background: var(--a-bg); } .a-divider:empty { height: 1px; padding: 0; background: var(--a-border); }
.a-empty { padding: 28px 14px; text-align: center; color: var(--a-text-2); }
.a-sliding { position: relative; overflow: hidden; } .a-sliding .a-item { transition: transform .2s; } .a-sliding.open .a-item { transform: translateX(-150px); } .a-sliding-options { position: absolute; right: 0; top: 0; bottom: 0; display: flex; width: 150px; visibility: hidden; } .a-sliding.open .a-sliding-options { visibility: visible; } .a-sliding-opt { --c: var(--a-surface-2); flex: 1; border: 0; background: var(--c); color: var(--a-primary-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 600 12px var(--font-display); cursor: pointer; } .a-sliding-opt.c-light { color: var(--a-text); } .a-sliding-more { border: 0; background: none; color: var(--a-text-2); cursor: pointer; padding: 4px; }

/* ── cards, grids, panels ─────────────────────────────────────────────── */
.a-card { --c: transparent; background: var(--a-surface); border: 1px solid var(--a-border); border-radius: var(--a-radius); overflow: hidden; display: flex; flex-direction: column; } .a-card.flat { border: 0; background: var(--a-surface-2); }
.a-card[class*="c-"] { background: var(--c); color: var(--a-primary-ink); border: 0; } .a-card[class*="c-"] .a-label, .a-card[class*="c-"] .a-card-subtitle { color: inherit; opacity: .8; }
.a-card-media img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.a-card-header { padding: 14px 16px 0; } .a-card-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1.15; } .a-card-subtitle { color: var(--a-text-2); font-size: 13px; margin-top: 2px; }
.a-card-content { padding: 10px 16px 16px; color: var(--a-text-2); font-size: 15px; } .a-card-content p { margin: 0 0 .5em; } .a-card-content p:last-child { margin: 0; }
.a-card-body { padding: 12px 16px 16px; display: grid; gap: 10px; } .a-card-body:first-child { padding-top: 16px; }
.a-card-actions { display: flex; gap: 6px; padding: 0 10px 10px; flex-wrap: wrap; }
.a-cards { display: grid; gap: var(--a-gap); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.a-grid { display: grid; gap: var(--a-gap); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.a-row { display: flex; flex-wrap: wrap; gap: var(--a-gap); } .a-col { flex: 1 1 0; min-width: 0; }
.a-panel { display: grid; gap: var(--a-gap); } .a-panel.inset { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: var(--a-radius); padding: 12px 14px; }
.a-banner { --c: var(--a-surface-2); display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--a-radius); background: color-mix(in srgb, var(--c) 22%, var(--a-surface)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); font-size: 14px; } .a-banner > div { flex: 1; } .a-banner b { display: block; font-family: var(--font-display); margin-bottom: 2px; } .a-banner .a-icon { color: var(--c); margin-top: 1px; }
.a-stat { --c: var(--a-text); background: var(--a-surface); border: 1px solid var(--a-border); border-radius: var(--a-radius); padding: 14px; } .a-stat-value { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; } .a-stat-value small { font-size: .5em; margin-left: 2px; font-weight: 600; } .a-stat-label { color: var(--a-text-2); font-size: 13px; margin-top: 6px; } .a-stat-delta { font-size: 12px; font-weight: 600; margin-top: 4px; } .a-stat-delta.up { color: var(--a-success); } .a-stat-delta.down { color: var(--a-danger); }
.a-stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; } .a-kv .k { color: var(--a-text-2); } .a-kv .v { font-weight: 500; }
.a-accordion { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: var(--a-radius); overflow: hidden; } .a-acc-item + .a-acc-item { border-top: 1px solid var(--a-border); } .a-acc-item summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer; font-weight: 500; } .a-acc-item summary::-webkit-details-marker { display: none; } .a-acc-item summary span { flex: 1; } .a-acc-chev { transition: transform .2s; color: var(--a-text-2); } .a-acc-item[open] .a-acc-chev { transform: rotate(180deg); } .a-acc-body { padding: 0 14px 14px; color: var(--a-text-2); font-size: 15px; display: grid; gap: 10px; }
.a-img { margin: 0; } .a-img img { width: 100%; display: block; } .a-img.rounded img { border-radius: var(--a-radius); } .a-img figcaption { font-size: 12px; color: var(--a-text-2); margin-top: 6px; }
.a-spacer { height: 16px; }
.a-doc { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: var(--a-radius); padding: 14px; --paper: var(--a-surface); --ink: var(--a-text); --ink-2: var(--a-text-2); --muted: var(--a-text-2); --line: var(--a-border); --surface: var(--a-surface-2); --surface-2: var(--a-border); --fs: 14px; color: var(--a-text); } .a-doc .chart-title { font-size: 14px; } .a-doc .plot text { fill: var(--a-text); } .a-doc .table th { color: var(--a-text-2); border-bottom-color: var(--a-border); } .a-doc .table td { border-bottom-color: var(--a-border); } .a-doc .stat-value { color: var(--a-text); } .a-doc .tree .node { padding: 4px 0; }

/* ── inputs ───────────────────────────────────────────────────────────── */
.a-field { display: grid; gap: 6px; } .a-field-label { font: 600 12px var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--a-text-2); } .a-field-label i { color: var(--a-danger); font-style: normal; } .a-helper { font-size: 12px; color: var(--a-text-2); } .a-error { font-size: 12px; color: var(--a-danger); } .a-field.invalid .a-input-wrap, .a-field.invalid textarea { border-color: var(--a-danger); }
.a-input-wrap, .a-select-wrap { display: flex; align-items: center; gap: 8px; background: var(--a-surface); border: 1.5px solid var(--a-border); border-radius: var(--a-radius); padding: 0 12px; min-height: 46px; } .a-input-wrap:focus-within, .a-select-wrap:focus-within, textarea:focus { border-color: var(--a-primary); outline: 0; } .a-input-wrap .a-icon { color: var(--a-text-2); }
.a-input-wrap input, .a-select-wrap select, .a-textarea textarea { flex: 1; min-width: 0; background: transparent; border: 0; color: inherit; font: inherit; font-size: 16px; padding: 10px 0; outline: 0; -webkit-appearance: none; appearance: none; } .a-select-wrap select { padding-right: 24px; } .a-select-wrap .a-icon { position: absolute; right: 12px; pointer-events: none; color: var(--a-text-2); } .a-select-wrap { position: relative; } .a-select-wrap option { color: #111; }
.a-textarea textarea { width: 100%; background: var(--a-surface); border: 1.5px solid var(--a-border); border-radius: var(--a-radius); padding: 10px 12px; resize: vertical; }
.a-field.outline .a-input-wrap { background: transparent; } .a-field.solid .a-input-wrap { border-color: transparent; background: var(--a-surface-2); }
.a-clear { border: 0; background: none; color: var(--a-text-2); padding: 4px; cursor: pointer; display: inline-flex; } .a-clear .a-icon { width: 16px; height: 16px; }
.a-searchbar { display: flex; align-items: center; gap: 8px; background: var(--a-surface-2); border-radius: var(--a-radius); padding: 0 10px; min-height: 40px; } .a-searchbar input { flex: 1; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; outline: 0; padding: 8px 0; min-width: 0; } .a-searchbar .a-icon { color: var(--a-text-2); width: 18px; height: 18px; } .a-searchbar input::-webkit-search-cancel-button { display: none; }
.a-segment { --c: var(--a-primary); display: flex; background: var(--a-surface-2); border-radius: var(--a-radius); padding: 3px; gap: 2px; } .a-segment.scrollable { overflow-x: auto; } .a-segment-btn { flex: 1; border: 0; background: transparent; color: var(--a-text-2); font: 600 14px var(--font-display); min-height: 34px; border-radius: calc(var(--a-radius) - 3px); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap; padding: 0 12px; } .a-segment-btn.on { background: var(--a-surface); color: var(--a-text); box-shadow: 0 1px 3px rgba(0,0,0,.25); } .a-segment-btn .a-icon { width: 16px; height: 16px; }
.a-toggle { --c: var(--a-primary); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; } .a-toggle input { position: absolute; opacity: 0; width: 0; height: 0; } .a-track { width: 46px; height: 28px; border-radius: 999px; background: var(--a-border); position: relative; transition: background .2s; flex: 0 0 auto; } .a-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); } .a-toggle input:checked + .a-track { background: var(--c); } .a-toggle input:checked + .a-track .a-knob { transform: translateX(18px); } .a-toggle.labelled { justify-content: space-between; width: 100%; } .a-toggle-label { flex: 1; order: -1; }
.a-checkbox, .a-radio { --c: var(--a-primary); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 32px; } .a-checkbox input, .a-radio input { position: absolute; opacity: 0; width: 0; height: 0; } .a-box { width: 22px; height: 22px; border: 2px solid var(--a-border); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: transparent; flex: 0 0 auto; } .a-box .a-icon { width: 16px; height: 16px; } .a-checkbox input:checked + .a-box { background: var(--c); border-color: var(--c); color: var(--a-primary-ink); } .a-dot { width: 22px; height: 22px; border: 2px solid var(--a-border); border-radius: 50%; position: relative; flex: 0 0 auto; } .a-radio input:checked + .a-dot { border-color: var(--c); } .a-radio input:checked + .a-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c); }
.a-radio-group { display: grid; gap: 6px; } .a-radio-group.inline { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.a-range { display: flex; align-items: center; gap: 12px; } .a-range input[type=range] { flex: 1; accent-color: var(--a-primary); height: 28px; } .a-pin { font: 700 14px var(--font-display); min-width: 2.5em; text-align: right; font-variant-numeric: tabular-nums; } .a-range .a-icon { color: var(--a-text-2); }
.a-form { display: grid; gap: 14px; }

/* ── tabs, menu, fab ──────────────────────────────────────────────────── */
.a-tabs { position: sticky; bottom: 0; z-index: 10; display: flex; background: var(--a-surface); border-top: 1px solid var(--a-border); padding-bottom: var(--a-safe-b); min-height: var(--a-tabs-h); }
.a-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--a-text-2); font: 600 11px var(--font-display); letter-spacing: .02em; text-decoration: none; position: relative; padding: 6px 0; } .a-tab.on { color: var(--a-primary); } .a-tab .a-badge { position: absolute; top: 4px; left: calc(50% + 6px); height: 16px; min-width: 16px; font-size: 10px; }
.a-menu { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); overflow-x: hidden; --a-menu-w: 280px; background: var(--a-surface); border-right: 1px solid var(--a-border); z-index: 40; transform: translateX(-100%); transition: transform .22s ease-out; overflow-y: auto; padding-top: var(--a-safe-t); display: flex; flex-direction: column; } .a-shell.menu-open .a-menu { transform: none; box-shadow: var(--a-shadow); }
.a-menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 39; opacity: 0; pointer-events: none; transition: opacity .2s; } .a-shell.menu-open .a-menu-backdrop { opacity: 1; pointer-events: auto; }
.a-menu-brand { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 12px 14px; border-bottom: 1px solid var(--a-border); } .a-menu-brand .a-brandlogo { display: block; } .a-menu-brand .a-brandlogo img { height: 24px; width: auto; max-width: 100%; margin: 0 auto; } .a-menu-brand .a-brandlogo.second img { width: 100%; height: auto; max-width: 100%; }
.a-menu-head { display: flex; align-items: flex-start; gap: 8px; padding: 14px 8px 10px 16px; border-bottom: 1px solid var(--a-border); } .a-menu-title { flex: 1; min-width: 0; } .a-menu-head b { display: block; font-family: var(--font-display); font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; } .a-menu-head small { color: var(--a-text-2); font-size: 12px; display: block; margin-top: 2px; } .a-menu-rail-btn { display: none; color: var(--a-text-2); }
.a-menu-section { border-bottom: 1px solid var(--a-border); } .a-menu-section-h { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; color: var(--a-text-2); font: 600 12px var(--font-display); text-transform: uppercase; letter-spacing: .1em; padding: 12px 16px 6px; cursor: pointer; text-align: left; } .a-sec-chev { width: 16px; height: 16px; transition: transform .2s; } .a-menu-section.collapsed .a-sec-chev { transform: rotate(-90deg); } .a-menu-section.collapsed .a-list { display: none; } .a-menu-section.collapsed { padding-bottom: 6px; }
.a-menu-resizer { display: none; position: absolute; top: 0; right: 0; width: 5px; height: 100%; cursor: col-resize; z-index: 2; } .a-menu-resizer:hover { background: color-mix(in srgb, var(--a-primary) 40%, transparent); }
.a-menu .a-list { border: 0; border-radius: 0; background: transparent; padding: 6px 0; } .a-menu .a-menu-section:last-of-type { flex: 1; } .a-menu .a-item { background: transparent; min-height: 46px; } .a-menu .a-item.on { background: color-mix(in srgb, var(--a-primary) 14%, transparent); border-radius: 0 999px 999px 0; margin-right: 12px; }
.a-menu-foot { margin-top: auto; padding: 14px 16px calc(14px + var(--a-safe-b)); font-size: 12px; color: var(--a-text-2); border-top: 1px solid var(--a-border); }
/* tabs inside the toolbar are for wide screens; the bottom bar is for phones */
.a-toolbar .a-tabs.in-toolbar { display: none; }
/* the bottom panel and the status bar: wide screens of the app shell */
.a-panel-bottom, .a-statusbar { display: none; }
.a-fab { position: fixed; z-index: 12; display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; } .a-fab.bottom { bottom: calc(var(--a-tabs-h) + 16px + var(--a-safe-b)); } .a-shell:not(.has-tabs) .a-fab.bottom { bottom: calc(16px + var(--a-safe-b)); } .a-fab.top { top: calc(var(--a-header-h) + 16px); flex-direction: column; } .a-fab.end { right: 16px; } .a-fab.start { left: 16px; } .a-fab.center { left: 50%; transform: translateX(-50%); }
.a-fab-btn { --c: var(--a-primary); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--c); color: var(--a-primary-ink); box-shadow: var(--a-shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .a-fab-btn.small { width: 42px; height: 42px; background: var(--a-surface-2); color: var(--a-text); } .a-fab-btn .a-icon { width: 26px; height: 26px; } .a-fab-btn.small .a-icon { width: 20px; height: 20px; } .a-fab-list { display: none; flex-direction: column-reverse; gap: 10px; align-items: center; } .a-fab.open .a-fab-list { display: flex; } .a-fab.open > .a-fab-btn .a-icon { transform: rotate(45deg); }
.a-refresher { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--a-text-2); font-size: 12px; height: 0; overflow: hidden; transition: height .2s; } .a-refresher.busy { height: 36px; } .a-refresher.busy .a-icon { animation: a-spin .8s linear infinite; }
.a-infinite { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; color: var(--a-text-2); font-size: 13px; }

/* ── overlays ─────────────────────────────────────────────────────────── */
.a-overlays { position: fixed; inset: 0; z-index: 50; pointer-events: none; } .a-overlay { position: absolute; inset: 0; pointer-events: auto; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; } .a-overlay.enter { opacity: 1; } .a-overlay.leave { opacity: 0; } .a-overlay.toast { pointer-events: none; align-items: flex-end; }
.a-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.a-modal { position: relative; width: min(560px, 100vw); height: min(92vh, 900px); background: var(--a-bg); border-radius: 18px 18px 0 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--a-shadow); transform: translateY(24px); transition: transform .22s ease-out; align-self: flex-end; } .a-overlay.enter .a-modal { transform: none; } .a-modal .a-page { flex: 1; min-height: 0; animation: none; } .a-modal.sheet { height: auto; max-height: 92vh; } .a-modal.sheet .a-content { max-height: 70vh; } .a-modal-body { padding: 20px; }
.a-modal.large { width: min(900px, 100vw); } .a-modal.small { width: min(420px, 100vw); height: auto; }
.a-sheet { position: relative; align-self: flex-end; width: min(560px, 100vw); background: var(--a-surface); border-radius: 18px 18px 0 0; padding: 8px 8px calc(12px + var(--a-safe-b)); transform: translateY(24px); transition: transform .22s ease-out; } .a-overlay.enter .a-sheet { transform: none; } .a-sheet-header { font: 600 13px var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--a-text-2); padding: 12px 14px 4px; text-align: center; } .a-sheet-sub { color: var(--a-text-2); font-size: 13px; text-align: center; padding: 0 14px 8px; } .a-sheet-btn { --c: var(--a-text); display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; color: var(--c); font: 500 17px var(--font-body); padding: 14px 16px; border-radius: 12px; cursor: pointer; text-align: left; } .a-sheet-btn:active { background: var(--a-surface-2); } .a-sheet-btn.destructive, .a-sheet-btn.c-danger { color: var(--a-danger); } .a-sheet-btn.cancel { font-weight: 600; margin-top: 6px; background: var(--a-surface-2); justify-content: center; }
.a-alert { position: relative; width: min(340px, calc(100vw - 32px)); background: var(--a-surface); border-radius: 16px; overflow: hidden; box-shadow: var(--a-shadow); transform: scale(.96); transition: transform .18s; text-align: center; } .a-overlay.enter .a-alert { transform: none; } .a-alert-header { font: 700 18px var(--font-display); padding: 20px 18px 4px; letter-spacing: -0.01em; } .a-alert-sub { color: var(--a-text-2); font-size: 13px; padding: 0 18px; } .a-alert-message { padding: 8px 18px 16px; color: var(--a-text-2); font-size: 15px; } .a-alert-message p { margin: 0 0 .4em; } .a-alert-inputs { display: grid; gap: 8px; padding: 0 18px 16px; text-align: left; } .a-alert-inputs input, .a-alert-inputs textarea { width: 100%; background: var(--a-bg); border: 1.5px solid var(--a-border); border-radius: 8px; color: inherit; font: inherit; padding: 10px 12px; } .a-alert-buttons { display: flex; border-top: 1px solid var(--a-border); } .a-alert-buttons.stacked { flex-direction: column; } .a-alert-btn { flex: 1; border: 0; background: transparent; color: var(--a-primary); font: 600 16px var(--font-display); padding: 14px; cursor: pointer; border-right: 1px solid var(--a-border); } .a-alert-btn:last-child { border-right: 0; } .a-alert-buttons.stacked .a-alert-btn { border-right: 0; border-bottom: 1px solid var(--a-border); } .a-alert-btn.cancel { color: var(--a-text-2); font-weight: 500; } .a-alert-btn.destructive { color: var(--a-danger); }
.a-toast { --c: var(--a-surface-2); position: relative; margin: 0 16px calc(var(--a-tabs-h) + 20px + var(--a-safe-b)); background: var(--c); color: var(--a-text); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: var(--a-shadow); max-width: min(480px, calc(100vw - 32px)); font-size: 14px; pointer-events: auto; transform: translateY(16px); transition: transform .2s; } .a-overlay.enter .a-toast { transform: none; } .a-toast.top { align-self: flex-start; margin-top: calc(var(--a-header-h) + 12px + var(--a-safe-t)); } .a-overlay.toast:has(.a-toast.top) { align-items: flex-start; } .a-toast.c-success, .a-toast.c-danger, .a-toast.c-primary { color: var(--a-primary-ink); } .a-toast.c-warning { color: #111; } .a-toast .a-button { color: inherit; }
.a-loading { position: relative; background: var(--a-surface); border-radius: 14px; padding: 22px 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; box-shadow: var(--a-shadow); }
.a-popover { position: relative; width: 260px; background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 12px; box-shadow: var(--a-shadow); overflow: hidden; padding: 6px; } .a-popover .a-list { border: 0; } .a-popover .a-item { min-height: 42px; padding: 8px 10px; }

/* ── site shell: a web page application ───────────────────────────────── */
.a-shell.site .a-header { position: static; background: transparent; border: 0; } .a-shell.site .a-toolbar { display: none; } .a-shell.site .a-header .a-searchbar, .a-shell.site .a-header .a-segment { max-width: var(--a-max); margin: 14px auto 0; }
.a-shell.site .a-content { overflow: visible; } .a-shell.site .a-content.padded .a-content-inner { padding: 28px clamp(16px, 4vw, 48px) 60px; }
.a-shell.site .a-page { animation: a-fade .25s; } @keyframes a-fade { from { opacity: 0; } to { opacity: 1; } }
.a-shell.site .a-large-title { font-size: clamp(32px, 5vw, 52px); }
.a-sitenav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--a-bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--a-border); } .a-sitenav-inner { max-width: var(--a-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); min-height: 64px; display: flex; align-items: center; gap: 24px; } .a-sitebrand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--font-display); letter-spacing: -0.02em; color: inherit; text-decoration: none; margin-right: auto; } .a-sitebrand img { height: 28px; width: auto; }
.a-sitelinks { display: flex; align-items: center; gap: 4px 22px; } .a-sitelinks a { color: var(--a-text-2); text-decoration: none; font: 500 14px var(--font-display); padding: 8px 0; border-bottom: 2px solid transparent; } .a-sitelinks a.on, .a-sitelinks a:hover { color: var(--a-text); border-bottom-color: var(--a-primary); } .a-sitemenu-btn { display: none; }
.a-sitefooter { border-top: 1px solid var(--a-border); padding: 28px clamp(16px, 4vw, 48px) 48px; color: var(--a-text-2); font-size: 13px; } .a-sitefooter p { max-width: var(--a-max); margin: 0 auto; }
.a-shell.site .a-fab { display: none; }
@media (max-width: 720px) { .a-sitemenu-btn { display: inline-flex; } .a-sitelinks { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--a-surface); border-bottom: 1px solid var(--a-border); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; } .a-sitenav.open .a-sitelinks { display: flex; } .a-sitelinks a { padding: 12px 0; border-bottom: 1px solid var(--a-border); } }

/* ── wide screens: split pane ─────────────────────────────────────────── */
@media (min-width: 992px) {
  .a-shell.app.has-menu { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: 100vh; height: 100dvh; } .a-shell.app.has-menu > .a-menu { grid-area: 1 / 1; } .a-shell.app.has-menu > .a-main { grid-area: 1 / 2; } .a-shell.app > .a-statusbar { grid-area: 2 / 1 / 3 / -1; } .a-shell.app.has-menu .a-menu { position: relative; height: 100%; transform: none; box-shadow: none; flex: 0 0 280px; } .a-shell.app.has-menu .a-menu-backdrop { display: none; } .a-shell.app.has-menu .a-main { flex: 1; min-width: 0; } .a-shell.app.has-menu .a-toolbar-start .a-menu-btn { display: none; }
  .a-shell.app .a-fab.bottom { bottom: 60px; } .a-shell.app.panel-open .a-fab.bottom { bottom: calc(var(--a-panel-h) + 44px); } .a-toast { margin-bottom: 70px; }
  .a-shell.app .a-shell > .a-tabs, .a-shell.app > .a-tabs { display: none; } .a-toolbar .a-tabs.in-toolbar { display: flex; position: static; border: 0; background: transparent; padding: 0 8px; min-height: 0; justify-content: flex-end; } .a-shell.app .a-tab { flex: 0 0 auto; flex-direction: row; gap: 6px; padding: 0 12px; font-size: 13px; min-height: 40px; border-radius: 8px; } .a-shell.app .a-tab.on { background: color-mix(in srgb, var(--a-primary) 14%, transparent); } .a-shell.app .a-tab .a-badge { position: static; } .a-shell.app .a-toolbar { grid-template-columns: auto 1fr auto auto; }
  .a-shell.app.has-menu .a-menu { flex: 0 0 var(--a-menu-w); width: var(--a-menu-w); overflow-x: hidden; } .a-menu-resizer { display: block; } .a-menu-rail-btn { display: inline-flex; }
  .a-shell.app.rail .a-menu { flex-basis: 64px; width: 64px; } .a-shell.app.rail .a-menu-brand { display: none; } .a-shell.app.rail .a-menu-title, .a-shell.app.rail .a-menu-section-h span, .a-shell.app.rail .a-menu-foot, .a-shell.app.rail .a-menu-resizer { display: none; } .a-shell.app.rail .a-menu-head { padding: 8px; justify-content: center; } .a-shell.app.rail .a-menu-section-h { justify-content: center; padding: 8px; } .a-shell.app.rail .a-menu .a-item { justify-content: center; padding: 10px 0; } .a-shell.app.rail .a-menu .a-item-body, .a-shell.app.rail .a-menu .a-item-end { display: none; } .a-shell.app.rail .a-menu .a-item.on { border-radius: 8px; margin: 0 8px; }
  .a-shell.app .a-main { display: flex; flex-direction: column; } .a-shell.app .a-main > .a-page { flex: 1 1 auto; min-height: 0; }
  .a-panel-bottom { display: flex; flex-direction: column; flex: 0 0 auto; border-top: 1px solid var(--a-border); background: var(--a-surface); position: relative; height: 35px; } .a-panel-bottom.open { height: var(--a-panel-h); } .a-panel-resizer { position: absolute; top: -3px; left: 0; right: 0; height: 6px; cursor: row-resize; z-index: 2; } .a-panel-bottom.open .a-panel-resizer:hover { background: color-mix(in srgb, var(--a-primary) 40%, transparent); }
  .a-panel-tabs { display: flex; align-items: center; gap: 2px; padding: 0 8px; height: 34px; border-bottom: 1px solid var(--a-border); flex: 0 0 auto; } .a-panel-tab { border: 0; background: transparent; color: var(--a-text-2); font: 600 11px var(--font-display); text-transform: uppercase; letter-spacing: .1em; padding: 0 10px; height: 34px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border-bottom: 2px solid transparent; } .a-panel-tab .a-icon { width: 14px; height: 14px; } .a-panel-tab.on { color: var(--a-text); border-bottom-color: var(--a-primary); } .a-panel-tab .a-badge { height: 16px; min-width: 16px; font-size: 10px; } .a-panel-spacer { flex: 1; } .a-panel-tabs .a-clear .a-icon { width: 16px; height: 16px; }
  .a-panel-body { flex: 1 1 auto; overflow: auto; padding: 10px 14px; font-size: 13px; min-height: 0; } .a-panel-bottom:not(.open) .a-panel-body { display: none; } .a-panel-body pre { margin: 0; padding: 0; border: 0; background: transparent; color: var(--a-text-2); font: 11.5px/1.5 var(--font-mono); white-space: pre-wrap; word-break: break-word; } .a-panel-inner { display: grid; gap: 10px; max-width: var(--a-max); }
  .a-statusbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 26px; padding: 0 10px; background: var(--a-primary); color: var(--a-primary-ink); font: 500 11.5px var(--font-body); flex: 0 0 auto; } .a-statusbar .l, .a-statusbar .r { display: flex; align-items: center; gap: 14px; min-width: 0; } .a-statusbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .a-statusbar .mono { font-family: var(--font-mono); opacity: .85; } .a-status-btn { border: 0; background: transparent; color: inherit; display: inline-flex; padding: 2px 4px; cursor: pointer; opacity: .8; border-radius: 4px; } .a-status-btn:hover, .a-status-btn.on { opacity: 1; background: rgba(255,255,255,.18); } .a-status-btn .a-icon { width: 14px; height: 14px; }
  .a-shell.app .a-toolbar-title { text-align: left; padding-left: 8px; font-size: 19px; } .a-shell.app .a-content.padded .a-content-inner { padding: 24px 32px 40px; }
  .a-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .a-fab.bottom { bottom: 28px; }
  .a-modal { align-self: center; border-radius: 18px; height: min(86vh, 820px); } .a-sheet { align-self: center; border-radius: 18px; margin-bottom: 0; } .a-toast { margin-bottom: 28px; }
}
/* brand bar: its own row, one logo left, one right */
.a-brandbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px 6px; border-bottom: 1px solid var(--a-border); min-height: calc(var(--a-logo-h) + 14px); }
.a-brandbar:not(.two) { justify-content: flex-start; }
/* the stacked brand block: ours small above, the customer's across the full width below */
.a-brand-block { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.a-brand-block.center { text-align: center; }
.a-brand-block .a-brandlogo { display: block; }
.a-brand-block .a-brandlogo img { height: 26px; width: auto; max-width: 100%; margin: 0 auto; }
.a-brand-block .a-brandlogo.second img { width: 100%; height: auto; }
/* the gate: one view, centred, with no shell around it */
.a-shell.gate .a-main { justify-content: center; }
.a-shell.kiosk { background: var(--a-bg); } .a-shell.kiosk .a-main { padding: 0; } .a-shell.kiosk .a-page { animation: none; } .a-shell.kiosk .a-content.padded .a-content-inner { max-width: none; padding: 28px 36px; } .a-shell.kiosk .a-inspector-btn { display: none; }
.a-shell.app.gate .a-main > .a-page { flex: 0 1 auto; }
.a-shell.gate .a-page > .a-content { overflow-y: auto; flex: 0 1 auto; }
.a-shell.gate .a-content.padded .a-content-inner { max-width: 380px; padding: 32px 24px calc(40px + var(--a-safe-b)); }
.a-shell.gate .a-hero { text-align: center; padding: 6px 0 0; }
.a-shell.gate .a-hero-word { font-size: 26px; letter-spacing: -0.01em; margin: 0 0 6px; }
.a-shell.gate .a-hero .a-dek { font-size: 15px; }
.a-shell.gate .a-buttons { justify-content: center; }
.a-brandlogo { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; } .a-brandlogo img { height: var(--a-logo-h); width: auto; max-width: 42vw; object-fit: contain; display: block; } .a-brandlogo.r { justify-content: flex-end; } .a-brandlogo-text { font: 700 14px var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.a-brandbar-text { font: 600 11px var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--a-text-2); text-align: center; flex: 1; }
.a-sitebrandbar { border-bottom: 1px solid var(--a-border); } .a-sitebrandbar .a-sitenav-inner { min-height: calc(var(--a-logo-h) + 22px); justify-content: space-between; } .a-sitebrandbar .a-brandlogo img { max-width: 40vw; }
.a-site-back { align-self: flex-start; margin: 16px clamp(16px, 4vw, 48px) -12px; }
/* the inspector */
.a-inspector-btn { position: fixed; left: 12px; bottom: calc(var(--a-tabs-h) + 14px + var(--a-safe-b)); z-index: 45; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--a-border); background: var(--a-surface); color: var(--a-text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: .55; } .a-inspector-btn:hover, .a-inspector-btn.on { opacity: 1; color: var(--a-primary); } .a-inspector-btn .a-icon { width: 18px; height: 18px; } .a-shell.site ~ .a-inspector-btn, body[data-shell="site"] .a-inspector-btn { bottom: 14px; } @media (min-width: 992px) { .a-inspector-btn { bottom: 14px; } .a-shell.app ~ .a-inspector-btn { display: none; } }
.a-inspector { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--a-surface); border-left: 1px solid var(--a-border); z-index: 46; display: flex; flex-direction: column; box-shadow: var(--a-shadow); font-size: 13px; }
.a-inspecting .a-shell { padding-right: min(420px, 100vw); } @media (max-width: 720px) { .a-inspecting .a-shell { padding-right: 0; } }
.a-insp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--a-border); } .a-insp-head b { font-family: var(--font-display); } .a-insp-route { flex: 1; font-family: var(--font-mono); color: var(--a-text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-insp-tabs { display: flex; border-bottom: 1px solid var(--a-border); } .a-insp-tabs button { flex: 1; border: 0; background: transparent; color: var(--a-text-2); font: 600 12px var(--font-display); text-transform: uppercase; letter-spacing: .1em; padding: 10px; cursor: pointer; border-bottom: 2px solid transparent; } .a-insp-tabs button.on { color: var(--a-text); border-bottom-color: var(--a-primary); }
.a-insp-body { flex: 1; overflow: auto; padding: 12px 14px 24px; display: grid; gap: 10px; align-content: start; } .a-insp-body pre { margin: 0; font: 11.5px/1.45 var(--font-mono); background: var(--a-bg); border: 1px solid var(--a-border); border-radius: 8px; padding: 10px; white-space: pre-wrap; word-break: break-word; max-height: 40vh; overflow: auto; }
.a-insp-kv { font-size: 12px; color: var(--a-text-2); line-height: 1.7; } .a-insp-kv b { color: var(--a-text); font-family: var(--font-display); margin-right: 2px; }
.a-insp-json { width: 100%; min-height: 220px; font: 11.5px/1.45 var(--font-mono); background: var(--a-bg); color: var(--a-text); border: 1px solid var(--a-border); border-radius: 8px; padding: 10px; resize: vertical; }
.a-insp-list { display: grid; gap: 2px; } .a-insp-list a { color: var(--a-text); text-decoration: none; font-family: var(--font-mono); font-size: 12px; padding: 5px 8px; border-radius: 6px; } .a-insp-list a.on, .a-insp-list a:hover { background: var(--a-bg); color: var(--a-primary); } .a-insp-list a small { color: var(--a-text-2); }
.a-insp-hi { outline: 2px solid var(--a-primary) !important; outline-offset: 2px; }
.a-insp-theme { display: grid; gap: 8px; } .a-insp-field { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 8px; } .a-insp-field > span { font: 600 11px var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--a-text-2); } .a-insp-field select, .a-insp-field input[type=range] { width: 100%; } .a-insp-field select { background: var(--a-bg); color: var(--a-text); border: 1px solid var(--a-border); border-radius: 6px; padding: 6px; font: inherit; }
.a-insp-color { display: flex; align-items: center; gap: 8px; } .a-insp-color input[type=color] { width: 34px; height: 26px; border: 1px solid var(--a-border); border-radius: 6px; background: transparent; padding: 0; } .a-insp-color code { font-size: 11px; color: var(--a-text-2); }
.a-toolbar .a-menu-btn { }
.hide-mobile { } @media (max-width: 720px) { .hide-mobile { display: none !important; } } @media (min-width: 721px) { .hide-desktop { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .a-page, .a-overlay, .a-modal, .a-sheet, .a-alert, .a-toast, .a-menu { animation: none; transition: none; } }
@media print { body[data-mode="app"] { background: #fff; color: #111; } .a-header, .a-tabs, .a-menu, .a-fab, .a-sitenav, .a-overlays { display: none !important; } .a-content { overflow: visible; } .a-list, .a-card, .a-stat { border-color: #ccc; break-inside: avoid; } }

/* ── the log and the conversation, the two halves of the bottom panel ─────────────────────────
   The log is a record, so it reads as one: a time, what kind of thing happened, and what it was.
   The conversation is a thread with a composer under it, and the composer is the last element in
   the panel so Enter is always one key away from the newest line. */
.a-log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 8px; color: var(--a-text-2); font-size: 11.5px; }
.a-log-copy { font: 600 11px var(--font-display); text-transform: uppercase; letter-spacing: .1em; padding: 2px 6px; border-radius: 6px; }
.a-log { display: grid; gap: 1px; font-size: 12px; }
.a-log-row { display: grid; grid-template-columns: 78px 84px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 3px 6px; border-radius: 6px; }
.a-log-row time { color: var(--a-text-2); font: 11px var(--font-mono); }
.a-log-row .k { font: 600 10px var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--a-text-2); }
.a-log-row .k-route, .a-log-row .k-chat { color: var(--a-primary); }
.a-log-row .k-secretary { color: var(--a-success); }
.a-log-row .k-error { color: var(--a-danger); }
.a-log-row .d { color: var(--a-text); overflow-wrap: anywhere; }
.a-log-row.bad .d { color: var(--a-danger); }
.a-panel-body.chat { display: flex; flex-direction: column; overflow: hidden; }
.a-panel-body.chat .a-chat-thread { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.a-chat-thread { display: grid; gap: 12px; align-content: start; padding-bottom: 12px; }
.a-chat-msg { display: grid; gap: 3px; max-width: 62ch; }
.a-chat-msg.user { justify-self: end; text-align: right; }
.a-chat-who { font: 600 10px var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--a-text-2); }
.a-chat-text { background: var(--a-surface-2); border-radius: 12px; padding: 8px 12px; line-height: 1.5; overflow-wrap: anywhere; }
.a-chat-msg.user .a-chat-text { background: color-mix(in srgb, var(--a-primary) 22%, var(--a-surface-2)); }
.a-chat-msg.error .a-chat-text { background: color-mix(in srgb, var(--a-danger) 18%, var(--a-surface-2)); color: var(--a-text); }
.a-chat-msg.pending .a-chat-text { opacity: .6; }
.a-chat-text p { margin: 0 0 6px; } .a-chat-text p:last-child { margin: 0; }
.a-chat-text ul, .a-chat-text ol { margin: 4px 0; padding-left: 20px; }
.a-chat-text pre { background: var(--a-bg); padding: 8px 10px; border-radius: 8px; margin: 6px 0; }
.a-chat-did { font-size: 11px; color: var(--a-text-2); font-family: var(--font-mono); }
.a-chat-form { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px; padding: 8px 0 0; background: var(--a-surface); border-top: 1px solid var(--a-border); }
.a-chat-input { flex: 1 1 auto; min-width: 0; resize: none; border: 1px solid var(--a-border); background: var(--a-bg); color: var(--a-text); border-radius: 10px; padding: 9px 12px; font: 13px/1.45 var(--font-body); max-height: 120px; }
.a-chat-input:focus { outline: none; border-color: var(--a-primary); }
.a-chat-send { min-height: 36px; padding: 0 12px; flex: 0 0 auto; }

/* ── rollover ─────────────────────────────────────────────────────────────────────────────────
   A pointer that can hover gets an answer from everything it can press. Without one, the first
   feedback a mouse ever receives is the press itself, which lands as a jolt rather than as a
   reply, and the interface reads as jumpy. Nothing here moves anything: colour and opacity only,
   so a row never shifts under the cursor, and `pointer: coarse` is left alone — a finger cannot
   hover and a sticky hover state after a tap is worse than none. */
@media (hover: hover) and (pointer: fine) {
  .a-tap { transition: background .12s; }
  .a-tap:hover { background: var(--a-surface-2); }
  .a-item.on:hover { background: color-mix(in srgb, var(--a-primary) 20%, var(--a-surface)); }
  .a-button:not(:disabled):hover { background: color-mix(in srgb, var(--a-text) 12%, var(--c)); }
  .a-button.outline:not(:disabled):hover, .a-button.clear:not(:disabled):hover { background: color-mix(in srgb, var(--c) 12%, transparent); }
  .a-clear:hover, .a-menu-rail-btn:hover, .a-log-copy:hover { color: var(--a-text); background: var(--a-surface-2); }
  .a-tab:hover, .a-panel-tab:hover, .a-menu-section-h:hover { color: var(--a-text); }
  .a-panel-tab:hover { background: var(--a-surface-2); }
  .a-segment-btn:not(.on):hover { color: var(--a-text); }
  .a-chip.a-tap:hover { filter: brightness(1.15); }
  .a-sheet-btn:hover { background: var(--a-surface-2); }
}
/* The press answers in colour too. The 3% shrink stays for a finger, where there was never a
   rollover to lead into it; under a mouse it is the second half of a gesture the hover began. */
.a-button:not(:disabled):active { background: color-mix(in srgb, var(--a-bg) 22%, var(--c)); }
.a-button.outline:not(:disabled):active, .a-button.clear:not(:disabled):active { background: color-mix(in srgb, var(--c) 24%, transparent); }
@media (hover: hover) and (pointer: fine) { .a-button:active { transform: none; } }
/* the radar kit inside the app: chat components (a2ui), tools, tooltips */
.a-chat-pad { display: grid; gap: 8px; margin-top: 4px; max-width: 100%; } .a-chat-pad .a-doc { padding: 10px; } .a-chat-msg.assistant { max-width: min(62ch, 100%); }
.a-doc .kit-btn { background: var(--a-surface-2); color: var(--a-text); border-color: var(--a-border); } .a-doc .kit-btn.on { background: var(--a-primary); color: var(--a-primary-ink); border-color: var(--a-primary); }
.a-doc .bignum { background: var(--a-surface-2); } .a-doc .bignum.outline { background: none; } .a-doc .bignum.accent { background: var(--bn, var(--a-primary)); color: var(--a-primary-ink); } .a-doc .bignum.inverse { background: var(--a-text); color: var(--a-bg); }
.a-doc .bignum .bn-value, .a-doc .pg-value, .a-doc .radar .chart-title, .a-doc .sankey .chart-title { color: inherit; }
.a-doc .rd-disc { fill: var(--a-surface-2); } .a-doc .rd-item .rd-dot { stroke: var(--a-surface); } .a-doc .nw-label, .a-doc .at-label, .a-doc .sk-label { fill: var(--a-text); } .a-doc .nw-label, .a-doc .at-label { stroke: var(--a-surface); }
.a-doc .ticker { border-top-color: var(--a-text); border-bottom-color: var(--a-border); }
.a-doc .leaflet-container { background: var(--a-surface-2); } .a-doc .kit-legend { color: var(--a-text-2); } .a-doc .kit-legend b { color: var(--a-text); }
/* a card picture is a strip, not a poster: the note detail was opening on a 600 px photograph */
.a-card-media img { max-height: 320px; object-fit: cover; width: 100%; }
