/* Check Six: styled as an app on a phone that exists in the game's world.
   Late-night coastal city: dark glass on a neon dusk, sunset gradient,
   rounded type, chunky tiles, a floating dock. Dark-first for TV-room use. */
:root {
  --bg: #0B0A12;
  --glass: rgba(255, 255, 255, .065);
  --glass-2: rgba(255, 255, 255, .11);
  --stroke: rgba(255, 255, 255, .09);
  --text: #FFFFFF;
  --muted: rgba(235, 235, 255, .58);
  --dim: rgba(235, 235, 255, .32);
  --aqua: #2EF2C8;
  --amber: #FFB020;
  --red: #FF4D6A;
  --pink: #FF2E88;
  --orange: #FF6A3D;
  --gold: #FFC93D;
  --violet: #8B5CF6;
  --sunset: linear-gradient(135deg, #FF2E88 0%, #FF6A3D 55%, #FFC93D 100%);
  --sunset-soft: linear-gradient(135deg, rgba(255, 46, 136, .22), rgba(255, 106, 61, .14) 55%, rgba(255, 201, 61, .08));
  --r-lg: 26px;
  --r: 18px;
  --r-sm: 12px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dock-h: 76px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 500 15px/1.35 var(--font);
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255, 46, 136, .20), transparent 60%),
    radial-gradient(90% 50% at 100% 30%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(120% 60% at 50% 110%, rgba(46, 242, 200, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .35; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

#app { max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 8px) 16px calc(var(--dock-h) + env(safe-area-inset-bottom) + 28px); }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.empty { color: var(--muted); text-align: center; padding: 28px 0; }
.foot { display: block; color: var(--muted); font-size: 12.5px; margin: 10px 4px 0; }
.t-aqua, .lvl-ok { color: var(--aqua); }
.t-warn, .lvl-warn { color: var(--amber); }
.t-crit, .lvl-crit { color: var(--red); }

/* ---------- app bar + widgets ---------- */
.appbar { display: flex; align-items: center; gap: 8px; padding: 6px 0 12px; }
.appid { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.glyph {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--sunset); color: #fff; box-shadow: 0 6px 18px rgba(255, 46, 136, .35);
}
.glyph .ico { width: 20px; height: 20px; }
.round {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none;
  background: var(--glass-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.round.sm { width: 32px; height: 32px; }
.round.lg { width: 64px; height: 64px; }
.round.lg .ico { width: 26px; height: 26px; }
.round.ghosty { background: none; color: var(--dim); }
.round.star { background: none; color: var(--dim); }
.round.star.on { color: var(--gold); }
.round.star.on .ico { fill: var(--gold); }

.widgets { display: grid; grid-template-columns: 1fr 112px; gap: 10px; }
.w {
  display: flex; flex-direction: column; text-align: left; gap: 2px; min-width: 0;
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 14px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.w-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.w-big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.w-big i { font-style: normal; color: var(--dim); }
.w-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-story { background: var(--sunset-soft), var(--glass); }
.w-steps { display: flex; gap: 8px; margin-top: 10px; }
.pillbtn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; height: 32px;
  border-radius: 999px; background: var(--sunset); color: #fff; font-weight: 800; font-size: 13px;
  box-shadow: 0 6px 16px rgba(255, 46, 136, .3);
}
.w-save { align-items: center; justify-content: space-between; text-align: center; color: inherit; }
.w-save .w-sub { white-space: normal; line-height: 1.2; font-weight: 700; }
.w-save.lvl-ok .w-sub { color: var(--aqua); } .w-save.lvl-warn .w-sub { color: var(--amber); } .w-save.lvl-crit .w-sub { color: var(--red); }
.ring-wrap { position: relative; width: 56px; height: 56px; }
.ring { width: 56px; height: 56px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--glass-2); stroke-width: 5; }
.ring-fg { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .4s; }
.lvl-ok .ring-fg { stroke: var(--aqua); } .lvl-warn .ring-fg { stroke: var(--amber); } .lvl-crit .ring-fg { stroke: var(--red); }
.ring-ico { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); }

.w-cash { width: 100%; margin-top: 10px; color: inherit; }
.cash-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cash-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cash-row .right { align-items: flex-end; }
.bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--glass-2); gap: 2px; }
.bar i { display: block; height: 100%; border-radius: 8px; transition: width .4s; }
.bar .prot { background: linear-gradient(90deg, #17C9A5, var(--aqua)); }
.bar .exp.lvl-ok { background: var(--dim); }
.bar .exp.lvl-warn { background: var(--amber); }
.bar .exp.lvl-crit { background: var(--red); }

.radar {
  width: 100%; margin-top: 10px; display: flex; gap: 12px; align-items: center; text-align: left;
  border-radius: var(--r-lg); padding: 12px 14px; color: var(--text);
  background: linear-gradient(135deg, rgba(255, 176, 32, .22), rgba(255, 106, 61, .12)); border: 1px solid rgba(255, 176, 32, .45);
}
.radar > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }

/* ---------- page ---------- */
.ptitle { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 26px 2px 12px; line-height: 1; }
.ptitle small { display: block; font-size: 14px; letter-spacing: 0; margin-top: 6px; }
section { margin-top: 18px; }
h2 { margin: 0 4px 8px; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
h2 small { margin-left: auto; }
h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }

.card, .receipt {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 16px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--stroke); background: var(--glass); border-radius: 999px;
  padding: 9px 15px; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.chip.on { background: #fff; color: #14101C; border-color: #fff; }
.chip.sm { padding: 6px 12px; font-size: 12.5px; background: var(--glass-2); }

.seg { display: flex; background: var(--glass); border: 1px solid var(--stroke); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 9px; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg button.on { background: #fff; color: #14101C; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 11px; padding: 0 5px; }

.tag {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 999px; background: var(--glass-2);
}
.tag.ok { color: var(--aqua); background: rgba(46, 242, 200, .12); }
.tag.warn { color: var(--amber); background: rgba(255, 176, 32, .14); }
.tag.crit { color: var(--red); background: rgba(255, 77, 106, .14); }
.tag.sun { background: var(--sunset); color: #fff; }

/* buttons */
.btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px; font-weight: 800; font-size: 15.5px; margin-top: 12px;
  background: #fff; color: #14101C;
}
.btn.alt { background: var(--glass-2); color: var(--text); }
.btn.danger, .danger { color: var(--red); }
.btn-text { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 0; background: none; color: var(--muted); font-weight: 700; padding: 12px; cursor: pointer; }

/* tiles (settings-style icon squares) */
.tile { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.tile .ico { width: 19px; height: 19px; }
.t-aqua.tile { background: rgba(46, 242, 200, .16); color: var(--aqua); }
.t-red.tile { background: rgba(255, 77, 106, .16); color: var(--red); }
.t-amber.tile { background: rgba(255, 176, 32, .18); color: var(--amber); }
.t-sun.tile { background: var(--sunset); color: #fff; }
.t-dim.tile { background: var(--glass-2); color: var(--muted); }

/* grouped lists */
ul.group {
  list-style: none; margin: 0; padding: 4px 14px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
ul.group.flat { background: none; border: 0; padding: 0; backdrop-filter: none; }
ul.group > li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--stroke); min-height: 56px; }
ul.group > li:first-child { border-top: 0; }
ul.group > li.muted { justify-content: center; font-size: 14px; }
ul.group .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
ul.group b { font-weight: 700; }
.over { text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; font-weight: 700; color: var(--dim); }
.loc { display: inline-flex; gap: 4px; align-items: center; color: var(--gold); }
.loc .ico { width: 13px; height: 13px; }
li.tap, .row-label { cursor: pointer; }
.row-label { display: flex; align-items: center; gap: 12px; width: 100%; }
li.tap > .ico, .row-label > .ico { color: var(--dim); }
.price { color: var(--muted); font-weight: 700; font-size: 14px; }

/* playbook */
.play {
  position: relative; border-radius: var(--r-lg); padding: 18px; margin-bottom: 12px;
  background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.play.best { background: var(--sunset-soft), var(--glass); border-color: rgba(255, 106, 61, .35); }
.play.blocked { opacity: .78; }
.play-top { display: flex; gap: 6px; margin-bottom: 8px; }
.play-top:empty { display: none; }
.play-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.stats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.stat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--glass-2); font-size: 13px; }
.stat > .ico { color: var(--muted); width: 15px; height: 15px; }
.heat { display: inline-flex; gap: 3px; }
.heat i { width: 7px; height: 12px; border-radius: 3px; background: var(--glass-2); }
.heat i.on { background: var(--sunset); }
.need { display: flex; gap: 6px; align-items: center; color: var(--red); font-size: 13.5px; font-weight: 700; margin: 10px 0 0; }
.nudges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nudge {
  display: inline-flex; align-items: center; gap: 5px; border: 1px dashed rgba(255, 201, 61, .5); color: var(--gold);
  background: none; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 700;
}
.nudge.on { border-style: solid; background: rgba(255, 201, 61, .12); }
.nudge.on .ico { fill: var(--gold); }

/* forms */
select, input[type=text], input[type=number] {
  background: var(--glass-2); border: 1px solid var(--stroke); border-radius: var(--r-sm); padding: 8px 10px; font-size: 14px; max-width: 100%;
}
.item-ctl { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.item-ctl select { padding: 6px 8px; font-size: 13px; border-radius: 999px; }
input.bay { width: 62px; border-radius: 999px; padding: 6px 10px; font-size: 13px; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 4px 6px; }
label.field input, label.field select { width: 100%; font-size: 17px; padding: 13px 14px; border-radius: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check input { position: absolute; opacity: 0; }
.check span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--dim); display: grid; place-items: center; color: transparent; cursor: pointer; }
.check input:checked + span { background: var(--aqua); border-color: var(--aqua); color: #0B0A12; }
.check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.note { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 10px 12px; font-size: 13.5px; margin-top: 10px; font-weight: 600; }
.note.bad { background: rgba(255, 77, 106, .12); color: #FF9AAC; }
.note.warn { background: rgba(255, 176, 32, .12); color: var(--amber); }
.note.good { background: rgba(46, 242, 200, .10); color: var(--aqua); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.kv span { color: var(--muted); }
.kv.total { border-top: 1px solid var(--stroke); margin-top: 6px; padding-top: 12px; font-size: 18px; }
.kv.total span { color: var(--text); font-weight: 700; }

/* vault */
.radar-card { border-radius: var(--r-lg); padding: 16px; background: var(--glass); border: 1px solid var(--stroke); }
.radar-card.amber { background: linear-gradient(135deg, rgba(255, 176, 32, .18), rgba(255, 106, 61, .08)); border-color: rgba(255, 176, 32, .4); }
.radar-head { display: flex; gap: 12px; align-items: flex-start; }
.radar-head > div { display: flex; flex-direction: column; gap: 2px; }
.radar-card ul { margin-top: 10px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot {
  position: relative; text-align: left; border-radius: var(--r); padding: 12px; min-height: 104px; min-width: 0;
  display: flex; flex-direction: column; gap: 2px; color: inherit;
  background: var(--glass); border: 1px solid var(--stroke);
}
.slot .sid { font-size: 22px; font-weight: 800; color: var(--dim); line-height: 1; margin-bottom: auto; }
.slot.filled .sid { color: var(--text); }
.slot.anchor.filled { background: var(--sunset-soft), var(--glass); border-color: rgba(255, 106, 61, .35); }
.slot .sch { font-size: 13px; font-weight: 800; }
.slot .stag { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .sempty { margin-top: 6px; }
.slot.next { border: 1.5px dashed var(--gold); }
.slot.next .sempty { color: var(--gold); font-weight: 700; }
.slot.last::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 10px var(--aqua); }

/* dock */
.tabbar {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom)); width: min(360px, calc(100% - 32px));
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(28, 24, 40, .72); border: 1px solid var(--stroke);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.tabbar button {
  flex: 1; border: 0; background: none; color: var(--muted); border-radius: 999px; height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700;
}
.tabbar button .ico { width: 22px; height: 22px; }
.tabbar button.on { background: #fff; color: #14101C; }
body.ob-mode .tabbar, body.ob-mode #hdr { display: none; }

/* sheet */
.sheet {
  border: 1px solid var(--stroke); border-radius: 28px 28px 0 0; color: var(--text);
  background: rgba(24, 20, 34, .96); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  width: 100%; max-width: 520px; margin: auto auto 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 90vh; overflow: auto;
}
.sheet::backdrop { background: rgba(5, 4, 10, .6); backdrop-filter: blur(4px); }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--dim); margin: 0 auto 14px; }
.sheet h3 { font-size: 24px; margin-bottom: 14px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 12px; }
.sheet-actions > * { flex: 1; }
.sheet ul.group { background: var(--glass); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 20px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: .22s;
  background: #fff; color: #14101C; border-radius: 999px; padding: 11px 18px; font-weight: 700;
  display: flex; gap: 14px; align-items: center; font-size: 14px; z-index: 20; max-width: calc(100% - 32px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--pink); font-weight: 800; }
body.ob-mode .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }

/* ---------- onboarding ---------- */
.ob { min-height: calc(100vh - 60px); display: flex; flex-direction: column; padding-top: 4px; }
.ob-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.ob-top > span { width: 40px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--glass-2); transition: .25s; }
.ob-dots i.past { background: var(--dim); }
.ob-dots i.on { width: 26px; background: var(--sunset); }
.ob-hero { text-align: center; padding: 40px 0 24px; }
.ob-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 6px; }
.ob-hero p { color: var(--muted); margin: 0; font-size: 16px; }
.ob-glyph {
  width: 96px; height: 96px; margin: 0 auto; border-radius: 28px; display: grid; place-items: center;
  background: var(--sunset); box-shadow: 0 18px 50px rgba(255, 46, 136, .45);
}
.ob-glyph .ico { width: 52px; height: 52px; color: #fff; }
.ob-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 16px; }
.ob-promise { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.ob-promise > div { display: flex; flex-direction: column; gap: 2px; }
.ob-q { padding: 28px 4px 18px; }
.ob-q h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 0 0 8px; display: block; line-height: 1.15; }
.ob-q p { color: var(--muted); margin: 0; font-size: 15px; }
.ob-stepper { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 26px 0; }
.ob-val { min-width: 120px; text-align: center; display: flex; flex-direction: column; }
.ob-val b { font-size: 72px; font-weight: 800; line-height: 1; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ob-val small { font-size: 14px; margin-top: 6px; }
.ob-nav { margin-top: auto; padding-top: 18px; }
.ob-nav .btn + .btn { margin-top: 10px; }
.ob-safe { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 8px 0; }
.ob-safe b { color: var(--text); }
.ob-restore { margin-top: 4px; }
.ob-title {
  width: 100%; position: relative; text-align: left; border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--stroke);
  background: var(--glass); display: flex; flex-direction: column; gap: 6px; color: inherit;
}
.ob-title b { font-size: 22px; font-weight: 800; }
.ob-title:not(.shown) b { color: var(--dim); }
.ob-title.shown { background: var(--sunset-soft), var(--glass); }
.ob-eye { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ob-group { margin-bottom: 16px; }
.ob-group h3 { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin: 0 4px 8px; }
.ob-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.ob-slot input { position: absolute; opacity: 0; }
.ob-slot span {
  display: grid; place-items: center; height: 54px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke);
  font-size: 18px; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums;
}
.ob-slot input:checked + span { background: var(--sunset); border-color: transparent; }
.ob-slot input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- earn ---------- */
.tag.fresh, .t-fresh { color: #B9A4FF; }
.tag.fresh { background: rgba(139, 92, 246, .2); }
.note.fresh { background: rgba(139, 92, 246, .14); color: #CFC2FF; }
.note b { color: var(--text); }
.earn-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.earn-sum > div {
  display: flex; flex-direction: column; align-items: center; padding: 14px 6px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--stroke);
}
.earn-sum b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.earn {
  border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px;
  background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.earn.blocked { opacity: .8; }
.earn-head { display: flex; gap: 12px; align-items: center; }
.earn-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.earn-head h3 { font-size: 17px; }
.earn-rate { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.earn-rate b { font-size: 17px; font-weight: 800; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.btn.sm-btn { padding: 11px; font-size: 14px; }
.tabbar button { position: relative; }
.dot-new { position: absolute; top: 8px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }

/* page title with a trailing action (Locker → Add) */
.ptitle-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ptitle-row .ptitle { flex: 1; min-width: 0; }
.chip.add { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; background: #fff; color: #14101C; border-color: #fff; font-weight: 800; }
.chip.add .ico { width: 16px; height: 16px; }
/* add sheet: search-first; the kind picker shows only for your own items */
.add-form .custom { display: none; }
.add-form.is-custom .custom { display: block; }
.add-form .sugg { margin: -4px 0 12px; }
.add-form .sugg li { min-height: 52px; }
.add-form .sugg li.on { background: rgba(255, 255, 255, .08); }
.add-form .sugg li > .ico { color: var(--aqua); }
