


/* ============================================================
   BLOOM - screen atlas section: ONBOARDING (v2).
   The v1 Cyber Sakura first-run journey, redrawn in the Bloom
   language: photographic sakura wallpaper under every frame,
   faked frosted glass (translucent gradient fills + 1px light
   borders - no backdrop-filter, no blur(), no blend modes,
   no clip-path), the glossy bubble orb as the agent presence,
   gradient pink pill CTAs, glass pill secondary actions.
   The orb breathing loop is the only animation on the board.
   ============================================================ */
:root {
  /* palette anchors */
  --pink: #FF8FAB;
  --violet: #C77DFF;
  --ground: #140A12;
  --warm: #FFF5F8;

  /* ink */
  --ink: var(--warm);
  --ink-dim: rgba(255,245,248,.66);
  --ink-faint: rgba(255,245,248,.42);
  --ink-ghost: rgba(255,245,248,.26);

  /* faked frost - translucent gradient fills over the wallpaper */
  --glass: linear-gradient(160deg, rgba(255,190,220,.14), rgba(255,190,220,.05));
  --glass-hi: linear-gradient(160deg, rgba(255,190,220,.22), rgba(255,190,220,.08));
  --glass-deep: linear-gradient(160deg, rgba(30,14,26,.55), rgba(30,14,26,.30));
  --glass-border: rgba(255,255,255,.18);
  --glass-border-hi: rgba(255,255,255,.30);
  --inner-hi: inset 0 1px 0 rgba(255,255,255,.16);

  /* accents */
  --cta-grad: linear-gradient(135deg, #FF8FAB, #C77DFF);
  --cta-ink: #2A0E1C;
  --dash-ring: rgba(255,143,171,.75);
  --live: #FF8FAB;
  --ok: #7FE0B2;
  --ok-line: rgba(127,224,178,.45);
  --ok-tint: rgba(127,224,178,.10);
  --gold: #FFD58A;
  --gold-line: rgba(255,213,138,.45);
  --gold-tint: rgba(255,213,138,.10);
  --err: #FF7A8A;
  --err-line: rgba(255,122,138,.45);
  --err-tint: rgba(255,122,138,.10);

  /* radii */
  --r-card: 26px;
  --r-card-sm: 20px;
  --r-pill: 999px;

  /* type */
  --disp: 'Nunito', system-ui, sans-serif;
  --sans: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* page chrome */
  --page: #0E0810;
  --page-line: rgba(255,255,255,.09);
  --page-ink: rgba(255,245,248,.90);
  --page-muted: rgba(255,245,248,.48);
  --page-faint: rgba(255,245,248,.28);
}

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

body {
  background:
    radial-gradient(ellipse 55% 20% at 50% 0%, rgba(255,143,171,.08), transparent 70%),
    var(--page);
  font-family: var(--sans);
  color: var(--page-ink);
  min-height: 100vh;
  padding: 20px 24px 16px;
}

/* ---------- board chrome ---------- */
.board-header { max-width: 1660px; margin: 0 auto 12px; }
.board-eyebrow {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .30em;
  color: var(--page-faint); text-transform: uppercase; margin-bottom: 8px;
}
.board-eyebrow b { color: var(--pink); font-weight: 600; }
.board-title {
  font-family: var(--disp); font-weight: 800; font-size: 44px;
  letter-spacing: .01em; line-height: 1;
}
.board-title span {
  background: var(--cta-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.board-sub {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .03em;
  color: var(--page-muted); margin-top: 8px; max-width: 1280px; line-height: 1.7;
}
.board-sub b { color: var(--pink); font-weight: 600; }
.board-sub .pv {
  background: var(--cta-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 600;
}
.board-links { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.board-link {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  color: var(--page-muted); background: rgba(255,255,255,.04);
  border: 1px solid var(--page-line); border-radius: 999px;
  padding: 4px 12px; text-decoration: none; text-transform: uppercase;
}
.board-link:hover { color: var(--pink); border-color: rgba(255,143,171,.45); }
.legend-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em;
  color: var(--page-muted); background: rgba(255,255,255,.04);
  border: 1px solid var(--page-line); border-radius: 999px; padding: 4px 8px;
}
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.glassy { background: var(--glass); border: 1px solid var(--glass-border); }
.legend-dot.dashed { background: transparent; border: 1.5px dashed var(--dash-ring); }
.motion-pill {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  color: var(--pink); background: rgba(255,143,171,.10);
  border: 1px solid rgba(255,143,171,.42); border-radius: 999px;
  padding: 4px 12px; cursor: pointer;
}
.motion-pill.off { color: var(--page-faint); background: rgba(255,255,255,.04); border-color: var(--page-line); }

.board {
  display: grid; grid-template-columns: repeat(4, 390px);
  gap: 16px 20px; justify-content: center; max-width: 1660px; margin: 0 auto;
}
.frame-wrap { width: 390px; }
.frame-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  color: var(--pink); margin-bottom: 8px; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden;
}
.frame-label .fn {
  color: var(--page-faint); font-size: 9.5px; letter-spacing: .05em;
  text-transform: none; overflow: hidden; text-overflow: ellipsis;
}

.board-foot {
  max-width: 1660px; margin: 12px auto 0; padding-top: 8px;
  border-top: 1px solid var(--page-line);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em;
  color: var(--page-faint); line-height: 1.9;
}
.board-foot b { color: var(--page-muted); font-weight: 500; }

/* ---------- phone frame ---------- */
.phone {
  width: 390px; height: 844px; border-radius: 44px;
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  background: var(--ground);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 6px #17101A, 0 36px 80px rgba(0,0,0,.75);
}
.wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(20,10,18,.42) 0%, rgba(20,10,18,.10) 26%,
    rgba(20,10,18,.08) 52%, rgba(20,10,18,.34) 78%, rgba(20,10,18,.62) 100%);
}
.scrim.deep {
  background: linear-gradient(180deg,
    rgba(18,9,16,.62) 0%, rgba(18,9,16,.48) 40%, rgba(18,9,16,.72) 100%);
}

/* ---------- status bar ---------- */
.statusbar {
  height: 44px; flex: none; display: flex; align-items: center;
  justify-content: space-between; padding: 4px 24px 0 24px;
  position: relative; z-index: 2;
}
.statusbar .time {
  font-family: var(--disp); font-size: 15px; font-weight: 700;
  letter-spacing: .03em; color: var(--ink);
}
.statusbar .tele { display: flex; align-items: center; gap: 8px; }
.sig { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.sig i { width: 3px; border-radius: 1px; background: rgba(255,245,248,.92); display: block; }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 6px; }
.sig i:nth-child(3) { height: 8px; } .sig i:nth-child(4) { height: 11px; }
.sig.dim { opacity: .35; }
.statusbar .tele svg { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.net {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  color: var(--ink-dim); letter-spacing: .10em;
}
.net.wn { color: var(--gold); }
.bat { width: 22px; height: 11px; border-radius: 3.5px; border: 1px solid rgba(255,245,248,.75); position: relative; display: block; }
.bat i { position: absolute; inset: 1.5px; width: 72%; border-radius: 2px; background: var(--ink); display: block; }
.bat::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 2px; height: 5px; border-radius: 1px; background: rgba(255,245,248,.75); }

/* home indicator */
.homebar {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 999px;
  background: rgba(255,245,248,.85); z-index: 3;
}

/* ---------- THE BUBBLE ORB (only looping thing) ---------- */
.orb {
  border-radius: 50%; position: relative; flex: none;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 33% 24%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.34) 7%, rgba(255,255,255,0) 19%),
    radial-gradient(ellipse 62% 44% at 30% 78%, rgba(255,225,240,0) 55%, rgba(255,215,235,.34) 72%, rgba(255,215,235,0) 88%),
    radial-gradient(ellipse 58% 40% at 70% 80%, rgba(255,170,205,.40) 0%, rgba(255,170,205,0) 70%),
    radial-gradient(circle at 50% 42%, rgba(24,10,22,.66) 0%, rgba(24,10,22,.34) 44%, rgba(24,10,22,0) 64%),
    radial-gradient(circle at 50% 50%,
      rgba(0,0,0,0) 50%, rgba(255,150,190,.26) 66%,
      rgba(255,196,226,.55) 79%, rgba(199,125,255,.62) 89%,
      rgba(255,238,246,.78) 96%, rgba(255,143,171,.30) 100%),
    radial-gradient(circle at 30% 22%, rgba(255,200,226,.24), rgba(199,125,255,.13) 55%, rgba(14,6,12,.30) 100%);
  box-shadow:
    0 0 26px rgba(255,143,171,.40),
    0 0 74px rgba(199,125,255,.26),
    inset 0 0 18px rgba(255,190,220,.28),
    inset 0 -9px 20px rgba(199,125,255,.26);
}
.orb svg { position: relative; z-index: 1; stroke: #FFFFFF; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .96; }
.orb-halo { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 230px; height: 230px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,143,171,.18) 0%, rgba(199,125,255,.07) 55%, transparent 75%); }
.orb-ring {
  position: absolute; inset: -12px; border-radius: 50%; pointer-events: none;
  border: 1.5px dashed var(--dash-ring);
}

.loop { animation: breathe 3s ease-in-out infinite; transform-origin: center; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .97; }
  50% { transform: scale(1.03); opacity: 1; }
}
body.still .loop { animation: none; }

/* ---------- shared glass primitives ---------- */
.gcard {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--r-card); box-shadow: var(--inner-hi), 0 12px 28px rgba(8,3,8,.30);
}
.klabel {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint);
}
.klabel.pk { color: var(--pink); }
.klabel.wn { color: var(--gold); }
.klabel.err { color: var(--err); }

.ichip {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--glass-hi); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.ichip svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ichip.pk svg { stroke: var(--pink); }
.ichip.vi svg { stroke: var(--violet); }
.ichip.ok svg { stroke: var(--ok); }
.ichip.wn svg { stroke: var(--gold); }
.ichip.sel { border: 1.5px dashed var(--dash-ring); box-shadow: 0 0 14px rgba(255,143,171,.30); }

/* status tag pills */
.tag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .16em; padding: 4px 8px; border-radius: 999px; flex: none;
  text-transform: uppercase;
}
.tag.live { color: var(--pink); border: 1px solid rgba(255,143,171,.42); background: rgba(255,143,171,.10); }
.tag.ok { color: var(--ok); border: 1px solid var(--ok-line); background: var(--ok-tint); }
.tag.wait { color: var(--ink-ghost); border: 1px solid rgba(255,255,255,.12); }
.tag.warn { color: var(--gold); border: 1px solid var(--gold-line); background: var(--gold-tint); }
.tag.err { color: var(--err); border: 1px solid var(--err-line); background: var(--err-tint); }
.tag.agent { color: var(--violet); border: 1px solid rgba(199,125,255,.40); background: rgba(199,125,255,.10); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px rgba(255,143,171,.9); flex: none; }

/* tick progress */
.ticks { display: flex; gap: 4px; flex: 1; }
.ticks i { height: 6px; flex: 1; background: rgba(255,190,220,.14); display: block; border-radius: 3px; }
.ticks i.on { background: var(--pink); box-shadow: 0 0 8px rgba(255,143,171,.45); }
.ticks i.au { background: linear-gradient(90deg, var(--pink), var(--violet)); box-shadow: 0 0 8px rgba(255,143,171,.45); }

/* buttons - gradient pink pills + glass pills */
.btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: var(--r-pill);
  font-family: var(--disp); font-weight: 800; font-size: 13px; letter-spacing: .01em;
}
.btn.primary {
  background: var(--cta-grad); color: var(--cta-ink);
  box-shadow: 0 6px 22px rgba(255,143,171,.45), 0 0 44px rgba(199,125,255,.28), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn.ghost {
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--ink-dim); box-shadow: var(--inner-hi);
}
.btn.ghost.pk { color: var(--pink); border-color: rgba(255,143,171,.42); background: rgba(255,143,171,.10); }
.btn.small { height: 36px; font-size: 11px; font-weight: 700; }

/* petal toggle */
.ptgl {
  width: 48px; height: 28px; border-radius: 999px; flex: none; position: relative;
  background: rgba(255,190,220,.10); border: 1px solid var(--glass-border);
}
.ptgl i {
  position: absolute; top: 3px; left: 4px; width: 20px; height: 20px;
  border-radius: 50% 50% 50% 5px; transform: rotate(45deg);
  background: rgba(255,245,248,.45); display: block;
}
.ptgl.on { background: linear-gradient(135deg, rgba(255,143,171,.55), rgba(199,125,255,.55)); border-color: rgba(255,143,171,.60); box-shadow: 0 0 14px rgba(255,143,171,.30); }
.ptgl.on i { left: 23px; background: #FFFFFF; box-shadow: 0 0 10px rgba(255,143,171,.9); }

/* ============================================================
   ONBOARDING shared anatomy
   ============================================================ */
.ob { flex: 1; display: flex; flex-direction: column; padding: 12px 16px 0; position: relative; z-index: 1; min-height: 0; }

.step-head { display: flex; align-items: center; gap: 12px; }
.step-head .klabel { flex: none; }

.ob-title {
  font-family: var(--disp); font-weight: 800; font-size: 24px;
  line-height: 1.1; letter-spacing: .01em; color: var(--ink); margin-top: 12px;
}
.ob-title .au {
  background: var(--cta-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-sub {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: .01em; color: var(--ink-dim); line-height: 1.5; margin-top: 8px;
}
.ob-sub b { color: var(--ink); font-weight: 600; }

.ob-actions { margin-top: auto; padding-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.ob-actions .row { display: flex; gap: 8px; }

/* feature row */
.frow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.frow .ft { flex: 1; min-width: 0; }
.frow .fname { font-family: var(--disp); font-weight: 800; font-size: 13px; letter-spacing: .01em; color: var(--ink); }
.frow .fmeta { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-faint); margin-top: 1px; line-height: 1.35; }

/* input field - glass card */
.field {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--r-card-sm); padding: 8px 12px 12px; position: relative;
  box-shadow: var(--inner-hi);
}
.field.focus { border-color: rgba(255,143,171,.45); box-shadow: var(--inner-hi), 0 0 18px rgba(255,143,171,.18); }
.field .f-top { display: flex; align-items: center; justify-content: space-between; }
.field .f-val {
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  color: var(--ink); letter-spacing: .02em; margin-top: 4px;
  display: flex; align-items: center; gap: 8px;
}
.field .f-val.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.field .f-val .dim { color: var(--ink-ghost); }
.field .f-note {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  color: var(--ink-faint); line-height: 1.4; margin-top: 4px;
}
.caret { width: 2px; height: 14px; border-radius: 1px; background: var(--pink); box-shadow: 0 0 8px rgba(255,143,171,.9); }

/* list panel - one glass card, hairline row separators */
.list-panel { border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-border); overflow: hidden; position: relative; box-shadow: var(--inner-hi), 0 12px 28px rgba(8,3,8,.30); }
.lrow { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 44px; }
.lrow + .lrow { border-top: 1px solid rgba(255,255,255,.06); }
.lrow .lt { flex: 1; min-width: 0; }
.lrow .lname { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .01em; color: var(--ink); }
.lrow .lmeta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ink-ghost); text-transform: uppercase; margin-top: 2px; }
.lrow.live { background: linear-gradient(160deg, rgba(255,143,171,.16), rgba(199,125,255,.07)); }
.lrow .lval { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; color: var(--ink-dim); flex: none; }

/* radio option - petal dot in a ring */
.radio-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 44px; }
.radio-row + .radio-row { border-top: 1px solid rgba(255,255,255,.06); }
.radio-box {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 1px solid var(--glass-border-hi); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.radio-box::after {
  content: ""; width: 9px; height: 9px; border-radius: 50% 50% 50% 2.5px;
  transform: rotate(45deg); background: transparent;
}
.radio-row.on .radio-box { border: 1.5px dashed var(--dash-ring); }
.radio-row.on .radio-box::after { background: var(--pink); box-shadow: 0 0 8px rgba(255,143,171,.8); }
.radio-row .r-label { flex: 1; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .01em; color: var(--ink-dim); }
.radio-row.on .r-label { color: var(--ink); }
.radio-row .r-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ink-ghost); text-transform: uppercase; }

/* state-note strip */
.note-strip {
  border-radius: var(--r-card-sm); padding: 12px 12px 12px; position: relative;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--inner-hi);
}
.note-strip.wn { background: linear-gradient(160deg, rgba(255,213,138,.14), rgba(255,213,138,.05)); border-color: var(--gold-line); }
.note-strip.err { background: linear-gradient(160deg, rgba(255,122,138,.14), rgba(255,122,138,.05)); border-color: var(--err-line); }
.note-strip .ns-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
.note-strip .ns-row:first-of-type { margin-top: 8px; }
.note-strip .ns-txt { flex: 1; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-dim); line-height: 1.45; }
.note-strip .ns-txt b { color: var(--ink); font-weight: 600; }
.note-strip .ns-ic { width: 7px; height: 7px; border-radius: 50% 50% 50% 2px; transform: rotate(45deg); background: var(--ink-faint); flex: none; margin-top: 4px; }
.note-strip .ns-ic.pk { background: var(--pink); }
.note-strip.wn .ns-ic { background: var(--gold); }
.note-strip.err .ns-ic { background: var(--err); }

/* segmented tabs - glass pill container */
.seg-tabs {
  display: flex; border-radius: 999px; padding: 2px; gap: 2px;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--inner-hi);
}
.seg-tabs .st {
  flex: 1; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--disp); font-weight: 700; font-size: 11px;
  letter-spacing: .02em; color: var(--ink-faint);
}
.seg-tabs .st svg { width: 13px; height: 13px; stroke: var(--ink-faint); fill: none; stroke-width: 1.8; }
.seg-tabs .st.on { background: var(--cta-grad); color: var(--cta-ink); box-shadow: 0 4px 14px rgba(255,143,171,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.seg-tabs .st.on svg { stroke: var(--cta-ink); }

/* custom keypad - glass keys */
.kpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpad-key {
  height: 46px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--inner-hi);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.kpad-key .k-num { font-family: var(--disp); font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: .02em; line-height: 1; }
.kpad-key .k-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; color: var(--ink-ghost); text-transform: uppercase; }
.kpad-key.fn .k-num { color: var(--ink-dim); font-size: 13px; }

/* passcode dots */
.pw-dots { display: flex; gap: 12px; justify-content: center; }
.pw-dots i {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--glass-border-hi); display: block;
}
.pw-dots i.on { background: var(--cta-grad); border-color: transparent; box-shadow: 0 0 10px rgba(255,143,171,.7); }

/* word cells */
.word-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wcell {
  border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--inner-hi);
  padding: 8px 8px 8px; min-height: 42px;
}
.wcell .w-num { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--ink-ghost); }
.wcell .w-word { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink); letter-spacing: .02em; margin-top: 2px; }
.wcell.empty .w-word { color: var(--ink-ghost); }
.wcell.err { border-color: var(--err-line); background: linear-gradient(160deg, rgba(255,122,138,.14), rgba(255,122,138,.05)); }
.wcell.err .w-word { color: var(--err); }

/* checklist row */
.chk { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.chk .c-dot { width: 7px; height: 7px; border-radius: 50% 50% 50% 2px; transform: rotate(45deg); background: var(--ink-ghost); flex: none; }
.chk.done .c-dot { background: var(--ok); }
.chk.live .c-dot { background: var(--pink); box-shadow: 0 0 8px rgba(255,143,171,.8); }
.chk .c-txt { flex: 1; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-dim); }
.chk.done .c-txt { color: var(--ink-faint); }
.chk.live .c-txt { color: var(--ink); }
.chk .c-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--ink-ghost); text-transform: uppercase; }
.chk.live .c-meta { color: var(--pink); }
.chk.done .c-meta { color: var(--ok); }

/* progress bar - glowing gradient fill */
.pbar { height: 9px; border-radius: 999px; background: rgba(255,190,220,.10); border: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.pbar .pfill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  box-shadow: 0 0 14px rgba(255,143,171,.55);
}

/* ============================================================
   FRAME 01 - Splash & arrival
   ============================================================ */
.f-splash .ob { align-items: center; text-align: center; padding-top: 0; }
.splash-orb-zone {
  position: relative; width: 210px; height: 210px; margin-top: 40px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.splash-orb-zone .orb { width: 148px; height: 148px; }
.splash-orb-zone .orb-halo { width: 290px; height: 290px; top: -40px; }
.splash-word {
  font-family: var(--disp); font-weight: 800; font-size: 44px;
  letter-spacing: .02em; line-height: 1.05; margin-top: 24px; color: var(--ink);
}
.splash-word span {
  background: var(--cta-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.splash-tag {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  color: var(--ink-dim); margin-top: 12px; line-height: 1.5; max-width: 270px;
}
.splash-sub2 {
  font-family: var(--sans); font-size: 11px; color: var(--ink-faint);
  margin-top: 8px; line-height: 1.5; max-width: 280px;
}
.f-splash .ob-actions { width: 100%; }

/* ============================================================
   FRAME 02 - Welcome & locale
   ============================================================ */
.f-locale .feat { margin-top: 12px; }
.f-locale .list-panel { margin-top: 12px; }
.region-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.06); }

/* ============================================================
   FRAME 03 - Network setup
   ============================================================ */
.f-net .list-panel { margin-top: 12px; }
.wifi-sig { width: 18px; height: 18px; flex: none; }
.add-net {
  display: flex; align-items: center; gap: 8px; padding: 12px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-family: var(--disp); font-weight: 800; font-size: 13px;
  letter-spacing: .02em; color: var(--pink);
}
.add-net .plus {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed var(--dash-ring);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; font-weight: 700;
}

/* ============================================================
   FRAME 04 - SIM missing
   ============================================================ */
.f-sim .sim-tray {
  margin-top: 12px; border-radius: 22px; padding: 12px;
  display: flex; align-items: center; gap: 12px;
  background: var(--glass); border: 1px solid var(--glass-border); position: relative;
  box-shadow: var(--inner-hi), 0 12px 28px rgba(8,3,8,.30);
}
.sim-card {
  width: 44px; height: 58px; border-radius: 10px; flex: none;
  border: 1.5px dashed var(--ink-ghost);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.sim-card .sim-chip {
  width: 18px; height: 14px; border-radius: 4px;
  border: 1px solid var(--ink-ghost);
}
.f-sim .sim-txt { flex: 1; min-width: 0; }
.f-sim .sim-name { font-family: var(--disp); font-weight: 800; font-size: 15px; letter-spacing: .01em; color: var(--ink); }
.f-sim .sim-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; margin-top: 2px; }

/* small pill action (pair / eject) */
.pill-btn {
  flex: none; font-family: var(--disp); font-weight: 800; font-size: 11px;
  letter-spacing: .04em; color: var(--pink);
  border: 1px solid rgba(255,143,171,.42); background: rgba(255,143,171,.10);
  border-radius: 999px; padding: 8px 12px;
}
.pill-btn.plain { color: var(--ink-dim); border-color: var(--glass-border); background: var(--glass); }

/* ============================================================
   FRAME 05 - eSIM type it
   ============================================================ */
.f-esim .seg-tabs { margin-top: 12px; }
.f-esim .field { margin-top: 8px; }
.f-esim .note-strip { margin-top: 8px; }

/* ============================================================
   FRAME 06 - Bluetooth & clock
   ============================================================ */
.f-btc .list-panel { margin-top: 8px; }
.f-btc .p-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 0;
}
.search-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  color: var(--ink-faint); text-transform: uppercase;
}

/* ============================================================
   FRAME 07 - Principles
   ============================================================ */
.f-prin .prin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.prin-card { border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--inner-hi), 0 12px 28px rgba(8,3,8,.30); padding: 12px 12px; position: relative; }
.prin-card .p-ic { margin-bottom: 8px; }
.prin-card .p-name { font-family: var(--disp); font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--ink); }
.prin-card .p-rule { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--pink); text-transform: uppercase; margin-top: 2px; }
.prin-card .p-txt { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-faint); line-height: 1.45; margin-top: 4px; }

/* ============================================================
   FRAME 08 - Who you are
   ============================================================ */
.f-who .note-strip { margin-top: 12px; }
.branch-hint {
  margin-top: 12px; border-radius: var(--r-card-sm); padding: 12px 12px;
  border: 1.5px dashed var(--dash-ring); background: rgba(255,143,171,.10);
  display: flex; align-items: center; gap: 12px; position: relative;
}
.branch-hint .bh-txt { flex: 1; }
.branch-hint .bh-name { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink); }
.branch-hint .bh-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--pink); text-transform: uppercase; margin-top: 2px; }
.branch-hint .bh-arrow { font-family: var(--mono); font-size: 13px; color: var(--pink); flex: none; }

/* ============================================================
   FRAMES 09-10 - Limitless
   ============================================================ */
.f-ls .field, .f-lc .field { margin-top: 8px; }
.f-ls .note-strip, .f-lc .note-strip { margin-top: 8px; }
.code-dots { display: flex; gap: 8px; align-items: center; }
.code-dots i {
  width: 26px; height: 30px; border-radius: 9px;
  border: 1px solid var(--glass-border); background: var(--glass);
  box-shadow: var(--inner-hi);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--ink);
}
.code-dots i.on { border-color: rgba(255,143,171,.45); background: rgba(255,143,171,.12); color: var(--pink); }

/* ============================================================
   FRAME 11 - Choose name & identity
   ============================================================ */
.f-name .field { margin-top: 8px; }
.f-name .did-strip {
  margin-top: 8px; display: flex; align-items: center; gap: 12px;
  border-radius: var(--r-card-sm); padding: 8px 12px;
  background: linear-gradient(160deg, rgba(199,125,255,.16), rgba(255,143,171,.07));
  border: 1px solid rgba(199,125,255,.38);
  box-shadow: var(--inner-hi);
}
.f-name .did-strip .d-txt { flex: 1; min-width: 0; }
.f-name .did-strip .d-id { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; color: var(--violet); }
.f-name .did-strip .d-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ink-faint); text-transform: uppercase; margin-top: 2px; }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sum-cell { border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--inner-hi); padding: 8px 12px; }
.sum-cell .s-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--ink-ghost); text-transform: uppercase; }
.sum-cell .s-v { font-family: var(--disp); font-weight: 800; font-size: 13px; letter-spacing: .01em; color: var(--ink); margin-top: 2px; }
.sum-cell .s-v.pk { color: var(--pink); }

/* ============================================================
   FRAME 12 - Set a lock (+ pattern)
   ============================================================ */
.f-lock .pw-dots { margin-top: 16px; }
.f-lock .kpad { margin-top: 12px; }
.lock-side { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.pattern-box {
  flex: none; width: 96px; border-radius: var(--r-card-sm);
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--inner-hi);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 0 8px;
}
.pattern-box .pat-cap { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--ink-ghost); text-transform: uppercase; }
.lock-note { flex: 1; }

/* ============================================================
   FRAME 13 - Biometric (fingerprint)
   ============================================================ */
.f-bio .bio-zone {
  position: relative; width: 100%; margin-top: 16px;
  display: flex; flex-direction: column; align-items: center; flex: none;
}
.bio-ring { position: relative; width: 168px; height: 168px; display: flex; align-items: center; justify-content: center; }
.bio-ring::before {
  content: ""; position: absolute; inset: -22px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,143,171,.20) 0%, rgba(199,125,255,.07) 50%, transparent 72%);
}
.bio-ring .prog-svg { position: absolute; inset: 0; }
.bio-ring .prog-svg .pr-bg { fill: none; stroke: rgba(255,190,220,.14); stroke-width: 3; }
.bio-ring .prog-svg .pr-fill {
  fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 84px 84px;
}
.bio-pct {
  position: absolute; bottom: 8px; right: 6px;
  font-family: var(--disp); font-weight: 800; font-size: 18px; color: var(--pink); letter-spacing: .02em;
}
.bio-cap { margin-top: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: var(--ink-faint); text-transform: uppercase; }
.f-bio .bio-steps { margin-top: 12px; }
.f-bio .note-strip { margin-top: 12px; }

/* ============================================================
   FRAME 14 - Seal & ready
   ============================================================ */
.f-seal .seal-hero { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.seal-pct { font-family: var(--disp); font-weight: 800; font-size: 44px; color: var(--pink); letter-spacing: .01em; line-height: 1; }
.f-seal .pbar { margin-top: 8px; }
.f-seal .gcard.pad { padding: 8px 12px 8px; }
.f-seal .remember { margin-top: 8px; }
.f-seal .ready-strip {
  margin-top: 8px; border-radius: 22px; padding: 12px 12px;
  background: linear-gradient(160deg, rgba(255,143,171,.20), rgba(199,125,255,.09));
  border: 1px solid rgba(255,143,171,.40);
  box-shadow: var(--inner-hi), 0 0 26px rgba(255,143,171,.18);
  display: flex; align-items: center; gap: 12px; position: relative;
}
.f-seal .ready-strip .r-t { flex: 1; }
.f-seal .ready-strip .r-name { font-family: var(--disp); font-weight: 800; font-size: 15px; letter-spacing: .01em; color: var(--ink); }
.f-seal .ready-strip .r-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--pink); text-transform: uppercase; margin-top: 2px; }
.skr { font-family: var(--disp); font-weight: 800; font-size: 20px; color: var(--pink); flex: none; }
.skr small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-faint); display: block; text-align: right; }

/* ============================================================
   FRAME 15 - First bloom (the peak)
   ============================================================ */
.f-bloom .ob { align-items: center; text-align: center; padding-top: 0; }
.bloom-orb-zone {
  position: relative; width: 220px; height: 220px; margin-top: 32px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.bloom-orb-zone .orb { width: 158px; height: 158px; }
.bloom-orb-zone .orb-halo { width: 310px; height: 310px; top: -45px; }
.bloom-word {
  font-family: var(--disp); font-weight: 800; font-size: 44px;
  letter-spacing: .02em; line-height: 1.08; margin-top: 24px; color: var(--ink);
}
.bloom-word span {
  background: var(--cta-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bloom-sub {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  color: var(--ink-dim); margin-top: 8px; line-height: 1.55; max-width: 300px;
}
.bloom-sub b { color: var(--pink); font-weight: 600; }
.f-bloom .ob-actions { width: 100%; }

/* command bar - the front door, glass pill with mini orb */
.cmdbar {
  flex: none; height: 56px; border-radius: 999px; width: 100%;
  border: 1px solid rgba(255,143,171,.40);
  background: var(--glass-hi);
  box-shadow: var(--inner-hi), 0 0 26px rgba(255,143,171,.22);
  display: flex; align-items: center; gap: 12px; padding: 0 16px 0 8px;
  position: relative; z-index: 2;
}
.cmdbar .cmd-orb { width: 40px; height: 40px; flex: none; position: relative; display: flex; align-items: center; justify-content: center; }
.cmdbar .cmd-orb .orb { width: 40px; height: 40px; }
.cmdbar .cmd-orb svg { position: absolute; z-index: 1; width: 15px; height: 15px; }
.cmd-hint {
  flex: 1; text-align: left; font-family: var(--sans); font-weight: 500; font-size: 11px;
  color: var(--ink-dim); white-space: nowrap;
}
.cmd-hint b { color: var(--pink); font-weight: 600; }
.f-bloom .cmdbar { margin-bottom: 8px; }

/* ============================================================
   FRAMES 16-18 - Recovery branch
   ============================================================ */
.f-words .word-grid { margin-top: 12px; }
.f-words .handle-chip {
  margin-top: 12px; display: flex; align-items: center; gap: 12px;
  border-radius: 999px; padding: 8px 12px 8px 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--inner-hi);
}
.handle-chip .h-at {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: rgba(255,143,171,.14); border: 1.5px dashed var(--dash-ring);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--pink);
}
.handle-chip .h-val { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.handle-chip .tag { margin-left: auto; }
.f-words .note-strip { margin-top: 8px; }

.f-hand .word-grid { margin-top: 8px; }
.f-hand .count-line {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  color: var(--ink-faint); text-transform: uppercase;
}
.f-hand .count b { color: var(--pink); font-weight: 600; }
.f-hand .err-line {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--err);
}
.f-hand .note-strip { margin-top: 8px; }

.f-rest .shard-row { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.f-rest .pbar { margin-top: 8px; }
.f-rest .list-panel { margin-top: 8px; }
.f-rest .note-strip { margin-top: 8px; }

/* ================= v2.1 additions: icon weight + dark swirl orb ================= */

/* ---- Icons: one line weight everywhere. Small icons no longer go under 1px. ---- */
.phone svg[viewBox="0 0 24 24"] :is(path, line, polyline, polygon, circle, rect, ellipse) {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone svg[viewBox="0 0 24 24"] { overflow: visible; }
/* The orb glyph is big: keep it scaling with the orb, as before. */
.phone .orb svg[viewBox="0 0 24 24"] :is(path, line, polyline, polygon, circle, rect, ellipse) { vector-effect: none; }


/* ---- Orb: the look stays the same. Inside, soft colour light flows slowly.
   On an action (hover, tap, or a screen where the agent works) the flow gets brighter.
   Nothing goes outside the orb. ---- */
.orb {
  --sw-a: var(--pink, #FF8FAB);
  --sw-b: var(--violet, #C77DFF);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.orb > svg { z-index: 3; }
.orb::before, .orb::after {
  content: "";
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: .35;
  transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
}
.orb::before {
  background:
    radial-gradient(circle at 34% 38%, color-mix(in srgb, var(--sw-a) 85%, transparent) 0%, transparent 32%),
    radial-gradient(circle at 70% 64%, color-mix(in srgb, var(--sw-b) 80%, transparent) 0%, transparent 30%);
  filter: blur(6px);
  animation: orb-flow-a 9s ease-in-out infinite;
}
.orb::after {
  background:
    radial-gradient(ellipse 30% 18% at 60% 30%, rgba(255,240,250,.55) 0%, transparent 70%),
    radial-gradient(circle at 30% 72%, color-mix(in srgb, var(--sw-b) 70%, transparent) 0%, transparent 28%);
  filter: blur(5px);
  animation: orb-flow-b 13s ease-in-out infinite;
}
@keyframes orb-flow-a {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  33%      { transform: rotate(120deg) translate(4%, -3%); }
  66%      { transform: rotate(240deg) translate(-3%, 4%); }
}
@keyframes orb-flow-b {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50%      { transform: rotate(-180deg) scale(1.08); }
}
.orb:hover::before, .orb:hover::after,
.orb:focus::before, .orb:focus::after,
.orb:active::before, .orb:active::after,
.orb.is-active::before, .orb.is-active::after { opacity: .9; }

/* Very small orbs: less blur so the colour still shows. */
.orb.aa-orb::before, .orb.sh-orb::before, .orb.d-orb::before, .orb.ai-orb::before, .orb.an-orb::before, .orb.mini-orb::before, .orb.a-orb::before,
.orb.aa-orb::after, .orb.sh-orb::after, .orb.d-orb::after, .orb.ai-orb::after, .orb.an-orb::after, .orb.mini-orb::after, .orb.a-orb::after { filter: blur(2px); }

body.still .orb::before, body.still .orb::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .orb::before, .orb::after { animation: none; }
}

/* ================= v2.2: command bar orb on the right, live motion, icon stroke ================= */

/* ---- Icons: one stroke for the whole set (Lucide grid: 24px, 2px stroke at 24px) ---- */
.phone svg[viewBox="0 0 24 24"] { fill: none; }
.phone svg[viewBox="0 0 24 24"] [fill="currentColor"] { fill: currentColor; }
.seg svg { width: 18px !important; height: 18px !important; }
.seg svg :is(path, line, polyline, polygon, circle, rect, ellipse) { stroke-width: 1.7; }

/* ---- Command bar: text first, voice orb on the right (thumb side, same as send buttons) ---- */
.cmdbar { padding-left: 16px !important; padding-right: 8px !important; }
.cmdbar > .orb, .cmdbar > .cmd-orb { order: 9; }
.cmdbar > .cmd-hint { order: 1; }
.cmdbar > .cmd-kbd { order: 2; }

/* ---- Voice bars: every bar breathes, each a little out of step ---- */
:is(.wave, .call-wave, .vc-wave, .cw, .rb-track, .waveform) > i {
  transform-origin: 50% 50%;
  animation: bar-talk 1.1s ease-in-out infinite alternate;
}
:is(.wave, .call-wave, .vc-wave, .cw, .rb-track, .waveform) > i:nth-child(3n+1) { animation-duration: .9s;  animation-delay: -.2s; }
:is(.wave, .call-wave, .vc-wave, .cw, .rb-track, .waveform) > i:nth-child(3n+2) { animation-duration: 1.25s; animation-delay: -.55s; }
:is(.wave, .call-wave, .vc-wave, .cw, .rb-track, .waveform) > i:nth-child(4n)   { animation-duration: .75s; animation-delay: -.35s; }
:is(.wave, .call-wave, .vc-wave, .cw, .rb-track, .waveform) > i:nth-child(5n)   { animation-duration: 1.4s; animation-delay: -.8s; }
@keyframes bar-talk { 0% { transform: scaleY(.35); } 100% { transform: scaleY(1); } }
/* Recorded audio (played part) moves less: it is a recording, not a live voice. */
:is(.waveform, .rb-track) > i { animation-name: bar-play; }
@keyframes bar-play { 0% { transform: scaleY(.8); } 100% { transform: scaleY(1); } }
.cpu-bars > i.on { transform-origin: 50% 100%; animation: bar-talk 1.6s ease-in-out infinite alternate; }

/* ---- Text caret blinks ---- */
:is(.caret, .kf-caret, .sb-caret) { animation: caret-blink 1.05s steps(1, end) infinite; }
@keyframes caret-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* ---- Live dots and live steps pulse ---- */
:is(.live-dot, .mstep.live .m-dot) { animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,143,171,.75); } 70% { box-shadow: 0 0 0 7px rgba(255,143,171,0); } }
.tag.live { animation: tag-glow 2.2s ease-in-out infinite; }
@keyframes tag-glow { 0%, 100% { background: rgba(255,143,171,.10); } 50% { background: rgba(255,143,171,.24); } }
.step.live .s-ic, .dial-key.live, .lrow.live { animation: ring-turn 2.4s ease-in-out infinite; }
@keyframes ring-turn { 0%, 100% { box-shadow: 0 0 0 rgba(255,143,171,0); } 50% { box-shadow: 0 0 18px rgba(255,143,171,.45); } }

/* ---- Typing dots ---- */
.ty-dots { animation: typing-fade 1.2s ease-in-out infinite; }
@keyframes typing-fade { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---- Scanner line sweeps, dashed rings turn slowly ---- */
.scan-box .scan-line { animation: scan-sweep 2.4s ease-in-out infinite alternate; }
@keyframes scan-sweep { 0% { top: 14%; } 100% { top: 86%; } }
:is(.orb-ring, .sos-ring) { animation: dash-spin 18s linear infinite; }
@keyframes dash-spin { to { transform: rotate(360deg); } }

body.still .phone *, body.still .phone *::before, body.still .phone *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .phone *:not(.orb), .phone *:not(.orb)::before { animation: none !important; }
}

/* ================= v2.2: every language fits ================= */
/* Chip rows wrap to a second line instead of running off the screen. */
.sugg-row { flex-wrap: wrap; row-gap: 8px; }
/* Long words (German, Russian) break instead of pushing the layout wide. */
.phone { overflow-wrap: break-word; hyphens: auto; }
/* CJK: own fonts, no wide letter spacing, no forced caps, a bit more line height. */
:lang(zh) .phone, :lang(zh) .phone * { font-family: "Noto Sans SC", var(--sans), sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
:lang(ja) .phone, :lang(ja) .phone * { font-family: "Noto Sans JP", var(--sans), sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
:lang(zh) .phone, :lang(ja) .phone { line-height: 1.45; }

/* ---- Long languages (de, ru): row text gets 2 lines before it cuts. Android: maxLines = 2, ellipsize = end. ---- */
.phone :is(.m-txt, .sr-t1, .slabel, .ssub, .b-name, .lsub, .fname, .tname, .a-role, .l-t1, .l-t2, .n-t1, .n-t2, .sh-title, .tr-name, .tr-name, .q-name, .rr-name, .sc-x, .a-txt, .scr-title) {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
}
.phone .n-t2 b { white-space: normal; }
.phone .step-head { flex-wrap: wrap; row-gap: 4px; }
.phone .step-head .klabel { white-space: normal !important; min-width: 0; flex-shrink: 1; max-width: 100%; }
.phone .chip-top { flex-wrap: wrap; gap: 2px 4px; }
.phone .chip-tag, .phone .chip-text { white-space: normal !important; min-width: 0; overflow-wrap: break-word; }
.phone .vf-ai { white-space: normal; width: max-content; max-width: calc(100% - 40px); box-sizing: border-box; }
.phone .vf-ai .ai-txt { white-space: normal; min-width: 0; line-height: 1.3; }

/* ---- real phone map (Pixel 9 Pro, read over adb) ----
   fingerprint sensor: centre 258 dp above the bottom edge, 78 dp wide, centred.
   In this 390 x 844 frame that is centre (195, 586), box 156-234 x 547-625.
   camera hole: centre x, y 18-50 dp. Back gesture strips: 30 dp each side. Bottom gesture zone: 32 dp. */
.f-lock .lock-orb-zone, .f-lock .lock-pills { transform: translateY(-20px); }
.f-lock .lock-corners { padding: 0 16px; box-sizing: border-box; }
.f-aod .aod-orb { position: absolute; left: calc(50% - 20px); top: 565px; width: 40px; height: 40px; z-index: 2; }
.phone.f-bio .bio-zone { position: absolute; left: 0; right: 0; width: auto; top: 457px; margin: 0; display: flex; flex-direction: column; align-items: center; }
.content.f-bio .fpzone { position: absolute; left: calc(50% - 98px); top: 443px; margin: 0; }

/* ---- bottom gesture zone: no tap target below y 812 (32 dp from the edge) ---- */
.phone .ob-actions { padding-bottom: 32px; }
.phone .ad-actions { margin-bottom: 32px; }
.phone .composer { margin-bottom: 32px; }
.phone .cmdbar { margin-bottom: 32px; }
.phone .vc-controls { padding-bottom: 32px; }
.phone .toast { margin-bottom: 16px; }
.phone > .content { padding-bottom: 8px; box-sizing: border-box; }
.phone > .content > .btn-row:last-child { margin-bottom: 24px; padding-bottom: 0; }
/* sheets with a bottom bar: the bar is pinned, the content above scrolls (here: it shrinks) */
.phone .sheet-wrap > .sheet { padding-bottom: 32px; }
.phone .sheet-body:has(> .composer) { display: flex; flex-direction: column; }
.phone .sheet-body:has(> .composer) > :not(.composer) { min-height: 0; flex-shrink: 1; overflow: hidden; }
.phone .sheet-body > .composer { flex-shrink: 0; margin-top: auto; }
.phone > .content:has(> [style*="margin-top:auto"]) > :not(:last-child) { min-height: 0; flex-shrink: 1; overflow: hidden; }
.phone > .content > [style*="margin-top:auto"]:last-child { flex-shrink: 0; }
/* recovery words: 4 x 3 grid so the actions stay above the gesture zone in every language */
.phone .ob .word-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
.phone .ob .wcell { padding: 4px 8px; }
.f-hand .note-strip { padding-top: 8px; padding-bottom: 8px; }
.f-hand .note-strip + .note-strip { margin-top: 4px !important; }
/* ---- Set a lock: the Pixel bouncer PIN pad (AOSP res-keyguard: num_pad_key_width 72, ratio 1,
   flow gaps 12 / 12, digits only, row 4 = delete, 0, enter, packed to the bottom).
   The pad centres on the fingerprint line, y 586: top 424, bottom 748. ---- */
.phone .kpad.kpad-pixel { grid-template-columns: repeat(3, 72px); grid-auto-rows: 72px; gap: 12px; justify-content: center; margin-top: auto; margin-bottom: 20px; }
.phone .kpad-pixel .kpad-key { width: 72px; height: 72px; padding: 0; border-radius: 50%; border: none; box-shadow: none; background: rgba(255,255,255,.10); display: flex; align-items: center; justify-content: center; }
.phone .kpad-pixel .k-num { font-family: var(--sans); font-weight: 500; font-size: 30px; line-height: 1; letter-spacing: 0; color: var(--ink); }
.phone .kpad-pixel .kpad-key.del { background: rgba(255,143,171,.18); }
.phone .kpad-pixel .kpad-key.ok { background: var(--cta-grad); }
.phone .ob:has(.kpad-pixel) .ob-actions { margin-top: 0; }

/* ---- build tokens: touch floors (Dimens.touchMin 44, Dimens.tagHeight 32) ---- */
.phone :is(.cta,.btn,.btn-ghost,.btn-bad,.pill-btn,.mic-btn,.stop-btn,.mc-btn,.g-pill){min-height:44px;box-sizing:border-box}
.phone :is(.back-btn,.mic-btn,.mc-btn,.g-pill){min-width:44px;min-height:44px;box-sizing:border-box}
.phone .tab{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}
.phone :is(.chip,.chip-tag,.chip-text,.chip-num,.chip-top,.agent-chip,.vf-chip,.legend-chip){min-height:32px;box-sizing:border-box;display:inline-flex;align-items:center}
