/* ============================================================================
   rmd-navigation — map-first redesign of rmd-nav.
   Liquid-glass, white-on-dark. Full-bleed living map; floating glass pills.
   ========================================================================== */
:root {
  --bg: #000000;          /* pure black = transparent on the additive display */
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-mut: rgba(255, 255, 255, 0.48);
  --me-blue: #0a84ff;     /* dark-blue position disc */
  --route: #19b3ff;
  --route-done: rgba(255, 255, 255, 0.42);
  --danger: #ff4466;
  --warm: #ff9f43;
  --ok: #34d27b;
  /* liquid glass */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bord: rgba(255, 255, 255, 0.26);
  --glass-blur: blur(13px) saturate(1.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  width: 600px;
  height: 600px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
#app { width: 100%; height: 100%; position: relative; overflow: hidden; }
.hidden { display: none !important; }

/* ---- liquid-glass surface ------------------------------------------------ */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bord);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ============================================================================
   FULL-SCREEN MAP
   ========================================================================== */
.map { position: absolute; inset: 0; overflow: hidden; z-index: 0; perspective: 560px; perspective-origin: 50% 50%; }
/* The ground plane fades to nothing at the edges so it melts into the dark frame. */
.map-world {
  position: absolute; inset: 0; transform-origin: 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse 120% 118% at 50% 50%, #000 52%, rgba(0,0,0,.42) 78%, transparent 100%);
          mask-image: radial-gradient(ellipse 120% 118% at 50% 50%, #000 52%, rgba(0,0,0,.42) 78%, transparent 100%);
}
/* Nav: NO mask. In the isometric (tilted) view the ground plane's tiles overflow
   the 600×600 #map-world box to fill the screen up to the top — but a mask is
   painted in the element's own (pre-transform) box, so on the glasses webview it
   CLIPS that overflow and leaves a black band above the box's projected top edge.
   Dropping the mask lets the tilted ground fill the whole screen (it's clipped
   only by #map's viewport, after projection — exactly what we want here). */
.map.nav .map-world { -webkit-mask-image: none; mask-image: none; }
.map-tiles { position: absolute; inset: 0; }
/* Lift the dark CARTO basemap so the faint roads read on the additive display. */
.map-tile { position: absolute; width: 256px; height: 256px; opacity: 0.96; filter: brightness(1.9) saturate(1.1); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-route { stroke: var(--route); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(25,179,255,.55)); }
.map-route-done { stroke: var(--route-done); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.map-dest { fill: var(--warm); stroke: #000; stroke-width: 2; }

/* POI labels (upright HTML, projected onto the rotating/tilted ground by JS). */
.map-poi-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
/* POI label = a small translucent glass pill (legible over the dark map). */
.poi {
  position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; will-change: transform;
  background: rgba(8, 10, 16, 0.62); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px; padding: 3px 10px 3px 7px;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.5);
}
.poi-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px rgba(0,0,0,.4); }
.poi-name { font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: 0.2px; }
/* Highlighted = the POI currently centred in the cartouche carousel. */
.poi.hl { background: rgba(255, 255, 255, 0.96); border-color: #fff; box-shadow: 0 3px 14px rgba(255,255,255,.4); z-index: 3; }
.poi.hl .poi-name { color: #0a0a12; }

/* "me" group — positioned & rotated as a unit by JS. */
.me { position: absolute; left: 0; top: 0; width: 200px; height: 200px; pointer-events: none; z-index: 3; will-change: transform; }
.me-cone { position: absolute; left: 50%; top: 50%; width: 158px; height: 176px; transform: translate(-50%, -50%); }
.me-dot  { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 5px rgba(0,0,0,.6)); }
.me-disc { fill: var(--me-blue); stroke: #fff; stroke-width: 1.7; }
.me-fwd  { fill: #fff; }
.me-uturn { display: none; fill: none; stroke: var(--danger); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.me.wrong .me-cone { display: none; }
.me.wrong .me-fwd  { display: none; }
.me.wrong .me-disc { fill: var(--danger); }
.me.wrong .me-uturn { display: inline; stroke: #fff; }
.me.no-cone .me-cone { display: none; }

/* scrim behind full overlays */
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.62); z-index: 8; }

/* ============================================================================
   FOCUS (D-pad)
   ========================================================================== */
.focusable { transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, border-color .16s ease; cursor: pointer; outline: none; }

/* ============================================================================
   GPS chip (top-left)
   ========================================================================== */
.gps-pill {
  position: absolute; top: 16px; left: 16px; z-index: 6;
  font-size: 14px; font-weight: 700; color: var(--ink);
  padding: 6px 13px; border-radius: 999px;
}
.gps-pill.ok  { color: var(--ok); }
.gps-pill.bad { color: var(--danger); }

/* ============================================================================
   GLANCE — bottom pill bar (centered carousel)
   ========================================================================== */
.bar-wrap {
  position: absolute; left: 0; right: 0; bottom: 26px; height: 60px;
  z-index: 6; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.bar-strip {
  position: absolute; left: 0; top: 0; height: 60px;
  display: flex; align-items: center; gap: 12px; padding: 0 8px;
  transform: translateX(300px);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
  white-space: nowrap;
}
.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 20px; max-width: 360px;
  border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--glass-bord);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 6px 22px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.22);
  color: var(--ink-soft); font-size: 18px; font-weight: 600;
  transform: scale(.9); opacity: .72;
  transition: transform .26s ease, opacity .26s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.chip .chip-ic { display: flex; align-items: center; }
/* white line-icons (match the nav controls); inherit chip colour so they invert on focus */
.ic { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip .chip-ic .ic { width: 19px; height: 19px; }
.pv-mode .ic { width: 25px; height: 25px; }
.chip .chip-lbl { overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.chip.is-focused {
  background: rgba(255,255,255,.94); color: #0a0a12; border-color: #fff;
  box-shadow: 0 8px 30px rgba(255,255,255,.32), 0 4px 14px rgba(0,0,0,.4);
  transform: scale(1.04); opacity: 1;
}
.chip.disabled { opacity: .5; }

/* ============================================================================
   POI BROWSE — category title + cartouche carousel
   ========================================================================== */
.poi-title {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  font-size: 16px; font-weight: 800; color: #fff; max-width: 86%; pointer-events: none;
}
.poi-title-ic { display: flex; }
.poi-title-ic .ic { width: 18px; height: 18px; }
.poi-title-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.poi-carousel {
  position: absolute; left: 0; right: 0; bottom: 16px; height: 188px; z-index: 6; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
}
.poi-strip {
  position: absolute; left: 0; top: 0; height: 188px;
  display: flex; align-items: stretch; gap: 16px;
  transform: translateX(300px); transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.cartouche {
  flex: 0 0 auto; width: 452px; border-radius: 24px; padding: 13px;
  display: flex; flex-direction: row; align-items: stretch; gap: 14px;
  /* Dark, near-opaque card + heavy blur so the white text stays readable over a
     busy map (the faint white glass was hard to read in overlay). */
  background: rgba(11, 14, 22, 0.72); border: 1px solid var(--glass-bord);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 8px 26px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.16);
  transform: scale(.9); opacity: .6; transition: transform .26s ease, opacity .26s ease;
}
.cartouche.cur { transform: scale(1); opacity: 1; background: rgba(9, 12, 19, 0.88); }
.cart-photo-wrap { width: 138px; flex: none; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.cart-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-photo-ph .ic { width: 44px; height: 44px; opacity: .45; }
.cart-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.cart-info { width: 452px; align-items: center; justify-content: center; text-align: center; }
.cart-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-name { font-size: 25px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-rating { font-size: 18px; font-weight: 800; color: var(--warm); flex: none; }
.cart-rn { color: var(--ink-mut); font-weight: 600; font-size: 14px; }
.cart-detail { font-size: 16px; color: var(--ink-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-meta { font-size: 18px; font-weight: 700; color: var(--ink-soft); }
.cart-chev { flex: none; align-self: center; font-size: 38px; line-height: 1; color: var(--ink-mut); opacity: 0; transition: opacity .2s ease; padding-right: 4px; }
.cartouche.cur .cart-chev { opacity: 1; color: #fff; }

/* ============================================================================
   NAV — top maneuver pill
   ========================================================================== */
.nav-top { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: center; z-index: 6; pointer-events: none; }
.man-pill {
  display: flex; align-items: center; gap: 16px;
  max-width: 540px; padding: 12px 22px 12px 16px; border-radius: 26px;
}
.man-icon { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.man-icon .man-arrow { width: 44px; height: 44px; }
.man-icon .man-arrow polygon, .man-icon .man-arrow path { fill: #fff; }
.man-body { min-width: 0; }
.man-dist { font-size: 30px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.man-instr { font-size: 17px; font-weight: 600; color: var(--ink-soft); margin-top: 5px; line-height: 1.2; overflow-wrap: anywhere; }

/* wrong-way */
.wrong-way { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); z-index: 7; background: var(--danger); color: #fff; font-size: 17px; font-weight: 800; padding: 10px 20px; border-radius: 22px; box-shadow: 0 4px 20px rgba(0,0,0,.55); white-space: nowrap; animation: wwpulse 1s ease-in-out infinite; }
@keyframes wwpulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ============================================================================
   NAV — bottom info pills + control cluster
   ========================================================================== */
.nav-foot { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 6; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 20px; }
.info-pills { display: flex; gap: 10px; pointer-events: none; }
.info-pill { display: flex; flex-direction: column; align-items: center; padding: 9px 16px; border-radius: 18px; min-width: 84px; }
.ip-val { font-size: 24px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.ip-lbl { font-size: 12px; color: var(--ink-mut); margin-top: 4px; }
.ip-val.t-fluid { color: var(--ok); } .ip-val.t-mod { color: var(--warm); } .ip-val.t-heavy { color: var(--danger); }

.nav-ctrls { display: flex; align-items: center; gap: 12px; }
.ctl {
  width: 56px; height: 56px; border-radius: 999px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-bord);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 6px 22px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.22);
  color: #fff; padding: 0; overflow: hidden;
}
.ctl .ctl-ic { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ctl .ctl-ic circle, .ctl .ctl-ic path { fill: none; }
.ctl-pins-fill .ctl-ic path { fill: rgba(255,255,255,.001); }
/* pins active = solid white */
#ctl-pins.active { background: rgba(255,255,255,.94); border-color: #fff; }
#ctl-pins.active .ctl-ic { stroke: #0a0a12; }
#ctl-pins.active .ctl-ic path { fill: #0a0a12; }
/* zoom engaged = solid white */
#ctl-zoom.active { background: rgba(255,255,255,.94); border-color: #fff; }
#ctl-zoom.active .ctl-ic { stroke: #0a0a12; }
.ctl:focus { box-shadow: 0 0 0 2px #fff, 0 8px 26px rgba(255,255,255,.3); }

/* stop button: collapsed circle -> focused pulsing pill "Arrêter la navigation ?" */
.ctl-stop { position: relative; }
.ctl-stop .ctl-x { stroke-width: 2.4; }
.ctl-stop-label { display: none; font-size: 17px; font-weight: 800; color: #fff; white-space: nowrap; padding-right: 4px; }
/* Focus expands it into a STATIC red pill (driven by an explicit .armed class —
   the glasses webview applies :focus unreliably after a programmatic .focus();
   :focus is a desktop fallback). A first select adds .confirming → it PULSES, so
   a second select is needed to actually stop. */
.ctl-stop.armed, .ctl-stop.confirming, .ctl-stop:focus {
  width: auto; padding: 0 20px 0 16px; gap: 10px; border-radius: 999px;
  background: rgba(255,68,102,.9); border-color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 8px 26px rgba(255,68,102,.4);
}
.ctl-stop.armed .ctl-stop-label, .ctl-stop.confirming .ctl-stop-label, .ctl-stop:focus .ctl-stop-label { display: inline; }
.ctl-stop.confirming { background: rgba(255,40,76,.97); box-shadow: 0 0 0 3px #fff, 0 10px 30px rgba(255,40,76,.55); animation: stoppulse .8s ease-in-out infinite; }
@keyframes stoppulse { 0%,100% { opacity: 1; } 50% { opacity: .68; } }

/* Car: round live-speed badge — bottom-left, stacked above the info pills. */
.speed-badge { position: absolute; left: 20px; bottom: 96px; z-index: 6; width: 78px; height: 78px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.speed-val { font-size: 34px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.speed-unit { font-size: 12px; font-weight: 600; color: var(--ink-mut); margin-top: 2px; }

.zoom-hint { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 7; padding: 10px 18px; border-radius: 16px; text-align: center; font-size: 18px; font-weight: 800; color: #fff; pointer-events: none; }
.zoom-hint b { margin: 0 3px; }
.zoom-hint span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-mut); }

/* ============================================================================
   PREVIEW — route summary card over the live map
   ========================================================================== */
.preview-card {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 7;
  border-radius: 26px; padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.pv-head { display: flex; align-items: center; gap: 12px; }
.pv-close { width: 40px; height: 40px; flex: none; border-radius: 999px; border: 1px solid var(--glass-bord); background: rgba(255,255,255,.08); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.pv-close:focus { background: #fff; color: #0a0a12; }
.pv-name { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv-stats { display: flex; align-items: center; gap: 22px; padding-left: 4px; }
.pv-stat { text-align: center; }
.pv-val { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.pv-val.t-fluid { color: var(--ok); } .pv-val.t-mod { color: var(--warm); } .pv-val.t-heavy { color: var(--danger); }
.pv-lbl { font-size: 13px; color: var(--ink-mut); margin-top: 5px; }
.pv-sep { width: 1px; height: 46px; background: rgba(255,255,255,.18); }
.pv-status { font-size: 14px; color: var(--ink-soft); min-height: 17px; }
.pv-status:empty { display: none; }
.pv-actions { display: flex; align-items: center; gap: 10px; }
.pv-mode, .pv-fav { width: 52px; height: 48px; flex: none; border-radius: 16px; border: 1px solid var(--glass-bord); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.pv-mode.active { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.55); }
.pv-mode:focus, .pv-fav:focus { background: #fff; color: #0a0a12; border-color: #fff; }
.pv-fav.is-fav { color: var(--warm); }
.pv-fav.is-fav:focus { color: var(--warm); }
.pv-start { flex: 1; height: 48px; border-radius: 16px; border: 1px solid var(--glass-bord); background: rgba(255,255,255,.16); color: #fff; font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pv-start:focus { background: #fff; color: #0a0a12; border-color: #fff; box-shadow: 0 6px 24px rgba(255,255,255,.3); }
.pv-start.loading { opacity: .5; }
/* NAV → POI choice: two stacked full-width actions (étape / remplacer). */
.pc-actions { flex-direction: column; align-items: stretch; gap: 10px; }
.pc-btn { width: 100%; min-height: 48px; padding: 6px 14px; border-radius: 16px; border: 1px solid var(--glass-bord); background: rgba(255,255,255,.08); color: #fff; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-align: center; }
.pc-btn.primary { background: rgba(255,255,255,.16); }
.pc-btn:focus { background: #fff; color: #0a0a12; border-color: #fff; box-shadow: 0 6px 24px rgba(255,255,255,.3); }
.pc-btn:disabled { opacity: .5; }

/* ============================================================================
   FULL OVERLAYS — results / keyboard / phone / arrived / lock
   ========================================================================== */
.overlay { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; }
.ov-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 8px; flex: none; }
.ov-head h1 { font-size: 23px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-back { width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid var(--glass-bord); background: rgba(255,255,255,.08); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.ov-back:focus { background: #fff; color: #0a0a12; }
.ov-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.ov-body.centered { align-items: center; justify-content: center; text-align: center; gap: 18px; }

.dest-list { display: flex; flex-direction: column; gap: 9px; }
.dest-item { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); color: #fff; text-align: left; }
.dest-item:focus { background: #fff; color: #0a0a12; border-color: #fff; }
.dest-item:focus .di-sub { color: rgba(10,10,18,.7); }
.di-name { font-size: 18px; font-weight: 700; }
.di-sub { font-size: 13px; color: var(--ink-mut); }
.empty-hint { font-size: 14px; color: var(--ink-mut); padding: 6px 2px; }
.sub-status { font-size: 16px; color: var(--ink-soft); max-width: 480px; line-height: 1.4; }
.sub-status.err { color: var(--danger); min-height: 18px; }
.big-status { font-size: 34px; font-weight: 800; color: #fff; }
.dest-name { font-size: 22px; font-weight: 700; color: #fff; max-width: 480px; line-height: 1.3; }
.big-action { padding: 14px 26px; border-radius: 16px; border: 1px solid var(--glass-bord); background: rgba(255,255,255,.16); color: #fff; font-size: 18px; font-weight: 800; }
.big-action:focus { background: #fff; color: #0a0a12; border-color: #fff; }
.arrived-icon { font-size: 100px; line-height: 1; }

/* keyboard */
.kb-text-wrap { margin: 4px 18px 0; padding: 12px 18px; border-radius: 16px; min-height: 50px; display: flex; align-items: center; word-break: break-word; }
#kb-text { font-size: 25px; font-weight: 800; color: #fff; line-height: 1.2; }
#kb-text.kb-placeholder { color: var(--ink-mut); font-weight: 600; }
.kb-grid { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 4px; }
.kb-row { display: flex; gap: 6px; justify-content: center; }
.kb-key { flex: 1; min-width: 0; height: 50px; border-radius: 11px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.kb-key:focus { background: #fff; color: #0a0a12; border-color: #fff; transform: scale(1.06); }
.kb-key.kb-act { font-size: 15px; font-weight: 700; }
.kb-key.primary { background: rgba(255,255,255,.2); }
.kb-hint { text-align: center; font-size: 13px; color: var(--ink-mut); padding: 6px; }

/* phone */
.phone-url { font-size: 22px; font-weight: 800; color: #fff; padding: 14px 22px; border-radius: 16px; word-break: break-all; max-width: 540px; }
.pulse-dot-row { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink-soft); }
.pulse-dot { width: 13px; height: 13px; border-radius: 50%; background: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }

/* lock */
.lock-title { font-size: 30px; font-weight: 800; }
.pin { display: flex; gap: 11px; align-items: center; justify-content: center; flex-wrap: wrap; }
.digit { width: 52px; height: 70px; border-radius: 14px; border: 1px solid var(--glass-bord); background: rgba(255,255,255,.08); font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; display: flex; align-items: center; justify-content: center; color: #fff; }
.digit:focus { background: #fff; color: #0a0a12; border-color: #fff; }
.pin-ok { height: 70px; padding: 0 22px; border-radius: 14px; font-size: 32px; font-weight: 800; border: 1px solid var(--glass-bord); background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; }
.pin-ok:focus { background: #fff; color: #0a0a12; border-color: #fff; }
