/* theCURB Studio — account pages (home, sign-in, onboarding, dashboard, admin). theCURB-branded. */
body { background: radial-gradient(900px 500px at 50% -10%, rgb(var(--curb-rgb) / .08), transparent 70%), var(--bg); min-height: 100%; }
h1, h2, h3 { margin: 0; }
h1 { font: 600 clamp(30px, 6vw, 44px)/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; }
h2 { font: 600 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(640px, 100%); margin: 0 auto; padding: 40px 16px 56px; display: grid; gap: 22px; }
.wrap.narrow { width: min(420px, 100%); }
.wrap.wide { width: min(980px, 100%); }
.top { display: flex; align-items: center; gap: 12px; }
.top .grow { flex: 1; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo img { height: 30px; }
.logo .tag { font: 600 12px var(--display); letter-spacing: .18em; text-transform: uppercase; background: var(--curb); color: var(--ink); padding: 3px 7px 2px; border-radius: 4px; }
.card { padding: 22px; display: grid; gap: 14px; }
.card + .card { margin-top: 0; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.5; }
.small { font-size: 12.5px; }
.err { color: #ff6961; font-size: 13px; }
.ok-text { color: var(--ok); font-size: 13px; }
.oauth { display: grid; gap: 10px; }
.oauth .btn { height: 48px; font-size: 15px; gap: 10px; justify-content: center; }
.oauth .btn svg { width: 18px; height: 18px; flex: none; }
.btn.google { background: #fff; color: #1f1f1f; }
.btn.google:hover { background: #ececec; }
.btn.twitch { background: #9146ff; color: #fff; }
.btn.twitch:hover { background: #7d33f0; }
a.btn { text-decoration: none; }
.links { display: grid; gap: 16px; }
.link-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.link-h b { font-size: 14px; }
.link-h small { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: start; }
.col { display: grid; gap: 22px; }
.steps-nav { display: flex; gap: 6px; }
.steps-nav i { flex: 1; height: 4px; border-radius: 4px; background: var(--fill); }
.steps-nav i.on { background: var(--curb); }
.foot { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
details.more > summary { cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; }
details.more > summary::before { content: '▸ '; }
details.more[open] > summary::before { content: '▾ '; }
textarea.input { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; line-height: 1.4; }

/* Brand editor */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.swatch[aria-pressed='true'] { outline: 2px solid #fff; outline-offset: 2px; }
.swatch.custom { position: relative; overflow: hidden; background: conic-gradient(#f43f5e, #f59e0b, #facc15, #22c55e, #06b6d4, #6366f1, #d946ef, #f43f5e); }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.hex { width: 110px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pv-cam { position: relative; aspect-ratio: 1; max-width: 260px; width: 100%; justify-self: center; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #7a7066 0 16%, transparent 16.5%), radial-gradient(ellipse at 50% 92%, #5b544c 0 34%, transparent 34.5%), linear-gradient(160deg, #2a2a2e, #141416); }
.pv-cam::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 6px var(--accent); animation: talk 1.6s ease-in-out infinite; }
.pv-cam { box-shadow: 0 0 34px rgb(var(--accent-rgb) / .45); animation: glow 1.6s ease-in-out infinite; }
@keyframes talk { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 34px rgb(var(--accent-rgb) / .5); } 50% { box-shadow: 0 0 16px rgb(var(--accent-rgb) / .25); } }
.pv-cam .nametag { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: stretch; background: rgba(10,10,10,.82); border-radius: 6px; overflow: hidden; font: 600 15px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.pv-cam .nametag i { width: 7px; background: var(--accent); }
.pv-cam .nametag span { padding: 7px 10px 6px; }
.pv-cam[data-style='bold'] { border-radius: 0; }
.pv-cam[data-style='bold'] .nametag i { width: 12px; }
.pv-cam[data-style='bold'] .nametag { font-size: 17px; border-radius: 0; }
.pv-cam[data-style='minimal'] .nametag { display: none; }
.pv-cam[data-style='minimal']::after { box-shadow: inset 0 0 0 3px var(--accent); }
.pv-cam .pv-logo { position: absolute; left: 12px; top: 12px; max-width: 90px; max-height: 44px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.pv-chip { justify-self: center; background: var(--accent); color: var(--accent-ink); font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px 4px; border-radius: 99px; }
.logo-drop { display: grid; place-items: center; gap: 8px; min-height: 130px; border-radius: 16px; border: 1.5px dashed var(--line-2); padding: 16px; text-align: center; color: var(--muted); cursor: pointer; }
.logo-drop.over { border-color: var(--curb); background: rgb(var(--curb-rgb) / .05); }
.logo-drop img { max-width: 200px; max-height: 90px; object-fit: contain; }
.logo-acts { align-items: center; flex-wrap: wrap; gap: 8px; }
.logo-note { font-size: 12px; }
.logo-size { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.logo-size[hidden] { display: none; }
.logo-size .lbl-w { flex: none; width: 40px; color: var(--muted); font-size: 12.5px; }
.logo-size input { flex: 1; min-width: 0; accent-color: var(--accent, var(--curb)); }
.logo-size output { flex: none; width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.usage-bar { height: 8px; border-radius: 8px; background: var(--fill); overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: var(--curb); }
.usage-bar.warn i { background: var(--warn); }
.usage-bar.full i { background: var(--live); }

/* Admin */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; }
td .input { height: 30px; width: 80px; }
.scroll-x { overflow-x: auto; }

@media (max-width: 520px) { .wrap { padding-top: 24px; } .card { padding: 18px; } }
