/* Design follows the pulse dashboard: near-black canvas, white as the accent, glass panels,
   pill buttons, mono labels in caps and a serif italic for emphasis. Dark only. The tint is a
   Vinted teal instead of pulse's violet. Layout: landing = pill nav + hero + bento; app = fixed
   sidebar + topbar + content column. */
:root {
    color-scheme: dark;
    --bg: #050505;
    --bg-1: #0a0a0b;
    --bg-2: #101012;
    --panel: rgba(255, 255, 255, .03);
    --panel-2: rgba(255, 255, 255, .055);
    --panel-3: rgba(255, 255, 255, .09);
    --line: rgba(255, 255, 255, .075);
    --line-2: rgba(255, 255, 255, .13);
    --fg: #f5f5f6;
    --muted: #8f8f99;
    --dim: #5c5c66;
    --tint: #7fe3e8;
    --tint-2: #9fd8ff;
    --gold-1: #ffe3a1;
    --gold-2: #ff9f5a;
    --good: #4ade80;
    --warn: #fbbf24;
    --bad: #f87171;
    --discord: #5865f2;
    --f-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-serif: "Instrument Serif", Georgia, serif;
    --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-sans); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mono { font-family: var(--f-mono); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }
[data-icon] { display: inline-grid; place-items: center; }
[data-icon] svg { width: 16px; height: 16px; }

/* ---------- primitives ---------- */
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: "×"; color: var(--fg); letter-spacing: 0; }
.label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: inline-flex; align-items: center; gap: 7px; }
.label [data-icon] svg { width: 12px; height: 12px; }
.sec-num { font-family: var(--f-mono); font-size: 11px; color: var(--dim); margin-bottom: 6px; display: block; }
.hint { font-size: 12.5px; color: var(--dim); font-weight: 400; }
.err { font-size: 13px; color: var(--bad); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .2s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.btn-ghost { background: var(--panel); border: 1px solid var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, .22); }
.btn-danger { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .3); color: var(--bad); }
.btn-danger.armed { background: var(--bad); color: #000; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #1d1000; }
.btn-gold:hover { box-shadow: 0 0 0 4px rgba(255, 190, 110, .18); }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: all .15s; }
.icon-btn:hover { color: var(--fg); background: var(--panel-2); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.in { width: 100%; min-width: 0; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); color: var(--fg); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; transition: border-color .15s, background .15s; }
.in:hover { border-color: var(--line-2); }
.in:focus { outline: none; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .05); }
select.in { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select.in option { background: #111; }
.in-sm { padding: 6px 9px; font-size: 13px; border-radius: 10px; }
.field { display: grid; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 16px; align-content: start; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

.search-in { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); color: var(--dim); }
.search-in:focus-within { border-color: rgba(255, 255, 255, .4); }
.search-in input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: inherit; font-size: 14px; padding: 10px 0; outline: none; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--fg); }
.switch small { display: block; color: var(--dim); font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--panel-3); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #9a9aa4; transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background .15s; }
.switch input:checked { background: #fff; }
.switch input:checked::after { transform: translateX(16px); background: #000; }
.switch input:disabled { cursor: not-allowed; }
.switch.locked { opacity: .55; cursor: not-allowed; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--muted); background: var(--panel); cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--fg); border-color: rgba(255, 255, 255, .25); }
.chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: #000; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.pill-good { color: var(--good); background: rgba(74, 222, 128, .1); }
.pill-warn { color: var(--warn); background: rgba(251, 191, 36, .1); }
.pill-bad { color: var(--bad); background: rgba(248, 113, 113, .1); }
.pill-dim { color: var(--muted); background: var(--panel-2); }
.pill-premium { color: #ffcf6b; background: rgba(255, 207, 107, .1); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-live { background: var(--good); box-shadow: 0 0 10px var(--good); animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .45; } }

.rar { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; width: fit-content; }
.r-legend { color: #ffcf6b; border-color: rgba(255, 207, 107, .35); background: rgba(255, 207, 107, .08); }
.r-rare { color: #7fd8ff; border-color: rgba(127, 216, 255, .35); background: rgba(127, 216, 255, .08); }

.card { background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); border: 1px solid var(--line); border-radius: 22px; min-width: 0; }
.card-pad { padding: 22px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty [data-icon] svg { width: 26px; height: 26px; color: var(--dim); }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px 14px; border-right: 1px solid var(--line); background: radial-gradient(400px 260px at 0 0, rgba(255, 255, 255, .05), transparent 70%), var(--bg-1); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: #fff; color: #000; }
.logo svg { width: 16px; height: 16px; }
.nav-sec { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.nav-item [data-icon] svg { width: 17px; height: 17px; }
.nav-item:hover { color: var(--fg); background: var(--panel); }
.nav-item[aria-current="page"] { color: var(--fg); background: var(--panel-3); }
.nav-count { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding: 1px 7px; border-radius: 999px; background: var(--panel-2); }
.nav-count:empty { display: none; }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; }
.plan-box { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 8px; }
.plan-box b { font-size: 14px; }
.plan-box p { font-size: 12.5px; color: var(--muted); }
.plan-box.free { border-color: rgba(255, 207, 107, .25); background: radial-gradient(240px 120px at 100% 0, rgba(255, 190, 110, .12), transparent 70%), var(--panel); }
.side-pill { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; font-weight: 600; }
.side-pill:hover { background: var(--panel-2); }
.side-pill .disc { width: 26px; height: 26px; border-radius: 50%; background: var(--discord); color: #fff; }
.side-pill .disc svg { width: 15px; height: 15px; }
.user-wrap { position: relative; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; width: 100%; text-align: left; }
.user-chip:hover { border-color: var(--line-2); }
.user-text { min-width: 0; }
.user-chip b { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .handle { font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); display: block; }
.user-chip .updown { margin-left: auto; color: var(--dim); }
.user-chip .updown svg { width: 14px; height: 14px; }
.user-menu { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; background: #141416; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); z-index: 30; }
.user-menu button { padding: 9px 10px; border-radius: 9px; font-size: 13.5px; background: none; border: 0; text-align: left; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.user-menu button:hover { background: var(--panel-2); }
.av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-weight: 800; background: #222; }
.av img { width: 100%; height: 100%; object-fit: cover; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(5, 5, 5, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.crumbs { flex: 1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs b { color: var(--fg); font-weight: 600; }
.live-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--good); display: inline-flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55); }
.content { width: 100%; max-width: 1100px; margin: 0 auto; padding: 44px 28px 110px; display: grid; gap: 28px; align-content: start; }
.content > section { display: grid; gap: 28px; }
.page-head { display: grid; gap: 12px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.page-head p { color: var(--muted); font-size: 15px; max-width: 58ch; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-title h2 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.sec-title p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* ---------- overview ---------- */
.hero-card { position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(600px 300px at 80% 0%, rgba(127, 227, 232, .07), transparent 60%), linear-gradient(180deg, #121214, #0b0b0c); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; padding: 34px 26px 30px; align-items: center; }
.hero-title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin: 14px 0 22px; background: linear-gradient(180deg, #fff, #8a8a92); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .serif { background: linear-gradient(95deg, #fff, var(--tint) 45%, var(--tint-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.member { position: relative; border-radius: 20px; padding: 18px; aspect-ratio: 1.55; display: flex; flex-direction: column; border: 1.5px solid rgba(255, 255, 255, .5); background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 50%, rgba(255, 255, 255, .07)), #0d0d10; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .2); overflow: hidden; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.member.premium { border-color: rgba(255, 207, 107, .7); background: linear-gradient(135deg, rgba(255, 207, 107, .18), rgba(255, 255, 255, .02) 50%, rgba(255, 159, 90, .12)), #0d0d10; }
.member.basic { border-color: rgba(205, 127, 50, .6); background: linear-gradient(135deg, rgba(205, 127, 50, .16), rgba(255, 255, 255, .02) 55%), #0d0d10; }
.member.elite { border-color: rgba(241, 196, 15, .85); background: linear-gradient(135deg, rgba(241, 196, 15, .24), rgba(255, 255, 255, .03) 45%, rgba(155, 89, 182, .16)), #0d0d10; }
.member.admin { border-color: rgba(127, 227, 232, .7); background: linear-gradient(135deg, rgba(127, 227, 232, .16), rgba(255, 255, 255, .02) 50%, rgba(159, 216, 255, .1)), #0d0d10; }
.member::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%); transform: translateX(-30%); transition: transform .8s; pointer-events: none; }
.member:hover { transform: rotate(-1.5deg) translateY(-3px); }
.member:hover::after { transform: translateX(30%); }
.member-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.member-id { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.member-id b { font-size: 18px; display: block; line-height: 1.1; }
.member-id span { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.member-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.member-bottom small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--dim); display: block; }
.member-bottom strong { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.member-bottom em { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat-row > div { padding: 18px 26px; display: grid; gap: 8px; min-width: 0; }
.stat-row > div + div { border-left: 1px solid var(--line); }
.stat-row strong { font-size: 22px; font-weight: 700; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.qa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.qa { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: all .15s; cursor: pointer; text-align: left; width: 100%; }
.qa:hover { border-color: var(--line-2); background: var(--panel-2); }
.qa .qa-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); flex: none; }
.qa b { font-size: 14px; display: block; }
.qa span.qa-sub { font-size: 12.5px; color: var(--muted); display: block; }
.qa > .chev { margin-left: auto; color: var(--dim); }
.qa.discord { background: var(--discord); border-color: transparent; }
.qa.discord .qa-sub, .qa.discord > .chev { color: rgba(255, 255, 255, .75); }
.qa.discord .qa-ic { background: rgba(255, 255, 255, .15); }
.qa.gold { background: linear-gradient(135deg, rgba(255, 207, 107, .16), rgba(255, 159, 90, .08)); border-color: rgba(255, 207, 107, .3); }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; gap: 6px; }
.bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.bar-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-top span:last-child { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.bar-track { height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #fff, var(--tint)); }
.tier-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 20px; border: 1px solid rgba(255, 207, 107, .3); background: radial-gradient(500px 160px at 0 0, rgba(255, 190, 110, .12), transparent 70%), var(--panel); }
.tier-banner b { font-size: 15px; display: block; }
.tier-banner p { color: var(--muted); font-size: 13.5px; margin-top: 2px; max-width: 70ch; }

/* ---------- hits ---------- */
.hit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.hit-grid.large { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.hit { display: grid; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .15s, transform .2s; min-width: 0; }
.hit:hover { border-color: var(--line-2); transform: translateY(-2px); }
.hit-img { position: relative; aspect-ratio: 3 / 4; background: var(--bg-2); }
.hit-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hit-img .rar { position: absolute; left: 8px; top: 8px; backdrop-filter: blur(8px); background: rgba(0, 0, 0, .55); }
.hit-body { padding: 10px 12px 12px; display: grid; gap: 2px; min-width: 0; }
.hit-body strong { font-size: 16px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hit-body strong s { font-size: 12px; color: var(--dim); font-weight: 500; margin-left: 6px; }
.hit-body span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-body .meta { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); }
.hit-empty { grid-column: 1 / -1; }

/* ---------- filter list ---------- */
/* Not clipped, so the action menu of the last row can reach past the list. */
.list { border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.lrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); transition: background .15s; }
.lrow:first-child { border-top: 0; border-radius: 20px 20px 0 0; }
.lrow:last-child { border-radius: 0 0 20px 20px; }
.lrow:only-child { border-radius: 20px; }
.lrow:hover { background: rgba(255, 255, 255, .02); }
.lrow.is-off .lrow-main { opacity: .55; }
.plat { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 16px; background: var(--panel-3); }
.plat.on { background: #fff; color: #000; }
.lrow-main { min-width: 0; display: grid; gap: 3px; }
.lrow-main b { font-size: 15px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.lrow-main b .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; }
.lrow-main span.sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow-side { display: flex; align-items: center; gap: 6px; }
.lrow-stats { display: flex; align-items: center; gap: 18px; margin-right: 8px; }
.lrow-num { text-align: right; min-width: 40px; line-height: 1.1; }
.lrow-num b { font-size: 15px; display: block; font-variant-numeric: tabular-nums; }
.lrow-num span { font-size: 10.5px; color: var(--dim); font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.lrow-detail { grid-column: 1 / -1; display: grid; gap: 16px; padding: 6px 0 6px 58px; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 13.5px; }
.summary dt { color: var(--dim); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.menu-wrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #141416; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); z-index: 25; }
.pop button, .pop a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--fg); }
.pop button:hover, .pop a:hover { background: var(--panel-2); }
.pop [data-icon] { color: var(--muted); }
.pop .danger, .pop .danger [data-icon] { color: var(--bad); }
.pop hr { border: 0; height: 1px; background: var(--line); margin: 4px 2px; }

/* ---------- editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.acc { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 16px; }
.acc:first-child { border-top: 0; padding-top: 0; }
.acc-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.acc-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.acc .label { margin-top: 4px; }
.seg-sm { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-1); gap: 2px; width: fit-content; }
.seg-sm button { padding: 7px 16px; border-radius: 999px; font-size: 13.5px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.seg-sm button[aria-pressed="true"] { background: #fff; color: #000; font-weight: 600; }
.editor-preview { position: sticky; top: 88px; display: grid; gap: 10px; }
.preview-frame { border-radius: 26px; padding: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid var(--line-2); }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px; }
.preview-list { border-radius: 21px; background: var(--bg-1); border: 1px solid var(--line); height: min(640px, calc(100vh - 220px)); min-height: 420px; overflow-y: auto; padding: 10px; display: grid; gap: 8px; align-content: start; }
.preview-list.loading { opacity: .5; }
.p-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; border-radius: 14px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.p-item:hover { background: var(--panel-2); border-color: var(--line); }
.p-item img, .p-item .ph { width: 64px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--bg-2); }
.p-item b { font-size: 15px; font-variant-numeric: tabular-nums; }
.p-item span { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-bar { grid-column: 1 / -1; position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(20, 20, 22, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); font-size: 13.5px; }
.save-bar #save-text { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- admin ---------- */
.kpi-board { border-radius: 24px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.kpi-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-tab { text-align: left; padding: 18px 20px 20px; border-right: 1px solid var(--line); display: grid; gap: 6px; }
.kpi-tab:last-child, .kpi-tab:nth-child(5n) { border-right: 0; }
.kpi-tab:nth-child(n+6) { border-top: 1px solid var(--line); }
.kpi-tab strong { font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th.r, td.r { text-align: right; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .av { width: 28px; height: 28px; }
.who b { font-weight: 600; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form .in { width: 76px; }
.inline-form select.in { width: auto; }

/* ---------- dialog and toasts ---------- */
.dialog-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overflow-x: hidden; grid-template-columns: minmax(0, 1fr); border-radius: 22px; border: 1px solid var(--line-2); background: #121214; padding: 24px; display: grid; gap: 16px; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); }
.modal h3 { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { pointer-events: auto; background: #fff; color: #000; font-weight: 500; font-size: 14px; padding: 10px 16px; border-radius: 999px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: toast-in .25s cubic-bezier(.3, 1.4, .5, 1); }
.toast.error { background: #2a1214; color: #ffb4b4; border: 1px solid rgba(248, 113, 113, .4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; max-width: 1120px; margin: 0 auto; width: 100%; }
.plan { position: relative; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); padding: 26px; display: grid; gap: 18px; align-content: start; }
.plan.featured { border-color: rgba(255, 207, 107, .5); background: radial-gradient(500px 220px at 100% 0, rgba(255, 190, 110, .14), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); box-shadow: 0 30px 80px -30px rgba(255, 159, 90, .25); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan h3 { font-size: 26px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.plan.featured h3 { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.plan li::before { content: "✓"; font-weight: 800; color: var(--fg); }
.plan li.no { color: var(--dim); }
.plan li.no::before { content: "–"; color: var(--dim); }
.plans.compact { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.plans.compact .plan { padding: 16px; gap: 12px; border-radius: 18px; }
.plans.compact .plan h3 { font-size: 19px; }
.plans.compact .plan ul { gap: 7px; }
.plans.compact .plan li { font-size: 12.5px; }
/* Plans end with their button, level across cards of different length. */
.plans.compact .plan { display: flex; flex-direction: column; }
.plans.compact .plan > .btn { margin-top: auto; }
/* The upgrade dialog holds all four plans side by side on wide screens. */
.modal.wide { width: min(1040px, 100%); }

/* ---------- landing ---------- */
.land-nav { position: sticky; top: 12px; z-index: 30; width: calc(100% - 24px); max-width: 1180px; margin: 12px auto 0; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 16px; border-radius: 999px; background: rgba(14, 14, 16, .7); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.land-nav .brand { padding: 0; }
.land-nav nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.land-wrap { padding: 0 max(16px, env(safe-area-inset-left)) 60px max(16px, env(safe-area-inset-right)); }
.land-hero { max-width: 1180px; margin: 0 auto; text-align: center; padding: 84px 0 0; position: relative; display: grid; justify-items: center; }
.land-hero::before { content: ""; position: absolute; inset: -140px -20% auto; height: 820px; z-index: -1; background: radial-gradient(700px 380px at 50% 18%, rgba(127, 227, 232, .13), transparent 70%); pointer-events: none; }
.land-hero h1 { font-weight: 800; font-size: clamp(44px, 8vw, 100px); line-height: .94; letter-spacing: -.055em; margin-top: 24px; background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .5)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.land-hero h1 .serif { background: linear-gradient(95deg, #fff, var(--tint) 45%, var(--tint-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.land-hero .lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 58ch; margin: 22px auto 0; }
.land-hero .err { margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.land-hero .hint { margin-top: 14px; }
.announce { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13px; color: var(--muted); }
.announce b { color: var(--fg); }
.announce .tag { padding: 3px 9px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 12px; }
.showcase { width: min(620px, 100%); margin: 60px auto 0; border-radius: 28px; padding: 7px; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); border: 1px solid var(--line-2); box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .8); text-align: left; }
.mock { border-radius: 22px; background: #0c0c0e; border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; }
.mock-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.mock-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); border-left: 3px solid var(--tint); }
.mock-img { width: 96px; height: 124px; border-radius: 12px; background: radial-gradient(circle at 40% 35%, #3a3d46, #16171b 70%); }
.mock-img.alt { background: radial-gradient(circle at 60% 30%, #2f3b47, #121418 70%); }
.mock-body { display: grid; gap: 6px; align-content: center; }
.mock-body b { font-size: 16px; }
.mock-price { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.mock-price s { font-size: 14px; color: var(--dim); font-weight: 500; margin-left: 6px; }
.land-sec { max-width: 1180px; margin: 0 auto; padding-top: 110px; }
.land-sec-head { text-align: center; display: grid; gap: 14px; justify-items: center; margin-bottom: 44px; }
.land-sec-head h2 { font-weight: 800; font-size: clamp(34px, 5vw, 60px); line-height: .98; letter-spacing: -.045em; }
.land-sec-head p { color: var(--muted); font-size: 16.5px; max-width: 52ch; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); padding: 24px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; min-width: 0; }
.tile h3 { font-size: 18px; letter-spacing: -.02em; margin-top: 4px; }
.tile p { color: var(--muted); font-size: 14px; }
.tile .t-foot { margin-top: auto; padding-top: 12px; }
.span-2 { grid-column: span 2; }
.big-num { font-weight: 900; font-size: 88px; line-height: .85; letter-spacing: -.06em; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flags { font-size: 28px; letter-spacing: .08em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { border-radius: 24px; border: 1px solid var(--line); background: var(--panel); padding: 24px; display: grid; gap: 6px; align-content: start; }
.steps b { font-size: 20px; letter-spacing: -.02em; }
.steps p { color: var(--muted); font-size: 14px; }
.land-foot { max-width: 1180px; margin: 80px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .editor { grid-template-columns: minmax(0, 1fr); }
    .editor-preview { position: relative; top: 0; }
    .preview-list { height: auto; max-height: 460px; min-height: 200px; }
    .kpi-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kpi-tab:nth-child(3) { border-right: 0; }
    .kpi-tab:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 60; transform: translateX(-100%); transition: transform .25s; }
    .side.open { transform: none; box-shadow: 40px 0 80px rgba(0, 0, 0, .6); }
    .menu-btn { display: inline-grid; }
    .topbar { padding: 0 16px; }
    .content { padding: 28px 16px 110px; }
    .hero-top { grid-template-columns: minmax(0, 1fr); }
    .member { max-width: 320px; }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-row > div:nth-child(3) { border-left: 0; }
    .stat-row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .two-col, .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .lrow-stats { display: none; }
}
@media (max-width: 600px) {
    .hide-sm { display: none !important; }
    .grid-3, .qa-grid, .plans { grid-template-columns: minmax(0, 1fr); }
    .bento { grid-template-columns: minmax(0, 1fr); }
    .span-2 { grid-column: auto; }
    .kpi-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi-tab { border-right: 0 !important; border-top: 1px solid var(--line); }
    .kpi-tab:nth-child(-n+2) { border-top: 0; }
    .kpi-tab:nth-child(odd) { border-right: 1px solid var(--line) !important; }
    .lrow { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
    .plat { width: 40px; height: 40px; }
    .lrow-detail { padding-left: 0; }
    .hit-grid, .hit-grid.large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .save-bar { border-radius: 22px; flex-direction: column; align-items: stretch; padding: 12px; }
    .save-bar .row { justify-content: flex-end; }
    .mock-item { grid-template-columns: 72px minmax(0, 1fr); }
    .mock-img { width: 72px; height: 96px; }
    .stat-row > div { padding: 14px 16px; }
}
@media (max-width: 420px) {
    .hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- team ---------- */
.stack-sm { display: grid; gap: 12px; align-content: start; }
.stack-xs { display: grid; gap: 4px; min-width: 0; }
.team-split { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.result-list { display: grid; gap: 4px; max-height: 60vh; overflow-y: auto; }
.result { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.result:hover, .result.active { background: var(--panel-2); border-color: var(--line); }
.result > div { display: grid; min-width: 0; flex: 1; }
.result b, .result .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result .av, .file-head .av { flex: none; }
.file-head { display: flex; align-items: center; gap: 16px; }
.file-head .av { width: 64px; height: 64px; }
.file-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.card h3 { font-size: 16px; font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.history li { display: flex; gap: 10px; align-items: flex-start; }
.history li > div { display: grid; gap: 2px; min-width: 0; }
.history .pill { flex: none; }
.voucher-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.voucher-form .field { flex: 1 1 130px; }
.voucher-form .field.wide { flex: 2 1 240px; }
textarea.in { resize: vertical; min-height: 110px; font: inherit; }
.nowrap { white-space: nowrap; }
@media (max-width: 900px) {
    .team-split { grid-template-columns: minmax(0, 1fr); }
}
.result .meta, .file-head .meta, .history .meta { font-size: 12px; color: var(--muted); }

/* ---------- join choice on the landing page ---------- */
.join-box { margin-top: 18px; max-width: 560px; padding: 18px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); display: grid; gap: 14px; }
.join-head { display: flex; gap: 14px; align-items: center; }
.join-head img, .join-icon { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #5865F2; }
.join-head b { font-size: 15px; }
.join-head p, .join-hint { font-size: 13px; color: var(--muted); }
.join-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.join-hint a { color: var(--fg); text-decoration: underline; }
