@font-face {
  font-family: Inter;
  src: url("fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080f19;
  --surface: #0d1723;
  --surface-2: #111e2c;
  --line: #25303b;
  --zero: #3a4a59;
  --text: #eaf0f5;
  --strong: #f6f9fb;
  --muted: #92a3b3;
  --positive: #55ce91;
  --negative: #ed7e86;
  --amber: #d7a468;
  --cyan: #58bfd8;
  --flat: #4da3ff;
  --model: #ff6b6b;
  --hedged: #3ddc97;
  --gold: #e3b341;
  --long: #67b6cf;
  --short: #d8a078;
  --seg: #2a4356;
  --danger-text: #ffb4bb;
  --danger-bg: #231a24;
  --phone-w: 393px;
  --phone-h: 852px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #05080d; }
html { -webkit-text-size-adjust: 100%; }
body {
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
img { display: block; }

.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
  gap: 16px;
}
.outer-banner {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
}
.phone-shell { display: flex; align-items: center; justify-content: center; }
.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  background: var(--bg);
  border-radius: 54px;
  box-shadow:
    0 0 0 3px #1a1f26,
    0 0 0 5px #3a414b,
    0 28px 80px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  color: var(--text);
}

/* Fill a real phone / QA viewport */
@media (max-width: 500px) {
  .stage { padding: 0; min-height: 100dvh; justify-content: stretch; }
  .outer-banner { display: none; }
  .phone-shell { flex: 1; width: 100%; }
  .phone {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

.phone-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Status bar */
.status-bar {
  flex: none;
  height: calc(54px + var(--safe-top));
  padding: var(--safe-top) 22px 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 8;
  color: #fff;
  pointer-events: none;
}
.status-time {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 21px;
  padding-bottom: 14px;
  width: 86px;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 16px;
  width: 86px;
  justify-content: flex-end;
}
.status-icons svg { display: block; }

.island-rest {
  position: absolute;
  top: calc(var(--safe-top) + 11px);
  left: 50%;
  width: 126px;
  height: 37px;
  margin-left: -63px;
  background: #000;
  border-radius: 19px;
  z-index: 9;
}
.island-rest.live {
  width: 216px;
  margin-left: -108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  pointer-events: auto;
  cursor: pointer;
}
.island-compact-pnl {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.island-rest.live canvas { width: 72px; height: 22px; }

/* Nav */
.nav {
  flex: none;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  padding: 0 6px;
}
.nav h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--strong);
}
.nav-gear, .nav-back {
  position: absolute;
  top: 0;
  height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
  color: var(--flat);
}
.nav-gear { right: 6px; }
.nav-gear .gear-btn {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--flat);
}
.nav-gear svg { width: 20px; height: 20px; }
.nav-back { left: 2px; display: flex; align-items: center; gap: 1px; padding-left: 4px; font-size: 17px; font-weight: 400; }
.nav-back svg { width: 13px; height: 22px; flex: none; }

/* Acceptance banner */
.accept-banner {
  flex: none;
  margin: 0 16px 2px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(215, 164, 104, 0.12);
  border: 1px solid rgba(215, 164, 104, 0.28);
  color: var(--amber);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.25;
}

/* Content */
.content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 6px 16px 128px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior: contain;
}
.content.fit {
  overflow: hidden;
  padding-bottom: 100px;
  gap: 8px;
}
.content.plain { padding-top: 8px; }

/* Tab bar — floating iOS-style capsule */
.tabbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--safe-bot) + 14px);
  height: 62px;
  background: rgba(13, 22, 33, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(37, 48, 59, 0.95);
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 4px 4px 6px;
  z-index: 12;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.tab {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.08px;
  line-height: 1.15;
  border-radius: 18px;
}
.tab svg { width: 24px; height: 24px; display: block; }
.tab.on { color: var(--flat); }
.tab.on { background: rgba(77, 163, 255, 0.1); }
.home-ind {
  position: absolute;
  z-index: 13;
  left: 50%;
  bottom: calc(var(--safe-bot) + 6px);
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.78);
  pointer-events: none;
}
@media (max-width: 500px) {
  .home-ind { display: none; }
}

/* Cards & type */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  flex: none;
  width: 100%;
}
.card.hot { border-color: var(--amber); box-shadow: inset 0 0 0 1px rgba(215, 164, 104, 0.35); }
.card.flex {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
}
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.nlv {
  color: var(--strong);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.9px;
  line-height: 1.05;
  font-family: Inter, -apple-system, "SF Pro Rounded", "SF Pro Display", sans-serif;
  white-space: nowrap;
}
.nlv.sm { font-size: 34px; }
.dayline { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.dayline b { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.1; }
.dayline span { color: var(--muted); font-size: 15px; font-weight: 400; }
.pos { color: var(--positive); }
.neg { color: var(--negative); }
.amb { color: var(--amber); }
.dim { color: var(--muted); }
.strong { color: var(--strong); }
.cyan { color: var(--cyan); }
.danger { color: var(--danger-text); }

.toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}
.age { font-size: 13px; font-weight: 600; color: var(--muted); }
.age.fresh { color: var(--positive); }
.age.warn { color: var(--amber); }
.age.bad { color: var(--negative); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px 0 7px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pill.live { color: var(--positive); background: rgba(85, 206, 145, 0.16); }
.pill.demo, .pill.stale, .pill.closed, .pill.wait { color: var(--amber); background: rgba(215, 164, 104, 0.16); }
.pill.bad { color: var(--negative); background: rgba(237, 126, 134, 0.16); }

.quotes { display: flex; gap: 8px; }
.quotes > div { flex: 1; min-width: 0; }
.quotes .nm { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.quotes .vl { font-size: 17px; font-weight: 600; margin-top: 2px; }
.quotes .ch { font-size: 13px; font-weight: 600; margin-top: 1px; }

.pair { display: flex; gap: 12px; margin-top: 6px; }
.pair > div { flex: 1; min-width: 0; }
.pair .nm { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.pair .vl { font-size: 15px; font-weight: 600; margin-top: 1px; }

.banner-note { font-size: 13px; font-weight: 600; margin-top: 6px; }
.hint { font-size: 12px; font-weight: 500; color: var(--muted); }
.hint.sm { font-size: 12px; }

/* Legend */
.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin: 2px 0 2px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.swatch { width: 18px; height: 8px; flex: none; }

/* Segmented control */
.seg {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
  height: 28px;
  width: 190px;
  flex: none;
}
.seg button {
  flex: 1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  height: 100%;
}
.seg button.on { background: var(--seg); color: var(--strong); }

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plot-wrap {
  flex: 1;
  min-height: 160px;
  position: relative;
  touch-action: none;
}
.plot-wrap canvas, .mini-plot canvas, .spark canvas, .iv-plot canvas,
.lock-spark canvas, .ex-spark canvas, .w-spark canvas,
.island-compact-demo canvas, .lock-island canvas,
.island-min-demo canvas, .island-rest canvas, .island-exp canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.mini-plot { height: 88px; width: 100%; }

/* Greeks / worst / readout */
.greeks { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.greeks .row, .kv { display: flex; gap: 12px; }
.greeks .cell, .kv.line {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}
.greeks .cell span:first-child, .kv.line span:first-child { color: var(--muted); }
.greeks .cell span:last-child { font-variant-numeric: tabular-nums; }
.worst {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}
.readout { display: flex; flex-direction: column; gap: 2px; }
.readout .hd { font-size: 12px; font-weight: 600; color: var(--text); }
.readout .ln {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
}

/* Buttons */
.live-btn, .action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}
.live-btn.on {
  background: rgba(85, 206, 145, 0.16);
  border-color: transparent;
  color: var(--positive);
}
.actions { display: flex; gap: 8px; }
.actions .action { flex: 1; margin-top: 0; }

/* Lists */
.kv.line { font-size: 15px; padding: 1px 0; }
.kv.line span:last-child { font-variant-numeric: tabular-nums; }
.group-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 8px 0 0; }
.leg-name { font-size: 17px; font-weight: 600; color: var(--strong); }
.leg-top, .leg-mid, .leg-bot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.leg-mid { font-size: 13px; margin-top: 4px; }
.leg-bot { font-size: 13px; color: var(--muted); margin-top: 2px; gap: 10px; justify-content: flex-start; flex-wrap: wrap; }
.qty-long { color: var(--long); font-weight: 600; }
.qty-short { color: var(--short); font-weight: 600; }

/* Week */
.verdict { font-size: 28px; font-weight: 600; color: var(--strong); letter-spacing: -0.4px; line-height: 1.15; margin: 4px 0 6px; }
.week-sub { font-size: 13px; color: var(--muted); }
.week-map { display: flex; gap: 4px; margin-top: 8px; }
.week-day { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.week-day .wd { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.week-day .mv { font-size: 12px; font-weight: 600; white-space: nowrap; }
.week-day .nt { font-size: 10px; color: var(--muted); line-height: 1.2; min-height: 1.2em; }
.event { display: flex; align-items: flex-start; gap: 0; font-size: 13px; padding: 5px 0; color: var(--text); }
.event .ed { width: 64px; flex: none; }
.event .et { width: 48px; flex: none; color: var(--muted); }
.event .en { flex: 1; min-width: 0; line-height: 1.3; }
.event .ei { flex: none; color: var(--amber); letter-spacing: 1px; margin-left: 6px; font-size: 10px; }

/* Vol */
.iv-legend { display: flex; gap: 12px; font-size: 11px; font-weight: 600; margin: 4px 0 6px; }
.iv-legend .mkt { color: var(--flat); }
.iv-legend .gld { color: var(--gold); }
.iv-plot { height: 140px; width: 100%; }
.strike { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }

/* History / empty */
.empty-kicker { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.empty-title { font-size: 22px; font-weight: 600; color: var(--strong); margin: 6px 0 8px; line-height: 1.2; }
.empty-title.lg { font-size: 28px; }
.empty-body { font-size: 15px; color: var(--muted); line-height: 1.4; }

/* Settings */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  font-size: 17px;
  color: var(--flat);
  border-bottom: 1px solid var(--line);
}
.nav-row:last-of-type { border-bottom: 0; }
.nav-row svg { width: 8px; height: 14px; color: var(--muted); }
.field {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid transparent;
  color: var(--text);
  font-size: 15px;
  outline: none;
  margin: 0 0 8px;
}
.field:focus { border-color: var(--flat); }
.field::placeholder { color: var(--muted); }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  min-height: 36px;
}
.toggle {
  width: 51px;
  height: 31px;
  border-radius: 16px;
  background: #393f46;
  position: relative;
  flex: none;
  transition: background 0.2s;
}
.toggle.on { background: var(--positive); }
.toggle i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: left 0.2s;
}
.toggle.on i { left: 22px; }

.phase-grid { display: flex; flex-direction: column; gap: 4px; }
.phase-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  text-align: left;
  width: 100%;
}
.phase-opt.on { background: var(--seg); color: var(--strong); font-weight: 600; }
.phase-opt .dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--muted);
  flex: none;
}
.phase-opt.on .dot { background: var(--flat); }
.health-note { font-size: 13px; font-weight: 600; margin-top: 8px; color: var(--amber); }

/* Skeleton */
.skel { background: var(--surface-2); border-radius: 8px; }
.skel.t { width: 80px; height: 10px; border-radius: 6px; }
.skel.b { height: 36px; margin-top: 8px; }
.skel.chart { flex: 1; min-height: 120px; }

/* Lock screen */
.lock {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 55% at 50% -8%, #1a3a58 0%, rgba(8, 15, 25, 0) 58%),
    radial-gradient(70% 40% at 110% 100%, #14202c 0%, rgba(8, 15, 25, 0) 46%),
    #080f19;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.lock-top { flex: none; padding-top: calc(var(--safe-top) + 12px); position: relative; min-height: 120px; }
.lock-time {
  margin-top: 86px;
  text-align: center;
  color: #fff;
  font-size: 84px;
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 0.9;
}
.lock-date {
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: -0.2px;
}
.lock-card-wrap { padding: 28px 16px 0; }
.lock-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 16px;
  border: 1px solid transparent;
  overflow: hidden;
}
.lock-card.hot { border-color: var(--amber); }
.lock-card .lc-top { display: flex; justify-content: space-between; align-items: baseline; }
.lock-card .lc-brand { font-size: 13px; font-weight: 700; color: var(--strong); }
.lock-card .lc-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.lock-card .lc-nlv { font-size: 28px; font-weight: 600; color: var(--strong); letter-spacing: -0.6px; }
.lock-card .lc-qqq { font-size: 13px; font-weight: 500; color: var(--muted); }
.lock-card .lc-pnl { font-size: 20px; font-weight: 600; margin-top: 2px; }
.lock-spark { height: 72px; margin: 8px 0 6px; overflow: hidden; }
.lock-tools {
  display: flex;
  justify-content: space-between;
  padding: 36px 42px 12px;
  margin-top: auto;
}
.lock-tools b {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: rgba(30, 40, 52, 0.7);
  display: grid;
  place-items: center;
  color: #fff;
}
.lock-close {
  display: block;
  margin: 8px auto 20px;
  padding: 10px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.lock-more {
  padding: 8px 16px 32px;
}
.lock-more h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 10px;
}
.island-gallery { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.island-exp {
  width: 100%;
  max-width: 378px;
  background: #000;
  border-radius: 42px;
  padding: 12px 16px 14px;
  color: #fff;
  overflow: hidden;
}
.island-exp .ex-top { display: flex; justify-content: space-between; align-items: baseline; }
.island-exp .ex-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.island-exp .ex-nlv { font-size: 22px; font-weight: 600; margin: 4px 0; }
.island-exp .ex-spark { height: 46px; margin: 4px 0; overflow: hidden; }
.island-exp .ex-worst { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.island-exp .ex-meta { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.island-compact-demo {
  width: 216px;
  height: 37px;
  background: #000;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  color: #fff;
}
.island-compact-demo canvas { width: 72px; height: 22px; }
.island-min-demo {
  width: 37px;
  height: 37px;
  border-radius: 19px;
  background: #000;
  position: relative;
}
.island-min-demo canvas { width: 37px; height: 37px; }
.island-min-demo .mdot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--positive);
  box-shadow: 0 0 0 1.5px #000;
}

.widget-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.widget {
  background: var(--bg);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.widget.small { width: 158px; height: 158px; padding: 12px; }
.widget.medium { width: 100%; max-width: 338px; height: 158px; padding: 12px; }
.widget .amber-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--amber); }
.w-kicker { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.w-nlv { font-size: 22px; font-weight: 600; color: var(--strong); letter-spacing: -0.5px; line-height: 1.1; }
.widget.medium .w-nlv { font-size: 26px; }
.w-pnl { font-size: 16px; font-weight: 600; }
.widget.medium .w-pnl { font-size: 18px; }
.w-spark { height: 36px; margin: 2px 0; overflow: hidden; }
.widget.medium .w-spark { height: 70px; }
.w-worst { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.widget.medium .w-worst { font-size: 14px; }
.w-top { display: flex; justify-content: space-between; align-items: baseline; }
.w-leg { display: flex; gap: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.w-leg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.w-meta { font-size: 13px; color: var(--muted); }

/* Expanded island on lock (tap) */
.lock-island {
  position: absolute;
  top: calc(var(--safe-top) + 11px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: #000;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
}
.lock-island.compact {
  width: 216px;
  height: 37px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
}
.lock-island.expanded {
  position: relative;
  top: calc(var(--safe-top) + 11px);
  left: auto;
  transform: none;
  width: calc(100% - 24px);
  max-width: 378px;
  height: auto;
  border-radius: 42px;
  padding: 12px 16px 14px;
  margin: 0 auto 8px;
}
.lock.island-open .lock-time { margin-top: 20px; }

@media (max-width: 390px) {
  .nlv { font-size: 36px; letter-spacing: -0.8px; }
  .seg { width: 168px; }
  .accept-banner { margin-left: 12px; margin-right: 12px; }
  .content { padding-left: 12px; padding-right: 12px; }
  .tab { font-size: 9px; }
}
