:root {
  /* calm neutral ground */
  --bg: #111115;
  --panel: #1a1a20;
  --panel-2: #222229;
  --line: #2a2a32;
  --text: #f4f4f5;
  --muted: #9a9aa6;
  /* one job each: green = money only, orange = actions / current mission / rules, gold = #1 and the bonus tag, red = problems */
  --money: #16a34a;
  --money-deep: #14532d;
  --accent: #ff5a1f;
  --accent-deep: #b33a0c;
  --accent-ink: #1a0a03;
  --gold: #ffc531;
  --bad: #ff5470;
  /* older name, kept because app.js uses it inline for money and approved states */
  --good: var(--money);
  --r: 14px;
  --display: "Rubik", system-ui, sans-serif;
  --body: "Heebo", system-ui, sans-serif;
  /* banknote textures (copied from the approved mockup): interlaced engraving waves (guilloche) and a fine paper grain */
  --guilloche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='.8'%3E%3Cpath d='M0 10 C10 0 30 0 40 10 S70 20 80 10'/%3E%3Cpath d='M0 10 C10 20 30 20 40 10 S70 0 80 10'/%3E%3Cpath d='M0 4 C10 -6 30 -6 40 4 S70 14 80 4'/%3E%3Cpath d='M0 16 C10 26 30 26 40 16 S70 6 80 16'/%3E%3C/g%3E%3C/svg%3E");
  --guilloche-money: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='.8'%3E%3Cpath d='M0 10 C10 0 30 0 40 10 S70 20 80 10'/%3E%3Cpath d='M0 10 C10 20 30 20 40 10 S70 0 80 10'/%3E%3Cpath d='M0 4 C10 -6 30 -6 40 4 S70 14 80 4'/%3E%3Cpath d='M0 16 C10 26 30 26 40 16 S70 6 80 16'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:root { --top-inset: 0px; --bottom-inset: 0px; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); }
body { background: var(--grain) var(--bg); padding-bottom: calc(72px + var(--bottom-inset) + env(safe-area-inset-bottom, 0px)); min-height: 100vh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--accent); }

/* header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--top-inset)) 16px 12px; background: rgba(17,17,21,.97); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 18px var(--display); letter-spacing: -.01em; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: #111; object-fit: cover; display: block; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.min-btn { width: 34px; height: 34px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
  color: inherit; font: 700 18px/1 var(--display); display: grid; place-items: center; }
.min-btn[hidden] { display: none; }
.steps { margin: 8px 0 0; padding-inline-start: 20px; line-height: 1.7; }
.steps li { margin-bottom: 4px; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; }
.calc input[type=range] { width: 100%; accent-color: var(--accent); margin: 4px 0 6px; }
.calc label b { color: var(--accent); }
.board-open { border-color: var(--accent); }
.slot-free { opacity: .5; }
.lang-pick { display: flex; flex-direction: column; gap: 10px; max-width: 320px; width: 100%; margin: 22px auto 0; }
.lang-pick .btn { font-size: 18px; padding: 16px; }
.tabs.six { grid-template-columns: repeat(6, 1fr); }
.tabs button { position: relative; }
.tab-badge { position: absolute; top: 0; inset-inline-start: 50%; margin-inline-start: 6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 700 10px/13px var(--display); text-align: center; border: 1.5px solid #000; }
.tab-badge[hidden] { display: none; }
.warm-list { display: flex; flex-wrap: wrap; gap: 8px; }
.warm-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  font: 600 13px var(--body); color: inherit; }
/* color-mix() keeps the green one token (--money). A webview without color-mix would still accept a color-mix line that
   holds var() and then blank the property, so every color-mix line sits behind @supports, after its rgba fallback. */
/* money chip: the header balance, and any small amount shown as a pill */
.bal-chip, .chip-money { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 99px; border: 1.5px solid #000;
  font: 800 13px var(--display); color: var(--money); font-variant-numeric: tabular-nums; white-space: nowrap;
  background: rgba(22,163,74,.12); }
@supports (color: color-mix(in srgb, red, blue)) { .bal-chip, .chip-money { background: color-mix(in srgb, var(--money) 12%, transparent); } }
.bal-chip { font-size: 14px; padding: 6px 12px; }

main { padding: 16px; max-width: 640px; margin: 0 auto; }

.linkbox { background: var(--panel-2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0;
  font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; text-align: left; }

.tbl-wrap { overflow-x: auto; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.tbl th { text-align: start; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
summary .grow { flex: 1; min-width: 0; }

/* live batch status bar */
.jobbar { position: sticky; top: calc(57px + var(--top-inset)); z-index: 4; margin: 10px 16px 0; max-width: 640px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
@media (min-width: 672px) { .jobbar { margin-inline: auto; } }
.jobbar .jb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.jobbar .jb-head b { font: 800 14px var(--display); }
.jobbar .jb-eta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.jobbar .bar { margin-top: 8px; }
.jobbar .bar i { transition: width .6s ease; }
.jobbar.done .bar i { background: var(--good); }
.jobbar.failed .bar i { background: var(--bad); }
.jobbar .jb-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 5px; }
.jobbar .jb-stage { color: var(--text); }
.jobbar .jb-stage .dot::after { content: "…"; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.loading { color: var(--muted); text-align: center; padding: 60px 0; }

/* tabs */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; inset-inline: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(20,20,24,.98); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + var(--bottom-inset) + env(safe-area-inset-bottom, 0px)); }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--muted); font-size: 11px; padding: 4px 0; }
.tabs button i { font-style: normal; font-size: 18px; line-height: 1.2; }
.tabs button.on { color: var(--text); font-weight: 700; }
.tabs button.on i { color: var(--accent); }

/* type */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 900; line-height: 1.15; }
h2 { font-size: 19px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sec { margin: 26px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sec h2 { font: 900 18px/1.2 var(--display); letter-spacing: -.01em; }
.pre { white-space: pre-wrap; }

/* hero */
.hero { border-radius: 18px; padding: 22px 18px; background: var(--guilloche) var(--panel); border: 2px solid var(--line); }
.hero p { margin: 8px 0 0; color: #c9c9d1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.stat { background: rgba(0,0,0,.35); border-radius: 12px; padding: 10px; }
.stat b { display: block; font: 800 18px var(--display); }
.stat span { font-size: 12px; color: var(--muted); }

/* cards */
/* every panel and card carries the engraving lines; neutral panels keep a quiet edge, coloured things get black */
.card { background: var(--guilloche) var(--panel); border: 2px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
.card.tap { cursor: pointer; }
.card.tap:active { background-color: var(--panel-2); }
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
/* badges (status) and tags (platform, level, rules, demo): small pills, every one outlined in black */
.badge, .tag { display: inline-flex; align-items: center; justify-content: center; gap: 3px; vertical-align: middle; font: 700 11px/1.5 var(--body);
  padding: 1px 8px; border-radius: 99px; border: 1.5px solid #000; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.tag { color: var(--text); background: var(--line); }
.badge.accent, .tag.rules { background: rgba(255,90,31,.14); color: var(--accent); }
.badge.good { background: rgba(22,163,74,.12); color: var(--money); }
@supports (color: color-mix(in srgb, red, blue)) { .badge.good { background: color-mix(in srgb, var(--money) 12%, transparent); } }
.badge.warn { background: rgba(255,90,31,.14); color: var(--accent); }
.badge.bad { background: rgba(255,84,112,.14); color: var(--bad); }
/* a note to the reader: requests, warnings and rules on a neutral panel with an orange edge; .bad = a problem (red edge) */
.notice { background: var(--panel-2); border: 0; border-inline-start: 3px solid var(--accent); border-radius: 10px; padding: 10px 12px; color: var(--text); }
.notice.bad { border-inline-start-color: var(--bad); }
.post-img { width: 100%; border-radius: 10px; margin-top: 10px; }

/* campaign card */
.camp { padding: 0; overflow: hidden; }
/* The whole cover is shown (never cropped), at its own shape up to 360px tall, over a blurred copy of itself. */
.camp-cover { height: 120px; background: linear-gradient(135deg, #26262e, var(--bg)); position: relative; overflow: hidden; }
.camp-cover.has-img::before { content: ""; position: absolute; inset: -24px; background: var(--img) center / cover; filter: blur(20px) brightness(.55); }
.camp-cover.has-img { height: auto; min-height: 140px; display: flex; align-items: center; }
.camp-cover .cover-img { position: relative; display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.camp-cover .badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; }
/* Campaign page: the cover at its own shape, full width. */
.camp-hero { display: block; width: 100%; height: auto; max-height: 75vh; object-fit: contain; border-radius: 14px; background: var(--bg); }
.camp-body { padding: 14px; }
.rate { font: 900 22px var(--display); color: var(--money); font-variant-numeric: tabular-nums; }
.rate small { font: 500 12px var(--body); color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* progress: an outlined track with moving money stripes */
.bar { height: 10px; background: var(--line); border: 2px solid #000; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; border-radius: 99px; transition: width 1.3s cubic-bezier(.2,.8,.2,1);
  background: repeating-linear-gradient(45deg, var(--money) 0 10px, rgb(18,134,61) 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; }
@supports (color: color-mix(in srgb, red, blue)) {
  .bar i { background: repeating-linear-gradient(45deg, var(--money) 0 10px, color-mix(in srgb, var(--money) 82%, #000) 10px 20px); background-size: 28px 28px; }
}
@keyframes stripes { to { background-position: 28px 0; } }
.bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* money panel: looks like a banknote (green engraving, a rosette and a thin double frame). Recipe from the mockup;
   the rgba lines are the exact values of the color-mix lines, for webviews without color-mix. */
.note { border: 2px solid #000; border-radius: var(--r); padding: 14px; background-color: var(--panel);
  background-image: var(--guilloche-money), radial-gradient(circle at var(--note-at, 14% 50%), transparent 0 46px, var(--panel) 48px),
    repeating-conic-gradient(from 0deg at var(--note-at, 14% 50%), rgba(22,163,74,.22) 0 1.2deg, transparent 1.2deg 4deg);
  box-shadow: inset 0 0 0 4px var(--panel), inset 0 0 0 5px rgba(22,163,74,.4); }
@supports (color: color-mix(in srgb, red, blue)) {
  .note {
    background-image: var(--guilloche-money), radial-gradient(circle at var(--note-at, 14% 50%), transparent 0 46px, var(--panel) 48px),
      repeating-conic-gradient(from 0deg at var(--note-at, 14% 50%), color-mix(in srgb, var(--money) 22%, transparent) 0 1.2deg, transparent 1.2deg 4deg);
    box-shadow: inset 0 0 0 4px var(--panel), inset 0 0 0 5px color-mix(in srgb, var(--money) 40%, transparent); }
}
/* the rosette sits on the side away from the text */
[dir="ltr"] .note { --note-at: 86% 50%; }

/* ---------- home ---------- */
/* balance hero: a banknote panel, tap = the Me tab */
.home-bal { display: block; margin-bottom: 10px; cursor: pointer; }
.hb-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hb-money { font: 900 40px/1.05 var(--display); color: var(--money); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.hb-up { font: 800 12px var(--display); color: var(--money); margin-top: 2px; }
.home-bal .bar { margin-top: 8px; }
/* "why us": five neutral chips that wrap */
.why { display: flex; flex-wrap: wrap; gap: 6px; }
.why span { padding: 6px 11px; border-radius: 99px; background: var(--panel); border: 2px solid var(--line); font: 700 13px/1.3 var(--body); }
/* what the platform paid out, then the tagline as one quiet line */
.paid-total { margin-top: 14px; }
.pt-money { font: 900 30px/1.1 var(--display); color: var(--money); font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.home-tag { text-align: center; margin: 10px 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* hot clips: a strip that scrolls sideways, edge to edge */
.hot { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x proximity; }
.hot::-webkit-scrollbar { display: none; }
.hot-i { flex: 0 0 148px; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: start; padding: 10px 12px; background: var(--guilloche) var(--panel); border: 2px solid var(--line); border-radius: var(--r); color: var(--text); }
.hot-v { font: 900 22px/1.1 var(--display); margin-top: 6px; font-variant-numeric: tabular-nums; }
.hot-who { font-size: 12px; max-width: 100%; }
/* mini podium: #2, #1, #3 side by side; #1 is the tall one with the gold ring */
.mp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.mp-row { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; text-align: center; }
.mp { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; padding: 8px 4px 6px;
  background: var(--panel-2); border-radius: 12px 12px 4px 4px; }
.mp1 { height: 128px; border: 2px solid #000; box-shadow: inset 0 0 0 2px rgba(255,197,49,.65); }
.mp2 { height: 102px; }
.mp3 { height: 90px; }
.mp .avatar { margin-bottom: 4px; }
.mp1 .avatar { width: 40px; height: 40px; box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px #000; margin-bottom: 7px; }
.mp-crown { font-size: 16px; line-height: 1; margin-bottom: 5px; }
.mp-name { font-size: 12px; font-weight: 700; max-width: 100%; }
.mp-money { font: 900 14px var(--display); color: var(--money); font-variant-numeric: tabular-nums; }
.mp.free { opacity: .55; }
.mp.free .mp-name { font-size: 11px; font-weight: 600; line-height: 1.25; }
/* campaign card: the example line, the rules chip and who's inside */
.camp-body .rate { margin-top: 6px; }
.camp-ex { font: 700 13px var(--body); color: var(--muted); }
.camp-ex b { font-family: var(--display); font-weight: 900; color: var(--money); font-variant-numeric: tabular-nums; }
.rules-chip { margin-top: 8px; padding: 7px 10px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camp-in { margin-top: 6px; }

/* ---------- missions ---------- */
/* the mission card: black outline and 3D edge like a button; orange marks the current mission (ring, counter, bar) */
.mission { position: relative; overflow: hidden; margin-bottom: 10px; padding: 14px; border-radius: var(--r); border: 2px solid #000;
  background: var(--guilloche) var(--panel); box-shadow: 0 4px 0 #000, inset 0 0 0 2px rgba(255,90,31,.55); }
.mission.goal { box-shadow: 0 4px 0 #000, inset 0 0 0 2px var(--line); }
.ms-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ms-n { font: 800 12px var(--display); color: var(--accent); letter-spacing: .01em; }
.mission.goal .ms-n { color: var(--muted); }
.ms-t { font: 900 20px/1.2 var(--display); margin-top: 6px; }
.ms-hint { color: #c9c9d1; font-size: 14px; margin-top: 4px; }
.ms-hint.bad { color: var(--bad); }
.ms-money { color: var(--money); font-family: var(--display); font-weight: 900; font-variant-numeric: tabular-nums; }
.ms-wait { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 10px 12px; background: var(--panel-2); border-radius: 10px; }
.ms-clock { font-size: 22px; line-height: 1.1; }
.ms-go { margin-top: 12px; font-size: 17px; padding: 13px 16px; }
.ms-btns { margin-top: 12px; }
.ms-also { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ms-also .btn { flex: none; }
.tag.bonus { background: rgba(255,197,49,.14); color: var(--gold); }
/* the path bar is the mission's own colour, not money's */
.bar.path i { background: repeating-linear-gradient(45deg, var(--accent) 0 10px, #d94a12 10px 20px); background-size: 28px 28px; }
/* a mission just done: ticked on top of the card, then the next one slides in */
.ms-tick { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 12px; text-align: center; background: rgba(17,17,21,.94); font: 800 15px var(--display); animation: tick-fade .2s ease-out; }
.ms-tick b { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  border: 2px solid #000; box-shadow: 0 4px 0 #000; font: 900 30px/1 var(--display); animation: tick-pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes tick-fade { from { opacity: 0; } }
@keyframes tick-pop { from { transform: scale(.3); } }
.mission.ms-in { animation: ms-in .45s cubic-bezier(.2,.9,.3,1); }
@keyframes ms-in { from { transform: translateY(14px); opacity: 0; } }
/* the joins meter (Me): a banknote panel, one line and the 48h note */
.join-meter { margin-top: 14px; }
.jm-t { font-size: 14px; line-height: 1.55; }
.jm-t b { font-family: var(--display); }

/* spotlight: around a target the layer never takes a tap (the target and everything under it stay tappable); only
   the bubble does. The centred bubble's full dim takes the tap instead (it closes the bubble), so nothing hidden under
   it gets pressed. Physical top/left/right/bottom, not inset, for older webviews. */
.spot { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 35; pointer-events: none; }
.spot-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.7); pointer-events: none; }
.spot-ring { position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px; border: 3px solid var(--accent); border-radius: 16px;
  animation: spot-pulse 1.3s ease-out infinite; }
@keyframes spot-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.65); } 100% { box-shadow: 0 0 0 16px rgba(255,90,31,0); } }
.spot.soft .spot-hole { box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }  /* the brief around it must stay readable */
.spot-dim { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.7); }
.spot-center .spot-dim { pointer-events: auto; }
/* the speech bubble: light, outlined in black with a 3D edge, a tail towards the target */
.bubble { position: fixed; width: 320px; max-width: calc(100vw - 24px); pointer-events: auto; padding: 12px 14px; border-radius: 14px;
  background: var(--text); color: var(--bg); border: 2px solid #000; box-shadow: 0 4px 0 #000; font: 700 15px/1.45 var(--body);
  animation: bubble-in .25s ease-out; }
.bubble::before { content: ""; position: absolute; left: var(--tail, 50%); width: 14px; height: 14px; margin-left: -9px; background: var(--text);
  border: 2px solid #000; transform: rotate(45deg); }
.bubble.up::before { top: -9px; border-right: 0; border-bottom: 0; }
.bubble.down::before { bottom: -9px; border-left: 0; border-top: 0; }
.bubble-b { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.bubble .btn.ghost { background: #e4e4e8; color: var(--bg); }
.spot-center .bubble { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.spot-center .bubble::before { display: none; }
@keyframes bubble-in { from { opacity: 0; } }

/* celebrations: a banner over everything, and coins + confetti that fly out from the card */
.cele-banner { position: fixed; top: calc(66px + var(--top-inset)); left: 16px; right: 16px; z-index: 60; max-width: 420px; margin: 0 auto;
  padding: 12px 14px; border-radius: 14px; text-align: center; background: var(--text); color: var(--bg); border: 2px solid #000; box-shadow: 0 4px 0 #000;
  animation: cele-in .4s cubic-bezier(.2,1.5,.4,1); }
.cele-banner > b { display: block; font: 900 19px/1.25 var(--display); }
.cele-banner > span { display: block; margin-top: 2px; font: 700 13px var(--body); color: #3a3a44; }
.cele-banner .btn { margin-top: 10px; }
@keyframes cele-in { from { transform: translateY(-16px) scale(.9); opacity: 0; } }
.confetti { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 55; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; display: block; width: 8px; height: 13px; border-radius: 2px; background: var(--accent); border: 1.5px solid #000;
  opacity: 0; animation: cf-fly 1.1s cubic-bezier(.15,.7,.3,1) forwards; }
.confetti i.w { background: var(--text); }
.confetti i.coin { width: 20px; height: 20px; border-radius: 50%; background: var(--money); color: #04210f; font: 900 12px/17px var(--display); text-align: center; font-style: normal; }
@keyframes cf-fly {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r)); opacity: 0; }
}

/* buttons: outlined in black, a black 3D bottom edge that collapses when pressed */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; border-radius: 12px;
  font: 800 15px var(--display); background: var(--accent); color: var(--accent-ink); width: 100%;
  border: 2px solid #000; box-shadow: 0 4px 0 #000; transition: transform .1s, box-shadow .1s; }
.btn:not(:disabled):active { transform: translateY(4px); box-shadow: 0 0 0 #000; }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.btn.sm { width: auto; padding: 7px 12px; font-size: 13px; border-radius: 10px; box-shadow: 0 3px 0 #000; }
.btn.sm:not(:disabled):active { transform: translateY(3px); box-shadow: 0 0 0 #000; }
.btn.good { background: var(--money); color: #04210f; }
.btn.bad { background: var(--bad); color: #2a0610; }
.btn:disabled { opacity: .5; cursor: default; }
/* tappable cards and pills shrink a little under the finger */
.press, .card.tap, .seg button, .tabs button, .bal-chip { transition: transform .1s; }
.press:active, .card.tap:active, .seg button:active, .tabs button:active, .bal-chip:active { transform: scale(.96); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > .btn { flex: 1; }

/* lists */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.rank { width: 28px; text-align: center; font: 900 16px var(--display); color: var(--muted); }
.rank.top { color: var(--accent); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font: 800 15px var(--display); }
.me-row { background: rgba(255,90,31,.08); border-radius: 10px; padding-inline: 8px; }

/* segmented */
.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.seg button { padding: 6px 13px; border-radius: 999px; background: var(--panel); border: 2px solid var(--line); color: var(--muted); white-space: nowrap; font-size: 13px; font-weight: 700; }
.seg button.on { background: var(--accent); color: var(--accent-ink); border-color: #000; box-shadow: 0 3px 0 #000; }

/* language switch (Me tab) */
.lang-seg { margin: 0; margin-inline-start: auto; padding: 0; flex: none; overflow: visible; }
.lang-seg button { padding: 5px 11px; font-size: 12px; }

/* accordion */
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
summary { padding: 14px; cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 10px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary .n { width: 26px; height: 26px; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; font: 800 13px var(--display); color: var(--accent); flex: none; }
details > div { padding: 0 14px 14px; color: #d4d4d8; }
details video, details iframe { width: 100%; border-radius: 10px; margin-top: 10px; border: 0; aspect-ratio: 9/16; max-height: 420px; }

/* wallet */
.wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wallet .stat { background: var(--panel); border: 1px solid var(--line); }
.big-bal { font: 900 34px var(--display); color: var(--good); }

/* forms */
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input, textarea, select { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
.checks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.checks label { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--text); font-size: 14px; }
.checks input { width: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* sheet */
.sheet-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: rgba(0,0,0,.6); z-index: 20; }
.sheet { position: fixed; left: 0; right: 0; inset-inline: 0; bottom: 0; z-index: 21; max-height: 90vh; overflow-y: auto; background: var(--grain) var(--bg);
  border: 2px solid #000; border-bottom: 0; box-shadow: inset 0 2px 0 var(--line); border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px)); max-width: 640px; margin: 0 auto; }
.sheet .grab { width: 40px; height: 4px; border-radius: 9px; background: var(--line); margin: 4px auto 14px; }
.sheet-close { position: absolute; top: 12px; inset-inline-end: 14px; color: var(--muted); font-size: 22px; }

/* guide overlay */
.guide { position: fixed; inset: 0; z-index: 40; background: var(--grain) var(--bg); display: flex; flex-direction: column;
  padding: calc(16px + var(--top-inset)) 20px calc(20px + var(--bottom-inset) + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.guide .g-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.guide .g-skip { color: var(--muted); font-size: 14px; padding: 6px; }
.guide .g-body { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 20px 0; }
.guide .g-icon { font-size: 64px; line-height: 1; margin-bottom: 18px; }
.guide h1 { font-size: 28px; margin-bottom: 10px; }
.guide .g-text { color: #c9c9d1; font-size: 16px; max-width: 420px; margin: 0 auto; }
.guide .g-text b { color: var(--text); }
.guide .g-tip { margin: 18px auto 0; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; text-align: start; }
.guide .g-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.guide .g-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.guide .g-dots i.on { background: var(--accent); width: 22px; border-radius: 99px; }
.guide .g-nav { display: flex; gap: 8px; }
.guide .g-nav .btn.ghost { flex: 0 0 auto; width: auto; padding-inline: 18px; }

/* above the spotlight's dim (35) and the guide (40), so a toast is never dimmed; it never takes a tap */
.toast { position: fixed; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); left: 16px; right: 16px; inset-inline: 16px; z-index: 50; pointer-events: none; background: var(--text); color: var(--bg);
  padding: 12px 14px; border-radius: 12px; font-weight: 700; text-align: center; max-width: 480px; margin: 0 auto;
  border: 2px solid #000; box-shadow: 0 4px 0 #000; animation: toast-in .18s ease-out; }
.toast.bad { background: var(--bad); color: #2a0610; }
@keyframes toast-in { from { transform: translateY(8px) scale(.96); opacity: 0; } }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.sub-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.admin-link { margin-top: 18px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }

/* admin users: owner-only "make admin" toggle */
.staff-btn { white-space: nowrap; font-size: 11px; }
.addr { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 4px; }

/* reports */
.rep-kpis { margin-bottom: 10px; }
.rep-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.rep-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; padding: 0; background: none; border: 0; cursor: pointer; }
.rep-bar i { display: block; width: 100%; max-width: 18px; margin: 0 auto; background: var(--accent); border-radius: 4px 4px 0 0; }
.rep-bar:hover i, .rep-bar:focus i { opacity: .75; }
.rep-row .num { color: var(--good); }

/* ---------- admin panel ---------- */
/* tabs: a quiet underlined strip you can scroll; the active one is orange */
.seg.atabs { display: flex; gap: 0; overflow-x: auto; margin: 4px -16px 14px; padding: 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.seg.atabs button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 10px 9px; margin-bottom: -1px; color: var(--muted); font-size: 14px; }
.seg.atabs button.on { color: var(--text); border-bottom-color: var(--accent); background: none; box-shadow: none; }
.seg.atabs .badge { margin-inline-start: 4px; padding: 0 6px; font-size: 11px; min-width: 18px; text-align: center; }
/* "needs attention": one list, one tap per row */
.att { margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.att button, .att .ok { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 11px 14px; border: 0; border-top: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600; border-radius: 0; }
.att > :first-child { border-top: 0; }
.att button b { font: 800 16px var(--display); min-width: 24px; text-align: center; color: var(--accent); }
.att button.warn b { color: var(--accent); }
.att button .go { margin-inline-start: auto; color: var(--muted); font-weight: 400; }
.att .ok { color: var(--good); }
/* KPI tiles (old status tab leftovers) */
.kgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-width: 0; }
.kpi .k-l, .kpi .k-s { font-size: 12px; color: var(--muted); display: block; }
.kpi .k-v { font: 800 22px var(--display); display: block; margin: 2px 0; line-height: 1.15; }
/* small charts */
.chart-x { display: flex; gap: 3px; margin-top: 6px; }
.chart-x span { flex: 1; text-align: center; font-size: 10px; color: var(--muted); white-space: nowrap; }
/* numbers inside a card: a hairline grid, no nested boxes */
.cstat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 12px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cstat.c2 { grid-template-columns: repeat(2, 1fr); }
.cstat div { background: var(--panel); padding: 10px 8px; text-align: center; min-width: 0; }
.cstat b { display: block; font: 800 17px var(--display); color: var(--text) !important; }
.cstat span { font-size: 11px; color: var(--muted); display: block; line-height: 1.3; }
.pbar { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin-top: 6px; }
.pbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.vbar { height: 3px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin-top: 5px; }
.vbar i { display: block; height: 100%; background: var(--accent); opacity: .8; }
/* one account of a clipper */
.dacc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.dacc:first-of-type { border-top: 0; }
.dacc a { font-weight: 700; }

/* ---------- central dashboard ---------- */
.dsh-h { font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; }
/* period: a real segmented control */
.dsh-period { padding: 12px; }
.dsh-q { display: none; }
.seg.period { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 2px; padding: 3px; margin: 0; background: var(--panel-2); border-radius: 12px; overflow: visible; }
.seg.period button { padding: 9px 6px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.seg.period button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.seg.period button[data-dpre="custom"] { padding-inline: 10px; }
.dsh-period select { margin-top: 10px; }
.dsh-period .grid2 { margin-top: 10px; }
.dsh-showing { margin-top: 10px; font-size: 13px; color: var(--muted); }
.dsh-showing b { color: var(--text); }
/* number tiles: one ledger grid, hairlines between cells */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 6px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--panel); padding: 14px 14px 12px; min-width: 0; border: 0; }
.tile .t-h { font-size: 12px; font-weight: 700; color: var(--muted); }
.tile .t-v { font: 800 30px var(--display); margin: 2px 0 4px; color: var(--text); line-height: 1.05; letter-spacing: -.02em; word-break: break-word; font-variant-numeric: tabular-nums; }
.tile .t-e { font-size: 12px; color: var(--muted); line-height: 1.35; }
.chg { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.chg.up { color: var(--good); }
.chg.down { color: var(--bad); }
/* chart: muted bars, thin lines, a dot legend */
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; }
.legend button { display: flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: line-through; }
.legend button i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.legend button.on { color: var(--text); text-decoration: none; }
.legend button.on i { background: var(--c); }
.combo { position: relative; height: 170px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), rgba(255,255,255,.04) calc(25% - 1px) 25%); }
.combo-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.ccol { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; background: none; border: 0; cursor: pointer; }
.ccol i { display: block; width: 100%; max-width: 20px; background: var(--accent); opacity: .3; border-radius: 3px 3px 0 0; }
.ccol.on { background: rgba(255,255,255,.05); }
.ccol.on i { opacity: 1; }
.combo-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.combo-lines polyline, .combo-lines line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.daybox { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.db-h { font-weight: 800; margin-bottom: 4px; }
.db-row { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; font-size: 14px; }
.db-row b { color: var(--c); font-family: var(--display); }
/* averages: label on one side, value on the other */
.statlist { padding: 4px 14px; }
.statlist .st-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.statlist .st-row:first-child { border-top: 0; }
.st-ic { font-size: 18px; text-align: center; grid-row: 1 / span 2; }
.statlist .st-row .grow { display: contents; }
.statlist .st-row .grow > b { grid-column: 2; grid-row: 1; }
.st-v { font: 800 18px var(--display); color: var(--text); white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; text-align: end; font-variant-numeric: tabular-nums; grid-column: 3; grid-row: 1 / span 2; }
.statlist .st-row .grow > .small { grid-column: 2; grid-row: 2; }
/* clippers: a leaderboard */
.dcl-list { padding: 0 14px; }
.dcl { border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.dcl:first-child { border-top: 0; }
.dcl > summary { display: flex; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer; list-style: none; }
.dcl > summary::-webkit-details-marker { display: none; }
.dcl > summary .avatar { width: 32px; height: 32px; flex: none; }
.dcl .rank { min-width: 20px; text-align: center; font: 800 14px var(--display); color: var(--muted); }
.dcl-v { font: 800 18px var(--display); white-space: nowrap; color: var(--text) !important; font-variant-numeric: tabular-nums; }
.dcl[open] > summary { border-bottom: 1px dashed var(--line); }
.dcl-body { padding: 2px 0 14px; }
.dcl-t { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.flagbox { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,90,31,.45); background: rgba(255,90,31,.07); }
.flagbox.bad { border-color: rgba(255,84,112,.5); background: rgba(255,84,112,.08); }
/* insights: one plain sentence per row, a coloured edge says how much it matters */
.ins-list { padding: 0; overflow: hidden; }
.ins { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: start; padding: 11px 14px; border: 0; border-top: 1px solid var(--line);
  border-inline-start: 3px solid transparent; background: none; color: var(--text); font-size: 14px; line-height: 1.45; border-radius: 0; }
.ins:first-child { border-top: 0; }
.ins-bad { border-inline-start-color: var(--bad); }
.ins-warn { border-inline-start-color: var(--accent); }
.ins-good { border-inline-start-color: var(--good); }
.ins-info:first-child { font-weight: 700; }
.ins-ic { flex: none; width: 22px; text-align: center; }
.ins-t { flex: 1; min-width: 0; }
.ins .go { flex: none; color: var(--muted); }
button.ins { cursor: pointer; }
button.ins:active { background: var(--panel-2); }
.card.audience { border-color: rgba(154,154,166,.45); background: rgba(154,154,166,.07); }
#topBox, #dclHead { scroll-margin-top: 80px; }
#reloadBtn { font-size: 18px; line-height: 1; }
#reloadBtn.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #reloadBtn.spin { animation: none; opacity: .5; } }
/* pull to refresh: a circle that follows the finger from under the header */
html, body { overscroll-behavior-y: none; }
.ptr { position: fixed; left: 50%; top: 0; z-index: 4; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.45); color: var(--muted);
  opacity: 0; transform: translate(-50%, -48px); pointer-events: none; }
.ptr i { font-style: normal; font-size: 20px; line-height: 1; display: block; }
.ptr.ready { color: var(--accent); border-color: var(--accent); }
.ptr.anim, .ptr-anim { transition: transform .25s ease, opacity .25s ease; }
.ptr.go i { animation: spin .7s linear infinite; }
/* on phones the pull replaces the ↻ button; computers (no touch) keep the button */
@media (pointer: coarse) { #reloadBtn { display: none; } }
@media (prefers-reduced-motion: reduce) { .ptr.go i { animation: none; } }
/* reduced motion: nothing animates or transitions; count-ups show the final number at once (countUp in app.js) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* web login (no Telegram): the whole view, no header or tab bar */
body.login .top, body.login .tabs, body.login #ptr { display: none; }
body.login { padding-bottom: 0; }
.login-wrap { max-width: 420px; margin: 0 auto; padding: 18px 0 30px; }
.login-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; }
.login-card { padding: 18px; }
.login-card h2 { margin: 0 0 12px; }
.login-card p { margin: 0 0 10px; }
.login-card input { font-size: 16px; }
.login-card a { color: var(--accent); }
.lg-row { display: flex; gap: 8px; margin-top: 12px; }
.lg-row .btn { flex: 1; }
.lg-checks { flex-direction: column; gap: 12px; margin: 14px 0 4px; }
.lg-checks label { align-items: flex-start; }
.lg-checks input { margin-top: 3px; flex: none; }

/* website account: the bell (unread notices), the inbox sheet, the login email line */
.bell-btn { position: relative; font-size: 16px; }
.bell-badge { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); font: 700 10px/14px var(--display); text-align: center; border: 1.5px solid #000; }
.inbox { padding-top: 4px; padding-bottom: 4px; }
.ib-item { align-items: flex-start; }
.ib-text { white-space: pre-line; overflow-wrap: anywhere; }
.ib-text code { font-size: 13px; background: var(--panel-2); border-radius: 6px; padding: 1px 5px; }
.ib-item.unread .ib-text { font-weight: 500; }
.ib-item.unread::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--accent); border: 1.5px solid #000; }
.acct-row { justify-content: space-between; margin-top: 4px; flex-wrap: nowrap; }
.acct-row > .btn { flex: none; }
.acct-out { align-items: stretch; }

/* My batch: thumbnails of the files in a pack */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 6px; }
.bt { position: relative; aspect-ratio: 9 / 16; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.bt img { width: 100%; height: 100%; object-fit: cover; }
.bt-n { font: 700 18px var(--display); color: var(--muted); }
.bt-dl { position: absolute; bottom: 3px; inset-inline-end: 3px; width: 24px; height: 24px; border-radius: 99px; background: rgba(0,0,0,.65);
  color: #fff; font-size: 13px; line-height: 24px; text-align: center; text-decoration: none; }
