/* ==========================================================================
   PhotoX components — MATCHDAY card deck. Every radius, border, shadow, height
   and padding is read from tokens.css.
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--h-ctl); padding: 0 var(--s-5); border-radius: var(--r-ctl);
  border: var(--bw) solid transparent; background: var(--primary); color: var(--on-primary);
  font-weight: 700; font-size: var(--t-14); line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1), box-shadow var(--dur-1);
  text-decoration: none;
}
.btn:hover { background: var(--primary-strong); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-secondary { background: var(--primary-soft); color: var(--primary-strong); }
.btn-secondary:hover { background: var(--primary-soft-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: var(--on-primary); }
.btn-danger:hover { background: var(--danger-ink); }
.btn-on-dark { background: var(--on-drench); color: var(--primary-strong); }
.btn-on-dark:hover { background: var(--on-drench-muted); }
.btn-outline-dark { background: transparent; color: var(--on-drench); border-color: var(--drench-line); }
.btn-outline-dark:hover { border-color: var(--on-drench); background: oklch(1 0 0 / 0.08); }
.btn-sm { min-height: var(--h-ctl-sm); padding: 0 var(--s-3); font-size: var(--t-13); }
.btn-lg { min-height: 52px; padding: 0 var(--s-6); font-size: var(--t-15); }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: var(--h-ctl); }
.btn-icon.btn-sm { width: var(--h-ctl-sm); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-primary); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-primary.is-loading::after, .btn-accent.is-loading::after, .btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--primary-soft-2); }
.link:hover { text-decoration-color: var(--primary); }

/* ---- Fields ---- */
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field > label, .label { font-size: var(--t-13); font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: var(--t-12); color: var(--muted); }
.field .err { font-size: var(--t-12); color: var(--danger-ink); display: flex; gap: var(--s-1); align-items: center; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: var(--h-ctl); padding: 0 var(--s-4);
  background: var(--surface); color: var(--ink); border: var(--bw) solid var(--line-strong); border-radius: var(--r-ctl);
  font-size: var(--t-14); transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.textarea { padding: var(--s-3) var(--s-4); min-height: 96px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--danger); }
.input[disabled], .select[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.select { appearance: none; padding-right: var(--s-7); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23253' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s-3) center; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .ico, .input-wrap > span > .ico { position: absolute; left: var(--s-3); color: var(--muted); pointer-events: none; }
.input-wrap > span { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; }
.input-wrap > span > .ico { position: static; margin-left: var(--s-3); }
.input-wrap > .input { padding-left: calc(var(--s-3) + 20px + var(--s-2)); }
.input-wrap > .btn { position: absolute; right: 5px; }
.input-wrap.has-btn > .input { padding-right: 120px; }
.input-lg { min-height: 52px; font-size: var(--t-16); }
.input-mono { font-family: var(--font-mono); letter-spacing: .02em; }
.check, .radio { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--t-14); cursor: pointer; line-height: 1.4; }
.check input, .radio input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; font-size: var(--t-14); }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .tk { width: 40px; height: 22px; border-radius: var(--r-full); background: var(--line-strong); position: relative; transition: background var(--dur-2); flex: none; }
.toggle .tk::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform var(--dur-2) var(--ease-out); box-shadow: var(--e-1); }
.toggle input:checked + .tk { background: var(--primary); }
.toggle input:checked + .tk::after { transform: translateX(18px); }
.toggle input:focus-visible + .tk { outline: 2px solid var(--primary); outline-offset: 2px; }
.seg { display: inline-flex; border-radius: var(--r-ctl); padding: 3px; background: var(--surface-3); gap: 2px; }
.seg button, .seg a { min-height: calc(var(--h-ctl) - 6px); padding: 0 var(--s-4); border: 0; border-radius: calc(var(--r-ctl) - 3px); background: transparent; color: var(--ink-2); font-size: var(--t-13); font-weight: 700; display: inline-flex; align-items: center; gap: var(--s-1); cursor: pointer; }
.seg [aria-pressed="true"], .seg [aria-current="true"] { background: var(--surface); color: var(--primary-strong); box-shadow: var(--e-1); }
.dropzone { border: var(--bw-strong) dashed var(--line-strong); border-radius: var(--r-lg); padding: var(--s-8) var(--s-4); text-align: center; background: var(--surface); cursor: pointer; transition: border-color var(--dur-2), background var(--dur-2); box-shadow: var(--elev-card); }
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); background: var(--primary-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }

/* ---- Pills / status vocabulary ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-full); font-size: var(--t-12); font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--success-soft); color: var(--success-ink); }
.pill.warn { background: var(--warning-soft); color: var(--warning-ink); }
.pill.err { background: var(--danger-soft); color: var(--danger-ink); }
.pill.info { background: var(--info-soft); color: var(--info-ink); }
.pill.brand { background: var(--primary-soft); color: var(--primary-strong); }
.pill.match { background: var(--accent); color: var(--on-accent); }
.pill.plain::before { display: none; }
.tagchip { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--s-3); border-radius: var(--r-full); font-size: var(--t-12); font-weight: 600; color: var(--ink-2); background: var(--surface-2); gap: 4px; }
.tagchip.mono { font-family: var(--font-mono); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; font-family: var(--font-mono); }

/* ---- Cards ---- */
.panel, .card { background: var(--surface); border-radius: var(--r-card); padding: var(--pad-card); box-shadow: var(--elev-card); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.panel-head h2, .panel-head h3 { font-size: var(--t-18); }
.tone { background: var(--surface-2); padding: var(--pad-card); border-radius: var(--r-card); }
.tone-2 { background: var(--surface-3); padding: var(--pad-card); border-radius: var(--r-card); }
.tone-brand { background: var(--primary-soft); padding: var(--pad-card); border-radius: var(--r-card); }
.stat { background: var(--surface); border-radius: var(--r-card); padding: var(--s-4) var(--s-5); box-shadow: var(--elev-card); }
.stat .k { font-size: var(--t-12); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: .005em; margin-top: var(--s-2); color: var(--primary-strong); text-transform: uppercase; }
.stat .v .money { font-family: var(--font-display); font-size: inherit; font-weight: inherit; }
.stat .d { font-size: var(--t-12); color: var(--muted); margin-top: var(--s-2); font-weight: 600; }
.stat .d.up { color: var(--success-ink); } .stat .d.down { color: var(--danger-ink); }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--gap-grid); }
.kv { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: var(--s-2) var(--s-3); font-size: var(--t-14); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv-rules > * { padding: var(--s-2) 0; border-bottom: var(--rule); }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-ctl); background: var(--surface-2); font-size: var(--t-14); }
.notice .ico { margin-top: 1px; flex: none; }
.notice.ok { background: var(--success-soft); color: var(--success-ink); }
.notice.warn { background: var(--warning-soft); color: var(--warning-ink); }
.notice.err { background: var(--danger-soft); color: var(--danger-ink); }
.notice.info { background: var(--info-soft); color: var(--info-ink); }

/* ---- Tables: inside cards, rules between rows ---- */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--elev-card); padding: var(--s-2) var(--s-3); }
.panel .table-wrap, .card .table-wrap { box-shadow: none; padding: 0; border-radius: 0; }
.table { width: 100%; font-size: var(--t-14); }
.table th { text-align: left; font-weight: 700; font-size: var(--t-11); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: var(--s-3) var(--s-3); border-bottom: var(--rule-strong); white-space: nowrap; }
.table td { padding: 0 var(--s-3); height: var(--h-row); border-bottom: var(--row-rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--primary-soft); }
.table td.num, .table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td.mono, .table td .mono, .table td .pill { white-space: nowrap; }
.table .primary { font-weight: 600; color: var(--ink); }
.table tr.is-selected td { background: var(--accent-soft); }
.table tr[data-href] { cursor: pointer; }
.table .thumb { width: 44px; height: 32px; object-fit: cover; border-radius: 6px; }
.table-bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; }
.table-bar .sel { font-size: var(--t-13); color: var(--muted); }
.pager { display: flex; align-items: center; gap: var(--s-2); padding-top: var(--s-3); font-size: var(--t-13); color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: var(--row-rule); }
.list > li:last-child { border-bottom: 0; }
.list > li .grow { flex: 1; min-width: 0; }
.list > li .t { font-weight: 600; }
.list > li .s { font-size: var(--t-13); color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.avatar.lg { width: 64px; height: 64px; }
.avatar-txt { display: inline-flex; align-items: center; justify-content: center; font-size: var(--t-13); font-weight: 700; color: var(--primary-strong); background: var(--primary-soft); }

/* ---- Gallery rows (shared by customer, photographer, organiser) ---- */
.glist { list-style: none; margin: 0; padding: 0; }
.glist li { display: grid; grid-template-columns: 112px 1fr auto auto; gap: var(--s-4); align-items: center; padding: var(--s-3); margin-bottom: var(--s-3); background: var(--surface); border-radius: var(--r-card); box-shadow: var(--elev-card); }
.panel .glist li, .card .glist li { box-shadow: none; background: var(--surface-2); }
.glist li > .pill { justify-self: end; }
@media (max-width: 640px) { .glist li { grid-template-columns: 80px 1fr; } .glist li > .btn, .glist li > .pill { grid-column: 2; justify-self: start; } }
.glist .cov { aspect-ratio: 3/2; border-radius: var(--r-card); overflow: hidden; background: var(--surface-3); }
.glist .cov img { width: 100%; height: 100%; object-fit: cover; }
.glist .t { font-weight: 800; font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; line-height: 1; }
.glist .s { font-size: var(--t-13); color: var(--muted); }
/* ---- Tabs ---- */
.tabs { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--h-ctl-sm); padding: 0 var(--s-4); border: 0; background: transparent; color: var(--ink-2); font-size: var(--t-13); font-weight: 700; white-space: nowrap; border-radius: var(--r-full); cursor: pointer; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--on-primary); background: var(--primary); }
.tab-panel[hidden] { display: none; }

/* ---- Split (master/detail) ---- */
.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--gap-grid); align-items: start; }
.split > .master { background: var(--surface); border-radius: var(--r-card); padding: var(--s-4); box-shadow: var(--elev-card); align-self: start; }
.split > .detail { background: var(--surface); border-radius: var(--r-card); padding: var(--pad-card); box-shadow: var(--elev-card); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.master .list > li { cursor: pointer; margin: 0 calc(-1 * var(--s-2)); padding-inline: var(--s-2); border-radius: var(--r-ctl); }
.master .list > li:hover { background: var(--surface-2); }
.master .list > li.is-active { background: var(--primary-soft); }
.master .tabs { gap: 4px; margin-bottom: var(--s-2); flex-wrap: wrap; }
.master .tabs button { padding: 0 var(--s-3); font-size: var(--t-12); }
.master .tabs button .mono { font-size: var(--t-11); opacity: .8; margin-left: 2px; color: inherit; }

/* ---- Photo tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--gap-grid); }
.tiles.dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-2); }
.tiles.large { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile { position: relative; display: block; border-radius: var(--r-ctl); overflow: hidden; background: var(--surface-3); aspect-ratio: 3 / 2; cursor: pointer; box-shadow: var(--elev-card); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.tile:hover { box-shadow: var(--elev-pop); }
.tile.portrait { aspect-ratio: 2 / 3; }
.tile.square { aspect-ratio: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.c1 img { object-position: 20% 40%; } .tile.c2 img { object-position: 80% 30%; } .tile.c3 img { object-position: 50% 70%; }
.tile .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-6) var(--s-3) var(--s-3); color: #fff; font-size: var(--t-12); font-weight: 600; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2); background: linear-gradient(to top, oklch(0.15 0.02 158 / 0.8), transparent); text-shadow: 0 1px 2px oklch(0 0 0 / 0.5); }
.tile .meta .mono { font-family: var(--font-mono); }
.tile .chk { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; border-radius: 8px; background: oklch(1 0 0 / 0.92); display: grid; place-items: center; color: var(--primary); opacity: 0; transition: opacity var(--dur-1); box-shadow: var(--e-1); }
.tile:hover .chk, .tile.is-selected .chk { opacity: 1; }
.tile.is-selected { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.is-selected .chk { background: var(--accent); color: var(--on-accent); }
.tile .badge { position: absolute; top: 10px; right: 10px; }
.tile.is-processing img { filter: blur(6px) saturate(.6); }
.tile.is-processing::after { content: 'Processing'; position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--t-12); font-weight: 700; color: #fff; background: oklch(0.2 0.02 158 / 0.4); }
.tile.is-hidden img { filter: grayscale(1) brightness(.6); }
.wm::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='140' viewBox='0 0 220 140'%3E%3Ctext x='110' y='76' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='22' font-weight='700' fill='white' fill-opacity='0.55' transform='rotate(-24 110 70)' letter-spacing='4'%3EPHOTOX%3C/text%3E%3C/svg%3E"); background-size: 220px 140px; }
.wm-lg::before { background-size: 320px 200px; opacity: .55; }
.stage { position: relative; background: oklch(0.2 0.02 158); border-radius: var(--r-card); overflow: hidden; display: grid; place-items: center; min-height: 360px; box-shadow: var(--elev-card); }
.stage img { max-height: 72vh; width: auto; max-width: 100%; object-fit: contain; }
.stage .fig { position: relative; display: inline-block; }
.facebox { position: absolute; border: 2px solid var(--accent); border-radius: 8px; box-shadow: 0 0 0 1px oklch(0 0 0 / 0.5); }
.facebox .lbl { position: absolute; left: -2px; top: 100%; margin-top: 4px; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.facebox.dim { border-color: oklch(1 0 0 / 0.6); box-shadow: none; }
.bibbox { position: absolute; border: 2px solid oklch(1 0 0 / 0.9); border-radius: 6px; }
.bibbox .lbl { position: absolute; left: -2px; bottom: 100%; margin-bottom: 4px; background: #fff; color: var(--ink); font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.confidence { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--t-12); font-weight: 600; }
.confidence .bar { width: 52px; height: 5px; background: oklch(1 0 0 / 0.35); border-radius: 3px; overflow: hidden; }
.confidence .bar i { display: block; height: 100%; background: var(--accent); }
.confidence.low .bar i { background: var(--warning); }
.sponsor { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-4); background: var(--primary-soft); border-radius: var(--r-ctl); font-size: var(--t-13); }
.sponsor .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sponsor .logo { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .01em; }
.sponsor.banner { padding: var(--s-4) var(--s-5); }
.sponsor.banner .logo { font-size: 1.6rem; }
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
.pipe .st { padding: var(--s-3) var(--s-4); border-radius: var(--r-ctl); background: var(--surface-2); border-top: 3px solid var(--line-strong); font-size: var(--t-13); }
.pipe .st.done { border-top-color: var(--success); }
.pipe .st.run { border-top-color: var(--accent); }
.pipe .st.fail { border-top-color: var(--danger); }
.pipe .st .n { font-family: var(--font-mono); font-size: var(--t-16); font-weight: 700; }
.pipe .st .k { color: var(--muted); font-size: var(--t-12); font-weight: 600; }
@media (max-width: 720px) { .pipe { grid-template-columns: repeat(2, 1fr); } }
.progress { height: 10px; background: var(--surface-3); border-radius: 5px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--primary); border-radius: 5px; transition: width var(--dur-3) var(--ease); }
.progress.thin { height: 4px; }
.money { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.money.lg { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--primary-strong); }
.totals { font-size: var(--t-14); }
.totals .r { display: flex; justify-content: space-between; padding: var(--s-2) 0; border-bottom: var(--rule); }
.totals .r.total { border-bottom: 0; border-top: var(--rule-strong); font-weight: 700; font-size: var(--t-16); padding-top: var(--s-3); }

/* ---- Layers ---- */
.modal-scrim { position: fixed; inset: 0; z-index: var(--z-layer); background: oklch(0.15 0.02 158 / 0.55); display: none; align-items: center; justify-content: center; padding: var(--gutter); }
.modal-scrim.is-open { display: flex; }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--elev-modal); width: min(100%, 560px); max-height: 90vh; overflow: auto; padding: var(--s-6); }
.modal.wide { width: min(100%, 860px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-5); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: calc(var(--z-layer) + 1); width: min(100%, 440px); background: var(--surface); box-shadow: var(--elev-modal); transform: translateX(100%); transition: transform var(--dur-3) var(--ease-out); padding: var(--s-5); overflow: auto; }
.drawer.is-open { transform: none; }
.popover { position: absolute; z-index: var(--z-layer); background: var(--surface); border-radius: var(--r-ctl); box-shadow: var(--elev-pop); padding: var(--s-2); min-width: 180px; }
.popover a, .popover button { display: flex; align-items: center; gap: var(--s-2); width: 100%; padding: var(--s-2) var(--s-3); border: 0; background: none; border-radius: 8px; font-size: var(--t-14); text-align: left; cursor: pointer; }
.popover a:hover, .popover button:hover { background: var(--surface-2); }
.tooltip { position: relative; }
.tooltip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: var(--t-12); padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--dur-1); }
.tooltip:hover::after { opacity: 1; }

/* ---- Feedback states ---- */
.empty { text-align: center; padding: var(--s-8) var(--s-4); color: var(--muted); background: var(--surface); border-radius: var(--r-card); }
.panel .empty, .card .empty, .table-wrap .empty { box-shadow: none; }
.empty .ico { width: 36px; height: 36px; margin: 0 auto var(--s-3); color: var(--primary); }
.empty h3 { color: var(--ink); font-size: var(--t-18); margin-bottom: var(--s-1); }
.empty p { max-width: 42ch; margin-inline: auto; }
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-ctl); box-shadow: none; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.skel-line { height: 12px; margin: 6px 0; }
.offline { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); background: var(--warning-soft); color: var(--warning-ink); font-size: var(--t-13); font-weight: 600; justify-content: center; border-radius: var(--r-ctl); }
.denied { max-width: 480px; margin: var(--s-10) auto; text-align: center; }

/* ---- Shell: customer top bar ---- */
.topbar { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.topbar .in { display: flex; align-items: center; gap: var(--s-5); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); line-height: 1; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.brand .mark svg { width: 17px; height: 17px; }
.brand .role { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-left: var(--s-1); padding-left: var(--s-2); border-left: 2px solid var(--line-strong); }
.topnav { display: flex; gap: var(--s-1); }
.topnav a { padding: var(--s-2) var(--s-3); border-radius: var(--r-full); font-size: var(--t-14); color: var(--ink-2); font-weight: 700; }
.topnav a:hover { background: var(--surface-2); color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--primary-strong); background: var(--primary-soft); }
.topbar .actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.topbar .who { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-13); color: var(--ink-2); font-weight: 600; }
.subnav { background: var(--surface); }
.subnav .in { display: flex; gap: var(--s-4); overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: var(--s-3) 0; font-size: var(--t-14); color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--primary); }
.crumbs { display: flex; align-items: center; gap: var(--s-1); font-size: var(--t-13); color: var(--muted); margin-bottom: var(--s-3); flex-wrap: wrap; font-weight: 500; }
.crumbs a:hover { color: var(--ink); }
.site-footer { background: var(--surface); margin-top: var(--s-8); padding: var(--s-7) 0 var(--s-4); font-size: var(--t-13); color: var(--muted); box-shadow: 0 -1px 0 var(--line); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-5); }
.site-footer strong { color: var(--ink); text-transform: uppercase; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .03em; }
.site-footer a:hover { color: var(--ink); }
.site-footer .fine { margin-top: var(--s-5); padding-top: var(--s-3); border-top: var(--rule); display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
@media (max-width: 900px) {
  .topnav { display: none; }
  body.nav-open .topnav { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); box-shadow: var(--elev-pop); padding: var(--s-3) var(--gutter); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .topbar .who span { display: none; }
}
@media (min-width: 901px) { .nav-btn { display: none; } }

/* ---- Shell: app sidebar (photographer, admin, sponsor, organiser) ---- */
body.has-sidebar { padding-left: var(--sidebar-w); }
.sidebar { position: fixed; top: 0; bottom: var(--pocbar-h); left: 0; width: var(--sidebar-w); z-index: var(--z-sticky); background: var(--drench); color: var(--on-drench); display: flex; flex-direction: column; padding: var(--s-5) var(--s-3) var(--s-4); overflow-y: auto; }
.sidebar .brand { color: var(--on-drench); padding: 0 var(--s-2) var(--s-5); }
.sidebar .brand .role { color: var(--on-drench-muted); border-left-color: var(--drench-line); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3); border-radius: var(--r-ctl); color: var(--on-drench-muted); font-size: var(--t-14); font-weight: 600; transition: background var(--dur-1), color var(--dur-1); }
.sidebar nav a:hover { background: oklch(1 0 0 / 0.08); color: var(--on-drench); }
.sidebar nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.sidebar nav a .ico { width: 18px; height: 18px; }
.sidebar .foot { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--drench-line); }
.sidebar .who { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-13); color: var(--on-drench); font-weight: 600; padding: var(--s-2); }
.sidebar .who small { display: block; color: var(--on-drench-muted); font-weight: 500; }
.sidebar .who .avatar { width: 34px; height: 34px; }
.app-top { display: none; position: sticky; top: 0; z-index: var(--z-sticky); background: var(--drench); color: var(--on-drench); padding: var(--s-3) var(--gutter); align-items: center; gap: var(--s-3); }
.app-top .brand { color: var(--on-drench); font-size: 1.3rem; }
.app-top .nav-btn { color: var(--on-drench); }
@media (max-width: 900px) {
  body.has-sidebar { padding-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform var(--dur-3) var(--ease-out); top: 0; bottom: 0; box-shadow: var(--elev-modal); }
  body.nav-open .sidebar { transform: none; }
  .app-top { display: flex; }
}

/* Auth: a contained two-column card, form left, photograph right */
.auth { width: min(100% - 2 * var(--gutter), var(--container)); margin: var(--s-6) auto var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--elev-card); overflow: hidden; min-height: 600px; }
.auth .form { padding: var(--s-8) var(--s-7); display: flex; flex-direction: column; justify-content: center; }
.auth .form h1 { font-size: var(--fs-h3); }
.auth .form .stack .btn { align-self: flex-start; }
.auth .aside { position: relative; background: var(--drench); overflow: hidden; min-height: 420px; }
.auth .aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth .aside .cap { position: absolute; left: var(--s-6); right: var(--s-6); bottom: var(--s-6); color: var(--on-drench); }
.auth .aside .cap strong { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; font-weight: 800; line-height: 1; }
.auth .aside .cap::before { content: ''; position: absolute; inset: -100px -100px -40px; background: linear-gradient(to top, oklch(0.15 0.03 158 / 0.9), transparent); z-index: -1; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; min-height: 0; } .auth .aside { display: none; } .auth .form { padding: var(--s-6) var(--s-5); } }

/* Calendar strip */
.cal { display: grid; grid-template-columns: 160px repeat(12, 1fr); font-size: var(--t-12); background: var(--surface); border-radius: var(--r-card); box-shadow: var(--elev-card); overflow: hidden; }
.cal > div { padding: var(--s-2) var(--s-3); border-bottom: var(--rule); min-height: 38px; display: flex; align-items: center; font-weight: 600; }
.cal .h { color: var(--muted); font-family: var(--font-mono); font-size: 10px; justify-content: center; background: var(--surface-2); }
.cal .on { background: var(--primary-soft-2); }
.cal .on.a { background: var(--accent-soft); }

/* Bars, charts, event rows */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.bars i { flex: 1; background: var(--c-3); border-radius: 2px 2px 0 0; min-height: 2px; }
.bars i.hi { background: var(--c-5); }
.chart { width: 100%; height: auto; display: block; }
.chart.donut { width: auto; }
.legend { display: flex; gap: var(--s-4); flex-wrap: wrap; font-size: var(--t-13); color: var(--ink-2); margin-top: var(--s-2); font-weight: 500; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.evrow { display: grid; grid-template-columns: 200px 1fr auto; gap: var(--s-5); align-items: center; padding: var(--s-4); margin-bottom: var(--gap-grid); color: var(--ink); background: var(--surface); border-radius: var(--r-card); box-shadow: var(--elev-card); transition: box-shadow var(--dur-2); }
.evrow:hover { box-shadow: var(--elev-pop); }
.evrow .cover { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-ctl); overflow: hidden; background: var(--surface-3); }
.evrow .cover img { width: 100%; height: 100%; object-fit: cover; }
.evrow .body { min-width: 0; }
.evrow .date { display: block; font-size: var(--t-12); color: var(--muted); font-weight: 600; }
.evrow .t { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin-top: var(--s-1); }
.evrow .s { display: block; font-size: var(--t-13); color: var(--muted); margin-top: var(--s-1); }
.evrow > .ico { color: var(--muted-2); }
@media (max-width: 640px) { .evrow { grid-template-columns: 100px 1fr; } .evrow > .ico { display: none; } .evrow .t { font-size: 1.25rem; } }
/* ==========================================================================
   Prototype chrome — device frames, prototype bar, toaster, tour.
   Structural, brand-neutral. Copy into <POC>/assets/css/components.css and
   re-skin with the project's tokens. Requires the token contract.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Phone. A fixed 390x844 canvas scaled to always fit the viewport, so the
   whole device is visible without scrolling the browser. On a real handset
   the frame disappears and the app fills the screen.
   -------------------------------------------------------------------------- */
.phone-stage {
  --phone-fit: 1;
  height: 100dvh; overflow: hidden;
  display: grid; grid-template-columns: auto; place-content: center; place-items: center;
  column-gap: var(--s-10);
  padding: var(--s-4) var(--gutter) calc(var(--pocbar-h) + var(--s-4));
  background: var(--surface-2);
}
.phone {
  position: relative; flex: none;
  width: 390px; height: 844px;
  transform: scale(var(--phone-fit)); transform-origin: center;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  border: 10px solid #15130f; border-radius: 46px;
  box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(0 0 0 / 0.08);
  overflow: hidden;
}
.phone::before {                      /* notch */
  content: ''; position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 120px; height: 34px; background: #15130f; border-radius: 20px; z-index: 5;
}
.phone-status {
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 12px 28px 0; font-size: var(--t-14); font-weight: 600; flex: none;
}
.phone-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: none; position: relative; display: flex; flex-direction: column;
}
.phone-scroll::-webkit-scrollbar { display: none; }
.phone-scroll > * { flex-shrink: 0; }   /* or horizontal card rows collapse */
.phone-tabbar {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: 84px; padding: 8px 8px 24px; flex: none;
  border-top: 1px solid var(--line); background: var(--surface);
}
.phone-tabbar a {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--muted);
  border-radius: var(--r-ctl); min-height: 44px; text-decoration: none;
}
.phone-tabbar a .ico { width: 24px; height: 24px; }
.phone-tabbar a[aria-current="page"] { color: var(--primary); }
.phone-home {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .9; z-index: 4;
}
.phone { --app-gutter: var(--s-4); }

/* The narration column beside the device: what this screen proves. */
.phone-caption {
  display: none; align-self: center; max-width: 34ch; text-align: left;
  font-size: var(--t-14); line-height: 1.55; color: var(--ink-2);
}
.phone-caption strong {
  display: block; color: var(--ink); font-family: var(--font-display);
  font-size: var(--t-18); font-weight: 600; margin-bottom: var(--s-2);
}
@media (min-width: 1100px) {
  .phone-stage { grid-template-columns: auto minmax(260px, 34ch); }
  .phone-caption { display: block; }
}

/* Step the scale down so the device always fits the window height. */
@media (max-height: 940px) { .phone-stage { --phone-fit: .95; } }
@media (max-height: 880px) { .phone-stage { --phone-fit: .90; } }
@media (max-height: 820px) { .phone-stage { --phone-fit: .84; } }
@media (max-height: 770px) { .phone-stage { --phone-fit: .78; } }
@media (max-height: 700px) { .phone-stage { --phone-fit: .72; } }
@media (max-height: 640px) { .phone-stage { --phone-fit: .66; } }

/* On an actual handset the app IS the page. The frame, notch, status bar and
   home indicator disappear; the app fills the screen minus the prototype bar. */
@media (max-width: 600px) {
  .phone-stage { --phone-fit: 1; padding: 0; height: 100dvh; grid-template-columns: 1fr; background: var(--bg); }
  .phone { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .phone::before, .phone-status, .phone-home { display: none; }
  .phone-caption { display: none; }
  /* The bar is fixed over the viewport, so the app must give up its height or
     the tab bar hides behind it. */
  body.has-pocbar .phone-stage,
  body.has-pocbar .phone { height: calc(100dvh - var(--pocbar-h)); }
  .phone-tabbar { padding-bottom: 8px; height: 64px; }
}

/* --------------------------------------------------------------------------
   Tablet — staff-facing landscape surfaces (kitchen display, POS, field app).
   -------------------------------------------------------------------------- */
.tablet-stage {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-4);
  padding: var(--s-8) var(--gutter) calc(var(--pocbar-h) + var(--s-10));
  min-height: 100dvh; background: var(--surface-3);
}
.tablet {
  --tablet-fit: 1;
  position: relative; width: 1024px; height: 768px;
  transform: scale(var(--tablet-fit)); transform-origin: top center;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 12px solid #15130f; border-radius: 28px;
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / 0.35);
}
.tablet-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 1140px) { .tablet-stage { --tablet-fit: .82; } }
@media (max-width: 940px)  { .tablet-stage { --tablet-fit: .66; } }
@media (max-width: 760px)  { .tablet-stage { --tablet-fit: .50; } }

/* --------------------------------------------------------------------------
   Bottom sheet — the mobile-native alternative to a modal.
   -------------------------------------------------------------------------- */
.sheet-scrim {
  position: absolute; inset: 0; z-index: var(--z-layer);
  background: rgb(0 0 0 / 0.4); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-layer) + 1);
  max-height: 82%; display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: translateY(100%); transition: transform var(--dur-3) var(--ease-out);
}
.sheet::before {
  content: ''; width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong);
  margin: 10px auto 2px; flex: none;
}
.sheet-body { overflow-y: auto; padding: var(--s-4) var(--app-gutter) var(--s-6); }
.layer-open .sheet-scrim { opacity: 1; pointer-events: auto; }
.layer-open .sheet { transform: translateY(0); }

/* In-frame push notification — lands every time in a demo. */
.push {
  position: absolute; left: 8px; right: 8px; top: 58px; z-index: var(--z-toast);
  display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4);
  background: var(--bg); border-radius: var(--r-card); box-shadow: var(--e-3);
  transform: translateY(-140%); transition: transform var(--dur-3) var(--ease-out);
}
.push.in { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Prototype bar — the client's remote control, on every page.
   -------------------------------------------------------------------------- */
.pocbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-pocbar);
  height: var(--pocbar-h); display: flex; align-items: center; gap: var(--s-3);
  padding: 0 var(--s-4); font-size: var(--t-12);
  background: var(--ink); color: var(--bg);
  box-shadow: 0 -4px 20px rgb(0 0 0 / 0.2);
}
.pocbar .tagword {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--accent); font-weight: 500;
}
.pocbar .roles { display: flex; gap: 2px; }
.pocbar .roles a {
  padding: 4px 10px; border-radius: var(--r-full); color: var(--on-drench-muted);
  text-decoration: none; white-space: nowrap;
}
.pocbar .roles a:hover { color: var(--on-drench); background: var(--drench-2); }
.pocbar .roles a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
.pocbar .mods { display: flex; gap: 4px; }
.pocbar .tag-module {
  font-family: var(--font-mono); font-size: 10px; padding: 2px 6px;
  border: 1px solid var(--drench-line); border-radius: var(--r-full);
  color: var(--on-drench-muted); text-decoration: none;
}
.pocbar .spacer { flex: 1; }
.pocbar button.link {
  background: none; border: 0; color: var(--on-drench-muted);
  font: inherit; cursor: pointer; padding: 4px 6px; white-space: nowrap;
}
.pocbar button.link:hover { color: var(--on-drench); }
body.has-pocbar { padding-bottom: 0; }
@media (max-width: 720px) {
  .pocbar .hide-sm { display: none; }
  /* Never let the bar clip its own controls: let it scroll instead. */
  .pocbar { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .pocbar::-webkit-scrollbar { display: none; }
  .pocbar > * { flex: none; }
  .pocbar .spacer { flex: 1 0 var(--s-4); }
}
@media (max-width: 420px) { .pocbar .tagword { display: none; } }

/* Module map overlay: outlines the elements proving each module. */
body.show-sow [data-module] { outline: 1px dashed var(--accent-strong); outline-offset: 2px; position: relative; }
body.show-sow [data-module]::after {
  content: attr(data-module); position: absolute; top: -8px; right: -6px; z-index: 2;
  font-family: var(--font-mono); font-size: 9px; line-height: 1;
  padding: 3px 5px; border-radius: var(--r-full);
  background: var(--accent); color: var(--on-accent);
}

/* --------------------------------------------------------------------------
   Toaster
   -------------------------------------------------------------------------- */
.toaster {
  position: fixed; right: var(--s-4); bottom: calc(var(--pocbar-h) + var(--s-4));
  z-index: var(--z-toast); display: flex; flex-direction: column-reverse;
  gap: var(--s-2); pointer-events: none;
}
body:not(.has-pocbar) .toaster { bottom: var(--s-4); }
.toast {
  max-width: 42ch; padding: var(--s-3) var(--s-4);
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-ctl); box-shadow: var(--e-3);
  font-size: var(--t-14); animation: toast-in var(--dur-3) var(--ease-out);
}
.toast.ok { background: var(--success); } .toast.warn { background: var(--warning); color: var(--on-accent); }
.toast.err { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Guided tour
   -------------------------------------------------------------------------- */
.tour-scrim { position: fixed; inset: 0; z-index: var(--z-tour); background: rgb(0 0 0 / 0.55); }
.tour-hole { position: fixed; z-index: calc(var(--z-tour) + 1); border-radius: var(--r-card);
  box-shadow: 0 0 0 9999px rgb(0 0 0 / 0.55), 0 0 0 3px var(--accent); pointer-events: none; }
.tour-pop {
  position: fixed; z-index: calc(var(--z-tour) + 2); max-width: 34ch;
  padding: var(--s-4); background: var(--bg); color: var(--ink);
  border-radius: var(--r-card); box-shadow: var(--e-3);
}
.tour-pop .step { font-family: var(--font-mono); font-size: var(--t-11); color: var(--muted); }
.tour-pop h3 { font-size: var(--t-16); margin: var(--s-1) 0 var(--s-2); }
.tour-pop p { font-size: var(--t-14); line-height: 1.5; color: var(--ink-2); }
.tour-pop .row { display: flex; gap: var(--s-2); justify-content: flex-end; margin-top: var(--s-4); }

/* Section reveal — set by prototype.js, off under reduced motion. */
.rv.pre { opacity: 0; transform: translateY(14px); }
.rv.in  { opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }

/* Accessibility floor */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: var(--s-3) var(--s-4); background: var(--primary); color: var(--on-primary);
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
