/* ===== Dropnaut — black, white, and soft grays ===== */

@font-face { font-family: "Garet"; src: url("assets/fonts/Garet-Book.woff2") format("woff2"), url("assets/fonts/Garet-Book.woff") format("woff"); font-weight: 100 550; font-display: swap; }
@font-face { font-family: "Garet"; src: url("assets/fonts/Garet-Heavy.woff2") format("woff2"), url("assets/fonts/Garet-Heavy.woff") format("woff"); font-weight: 551 900; font-display: swap; }

:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #3A3A3C;
  --muted: #8E8E93;
  --line: #E5E5EA;
  --fill: #EBEBF0;
  --fill-2: #F6F6F9;
  --red: #E5484D;
  --green: #1E8E3E;
  --r-card: 24px;
  --g: 16px;
  --font: "Garet", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 15.5px; line-height: 1.45; color: var(--ink); background: #E6E6EB; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
img, video { display: block; -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
b, strong { font-weight: 800; }

/* ---------- shell ---------- */
.screen { position: relative; width: 100%; max-width: 480px; height: 100dvh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 520px) { .screen { box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 20px 60px rgba(0,0,0,.08); } }
.content { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding-bottom: 28px; }
.content::-webkit-scrollbar { display: none; }
.content > * { animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.page-head { flex-shrink: 0; background: var(--bg); padding: max(14px, env(safe-area-inset-top)) var(--g) 12px; }
.ph-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.page-head h1 { flex: 1; font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; min-width: 0; }
.page-head .r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.tabbar { display: flex; justify-content: space-around; align-items: center; flex-shrink: 0; padding: 8px 10px max(10px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar button { flex: 1; height: 44px; display: grid; place-items: center; color: #A1A1A6; position: relative; transition: color .2s, transform .2s var(--ease); }
.tabbar button:active { transform: scale(.9); }
.tabbar svg { width: 26px; height: 26px; }
.tabbar button.on { color: var(--ink); }
.tabbar button.on::after { content: ""; position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.tabbar .tab-av { position: relative; width: 28px; height: 28px; min-width: 28px; flex: 0 0 28px; aspect-ratio: 1; border-radius: 50%; font-size: 12px; transition: box-shadow .2s; }
.tabbar .tab-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tabbar button.on .tab-av { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }

/* ---------- type + utilities ---------- */
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.small { font-size: 13.5px; }
.xs { font-size: 12px; }
.bold { font-weight: 800; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
/* Garet's tall glyphs get clipped by overflow:hidden at tight line-heights, so ellipsis text gets room */
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; padding-block: 1px; }
.center { text-align: center; }
.pad { padding: 0 var(--g); }
.link { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.danger-text { color: var(--red) !important; }
.star { display: inline-block; margin-left: .14em; font-size: .86em; line-height: 1; vertical-align: .04em; }
.num { font-variant-numeric: tabular-nums; }
.caps { font-size: 11.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.caps.light { color: inherit; opacity: .6; }
.section-caps { display: block; padding: 28px calc(var(--g) + 4px) 10px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 28px var(--g) 12px; }
.sec-h h2 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.sec-h > span { font-size: 13.5px; color: var(--muted); text-align: right; }
.sub-h { padding: 18px calc(var(--g) + 2px) 10px; font-size: 16px; font-weight: 800; scroll-margin-top: 130px; }
.hint { padding: 10px calc(var(--g) + 4px) 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.big-num { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; }
.form-gap { margin-top: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-col .field + .field { margin-top: 0; }
.two-btn { display: flex; gap: 10px; margin-top: 16px; }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 99px; font-weight: 800; font-size: 14.5px; background: var(--ink); color: #fff; white-space: nowrap; text-decoration: none; transition: transform .15s var(--ease), opacity .15s, background .2s; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; position: relative; }
.btn.gray { background: var(--fill); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); }
.btn.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #D1D1D6; }
.btn.danger { background: var(--red); color: #fff; }
.btn.block { width: 100%; }
.btn.lg { height: 54px; font-size: 16px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.preview-btn { pointer-events: none; } /* shown as fans see it, not clickable here */
.loading { opacity: .55; pointer-events: none; }
.pill-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--card); color: var(--ink); font-weight: 800; font-size: 13px; box-shadow: var(--shadow); cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease); }
.pill-btn:active { transform: scale(.96); }
.pill-btn svg { width: 16px; height: 16px; }
.pill-btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
.color-pill .sw { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.15); }
.color-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.color-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--g); }
.circle-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--card); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .15s var(--ease), background .15s; }
.circle-btn:active { transform: scale(.9); }
.circle-btn:disabled { opacity: .3; }
.circle-btn svg { width: 21px; height: 21px; }
.circle-btn.sm { width: 36px; height: 36px; }
.circle-btn.sm svg { width: 17px; height: 17px; }
.circle-btn.soft { background: var(--fill-2); box-shadow: none; }
.circle-btn.on { background: var(--ink); color: #fff; }
.circle-btn.glass { background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.circle-btn.glass-dark { background: rgba(0,0,0,.4); color: #fff; box-shadow: none; backdrop-filter: blur(8px); }
.stat-pill { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--card); font-weight: 800; font-size: 14px; white-space: nowrap; }
.stat-pill.on-dark { background: rgba(255,255,255,.12); color: #fff; }
.stat-pill.glass { background: rgba(0,0,0,.4); color: #fff; backdrop-filter: blur(8px); height: 36px; }

/* drifting icons behind attention-worthy buttons */
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.fx i { position: absolute; bottom: -24px; left: calc(14% + var(--i) * 26%); width: 16px; height: 16px; opacity: 0; color: currentColor; animation: drift 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * 1.1s); }
.fx i svg { width: 100%; height: 100%; }
@keyframes drift { 0% { transform: translateY(0) rotate(0); opacity: 0; } 25% { opacity: .22; } 70% { opacity: .14; } 100% { transform: translateY(-80px) rotate(40deg); opacity: 0; } }
/* star burst on success */
.burst { position: fixed; z-index: 9999; pointer-events: none; font-size: 15px; color: var(--ink); transform: translate(-50%, -50%); animation: burst .7s var(--ease) forwards; }
.burst.light { color: #fff; }
@keyframes burst { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4) rotate(120deg); opacity: 0; } }
/* decorative motion stays on for everyone (owner choice); only page entrances are skipped */
@media (prefers-reduced-motion: reduce) { .content > * { animation: none; } }

/* ---------- cards, lists, fields ---------- */
.card { background: var(--card); border-radius: var(--r-card); }
.card.inset { margin: 0 var(--g); }
.card.padded { padding: 18px; }
.soft-card { background: var(--fill-2); }
.empty-card { margin-bottom: 12px; }
.empty { text-align: center; color: var(--muted); padding: 32px 28px; line-height: 1.5; font-size: 14.5px; }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.empty-btn { padding: 0 18px 18px; }

.group { margin: 0 var(--g); background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.group.soft { background: var(--fill-2); }
.cell { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; position: relative; text-align: left; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line); }
.cell .t { font-weight: 800; line-height: 1.3; }
.cell .s { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.cell .v { color: var(--muted); font-size: 14px; white-space: nowrap; }
.cell .chev { width: 18px; height: 18px; color: #C7C7CC; flex-shrink: 0; }
.cell.danger .t { color: var(--red); }
.cell.me { background: var(--fill); }
.group-note { padding: 10px calc(var(--g) + 4px) 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ic-tile { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: var(--fill); color: var(--ink); font-weight: 800; }
.ic-tile svg { width: 21px; height: 21px; }
.ic-tile.ink { background: var(--ink); color: #fff; }
.ic-tile.soft { background: var(--fill); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field, .row + .field, .field + .row, .field + .two-col, .two-col + .field, .field + .card { margin-top: 16px; }
.field.tight { margin-top: 14px; }
.field > label:not([class]), .label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.label { justify-content: flex-start; flex-wrap: wrap; }
.label.spread { justify-content: space-between; }
.label .muted { font-weight: 600; }
.count { font-size: 12px; font-weight: 600; color: #AEAEB2; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.count.full { color: var(--red); }
.input { width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); outline: none; font-size: 15.5px; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,0,0,.05); }
.input.soft, .sheet .input { background: var(--fill-2); }
textarea.input { height: auto; min-height: 92px; padding: 14px 16px; resize: none; line-height: 1.5; }
.input-prefix, .input-suffix { position: relative; }
.input-prefix span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; }
.input-prefix .input { padding-left: 34px; }
.input-suffix .input { padding-right: 56px; }
.input-suffix button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 13.5px; }
.input-suffix .eye { right: 6px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); transition: color .15s; }
.input-suffix .eye:hover { color: var(--ink); }
.input-suffix .eye svg { width: 21px; height: 21px; }
.auth-hint { min-height: 20px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--red); }
.code-input { height: 68px; text-align: center; font-size: 30px; font-weight: 800; letter-spacing: 12px; }

.segmented { display: flex; gap: 2px; margin: 0 var(--g); padding: 3px; border-radius: 99px; background: var(--fill); }
.segmented button { flex: 1; height: 38px; border-radius: 99px; font-weight: 800; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, box-shadow .2s; }
.segmented button svg { width: 16px; height: 16px; }
.segmented button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--g); }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.field .chips.wrap, .card .chips.wrap, .reward-tools .chips.wrap { padding: 0; }
.folder-chips { padding-top: 16px; }
.chip { flex-shrink: 0; height: 38px; padding: 0 15px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; transition: transform .15s var(--ease), background .15s; }
.chip svg { width: 15px; height: 15px; }
.chip.sm { height: 28px; padding: 0 11px; font-size: 12px; }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.dashed { background: transparent; box-shadow: inset 0 0 0 1.5px #C7C7CC; color: var(--ink-2); }
.chip.drop-hover { transform: scale(1.08); box-shadow: 0 0 0 3px var(--ink); }
.sheet .chip:not(.on):not(.dashed), .card .chip:not(.on):not(.dashed) { background: var(--fill-2); }

.toggle { width: 52px; height: 32px; border-radius: 99px; background: #D1D1D6; position: relative; flex-shrink: 0; transition: background .2s; display: inline-block; }
.toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 2px 4px rgba(0,0,0,.18); }
.toggle.on { background: var(--ink); }
.toggle.on::after { transform: translateX(20px); }
.status { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.status.dark { background: var(--ink); color: #fff; }
.bar { height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .5s var(--ease); }
.lvl-badge { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px 0 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.lvl-badge svg { width: 14px; height: 14px; }
.lvl-badge.sm { height: 26px; padding: 0 10px 0 8px; font-size: 12px; }
.lvl-badge.sm svg { width: 11px; height: 11px; }

/* ---------- avatars ---------- */
.logo-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 17px; font-weight: 800; background: var(--ink); color: #fff; overflow: hidden; }
.logo-av img, .av img { width: 100%; height: 100%; object-fit: cover; }
.logo-av.xs { width: 22px; height: 22px; font-size: 10px; }
.logo-av.sm { width: 30px; height: 30px; font-size: 13px; }
.logo-av.md { width: 52px; height: 52px; font-size: 22px; }
.logo-av.lg { width: 78px; height: 78px; font-size: 32px; }
.logo-av.lg2 { width: 60px; height: 60px; font-size: 24px; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.logo-av.ghost { background: var(--fill); }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0; overflow: hidden; }

/* ---------- media + post tiles ---------- */
.media { position: relative; overflow: hidden; background: var(--fill); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.art { position: absolute; inset: 0; display: grid; place-items: center; padding: 14%; background: linear-gradient(160deg, #EDEDF2, #D6D6DC); color: var(--ink-2); text-align: center; }
.art p { font-weight: 800; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.art .art-ic { width: 34%; height: 34%; color: #A1A1A6; }
.badge { position: absolute; bottom: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; display: grid; place-items: center; }
.badge svg { width: 12px; height: 12px; }
.media.tile { display: block; width: 100%; aspect-ratio: 3/4; border-radius: 14px; transition: transform .2s var(--ease); }
.media.tile:active { transform: scale(.97); }

/* date marker — top right on posts */
.date-chip { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; max-width: calc(100% - 16px); padding: 7px 12px 7px; border-radius: 13px; background: rgba(10,10,10,.72); color: #fff; backdrop-filter: blur(8px); line-height: 1.35; text-align: right; }
.date-chip b { font-size: 12.5px; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: max-content; max-width: 200px; line-height: 1.35; padding-bottom: 1px; }
.date-chip span { font-size: 11px; letter-spacing: .3px; opacity: .8; white-space: nowrap; }
.date-chip.sm { top: 6px; right: 6px; gap: 1px; padding: 4px 7px; border-radius: 9px; }
.date-chip.sm b { font-size: 10.5px; max-width: 84px; }
.date-chip.sm span { font-size: 9.5px; letter-spacing: .2px; }
.date-chip.low { top: auto; bottom: 6px; }
.date-chip.ghost { position: static; flex-direction: row; gap: 8px; align-items: center; background: rgba(255,255,255,.2); padding: 0 18px 0 14px; min-height: 40px; border-radius: 99px; white-space: nowrap; line-height: 1.35; }
.date-chip.ghost span { font-size: 13.5px; font-weight: 800; opacity: 1; letter-spacing: .1px; line-height: 1.35; overflow: visible; }
.date-chip.ghost svg { width: 17px; height: 17px; flex-shrink: 0; }
.date-chip.v { position: static; flex-shrink: 0; padding: 8px 13px; border-radius: 15px; }
.date-chip.v b { font-size: 14px; max-width: 150px; }
.date-chip.v span { font-size: 12.5px; }

.marquee { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; }
.marquee-card { padding: 0; }
.slot-empty { aspect-ratio: 3/4; border-radius: 14px; background: var(--fill-2); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; color: var(--muted); font-size: 12.5px; font-weight: 800; }
.slot-empty.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.slot-empty.add svg { width: 20px; height: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 var(--g); }
.sheet-grid { padding: 0 20px 8px; }

/* ---------- hero (dark) cards ---------- */
.hero-card { margin: max(10px, env(safe-area-inset-top)) var(--g) 0; padding: 22px 20px 20px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #3A3A40 0%, rgba(58,58,64,0) 55%), radial-gradient(90% 80% at 0% 100%, #2A2A2E 0%, #0A0A0A 65%); }
.hero-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 30% at 85% 10%, rgba(255,255,255,.08), transparent); pointer-events: none; }
.hero-logo { height: 50px; width: auto; image-rendering: auto; transform: translateZ(0); }
.hero-greet { font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1.18; margin: 22px 0 20px; overflow-wrap: anywhere; }
.claim { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 22px; height: 64px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 800; font-size: 16px; transition: transform .15s var(--ease); z-index: 1; }
.claim:active:not(:disabled) { transform: scale(.98); }
.claim > span { position: relative; }
.claim-amt { display: inline-flex; align-items: center; height: 48px; padding: 0 18px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 17px; }
.claim:disabled { background: rgba(255,255,255,.08); color: #C7C7CC; }
.claim:disabled .claim-amt { background: rgba(255,255,255,.1); color: #fff; width: 48px; padding: 0; justify-content: center; }
.claim-amt svg { width: 20px; height: 20px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.hero-stats div { background: rgba(255,255,255,.07); border-radius: 18px; padding: 12px; font-size: 12px; line-height: 1.35; color: #A1A1A6; }
.hero-stats b { display: block; color: #fff; font-size: 21px; margin-bottom: 2px; }

/* ---------- leaderboard ---------- */
.lb { padding: 0 var(--g); display: grid; gap: 10px; }
.lb-hero { display: block; width: 100%; text-align: left; padding: 18px; border-radius: 26px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1C1C1E 0%, #0A0A0A 60%); box-shadow: 0 14px 30px rgba(0,0,0,.18); transition: transform .2s var(--ease); }
.lb-hero::before { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.lb-hero:active, .lb-card:active { transform: scale(.98); }
.lb-hero.open { background: linear-gradient(135deg, #2C2C2E, #1C1C1E); }
.lb-top { display: flex; align-items: center; gap: 8px; position: relative; }
.lb-rank { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: #fff; color: var(--ink); }
.lb-label { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; opacity: .7; }
.lb-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; opacity: .65; white-space: nowrap; }
.lb-more svg { width: 14px; height: 14px; }
.lb-name { display: block; font-size: 20px; letter-spacing: -.3px; }
.lb-handle { font-size: 13.5px; opacity: .6; }
.lb-big { margin-top: 18px; font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1; position: relative; }
.lb-sub { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; opacity: .6; margin-top: 8px; }
.lb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lb-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 14px; border-radius: 22px; min-width: 0; transition: transform .2s var(--ease); background: linear-gradient(160deg, #FFFFFF 40%, #F1F1F4); box-shadow: var(--shadow); }
.lb-card .lb-top { width: 100%; }
.lb-card .lb-label { font-size: 10px; letter-spacing: .6px; opacity: .55; line-height: 1.25; }
.lb-card .lb-more { margin: 2px 0 0; font-size: 11.5px; }
.lb-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.lb-ic svg { width: 14px; height: 14px; }
.lb-card b { font-size: 15px; max-width: 100%; }
.lb-metric { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.lb-card.open { opacity: .8; }
.you { font-size: 10.5px; font-weight: 800; margin-left: 6px; padding: 2px 6px; border-radius: 99px; background: rgba(127,127,127,.25); vertical-align: middle; }
.standing { margin: 14px var(--g) 0; padding: 18px; border-radius: 24px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, #3A3A40, transparent 60%), linear-gradient(135deg, #1C1C1E, #0A0A0A); }
.standing-rank { display: block; font-size: 30px; letter-spacing: -.6px; line-height: 1.1; }
.standing .grow span { font-size: 13px; opacity: .65; }
.lb-cell .rank-num { width: 28px; text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); flex-shrink: 0; }
.lb-cell .rank-num.top { color: var(--ink); }
.lb-val { font-weight: 800; font-size: 14px; white-space: nowrap; }

/* ---------- brand card (Home) ---------- */
.brand-card { --card: #FFFFFF; margin: 0 var(--g) 12px; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: var(--card); color: var(--ink); transition: background .2s; }
.brand-card .strip { display: flex; align-items: center; gap: 6px; padding: 12px 12px 0; }
.strip-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: 99px; font-weight: 800; font-size: 13px; background: var(--fill); color: var(--ink); flex-shrink: 0; transition: transform .15s var(--ease); }
.strip-btn:active { transform: scale(.95); }
.strip-btn svg { width: 14px; height: 14px; }
.strip-btn.ink { background: var(--ink); color: #fff; }
.strip-chip { height: 34px; padding: 0 12px; border-radius: 99px; background: rgba(127,127,127,.12); font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; white-space: nowrap; }
.brand-card .lvl-badge { margin-left: auto; }
.brand-card .head { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px 8px; }
.brand-card .name { font-weight: 800; font-size: 16.5px; }
.star-count { font-size: 19px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; }
/* New Survey: big, gently pulsing, hard to ignore */
.survey-cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); margin: 12px 12px 0; padding: 12px 12px 12px 14px; border-radius: 20px; background: var(--ink); color: #fff; text-align: left; animation: nudge 3.2s ease-in-out infinite; }
.survey-cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(10,10,10,.45); animation: ping 2s ease-out infinite; }
.survey-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-100%); animation: shine 2.6s ease-in-out infinite; }
.survey-cta b { display: block; font-size: 17px; }
.survey-cta .grow span { font-size: 12.5px; opacity: .7; }
.sc-ic, .sc-go { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.sc-ic { background: rgba(255,255,255,.14); }
.sc-go { background: #fff; color: var(--ink); width: 36px; height: 36px; }
.sc-ic svg, .sc-go svg { width: 20px; height: 20px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(10,10,10,.35); } 100% { box-shadow: 0 0 0 10px rgba(10,10,10,0); } }
@keyframes nudge { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-1.2deg); } 92% { transform: rotate(1.2deg); } 95% { transform: rotate(-.6deg); } }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }

/* ---------- viewer + post editor (full screen) ---------- */
.viewer { position: absolute; inset: 0; z-index: 40; background: #0B0E14; color: #fff; animation: fade .18s ease; touch-action: pan-y; }
.v-media { position: absolute; inset: 0; }
.v-media > img, .v-media > video { width: 100%; height: 100%; object-fit: cover; }
.v-media .art { background: linear-gradient(160deg, #3A3A3F, #1C1C1E); color: #fff; padding: 18%; }
.v-media .art p { font-size: 24px; line-height: 1.35; -webkit-line-clamp: 9; }
/* chrome over posts: frosted glass that flips light/dark with the media behind it (lt-top / lt-rail / lt-bot) */
.v-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: 14px 64px 44px 14px; padding-top: max(14px, env(safe-area-inset-top)); background: linear-gradient(rgba(0,0,0,.45), transparent); }
.lt-top .v-top { background: linear-gradient(rgba(255,255,255,.55), transparent); color: var(--ink); }
.viewer .dots { display: flex; gap: 4px; margin-bottom: 12px; }
.viewer .dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); }
.viewer .dots i.on { background: #fff; }
.lt-top .dots i { background: rgba(0,0,0,.18); } .lt-top .dots i.on { background: var(--ink); }
.v-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.viewer .who { display: inline-flex; align-items: center; gap: 11px; min-width: 0; text-align: left; }
.who-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.who-txt b { font-size: 16.5px; letter-spacing: -.1px; }
.who-txt span { font-size: 13.5px; opacity: .72; margin-top: 2px; }
.logo-av.vw { width: 44px; height: 44px; font-size: 18px; box-shadow: 0 0 0 2px rgba(255,255,255,.75); }
.lt-top .logo-av.vw { box-shadow: 0 0 0 2px rgba(0,0,0,.12); }
.lt-top .date-chip.v { background: rgba(255,255,255,.75); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.v-corner { position: absolute; top: max(20px, calc(env(safe-area-inset-top) + 6px)); right: 14px; z-index: 6; display: flex; align-items: center; gap: 8px; }
.viewer:has(.dots) .v-corner { top: max(36px, calc(env(safe-area-inset-top) + 22px)); }
.viewer .nav { position: absolute; top: 140px; bottom: 190px; width: 35%; z-index: 2; }
.viewer .nav.l { left: 0; } .viewer .nav.r { right: 0; }
.rail { position: absolute; right: 12px; bottom: 132px; z-index: 5; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.rail > button, .rail label { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; cursor: pointer; }
.rail .rb { width: 52px; height: 52px; border-radius: 50%; background: rgba(20,20,22,.34); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); display: grid; place-items: center; overflow: hidden; transition: transform .15s var(--ease), background .2s; }
.rail .rb.sm { width: 40px; height: 40px; }
.rail .rb.sm svg { width: 19px; height: 19px; }
.rail button:active .rb { transform: scale(.85); }
.rail svg { width: 25px; height: 25px; }
.rail .rl { padding: 3px 9px; border-radius: 99px; background: rgba(20,20,22,.34); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); white-space: nowrap; line-height: 1.3; }
.rail .liked .rb { background: #fff; color: #0A0A0A; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.rail .liked .rb svg { animation: pop-in .35s var(--ease); }
.rail .saved .rb { background: #fff; color: #0A0A0A; }
.rail button:disabled { opacity: .55; cursor: default; }
.rail-stars { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 99px; background: rgba(20,20,22,.34); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.lt-rail .rail .rb:not(.liked .rb), .lt-rail .rail .rl, .lt-rail .rail-stars { background: rgba(255,255,255,.62); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 2px 10px rgba(0,0,0,.06); }
.lt-rail .rail .liked .rb, .lt-rail .rail .saved .rb { background: #fff; color: #0A0A0A; box-shadow: 0 0 0 1.5px #0A0A0A, 0 4px 14px rgba(0,0,0,.14); }
.lt-rail .rail > button { color: var(--ink); }
/* volume: a vertical slider above the rail buttons */
.vol-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 6px; border-radius: 99px; background: rgba(20,20,22,.34); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); width: 40px; }
.vol-wrap .rb.sm { background: transparent !important; box-shadow: none !important; }
.lt-rail .vol-wrap { background: rgba(255,255,255,.62); color: var(--ink); }
.vol { writing-mode: vertical-lr; direction: rtl; width: 20px; height: 84px; accent-color: #fff; cursor: pointer; margin: 0; }
.lt-rail .vol { accent-color: var(--ink); }
.viewer .caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 60px 82px 22px 14px; padding-bottom: max(22px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.4)); line-height: 1.5; font-size: 15px; pointer-events: none; }
.lt-bot .caption { background: linear-gradient(transparent, rgba(255,255,255,.35)); }
.viewer .caption > * { pointer-events: auto; }
.viewer .caption p { display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: 11px 15px; border-radius: 18px; background: rgba(20,20,22,.4); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.lt-bot .caption p { background: rgba(255,255,255,.7); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06); }
.sub-btn { display: block; height: 36px; padding: 0 15px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.lt-bot .sub-btn { background: var(--ink); color: #fff; }
/* Explore: one post per screen, scroll up and down */
.viewer.feed { touch-action: auto; }
.v-feed { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.v-feed::-webkit-scrollbar { display: none; }
.v-slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.v-slide-one { position: absolute; inset: 0; }

.editor { z-index: 45; }
.add-media { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 30px; cursor: pointer; background: linear-gradient(160deg, #3A3A3F, #1C1C1E); }
.add-media b { font-size: 18px; }
.add-media span:last-of-type { font-size: 13.5px; opacity: .6; }
.add-media .circle-btn { color: var(--ink); width: 64px; height: 64px; }
.date-btn { display: inline-flex; }
.editing-cap { padding-bottom: 104px !important; padding-right: 16px !important; }
.editor.sched .editing-cap { padding-bottom: 156px !important; }
.editor.re-edit .editing-cap { padding-bottom: 150px !important; }
.editor.sched.re-edit .editing-cap { padding-bottom: 200px !important; }
.editor .rail { bottom: 200px; }
.editor.sched .rail { bottom: 252px; }
.editor.re-edit .rail { bottom: 246px; }
.editor.sched.re-edit .rail { bottom: 298px; }
.editing-cap p { display: block; }
.editing-cap textarea { width: 100%; background: transparent; border: 0; outline: none; color: #fff; font-size: 16px; line-height: 1.5; resize: none; padding: 0; overflow: hidden; field-sizing: content; max-height: 6.2em; scrollbar-width: none; }
.editing-cap textarea::-webkit-scrollbar { display: none; }
.editing-cap textarea::placeholder { color: rgba(255,255,255,.6); }
.cap-tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cap-tools .count { color: rgba(255,255,255,.55); margin-right: auto; }
.cap-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 99px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cap-btn svg { width: 16px; height: 16px; margin-left: 4px; }
.cap-btn img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.cap-btn.on { background: #fff; color: var(--ink); }
.ed-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: rgba(10,10,10,.6); backdrop-filter: blur(14px); }
.ed-row { display: flex; align-items: center; gap: 10px; }
.ed-date, .date-pick { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.12); font-size: 13.5px; cursor: pointer; }
.ed-date > svg, .date-pick > svg { width: 18px; height: 18px; flex-shrink: 0; }
.ed-date input, .date-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ed-date input::-webkit-calendar-picker-indicator, .date-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.ed-change { margin-left: auto; font-weight: 800; font-size: 12.5px; opacity: .7; }
.date-pick { margin-top: 10px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); height: 50px; border-radius: 16px; }
.ed-delete { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; font-size: 13px; font-weight: 800; color: #FF8A8E; }
.ed-delete svg { width: 15px; height: 15px; }
.ed-modes { flex: 1; display: flex; gap: 4px; padding: 3px; border-radius: 16px; background: rgba(255,255,255,.1); min-width: 0; }
.ed-modes button { flex: 1; min-width: 0; padding: 6px 4px; border-radius: 13px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.ed-modes b { font-size: 12.5px; white-space: nowrap; }
.ed-modes span { font-size: 10.5px; opacity: .6; white-space: nowrap; }
.ed-modes button.on { background: #fff; color: var(--ink); }
.ed-modes button:disabled { opacity: .35; }
.share-btn { height: 48px; padding: 0 20px; flex-shrink: 0; }

/* ---------- brand page ---------- */
.brand-page { --page: #F2F2F7; background: var(--page); min-height: 100%; transition: background .15s; }
.sticky-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px var(--g); padding-top: max(10px, env(safe-area-inset-top)); background: rgba(242,242,247,.88); backdrop-filter: blur(16px); }
.brand-page .sticky-bar { background: color-mix(in srgb, var(--page) 86%, transparent); }
.back-pill { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 14px 0 10px; border-radius: 99px; background: var(--card); color: var(--ink); font-weight: 800; font-size: 13.5px; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.back-pill svg { width: 18px; height: 18px; }
.sticky-bar .mini { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; background: var(--card); color: var(--ink); border-radius: 99px; padding: 5px 14px 5px 5px; height: 42px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.mini-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mini-txt b { display: block; font-size: 13px; line-height: 1.2; }
.mini-txt span { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; line-height: 1.2; }
.sticky-bar > .stat-pill { margin-left: auto; }
.edit-flag { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 11px; border-radius: 99px; background: var(--fill); font-size: 12.5px; font-weight: 800; color: var(--ink-2); line-height: 1; white-space: nowrap; }
.edit-flag svg { width: 16px; height: 16px; flex-shrink: 0; }
.lvl-btn { display: inline-flex; align-items: center; gap: 5px; height: 42px; padding: 0 14px 0 12px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.lvl-btn svg { width: 15px; height: 15px; }
.hero.media { height: 200px; }
.hero .art { background: linear-gradient(150deg, #2C2C2E, #0A0A0A); }
.hero-wrap { position: relative; }
.profile-card { position: relative; display: flex; align-items: center; gap: 14px; margin: -42px var(--g) 0; padding: 16px; background: var(--card); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow); }
.profile-card h1 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; overflow-wrap: anywhere; }
.profile-card .muted { color: var(--muted); }
.star-big { font-size: 22px; font-weight: 800; letter-spacing: -.4px; align-self: flex-start; white-space: nowrap; }
.about { display: flex; align-items: flex-start; gap: 14px; padding: 20px var(--g) 0; }
.about-text { flex: 1; min-width: 0; }
.about-cta { flex-shrink: 0; }
.about h2 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; line-height: 1.3; overflow-wrap: anywhere; word-break: break-word; }
.about p { color: var(--ink-2); line-height: 1.55; margin-top: 6px; white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 400px) { .about { flex-direction: column; } .about-cta { align-self: stretch; } .about-cta > .btn, .sub-stack { width: 100%; } .sub-stack .row > .btn { flex: 1; } }
.sub-stack { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.opt-in { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); background: rgba(127,127,127,.12); transition: transform .15s var(--ease), background .2s; }
.opt-in svg { width: 15px; height: 15px; }
.opt-in:active { transform: scale(.95); }
.opt-in.on { background: var(--ink); color: #fff; }
.links { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px var(--g) 0; }
.link-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--card); color: var(--ink); font-weight: 800; font-size: 13px; text-decoration: none; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.link-chip svg { width: 16px; height: 16px; flex-shrink: 0; }
.link-chip.dashed { background: transparent; box-shadow: inset 0 0 0 1.5px #C7C7CC; color: var(--ink-2); }

.rewards-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 28px var(--g) 8px; background: var(--page, var(--bg)); }
.rewards-head.sticky { position: sticky; top: calc(62px + env(safe-area-inset-top)); z-index: 15; padding-top: 12px; margin-top: 16px; }
.rewards-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.reward-tools { padding: 4px 0 4px; }
.reward-tools .searchbar { margin-bottom: 10px; }
.jump-chips { display: flex; align-items: center; gap: 8px; padding: 0 var(--g) !important; }
.jump-chips .caps { margin-right: 2px; }
.rw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; padding: 0 var(--g); }
.rw-tile { display: flex; flex-direction: column; gap: 3px; text-align: left; min-width: 0; scroll-snap-align: start; transition: transform .2s var(--ease); }
.rw-tile:active { transform: scale(.97); }
.rw-tile .media { aspect-ratio: 1; width: 100%; border-radius: 20px; margin-bottom: 6px; background: var(--card); }
.rw-tile b { font-size: 14.5px; line-height: 1.3; }
.rw-tile > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.rw-tile.lg { flex: 0 0 62%; }
.carousel.releases { margin-top: 0; }
.carousel.releases .slide { aspect-ratio: 4/3; display: block; width: 100%; text-align: left; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 34px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; display: flex; flex-direction: column; }
.slide-cap b { font-size: 19px; letter-spacing: -.2px; }
.slide-cap span { font-size: 13.5px; opacity: .8; }
.edit-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 13px; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.14); cursor: pointer; }
.edit-chip svg { width: 14px; height: 14px; }
.edit-chip.round { width: 32px; height: 32px; padding: 0; justify-content: center; }
.rw-tile .edit-chip.round { top: 8px; right: 8px; }
.edit-wrap { position: relative; cursor: pointer; }
.edit-wrap .edit-chip.round { bottom: -2px; right: -6px; }
/* editable text: a dashed underline, so nothing overlaps neighbors */
.editable { border-bottom: 1.5px dashed #B8B8C0; padding-bottom: 3px; min-height: 1.3em; cursor: text; outline: none; transition: border-color .15s; }
.editable:focus { border-bottom: 2px solid var(--ink); }
.about .editable + .edit-count + .editable { margin-top: 10px; }
[contenteditable]:empty::before { content: attr(data-ph); color: var(--muted); }
.edit-count { font-size: 11.5px; color: #AEAEB2; margin-top: 4px; text-align: right; font-weight: 600; height: 0; overflow: visible; visibility: hidden; }
.editable:focus + .edit-count { visibility: visible; height: auto; }
.edit-count.full { color: var(--red); }
.edit-banner { margin: 16px var(--g) 0; padding: 13px 16px; border-radius: 18px; background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.45; display: flex; gap: 10px; align-items: center; }
.edit-banner svg { flex-shrink: 0; }
.slot { position: relative; }
.slot .repost, .slot .unslot { position: absolute; top: 6px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .2s, color .2s, box-shadow .3s; }
.slot .repost:active, .slot .unslot:active { transform: scale(.85); }
.slot .repost { right: 6px; transform-origin: top right; }
.slot .unslot { left: 6px; }
.slot .repost svg, .slot .unslot svg { width: 14px; height: 14px; }
/* repost on: grows, spins once, keeps a soft glow; off: settles back */
.slot .repost.on { background: var(--ink); color: #fff; transform: scale(1.3); box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 6px 18px rgba(0,0,0,.3); }
.slot .repost.on svg { animation: spin-once .6s var(--ease); }
.slot .repost.on::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #fff; animation: ring 1.8s ease-out infinite; }
@keyframes spin-once { from { transform: rotate(-200deg) scale(.6); } }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.slot .unslot.locked { background: rgba(10,10,10,.55); color: #fff; backdrop-filter: blur(6px); box-shadow: none; cursor: default; }
.lock-left { position: absolute; left: 6px; bottom: 6px; z-index: 3; padding: 2px 7px; border-radius: 99px; background: rgba(10,10,10,.6); color: #fff; font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .15s var(--ease); position: relative; }
.swatch:active { transform: scale(.9); }
.swatch.on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px #fff, 0 0 0 5px var(--ink); }

/* horizontal rows with arrow buttons on desktop */
.hs-wrap { position: relative; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 var(--g) 6px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 var(--g); }
.hscroll::-webkit-scrollbar { display: none; }
.hs-arrow { position: absolute; top: 38%; z-index: 4; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.16); display: none; place-items: center; transition: transform .15s var(--ease); }
.hs-arrow svg { width: 18px; height: 18px; }
.hs-arrow:active { transform: scale(.9); }
.hs-arrow.l { left: 6px; } .hs-arrow.r { right: 6px; }
@media (hover: hover) and (pointer: fine) { .hs-wrap .hs-arrow { display: grid; } }

/* ---------- reward page ---------- */
.rw-title { font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; margin-top: 12px; overflow-wrap: anywhere; }
.rw-price { font-size: 17px; font-weight: 800; margin-top: 6px; }
.carousel { position: relative; margin: 16px var(--g) 0; border-radius: 28px; overflow: hidden; background: var(--card); }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; position: relative; }
.car-prev, .car-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; }
/* keep the vertical centering while pressed, or the button jumps away from the pointer and the click is lost */
.car-prev:active, .car-next:active { transform: translateY(-50%) scale(.9); }
.car-prev::after, .car-next::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.car-prev { left: 10px; } .car-next { right: 10px; }
.car-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; pointer-events: none; }
.car-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: width .25s var(--ease); }
.car-dots i.on { background: #fff; width: 20px; }
.rw-details { margin-top: 8px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.slide-rm { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; z-index: 3; }
.slide-rm svg { width: 15px; height: 15px; }
.add-slide { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--fill-2); cursor: pointer; text-align: center; padding: 20px; box-shadow: inset 0 0 0 2px var(--line); border-radius: 28px; }
.add-slide svg { width: 34px; height: 34px; color: var(--muted); }
.add-slide span { font-size: 13px; color: var(--muted); }
.inline-input { display: block; width: 100%; border: 0; outline: none; background: transparent; padding: 2px 0 4px; border-bottom: 1.5px dashed #B8B8C0; border-radius: 0; }
.inline-input:focus { border-bottom: 2px solid var(--ink); }
.inline-input.num { display: inline-block; width: 84px; font-weight: 800; text-align: center; }
.inline-input.num.sm { width: 52px; }
textarea.inline-input { resize: none; min-height: 96px; border: 1.5px dashed #B8B8C0; border-radius: 14px; padding: 12px; margin-top: 10px; line-height: 1.55; }
textarea.inline-input:focus { border: 2px solid var(--ink); }
.count-row { display: flex; justify-content: flex-end; margin-top: 4px; }
.price-edit { display: flex; align-items: center; justify-content: center; gap: 10px 18px; flex-wrap: wrap; margin: 14px auto 0; padding: 12px 16px; border-radius: 18px; background: var(--card); width: fit-content; max-width: 100%; }
.pe-group { display: inline-flex; align-items: baseline; gap: 6px; }
.rw-title.inline-input { text-align: center; }
.rw-price.center { text-align: center; }

/* ---------- explore: vertical discover grid ---------- */
.searchbar { margin: 0 var(--g) 14px; position: relative; }
.searchbar svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.searchbar .input { padding-left: 44px; padding-right: 64px; border: 0; height: 48px; border-radius: 99px; background: var(--card); }
.searchbar .clear { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 800; }
.brand-chip { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 6px 12px; background: var(--card); border-radius: 22px; min-width: 0; scroll-snap-align: start; transition: transform .2s var(--ease); }
.brand-chip:active { transform: scale(.96); }
.brand-chip b { font-size: 13px; max-width: 100%; }
.brand-chip span { font-size: 11.5px; color: var(--muted); }
.discover { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; grid-auto-flow: dense; gap: 4px; padding: 0 var(--g); }
.d-tile { position: relative; display: block; width: 100%; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--fill); transition: transform .2s var(--ease); }
.d-tile:active { transform: scale(.97); }
.d-tile > img, .d-tile > video { width: 100%; height: 100%; object-fit: cover; }
.d-tile .art p { font-size: 11px; }
.d-tile .by { position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 10px); padding: 2px 8px 2px 2px; border-radius: 99px; background: rgba(10,10,10,.6); color: #fff; backdrop-filter: blur(8px); font-size: 10.5px; font-weight: 800; }
.d-tile .by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-tile .by .logo-av { width: 18px; height: 18px; font-size: 8px; box-shadow: 0 0 0 1px #fff; }
.d-tile .badge { bottom: auto; top: 6px; left: 6px; right: auto; width: 20px; height: 20px; }
.d-tile .date-chip.sm b { max-width: 70px; }

/* ---------- saved ---------- */
.f-ic { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; flex-shrink: 0; }
.f-ic svg { width: 13px; height: 13px; }
.f-ic.neutral { background: var(--fill); color: var(--ink); }
.chip.on .f-ic { box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
.sheet-item .f-ic { width: 40px; height: 40px; border-radius: 12px; }
.sheet-item .f-ic svg { width: 19px; height: 19px; }
.folder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 var(--g); }
.folder-grid .media.tile { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.folder-grid .media.tile.dragging { opacity: .3; transform: scale(.95); }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 9999; border-radius: 14px; overflow: hidden; pointer-events: none; box-shadow: 0 16px 40px rgba(0,0,0,.3); background: var(--fill); will-change: transform; }
.drag-ghost img { width: 100%; height: 100%; object-fit: cover; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none !important; }
.folder-preview { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--fill-2); margin-bottom: 16px; }
.folder-preview b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-preview .f-ic { width: 44px; height: 44px; border-radius: 13px; transition: background .2s; }
.folder-preview .f-ic svg { width: 21px; height: 21px; }
.icon-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.icon-pick button { height: 48px; border-radius: 14px; background: var(--fill-2); display: grid; place-items: center; transition: transform .15s var(--ease); }
.icon-pick button:active { transform: scale(.92); }
.icon-pick button svg { width: 21px; height: 21px; }
.icon-pick button.on { background: var(--ink); color: #fff; }

.coupon { margin: 0 var(--g) 12px; background: var(--card); border-radius: var(--r-card); display: flex; overflow: hidden; }
.coupon .l { width: 88px; flex-shrink: 0; display: grid; place-items: center; border-right: 2px dashed var(--bg); background: var(--fill-2); color: var(--muted); }
.coupon .l svg { width: 28px; height: 28px; }
.coupon .l img { width: 100%; height: 100%; object-fit: cover; }
.coupon .r { flex: 1; padding: 16px; min-width: 0; }
.coupon code { display: inline-block; margin-top: 10px; font-family: var(--font); font-weight: 800; letter-spacing: 1.6px; background: var(--fill-2); padding: 7px 12px; border-radius: 99px; font-size: 13.5px; }
.coupon.used { opacity: .45; }

/* calendar: month grid with colored event bars per brand */
.cal-card { margin: 0 var(--g); padding: 12px 8px 10px; background: var(--card); border-radius: var(--r-card); }
.cal-top { padding: 2px 6px 10px; }
.cal-month { font-size: 19px; letter-spacing: -.3px; }
.soft-pill { height: 36px; box-shadow: none; background: var(--fill-2); }
.cal .wk { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal .wk.head span { font-size: 11px; color: var(--muted); font-weight: 800; padding: 4px 0 6px; text-align: center; letter-spacing: .4px; text-transform: uppercase; }
.cal .wk.grid { border-top: 1px solid var(--line); }
.cal .day { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 74px; padding: 4px 0 4px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; min-width: 0; transition: background .15s; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.wkend { background: #FAFAFC; }
.cal .day.out { opacity: .45; }
.cal .day.sel { background: var(--fill); }
.cal .day .dn { align-self: center; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.cal .day.today .dn { background: var(--ink); color: #fff; }
.cal .bars { display: flex; flex-direction: column; gap: 2px; }
.cal-bar { display: block; height: 15px; margin: 0 -1px; padding: 0 4px; background: var(--c); color: #fff; font-style: normal; font-size: 9.5px; font-weight: 800; line-height: 15px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-bar.head { margin-left: 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
.cal-bar.tail { margin-right: 3px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.cal-bar.expiry { background: transparent; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); border-radius: 5px; margin: 0 3px; }
.cal-bar.empty { background: transparent; }
.cal .day .more { font-size: 9.5px; font-weight: 800; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 12px calc(var(--g) + 4px) 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex-shrink: 0; background: var(--ink); }
.dot.ring { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.cell.agenda { padding-left: 20px; }
.ag-bar { position: absolute; left: 8px; top: 12px; bottom: 12px; width: 4px; border-radius: 99px; background: var(--c); }
.ag-bar.expiry { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.agenda .date-blk b { color: var(--c); }
.date-blk { width: 44px; text-align: center; flex-shrink: 0; }
.date-blk b { display: block; font-size: 22px; line-height: 1.1; }
.date-blk span { font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- account ---------- */
.profile { padding: 4px var(--g) 0; text-align: center; }
.avatar-wrap { position: relative; display: inline-block; cursor: pointer; }
.avatar-wrap .edit-chip.round { right: -2px; bottom: 2px; }
.profile .avatar { width: 96px; height: 96px; font-size: 38px; background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.profile h1 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; margin-top: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.profile .muted { margin-top: 2px; }
.profile .bio { margin-top: 8px; color: var(--ink-2); white-space: pre-line; line-height: 1.5; overflow-wrap: anywhere; }
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 var(--g); }
.bento.three { grid-template-columns: repeat(3, 1fr); }
.bento.sheet-pad { padding: 0 20px; }
.tile:not(.media) { background: var(--card); border-radius: 22px; padding: 14px 16px; text-align: left; }
.tile.soft { background: var(--fill-2); }
.tile .k { font-size: 12.5px; color: var(--ink-2); font-weight: 600; line-height: 1.3; }
.tile b { display: block; font-size: 24px; letter-spacing: -.4px; margin: 4px 0 2px; line-height: 1.1; }
.tile em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--green); }
.tile em.down { color: var(--red); }
.tile em.flat { color: var(--muted); font-weight: 600; }

/* level card: art and finish change with rank */
.level-card { margin: 0 var(--g); border-radius: 28px; position: relative; overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, #FFFFFF 0%, #EDEDF2 55%, #DCDCE3 100%); color: var(--ink); }
.level-card.cosmonaut { background: radial-gradient(90% 80% at 100% 0%, #4A4A52, transparent 60%), linear-gradient(140deg, #2C2C30, #121214); color: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.level-card.captain { background: radial-gradient(70% 60% at 85% 10%, rgba(255,255,255,.18), transparent 60%), radial-gradient(120% 90% at 0% 100%, #1F1F23, #000 70%); color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.lv-body { position: relative; z-index: 1; padding: 22px; }
.lv-rank { display: inline-flex; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; background: var(--ink); color: #fff; }
.cosmonaut .lv-rank, .captain .lv-rank { background: #fff; color: var(--ink); }
.lv-num { font-size: 44px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; margin: 12px 0 6px; }
.level-card .note { font-size: 13px; font-weight: 600; opacity: .72; }
.level-card .bar { background: rgba(127,127,127,.22); margin: 16px 0 8px; height: 8px; width: 100%; }
.level-card .bar > i { background: currentColor; }
.ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ranks div { border-radius: 16px; padding: 10px; background: rgba(255,255,255,.6); font-size: 11.5px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.ranks div b { display: block; color: var(--ink); font-size: 13.5px; }
.ranks div.on { background: var(--ink); color: rgba(255,255,255,.7); }
.ranks div.on b { color: #fff; }
.cosmonaut .ranks div, .captain .ranks div { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.cosmonaut .ranks div b, .captain .ranks div b { color: #fff; }
.cosmonaut .ranks div.on, .captain .ranks div.on { background: #fff; color: rgba(0,0,0,.6); }
.cosmonaut .ranks div.on b, .captain .ranks div.on b { color: var(--ink); }
.lv-art { position: absolute; inset: 0; pointer-events: none; }
.lv-art svg { width: 100%; height: 100%; }
.lv-rocket { position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; opacity: .14; animation: bob 3s ease-in-out infinite; }
.puff { position: absolute; right: 44px; top: 86px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0; animation: puff 2.4s ease-out infinite; }
.puff.p2 { animation-delay: .8s; } .puff.p3 { animation-delay: 1.6s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes puff { 0% { transform: translate(0, 0) scale(.6); opacity: .14; } 100% { transform: translate(-6px, 34px) scale(1.8); opacity: 0; } }
.lv-planet { position: absolute; right: -6px; top: -6px; width: 120px; height: 120px; opacity: .2; animation: spin 26s linear infinite; }
.orb { position: absolute; right: 50px; top: 52px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; opacity: .5; transform-origin: 6px 6px; animation: orbit 5s linear infinite; }
@keyframes orbit { from { transform: rotate(0) translateX(46px); } to { transform: rotate(360deg) translateX(46px); } }
.tw { position: absolute; width: 12px; height: 12px; opacity: .2; animation: twinkle 2.6s ease-in-out infinite; }
.tw.t1 { right: 150px; top: 22px; } .tw.t2 { right: 26px; top: 128px; width: 9px; height: 9px; animation-delay: .7s; } .tw.t3 { right: 110px; top: 70px; width: 16px; height: 16px; animation-delay: 1.3s; } .tw.t4 { right: 60px; top: 30px; animation-delay: 1.9s; }
@keyframes twinkle { 50% { opacity: .7; transform: scale(1.3); } }
.lv-crown { position: absolute; right: 22px; top: 20px; width: 70px; height: 70px; opacity: .22; animation: bob 4s ease-in-out infinite; }
.shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.12) 50%, transparent 65%); transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite; }

/* ---------- business ---------- */
.invite-card b { font-size: 15px; }
.link-box { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 13px 16px; border-radius: 16px; background: var(--fill-2); font-family: var(--font); font-weight: 600; font-size: 13.5px; letter-spacing: .1px; color: var(--ink-2); word-break: break-all; line-height: 1.4; }
.link-box svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--ink); }
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px var(--g) 0; }
.mk-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; min-height: 140px; border-radius: 24px; background: var(--card); text-align: left; transition: transform .2s var(--ease); box-shadow: var(--shadow); }
.mk-tile:active { transform: scale(.97); }
.mk-tile:last-child:nth-child(even) { grid-column: 1 / -1; min-height: 110px; }
.mk-tile b { font-size: 17px; margin-top: auto; position: relative; }
.mk-tile span:not(.mk-ic):not(.fx) { font-size: 12.5px; line-height: 1.4; color: var(--muted); position: relative; }
.mk-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--fill); display: grid; place-items: center; position: relative; }
.mk-ic svg { width: 20px; height: 20px; }
.mk-tile.hero { grid-column: 1 / -1; min-height: 172px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, #3A3A40, transparent 60%), linear-gradient(135deg, #1C1C1E, #0A0A0A); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.mk-tile.hero b { font-size: 25px; }
.mk-tile.hero span:not(.mk-ic):not(.fx) { color: rgba(255,255,255,.62); }
.mk-tile.hero .mk-ic { background: #fff; color: var(--ink); width: 50px; height: 50px; border-radius: 50%; }
.mk-tile.hero .fx i { width: 22px; height: 22px; }
.chart-card { margin: 0 var(--g); padding: 18px 16px 12px; background: var(--card); border-radius: var(--r-card); }
.chart-card .big-num { margin-top: 4px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 14px; }
.chart i { flex: 1; background: var(--fill); border-radius: 8px; transition: height .4s var(--ease); }
.chart i.hi { background: var(--ink); }
.chart-x { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.chart-x span { flex: 1; text-align: center; }
.ai { margin: 12px var(--g) 0; padding: 18px; border-radius: var(--r-card); background: linear-gradient(135deg, #FFFFFF, #EFEFF3); box-shadow: var(--shadow); }
.ai.sheet-ai { margin: 16px 20px 0; }
.ai .h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; }
.ai ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.55; font-size: 14px; color: var(--ink-2); }
.ai li + li { margin-top: 6px; }
.about-ai { padding-top: 16px; }
.about-ai .small { display: flex; align-items: center; gap: 6px; }
.about-ai .small svg { width: 15px; height: 15px; }
.about-ai p { margin: 6px 0 10px; line-height: 1.5; }
.quota { margin: 4px var(--g) 0; display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.quota .dots { display: flex; gap: 5px; }
.quota .dots i { width: 22px; height: 6px; border-radius: 99px; background: var(--line); }
.quota .dots i.used { background: var(--ink); }
.opt-row { display: flex; align-items: center; gap: 8px; position: relative; }
.opt-row + .opt-row { margin-top: 8px; }
.opt-row .input { padding-right: 60px; }
.opt-row .count { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); }
.opt-row:not(:has(.circle-btn)) .count { right: 16px; }
.add-opt { margin-top: 8px; align-self: flex-start; }
.audience { margin-top: 18px; }
.aud-count { font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: var(--ink); color: #fff; white-space: nowrap; }
.crit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.crit label { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; line-height: 1.3; }
.crit label span { font-weight: 600; color: var(--muted); font-size: 11.5px; }
.crit .input { height: 46px; background: var(--fill-2); }
.thumb { width: 56px; height: 72px; border-radius: 12px; flex-shrink: 0; }
.thumb.sm { width: 42px; height: 54px; border-radius: 10px; }
.thumb .art p { font-size: 8px; }
.stat-line { display: flex; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.stat-line b { color: var(--ink); }
.post-metric .pm { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 99px; background: rgba(10,10,10,.6); color: #fff; font-size: 10.5px; font-weight: 800; }
.post-metric .pm svg { width: 11px; height: 11px; }
.live-dot { position: absolute; top: 6px; left: 6px; padding: 3px 7px; border-radius: 99px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 800; }
.live-dot.q { background: var(--ink); color: #fff; }
.q-cell { gap: 10px; }
.q-pos { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.q-ctl { display: flex; gap: 4px; flex-shrink: 0; }
.q-ctl .circle-btn.sm { width: 32px; height: 32px; }
.resp-bar { margin-top: 14px; }
.resp-bar .spread { font-size: 14.5px; font-weight: 800; margin-bottom: 7px; }
.resp-bar .bar { height: 10px; }

/* plans */
.plan-row { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: calc(100% - 2 * var(--g)); margin: 0 var(--g); padding: 20px; border-radius: 26px; text-align: left; color: #fff; background: radial-gradient(90% 120% at 100% 0%, #3A3A40, transparent 60%), linear-gradient(135deg, #1C1C1E, #0A0A0A); box-shadow: 0 14px 30px rgba(0,0,0,.15); transition: transform .2s var(--ease); }
.plan-row:active { transform: scale(.98); }
.plan-row > .grow { position: relative; }
.plan-row b { display: block; font-size: 26px; letter-spacing: -.5px; margin: 2px 0; }
.plan-row .grow > span:not(.caps) { font-size: 13px; opacity: .65; }
.plan-cta { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 8px 0 14px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; flex-shrink: 0; }
.plan-cta svg { width: 16px; height: 16px; }
.plans-lead { padding: 0 var(--g); color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.plans-scroll { padding-top: 14px; padding-bottom: 18px; }
.plan-card { position: relative; overflow: hidden; flex: 0 0 80%; scroll-snap-align: center; display: flex; flex-direction: column; padding: 20px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.plan-card > *:not(.plan-art) { position: relative; z-index: 1; }
.pc-top { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.plan-card h3 { font-size: 30px; font-weight: 800; letter-spacing: -.6px; margin-top: 14px; line-height: 1.1; }
.plan-blurb { font-size: 13.5px; opacity: .6; margin-top: 4px; }
.plan-price { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-top: 16px; line-height: 1; }
.plan-price small { font-size: 13.5px; font-weight: 600; letter-spacing: 0; opacity: .6; }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.pc-stats div { border-radius: 16px; padding: 10px 12px; background: rgba(127,127,127,.1); }
.pc-stats b { display: block; font-size: 20px; letter-spacing: -.3px; }
.pc-stats span { font-size: 11.5px; opacity: .65; line-height: 1.3; display: block; }
.pc-btn { margin-top: auto; }
.plan-card.t1 { background: linear-gradient(160deg, #FFFFFF, #F1F1F4); }
.plan-card.t2 { background: linear-gradient(160deg, #F6F6F9, #E3E3E8); }
.plan-card.dark { color: #fff; }
.plan-card.t3 { background: linear-gradient(160deg, #3A3A3F, #1C1C1E); }
.plan-card.t4 { background: linear-gradient(160deg, #2C2C2E, #0A0A0A); }
.plan-card.t5 { background: radial-gradient(90% 60% at 100% 0%, #48484F, transparent 60%), linear-gradient(160deg, #1C1C1E, #000); }
.plan-card.dark .pc-stats div { background: rgba(255,255,255,.08); }
.plan-card.dark .status { background: #fff; color: var(--ink); }
.plan-card.current { box-shadow: 0 0 0 3px var(--ink), var(--shadow); }
.plan-card.dark.current { box-shadow: 0 0 0 3px #8E8E93, var(--shadow); }
.plan-card.current .pc-btn:disabled { opacity: .5; }
.plan-compare { margin-top: 4px; padding: 6px 16px; }
.pc-line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.pc-line + .pc-line { border-top: 1px solid var(--line); }
.pc-line svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
/* animated plan art */
/* one icon per plan, same size, spot and motion: a slow float with sparkles */
.plan-art { position: absolute; inset: 0; pointer-events: none; color: currentColor; overflow: hidden; border-radius: inherit; }
.pa-ic { position: absolute; right: 12px; top: 50px; width: 104px; height: 104px; opacity: .16; animation: pa-float 7s ease-in-out infinite; }
.pa-ic svg { width: 100%; height: 100%; }
.pa-tw { position: absolute; width: 14px; height: 14px; opacity: 0; animation: pa-twinkle 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .8s); }
.pa-tw svg { width: 100%; height: 100%; }
.pa-tw:nth-of-type(1) { right: 132px; top: 22px; } .pa-tw:nth-of-type(2) { right: 22px; top: 128px; width: 11px; height: 11px; }
.pa-tw:nth-of-type(3) { right: 118px; top: 104px; width: 10px; height: 10px; } .pa-tw:nth-of-type(4) { right: 16px; top: 12px; width: 12px; height: 12px; }
.plan-row .pa-ic { width: 92px; height: 92px; right: 110px; top: 50%; margin-top: -46px; opacity: .2; }
.plan-row .pa-tw { display: none; }
@keyframes pa-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(6deg); } }
@keyframes pa-twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .35; transform: scale(1.15); } }
.plan-art + * { position: relative; }

/* ---------- sheets ---------- */
.overlay { position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.38); display: flex; flex-direction: column; justify-content: flex-end; animation: fade .15s ease; }
.sheet { background: var(--card); border-radius: 30px 30px 0 0; max-height: 92%; overflow-y: auto; padding: 10px 0 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); animation: up .26s var(--ease); scrollbar-width: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { font-size: 19px; font-weight: 800; text-align: center; padding: 4px 24px 16px; letter-spacing: -.2px; line-height: 1.3; }
.sheet .body { padding: 6px 20px; }
.sheet-pad { padding: 6px 20px; }
.sub-c { text-align: center; color: var(--muted); line-height: 1.5; }
.sheet-item { display: flex; align-items: center; gap: 14px; padding: 10px 20px; width: 100%; font-weight: 800; text-align: left; }
.check { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; flex-shrink: 0; }
.check.on { background: var(--ink); box-shadow: none; color: #fff; }
.check svg { width: 15px; height: 15px; }
.survey-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sheet-q { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin: 14px 0 12px; line-height: 1.3; overflow-wrap: anywhere; }
.opt { display: block; width: 100%; padding: 17px 20px; border-radius: 30px; background: var(--fill-2); font-weight: 800; font-size: 16px; text-align: center; margin-top: 8px; transition: background .2s, color .2s, transform .15s var(--ease); }
.opt:active { transform: scale(.98); }
.opt.on { background: var(--ink); color: #fff; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.scale button { height: 58px; border-radius: 20px; background: var(--fill-2); font-weight: 800; font-size: 19px; display: grid; place-items: center; text-align: center; transition: background .15s, transform .15s var(--ease); }
.scale button:active { transform: scale(.94); }
.scale button.on { background: var(--ink); color: #fff; }
.scale-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 99; display: inline-flex; align-items: center; gap: 10px; background: #1C1C1E; color: #fff; padding: 11px 18px 11px 11px; border-radius: 99px; font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); width: max-content; white-space: normal; line-height: 1.35; border-radius: 22px; animation: pop .22s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.info { padding: 12px 20px; }
.toast .ic { width: 24px; height: 24px; border-radius: 50%; background: #34C759; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.toast .ic svg { width: 14px; height: 14px; }
.toast.err .ic { background: var(--red); }
@keyframes pop { from { transform: translate(-50%, 10px); opacity: 0; } }

/* ---------- signed out ---------- */
.splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.splash img { height: 34px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ob { flex: 1; display: flex; flex-direction: column; padding: 0 24px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); overflow-y: auto; scrollbar-width: none; }
.ob::-webkit-scrollbar { display: none; }
.ob > * { flex-shrink: 0; }
.ob .nav { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.ob .center-nav { justify-content: center; }
.ob-logo { height: 30px; }
.ob h1 { font-size: 29px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.ob .lead { color: var(--muted); font-size: 16px; line-height: 1.55; margin-top: 10px; }
.ob .foot { margin-top: auto; padding-top: 24px; position: sticky; bottom: 0; background: linear-gradient(rgba(242,242,247,0), var(--bg) 22px); display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ob .note { text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 6px; }
.dev-note { margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--card); font-size: 13.5px; display: flex; gap: 8px; align-items: center; color: var(--ink-2); line-height: 1.45; }
.dev-note svg { width: 18px; height: 18px; flex-shrink: 0; }

/* landing: big, centered, balanced */
.landing { justify-content: space-between; padding-top: max(20px, env(safe-area-inset-top)); }
.land-top { display: flex; justify-content: center; padding-top: 16px; }
.land-logo { height: 56px; width: auto; }
.land-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 10px 0 6px; }
.land-mid h1 { font-size: 46px; letter-spacing: -1.2px; line-height: 1.06; max-width: 380px; }
.land-lead { font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 350px; margin-top: 4px; font-weight: 600; }
.land-foot { display: flex; flex-direction: column; gap: 10px; padding-bottom: 34px; }
.orbit { position: relative; width: 100%; max-width: 420px; height: 340px; margin: 14px auto 6px; }
.orbit-ellipse { position: absolute; left: 50%; top: 50%; width: 88%; height: 156px; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px dashed #CFCFD6; }
.sat { position: absolute; left: 50%; top: 50%; width: 92px; height: 120px; will-change: transform; }
.sat-card { width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.14); position: relative; }
.sat-card.media > img, .sat-card.media > video { width: 100%; height: 100%; object-fit: cover; }
.sat-card .art p { font-size: 9px; }
.icon-card { display: grid; place-items: center; background: linear-gradient(160deg, #FFFFFF, #E9E9EE); color: var(--ink); }
.icon-card svg { width: 34px; height: 34px; }
.sat-tag { position: absolute; left: 5px; right: 5px; bottom: 5px; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 99px; padding: 2px 6px 2px 2px; font-size: 9.5px; font-weight: 800; overflow: hidden; white-space: nowrap; }
.sat-tag .logo-av.xs { width: 16px; height: 16px; font-size: 8px; }
.core-wrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20; }
.logo-av.core { width: 132px; height: 132px; font-size: 54px; box-shadow: 0 0 0 6px #fff, 0 22px 48px rgba(0,0,0,.24); }
.logo-av.core.dn { background: #0A0A0A; }
.logo-av.core.dn img { object-fit: contain; }

/* role choice: expands with an animated icon */
.role-opts { margin-top: 28px; }
.opt.role { position: relative; overflow: hidden; background: var(--card); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.opt.role.on { background: var(--ink); padding: 18px 20px 22px; border-radius: 28px; }
.opt-label { display: block; }
.role-more { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; animation: rise .35s var(--ease) both; }
.role-more b { font-size: 15px; }
.role-more small { font-weight: 500; font-size: 13.5px; line-height: 1.45; opacity: .72; max-width: 300px; }
.role-ic { position: relative; width: 96px; height: 96px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; margin: 4px 0 8px; animation: pop-in .45s var(--ease) both; box-shadow: 0 0 0 8px rgba(255,255,255,.08); }
.role-ic > svg { width: 62px; height: 62px; animation: bob 2.4s ease-in-out infinite; }
.role-ic i { position: absolute; width: 24px; height: 24px; color: #fff; animation: role-tw 1.8s ease-in-out infinite; }
.role-ic i:nth-of-type(1) { top: -4px; right: -6px; } .role-ic i:nth-of-type(2) { bottom: 0; left: -6px; width: 18px; height: 18px; animation-delay: .6s; }
@keyframes role-tw { 0%, 100% { opacity: .35; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(15deg); } }
.role-ic i svg { width: 100%; height: 100%; }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } }

/* ================= round 4 ================= */

/* ---------- contrast system: any page/card color (vars from toneVars() in app.js) ---------- */
.tn { color: var(--fg); }
.tn .muted, .tn .sec-h > span, .tn .hint, .tn .sub-h .muted, .tn .rw-tile > span, .tn .about p, .tn .sec-desc, .tn .feat-label, .tn .empty, .tn .small.muted { color: var(--fg2); }
.tn .empty b, .tn .sec-h h2, .tn .sub-h, .tn .rewards-head h2, .tn .rw-tile b, .tn .about h2, .tn .star-count, .tn .name { color: var(--fg); }
.tn .card:not(.profile-card) { background: var(--sf); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-c); }
.tn .stat-pill, .tn .link-chip:not(.dashed), .tn .opt-in:not(.on), .tn .strip-btn:not(.ink), .tn .strip-chip, .tn .pill-btn:not(.dark) { background: var(--chip); color: var(--chip-fg); box-shadow: none; }
.tn .circle-btn:not(.on):not(.glass):not(.glass-dark) { background: var(--chip); color: var(--chip-fg); box-shadow: none; }
.tn .circle-btn.on, .tn .opt-in.on, .tn .strip-btn.ink, .tn .lvl-badge, .tn .survey-cta, .tn .chip.on { background: var(--btn); color: var(--btn-fg); }
.tn .survey-cta .sc-go { background: var(--btn-fg); color: var(--btn); }
.tn .survey-cta .sc-ic { background: color-mix(in srgb, var(--btn-fg) 14%, transparent); }
.tn .chip:not(.on):not(.dashed) { background: var(--chip); color: var(--chip-fg); box-shadow: none; }
.tn .chip.dashed, .tn .link-chip.dashed { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--dash); }
.tn .btn:not(.gray):not(.white) { background: var(--btn); color: var(--btn-fg); }
.tn .btn.gray { background: var(--chip); color: var(--chip-fg); }
.tn .editable, .tn .inline-input { border-bottom-color: var(--dash); }
.tn .editable:focus { border-bottom-color: var(--fg); }
.tn [contenteditable]:empty::before { color: var(--fg3); }
.tn .edit-count, .tn .count { color: var(--fg3); }
.tn .slot-empty { background: var(--sf); box-shadow: inset 0 0 0 1.5px var(--line-c); color: var(--fg2); }
.tn .rw-tile .media { box-shadow: 0 0 0 1px var(--line-c); }
.tn .rewards-head { background: var(--page); }
.dark .logo-av:not(:has(img)) { background: #fff; color: var(--ink); }

/* ---------- earned popup ---------- */
.gain { position: absolute; left: 50%; top: 38%; z-index: 120; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.gain span { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 99px; background: rgba(10,10,10,.88); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.2px; backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0,0,0,.25); animation: gain-in .5s cubic-bezier(.3,1.5,.5,1) both, gain-out .5s ease-in 1.7s forwards; animation-delay: calc(var(--i) * .09s), calc(1.7s + var(--i) * .05s); }
.gain span.lv { background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 16px 40px rgba(0,0,0,.25); }
@keyframes gain-in { from { transform: translateY(16px) scale(.6); opacity: 0; } }
@keyframes gain-out { to { transform: translateY(-26px); opacity: 0; } }

/* ---------- explore: recent searches ---------- */
.search-wrap { z-index: 25; }
.recent-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border-radius: 22px; box-shadow: 0 18px 40px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04); padding: 6px 0 8px; animation: up .18s var(--ease); }
.rd-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 4px; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; }
.rd-head button { font-size: 12.5px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.rd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; font-weight: 600; font-size: 15px; text-align: left; }
.rd-item:hover { background: var(--fill-2); }
.rd-item svg { position: static !important; transform: none !important; width: 16px !important; height: 16px !important; color: var(--muted); flex-shrink: 0; }

/* ---------- leaderboard note ---------- */
.lb-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px var(--g) 0; padding: 14px 16px; border-radius: 20px; background: var(--card); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.lb-note b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.lb-note > svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* ---------- queue clusters ---------- */
.q-hint { padding-top: 0; margin-top: -4px; margin-bottom: 10px; }
.queue { padding: 0 var(--g); display: flex; flex-direction: column; gap: 10px; }
.q-cluster { display: flex; gap: 10px; align-items: stretch; border-radius: 22px; transition: transform .2s var(--ease), opacity .2s; }
.q-date { position: relative; flex: 0 0 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; border-radius: 20px; background: var(--ink); color: #fff; cursor: grab; touch-action: pan-y; }
.qd-blk { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.qd-blk span { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; opacity: .7; }
.qd-blk b { font-size: 24px; letter-spacing: -.5px; margin: 2px 0; }
.q-fill { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.16); }
.q-grip { display: grid; place-items: center; width: 22px; height: 30px; flex-shrink: 0; color: #C7C7CC; cursor: grab; touch-action: none; }
.q-grip svg { width: 16px; height: 16px; }
.q-grip.day { color: rgba(255,255,255,.55); height: 18px; }
.q-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 20px; background: var(--card); transition: box-shadow .15s; }
.q-item { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 2px; border-radius: 15px; background: var(--fill-2); position: relative; transition: opacity .2s, transform .2s var(--ease); }
.q-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.q-open .t { font-weight: 800; font-size: 14px; line-height: 1.3; }
.q-open .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.q-open .ic-tile { width: 42px; height: 42px; border-radius: 12px; background: var(--card); }
.q-item .circle-btn.sm { width: 32px; height: 32px; background: var(--card); }
.q-add { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 14px; font-size: 13px; font-weight: 800; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.q-add svg { width: 15px; height: 15px; }
.q-cluster.blank .q-date { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px #C7C7CC; cursor: default; }
.q-cluster.blank .q-fill { background: var(--fill); }
.q-blank { align-items: center; justify-content: center; flex-direction: row; gap: 8px; min-height: 76px; background: transparent; box-shadow: inset 0 0 0 1.5px #C7C7CC; color: var(--ink-2); font-weight: 800; font-size: 13.5px; text-align: center; padding: 10px 14px; }
.q-blank svg { width: 18px; height: 18px; flex-shrink: 0; }
.q-blank:active, .q-add:active { transform: scale(.98); }
.q-item.dragging, .q-cluster.dragging, .sec-rw.dragging { opacity: .3; }
.q-ghost { position: fixed !important; left: 0; top: 0; z-index: 9999; pointer-events: none; box-shadow: 0 18px 40px rgba(0,0,0,.25); will-change: transform; opacity: .97; }
.q-item.drop-before::before, .q-cluster.drop-before::before { content: ""; position: absolute; left: 6px; right: 6px; top: -5px; height: 3px; border-radius: 3px; background: var(--ink); }
.q-cluster { position: relative; }
.q-cluster.drop-before::before { top: -7px; }
.q-items.drop-end { box-shadow: inset 0 0 0 2px var(--ink); }
.queue.drop-end .q-cluster.blank { box-shadow: 0 -3px 0 var(--ink); }

/* ---------- survey audience ranges ---------- */
.ranges { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.range-top b { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dual { position: relative; height: 30px; margin-top: 4px; }
.dual::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 99px; background: var(--fill); }
.dual-fill { position: absolute; top: 50%; height: 6px; margin-top: -3px; left: var(--lo); right: calc(100% - var(--hi)); border-radius: 99px; background: var(--ink); }
.dual input { position: absolute; inset: 0; width: 100%; height: 30px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input::-webkit-slider-runnable-track { background: none; height: 30px; }
.dual input::-moz-range-track { background: none; }
.dual input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 8px rgba(0,0,0,.2); cursor: grab; }
.dual input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 8px rgba(0,0,0,.2); cursor: grab; }
.dual input:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }

/* ---------- color sheet ---------- */
.overlay:has(.cs-preview) { background: rgba(0,0,0,.1); }
.cs-preview { height: 84px; border-radius: 22px; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: background .1s; }
.cs-preview b { font-size: 17px; letter-spacing: .5px; }
.cs-preview span { font-size: 12.5px; opacity: .7; font-weight: 600; }
.cs-swatches { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; margin-top: 16px; }
.cs-swatches .swatch { width: 100%; height: auto; aspect-ratio: 1; }
.cs-sliders { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.cs-row { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.cs-row span { width: 40px; flex-shrink: 0; }
.cs-range { flex: 1; -webkit-appearance: none; appearance: none; height: 14px; border-radius: 99px; outline: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); margin: 0; }
.cs-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 8px rgba(0,0,0,.25); cursor: grab; }
.cs-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 8px rgba(0,0,0,.25); }

/* ---------- rewards: featured carousel + section buttons ---------- */
.feat-label { display: flex; align-items: center; gap: 6px; padding: 6px calc(var(--g) + 2px) 0; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.feat-label svg { width: 13px; height: 13px; }
.carousel.releases { margin-top: 10px; }
.carousel.releases .car-prev, .carousel.releases .car-next { width: 38px; height: 38px; }
.carousel.releases .car-prev svg, .carousel.releases .car-next svg { width: 18px; height: 18px; }
.sec-tabs { padding-top: 18px; padding-bottom: 2px; }
.sec-tabs .chip svg { width: 12px; height: 12px; }
.sec-desc { padding: 10px calc(var(--g) + 2px) 12px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.sec-desc + .rw-grid, .sec-tabs + .rw-grid { margin-top: 2px; }
.sec-tabs + .rw-grid { margin-top: 14px; }

/* ---------- manage sections ---------- */
.sec-card { margin: 0 var(--g) 10px; padding: 14px; border-radius: 22px; background: var(--card); transition: box-shadow .15s, transform .15s var(--ease); }
.sec-card.drop-hover { box-shadow: 0 0 0 2.5px var(--ink); transform: scale(1.01); }
.sec-card.loose { background: transparent; box-shadow: inset 0 0 0 1.5px #C7C7CC; }
.sec-card.loose.drop-hover { box-shadow: inset 0 0 0 2.5px var(--ink); }
.sec-row { display: flex; align-items: center; gap: 10px; }
.sec-row b { font-size: 16px; }
.sec-star { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--muted); flex-shrink: 0; transition: transform .2s var(--ease), background .2s; }
.sec-star svg { width: 18px; height: 18px; }
.sec-star.on { background: var(--ink); color: #fff; transform: rotate(-12deg) scale(1.05); }
.sec-name { flex: 1; min-width: 0; font-weight: 800; font-size: 16px; }
.sec-desc-in { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.sec-rws { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding-bottom: 2px; }
.sec-rws::-webkit-scrollbar { display: none; }
.sec-rw { flex: 0 0 76px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; cursor: grab; user-select: none; touch-action: pan-x; }
.sec-rw .media { width: 76px; height: 76px; border-radius: 14px; }
.sec-rw .art .art-ic { width: 40%; height: 40%; }
.sec-add { flex: 0 0 76px; height: 76px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: inset 0 0 0 1.5px #C7C7CC; font-size: 11px; font-weight: 800; color: var(--ink-2); }
.sec-add svg { width: 18px; height: 18px; }

/* ---------- bug report ---------- */
.bug-shots { display: flex; gap: 10px; flex-wrap: wrap; }
.bug-shot { position: relative; width: 92px; height: 92px; border-radius: 18px; overflow: hidden; background: var(--fill); }
.bug-shot img { width: 100%; height: 100%; object-fit: cover; }
.bug-shot button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.bug-shot button svg { width: 13px; height: 13px; }
.bug-shot.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.bug-shot.add svg { width: 22px; height: 22px; }

/* ---------- misc ---------- */
.status.undo { cursor: pointer; }
.status.undo:hover { background: var(--ink); color: #fff; }
.hero.media > video { width: 100%; height: 100%; object-fit: cover; }
.color-row { margin-top: 2px; }
/* white cards inside colored pages keep their own dark-on-white colors */
.tn .profile-card, .tn .sticky-bar .mini, .tn .back-pill { color: var(--ink); }
.tn .profile-card .muted { color: var(--muted); }
.tn .profile-card .editable { border-bottom-color: #B8B8C0; }
.tn .profile-card .editable:focus { border-bottom-color: var(--ink); }
.tn .profile-card [contenteditable]:empty::before { color: var(--muted); }

/* ================= round 5 ================= */

/* text never touches its box: small add-buttons get real padding and line-height */
.sec-add, .q-add, .bug-shot.add, .slot-empty.add, .add-slide { padding: 10px; line-height: 1.3; text-align: center; }
.q-add span, .sec-add span { line-height: 1.3; }

/* ---------- custom calendar (all date pickers) ---------- */
.pick-cal { margin-top: 14px; padding: 12px 10px 10px; border-radius: 22px; background: var(--fill-2); }
.pc-top { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
.pc-top b { font-size: 16px; letter-spacing: -.2px; }
.pc-top .circle-btn.sm { background: var(--card); }
.pc-wk, .pc-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.pc-wk span { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0 6px; }
.pc-grid { row-gap: 4px; }
.pd { position: relative; height: 40px; display: grid; place-items: center; font-weight: 700; font-size: 14px; line-height: 1.3; border-radius: 50%; margin: 0 auto; width: 40px; transition: background .15s, color .15s, transform .15s var(--ease); }
.pd:hover:not(:disabled):not(.on) { background: var(--card); }
.pd:active:not(:disabled) { transform: scale(.9); }
.pd:disabled { color: #C7C7CC; cursor: default; }
.pd.now:not(.on) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pd.on { background: var(--ink); color: #fff; }
.pd.mid { background: rgba(10,10,10,.08); border-radius: 0; width: 100%; }
.pd.rs, .pd.re { width: 40px; }
.date-type { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 6px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); margin-top: 10px; }
.sheet .date-type { background: var(--fill-2); box-shadow: none; }
.date-type > svg { width: 20px; height: 20px; margin-left: 10px; flex-shrink: 0; }
.dt-cal { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--fill); flex-shrink: 0; }
.dt-cal svg { width: 19px; height: 19px; }
.dt-in { flex: 1; min-width: 0; height: 40px; border: 0; outline: none; background: transparent; font-size: 16px; font-weight: 800; letter-spacing: .5px; line-height: 1.3; }
.dt-day { font-size: 13px; font-weight: 700; color: var(--muted); padding-right: 8px; white-space: nowrap; line-height: 1.3; }
.range-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.rs-box { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 16px; background: var(--fill-2); text-align: left; line-height: 1.3; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s; }
.rs-box span { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.rs-box b { font-size: 14.5px; }
.rs-box.on { box-shadow: inset 0 0 0 2px var(--ink); }
.ed-date { width: 100%; text-align: left; color: #fff; }
.ed-when { flex: 1; min-width: 0; line-height: 1.35; }

/* ---------- survey audience: min / max boxes with Any ---------- */
.range + .range { padding-top: 14px; border-top: 1px solid var(--line); }
.rb-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; }
.rb-side { flex: 1; min-width: 0; }
.rb-lbl { display: block; font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 5px; letter-spacing: .3px; }
.rb-box { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 5px 0 14px; border-radius: 14px; background: var(--fill-2); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s; }
.rb-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.rb-in { flex: 1; min-width: 0; height: 40px; border: 0; outline: none; background: transparent; font-size: 16px; font-weight: 800; line-height: 1.3; }
.rb-in::placeholder { color: var(--muted); font-weight: 700; }
.rb-any { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); background: var(--card); line-height: 1.3; flex-shrink: 0; }
.rb-any.on { background: var(--ink); color: #fff; }
.rb-dash { padding-bottom: 12px; color: var(--muted); font-weight: 800; }

/* ---------- survey banner ---------- */
.s-banner { position: relative; width: 100%; aspect-ratio: 3 / 1; border-radius: 18px; overflow: hidden; }
.s-banner.add { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 800; font-size: 13.5px; color: var(--ink-2); line-height: 1.3; padding: 10px; }
.s-banner.add svg { width: 20px; height: 20px; }
.sheet-banner { margin-bottom: 14px; }
.s-thumb { width: 66px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.s-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sent-cell { align-items: flex-start; padding: 16px 18px; }
.sent-cell .s-thumb, .sent-cell .ic-tile { margin-top: 2px; }

/* ---------- queue: repost-held slots + archive ---------- */
.q-repeat { margin: 0 var(--g) 12px; padding: 12px 14px; border-radius: 20px; background: var(--ink); color: #fff; }
.q-repeat-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.35; }
.q-repeat-h svg { width: 16px; height: 16px; }
.q-repeat-h span { font-size: 12.5px; opacity: .65; margin-left: auto; }
.q-repeat-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; }
.q-rp { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 14px; background: rgba(255,255,255,.1); max-width: 220px; flex-shrink: 0; font-size: 13px; font-weight: 700; }
.q-held { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 14px; background: repeating-linear-gradient(135deg, #F3F3F6 0 8px, #EAEAEF 8px 16px); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.35; }
.q-held svg { width: 15px; height: 15px; flex-shrink: 0; }
.q-held span { flex: 1; min-width: 0; }
.q-held b { font-size: 10.5px; padding: 3px 8px; border-radius: 99px; background: var(--ink); color: #fff; letter-spacing: .3px; }
.q-blank-wrap { background: transparent; box-shadow: inset 0 0 0 1.5px #C7C7CC; }
.q-blank { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; border-radius: 14px; padding: 10px 14px; color: var(--ink-2); font-weight: 800; font-size: 13.5px; line-height: 1.35; text-align: center; }
.q-blank svg { width: 18px; height: 18px; flex-shrink: 0; }
.q-arch { margin: 18px var(--g) 0; padding: 14px; border-radius: 22px; background: transparent; box-shadow: inset 0 0 0 1.5px #D1D1D6; }
.q-arch-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; line-height: 1.35; padding: 0 2px; }
.q-arch-h span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.q-arch-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.q-item.arch { background: var(--card); touch-action: pan-y; }

/* ---------- reward sections ---------- */
.sec-list { display: flex; flex-direction: column; }
.sec-grip { width: 24px; height: 36px; color: #AEAEB2; touch-action: none; }
.sec-card.starred { box-shadow: 0 0 0 2px var(--ink); }
.sec-card.drop-before { box-shadow: 0 -4px 0 var(--ink); }
.sec-card.drop-after { box-shadow: 0 4px 0 var(--ink); }
.sec-card.dragging { opacity: .35; }
.feat-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.feat-note svg { width: 13px; height: 13px; flex-shrink: 0; }
/* tiles wrap onto new rows instead of running off the card */
.sec-rws { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px 10px; overflow: visible; margin-top: 12px; }
.sec-rw { flex: none; min-width: 0; font-size: 11.5px; line-height: 1.35; }
.sec-rw .media { width: 100%; height: auto; aspect-ratio: 1; }
.sec-rw.feat .media { box-shadow: 0 0 0 2.5px var(--ink); }
.feat-n { position: absolute; top: 5px; left: 5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.sec-rw.drop-left .media { box-shadow: -4px 0 0 var(--ink); }
.sec-add { flex: none; width: 100%; height: auto; aspect-ratio: 1; gap: 6px; font-size: 12px; }

/* ---------- bug report tokens ---------- */
.tokens { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--card); line-height: 1.4; }
.tokens b { display: block; font-size: 14.5px; }
.tokens span:last-child { font-size: 12.5px; color: var(--muted); }
.tokens.out { box-shadow: inset 0 0 0 1.5px var(--red); }
.tk-dots { display: flex; gap: 5px; flex-shrink: 0; }
.tk-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.tk-dots i.on { background: var(--ink); }

/* ---------- calendar brand filter ---------- */
.cal-filter { padding-bottom: 12px; }
.cal-filter .chip .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- viewer: star balance in the top row ---------- */
.v-head .who { flex: 0 1 auto; }
.v-stars { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(20,20,22,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; font-weight: 800; white-space: nowrap; line-height: 1.3; margin-left: auto; flex-shrink: 0; }
.v-head .date-chip.v { margin-left: 0; }
.lt-top .v-stars { background: rgba(255,255,255,.75); color: var(--ink); }

/* ---------- leaderboard #1 message ---------- */
.lb-speech { position: relative; display: inline-block; max-width: 100%; margin-top: 14px; padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; animation: speech-pop .55s cubic-bezier(.3,1.5,.5,1) both .2s; }
.lb-speech.sm { margin-top: 2px; padding: 6px 10px; font-size: 11.5px; border-radius: 12px 12px 12px 3px; background: var(--ink); color: #fff; }
@keyframes speech-pop { from { transform: scale(.6) translateY(8px); opacity: 0; transform-origin: bottom left; } }
.lb-preview { display: flex; justify-content: center; padding: 18px; margin: 14px 0; border-radius: 20px; background: var(--ink); }
.lb-preview .lb-speech { margin: 0; }
.sec-h .soft-pill { height: 34px; padding: 0 12px; font-size: 12.5px; background: var(--card); box-shadow: var(--shadow); }
.sec-h .soft-pill svg { width: 14px; height: 14px; }

/* ================= round 6 ================= */

/* date chip: text always stays inside its backing (it used to be max-content wide and spill out) */
.date-chip b { width: auto; max-width: 100%; }
.date-chip.v { flex: 0 1 auto; min-width: 0; max-width: 48%; align-items: flex-end; }
.date-chip.v b, .date-chip.v span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-head { min-width: 0; }
.v-head .who { min-width: 0; flex: 0 1 auto; }
.who-txt b { max-width: 100%; }

/* repost toggle: thicker arrows when it's on */
.slot .repost.on svg { stroke-width: 2.8; width: 16px; height: 16px; }

/* queue slots: numbered, the reposted slot lights up in place on every day */
.q-sn { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.q-item { padding-left: 8px; }
.q-item.over { opacity: .55; box-shadow: inset 0 0 0 1.5px var(--red); }
.q-item.over .q-sn { background: var(--red); color: #fff; box-shadow: none; }
.q-slot { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 8px; border-radius: 15px; }
.q-slot.held { background: repeating-linear-gradient(135deg, rgba(10,10,10,.06) 0 8px, rgba(10,10,10,.02) 8px 16px); box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.q-slot.held .q-sn { background: var(--ink); color: #fff; box-shadow: none; }
.q-slot.held > svg { width: 18px; height: 18px; stroke-width: 2.4; }
.q-slot.empty { min-height: 40px; box-shadow: inset 0 0 0 1.5px var(--line); }
.thumb.xs { width: 30px; height: 38px; border-radius: 8px; margin-left: auto; opacity: .85; }
.q-add { justify-content: flex-start; gap: 8px; padding: 8px 12px 8px 8px; }
.q-add > svg { width: 15px; height: 15px; }

/* "Every post": never-posted ones look a little quieter */
.post-metric.unpub { opacity: .78; box-shadow: inset 0 0 0 1.5px #C7C7CC; }
.post-metric.unpub > img, .post-metric.unpub > video, .post-metric.unpub .art { filter: saturate(.6); }
.live-dot.un { background: rgba(255,255,255,.9); color: var(--ink-2); font-weight: 700; }
.cell.unpub .t { color: var(--ink-2); }
.cell.arch { cursor: grab; }
.cell.arch > .q-grip { width: 18px; margin-left: -6px; }

/* Explore: posts live in today's posts right now get a thin ring */
.d-tile.is-live { box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 0 0 1.5px var(--ink); }

/* liked heart on small tiles, brand tag on saved tiles */
.liked-mark { position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.liked-mark svg { width: 12px; height: 12px; }
.media.tile .by { position: absolute; left: 5px; bottom: 5px; right: 32px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 36px); width: fit-content; padding: 2px 8px 2px 2px; border-radius: 99px; background: rgba(10,10,10,.6); color: #fff; backdrop-filter: blur(8px); font-size: 10.5px; font-weight: 800; line-height: 1.35; }
.media.tile .by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media.tile .by .logo-av { width: 18px; height: 18px; font-size: 8px; box-shadow: 0 0 0 1px #fff; }
.media.tile .badge + .liked-mark, .d-tile .liked-mark { bottom: 6px; }

/* viewer: stars + credits with this brand */
.v-stars { gap: 0; padding: 0 12px; }
.v-stars i { width: 1px; height: 14px; background: currentColor; opacity: .3; margin: 0 8px; }
.v-stars small { font-size: 11px; font-weight: 700; opacity: .75; margin-left: 4px; }

/* survey audience chips */
.crit-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.crit-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px 0 7px; border-radius: 99px; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; font-weight: 700; color: var(--ink-2); line-height: 1.3; white-space: nowrap; }
.crit-chip svg { width: 12px; height: 12px; flex-shrink: 0; }
.crit-chip b { color: var(--ink); font-weight: 800; }
.crit-chip.all { color: var(--muted); }
.q-item .crit-chips { margin-top: 3px; }
.q-open .s .crit-chip { height: 22px; font-size: 10.5px; }

/* survey form */
.rb-box.err { box-shadow: inset 0 0 0 2px var(--red); }
.form-err { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--red); font-size: 13px; font-weight: 700; line-height: 1.4; }
.form-err svg { width: 15px; height: 15px; flex-shrink: 0; }
.segmented button { line-height: 1.3; padding: 0 6px; }

/* calendar: full days greyed out */
.pd.full { color: #C7C7CC; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(0,0,0,.05) 4px 8px); text-decoration: line-through; }
.pc-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.pc-legend i { width: 14px; height: 14px; border-radius: 50%; background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(0,0,0,.12) 3px 6px); box-shadow: inset 0 0 0 1px var(--line); }

/* "new or existing" pickers (today's posts, surveys) */
.pick-new { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 20px; background: var(--ink); color: #fff; text-align: left; line-height: 1.35; }
.pick-new > svg:first-child { width: 22px; height: 22px; flex-shrink: 0; }
.pick-new span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pick-new small { font-size: 12.5px; opacity: .65; }
.pick-new .chev { color: rgba(255,255,255,.6); }
.sm-pill { height: 30px; padding: 0 12px; font-size: 12px; }
.survey-slot { display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); margin: 12px 12px 0; padding: 12px 14px; border-radius: 20px; box-shadow: inset 0 0 0 1.5px #C7C7CC; color: var(--ink-2); text-align: left; line-height: 1.35; }
.survey-slot > svg { width: 20px; height: 20px; flex-shrink: 0; }
.survey-slot span { display: flex; flex-direction: column; }
.survey-slot b { color: var(--ink); }
.survey-slot small { font-size: 12px; color: var(--muted); }
.tn .survey-slot { box-shadow: inset 0 0 0 1.5px var(--dash); color: var(--fg2); }
.tn .survey-slot b { color: var(--fg); }
.tn .survey-slot small { color: var(--fg2); }

/* profile */
.field-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.field-note svg { width: 14px; height: 14px; flex-shrink: 0; }
.input-prefix.locked .input { background: var(--fill-2); color: var(--muted); }

/* admin tools */
.admin { display: flex; flex-direction: column; gap: 4px; }
.adm-amt { display: grid; grid-template-columns: auto 110px 1fr; align-items: center; gap: 10px; }
.adm-amt label { font-weight: 800; font-size: 13.5px; }
.adm-amt .input { height: 44px; background: var(--fill-2); text-align: center; font-weight: 800; }
.adm-h { margin-top: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.adm-btn { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 14px; background: var(--fill-2); font-size: 12.5px; font-weight: 800; line-height: 1.3; text-align: left; }
.adm-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.adm-btn:active { transform: scale(.97); }
.adm-brands { margin-top: 8px; }
/* big headings: Garet's tall letters need a taller line box when the text can be cut off */
.page-head h1 { line-height: 1.32; padding-block: 2px; }
/* tiny thumbnails of text-only posts: show the gray card and a text mark, never squeezed words */
.thumb .art p, .thumb.xs .art p, .q-rp .art p { display: none; }
.thumb .art::after { content: "Aa"; font-weight: 800; font-size: 13px; color: var(--muted); }
.thumb.xs .art::after { font-size: 10px; }
/* date chips: a real width cap (not a % of a content-sized box) and enough line height for Garet */
.date-chip.v { max-width: 172px; }
.v-head .date-btn { min-width: 0; flex: 0 1 auto; display: flex; justify-content: flex-end; }
.date-chip b, .date-chip span { line-height: 1.5; }
.date-chip.sm { padding: 3px 7px 3px; }
/* letter avatars (SVG, centered by cap height) */
.logo-av .initial, .av .initial { display: block; width: 100% !important; height: 100% !important; overflow: visible; }
.initial text { font-family: var(--font); font-weight: 800; fill: currentColor; }
/* greeting card: the logo shrinks before the star balance can be pushed out of the card */
.hero-card .spread { min-width: 0; }
.hero-card .hero-logo { height: auto; max-height: 50px; width: auto; max-width: calc(100% - 100px); min-width: 0; flex-shrink: 1; object-fit: contain; object-position: left center; }
.hero-card .spread > .stat-pill { flex-shrink: 0; }
/* text-only posts: room above and below the clamped lines so letters aren't shaved */
.art p { line-height: 1.45; padding-block: 3px; }

/* ================= round 7 ================= */

/* "Add date": a longer pill, text set in from the edges */
.date-chip.ghost { padding: 0 22px 0 18px; min-width: 132px; gap: 9px; justify-content: center; }

/* events that already happened: crossed out and dimmed */
.date-chip.past { background: rgba(60,60,64,.72); color: rgba(255,255,255,.62); }
.date-chip.past b { text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* sheet pickers use the same tile as Create post in Marketing */
.mk-tile.pick-hero { width: 100%; min-height: 150px; }
.sheet .mk-tile.pick-hero { box-shadow: 0 10px 24px rgba(0,0,0,.16); }

/* today's posts: in their first 5 minutes they aren't public yet */
.slot.pending > img, .slot.pending > video, .slot.pending .art { opacity: .55; }
.lock-left { padding: 3px 8px; font-weight: 700; white-space: nowrap; line-height: 1.35; }
.lock-left b { font-weight: 800; font-variant-numeric: tabular-nums; }

/* filters + sort */
.filter-bar { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.filter-bar .chips { padding-bottom: 2px; }
.sort-chips { align-items: center; }
.sort-chips .caps { margin-right: 2px; flex-shrink: 0; }
.chip.sm { line-height: 1.3; }

/* email opt-in confirm + handle warning */
.nl-ic { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.nl-ic svg { width: 28px; height: 28px; }
.warn-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--fill-2); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.warn-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.warn-note b { color: var(--ink); }

/* ================= round 8 ================= */

/* vector wordmark */
.logo-svg { display: block; width: auto; overflow: visible; color: var(--ink); shape-rendering: geometricPrecision; text-rendering: geometricPrecision; }
.hero-card .logo-svg { color: #fff; height: 50px; max-width: calc(100% - 100px); flex-shrink: 1; min-width: 0; }
.land-logo.logo-svg { height: 58px; }
.ob-logo.logo-svg { height: 32px; }
.splash-logo.logo-svg { height: 40px; }
@media (prefers-reduced-motion: reduce) { .logo-sheen { display: none; } }

/* "Live in 4:48": one compact line at the bottom of the slot (stat-tile styles used to blow up the time) */
.slot .lock-left { left: 6px; right: auto; bottom: 7px; top: auto; display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 9px; border-radius: 99px; font-size: 10.5px; line-height: 1.3; }
.slot .lock-left b { display: inline; font-size: 11.5px; margin: 0; letter-spacing: 0; line-height: 1.3; }

/* queue: the scheduled post a daily repost will bump is outlined, nothing gets rearranged */
.q-affected { display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--ink); background: repeating-linear-gradient(135deg, rgba(10,10,10,.05) 0 8px, transparent 8px 16px); }
.q-affected .q-item { background: var(--card); }
.q-aff-note { display: flex; align-items: center; gap: 6px; padding: 2px 8px 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.q-aff-note svg { width: 13px; height: 13px; flex-shrink: 0; stroke-width: 2.2; }

/* password checklist */
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pw-rule { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 8px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.pw-rule svg { width: 12px; height: 12px; stroke-width: 2.6; }
.pw-rule.ok { background: var(--ink); color: #fff; box-shadow: none; }

/* survey on the card during its first 5 minutes */
.survey-cta.pending { animation: none; background: var(--ink-2); }
.survey-cta.pending::before, .survey-cta.pending::after { display: none; }
.survey-cta.pending b span { font-variant-numeric: tabular-nums; }
.sc-x { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); flex-shrink: 0; }
.sc-x svg { width: 16px; height: 16px; }

/* logo artwork with faint drifting stars behind the letters */
.logo-wrap { position: relative; display: inline-block; line-height: 0; flex-shrink: 1; min-width: 0; max-height: none !important; }
.logo-wrap .logo-img { position: relative; z-index: 1; display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.logo-stars { inset: -10px -14px; overflow: visible; z-index: 0; border-radius: 0; }
.logo-stars i { width: 13px; height: 13px; bottom: 0; left: calc(4% + var(--i) * 22%); animation: logo-drift 6.5s ease-in-out infinite; animation-delay: calc(var(--i) * 1.3s); color: currentColor; }
.logo-stars i:nth-child(even) { width: 10px; height: 10px; }
@keyframes logo-drift { 0% { transform: translateY(0) rotate(0); opacity: 0; } 25% { opacity: .28; } 75% { opacity: .16; } 100% { transform: translateY(-58px) rotate(50deg); opacity: 0; } }
.hero-card .logo-wrap.hero-logo { height: 46px; width: auto; max-width: calc(100% - 100px); color: #fff; }
.land-logo.logo-wrap { height: 54px; color: var(--ink); }
.ob-logo.logo-wrap { height: 32px; color: var(--ink); }
.splash-logo.logo-wrap { height: 40px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .logo-stars { display: none; } }

/* vector logo: crisp outlines, stars drifting inside the letters */
.logo-svg .logo-ink { fill: currentColor; }
.logo-svg .logo-stars { fill: #FFFFFF; }
.logo-svg.on-dark .logo-stars { fill: #0A0A0A; }
.logo-svg .ls { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ls-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
@keyframes ls-float {
  0% { transform: translateY(14px) scale(.6) rotate(0); opacity: 0; }
  30% { opacity: .55; }
  70% { opacity: .4; }
  100% { transform: translateY(-16px) scale(1) rotate(35deg); opacity: 0; }
}
.hero-card .logo-svg { height: 46px; }
.land-logo.logo-svg { height: 54px; }

/* logo stars: solid white in the black logo, solid black in the white logo on the greeting card */
.logo-svg .logo-stars { fill: #FFFFFF; }
.logo-svg.on-dark .logo-stars { fill: #000000; }
@keyframes ls-float {
  0% { transform: translateY(14px) scale(.6) rotate(0); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(-16px) scale(1) rotate(35deg); opacity: 0; }
}

/* "Reduce motion" (phones): logo stars still show, fading in place instead of drifting */
@keyframes ls-fade { 0%, 100% { opacity: 0; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }

/* sign-up: room between the password checklist and "Confirm password" */
.pw-rules { margin-bottom: 4px; }
.pw-rules + .field { margin-top: 20px; }

/* ================= computers: Instagram-style layout ================= */
/* phones: the sidebar extras are hidden and the Home wrappers don't affect layout */
.side-brand, .tab-label { display: none; }
.home-grid, .home-side, .home-main { display: contents; }

@media (min-width: 900px) and (orientation: landscape) {
  body { background: var(--bg); }
  .screen { max-width: none; height: 100dvh; box-shadow: none; padding-left: 76px; }

  /* left sidebar: logo, then the tabs (icons; labels on wide screens) */
  .tabbar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: 76px; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px; padding: 20px 12px; border-top: 0; border-right: 1px solid var(--line); background: var(--card); backdrop-filter: none; }
  .tabbar button { flex: 0 0 auto; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 13px; color: var(--ink); transition: background .15s; }
  .tabbar button:hover { background: var(--fill-2); }
  .tabbar button.on { background: var(--fill); }
  .tabbar button.on::after { display: none; }
  .side-brand { display: flex; align-items: center; justify-content: center; height: 56px; margin-bottom: 22px; }
  .side-mark { width: 36px; height: 36px; border-radius: 11px; }
  .tabbar .side-logo { display: none; }
  .tab-label { font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
  .tabbar button.on .tab-label { font-weight: 800; }

  /* centered column, wider for grids and two-column Home */
  .page-head, .content { --col: 640px; }
  .content.wide, .screen:has(.content.wide) .page-head { --col: 980px; }
  .page-head, .content { padding-left: max(24px, calc((100% - var(--col)) / 2)); padding-right: max(24px, calc((100% - var(--col)) / 2)); }
  .page-head { padding-top: 28px; }

  /* Home: brands on the left, greeting + leaderboard in a right-hand column */
  .home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "main side"; gap: 32px; align-items: start; padding-top: 18px; }
  .home-main { display: block; grid-area: main; min-width: 0; }
  .home-side { display: block; grid-area: side; min-width: 0; position: sticky; top: 18px; --g: 0px; }
  .home-side .hero-card { margin-top: 0; }
  .home-main > .sec-h:first-child { padding-top: 6px; }
  .home-main .brand-card { margin-bottom: 16px; }

  /* posts open as a centered phone-shaped player over a dark backdrop */
  .viewer { left: 50%; right: auto; top: 18px; bottom: 18px; width: min(470px, calc((100dvh - 36px) * 9 / 16)); transform: translateX(-50%); border-radius: 20px; overflow: hidden; z-index: 70; box-shadow: 0 0 0 100vmax rgba(8,8,10,.84); }
  .viewer.editor { width: min(500px, calc((100dvh - 36px) * 9 / 16)); }

  /* sheets become centered dialogs */
  .overlay { z-index: 80; justify-content: center; align-items: center; padding: 24px; }
  .sheet { width: min(480px, 100%); max-height: 88dvh; border-radius: 26px; }
  .sheet .grab { display: none; }

  /* signed-out screens stay a comfortable column */
  .screen > .ob, .screen > .splash { width: 100%; max-width: 480px; align-self: center; }
  .screen:has(> .ob), .screen:has(> .splash) { padding-left: 0; }

  .toast { bottom: 32px; }
}

/* wide computers: sidebar with the full logo and labels, like Instagram's expanded nav */
@media (min-width: 1264px) and (orientation: landscape) {
  .screen { padding-left: 244px; }
  .tabbar { width: 244px; padding: 26px 14px; }
  .tabbar button { justify-content: flex-start; }
  .tab-label { display: inline; }
  .side-brand { justify-content: flex-start; padding-left: 12px; }
  .side-mark { display: none; }
  .tabbar .side-logo { display: block; height: 30px !important; width: auto !important; }
}
@media (min-width: 900px) and (orientation: landscape) {
  /* side-scroll arrows sit just outside the row instead of over the first item */
  .hs-wrap .hs-arrow.l { left: -14px; }
  .hs-wrap .hs-arrow.r { right: -14px; }
}

/* Shopify link code */
.shop-code { margin: 18px 0 8px; padding: 18px; border-radius: 18px; background: var(--fill-2); text-align: center; font-family: var(--font); font-weight: 800; font-size: 30px; letter-spacing: 4px; color: var(--ink); user-select: all; }
.shop-code.expired { font-size: 20px; letter-spacing: 0; color: var(--ink-3, var(--ink-2)); user-select: none; }

/* Store discount editor (reward editor) */
.disc-card .chips { padding: 0; }
.disc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.disc-row.col { flex-direction: column; align-items: stretch; }
.disc-num { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ink-2); }
.disc-num .inline-input.num { width: 84px; height: 38px; padding: 0 10px; border-radius: 12px; background: var(--fill-2); text-align: center; font-weight: 800; color: var(--ink); }
.disc-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.disc-picks .chip button { display: inline-grid; place-items: center; margin-right: -4px; }
.disc-picks .chip button svg { width: 14px; height: 14px; }
.disc-check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); text-align: left; }
.disc-check svg { width: 22px; height: 22px; padding: 3px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--line); color: transparent; flex-shrink: 0; }
.disc-check.on svg { background: var(--ink); color: #fff; box-shadow: none; }
.disc-summary { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--fill-2); font-weight: 800; font-size: 13.5px; line-height: 1.4; }
.disc-summary.warn { color: #B42318; background: #FEF3F2; }
/* product picker sheet */
.pick-list { max-height: 52vh; overflow-y: auto; }
.pick-wait { display: grid; place-items: center; padding: 28px 0; }
.pick-thumb { width: 44px; height: 44px; border-radius: 12px; background: var(--fill-2); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-thumb svg { width: 20px; height: 20px; color: var(--ink-2); }
/* fans: what the code does, and whether the store accepts it yet */
.coupon-what { margin-top: 4px; font-weight: 700; color: var(--ink-2); }
.coupon-state { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); flex-wrap: wrap; }
.coupon-state svg { width: 15px; height: 15px; }
.coupon-state.ok { color: #067647; }
.coupon-state.bad { color: #B42318; }
.coupon-state .chip { height: 26px; }
.rw-deal { display: flex; gap: 12px; align-items: center; }
.rw-deal > svg { width: 24px; height: 24px; flex-shrink: 0; }
.rw-deal b { display: block; margin-top: 2px; line-height: 1.35; }

/* Loved by DROPNAUT: earned by a post */
.rail .love-btn.on .rb { background: #FFFFFF; color: #0A0A0A; }
.loved-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.92); color: #0A0A0A; font-size: 11.5px; font-weight: 800; letter-spacing: .2px; }
.loved-badge svg { width: 13px; height: 13px; color: #E0245E; }
.lb-loved { gap: 10px; padding-right: 12px; }
.lb-loved .lb-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.lb-post { position: relative; width: 46px; height: 58px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--fill-2); }
.lb-post img, .lb-post video, .lb-card-post img, .lb-card-post video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-post > span { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; }
.lb-post > span svg { width: 11px; height: 11px; color: #E0245E; }
.lb-card-post { width: 100%; height: 64px; border-radius: 12px; overflow: hidden; background: var(--fill-2); }
.lb-post .art { padding: 6px; }
.lb-post .art p { font-size: 7px; -webkit-line-clamp: 4; }
.lb-card-post { position: relative; }
.lb-card-post .art p { font-size: 10px; -webkit-line-clamp: 2; }

/* logo stars fall through the whole height of their letter on an endless loop. Each star's
   path (--from → --to, logo units) runs from above the letter to below it, so it enters and
   leaves hidden by the letter clip and never visibly restarts. JS pins every star to the
   page clock, so redrawing the logo (switching tabs) doesn't send them back to the top. */
.logo-svg .ls { opacity: 1; transform-box: view-box; transform-origin: 0 0; will-change: transform;
  animation: ls-fall var(--dur, 7s) linear infinite; animation-delay: calc(var(--i) * -0.73s); }
@keyframes ls-fall {
  from { transform: translateY(var(--from)); }
  to   { transform: translateY(var(--to)); }
}

/* Loved card on Home: the post that earned the spot, tap to watch */
.loved-card { cursor: pointer; }
.loved-card .lc-who { gap: 8px; width: 100%; min-width: 0; }
.loved-card .lc-who b { font-size: 14px; }
.lc-post { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 150px; border-radius: 14px; overflow: hidden; background: var(--fill-2); }
.lc-post img, .lc-post video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-post .art p { font-size: 11px; -webkit-line-clamp: 4; }
.lc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.lc-play svg { width: 15px; height: 15px; margin-left: 2px; color: #0A0A0A; }

/* Home: star a brand, search and sort the list */
.star-btn { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--strip-chip, rgba(0,0,0,.06)); color: currentColor; flex-shrink: 0; transition: transform .15s var(--ease); }
.star-btn svg { width: 17px; height: 17px; }
.star-btn.on { color: #F5B301; }
.star-btn:active { transform: scale(.88); }
.home-search { margin: 0 0 12px; }
.home-search .searchbar { margin: 0; }
.home-count { margin: -4px 4px 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.circle-btn.on { background: var(--ink); color: #fff; }
.sheet-chips { padding: 0; margin-top: 8px; }

/* Marketing › Rewards */
.rw-view-chips { margin: 14px 0 2px; }
.rw-row { gap: 10px; padding-right: 12px; }
.rw-row-main { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.rw-thumb { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--fill-2); display: grid; place-items: center; flex-shrink: 0; }
.rw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rw-thumb svg { width: 22px; height: 22px; color: var(--ink-2); }
.rw-row .s { margin-top: 2px; line-height: 1.35; }
.rw-status { flex-shrink: 0; margin-left: 8px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .2px; }
.rw-status.active { background: #DCFAE6; color: #067647; }
.rw-status.archived { background: var(--fill-2); color: var(--ink-2); }
.rw-status.removed { background: #FEE4E2; color: #B42318; }
.rw-row.archived .rw-thumb, .rw-row.removed .rw-thumb { opacity: .55; }
.rw-metrics { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.rw-metrics b { color: var(--ink); font-weight: 800; }

/* Saved › Calendar: Google Calendar feed */
.gcal-btn { display: flex; align-items: center; gap: 12px; width: calc(100% - 2 * var(--g)); margin: 0 var(--g) 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.gcal-btn > svg:first-child { width: 22px; height: 22px; flex-shrink: 0; }
.gcal-btn span { flex: 1; min-width: 0; }
.gcal-btn b { display: block; font-size: 14.5px; }
.gcal-btn small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.gcal-link span { font-size: 12px; word-break: break-all; }
.gcal-steps { margin: 16px 0 8px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.gcal-steps b { color: var(--ink); }

/* Import a post */
.imp-net { display: flex; align-items: center; gap: 6px; margin: -6px 2px 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.imp-net svg { width: 14px; height: 14px; color: #067647; }
.imp-net .bad { color: #B42318; }
.imp-cap { min-height: 96px; resize: vertical; line-height: 1.45; padding-top: 12px; }
.imp-media { margin-top: 4px; gap: 8px; }
.imp-media svg { width: 18px; height: 18px; }
.src-chip { display: inline-flex; align-items: center; gap: 5px; margin: 0 6px 8px 0; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.18); color: inherit; font-size: 11.5px; font-weight: 800; text-decoration: none; backdrop-filter: blur(8px); }
.src-chip svg { width: 12px; height: 12px; }
