


/* ============================================================
   BLOOM - SCREEN ATLAS: LIFE & SYSTEM SERVICES
   24 frames: Capture 01-07, Health 08-12, Economy 13-18,
   Audit 19-22, Apps 23-24. Same content and copy as the v1
   Cyber Sakura board, redrawn in the v2 Bloom language:
   photographic sakura wallpaper under every screen, faked
   frosted glass (translucent pink gradient fills + 1px light
   border, no backdrop-filter), glossy bubble orb, dashed rings,
   glowing gradient sliders. No blur(), no blend modes, no
   clip-path, no conic-gradient. The orb breath is the only loop.
   ============================================================ */
: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,.40);
  --ok-tint: rgba(127,224,178,.10);
  --gold: #FFD58A;
  --gold-line: rgba(255,213,138,.40);
  --gold-tint: rgba(255,213,138,.10);
  --danger: #FF9E9E;
  --danger-line: rgba(255,158,158,.45);
  --danger-tint: rgba(255,158,158,.12);
  --violet-line: rgba(199,125,255,.40);
  --violet-tint: rgba(199,125,255,.12);
  --pink-line: rgba(255,143,171,.42);
  --pink-tint: rgba(255,143,171,.12);

  /* 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: 1240px; 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 .grp { color: var(--violet); font-weight: 700; }
.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%);
}
.scrim.dim {
  background: linear-gradient(180deg,
    rgba(14,7,12,.66) 0%, rgba(14,7,12,.52) 45%, rgba(14,7,12,.82) 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; }
.statusbar .tele svg { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.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: 87%; 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); }
/* status bar overlaid on full-bleed imagery */
.statusbar.over { position: absolute; top: 0; left: 0; right: 0; z-index: 4; }

/* 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-ring {
  position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
  border: 1.5px dashed var(--dash-ring);
}
.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%);
}

.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);
}
.gcard.hot {
  border: 1.5px dashed var(--dash-ring);
  box-shadow: var(--inner-hi), 0 0 24px rgba(255,143,171,.18);
}
.gpill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--r-pill); box-shadow: var(--inner-hi), 0 8px 22px rgba(8,3,8,.28);
}
.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.vi { color: var(--violet); }
.klabel.ok { color: var(--ok); }
.klabel.gd { color: var(--gold); }

/* 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;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--ink-dim);
}
.tag.live { color: var(--pink); border-color: var(--pink-line); background: var(--pink-tint); }
.tag.ok { color: var(--ok); border-color: var(--ok-line); background: var(--ok-tint); }
.tag.warn { color: var(--gold); border-color: var(--gold-line); background: var(--gold-tint); }
.tag.danger { color: var(--danger); border-color: var(--danger-line); background: var(--danger-tint); }
.tag.agent { color: var(--violet); border-color: var(--violet-line); background: var(--violet-tint); }
.tag.wait { color: var(--ink-ghost); }

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

/* buttons */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: var(--r-pill);
  background: var(--cta-grad); color: var(--cta-ink);
  font-family: var(--disp); font-weight: 800; font-size: 15px; letter-spacing: .01em;
  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);
}
.cta.sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--ink-dim); font-family: var(--disp); font-weight: 700; font-size: 13px;
  box-shadow: var(--inner-hi);
}
.btn-ghost.sm { height: 38px; }

/* 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); }

/* glass slider */
.bslider {
  height: 36px; border-radius: 999px; position: relative;
  background: rgba(255,190,220,.10); border: 1px solid var(--glass-border);
  box-shadow: var(--inner-hi);
}
.bslider .fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  box-shadow: 0 0 16px rgba(255,143,171,.45);
}
.bslider .knob {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF;
  box-shadow: 0 0 12px rgba(255,255,255,.85), 0 0 28px rgba(255,143,171,.55);
}
.bslider.slim { height: 26px; }
.bslider.slim .knob { width: 20px; height: 20px; }

/* photo plate with scrim */
.plate { position: relative; overflow: hidden; border-radius: var(--r-card-sm); border: 1px solid var(--glass-border); }
.plate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.plate .p-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,18,.30), transparent 40%, rgba(20,10,18,.55)); }
.p-meta {
  position: absolute; font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .14em; color: rgba(255,245,248,.85); text-transform: uppercase;
}
.p-meta.pk { color: var(--pink); }
.p-meta.vi { color: var(--violet); }

/* screen header pattern */
.scr-head { display: flex; align-items: center; gap: 12px; }
.back-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--inner-hi);
  display: flex; align-items: center; justify-content: center;
}
.back-btn svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scr-title {
  flex: 1; font-family: var(--disp); font-weight: 800; font-size: 18px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* footer telemetry line */
.sys-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 4px 0 32px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  color: var(--ink-ghost); text-transform: uppercase;
}
.sys-foot i { width: 14px; height: 1px; background: var(--glass-border); flex: none; }

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

/* ---------- persistent command bar with the orb ---------- */
.cmdbar {
  flex: none; margin: 0 12px 8px; height: 54px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--inner-hi), 0 10px 26px rgba(8,3,8,.35);
  display: flex; align-items: center; gap: 12px; padding: 0 16px 0 8px;
  position: relative; z-index: 2;
}
.cmdbar .orb { width: 36px; height: 36px; }
.cmdbar .orb svg { width: 14px; height: 14px; }
.cmd-hint { flex: 1; font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-hint b { color: var(--pink); font-weight: 600; }
.cmd-kbd { display: flex; gap: 2px; flex: none; opacity: .55; }
.cmd-kbd i { width: 4px; height: 4px; border-radius: 2px; background: var(--ink-faint); }

/* ---------- custom segmented bottom bar - floating glass pill ---------- */
.segbar {
  flex: none; height: 58px; margin: 0 12px 24px; padding: 4px;
  display: flex; align-items: stretch; gap: 4px;
  background: var(--glass-deep); border: 1px solid var(--glass-border);
  border-radius: 999px; box-shadow: var(--inner-hi); position: relative; z-index: 2;
}
.seg { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 999px; }
.seg svg { width: 15px; height: 15px; display: block; }
.seg .s-glyph { stroke: var(--ink-faint); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.seg .s-name { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .22em; color: var(--ink-faint); text-transform: uppercase; }
.seg.active { background: linear-gradient(135deg, rgba(255,143,171,.28), rgba(199,125,255,.16)); border: 1px solid rgba(255,143,171,.45); }
.seg.active .s-glyph { stroke: var(--ink); }
.seg.active .s-name { color: var(--ink); }

/* ---------- generic list rows on glass ---------- */
.row-list {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 22px; overflow: hidden; box-shadow: var(--inner-hi);
}
.lrow { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.lrow + .lrow { border-top: 1px solid rgba(255,255,255,.06); }
.lrow.sel { background: var(--pink-tint); box-shadow: inset 2px 0 0 var(--pink); }
.lrow .l-ic {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--glass-hi); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; color: var(--pink);
}
.lrow .l-txt { flex: 1; min-width: 0; }
.lrow .l-t1 {
  font-family: var(--disp); font-weight: 700; font-size: 13px;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lrow .l-t2 {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .10em;
  color: var(--ink-faint); margin-top: 2px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lrow .l-amt { font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--ink); flex: none; }
.lrow .l-amt.pk { color: var(--pink); }
.lrow .l-amt.ok { color: var(--ok); }
.lrow .l-amt.dim { color: var(--ink-faint); }

/* big numeral */
.bignum { font-family: var(--disp); font-weight: 800; color: var(--ink); letter-spacing: .01em; line-height: 1; }

/* stat tile */
.stat-tile {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 8px 12px; min-width: 0; box-shadow: var(--inner-hi);
}
.stat-tile .st-v { font-family: var(--disp); font-weight: 800; font-size: 15px; color: var(--ink); }
.stat-tile .st-v b { font-size: 9.5px; color: var(--ink-faint); font-weight: 700; }
.stat-tile .st-l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; margin-top: 2px; }

/* key-value rows */
.kv { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; }
.kv + .kv { border-top: 1px solid rgba(255,255,255,.06); }
.kv .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ink-faint); text-transform: uppercase; }
.kv .v { font-family: var(--sans); font-weight: 600; font-size: 11px; color: var(--ink); }
.kv .v.pk { color: var(--pink); }
.kv .v.ok { color: var(--ok); }

/* note panel - agent violet or pink tinted glass */
.note-panel {
  border-radius: 20px; padding: 12px 12px;
  background: var(--violet-tint); border: 1px solid var(--violet-line);
  box-shadow: var(--inner-hi);
}
.note-panel.pk { background: var(--pink-tint); border-color: var(--pink-line); }
.note-panel .np-txt { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-dim); line-height: 1.5; margin-top: 4px; }

/* alert panel - gold / danger */
.alert-panel {
  border-radius: 20px; padding: 12px 12px;
  background: var(--gold-tint); border: 1px solid var(--gold-line);
  display: flex; align-items: center; gap: 8px; box-shadow: var(--inner-hi);
}
.alert-panel.danger { background: var(--danger-tint); border-color: var(--danger-line); }
.alert-panel .ap-txt { flex: 1; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-dim); line-height: 1.45; }
.alert-panel .ap-txt b { color: var(--gold); font-weight: 700; }
.alert-panel.danger .ap-txt b { color: var(--danger); }

/* tick progress */
.ticks { display: flex; gap: 2px; flex: 1; }
.ticks i { height: 8px; flex: 1; background: rgba(255,190,220,.12); display: block; border-radius: 4px; }
.ticks i.on { background: var(--pink); }
.ticks i.au { background: linear-gradient(90deg, var(--pink), var(--violet)); }

/* telemetry chip */
.chip {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 8px 12px; min-width: 0; box-shadow: var(--inner-hi);
}
.chip-top { display: flex; align-items: center; justify-content: space-between; }
.chip-tag { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--pink); flex: none; text-transform: uppercase; }
.chip-text { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink-dim); text-transform: uppercase; white-space: nowrap; }
.chip-num { font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--ink); flex: none; }

/* section header inside a screen */
.g-sect { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; }
.g-sect .gs-t { font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--ink); }
.g-sect .gs-m { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; }

/* filter pills */
.g-pills { display: flex; gap: 4px; margin-top: 12px; }
.g-pill {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .12em;
  color: var(--ink-faint); text-transform: uppercase;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 4px 8px; box-shadow: var(--inner-hi);
}
.g-pill.on { color: var(--pink); border-color: var(--pink-line); background: var(--pink-tint); }

/* ============================================================
   CAPTURE (frames 01-07)
   ============================================================ */

/* 01 Camera - full-bleed viewfinder, glass controls over the photo */
.f-cam { background: #000; }
.vf { position: absolute; inset: 0; }
.vf > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vf-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,7,12,.52) 0%, transparent 22%, transparent 60%, rgba(14,7,12,.74) 100%); }
.vf-top {
  position: absolute; top: 54px; left: 14px; right: 14px; z-index: 3;
  display: flex; align-items: center; gap: 4px;
}
.vf-chip {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .12em;
  color: rgba(255,245,248,.80); text-transform: uppercase;
  background: var(--glass-deep); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 4px 8px; box-shadow: var(--inner-hi);
}
.vf-chip.pk { color: var(--pink); border-color: var(--pink-line); background: linear-gradient(160deg, rgba(255,143,171,.28), rgba(255,143,171,.10)); }
.vf-focus {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%);
  width: 148px; height: 148px; z-index: 3;
}
.vf-focus .fb { position: absolute; width: 24px; height: 24px; }
.vf-focus .fb.a { top: 0; left: 0; border-top: 2px solid var(--pink); border-left: 2px solid var(--pink); border-top-left-radius: 8px; }
.vf-focus .fb.b { top: 0; right: 0; border-top: 2px solid var(--pink); border-right: 2px solid var(--pink); border-top-right-radius: 8px; }
.vf-focus .fb.c { bottom: 0; left: 0; border-bottom: 2px solid var(--pink); border-left: 2px solid var(--pink); border-bottom-left-radius: 8px; }
.vf-focus .fb.d { bottom: 0; right: 0; border-bottom: 2px solid var(--pink); border-right: 2px solid var(--pink); border-bottom-right-radius: 8px; }
.vf-focus .f-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 12px rgba(255,143,171,.95);
}
.vf-expo {
  position: absolute; left: 0; right: 0; top: calc(40% + 84px); z-index: 3; text-align: center;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .18em;
  color: rgba(255,245,248,.85); text-transform: uppercase;
}
.vf-expo b { color: var(--pink); }
.vf-ai {
  position: absolute; left: 50%; bottom: 218px; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--glass-deep); border: 1px solid var(--violet-line);
  border-radius: 999px; padding: 4px 12px 4px 4px; box-shadow: var(--inner-hi);
}
.vf-ai .ai-orb { width: 22px; height: 22px; flex: none; }
.vf-ai .ai-txt { font-family: var(--sans); font-weight: 500; font-size: 11px; color: var(--ink-dim); }
.vf-ai .ai-txt b { color: var(--violet); font-weight: 600; }
.vf-zoom {
  position: absolute; left: 50%; bottom: 172px; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 4px; background: var(--glass-deep);
  border: 1px solid var(--glass-border); border-radius: 999px; padding: 2px;
  box-shadow: var(--inner-hi);
}
.vf-zoom span {
  font-family: var(--disp); font-size: 11px; font-weight: 700;
  color: rgba(255,245,248,.62); padding: 4px 12px; border-radius: 999px;
}
.vf-zoom span.on { color: var(--cta-ink); background: var(--cta-grad); }
.vf-modes {
  position: absolute; left: 0; right: 0; bottom: 130px; z-index: 3;
  display: flex; justify-content: center; gap: 16px;
}
.vf-modes span {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .2em;
  color: rgba(255,245,248,.55); text-transform: uppercase;
}
.vf-modes span.on { color: var(--pink); }
.vf-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.vf-thumb {
  width: 48px; height: 48px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-border-hi); position: relative;
}
.vf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vf-shutter {
  width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid var(--pink);
  box-shadow: 0 0 26px rgba(255,143,171,.55);
  display: flex; align-items: center; justify-content: center;
}
.vf-shutter i {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--warm); display: block;
  box-shadow: inset 0 0 0 2px rgba(255,143,171,.60);
}
.vf-flip {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--glass-deep); border: 1px solid var(--glass-border);
  box-shadow: var(--inner-hi);
  display: flex; align-items: center; justify-content: center;
}
.vf-flip svg { width: 18px; height: 18px; stroke: rgba(255,245,248,.88); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.vf-seal {
  position: absolute; left: 0; right: 0; bottom: 102px; z-index: 3; text-align: center;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em;
  color: rgba(255,245,248,.55); text-transform: uppercase;
}
.vf-seal b { color: var(--pink); font-weight: 600; }

/* 02 Gallery - albums and day grids */
.g-albums { display: flex; gap: 8px; margin-top: 12px; }
.g-album { flex: 1; min-width: 0; }
.g-album .plate { height: 86px; border-radius: 18px; }
.g-album .ga-n { font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--ink); margin-top: 4px; }
.g-album .ga-m { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-faint); margin-top: 1px; text-transform: uppercase; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.g-cell { position: relative; height: 74px; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-border); background: var(--glass-deep); }
.g-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-cell .gc-badge {
  position: absolute; right: 4px; bottom: 4px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--ink); background: rgba(20,10,18,.72); border-radius: 6px; padding: 2px 4px;
}
.g-cell .gc-fav {
  position: absolute; left: 5px; top: 5px; width: 9px; height: 9px;
  border-radius: 50% 50% 50% 2px; transform: rotate(45deg);
  background: var(--pink); box-shadow: 0 0 8px rgba(255,143,171,.9);
}

/* 03 Album / Day */
.al-hero { margin-top: 12px; }
.al-hero .plate { height: 120px; }
.al-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; margin-top: 2px; }

/* 04 Editor */
.ed-photo { margin-top: 12px; position: relative; }
.ed-photo .plate { height: 252px; border-color: var(--glass-border-hi); }
.ed-ba {
  display: flex; gap: 0; margin-top: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; overflow: hidden; box-shadow: var(--inner-hi);
}
.ed-ba span {
  flex: 1; text-align: center; padding: 8px 0;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .2em;
  color: var(--ink-faint); text-transform: uppercase;
}
.ed-ba span.on { background: var(--pink-tint); color: var(--pink); }
.ed-presets { display: flex; gap: 8px; margin-top: 12px; }
.ed-preset { flex: 1; min-width: 0; }
.ed-preset .ep-sw { height: 32px; border-radius: 12px; border: 1px solid var(--glass-border); }
.ed-preset .ep-n {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: var(--ink-faint);
  text-transform: uppercase; text-align: center; margin-top: 4px;
}
.ed-preset.on .ep-sw { border: 1.5px dashed var(--dash-ring); box-shadow: 0 0 12px rgba(255,143,171,.30); }
.ed-preset.on .ep-n { color: var(--pink); }
.ed-slider { margin-top: 12px; }
.ed-slider .s-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.ed-slider .s-name { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink); }
.ed-slider .s-val { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .1em; color: var(--pink); }
.ed-tools { display: flex; justify-content: space-between; margin-top: 12px; padding: 0 4px; }
.ed-tools span {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .14em;
  color: var(--ink-faint); text-transform: uppercase;
}
.ed-tools span.on { color: var(--pink); }

/* 05 Media player + voice memo */
.mp-hero { margin-top: 12px; }
.mp-hero .plate { height: 120px; }
.mp-title { font-family: var(--disp); font-weight: 800; font-size: 18px; color: var(--ink); margin-top: 8px; }
.waveform { display: flex; align-items: center; gap: 2px; height: 44px; margin-top: 12px; }
.waveform i { flex: 1; border-radius: 2px; background: rgba(255,190,220,.14); display: block; min-width: 2px; }
.waveform i.pl { background: linear-gradient(180deg, var(--pink), var(--violet)); }
.mp-times { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--mono); font-size: 9.5px; color: var(--ink-faint); letter-spacing: .1em; }
.mp-times b { color: var(--pink); }
.mp-ctl { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 12px; }
.mp-ctl .mc { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .1em; color: var(--ink-faint); }
.mp-play {
  width: 58px; height: 58px; border-radius: 50%; background: var(--cta-grad);
  box-shadow: 0 0 24px rgba(255,143,171,.55), inset 0 1px 0 rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
}
.mp-play i { width: 14px; height: 16px; display: block; border-left: 3px solid var(--cta-ink); border-right: 3px solid var(--cta-ink); }
.mp-spec {
  display: flex; justify-content: space-between; margin-top: 12px; padding: 8px 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; box-shadow: var(--inner-hi);
}
.mp-spec span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-faint); text-transform: uppercase; }
.mp-spec span b { color: var(--ink-dim); font-weight: 600; }

/* 06 Sealed share */
.ss-strip { display: flex; gap: 8px; margin-top: 12px; }
.ss-strip .plate { width: 74px; height: 74px; border-radius: 18px; flex: none; }
.ss-strip .plate.sel { border: 1.5px dashed var(--dash-ring); box-shadow: 0 0 14px rgba(255,143,171,.25); }
.ss-to { display: flex; gap: 12px; margin-top: 12px; align-items: center; }
.ss-av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 800; font-size: 15px;
  background: var(--pink-tint); border: 1px solid var(--pink-line); color: var(--pink);
}
.ss-av.more { background: var(--glass); border-color: var(--glass-border); color: var(--ink-faint); font-size: 13px; }
.ss-names { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-faint); text-transform: uppercase; margin-top: 8px; }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px; }
.opt-row + .opt-row { border-top: 1px solid rgba(255,255,255,.06); }
.opt-row .o-ic {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--pink-tint); border: 1px solid var(--pink-line);
  display: flex; align-items: center; justify-content: center;
}
.opt-row .o-ic i { width: 9px; height: 9px; border-radius: 50% 50% 50% 2px; transform: rotate(45deg); background: var(--pink); display: block; }
.opt-row .o-txt { flex: 1; min-width: 0; }
.opt-row .o-t1 { font-family: var(--disp); font-weight: 700; font-size: 13px; color: var(--ink); }
.opt-row .o-t2 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-faint); margin-top: 2px; text-transform: uppercase; }

/* 07 Make a picture */
.mk-prompt {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass-hi); border: 1px solid var(--glass-border-hi);
  border-radius: 22px; padding: 12px 12px; box-shadow: var(--inner-hi);
}
.mk-prompt .mk-txt { flex: 1; font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--ink); line-height: 1.4; }
.mk-prompt .mk-tag { flex: none; }
.mk-result { position: relative; }
.mk-result .plate { height: 296px; border: 1.5px dashed var(--dash-ring); box-shadow: 0 0 26px rgba(199,125,255,.18); }
.mk-note { border-radius: 20px; padding: 12px 12px; background: var(--violet-tint); border: 1px solid var(--violet-line); box-shadow: var(--inner-hi); }
.mk-note .n-txt { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-dim); line-height: 1.5; margin-top: 4px; }

/* ============================================================
   HEALTH (frames 08-12)
   ============================================================ */
.h-hero { margin-top: 12px; padding: 12px 12px; position: relative; }
.h-hero .hh-row { display: flex; align-items: center; gap: 12px; }
.h-hero .hh-main { flex: 1; }
.h-spark { display: flex; align-items: flex-end; gap: 2px; height: 30px; margin-top: 8px; }
.h-spark i { flex: 1; border-radius: 2px; background: rgba(255,190,220,.14); display: block; min-width: 2px; }
.h-spark i.pk { background: var(--pink); }
.h-spark i.ok { background: rgba(127,224,178,.38); }
.h-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

.ring-wrap { position: relative; flex: none; }
.ring-wrap svg { display: block; }
.ring-wrap .rw-c {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.ring-bg2 { fill: none; stroke: rgba(255,245,248,.12); }
.ring-fp { fill: none; stroke: var(--pink); stroke-linecap: round; transform: rotate(-90deg); }
.ring-fv { fill: none; stroke: var(--violet); stroke-linecap: round; transform: rotate(-90deg); }
.ring-fl { fill: none; stroke: rgba(255,190,220,.55); stroke-linecap: round; transform: rotate(-90deg); }

.stage-bar { display: flex; gap: 2px; height: 26px; margin-top: 8px; }
.stage-bar i { display: block; border-radius: 8px; }
.stage-bar i.d1 { background: var(--pink); }
.stage-bar i.d2 { background: var(--violet); }
.stage-bar i.d3 { background: rgba(199,125,255,.35); }
.stage-bar i.d4 { background: rgba(255,190,220,.14); }
.stage-lg { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.stage-lg span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ink-faint); text-transform: uppercase; display: flex; align-items: center; gap: 4px; }
.stage-lg b { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }

.week-row { display: flex; gap: 4px; margin-top: 8px; }
.week-row .wd { flex: 1; text-align: center; }
.week-row .wd .wd-d {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--ink-ghost); text-transform: uppercase;
}
.week-row .wd .wd-p {
  display: block;
  width: 19px; height: 19px; border-radius: 50% 50% 50% 4px; transform: rotate(45deg);
  margin: 4px auto 0; background: rgba(255,190,220,.12); border: 1px solid var(--glass-border);
}
.week-row .wd.done .wd-p { background: var(--cta-grad); border-color: rgba(255,255,255,.35); box-shadow: 0 0 10px rgba(255,143,171,.6); }
.week-row .wd.today .wd-p { background: var(--pink-tint); border: 1.5px dashed var(--dash-ring); }
.week-row .wd.today .wd-d { color: var(--pink); }

.breath-card {
  margin-top: 8px; padding: 12px 12px; position: relative;
  display: flex; align-items: center; gap: 12px;
  background: var(--glass); border: 1.5px dashed var(--dash-ring);
  border-radius: 24px; box-shadow: var(--inner-hi), 0 0 22px rgba(255,143,171,.14);
}
.breath-ring { position: relative; width: 86px; height: 86px; flex: none; }
.breath-ring .br-in {
  position: absolute; inset: 12px; border-radius: 50%;
  background: var(--pink-tint); border: 1px solid var(--pink-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.breath-ring .br-t { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--ink-faint); text-transform: uppercase; }
.breath-ring .br-n { font-family: var(--disp); font-weight: 800; font-size: 24px; color: var(--pink); line-height: 1; }

.mood-row { display: flex; gap: 8px; margin-top: 8px; }
.mood-row .md {
  flex: 1; text-align: center; padding: 8px 0;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .12em;
  color: var(--ink-faint); text-transform: uppercase;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 999px;
}
.mood-row .md.on { color: var(--pink); border-color: var(--pink-line); background: var(--pink-tint); }

/* ============================================================
   ECONOMY (frames 13-18)
   ============================================================ */
.ec-balance { margin-top: 12px; padding: 12px 16px; position: relative; }
.ec-balance .eb-num { font-family: var(--disp); font-weight: 800; font-size: 30px; color: var(--ink); letter-spacing: .01em; margin-top: 4px; }
.ec-balance .eb-num b { color: var(--pink); font-size: 18px; }
.ec-balance .eb-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-faint); margin-top: 4px; text-transform: uppercase; }
.ec-chips { display: flex; gap: 8px; margin-top: 8px; }

.amt-hero { text-align: center; margin-top: 12px; }
.amt-hero .ah-num { font-family: var(--disp); font-weight: 800; font-size: 44px; color: var(--ink); letter-spacing: .01em; line-height: 1; }
.amt-hero .ah-num b { color: var(--pink); font-size: 20px; }
.amt-hero .ah-eq { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-faint); margin-top: 4px; text-transform: uppercase; }
.qty-row { display: flex; gap: 8px; margin-top: 8px; }
.qty-row .qy {
  flex: 1; text-align: center; padding: 8px 0;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-faint); background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px;
}
.qty-row .qy.on { color: var(--pink); border-color: var(--pink-line); background: var(--pink-tint); }

.recip { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.recip .rc {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 800; font-size: 13px;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--ink-dim);
}
.recip .rc.on { background: var(--pink-tint); border: 1.5px dashed var(--dash-ring); color: var(--pink); }

/* hold-to-seal confirm gate */
.gate {
  position: relative; height: 52px; border-radius: 999px;
  background: var(--cta-grad);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(255,143,171,.45), 0 0 44px rgba(199,125,255,.26), inset 0 1px 0 rgba(255,255,255,.55);
}
.gate .g-thumb {
  position: absolute; left: 7px; top: 7px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cta-ink); display: flex; align-items: center; justify-content: center;
}
.gate .g-thumb i { width: 11px; height: 11px; border-radius: 50% 50% 50% 3px; transform: rotate(45deg); background: var(--pink); display: block; }
.gate .g-txt { font-family: var(--disp); font-weight: 800; font-size: 15px; color: var(--cta-ink); letter-spacing: .01em; }
.gate-note { text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--ink-ghost); margin-top: 8px; text-transform: uppercase; }

.lb-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.lb-row + .lb-row { border-top: 1px solid rgba(255,255,255,.06); }
.lb-row .lb-r { font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--ink-faint); width: 16px; flex: none; }
.lb-row .lb-r.top { color: var(--pink); }
.lb-row .lb-h { flex: 1; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.lb-row .lb-h b { color: var(--ink-faint); font-weight: 500; }
.lb-row .lb-v { font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--ink); }
.lb-row.you { background: var(--pink-tint); box-shadow: inset 2px 0 0 var(--pink); }
.lb-row.you .lb-h { color: var(--pink); }

.steps-rail { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.steps-i {
  flex: 1; text-align: center; font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .1em; color: var(--ink-ghost); text-transform: uppercase;
  padding: 8px 0; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border);
}
.steps-i.done { color: var(--ok); border-color: var(--ok-line); }
.steps-i.now { color: var(--pink); border-color: var(--pink-line); background: var(--pink-tint); }

.qr-box {
  display: flex; gap: 12px; align-items: center; margin-top: 8px; padding: 12px 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 22px; box-shadow: var(--inner-hi);
}
.qr-box .qr { flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border-hi); }
.qr-box .qr-t { flex: 1; min-width: 0; }
.qr-box .qr-h { font-family: var(--disp); font-weight: 800; font-size: 15px; color: var(--ink); }
.qr-box .qr-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; color: var(--ink-faint); margin-top: 4px; word-break: break-all; line-height: 1.6; }

.mkt-card {
  flex: 1; min-width: 0;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 22px; padding: 8px 8px; box-shadow: var(--inner-hi);
}
.mkt-card .plate { height: 58px; border-radius: 14px; }
.mkt-card .mk-n { font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--ink); margin-top: 8px; }
.mkt-card .mk-p { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.mkt-card .mk-p b { font-family: var(--mono); font-size: 9.5px; color: var(--pink); font-weight: 700; }
.mkt-card .mk-p span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-ghost); }

.quest-card {
  margin-top: 8px; padding: 12px 12px; position: relative;
  background: var(--glass); border: 1.5px dashed var(--dash-ring);
  border-radius: 24px; box-shadow: var(--inner-hi), 0 0 20px rgba(255,143,171,.14);
}
.quest-card .q-t { font-family: var(--disp); font-weight: 800; font-size: 15px; color: var(--ink); margin-top: 4px; }
.quest-card .q-d { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-dim); margin-top: 2px; line-height: 1.45; }
.quest-card .q-prog { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.quest-card .q-prog .qp-n { font-family: var(--disp); font-weight: 800; font-size: 11px; color: var(--pink); flex: none; }

/* ============================================================
   AUDIT (frames 19-22)
   ============================================================ */
.hash-block {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--pink); word-break: break-all; line-height: 1.7;
  background: var(--glass-deep); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 8px 12px; margin-top: 8px;
}
.wit-grid { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.wit {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .08em;
  color: var(--ink-dim); text-transform: uppercase;
  border: 1px solid var(--glass-border); background: var(--glass); border-radius: 999px; padding: 4px 8px;
}
.wit i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px rgba(127,224,178,.8); }
.wit.pend { color: var(--gold); border-color: var(--gold-line); }
.wit.pend i { background: var(--gold); box-shadow: 0 0 6px rgba(255,213,138,.8); }

.shard-visual { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.shard-visual .sv {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 6px; transform: rotate(45deg);
  background: rgba(255,190,220,.12); border: 1px solid var(--glass-border);
}
.shard-visual .sv.ok { background: var(--cta-grad); border-color: rgba(255,255,255,.35); box-shadow: 0 0 12px rgba(255,143,171,.6); }
.shard-visual .sv.warn { background: var(--gold-tint); border: 1.5px dashed var(--gold-line); }

/* ============================================================
   APPS (frames 23-24)
   ============================================================ */
.app-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.app-row + .app-row { border-top: 1px solid rgba(255,255,255,.06); }
.app-row.sel { background: var(--pink-tint); box-shadow: inset 2px 0 0 var(--pink); }
.app-row .l-txt { flex: 1; min-width: 0; }
.app-row .l-t1 {
  font-family: var(--disp); font-weight: 700; font-size: 13px;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-row .l-t2 {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .10em;
  color: var(--ink-faint); margin-top: 2px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-ic {
  width: 32px; height: 32px; border-radius: 12px; flex: none;
  background: var(--glass-hi); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--pink);
}
.perm-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.perm-row + .perm-row { border-top: 1px solid rgba(255,255,255,.06); }
.perm-row .pm-txt { flex: 1; min-width: 0; }
.perm-row .pm-t1 { font-family: var(--disp); font-weight: 700; font-size: 13px; color: var(--ink); }
.perm-row .pm-t2 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-faint); margin-top: 2px; text-transform: uppercase; }

/* 24 Launcher home */
.ln-clock {
  font-family: var(--disp); font-weight: 800; font-size: 76px; color: #FFFFFF;
  line-height: 1; letter-spacing: 0; margin-top: 16px;
  text-shadow: 0 4px 30px rgba(20,10,18,.55);
}
.ln-date { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: var(--ink-dim); text-transform: uppercase; margin-top: 8px; }
.ln-weather { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ln-weather .lw-t { font-family: var(--disp); font-weight: 800; font-size: 15px; color: var(--ink); }
.ln-weather .lw-s { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; margin-top: 2px; }
.ln-glance { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ln-next { margin-top: 12px; }
.ln-next .plate { height: 96px; border-radius: 22px 22px 0 0; border: none; }
.ln-talk { margin-top: auto; margin-bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ln-talk .orb { width: 58px; height: 58px; }
.ln-talk .lt-h { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: var(--ink-faint); text-transform: uppercase; }
.ln-talk .lt-h b { color: var(--pink); }

/* ================= 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; }

/* ---- 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}
