/* Identification (/id/*) uses the shared Graphite & Lime palette.
   --primary is reserved for fills with --primary-foreground text;
   links, focus rings, checks and step numbers use --primary-ink.
   Base reset, typography, controls and buttons mirror the portal.
   Camera/liveness/MRZ selectors and behaviour are unchanged.
   Mobile-first: primary target 390px; comfortable up to 1280px. */
@import url("/shared/tokens.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
}
a { color: var(--primary-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* ============ top bar: brand emblem + wordmark, EN/DE toggle ============ */
.bar {
  background: var(--card);
  border-bottom: 3px solid var(--primary-ink);
}
.bar .in {
  max-width: 680px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.bar .in > a { display: flex; align-items: center; gap: 10px; line-height: 0; }
/* UAT-2026-09-02 evening batch, fix 8: both brand SVGs
   (public/assets/brand/logo_emblem.svg, logo_wordmark.svg) declare
   width="100%" height="100%" internally with no fallback intrinsic size —
   an <img> referencing either one, if this stylesheet has not yet loaded
   (or fails to load) at first paint, has nothing else constraining its
   box and can render at a large fallback/stretched size that fills the
   viewport (the "full-screen flag" defect from live UAT — the emblem is a
   tall red shape that reads exactly like a flag at that size). A generic
   `.bar img { max-height/max-width }` safety net (below the specific
   height rules, so it never overrides them — it is a ceiling, not the
   normal-case value) covers both named classes AND any future `<img>`
   added to this bar without its own explicit rule, matching the belt +
   braces approach index.html's own inline width/height/style attributes
   on these same two <img> tags provide before this stylesheet is even
   parsed. */
.bar .in img.brand-emblem { height: 26px; width: auto; display: block; max-height: 26px; max-width: 40px; }
.bar .in img.brand-wordmark { height: 14px; width: auto; display: block; max-height: 14px; max-width: 160px; }
.bar .in img { max-height: 32px; max-width: 200px; }
.bar-right { display: flex; align-items: center; gap: 12px; }

/* Sliding-pill segmented control (transitions.dev 16) — the active language's
   offsetLeft/offsetWidth is written onto .langtog-pill by app.js on first
   paint, on resize and on each switch (see 16-tabs-sliding.md). Rectangular
   radius (not the skill's 48px rounded-pill default) to match the compact
   bar-chip register used everywhere else in this file. Keep the .on class
   name — i18n.js toggles it. */
.langtog {
  position: relative;
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--tabs-bar-bg);
}
.langtog-pill {
  position: absolute; top: 3px; left: 0; height: var(--control-height); width: 0;
  background: var(--tabs-pill-bg); border-radius: calc(var(--radius) - 3px);
  box-shadow: var(--shadow-sm);
  transform: translateX(0);
  transition: transform var(--tabs-dur) var(--tabs-ease), width var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width;
  z-index: 0; pointer-events: none;
}
.langtog button {
  position: relative; z-index: 1; height: var(--control-height);
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  padding: 0 12px; border: 0; background: transparent; color: var(--tabs-text-muted);
  cursor: pointer; border-radius: calc(var(--radius) - 3px);
  transition: color var(--tabs-dur) var(--tabs-ease);
}
.langtog button:hover { color: var(--tabs-text-active); }
.langtog button.on { color: var(--tabs-text-active); font-weight: 600; }
.langtog button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring-halo); }
@media (prefers-reduced-motion: reduce) {
  .langtog-pill, .langtog button { transition: none !important; }
}

/* ============ page shell ============ */
.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px 48px; }
.id-shell { max-width: 640px; margin: 0 auto; padding-top: 36px; }

/* author display rules (flex/grid) would beat the UA [hidden] rule — make
   the hidden attribute always win on this page */
.id-shell [hidden], .id-step[hidden], .id-qr[hidden] { display: none !important; }

.stepmeta {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted-foreground); margin-bottom: 10px;
}
.progress { display: flex; gap: 6px; margin-bottom: 20px; }
.progress .dot {
  flex: 1; height: 6px; border-radius: 4px; background: var(--border);
  transition:
    background-color var(--duration-fast) var(--ease-smooth-out),
    transform         var(--duration-fast) var(--ease-smooth-out);
}
.progress .dot.done { background: var(--foreground); }
.progress .dot.now { background: var(--primary); color: var(--primary-foreground); }
@media (prefers-reduced-motion: reduce) {
  .progress .dot { transition: none !important; }
}

/* Error banner shake replays every time .show is (re)applied because the
   keyframe is bound to the class itself (transitions.dev 12, same pattern as
   portal.css .savehint.err — no separate JS orchestration needed here). */
.error-banner {
  display: none; font-size: 13.5px; font-weight: 500; color: var(--destructive);
  background: var(--destructive-bg); border: 1px solid var(--destructive);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px;
}
.error-banner.show {
  display: block;
  border-radius: var(--radius);
  animation: t-input-shake calc(var(--shake-dur-a) * 2 + var(--shake-dur-b) * 2) linear;
}

/* step sections: single calm column, each one a card */
.id-step {
  display: grid; gap: 16px; align-content: start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px); box-shadow: var(--shadow-sm);
  padding: 32px; margin-bottom: 24px;
  will-change: transform, opacity, filter;
}
.id-step[hidden] { display: none; }
.id-step .step-title {
  margin-bottom: 0; font-size: 22px; font-weight: 600; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--foreground);
}
.id-step > .muted { margin-top: -8px; }
.muted { color: var(--muted-foreground); }
.hint { font-size: 12.5px; color: var(--muted-foreground); }

/* one primary action per screen, pinned into a nav row */
.id-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.id-nav .btn { min-height: 52px; }
@media (max-width: 600px) {
  .id-nav { flex-direction: column-reverse; align-items: stretch; }
  .id-nav .btn--ghost { align-self: center; }
  .id-nav > span:empty { display: none; }
}

/* ============ buttons ============ */
/* Transcribed from 03-11-portal.css's .btn family (shadcn vocabulary): the
   150ms standard curve on every state, hover tint, pressed scale, focus
   ring (border + 3px halo instead of a hard outline), disabled 50%, and a
   loading spinner that swaps the label without resizing the button. The
   id-* class names (--ghost, --small) are kept — index.html and this file
   are the only owners of them, nothing in app.js/i18n.js/mrz.js/
   inject-detect.js selects on .btn variants. */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; user-select: none; white-space: nowrap;
  height:var(--control-height); padding: 0 18px; border-radius: var(--radius);
  border: 1px solid transparent; background: var(--primary); color: var(--primary-foreground);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition:
    background-color var(--duration-quick) var(--ease-standard),
    border-color     var(--duration-quick) var(--ease-standard),
    color            var(--duration-quick) var(--ease-standard),
    box-shadow       var(--duration-quick) var(--ease-standard),
    transform        var(--duration-quick) var(--ease-standard),
    opacity          var(--duration-quick) var(--ease-standard);
}
.btn:hover { background: color-mix(in srgb, var(--primary) 88%, black); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-halo); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

.btn--ghost { background: transparent; color: var(--foreground); border-color: var(--border); box-shadow: none; }
.btn--ghost:hover { background: var(--muted); border-color: color-mix(in srgb, var(--foreground) 22%, var(--border)); }
.btn--small { height: var(--control-height); padding: 0 12px; font-size: 13px; border-radius: calc(var(--radius) - 2px); }

.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid currentColor; border-color: var(--primary-foreground) transparent var(--primary-foreground) var(--primary-foreground);
  border-radius: 50%; opacity: 0.9;
  animation: t-spin 700ms var(--ease-linear) infinite;
}
.btn--ghost.is-loading::after { border-color: var(--foreground) transparent var(--foreground) var(--foreground); }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background-color var(--duration-quick) var(--ease-standard), border-color var(--duration-quick) var(--ease-standard), color var(--duration-quick) var(--ease-standard); }
  .btn:active { transform: none; }
  .btn.is-loading::after { animation-duration: 1200ms; }
}

/* ============ form fields ============ */
/* Transcribed from 03-11-portal.css's .field rules: hover border darkens,
   focus = border-color + 3px ring-halo (no hard outline), aria-invalid gets
   the destructive ring. .field input keeps this file's 40px height (larger
   thumb target — ident is mobile-first) rather than portal's 36px. */
.field { margin-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: var(--form-label-gap); color: var(--foreground); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14px;
  border: 1px solid var(--input); border-radius: var(--radius);
  padding: 10px 12px; background: var(--card); color: var(--foreground);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration-quick) var(--ease-standard),
    box-shadow   var(--duration-quick) var(--ease-standard),
    background-color var(--duration-quick) var(--ease-standard);
}
.field input { height:var(--control-height); padding: 0 12px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted-foreground) 75%, transparent); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--foreground) 22%, var(--input)); }
.field input:focus, .field select:focus, .field textarea:focus,
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-halo);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--destructive);
}
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--ring-halo-destructive); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; background: var(--muted); }
.req { color: var(--destructive); }

input[type="radio"], input[type="checkbox"] {
  accent-color: var(--primary-ink); width: 16px; height: 16px; cursor: pointer;
}

.checkrow {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
}
.checkrow.card {
  background: var(--muted); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}

.section-h {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted-foreground); margin-top: 6px;
}
.notice {
  font-size: 13px; color: var(--warning); background: var(--warning-bg);
  border: 1px solid var(--warning); border-radius: var(--radius); padding: 10px 12px;
}

/* welcome/done note blocks — full border + muted fill, no side-stripe accent
   (03-DESIGN-CONTRACT.md bans border-left/-right > 1px; red is reserved for
   the primary action / current step only, never a status callout). Both the
   "--legal" variant and the plain variant (e.g. "What happens next") render
   identically: 1px var(--border) border, var(--muted) background, the
   shared --radius. */
.id-note {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
  background: var(--muted);
}
.id-note h3 { font-size: 14px; font-weight: 600; margin-bottom: var(--form-label-gap); color: var(--foreground); }
.id-note p { font-size: 13.5px; color: var(--muted-foreground); line-height: 1.55; }
.id-addr { font-size: 15px !important; color: var(--foreground) !important; font-weight: 600; line-height: 1.6 !important; margin-top: 10px; }

/* ---------- success ("done") mark — identical to portal.css so the two
   surfaces' "thank you" moments read as one product. .t-success-check
   (fade + rotate + blur + Y-bob + path draw) is defined once in
   /shared/motion.css; app.js flips data-state to "in" on the next frame
   once the done step becomes visible. ---------- */
.success-mark {
  width: 56px; height: 56px; border-radius: 9999px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--success-bg); color: var(--success);
}
.success-mark svg { width: 30px; height: 30px; }
.success-mark svg path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* checklists */
.id-check { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.id-check li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; }
.id-check li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 13px; height: 8px;
  border-left: 2.5px solid var(--primary-ink); border-bottom: 2.5px solid var(--primary-ink); transform: rotate(-45deg);
}
.id-check--num { counter-reset: sgn; }
.id-check--num li { counter-increment: sgn; padding-left: 34px; }
.id-check--num li::before {
  content: counter(sgn); border: 1px solid var(--primary-ink); border-radius: 50%;
  width: 22px; height: 22px; top: 0; transform: none; display: flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--primary-ink);
}

/* sign-doc download rows */
.id-docs { display: flex; flex-direction: column; gap: 10px; }
.id-doc {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
}
.id-doc .nm { font-size: 14px; font-weight: 500; word-break: break-all; display: flex; align-items: center; gap: 10px; color: var(--foreground); }
.id-doc .nm::before {
  content: "PDF"; font-size: 10px; letter-spacing: 0.05em; color: var(--primary-foreground);
  background: var(--primary); border-radius: 3px; padding: 2px 5px; flex: none;
}
.id-doc .btn--small { white-space: nowrap; }

/* desktop-only "continue on your phone" panel (03-35: restructured so the
   intro text + retry button are NEVER JS-hidden — only the inner
   .id-qr-code box, which needs an actual token/QR to show, is toggled by
   renderQrCard(). This means a failed handoff POST or QR render still
   leaves the client with readable copy and a retry button instead of an
   empty step. */
.id-qr { display: none; }
@media (min-width: 900px) {
  .id-qr {
    display: grid; gap: 8px; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px; margin-top: 4px;
  }
  .id-qr[hidden] { display: none; }
  .id-qr h3 { font-size: 14px; font-weight: 600; color: var(--foreground); }
  .id-qr > button { justify-self: start; }
  .id-qr-code { display: flex; gap: 16px; align-items: center; margin-top: 4px; }
  .id-qr-code[hidden] { display: none; }
  .id-qr-code canvas { flex: none; border-radius: 4px; }
  .id-qr-url {
    font-size: 11.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--muted-foreground); word-break: break-all; user-select: all;
  }
  /* "prepare" step's optional (not mandatory-phone) QR card keeps its
     original canvas-beside-text row layout — unaffected by 03-35's five
     mandatory-capture-step restructuring above. */
  .id-qr.id-qr--row { display: flex; gap: 20px; align-items: center; }
  .id-qr.id-qr--row canvas { flex: none; border-radius: 4px; }
  .id-qr.id-qr--row h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--foreground); }
}

/* confirm-data grid */
.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap:var(--form-group-gap); }
@media (max-width: 600px) { .id-grid { grid-template-columns: 1fr; } }

/* document-type choice cards */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: var(--primary-ink); }
.choice.sel { border-color: var(--primary-ink); background: var(--muted); box-shadow: 0 0 0 1px var(--primary-ink); }
.choice .t { font-size: 14px; font-weight: 600; color: var(--foreground); }
.choice .d { font-size: 12.5px; color: var(--muted-foreground); }

/* ============ capture widget ============ */
.id-capture { display: grid; gap:var(--form-group-gap); }
.id-cap-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.id-cap-actions .btn { flex: 1; min-height: 52px; }
.id-cap-status { font-size: 13.5px; }
.id-cap-status.ok { color: var(--success); font-weight: 500; }
.id-cap-status.warn { color: var(--warning); }
.id-cap-status.err { color: var(--destructive); font-weight: 500; }

/* live camera view — deliberately stays a near-black stage regardless of
   theme (video content itself sets the tone); only the chrome around it
   picks up brand red. */
.cam-wrap { position: relative; background: #161616; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/4; max-height: 70vh; }
.cam-wrap.landscape { aspect-ratio: 4/3; }
.cam-wrap video, .cam-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cam-wrap video.mirror { transform: scaleX(-1); }

/* guide overlays */
.guide-doc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86%; aspect-ratio: 1.586/1; border: 2px solid rgba(255, 255, 255, .9); border-radius: 6px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.guide-doc::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 8%; height: 16%; border: 1.5px dashed rgba(255, 255, 255, .65); }
.guide-face { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 52%; aspect-ratio: 3/4; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50% 50% 46% 46%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.guide-card { position: absolute; right: 6%; bottom: 8%; width: 34%; aspect-ratio: 1.586/1; border: 1.5px dashed rgba(255, 255, 255, .85); border-radius: 4px; }

/* shutter */
.shutter { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 66px; height: 66px; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 255, 255, .28); cursor: pointer; transition: background .15s; }
.shutter:hover { background: rgba(255, 255, 255, .5); }
.shutter:active { background: #fff; }

/* small controls over the video */
.cam-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.cam-flip { position: absolute; bottom: 26px; right: 14px; border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius); background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; padding: 8px 12px; cursor: pointer; }

/* recording chrome */
.rec-dot { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 7px; color: #fff; font-size: 12.5px; letter-spacing: .04em; background: rgba(0, 0, 0, .45); border-radius: 4px; padding: 5px 10px; }
.rec-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); animation: idblink 1s steps(2) infinite; }
@keyframes idblink { 50% { opacity: .25; } }
.rec-timer { position: absolute; top: 12px; right: 12px; color: #fff; font-size: 13px; background: rgba(0, 0, 0, .45); border-radius: 4px; padding: 5px 10px; font-variant-numeric: tabular-nums; }
.rec-stop { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); min-height: 48px; padding: 12px 26px; border: 2px solid #fff; border-radius: var(--radius); background: rgba(211, 24, 24, .85); color: #fff; font: inherit; font-size: 15px; cursor: pointer; }

/* liveness arrows */
.live-cue { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; pointer-events: none; text-align: center; }
.live-cue .arrow { font-size: 110px; line-height: 1; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.live-cue .lbl { color: #fff; font-size: 16px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); background: rgba(0, 0, 0, .35); border-radius: 4px; padding: 6px 14px; }

/* liveness "light check" screen-colour flash overlay (03-26, IDN-02) — a
   fixed, full-viewport layer painted BEHIND all normal-flow page content
   (negative z-index; the video preview itself is never covered, so the
   colour reaches the subject only via the device's own screen glow around
   the capture frame) plus a border "glow" ring on the camera frame for
   visual continuity while it runs. Colour is set/cleared entirely from JS
   (public/id/app.js#runFlash); a short background transition avoids a harsh
   1-frame pop without adding a second, competing flash rate. */
#flashOverlay { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: transparent; transition: background 60ms linear; }
.cam-wrap.flash-glow { box-shadow: 0 0 60px 22px var(--flash-color, transparent); }
/* E4 (03-42, officer 2026-09-06: "никаких вспышек не было" — D1 proves the
   5-colour sequence ran, but #flashOverlay sits BEHIND an opaque, near-
   full-viewport .id-step card, so only its ~20px gutters ever changed
   colour). While the camera frame is flashing, the card around it turns
   transparent so the fixed, negative-z-index overlay actually reaches the
   subject through the device's screen glow. Engines without :has() (older
   than iOS 15.4) keep today's behaviour unchanged. */
.id-step:has(.cam-wrap.flash-glow) { background: transparent; }
.flash-intro { display: grid; gap: 8px; }
.flash-dim-toggle { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted-foreground); cursor: pointer; }
.flash-dim-toggle input { width: 18px; height: 18px; }

/* preview after capture */
.id-preview { display: grid; gap: 12px; }
.id-preview img, .id-preview video { width: 100%; max-height: 56vh; object-fit: contain; background: #161616; border: 1px solid var(--border); border-radius: var(--radius); }

/* upload progress */
.upbar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.upbar i { display: block; height: 100%; width: 0; background: var(--primary); color: var(--primary-foreground); transition: width .2s; }

/* review list */
.id-review { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.id-rrow { display: flex; align-items: center; gap:var(--form-group-gap); padding: 12px 14px; border-bottom: 1px solid var(--border); }
.id-rrow:last-child { border-bottom: 0; }
.id-rrow .thumb { width: 56px; height: 56px; flex: none; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; background: #161616; }
.id-rrow .thumb--empty { display: flex; align-items: center; justify-content: center; color: var(--success); font-size: 20px; background: var(--success-bg); border-color: var(--success); }
.id-rrow .k { flex: 1; min-width: 0; }
.id-rrow .k .nm { font-size: 14px; font-weight: 500; color: var(--foreground); }
.id-rrow .k .st { font-size: 12.5px; color: var(--success); }
.id-rrow .k .sub { font-size: 12.5px; color: var(--muted-foreground); word-break: break-word; }
.id-rrow .rd { font-size: 13px; color: var(--primary-ink); background: none; border: 0; cursor: pointer; text-decoration: underline; white-space: nowrap; }

/* Turnstile holder spacing */
#idTs:empty { display: none; }

/* ============ footer: brand NAP + help/trust line ============ */
.wiz-foot { border-top: 1px solid var(--border); margin-top: 8px; }
.wf-in { max-width: 680px; margin: 0 auto; padding: 24px 20px 40px; }
.foot { font-size: 13px; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 12px; }
.foot a { color: inherit; }
.foot strong { color: var(--foreground); }
.wf-help, .wf-trust { display: block; font-size: 12.5px; color: var(--muted-foreground); line-height: 1.6; }
.wf-help a, .wf-trust a { color: inherit; }
.wf-trust { margin-top: 4px; }

@media (max-width: 560px) {
  .id-step { padding: 22px; }
  .bar .in { padding: 12px 16px; }
}

/* Owner rule 09.10.2026: every active link is underlined on hover and keyboard focus, button-styled links included. */
a[href]:hover, a[href]:focus-visible { text-decoration-line: underline; text-underline-offset: 2px; }

/* Shared regular/phone fields, with the existing large navigation variant. */
.field { min-width:0; }
.field input, .field select { height:var(--control-height); min-width:0; }
input[type=radio], input[type=checkbox] { flex:none; }
.choice > :is(span, div) { flex:1; min-width:0; }
.id-grid .field:has(#cfEmail) { grid-column:1/-1; }
.btn--outline { background:var(--card); color:var(--foreground); border-color:var(--border); }
.btn--outline:hover { background:var(--muted); }
.id-nav .btn, .id-cap-actions .btn { height:52px; min-height:52px; }
.id-rrow .rd { min-height:var(--control-height); padding:0 12px; flex:none; }
@media(max-width:600px) {
  :root { --control-height:var(--control-height-phone); }
  .btn--small, .langtog button, .langtog-pill { height:var(--control-height-phone); }
  .cam-x { width:44px; height:44px; }
  .cam-flip, .flash-dim-toggle, .id-rrow .rd { min-height:44px; }
}
