:root {
  --bg0: #0f0d26;
  --bg1: #1b1540;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1);
  --ink: #f4f2ff;
  --dim: #b3aed6;
  --mute: #7f79a6;
  --mint: #3ddc97;
  --mint2: #7df0bb;
  --coral: #ff6b6b;
  --gold: #ffd166;
  --lav: #a78bfa;
  --sky: #4cc9f0;
  --pink: #ff6b9d;
  --radius: 18px;
  --navh: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* Атрибут hidden должен побеждать любой display из наших классов:
   .overlay и .nav задают display:flex и без этого остаются видимыми. */
[hidden] { display: none !important; }

html, body { min-height: 100%; }

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 15% 0%, #2b2063 0%, var(--bg1) 42%, var(--bg0) 100%) fixed;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mint2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.view {
  flex: 1;
  padding: calc(10px + var(--safe-t)) 14px calc(var(--navh) + 22px + var(--safe-b));
}

.screen { display: flex; flex-direction: column; gap: 14px; animation: rise .22s ease-out; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.boot {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.bootlogo {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .5px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bootline { color: var(--dim); font-weight: 700; font-size: 14px; }

/* ---------- top ---------- */
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 2px 2px 0; }
.topbar .date { font-size: 19px; font-weight: 900; line-height: 1.2; }
.topbar .sub { color: var(--dim); font-size: 12.5px; font-weight: 700; margin-top: 3px; }
.topbar .right { display: flex; gap: 8px; align-items: center; }
.brandmark {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .6px;
  color: var(--gold);
  text-transform: uppercase;
}

.iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--line);
}
.iconbtn:active { transform: scale(.95); }
.iconbtn.alert { color: var(--gold); border-color: rgba(255, 209, 102, .45); }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.card.tight { padding: 12px; }
.card h3 { font-size: 15px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.card .sub { color: var(--dim); font-size: 13px; font-weight: 600; line-height: 1.5; margin-top: 6px; }
.card .sub b { color: var(--ink); }

.muted { color: var(--dim); }
.mute { color: var(--mute); }
.ok { color: var(--mint); }
.warn { color: var(--gold); }
.danger { color: var(--coral); }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- hero / galton ---------- */
.hero { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.herohead { display: flex; align-items: center; justify-content: space-between; }
.ballpos { display: flex; align-items: baseline; gap: 4px; }
.ballpos b { font-size: 34px; font-weight: 900; line-height: 1; color: var(--mint2); }
.ballpos span { font-size: 15px; font-weight: 800; color: var(--dim); }
.ballpos .pl { font-size: 11px; font-weight: 800; color: var(--gold); margin-left: 6px; }

.ballboard { position: relative; }
.ballboard svg { width: 100%; height: 92px; display: block; }
.ballcontrols { display: flex; gap: 8px; }
.ballcontrols button {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  background: var(--card2);
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
}
.ballcontrols button:active { transform: scale(.97); }
.ballcontrols .setpos { flex: 2; font-size: 13px; color: var(--dim); }

.progress { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint), var(--gold)); transition: width .3s; }

.herometa { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 800; color: var(--dim); }
.herometa b { color: var(--ink); }
.herometa .fine { color: var(--coral); }

/* ---------- buttons ---------- */
.btn {
  min-height: 46px;
  padding: 11px 15px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  background: linear-gradient(135deg, #ffe28a, #ffb347);
  color: #1c1638;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(255, 179, 71, .25);
}
.btn:active { transform: scale(.97); }
.btn:disabled { filter: grayscale(.7) brightness(.7); box-shadow: none; cursor: not-allowed; }
.btn.mint { background: linear-gradient(135deg, var(--mint2), #2ec98a); color: #0f2d21; box-shadow: 0 6px 18px rgba(46, 201, 138, .25); }
.btn.ghost { background: var(--card2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn.coral { background: linear-gradient(135deg, #ff9d9d, #f45b5b); color: #fff; }
.btn.small { min-height: 38px; padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.btn.wide { width: 100%; }
.btn.tiny { min-height: 32px; padding: 5px 10px; font-size: 12px; border-radius: 9px; }

.actions { display: flex; gap: 8px; }
.actions .btn { flex: 1; }
.actions .btn.ghost { flex: 0 0 auto; padding-left: 13px; padding-right: 13px; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--dim);
  white-space: nowrap;
}
.chip.gold { color: var(--gold); border-color: rgba(255, 209, 102, .35); }
.chip.mint { color: var(--mint); border-color: rgba(61, 220, 151, .35); }
.chip.coral { color: var(--coral); border-color: rgba(255, 107, 107, .35); }
.chip.lav { color: var(--lav); border-color: rgba(167, 139, 250, .35); }

/* ---------- timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.slot {
  display: grid;
  grid-template-columns: 52px 18px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.slot:first-child { border-top: none; }
.slot-time { font-size: 12px; font-weight: 900; color: var(--dim); padding-top: 4px; font-variant-numeric: tabular-nums; }
.slot-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin: 6px auto 0;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .05);
}
.slot.done .slot-dot { background: var(--mint); box-shadow: 0 0 0 3px rgba(61, 220, 151, .18); }
.slot.missed .slot-dot { background: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 107, .18); }
.slot.current .slot-dot { background: var(--gold); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 209, 102, .2); }
  50% { box-shadow: 0 0 0 7px rgba(255, 209, 102, .07); }
}
.slot-body { min-width: 0; }
.slot-body h3 { font-size: 14.5px; font-weight: 900; line-height: 1.3; }
.slot.done .slot-body h3 { color: var(--mint2); }
.slot.missed .slot-body h3 { color: #ffa9a9; text-decoration: line-through; text-decoration-color: rgba(255, 169, 169, .5); }
.slot-body p { font-size: 12.5px; color: var(--dim); font-weight: 600; line-height: 1.45; margin-top: 4px; }
.slot-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 7px; background: rgba(255, 255, 255, .07); color: var(--dim); }
.tag.body { color: #7df0bb; } .tag.mind { color: #c4b5fd; } .tag.money { color: var(--gold); }
.tag.work { color: #ffb4b4; } .tag.people { color: #7bdff2; } .tag.order { color: #c7d2fe; }
.tag.spirit { color: #f0abfc; } .tag.study { color: #a5b4fc; } .tag.impact { color: var(--pink); } .tag.rest { color: #94a3b8; }
.tag.goal { color: var(--mint); background: rgba(61, 220, 151, .1); }
.slot-check { font-size: 11.5px; color: var(--mute); font-weight: 700; margin-top: 5px; }
.slot-btns { display: flex; gap: 6px; margin-top: 8px; }
.slot-btns button {
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  background: var(--card2);
  color: var(--dim);
  border: 1px solid transparent;
}
.slot-btns button[data-mark="yes"].on { background: rgba(61, 220, 151, .16); color: var(--mint2); border-color: rgba(61, 220, 151, .4); }
.slot-btns button[data-mark="no"].on { background: rgba(255, 107, 107, .16); color: #ffa9a9; border-color: rgba(255, 107, 107, .4); }
.slot-fine { margin-top: 7px; font-size: 11.5px; font-weight: 800; color: var(--coral); }
.slot-earn { margin-top: 7px; font-size: 11.5px; font-weight: 800; color: var(--mint); }

/* ---------- stats ---------- */
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px 12px;
}
.stat .k { font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--mute); }
.stat .v { font-size: 20px; font-weight: 900; margin-top: 4px; }
.stat .v.mint { color: var(--mint2); }
.stat .v.gold { color: var(--gold); }
.stat .v.coral { color: var(--coral); }
.stat .note { font-size: 11px; color: var(--dim); font-weight: 700; margin-top: 3px; }

.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 34px; border-radius: 9px; font-size: 12.5px; font-weight: 900; color: var(--dim); }
.seg button.active { background: var(--card2); color: var(--ink); }

.bars { display: flex; align-items: flex-end; gap: 2px; height: 96px; margin-top: 8px; }
.bars .bar { flex: 1; min-width: 2px; background: rgba(255, 255, 255, .12); border-radius: 3px 3px 0 0; position: relative; }
.bars .bar.now { background: linear-gradient(180deg, var(--gold), rgba(255, 209, 102, .25)); }
.bars .bar.hot { background: linear-gradient(180deg, var(--mint2), rgba(61, 220, 151, .2)); }

.sparkwrap { margin-top: 10px; }
.sparkwrap svg { width: 100%; height: 74px; display: block; }
.sparkline { fill: none; stroke: var(--mint2); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.sparkarea { fill: url(#sg); opacity: .3; }
.sparkdot { fill: var(--gold); }

.heat { display: grid; grid-template-columns: repeat(35, 1fr); gap: 1px; margin-top: 8px; }
.heat i { height: 12px; border-radius: 2px; background: rgba(255, 255, 255, .06); display: block; }

.rowlist { display: flex; flex-direction: column; }
.rowlist .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 13px;
  font-weight: 700;
}
.rowlist .row:first-child { border-top: none; }
.rowlist .row .r { color: var(--dim); }
.rowlist .row b { font-weight: 900; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 11px; }
.field label { font-size: 12px; font-weight: 800; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(61, 220, 151, .55); }
.field .hint { font-size: 11px; color: var(--mute); font-weight: 700; }
.fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.fieldrow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.switch:first-of-type { border-top: none; }
.switch .lab { font-size: 13.5px; font-weight: 800; }
.switch .note { font-size: 11.5px; color: var(--dim); font-weight: 600; margin-top: 2px; }
.toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  position: relative;
  flex: none;
  transition: background .18s;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s;
}
.toggle.on { background: var(--mint); }
.toggle.on::after { transform: translateX(20px); }

/* ---------- list blocks ---------- */
.blockhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.blockhead h3 { font-size: 14px; font-weight: 900; color: var(--dim); }
.blockhead .act { font-size: 12px; font-weight: 900; color: var(--mint2); }

.dynlist { display: flex; flex-direction: column; gap: 8px; }
.dynrow {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 7px;
  align-items: end;
  background: rgba(0, 0, 0, .16);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
}
.dynrow .field { margin-bottom: 0; }
.dynrow .del { color: var(--coral); font-size: 18px; padding: 8px; }

.jobs { display: flex; flex-direction: column; gap: 8px; }
.jobgroup { font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; color: var(--mute); margin-top: 10px; }
.jobcard {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 13px;
  background: rgba(0, 0, 0, .16);
  border: 1px solid var(--line);
}
.jobcard.sel { border-color: rgba(61, 220, 151, .55); background: rgba(61, 220, 151, .07); }
.jobcard .box {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: #0f2d21;
  margin-top: 2px;
}
.jobcard.sel .box { background: var(--mint); border-color: var(--mint); }
.jobcard h4 { font-size: 13.5px; font-weight: 900; }
.jobcard .pay { font-size: 11.5px; font-weight: 800; color: var(--gold); margin-top: 2px; }
.jobcard .desc { font-size: 11.5px; color: var(--dim); font-weight: 600; margin-top: 4px; line-height: 1.4; }
.jobcard .fines { font-size: 11px; color: #ffa9a9; font-weight: 700; margin-top: 4px; }
.jobcard .fines b { color: var(--coral); }

/* ---------- goals ---------- */
.goalcard { background: rgba(0, 0, 0, .16); border: 1px solid var(--line); border-radius: 13px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.goalcard .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.goalcard .top b { font-size: 13.5px; }
.goalcard .why { font-size: 11.5px; color: var(--dim); font-weight: 600; }

/* ---------- wizard ---------- */
.steps { display: flex; gap: 5px; margin-bottom: 4px; }
.steps i { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.steps i.on { background: var(--mint); }
.wizhead h2 { font-size: 21px; font-weight: 900; line-height: 1.2; }
.wizhead p { color: var(--dim); font-size: 13px; font-weight: 600; margin-top: 5px; line-height: 1.5; }
.wizbody { display: flex; flex-direction: column; gap: 4px; }
.wizactions { display: flex; gap: 8px; margin-top: 6px; }
.wizactions .btn { flex: 1; }

/* ---------- chat ---------- */
.chatpanel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  background: #17123a;
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, .5);
  z-index: 60;
  display: flex;
  flex-direction: column;
  max-height: 78dvh;
  transform: translateY(105%);
  transition: transform .22s ease;
  padding-bottom: var(--safe-b);
}
.chatpanel.open { transform: translateY(0); }
.chathead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.chathead b { font-size: 15px; font-weight: 900; }
.chatmsgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; min-height: 120px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; line-height: 1.45; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, rgba(61, 220, 151, .22), rgba(61, 220, 151, .12)); border: 1px solid rgba(61, 220, 151, .25); color: #dcfff0; }
.msg.assistant { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.msg .meta { display: block; font-size: 10px; color: var(--mute); font-weight: 800; margin-top: 4px; }
.chatform { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chatform textarea {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  background: rgba(0, 0, 0, .26);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
}
.chatform button { width: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--mint2), #2ec98a); color: #0f2d21; font-weight: 900; }

/* ---------- overlay / sheet ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 22, .66);
  backdrop-filter: blur(3px);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: 100%;
  max-width: 560px;
  background: #191340;
  border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(18px + var(--safe-b));
  max-height: 88dvh;
  overflow-y: auto;
  animation: slideup .22s ease-out;
}
@keyframes slideup { from { transform: translateY(30px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sheet-head h2 { font-size: 18px; font-weight: 900; line-height: 1.25; }
.sheet-head .x { width: 34px; height: 34px; border-radius: 50%; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.sheet-desc { font-size: 13px; color: var(--dim); font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sheet-actions .btn { width: 100%; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--navh) + 16px + var(--safe-b)); z-index: 120; display: flex; flex-direction: column; gap: 7px; width: min(92vw, 460px); pointer-events: none; }
.toast {
  background: rgba(23, 18, 58, .96);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: var(--shadow);
  animation: toastin .18s ease-out;
}
.toast.err { border-color: rgba(255, 107, 107, .45); color: #ffc9c9; }
.toast.ok { border-color: rgba(61, 220, 151, .4); color: #c8ffe7; }
.toast.tappable {
  pointer-events: auto;
  cursor: pointer;
  border-bottom-width: 3px;
}
.toast.tappable::after {
  content: 'нажмите, чтобы открыть текст';
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .2px;
  opacity: .65;
}
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- error modal ---------- */
.error-overlay { z-index: 200; }
.errtext {
  width: 100%;
  min-height: 120px;
  max-height: 42dvh;
  overflow: auto;
  background: rgba(0, 0, 0, .4);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  color: #ffe3e3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  resize: none;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  touch-action: auto;
}
.errmeta {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
  line-height: 1.45;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 560px;
  margin: 0 auto;
  height: calc(var(--navh) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex;
  align-items: stretch;
  background: rgba(17, 13, 44, .92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 70;
}
.navbtn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
  color: var(--mute);
}
.navbtn .navicon { width: 22px; height: 22px; display: block; }
.navbtn .navicon svg { width: 22px; height: 22px; fill: currentColor; }
.navbtn.active { color: var(--mint2); }
.navbtn:active { transform: scale(.95); }

/* ---------- misc ---------- */
.banner {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  background: rgba(255, 209, 102, .09);
  border: 1px solid rgba(255, 209, 102, .3);
  color: #ffe6ad;
}
.banner.coral { background: rgba(255, 107, 107, .09); border-color: rgba(255, 107, 107, .3); color: #ffc9c9; }
.banner.mint { background: rgba(61, 220, 151, .08); border-color: rgba(61, 220, 151, .3); color: #c8ffe7; }
.banner b { color: inherit; }
.banner .btn { margin-top: 6px; }

.divider { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 0; }

.empty { text-align: center; padding: 26px 12px; color: var(--dim); font-size: 13px; font-weight: 700; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 5px; }

.skel { height: 90px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.review { display: flex; flex-direction: column; gap: 8px; }
.review .score { font-size: 26px; font-weight: 900; color: var(--gold); }
.review ul { padding-left: 17px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--dim); font-weight: 600; }

.footerpad { height: 8px; }

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .view { padding-left: 0; padding-right: 0; }
  .app { box-shadow: 0 0 70px rgba(0, 0, 0, .45); }
}
