@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@500;600;700&display=swap');

/* Product switching: data-product points the accent tokens at one product. */
[data-product="app8"], [data-product="app8"] [data-theme] { --accent: var(--app8-ink); --accent-mark: var(--app8-mark); --accent-soft: var(--app8-soft); --accent-brand: var(--app8); --accent-on-icon: var(--app8-on-icon); --accent-fill: var(--app8-fill); --on-accent: var(--app8-on-fill); }
[data-product="bee8"], [data-product="bee8"] [data-theme] { --accent: var(--bee8-ink); --accent-mark: var(--bee8-mark); --accent-soft: var(--bee8-soft); --accent-brand: var(--bee8); --accent-on-icon: var(--bee8-on-icon); --accent-fill: var(--bee8-fill); --on-accent: var(--bee8-on-fill); }
[data-product="home8"], [data-product="home8"] [data-theme] { --accent: var(--home8-ink); --accent-mark: var(--home8-mark); --accent-soft: var(--home8-soft); --accent-brand: var(--home8); --accent-on-icon: var(--home8-on-icon); --accent-fill: var(--home8-fill); --on-accent: var(--home8-on-fill); }
[data-product="kiosk8"], [data-product="kiosk8"] [data-theme] { --accent: var(--kiosk8-ink); --accent-mark: var(--kiosk8-mark); --accent-soft: var(--kiosk8-soft); --accent-brand: var(--kiosk8); --accent-on-icon: var(--kiosk8-on-icon); --accent-fill: var(--kiosk8-fill); --on-accent: var(--kiosk8-on-fill); }
[data-product="track8"], [data-product="track8"] [data-theme] { --accent: var(--track8-ink); --accent-mark: var(--track8-mark); --accent-soft: var(--track8-soft); --accent-brand: var(--track8); --accent-on-icon: var(--track8-on-icon); --accent-fill: var(--track8-fill); --on-accent: var(--track8-on-fill); }
[data-product="flight8"], [data-product="flight8"] [data-theme] { --accent: var(--flight8-ink); --accent-mark: var(--flight8-mark); --accent-soft: var(--flight8-soft); --accent-brand: var(--flight8); --accent-on-icon: var(--flight8-on-icon); --accent-fill: var(--flight8-fill); --on-accent: var(--flight8-on-fill); }
[data-product="iot8"], [data-product="iot8"] [data-theme] { --accent: var(--iot8-ink); --accent-mark: var(--iot8-mark); --accent-soft: var(--iot8-soft); --accent-brand: var(--iot8); --accent-on-icon: var(--iot8-on-icon); --accent-fill: var(--iot8-fill); --on-accent: var(--iot8-on-fill); }

body { margin: 0; font-family: var(--font-sans); font-weight: 500; font-size: 16px; line-height: 26px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
.a8-stage { padding: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; }
.a8-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.a8-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.a8-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus: one ring for every product */
.a8-btn:focus-visible, .a8-input:focus-visible, .a8-select select:focus-visible, .a8-tab:focus-visible, .a8-nav-link:focus-visible,
.a8-check input:focus-visible + .a8-check-box, .a8-switch input:focus-visible + .a8-switch-track { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* Button */
.a8-btn { font: inherit; font-weight: 700; font-size: 14px; line-height: 20px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-height); padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .12s ease; }
.a8-btn svg { width: 18px; height: 18px; flex: none; }
.a8-btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.a8-btn-primary:hover { filter: brightness(1.08); }
.a8-btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.a8-btn-secondary:hover { background: var(--surface-sunken); }
.a8-btn-ghost { background: transparent; color: var(--accent); }
.a8-btn-ghost:hover { background: var(--accent-soft); }
.a8-btn-danger { background: var(--danger); color: var(--on-danger); }
.a8-btn-danger:hover { filter: brightness(1.08); }
.a8-btn-lg { min-height: var(--target-screen); padding: 0 var(--space-6); font-size: 16px; border-radius: var(--radius-lg); }
.a8-btn[disabled] { background: var(--fill-disabled); color: var(--ink-disabled); border-color: transparent; cursor: not-allowed; filter: none; }

/* Fields */
.a8-field { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.a8-label { font-weight: 700; font-size: 14px; line-height: 20px; color: var(--ink); }
.a8-hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.a8-error { font-size: 14px; line-height: 20px; color: var(--danger); display: flex; gap: var(--space-1); align-items: center; }
.a8-error svg { width: 16px; height: 16px; flex: none; }
.a8-input, .a8-select select { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-raised); min-height: var(--control-height); padding: 0 var(--space-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-sizing: border-box; width: 100%; }
.a8-input::placeholder { color: var(--ink-muted); }
.a8-input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; padding: 0 11px; }
.a8-input:disabled, .a8-select select:disabled { background: var(--fill-disabled); color: var(--ink-disabled); border-color: var(--line); }
.a8-select { position: relative; }
.a8-select select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; cursor: pointer; }
.a8-select svg { position: absolute; inset-inline-end: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--ink-muted); pointer-events: none; }

/* Checkbox and switch */
.a8-check, .a8-switch { display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; min-height: var(--target-min); font-size: 16px; }
.a8-check input, .a8-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.a8-check-box { width: 22px; height: 22px; border-radius: var(--radius-sm); border: 2px solid var(--line-strong); background: var(--surface-raised); display: grid; place-items: center; box-sizing: border-box; flex: none; }
.a8-check-box svg { width: 16px; height: 16px; color: var(--on-accent); opacity: 0; }
.a8-check input:checked + .a8-check-box { background: var(--accent-fill); border-color: var(--accent-fill); }
.a8-check input:checked + .a8-check-box svg { opacity: 1; }
.a8-switch-track { width: 44px; height: 26px; border-radius: var(--radius-full); background: var(--surface-raised); border: 2px solid var(--line-strong); box-sizing: border-box; position: relative; flex: none; transition: background .15s ease; }
.a8-switch-thumb { position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--ink-muted); transition: transform .15s ease, background .15s ease; }
.a8-switch input:checked + .a8-switch-track { background: var(--accent-fill); border-color: var(--accent-fill); }
.a8-switch input:checked + .a8-switch-track .a8-switch-thumb { transform: translateX(18px); background: var(--on-accent); }
.a8-check input:disabled + .a8-check-box, .a8-switch input:disabled + .a8-switch-track { background: var(--fill-disabled); border-color: var(--line); }
.a8-check:has(input:disabled), .a8-switch:has(input:disabled) { color: var(--ink-disabled); cursor: not-allowed; }

/* Card */
.a8-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); box-sizing: border-box; }
.a8-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.a8-card-title { margin: 0; font-size: 22px; line-height: 30px; font-weight: 700; }
.a8-card-sub { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.a8-card-foot { display: flex; gap: var(--space-3); flex-wrap: wrap; padding-top: var(--space-2); }
/* 1.7.0: a state dot before the title on cards in dense overviews; a down card gets a 2px danger edge (no layout shift) */
.a8-card-title-dot { display: flex; align-items: center; gap: var(--space-2); }
.a8-card-down { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger), var(--shadow-sm); }
.a8-dot-wrap { flex: none; }
.a8-dot { display: inline-block; width: 12px; height: 12px; border-radius: var(--radius-full); flex: none; box-sizing: border-box; }
.a8-dot-up { background: var(--success); }
.a8-dot-warn { background: var(--warning-fill); box-shadow: inset 0 0 0 1.5px var(--warning); }
.a8-dot-down { background: var(--danger); }
.a8-dot-off { background: var(--line-strong); }
.a8-dot:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* Table */
.a8-table-wrap { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: auto; }
.a8-table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 22px; }
.a8-table th { background: var(--surface-sunken); font-weight: 700; text-align: start; padding: 10px var(--space-4); color: var(--ink-muted); white-space: nowrap; }
.a8-table td { padding: 10px var(--space-4); border-top: 1px solid var(--line); }
.a8-table .a8-num { text-align: end; white-space: nowrap; }
/* 1.7.0: MoneyAmount — sign and currency always shown; in = success, out = ink, credit note = danger */
.a8-money { display: inline-block; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }
.a8-money-in { color: var(--success); }
.a8-money-out { color: var(--ink); }
.a8-money-credit { color: var(--danger); }
.a8-table tbody tr:hover td { background: var(--surface); }
.a8-table tbody tr[aria-selected="true"] td { background: var(--accent-soft); }
/* DataTable 1.6.0: toolbar, selection bar, sorting, columns */
.a8-table-block { display: flex; flex-direction: column; gap: var(--space-3); }
.a8-table-bar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; min-height: 44px; }
.a8-table-tools { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.a8-table-space { flex: 1; }
.a8-table-count { font-size: 14px; color: var(--ink-muted); white-space: nowrap; }
.a8-table-sel { display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius-lg); padding: 4px 6px 4px var(--space-4); font-size: 14px; }
.a8-table-sel b { margin-inline-end: var(--space-2); }
.a8-table-sel .a8-table-clear { color: var(--ink-muted); }
.a8-table th.a8-table-pick, .a8-table td.a8-table-pick { width: 1%; padding-inline-end: 0; }
.a8-check-sm { min-height: 0; font-size: 14px; gap: var(--space-2); }
.a8-check-sm .a8-check-box { width: 18px; height: 18px; }
.a8-check-sm .a8-check-box svg { width: 13px; height: 13px; }
.a8-check input:indeterminate + .a8-check-box { background: var(--accent-fill); border-color: var(--accent-fill); }
.a8-check input:indeterminate + .a8-check-box svg { opacity: 0; }
.a8-check input:indeterminate + .a8-check-box::after { content: ""; width: 9px; height: 2.5px; border-radius: 2px; background: var(--on-accent); position: absolute; }
.a8-check-box { position: relative; }
.a8-table tbody tr.a8-picked td { background: var(--accent-soft); }
.a8-sort { font: inherit; font-weight: inherit; line-height: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; vertical-align: top; gap: 4px; border-radius: var(--radius-sm); }
.a8-sort:hover { color: var(--ink); }
.a8-sort:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-sort-ico { display: inline-flex; opacity: .4; }
.a8-table th.a8-sorted { color: var(--ink); }
.a8-table th.a8-sorted .a8-sort-ico { opacity: 1; color: var(--accent); }
.a8-table th.a8-num .a8-sort { flex-direction: row-reverse; }
.a8-table-empty { color: var(--ink-muted); text-align: center; padding: var(--space-6) var(--space-4) !important; }
.a8-table-cols svg { flex: none; }
.a8-cols { list-style: none; margin: 0 -6px; padding: 0; display: flex; flex-direction: column; }
.a8-cols-item { display: flex; align-items: center; gap: var(--space-2); padding: 4px 6px; border-radius: var(--radius-md); }
.a8-cols-item:hover { background: var(--surface); }
.a8-cols-item .a8-check { flex: 1; color: var(--ink); }
.a8-cols-item small { font-size: 12px; color: var(--ink-muted); }
.a8-cols-lock .a8-check { cursor: default; }
.a8-cols-lock .a8-check-box { opacity: .5; }
.a8-cols-over { box-shadow: inset 0 2px 0 var(--accent); }
.a8-cols-grip { font: inherit; border: 0; background: none; color: var(--ink-muted); cursor: grab; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-sm); }
.a8-cols-grip:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-cols-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); width: 100%; font-size: 13px; color: var(--ink-muted); }
.a8-cols-foot span { display: inline-flex; align-items: center; gap: 2px; }
@media (max-width: 600px) { .a8-table-sel { width: 100%; } }

/* Badge */
.a8-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-sm); white-space: nowrap; }
.a8-badge svg { width: 14px; height: 14px; flex: none; }
.a8-badge-neutral { background: var(--surface-sunken); color: var(--ink-muted); }
.a8-badge-accent { background: var(--accent-soft); color: var(--accent); }
.a8-badge-success { background: var(--success-soft); color: var(--success); }
.a8-badge-warning { background: var(--warning-soft); color: var(--warning); }
.a8-badge-danger { background: var(--danger-soft); color: var(--danger); }

/* Alert */
.a8-alert { display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid currentColor; box-sizing: border-box; }
.a8-alert > svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.a8-alert-body { color: var(--ink); display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.a8-alert-title { font-weight: 700; }
.a8-alert-text { font-size: 14px; line-height: 22px; color: var(--ink); }
.a8-alert-info { background: var(--accent-soft); color: var(--accent); }
.a8-alert-success { background: var(--success-soft); color: var(--success); }
.a8-alert-warning { background: var(--warning-soft); color: var(--warning); }
.a8-alert-danger { background: var(--danger-soft); color: var(--danger); }

/* Tabs */
.a8-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); overflow-x: auto; }
.a8-tab { font: inherit; font-weight: 700; font-size: 14px; line-height: 20px; background: none; border: 0; color: var(--ink-muted); padding: 10px var(--space-4) 12px; cursor: pointer; border-radius: var(--radius-md) var(--radius-md) 0 0; position: relative; white-space: nowrap; min-height: var(--target-min); }
.a8-tab:hover { color: var(--ink); background: var(--surface-sunken); }
.a8-tab[aria-selected="true"] { color: var(--accent); }
.a8-tab[aria-selected="true"]::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent-fill); }

/* Nav bar */
.a8-nav { display: flex; align-items: center; gap: var(--space-6); padding: 0 var(--space-6); min-height: 64px; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.a8-nav-links { display: flex; gap: var(--space-1); flex: 1; flex-wrap: wrap; }
.a8-nav-link { font-weight: 700; font-size: 14px; line-height: 20px; color: var(--ink-muted); text-decoration: none; padding: 8px var(--space-3); border-radius: var(--radius-md); }
.a8-nav-link:hover { color: var(--ink); background: var(--surface-sunken); }
.a8-nav-link[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.a8-nav-end { display: flex; gap: var(--space-2); align-items: center; }

/* Logo */
.a8-logo { display: inline-flex; align-items: center; font-family: var(--font-sans); font-weight: 700; line-height: 1; text-decoration: none; }
.a8-logo-stacked { flex-direction: column; }
.a8-logo svg { display: block; flex: none; }

/* ===================== Shared bits ===================== */
.a8-text-success { color: var(--success); } .a8-text-warning { color: var(--warning); } .a8-text-danger { color: var(--danger); }
.a8-iconbtn { font: inherit; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-muted); cursor: pointer; flex: none; }
.a8-iconbtn:hover { background: var(--surface-sunken); color: var(--ink); }
.a8-iconbtn:disabled { color: var(--ink-disabled); background: none; cursor: not-allowed; }
.a8-iconbtn:focus-visible, .a8-menu-item:focus-visible, .a8-pager-num:focus-visible, .a8-seg button:focus-visible, .a8-tree-label:focus-visible, .a8-tree-caret:focus-visible, .a8-kanban:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-chip { display: inline-flex; align-items: center; font-size: 13px; line-height: 18px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-muted); }
/* 1.7.0: coloured label chips, one of six chart colours: a soft tint with dark text (light text in dark mode), at least 5:1 */
.a8-chip-2 { --a8-chip: var(--chart-2); } .a8-chip-3 { --a8-chip: var(--chart-3); } .a8-chip-4 { --a8-chip: var(--chart-4); }
.a8-chip-5 { --a8-chip: var(--chart-5); } .a8-chip-6 { --a8-chip: var(--chart-6); } .a8-chip-7 { --a8-chip: var(--chart-7); }
.a8-chip-2, .a8-chip-3, .a8-chip-4, .a8-chip-5, .a8-chip-6, .a8-chip-7 {
  background: color-mix(in srgb, var(--a8-chip) 16%, var(--surface-raised)); color: color-mix(in srgb, var(--a8-chip) 60%, var(--ink)); }
.a8-chip-pill { border-radius: var(--radius-full); padding: 2px 10px; }

/* ===================== Charts ===================== */
.a8-chart { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.a8-chart-canvas { position: relative; width: 100%; }
.a8-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px var(--space-4); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.a8-legend li { display: inline-flex; align-items: center; gap: 6px; }
.a8-legend b { color: var(--ink); font-weight: 700; margin-inline-start: 4px; }
.a8-legend-key { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.a8-legend svg { width: 16px; height: 16px; flex: none; }
/* 1.7.0: StackedBar — one total split into parts */
.a8-stacked { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; width: 100%; }
.a8-stacked-head { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); }
.a8-stacked-head b { color: var(--ink); font-weight: 700; }
.a8-stacked-track { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); }
.a8-stacked-part { display: block; height: 100%; min-width: 2px; flex: none; }
.a8-donut { margin: 0; display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.a8-donut .a8-legend { flex-direction: column; gap: var(--space-2); }
.a8-donut-ring { position: relative; flex: none; }
.a8-donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.a8-donut-center b { font-size: 26px; line-height: 30px; }
.a8-donut-center span { font-size: 13px; color: var(--ink-muted); }
.a8-spark { display: block; overflow: visible; }
.a8-gauge { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.a8-gauge svg { display: block; }
.a8-gauge-value { font-size: 28px; line-height: 32px; font-weight: 700; margin-top: -30px; }
.a8-gauge-value small { font-size: 14px; color: var(--ink-muted); margin-inline-start: 3px; font-weight: 600; }
.a8-gauge figcaption { font-size: 14px; color: var(--ink-muted); display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-1); }

/* ===================== Dashboard widgets ===================== */
.a8-stat { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); min-width: 200px; box-sizing: border-box; }
.a8-stat-label { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink-muted); }
.a8-stat-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }
.a8-stat-value { font-size: 30px; line-height: 36px; font-weight: 700; white-space: nowrap; }
.a8-stat-value small, .a8-figure dd small { font-size: 15px; font-weight: 600; color: var(--ink-muted); margin-inline-start: 4px; }
.a8-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; font-weight: 700; }
.a8-delta-good { color: var(--success); } .a8-delta-bad { color: var(--danger); }
.a8-delta-period { color: var(--ink-muted); font-weight: 600; margin-inline-start: 4px; }
/* 1.7.0: compact StatTile — 32px round icon, label 13/600, value 18/700; up to eight in a row */
.a8-stats-compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); width: 100%; }
@media (max-width: 400px) { .a8-stats-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.a8-stat-compact { flex-direction: row; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); min-width: 0; color: var(--ink); text-decoration: none; }
.a8-stat-compact .a8-stat-icon { width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-items: center; flex: none; background: var(--surface-sunken); color: var(--ink-muted); }
.a8-stat-success .a8-stat-icon { background: var(--success-soft); color: var(--success); }
.a8-stat-compact .a8-stat-icon svg { width: 20px; height: 20px; }
.a8-stat-compact .a8-stat-text { display: flex; flex-direction: column; min-width: 0; }
.a8-stat-compact .a8-stat-label { font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a8-stat-compact .a8-stat-value { font-size: 18px; line-height: 24px; }
.a8-stat-compact .a8-stat-value small { font-size: 13px; }
.a8-stat-warning { background: var(--warning-soft); border-color: var(--warning); }
.a8-stat-warning .a8-stat-icon { background: var(--surface-raised); color: var(--warning); }
.a8-stat-danger { background: var(--danger-soft); border-color: var(--danger); }
.a8-stat-danger .a8-stat-icon { background: var(--surface-raised); color: var(--danger); }
a.a8-stat-compact:hover { border-color: var(--line-strong); }
a.a8-stat-warning:hover { border-color: var(--warning); } a.a8-stat-danger:hover { border-color: var(--danger); }
a.a8-stat-compact:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-figures { display: flex; flex-wrap: wrap; margin: 0; }
.a8-figure { padding: 0 var(--space-6); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.a8-figure:first-child { padding-inline-start: 0; border-inline-start: 0; }
.a8-figure dt { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.a8-figure dd { margin: 0; font-size: 22px; line-height: 30px; font-weight: 700; }
.a8-figure-note { display: block; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.a8-chartcard { gap: var(--space-4); min-width: 0; }
.a8-seg { display: inline-flex; background: var(--surface-sunken); border-radius: var(--radius-md); padding: 3px; gap: 2px; }
.a8-seg button { font: inherit; font-size: 13px; line-height: 18px; font-weight: 700; border: 0; background: none; color: var(--ink-muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.a8-seg button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-sm); }
.a8-device { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); width: 280px; box-sizing: border-box; }
.a8-device-down { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger), var(--shadow-sm); }
.a8-device-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.a8-device-name { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; min-width: 0; }
.a8-device-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a8-device-name svg { color: var(--ink-muted); flex: none; }
.a8-device-meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: -6px; }
.a8-device-trend { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-muted); font-weight: 600; }
.a8-device-facts { display: flex; gap: var(--space-5); margin: 0; padding-top: var(--space-2); border-top: 1px solid var(--line); }
.a8-device-facts dt { font-size: 13px; color: var(--ink-muted); font-weight: 600; }
.a8-device-facts dd { margin: 0; font-size: 14px; font-weight: 700; }
.a8-statuslist, .a8-feed { list-style: none; margin: 0; padding: 0; }
.a8-statuslist li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.a8-statuslist li:first-child { border-top: 0; }
.a8-statuslist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.a8-statuslist-main b { font-weight: 700; } .a8-statuslist-main span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.a8-statuslist time, .a8-feed time { font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
/* 1.7.0: IconStatus — a state as an icon; the word on hover, tap or focus and for screen readers */
.a8-istat { position: relative; display: inline-grid; place-items: center; flex: none; box-sizing: border-box; color: var(--ink-muted); text-decoration: none; border: 0; padding: 0; font: inherit; background: none; cursor: default; }
a.a8-istat, button.a8-istat { cursor: pointer; }
.a8-istat svg { width: 20px; height: 20px; }
.a8-istat-square { width: 32px; height: 32px; border-radius: var(--radius-md); }
.a8-istat-round { width: 36px; height: 36px; border-radius: var(--radius-full); }
.a8-istat-bare { width: 20px; height: 20px; }
.a8-istat-success { color: var(--success); } .a8-istat-warning { color: var(--warning); } .a8-istat-danger { color: var(--danger); } .a8-istat-accent { color: var(--accent); }
.a8-istat-square.a8-istat-neutral, .a8-istat-round.a8-istat-neutral { background: var(--surface-sunken); }
.a8-istat-square.a8-istat-success, .a8-istat-round.a8-istat-success { background: var(--success-soft); }
.a8-istat-square.a8-istat-warning, .a8-istat-round.a8-istat-warning { background: var(--warning-soft); }
.a8-istat-square.a8-istat-danger, .a8-istat-round.a8-istat-danger { background: var(--danger-soft); }
.a8-istat-square.a8-istat-accent, .a8-istat-round.a8-istat-accent { background: var(--accent-soft); }
a.a8-istat:hover, button.a8-istat:hover { filter: brightness(0.96); }
.a8-istat:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
/* the area you can tap is at least 44px, even when the icon is smaller */
.a8-istat::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
@media (max-width: 640px) { .a8-istat-round { width: 44px; height: 44px; } }
/* AttentionPulse — a soft halo for danger that needs action now; no blinking */
.a8-pulse { position: relative; display: inline-grid; place-items: center; border-radius: var(--radius-full); }
.a8-pulse::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: a8-halo 2.4s ease-out infinite; }
@keyframes a8-halo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent); } 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--danger) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .a8-pulse::before { animation: none; } }
.a8-feed li { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--space-3); padding: var(--space-3) 0; position: relative; }
.a8-feed li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 15px; top: 40px; bottom: -4px; width: 2px; background: var(--line); }
.a8-feed-icon { width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink-muted); }
.a8-feed-icon svg { width: 18px; height: 18px; }
.a8-feed-success .a8-feed-icon { background: var(--success-soft); color: var(--success); }
.a8-feed-warning .a8-feed-icon { background: var(--warning-soft); color: var(--warning); }
.a8-feed-danger .a8-feed-icon { background: var(--danger-soft); color: var(--danger); }
.a8-feed-info .a8-feed-icon { background: var(--accent-soft); color: var(--accent-mark); }
.a8-feed-title { font-weight: 700; font-size: 15px; line-height: 22px; }
.a8-feed-detail { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.a8-progress { display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; }
.a8-progress-head { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 14px; line-height: 20px; font-weight: 700; }
.a8-progress-head span:first-child { color: var(--ink-muted); font-weight: 600; }
.a8-progress-track { height: 8px; border-radius: var(--radius-full); background: var(--line); overflow: hidden; }
.a8-progress-fill { height: 100%; border-radius: inherit; transition: width .3s ease; }
.a8-progress-compact { gap: 4px; } .a8-progress-compact .a8-progress-head { font-size: 13px; line-height: 18px; } .a8-progress-compact .a8-progress-track { height: 6px; }
.a8-screentile { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-5); width: 200px; min-height: 200px; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-2); }
.a8-screentile-head { display: flex; align-items: center; gap: var(--space-2); font-size: 18px; line-height: 24px; font-weight: 700; }
.a8-screentile-head svg { color: var(--ink-muted); }
.a8-screentile-on .a8-screentile-head svg { color: var(--accent-mark); }
.a8-screentile-value { font-size: 48px; line-height: 56px; font-weight: 700; }
.a8-screentile-value small { font-size: 22px; margin-inline-start: 2px; color: var(--ink-muted); }
.a8-screentile-detail { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink-muted); }
.a8-screentile-btn { font: inherit; font-size: 18px; font-weight: 700; margin-top: auto; min-height: var(--target-screen); border-radius: var(--radius-lg); border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.a8-screentile-btn[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }

/* ===================== Overlays ===================== */
.a8-backdrop { position: fixed; inset: 0; background: rgba(15, 18, 24, .48); display: grid; place-items: center; padding: var(--space-4); z-index: 50; }
.a8-backdrop-inline { position: relative; inset: auto; min-height: 320px; border-radius: var(--radius-lg); }
.a8-dialog { background: var(--surface-raised); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: min(480px, 100%); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); box-sizing: border-box; }
.a8-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.a8-dialog-head h2 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 700; }
.a8-dialog-body { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.a8-dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-3); flex-wrap: wrap; }
.a8-toast { display: flex; align-items: center; gap: var(--space-3); background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-3) var(--space-2) var(--space-3) var(--space-4); width: min(420px, 100%); box-sizing: border-box; }
.a8-toast > svg { width: 22px; height: 22px; flex: none; }
.a8-toast-body { flex: 1; display: flex; flex-direction: column; font-size: 14px; line-height: 20px; }
.a8-toast-body b { font-size: 15px; }
.a8-toast-body span { color: var(--ink-muted); }
.a8-toast-info > svg { color: var(--accent-mark); } .a8-toast-success > svg { color: var(--success); } .a8-toast-warning > svg { color: var(--warning); } .a8-toast-danger > svg { color: var(--danger); }
.a8-toast-danger { border-color: var(--danger); }
.a8-menu-wrap { position: relative; display: inline-block; }
.a8-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 40; min-width: 200px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.a8-menu-end { inset-inline-start: auto; inset-inline-end: 0; }
.a8-menu-item { font: inherit; font-size: 15px; display: flex; align-items: center; gap: var(--space-3); border: 0; background: none; color: var(--ink); text-align: start; padding: 9px 10px; border-radius: 8px; cursor: pointer; min-height: 40px; }
.a8-menu-item span { flex: 1; } .a8-menu-item svg { color: var(--ink-muted); }
.a8-menu-item:hover { background: var(--surface-sunken); }
.a8-menu-item kbd { font: inherit; font-size: 12px; color: var(--ink-muted); }
.a8-menu-danger, .a8-menu-danger svg { color: var(--danger); }
.a8-menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.a8-tip { position: relative; display: inline-flex; }
.a8-tip-bubble { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface-raised); font-size: 13px; line-height: 18px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s ease; z-index: 30; }
.a8-tip-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ink); }
.a8-tip:hover .a8-tip-bubble, .a8-tip:focus-within .a8-tip-bubble, .a8-tip-show .a8-tip-bubble { opacity: 1; }

/* ===================== Find and browse ===================== */
.a8-search { position: relative; display: flex; align-items: center; min-width: 220px; }
.a8-search > svg { position: absolute; inset-inline-start: 12px; color: var(--ink-muted); pointer-events: none; }
.a8-search .a8-input { padding-inline-start: 40px; padding-inline-end: 40px; }
.a8-search .a8-input::-webkit-search-cancel-button { display: none; }
.a8-search .a8-iconbtn { position: absolute; inset-inline-end: 2px; width: 36px; height: 36px; }
.a8-filterbar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-3); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.a8-filterbar-search { flex: 1 1 240px; }
.a8-select-compact select { min-width: 150px; }
.a8-filterbar-count { font-size: 14px; color: var(--ink-muted); font-weight: 600; margin-inline-start: auto; padding: 0 var(--space-2); }
.a8-pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.a8-pager-summary { font-size: 14px; color: var(--ink-muted); margin-inline-end: auto; padding-inline-end: var(--space-4); }
.a8-pager-num { font: inherit; font-size: 14px; font-weight: 700; min-width: 36px; height: 36px; border: 0; border-radius: var(--radius-md); background: none; color: var(--ink-muted); cursor: pointer; }
.a8-pager-num:hover { background: var(--surface-sunken); color: var(--ink); }
.a8-pager-num[aria-current="page"] { background: var(--accent-fill); color: var(--on-accent); }
.a8-pager-gap { color: var(--ink-muted); padding: 0 6px; }
.a8-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); padding: var(--space-8) var(--space-6); border: 2px dashed var(--line); border-radius: var(--radius-xl); }
.a8-empty-icon { width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-mark); display: grid; place-items: center; margin-bottom: var(--space-2); }
.a8-empty h3 { margin: 0; font-size: 18px; line-height: 26px; } .a8-empty p { margin: 0; color: var(--ink-muted); max-width: 380px; }
.a8-empty-action { margin-top: var(--space-3); }
.a8-avatar { display: inline-grid; place-items: center; border-radius: var(--radius-full); background: var(--surface-sunken); color: var(--ink); font-weight: 700; overflow: hidden; flex: none; border: 2px solid var(--surface-raised); box-sizing: border-box; }
.a8-avatar img { width: 100%; height: 100%; object-fit: cover; }
.a8-avatars { display: flex; } .a8-avatars .a8-avatar + .a8-avatar { margin-inline-start: -8px; }
.a8-skel { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--surface-sunken) 0%, var(--line) 50%, var(--surface-sunken) 100%); background-size: 200% 100%; animation: a8-shimmer 1.4s ease-in-out infinite; }
.a8-skel-lines { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.a8-skel-card { width: 320px; gap: var(--space-3); }
@keyframes a8-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .a8-skel { animation: none; } .a8-progress-fill { transition: none; } }
.a8-tree { font-size: 15px; min-width: 220px; }
.a8-tree ul { list-style: none; margin: 0; padding: 0; }
.a8-tree-title { font-size: 13px; font-weight: 700; color: var(--ink-muted); padding: 0 var(--space-2) var(--space-2); }
.a8-tree-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--radius-md); min-height: 36px; box-sizing: border-box; }
.a8-tree-row:hover { background: var(--surface-sunken); }
.a8-tree-row > svg { color: var(--ink-muted); flex: none; }
.a8-tree-active { background: var(--accent-soft); } .a8-tree-active:hover { background: var(--accent-soft); }
.a8-tree-active .a8-tree-label { color: var(--accent); font-weight: 700; } .a8-tree-active > svg { color: var(--accent-mark); }
.a8-tree-caret { width: 20px; height: 20px; display: inline-grid; place-items: center; border: 0; background: none; padding: 0; color: var(--ink-muted); cursor: pointer; flex: none; border-radius: 6px; }
.a8-tree-caret svg { transition: transform .15s ease; } .a8-tree-open svg { transform: rotate(90deg); }
.a8-tree-label { flex: 1; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px; }
.a8-tree-count { font-size: 13px; color: var(--ink-muted); font-weight: 600; }
.a8-panes { display: grid; grid-template-columns: minmax(150px, 220px) minmax(180px, 300px) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.a8-pane { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); min-width: 0; box-sizing: border-box; }
.a8-pane-main { padding: var(--space-6); }
@media (max-width: 700px) { .a8-panes { grid-template-columns: 1fr; } .a8-pane-nav { display: none; } }
.a8-detail { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-6); width: 360px; display: flex; flex-direction: column; gap: var(--space-4); box-sizing: border-box; }
.a8-detail-head { display: flex; justify-content: space-between; gap: var(--space-3); }
.a8-detail-head h2 { margin: 0; font-size: 22px; line-height: 30px; }
.a8-detail-eyebrow { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.a8-kv { margin: 0; display: flex; flex-direction: column; }
.a8-kv > div { display: flex; justify-content: space-between; gap: var(--space-4); padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.a8-kv dt { color: var(--ink-muted); } .a8-kv dd { margin: 0; font-weight: 700; text-align: end; }
.a8-detail-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.a8-kanban { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-3) var(--space-4); width: 260px; display: flex; flex-direction: column; gap: var(--space-2); box-sizing: border-box; cursor: grab; }
.a8-kanban:hover { border-color: var(--line-strong); }
.a8-kanban-top { display: flex; justify-content: space-between; align-items: center; }
.a8-kanban-key { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.a8-kanban-title { font-weight: 700; font-size: 15px; line-height: 22px; }
.a8-kanban-foot { display: flex; justify-content: space-between; align-items: center; }
.a8-kanban-due { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
/* 1.7.0: priority icon (20px); the word shows on hover and is read out */
.a8-prio { display: inline-grid; place-items: center; flex: none; }
.a8-prio svg { width: 20px; height: 20px; }
.a8-prio-labelled { display: inline-flex; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 700; }
.a8-prio-urgent { color: var(--danger); } .a8-prio-high { color: var(--accent); } .a8-prio-medium { color: var(--warning); } .a8-prio-low { color: var(--ink-muted); }
.a8-board-col { background: var(--surface-sunken); border-radius: var(--radius-lg); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.a8-board-col h3, .a8-board-col h4 { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-muted); display: flex; justify-content: space-between; }

/* ===================== Map marker (Track8) ===================== */
.a8-marker { position: absolute; display: flex; align-items: center; gap: 6px; transform: translate(-16px, -16px); }
.a8-marker-dot { width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--accent-fill); color: var(--on-accent); border: 3px solid #FFFFFF; box-shadow: 0 2px 6px rgba(0,0,0,.3); box-sizing: border-box; }
.a8-marker-stopped .a8-marker-dot { background: #FFFFFF; border-color: var(--accent-fill); }
.a8-marker-stop { width: 10px; height: 10px; border-radius: 2px; background: var(--accent-fill); }
.a8-marker-offline .a8-marker-dot { background: #8A8F98; color: #FFFFFF; }
.a8-marker-label { background: #FFFFFF; color: #1C2430; font-size: 13px; line-height: 16px; font-weight: 700; padding: 4px 8px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.25); white-space: nowrap; display: flex; flex-direction: column; }
.a8-marker-label small { font-size: 12px; font-weight: 600; color: #5B6573; }
.a8-marker-selected .a8-marker-dot { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 7px var(--accent-fill); }
.a8-map { position: relative; height: 300px; border-radius: var(--radius-lg); overflow: hidden; background: #EAEDE4; border: 1px solid var(--line); }

/* ===================== Touchscreen widgets ===================== */
.a8-screentile-wide { width: 416px; }
.a8-agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.a8-agenda li { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-3); font-size: 18px; line-height: 24px; font-weight: 700; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.a8-agenda li:first-child { border-top: 0; padding-top: 0; }
.a8-agenda time { color: var(--accent-mark); font-size: 19px; }
.a8-agenda small { display: block; font-size: 16px; color: var(--ink-muted); }
.a8-imagetile { margin: 0; padding: 0; overflow: hidden; position: relative; }
.a8-imagetile img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.a8-imagetile-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-muted); background: var(--surface-sunken); }
.a8-imagetile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-3) var(--space-4); font-size: 18px; font-weight: 700; color: #FFFFFF; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0)); }

/* ===================== Web app ===================== */
.a8-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); }
.a8-steps li { flex: 1; display: flex; align-items: flex-start; gap: var(--space-3); position: relative; padding-top: 2px; }
.a8-step-dot { width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-items: center; font-size: 14px; font-weight: 700; flex: none; border: 2px solid var(--line-strong); color: var(--ink-muted); background: var(--surface-raised); box-sizing: border-box; position: relative; z-index: 1; }
.a8-step-done .a8-step-dot { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.a8-step-current .a8-step-dot { border-color: var(--accent-fill); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.a8-step-text { display: flex; flex-direction: column; padding-top: 4px; background: var(--surface); padding-inline-end: var(--space-2); position: relative; z-index: 1; }
.a8-step-text b { font-size: 14px; line-height: 20px; } .a8-step-todo .a8-step-text b { color: var(--ink-muted); }
.a8-step-text small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.a8-wizard { display: flex; flex-direction: column; gap: var(--space-6); }
.a8-wizard-body { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.a8-wizard-actions { display: flex; justify-content: space-between; gap: var(--space-3); }
.a8-wizard-v .a8-steps { flex-direction: column; gap: var(--space-5); }
.a8-wizard-v .a8-steps li:not(:last-child)::after { content: ""; position: absolute; top: 36px; bottom: -18px; inset-inline-start: 15px; width: 2px; background: var(--line); }
.a8-wizard-v .a8-steps li.a8-step-done:not(:last-child)::after { background: var(--accent-fill); }
.a8-pipe { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-4); }
.a8-pipe li { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.a8-pipe li:first-child { border-top: 0; }
.a8-pipe-dot { width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink-muted); }
.a8-pipe-done .a8-pipe-dot { background: var(--success-soft); color: var(--success); }
.a8-pipe-failed .a8-pipe-dot { background: var(--danger-soft); color: var(--danger); }
.a8-pipe-running .a8-pipe-dot { background: var(--accent-soft); color: var(--accent); }
.a8-pipe-running .a8-pipe-dot svg { animation: a8-spin 1s linear infinite; }
@keyframes a8-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .a8-pipe-running .a8-pipe-dot svg { animation: none; } }
.a8-pipe-text { display: flex; flex-direction: column; } .a8-pipe-text b { font-size: 15px; } .a8-pipe-text span { font-size: 13px; color: var(--ink-muted); }
.a8-pipe-failed .a8-pipe-text span { color: var(--danger); font-weight: 600; }
.a8-pipe time { font-size: 13px; color: var(--ink-muted); }
.a8-pair { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); max-width: 480px; box-sizing: border-box; }
.a8-pair-text { margin: 0; color: var(--ink-muted); }
.a8-pair-code { display: flex; gap: var(--space-2); justify-content: center; }
.a8-pair-code span { width: 52px; height: 64px; display: grid; place-items: center; font-size: 34px; font-weight: 700; border-radius: var(--radius-md); background: var(--surface-sunken); border: 2px solid var(--line); }
.a8-pair-code span.a8-pair-sep { width: 12px; background: none; border: 0; }
.a8-pair-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-muted); }
.a8-pair-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.a8-choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.a8-choices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-3); }
.a8-choice { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); cursor: pointer; }
.a8-choice:hover { border-color: var(--line-strong); }
.a8-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a8-choice:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.a8-choice-on, .a8-choice-on:hover { border-color: var(--accent-fill); background: var(--accent-soft); }
.a8-choice-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink); }
.a8-choice-on .a8-choice-icon { background: var(--accent-fill); color: var(--on-accent); }
.a8-choice-img { width: 100%; height: 96px; object-fit: contain; }
.a8-choice-text { display: flex; flex-direction: column; } .a8-choice-text small { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.a8-choice .a8-badge { align-self: flex-start; }
.a8-choice-check { position: absolute; top: 12px; inset-inline-end: 12px; width: 22px; height: 22px; border-radius: var(--radius-full); border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; box-sizing: border-box; }
.a8-choice-on .a8-choice-check { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.a8-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); align-items: stretch; }
.a8-plan { position: relative; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.a8-plan-hl { border: 2px solid var(--accent-fill); box-shadow: var(--shadow-lg); }
.a8-plan-badge { position: absolute; top: -13px; inset-inline-start: var(--space-6); background: var(--accent-fill); color: var(--on-accent); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-sm); }
.a8-plan h3 { margin: 0; font-size: 20px; line-height: 28px; }
.a8-plan-desc { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.a8-plan-price b { font-size: 36px; line-height: 44px; } .a8-plan-price span { color: var(--ink-muted); font-size: 14px; margin-inline-start: 4px; }
.a8-plan-cta { width: 100%; }
.a8-plan ul { list-style: none; margin: 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-2); font-size: 14px; line-height: 20px; }
.a8-plan li { display: flex; gap: var(--space-2); } .a8-plan li svg { color: var(--success); flex: none; margin-top: 1px; }
.a8-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; }
.a8-crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-muted); }
.a8-crumbs a { color: var(--ink-muted); text-decoration: none; border-radius: 4px; } .a8-crumbs a:hover { color: var(--accent); text-decoration: underline; }
.a8-crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.a8-sidenav { min-width: 220px; display: flex; flex-direction: column; gap: var(--space-5); }
.a8-sidenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.a8-sidenav-title { font-size: 13px; font-weight: 700; color: var(--ink-muted); padding: 0 var(--space-3) var(--space-2); }
.a8-sidenav-link { display: flex; align-items: center; gap: var(--space-3); padding: 8px var(--space-3); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: 15px; min-height: 40px; box-sizing: border-box; }
.a8-sidenav-link span:first-of-type { flex: 1; } .a8-sidenav-link svg { color: var(--ink-muted); }
.a8-sidenav-link:hover { background: var(--surface-sunken); }
.a8-sidenav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; } .a8-sidenav-link[aria-current="page"] svg { color: var(--accent-mark); }
/* 1.7.0: count disc — dark neutral for plain counts, red for problems; never the product colour */
.a8-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: var(--radius-full);
  background: var(--ink); color: var(--surface-raised); font-size: 13px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.a8-count-danger { background: var(--danger); color: var(--on-danger); }
.a8-sidenav-link .a8-count span { flex: none; }
.a8-sidenav-link:focus-visible, .a8-crumbs a:focus-visible, .a8-swatch:focus-visible, .a8-iconcell:focus-visible, .a8-faq summary:focus-visible, .a8-code pre:focus-visible, .a8-pubhead-links a:focus-visible, .a8-pubfoot a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-lang { align-items: center; } .a8-lang > svg { color: var(--ink-muted); margin: 0 4px 0 6px; }
.a8-pw-input { position: relative; } .a8-pw-input .a8-input { padding-inline-end: 44px; } .a8-pw-input .a8-iconbtn { position: absolute; inset-inline-end: 2px; top: 2px; }
.a8-pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; } .a8-pw-meter span { height: 6px; border-radius: 3px; background: var(--line); }
.a8-pw { max-width: 400px; }
.a8-code { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-raised); }
.a8-code figcaption { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 4px var(--space-4); background: var(--surface-sunken); font-size: 13px; font-weight: 700; color: var(--ink-muted); border-bottom: 1px solid var(--line); }
.a8-code .a8-btn { min-height: 32px; font-size: 13px; }
.a8-code pre { margin: 0; padding: var(--space-3) var(--space-4); overflow: auto; font-family: var(--font-mono); font-size: 13px; line-height: 21px; color: var(--ink); }
.a8-code-line { display: block; white-space: pre; } .a8-code-n { display: inline-block; width: 28px; color: var(--ink-muted); user-select: none; }
.a8-faq { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); overflow: hidden; }
.a8-faq details + details { border-top: 1px solid var(--line); }
.a8-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); font-weight: 700; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.a8-faq summary::-webkit-details-marker { display: none; }
.a8-faq summary svg { color: var(--ink-muted); transition: transform .15s ease; flex: none; }
.a8-faq details[open] summary svg { transform: rotate(180deg); }
.a8-faq-a { padding: 0 var(--space-5) var(--space-5); color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.a8-upload-wrap { display: flex; flex-direction: column; gap: var(--space-3); max-width: 520px; }
.a8-upload { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; padding: var(--space-8) var(--space-6); border: 2px dashed var(--line-strong); border-radius: var(--radius-xl); background: var(--surface-raised); cursor: pointer; }
.a8-upload:hover, .a8-upload-over { border-color: var(--accent-fill); background: var(--accent-soft); }
.a8-upload:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.a8-upload-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.a8-upload-list li { display: grid; grid-template-columns: 18px 1fr auto; gap: var(--space-2); align-items: center; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); font-size: 14px; }
.a8-upload-list li small { color: var(--ink-muted); } .a8-upload-list li .a8-progress { grid-column: 1 / -1; }
.a8-colorpick { display: flex; flex-direction: column; gap: var(--space-3); max-width: 320px; }
.a8-swatches { display: grid; grid-template-columns: repeat(8, 32px); gap: 8px; }
.a8-swatch { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid rgba(0,0,0,.15); cursor: pointer; display: grid; place-items: center; padding: 0; color: #FFFFFF; }
.a8-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.a8-swatch svg { filter: drop-shadow(0 0 1px rgba(0,0,0,.8)); }
.a8-color-custom { display: flex; gap: var(--space-2); align-items: center; }
.a8-color-custom input[type="color"] { width: 44px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: none; padding: 2px; cursor: pointer; }
.a8-color-custom .a8-input { font-family: var(--font-mono); }
.a8-iconpick { display: flex; flex-direction: column; gap: var(--space-3); max-width: 420px; }
.a8-icongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; max-height: 200px; overflow: auto; padding: 2px; }
.a8-iconcell { width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--radius-md); background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.a8-iconcell:hover { background: var(--surface-sunken); }
.a8-iconcell[aria-checked="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-fill); }
.a8-banner { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-6); font-size: 14px; line-height: 20px; font-weight: 600; }
.a8-banner > svg { width: 20px; height: 20px; flex: none; }
.a8-banner-text { flex: 1; }
.a8-banner-info { background: var(--accent-soft); color: var(--ink); } .a8-banner-info > svg { color: var(--accent-mark); }
.a8-banner-warning { background: var(--warning-soft); color: var(--ink); } .a8-banner-warning > svg { color: var(--warning); }
.a8-banner-danger { background: var(--danger-soft); color: var(--ink); } .a8-banner-danger > svg { color: var(--danger); }
.a8-banner-impersonate { background: var(--ink); color: var(--surface-raised); }
.a8-banner-impersonate .a8-btn-secondary { background: transparent; color: inherit; border-color: currentColor; }
.a8-banner .a8-btn { min-height: 32px; }

/* ===================== Public website ===================== */
.a8-pubhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); padding: var(--space-4) var(--space-6); background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.a8-pubhead-links { display: flex; gap: var(--space-6); flex: 1; }
.a8-pubhead-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 4px; } .a8-pubhead-links a:hover { color: var(--accent); }
.a8-pubhead-end { display: flex; align-items: center; gap: var(--space-3); }
.a8-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: center; padding: var(--space-12) var(--space-8); }
.a8-hero-eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: var(--radius-full); margin-bottom: var(--space-4); }
.a8-hero h1 { margin: 0 0 var(--space-4); font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -.02em; }
.a8-hero p { margin: 0 0 var(--space-6); font-size: 18px; line-height: 30px; color: var(--ink-muted); max-width: 520px; }
.a8-hero-note { margin-top: var(--space-3); font-size: 14px; color: var(--ink-muted); }
.a8-hero-media { display: flex; justify-content: center; }
@media (max-width: 760px) { .a8-hero { grid-template-columns: 1fr; padding: var(--space-8) var(--space-5); } .a8-hero h1 { font-size: 36px; line-height: 44px; } }
@media (max-width: 640px) { .a8-pubhead-links { display: none; } }
.a8-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-6); }
.a8-feature h2, .a8-feature h3, .a8-feature h4 { margin: var(--space-3) 0 var(--space-2); font-size: 18px; line-height: 26px; }
.a8-feature p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.a8-feature-icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-mark); }
.a8-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-6); counter-reset: none; }
.a8-how li { position: relative; }
.a8-how-n { width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--accent-fill); color: var(--on-accent); display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.a8-how h3 { margin: var(--space-3) 0 var(--space-2); font-size: 18px; line-height: 26px; } .a8-how p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.a8-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; padding: var(--space-8); border-radius: var(--radius-xl); background: var(--accent-fill); color: var(--on-accent); }
.a8-cta h2 { margin: 0; font-size: 28px; line-height: 36px; } .a8-cta p { margin: var(--space-2) 0 0; font-size: 16px; line-height: 26px; }
.a8-cta .a8-btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: transparent; }
.a8-pubfoot { background: var(--surface-raised); border-top: 1px solid var(--line); padding: var(--space-8) var(--space-8) var(--space-5); display: flex; flex-direction: column; gap: var(--space-8); }
.a8-pubfoot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); }
.a8-pubfoot-brand p { color: var(--ink-muted); font-size: 14px; line-height: 22px; margin: var(--space-3) 0 0; max-width: 260px; }
.a8-pubfoot h2, .a8-pubfoot h4 { margin: 0 0 var(--space-3); font-size: 14px; line-height: 20px; font-weight: 700; } .a8-pubfoot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.a8-pubfoot-col a { color: var(--ink-muted); text-decoration: none; font-size: 14px; border-radius: 4px; } .a8-pubfoot-col a:hover { color: var(--accent); }
.a8-pubfoot-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
@media (max-width: 760px) { .a8-pubfoot-top { grid-template-columns: 1fr 1fr; } }


/* ===================== Website content ===================== */
.a8-textarea { min-height: 120px; padding: 10px var(--space-3); line-height: 24px; resize: vertical; }
.a8-field-foot { display: flex; justify-content: space-between; gap: var(--space-3); }
.a8-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; }
.a8-link:hover { text-decoration-thickness: 2px; }
.a8-link:focus-visible, .a8-gallery-item:focus-visible, .a8-lightbox-btn:focus-visible, .a8-contact a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-signin { width: min(400px, 100%); align-items: stretch; gap: var(--space-4); padding: var(--space-8) var(--space-6); }
.a8-signin > .a8-logo { align-self: center; }
.a8-signin-title { margin: 0; font-size: 22px; line-height: 30px; text-align: center; }
.a8-signin .a8-card-sub { text-align: center; margin-top: -8px; }
.a8-signin .a8-field { min-width: 0; }
.a8-signin-pw { display: flex; flex-direction: column; gap: var(--space-2); }
.a8-signin-forgot { align-self: flex-end; font-size: 14px; }
.a8-signin-submit { width: 100%; }
.a8-signin-foot { text-align: center; font-size: 14px; color: var(--ink-muted); }
.a8-quote { margin: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); max-width: 440px; box-sizing: border-box; }
.a8-quote-mark { color: var(--accent-fill); }
.a8-quote blockquote { margin: 0; font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink); }
.a8-quote figcaption { display: flex; align-items: center; gap: var(--space-3); }
.a8-quote figcaption > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.a8-quote figcaption small { font-size: 14px; color: var(--ink-muted); }
.a8-quote-stars { display: inline-flex; gap: 2px; color: var(--line-strong); }
.a8-quote-stars .a8-star-on { color: var(--warning-fill); }
.a8-quote-stars .a8-star-on svg path { fill: currentColor; }
.a8-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); }
.a8-gallery-item { font: inherit; position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in; background: var(--surface-sunken); }
.a8-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.a8-gallery-item:hover img { transform: scale(1.04); }
.a8-gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-2) var(--space-3); font-size: 13px; font-weight: 700; color: #FFFFFF; text-align: start; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0)); }
.a8-lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 16, .9); display: grid; place-items: center; padding: var(--space-12) 72px; }
.a8-lightbox-inline { position: absolute; border-radius: var(--radius-lg); }
.a8-gallery-wrap { position: relative; }
.a8-lightbox figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); max-width: 100%; max-height: 100%; }
.a8-lightbox img { max-width: 100%; max-height: 70vh; border-radius: var(--radius-md); object-fit: contain; }
.a8-lightbox figcaption { display: flex; justify-content: space-between; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.a8-lightbox-btn { position: absolute; width: 48px; height: 48px; border-radius: var(--radius-full); border: 0; background: rgba(255,255,255,.14); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.a8-lightbox-btn:hover { background: rgba(255,255,255,.26); }
.a8-lightbox-close { top: var(--space-4); right: var(--space-4); }
.a8-lightbox-prev { left: var(--space-4); top: 50%; margin-top: -24px; } .a8-lightbox-next { right: var(--space-4); top: 50%; margin-top: -24px; }
.a8-hours, .a8-contact { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); max-width: 400px; box-sizing: border-box; }
.a8-hours dl, .a8-contact dl { margin: 0; display: flex; flex-direction: column; }
.a8-hours dl > div { display: flex; justify-content: space-between; gap: var(--space-4); padding: 8px var(--space-3); border-radius: var(--radius-md); font-size: 15px; }
.a8-hours dt { color: var(--ink-muted); } .a8-hours dd { margin: 0; font-weight: 700; }
.a8-hours-today { background: var(--accent-soft); } .a8-hours-today dt, .a8-hours-today dd { color: var(--accent); font-weight: 700; }
.a8-hours-closed { color: var(--ink-muted); font-weight: 600 !important; }
.a8-hours-note { margin: 0; font-size: 14px; color: var(--ink-muted); }
.a8-contact dl > div { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.a8-contact dl > div:first-child { border-top: 0; padding-top: 0; }
.a8-contact dt { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.a8-contact dd { margin: 0; font-size: 16px; font-weight: 700; }
.a8-contact dd a { color: var(--accent); text-decoration: none; border-radius: 4px; } .a8-contact dd a:hover { text-decoration: underline; }
.a8-contact-note { margin: 0; display: flex; gap: var(--space-2); font-size: 14px; line-height: 22px; color: var(--ink-muted); background: var(--surface-sunken); border-radius: var(--radius-md); padding: var(--space-3); }
.a8-contact-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-mark); }
.a8-mapblock { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.a8-mapblock-map { position: relative; background: #E8EBE3; }
.a8-mapblock-map > iframe, .a8-mapblock-map > img { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.a8-mapblock-placeholder { position: absolute; inset: 0; background-color: #E8EBE3; background-image: linear-gradient(100deg, transparent 47%, #FFFFFF 47%, #FFFFFF 50%, transparent 50%), linear-gradient(10deg, transparent 60%, #FFFFFF 60%, #FFFFFF 62.5%, transparent 62.5%), linear-gradient(170deg, transparent 30%, #F6E2B5 30%, #F6E2B5 32%, transparent 32%); }
.a8-mapblock-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.a8-mapblock-info { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); flex-wrap: wrap; }
.a8-mapblock-info b { display: block; } .a8-mapblock-info span { font-size: 14px; color: var(--ink-muted); }

/* ===================== 1.2.0 ===================== */
.a8-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Overlays shown in place, for documentation */
.a8-overlay-inline { position: relative !important; inset: auto !important; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; z-index: 0 !important; }

/* Bottom sheet */
.a8-sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(15, 18, 24, .48); display: flex; align-items: flex-end; justify-content: center; animation: a8-fade .2s ease; }
.a8-sheet { width: 100%; max-width: 640px; max-height: 90vh; display: flex; flex-direction: column; background: var(--surface-raised); color: var(--ink);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-lg); padding-bottom: env(safe-area-inset-bottom); animation: a8-up .25s cubic-bezier(.2, .8, .2, 1); transition: transform .2s ease; outline: none; }
.a8-sheet-grab { touch-action: none; cursor: grab; padding: 8px var(--space-5) 0; }
.a8-sheet-handle { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 8px; }
.a8-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-3); }
.a8-sheet-head h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.a8-sheet-body { padding: 0 var(--space-5) var(--space-5); overflow: auto; font-size: 15px; line-height: 24px; }
.a8-sheet-actions { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); }
.a8-sheet-actions > * { flex: 1; }
@keyframes a8-up { from { transform: translateY(100%); } }
@keyframes a8-fade { from { opacity: 0; } }

/* Side drawer */
.a8-drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(15, 18, 24, .48); display: flex; justify-content: flex-end; animation: a8-fade .2s ease; }
.a8-drawer-start { justify-content: flex-start; }
.a8-drawer { width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-lg); outline: none; animation: a8-in-end .25s cubic-bezier(.2, .8, .2, 1); }
.a8-drawer-start .a8-drawer { animation-name: a8-in-start; }
.a8-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.a8-drawer-head h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.a8-drawer-body { flex: 1; overflow: auto; padding: var(--space-5); font-size: 15px; line-height: 24px; }
.a8-drawer-actions { display: flex; gap: var(--space-3); justify-content: flex-end; padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); }
@keyframes a8-in-end { from { transform: translateX(100%); } }
@keyframes a8-in-start { from { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .a8-sheet, .a8-drawer, .a8-sheet-backdrop, .a8-drawer-backdrop { animation: none; } }

/* Popover */
.a8-pop-wrap { position: relative; display: inline-block; }
.a8-pop { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 45; width: 320px; max-width: calc(100vw - 32px); box-sizing: border-box;
  background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-4); animation: a8-fade .12s ease; }
.a8-pop-end { inset-inline-start: auto; inset-inline-end: 0; }
.a8-pop-top { top: auto; bottom: calc(100% + 8px); }
.a8-pop-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin: -4px -6px var(--space-2) 0; }
.a8-pop-head h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; }
.a8-pop-body { font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.a8-pop-body .a8-field { min-width: 0; }
.a8-pop-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-4); }

/* Radio buttons */
.a8-radios { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.a8-radios legend { padding: 0; margin-bottom: 4px; }
.a8-radios-list { display: flex; flex-direction: column; }
.a8-radios-row .a8-radios-list { flex-direction: row; flex-wrap: wrap; gap: 0 var(--space-6); }
.a8-radio { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--target-min); padding: 10px 0; box-sizing: border-box; cursor: pointer; font-size: 16px; line-height: 24px; }
.a8-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.a8-radio-dot { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface-raised); box-sizing: border-box; flex: none; display: grid; place-items: center; }
.a8-radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-accent); transform: scale(0); transition: transform .12s ease; }
.a8-radio input:checked + .a8-radio-dot { background: var(--accent-fill); border-color: var(--accent-fill); }
.a8-radio input:checked + .a8-radio-dot::after { transform: scale(1); }
.a8-radio input:focus-visible + .a8-radio-dot { box-shadow: var(--focus-ring); }
.a8-radio-text small { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.a8-radio input:disabled + .a8-radio-dot { background: var(--fill-disabled); border-color: var(--line); }
.a8-radio:has(input:disabled), .a8-radios:disabled .a8-radio { color: var(--ink-disabled); cursor: not-allowed; }

/* Segmented control */
.a8-segctl { display: inline-flex; background: var(--surface-sunken); border-radius: var(--radius-md); padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.a8-segctl button { font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 var(--space-4); border: 0; border-radius: 8px; background: none; color: var(--ink-muted); cursor: pointer; white-space: nowrap; }
.a8-segctl button:hover { color: var(--ink); }
.a8-segctl button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-sm); }
.a8-segctl button:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-segctl button:disabled { color: var(--ink-disabled); cursor: not-allowed; }
.a8-segctl-sm button { min-height: 28px; font-size: 13px; padding: 0 var(--space-3); }
.a8-segctl-full { display: flex; width: 100%; } .a8-segctl-full button { flex: 1; }

/* Slider */
.a8-slider { min-width: 240px; }
.a8-slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.a8-slider-val { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.a8-slider input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 4px 0; background: transparent; cursor: pointer; }
.a8-slider input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent-fill) var(--a8-pct, 0%), var(--line-strong) var(--a8-pct, 0%)); }
.a8-slider input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-strong); }
.a8-slider input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent-fill); }
.a8-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--accent-fill); box-shadow: var(--shadow-sm); }
.a8-slider input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--accent-fill); box-shadow: var(--shadow-sm); }
.a8-slider input[type="range"]:focus-visible { outline: none; }
.a8-slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-ring); }
.a8-slider input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: var(--focus-ring); }
.a8-slider input[type="range"]:disabled { cursor: not-allowed; opacity: .5; }
.a8-slider-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-muted); }

/* Spinner */
.a8-spinner { display: inline-flex; color: var(--accent-mark); vertical-align: middle; }
.a8-btn .a8-spinner { color: inherit; }
.a8-spinner-8 { stroke-dasharray: 852 852; animation: a8-draw8 1.8s linear infinite; }
@keyframes a8-draw8 { 0% { stroke-dashoffset: 852; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes a8-fade8 { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes a8-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .a8-spinner-8 { stroke-dasharray: none; animation: a8-fade8 1.6s ease-in-out infinite; } }

/* Date and time */
.a8-datefield, .a8-combo { position: relative; }
.a8-date-btn { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); text-align: start; cursor: pointer; width: 100%; }
.a8-date-btn svg { color: var(--ink-muted); flex: none; }
.a8-date-empty span { color: var(--ink-muted); }
.a8-date-pop { width: auto; padding: var(--space-3); }
.a8-cal { width: 300px; max-width: 100%; margin: 0 auto; }
.a8-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.a8-cal-head b { font-size: 15px; }
.a8-cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.a8-cal-grid th { font-size: 12px; font-weight: 700; color: var(--ink-muted); padding: 4px 0; text-transform: capitalize; }
.a8-cal-grid td { padding: 1px; text-align: center; }
.a8-cal-day { font: inherit; font-size: 14px; width: 100%; aspect-ratio: 1; max-width: 42px; min-height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.a8-cal-day:hover { background: var(--surface-sunken); }
.a8-cal-other { color: var(--ink-muted); }
.a8-cal-today { box-shadow: inset 0 0 0 2px var(--line-strong); font-weight: 700; }
/* 1.7.0: full calendars (month and week views): today's number is filled with the product colour and the day gets a soft tint.
   DatePicker keeps the ring, because there a fill means "picked". */
.a8-calview-day { vertical-align: top; }
.a8-calview-num { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: var(--radius-full); font-size: 13px; line-height: 18px; font-weight: 700; }
.a8-calview-today { background: var(--accent-soft); }
.a8-calview-today .a8-calview-num { background: var(--accent-fill); color: var(--on-accent); }
.a8-cal-sel, .a8-cal-sel:hover { background: var(--accent-fill); color: var(--on-accent); font-weight: 700; box-shadow: none; }
.a8-cal-day:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-cal-day:disabled { color: var(--ink-disabled); text-decoration: line-through; cursor: not-allowed; background: none; }
/* DateRangePicker: the days between start and end get a soft band */
.a8-cal-grid td.a8-cal-in { background: var(--accent-soft); }
.a8-cal-grid td.a8-cal-in-s { background: linear-gradient(to right, transparent 50%, var(--accent-soft) 50%); }
.a8-cal-grid td.a8-cal-in-e { background: linear-gradient(to left, transparent 50%, var(--accent-soft) 50%); }
[dir="rtl"] .a8-cal-grid td.a8-cal-in-s { background: linear-gradient(to left, transparent 50%, var(--accent-soft) 50%); }
[dir="rtl"] .a8-cal-grid td.a8-cal-in-e { background: linear-gradient(to right, transparent 50%, var(--accent-soft) 50%); }
.a8-cal-in .a8-cal-day:hover { background: var(--surface-raised); }
.a8-range-pop { width: auto; }
.a8-rangefield .a8-date-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.a8-range-panel { display: flex; gap: var(--space-4); align-items: flex-start; }
.a8-range-presets { display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding-inline-end: var(--space-3); border-inline-end: 1px solid var(--line); }
.a8-range-presets button { font: inherit; font-size: 14px; line-height: 20px; text-align: start; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; white-space: nowrap; }
.a8-range-presets button:hover { background: var(--surface-sunken); }
.a8-range-presets button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.a8-range-presets button:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-range-main { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.a8-range-status { font-size: 14px; line-height: 20px; color: var(--ink-muted); text-align: center; }
.a8-range-times { display: flex; gap: var(--space-3); }
.a8-range-times .a8-field { min-width: 0; flex: 1; }
.a8-range-actions { display: flex; justify-content: flex-end; gap: var(--space-2); }
@media (max-width: 600px) {
  .a8-range-panel { flex-direction: column; gap: var(--space-3); }
  .a8-range-presets { flex-direction: row; flex-wrap: wrap; gap: var(--space-2); min-width: 0; padding: 0; border: 0; }
  .a8-range-presets button { background: var(--surface-sunken); }
  .a8-range-main { width: 100%; }
}
/* TagPicker: chips inside the field, typing in the same line */
.a8-tags-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; height: auto; padding: 5px 8px; cursor: text; }
.a8-tags-box:focus-within { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-tags-box[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; padding: 4px 7px; }
.a8-tags-box[aria-disabled="true"] { background: var(--fill-disabled); border-color: var(--line); cursor: not-allowed; }
.a8-tag { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; line-height: 20px; font-weight: 600; padding: 3px 4px 3px 10px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); max-width: 100%; }
.a8-tag button { font: inherit; width: 24px; height: 24px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer; flex: none; }
.a8-tag button:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.a8-tag button:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-tags-input { flex: 1; min-width: 8ch; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); padding: 4px 2px; }
.a8-tags-input::placeholder { color: var(--ink-muted); }
.a8-tags-new { color: var(--accent); font-weight: 600; }
.a8-tags-new svg { color: var(--accent-mark); }
.a8-time-wrap { position: relative; }
.a8-time-wrap .a8-input { width: 100%; box-sizing: border-box; padding-inline-end: 40px; }

/* Combobox */
.a8-combo-box { position: relative; }
.a8-combo-box .a8-input { width: 100%; box-sizing: border-box; padding-inline-end: 40px; }
.a8-combo-box .a8-iconbtn { position: absolute; inset-inline-end: 2px; top: 50%; transform: translateY(-50%); }
.a8-combo-list { list-style: none; margin: 0; padding: 6px; width: 100%; max-height: 280px; overflow: auto; }
.a8-combo-opt { display: flex; align-items: center; gap: var(--space-3); padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--ink); min-height: 40px; box-sizing: border-box; }
.a8-combo-opt > span { flex: 1; }
.a8-combo-opt small { color: var(--ink-muted); font-size: 13px; }
.a8-combo-opt svg { width: 18px; height: 18px; color: var(--accent-mark); }
.a8-combo-active { background: var(--surface-sunken); }
.a8-combo-opt mark { background: var(--accent-soft); color: inherit; border-radius: 3px; font-weight: 700; }
.a8-combo-none { padding: 10px; color: var(--ink-muted); font-size: 14px; }

/* Accordion */
.a8-acc { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); overflow: hidden; }
.a8-acc-item + .a8-acc-item { border-top: 1px solid var(--line); }
.a8-acc-h { margin: 0; font-size: inherit; }
.a8-acc-h button { font: inherit; font-weight: 700; font-size: 16px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); min-height: 56px; border: 0; background: none; color: var(--ink); text-align: start; cursor: pointer; box-sizing: border-box; }
.a8-acc-h button:hover { background: var(--surface-sunken); }
.a8-acc-h button:focus-visible { outline: 2px solid transparent; box-shadow: inset var(--focus-ring); }
.a8-acc-h small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.a8-acc-h svg { color: var(--ink-muted); transition: transform .15s ease; flex: none; }
.a8-acc-open .a8-acc-h svg { transform: rotate(180deg); }
.a8-acc-panel { padding: 0 var(--space-5) var(--space-5); font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* Button group */
.a8-btngroup { display: inline-flex; flex-wrap: nowrap; }
.a8-btngroup > .a8-btn { border-radius: 0; }
.a8-btngroup > .a8-btn + .a8-btn { margin-inline-start: -1px; }
.a8-btngroup > .a8-btn:first-child { border-start-start-radius: var(--radius-md); border-end-start-radius: var(--radius-md); }
.a8-btngroup > .a8-btn:last-child { border-start-end-radius: var(--radius-md); border-end-end-radius: var(--radius-md); }
.a8-btngroup > .a8-btn-primary + .a8-btn-primary { border-inline-start: 1px solid rgba(0, 0, 0, .18); margin-inline-start: 0; }
.a8-btngroup > .a8-btn:focus-visible { position: relative; z-index: 1; }
.a8-btngroup-apart { gap: var(--space-2); flex-wrap: wrap; }
.a8-btngroup-apart > .a8-btn { border-radius: var(--radius-md) !important; margin: 0 !important; }

/* Fieldset */
.a8-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.a8-fieldset legend { padding: 0; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.a8-fieldset > .a8-hint { margin: 4px 0 0; }
.a8-fieldset-body { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.a8-fieldset-body .a8-field { min-width: 0; }
.a8-fieldset-2 .a8-fieldset-body { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.a8-fieldset + .a8-fieldset { margin-top: var(--space-8); }

/* Rating */
.a8-rating { display: inline-flex; align-items: center; gap: 2px; border: 0; margin: 0; padding: 0; min-width: 0; }
.a8-rating-star { display: inline-flex; color: var(--line-strong); }
.a8-rating-on { color: var(--warning-fill); }
.a8-rating-on svg path { fill: currentColor; }
.a8-rating-half { position: relative; }
.a8-rating-halfon { position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; display: inline-flex; color: var(--warning-fill); }
.a8-rating-halfon svg { flex: none; } .a8-rating-halfon svg path { fill: currentColor; }
.a8-rating-val { font-weight: 700; font-size: 15px; margin-inline-start: 6px; }
.a8-rating-count { color: var(--ink-muted); font-size: 14px; margin-inline-start: 2px; }
.a8-rating-input { flex-direction: column; align-items: flex-start; gap: 6px; }
.a8-rating-stars { display: flex; gap: 2px; }
.a8-rating-input label { cursor: pointer; display: inline-flex; padding: 4px; border-radius: 8px; }
.a8-rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.a8-rating-input input:focus-visible + .a8-rating-star { box-shadow: var(--focus-ring); border-radius: 6px; }
.a8-rating-word { font-size: 14px; color: var(--ink-muted); font-weight: 600; }

/* Carousel */
.a8-carousel { width: 100%; }
.a8-carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-lg); background: var(--surface-sunken); }
.a8-carousel-track::-webkit-scrollbar { display: none; }
.a8-carousel-track:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-carousel-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 9; }
.a8-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.a8-carousel-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-6) var(--space-4) var(--space-3); color: #FFFFFF; font-weight: 700; font-size: 15px; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent); }
.a8-carousel-nav { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.a8-carousel-btn { font: inherit; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-raised); color: var(--ink); cursor: pointer; flex: none; }
.a8-carousel-btn:disabled { color: var(--ink-disabled); border-color: var(--line); cursor: default; }
.a8-carousel-btn:focus-visible, .a8-carousel-dots button:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-carousel-dots { flex: 1; display: flex; justify-content: center; gap: 4px; }
.a8-carousel-dots button { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.a8-carousel-dots button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.a8-carousel-dots button[aria-current="true"]::after { background: var(--accent-fill); width: 10px; height: 10px; }
.a8-carousel-count { font-size: 13px; font-weight: 700; color: var(--ink-muted); min-width: 40px; text-align: center; }

/* Separator */
.a8-sep { border: 0; border-top: 1px solid var(--line); margin: var(--space-4) 0; width: 100%; }
.a8-sep-lg { margin: var(--space-8) 0; }
.a8-sep-label { display: flex; align-items: center; gap: var(--space-3); border: 0; color: var(--ink-muted); font-size: 13px; font-weight: 700; }
.a8-sep-label::before, .a8-sep-label::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.a8-sep-v { display: inline-block; align-self: stretch; width: 1px; min-height: 20px; background: var(--line); margin: 0 var(--space-2); }

/* Link */
.a8-link { display: inline; }
.a8-link svg { display: inline-block; vertical-align: -2px; margin-inline-start: 3px; }
.a8-link-muted { color: var(--ink-muted); font-weight: 600; }
.a8-link-alone { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.a8-link-alone:hover { text-decoration: underline; }

/* Skip link */
.a8-skiplink { position: absolute; left: var(--space-4); top: var(--space-3); z-index: 100; padding: 10px 16px; border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-lg); transform: translateY(-200%); }
.a8-skiplink:focus, .a8-skiplink-show { transform: none; outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.a8-skiplink-show { position: relative; left: auto; top: auto; display: inline-block; }

/* 1.2.1 accessibility */
.a8-code .a8-btn-ghost { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .a8-gallery-item img, .a8-switch-track, .a8-switch-thumb, .a8-acc-h svg, .a8-faq summary svg, .a8-radio-dot::after { transition: none; } }

/* ===================== 1.3.0 ===================== */
/* Slider tick marks */
.a8-slider-ticks { position: relative; height: 8px; margin: -2px 12px 0; }
.a8-slider-ticks span { position: absolute; top: 0; width: 2px; height: 8px; margin-left: -1px; background: var(--line-strong); border-radius: 1px; }
.a8-slider-ticks-l { height: 26px; }
.a8-slider-ticks small { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 12px; line-height: 16px; color: var(--ink-muted); white-space: nowrap; }

/* Time field */
.a8-timefield { position: relative; }
.a8-time-wrap .a8-iconbtn svg { color: var(--ink-muted); }
.a8-time-wrap .a8-iconbtn { position: absolute; inset-inline-end: 2px; top: 50%; transform: translateY(-50%); }
.a8-time-list { list-style: none; margin: 0; padding: 6px; width: 100%; max-height: 240px; overflow: auto; }

/* Pairing code on phones */
@media (max-width: 480px) {
  .a8-pair { padding: var(--space-5); }
  .a8-pair-code { gap: 4px; }
  .a8-pair-code span { width: 36px; height: 48px; font-size: 24px; }
  .a8-pair-code span.a8-pair-sep { width: 8px; }
  .a8-pair-foot { flex-wrap: wrap; gap: var(--space-2); }
}

/* Wizard on phones: steps stack */
@media (max-width: 640px) {
  .a8-steps { flex-direction: column; gap: var(--space-4); }
  .a8-wizard-body { padding: var(--space-5); }
  .a8-wizard-actions { flex-wrap: wrap; }
  .a8-wizard-actions > * { flex: 1 1 auto; }
}

/* Public header: links and actions fold into a menu on phones */
.a8-pubhead { position: relative; }
.a8-pubhead-menu { display: none; margin-inline-start: auto; }
.a8-pubhead-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--surface-raised); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: var(--space-3) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.a8-pubhead-panel nav { display: flex; flex-direction: column; }
.a8-pubhead-panel nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.a8-pubhead-panel nav a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: 4px; }
.a8-pubhead-panel-end { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 640px) {
  .a8-pubhead { flex-wrap: nowrap; padding: var(--space-3) var(--space-4); }
  .a8-pubhead-end { display: none; }
  .a8-pubhead-menu { display: block; }
}
