/* ============ Taupe & faded board theme ============
   Loaded after app.css and property.css: warm taupe tokens, a faded wooden-board background, motion. */
:root {
  --bg: #1c1814;
  --bg-2: #24201b;
  --surface: rgba(255, 244, 228, 0.05);
  --surface-2: rgba(255, 244, 228, 0.09);
  --surface-solid: #2a241e;
  --line: rgba(240, 224, 204, 0.1);
  --line-2: rgba(240, 224, 204, 0.19);
  --ink: #f6efe6;
  --ink-2: #d8ccbd;
  --muted: #a69684;
  --violet: #8f7d6c;   /* taupe */
  --magenta: #c49a6c;  /* camel bronze */
  --amber: #e6cc9f;    /* champagne */
  --gold: #ecd3a2;
  --cyan: #9fc2bd;
  --on-brand: #1e1712;
  --brand: linear-gradient(120deg, var(--violet) 0%, var(--magenta) 52%, var(--amber) 100%);
  --brand-soft: linear-gradient(120deg, color-mix(in srgb, var(--violet) 26%, transparent), color-mix(in srgb, var(--magenta) 18%, transparent) 55%, color-mix(in srgb, var(--amber) 14%, transparent));
  --glow: color-mix(in srgb, var(--magenta) 55%, transparent);
  --wall-tint: #6f6357;
  --wall-blend: overlay;
  --wall-opacity: 0.5;
  --shadow: 0 24px 60px -26px rgba(10, 6, 2, 0.75), 0 1px 0 rgba(255, 240, 220, 0.04) inset;
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}
:root[data-theme='light'] {
  --bg: #ebe4da;
  --bg-2: #f4efe8;
  --surface: rgba(255, 252, 247, 0.72);
  --surface-2: #e4dacd;
  --surface-solid: #faf6f0;
  --line: rgba(70, 52, 34, 0.12);
  --line-2: rgba(70, 52, 34, 0.2);
  --ink: #2b231c;
  --ink-2: #5a4c3f;
  --muted: #877664;
  --violet: #8a7564;
  --magenta: #a9805a;
  --amber: #cfae7c;
  --on-brand: #ffffff;
  --wall-tint: #d9cfc2;
  --wall-blend: multiply;
  --wall-opacity: 0.26;
  --shadow: 0 18px 40px -26px rgba(70, 50, 30, 0.38);
}
html { -webkit-tap-highlight-color: transparent; }
/* The page colour sits on <html> so the board layers (z-index below 0) show through <body>. */
body, :root[data-theme='light'] body { background: transparent; }
::selection { background: color-mix(in srgb, var(--magenta) 40%, transparent); }

/* ---- Faded wooden boards ---- */
.aurora {
  background:
    radial-gradient(130% 70% at 18% -12%, color-mix(in srgb, var(--amber) 22%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--wall-tint) 58%, var(--bg)) 0%, color-mix(in srgb, var(--wall-tint) 26%, var(--bg)) 100%);
}
.aurora::before { /* the boards themselves */
  content: ''; position: absolute; inset: -40px;
  background: url('../img/boards.svg') 0 0 / 900px 900px repeat;
  mix-blend-mode: var(--wall-blend); opacity: var(--wall-opacity); filter: sepia(0.45);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0.6) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0.6) 100%);
  animation: wallBreathe 40s ease-in-out infinite alternate;
}
.aurora::after { /* faded edges, like sun-bleached timber */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, color-mix(in srgb, var(--bg) 85%, #000) 100%);
}
:root[data-theme='light'] .aurora::after { background: radial-gradient(120% 90% at 50% 30%, transparent 60%, color-mix(in srgb, var(--bg) 70%, #a08c76) 100%); }
/* Soft window light drifting across the boards */
.aurora i { filter: blur(80px); mix-blend-mode: screen; }
.aurora i:nth-child(1) { background: #c9a77d; opacity: 0.2; }
.aurora i:nth-child(2) { background: #e9d3ae; opacity: 0.12; }
.aurora i:nth-child(3) { background: #8f7d6c; opacity: 0.16; }
:root[data-theme='light'] .aurora i { mix-blend-mode: normal; }
:root[data-theme='light'] .aurora i:nth-child(1) { background: #fff6e6; opacity: 0.55; }
:root[data-theme='light'] .aurora i:nth-child(2) { background: #f3e2c8; opacity: 0.4; }
:root[data-theme='light'] .aurora i:nth-child(3) { background: #cbb59a; opacity: 0.18; }
.grain { opacity: 0.05; }
:root[data-theme='light'] .grain { display: block; opacity: 0.035; mix-blend-mode: multiply; }
@keyframes wallBreathe { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-24px, -18px, 0); } }

/* ---- Warm surfaces (replace the old violet darks) ---- */
.rail { background: linear-gradient(180deg, rgba(36, 31, 26, 0.86), rgba(28, 24, 20, 0.74)); }
:root[data-theme='light'] .rail { background: rgba(250, 246, 240, 0.86); }
.hero {
  background:
    radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--amber) 20%, transparent), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--violet) 30%, transparent), transparent 60%),
    linear-gradient(160deg, rgba(44, 37, 30, 0.88), rgba(28, 24, 20, 0.82));
}
:root[data-theme='light'] .hero {
  background:
    radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--amber) 24%, transparent), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 60%),
    rgba(250, 246, 240, 0.9);
}
.hero .shade { background: linear-gradient(90deg, rgba(28, 24, 20, 0.96), rgba(28, 24, 20, 0.6)); }
:root[data-theme='light'] .hero .shade { background: linear-gradient(90deg, rgba(250, 246, 240, 0.97), rgba(250, 246, 240, 0.78)); }
.drawer { background: linear-gradient(180deg, #2c261f, #201b16); }
.modal, .toast { background: #2c261f; }
:root[data-theme='light'] .drawer, :root[data-theme='light'] .modal, :root[data-theme='light'] .toast, :root[data-theme='light'] .cover { background: var(--surface-solid); }
.scrim { background: rgba(14, 10, 6, 0.55); }
.input, .select, .textarea { background: rgba(20, 14, 8, 0.3); }
:root[data-theme='light'] .input, :root[data-theme='light'] .select, :root[data-theme='light'] .textarea, :root[data-theme='light'] .btn, :root[data-theme='light'] .tabs button.on { background: #fffdf9; }
.input:focus, .select:focus, .textarea:focus { border-color: color-mix(in srgb, var(--magenta) 75%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--magenta) 16%, transparent); }
.btn:hover { background: rgba(255, 240, 220, 0.11); border-color: rgba(255, 240, 220, 0.24); }
:root[data-theme='light'] .btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn.primary, .cover:hover, .tile.on, .plat-switch button.on, .brand-mark { box-shadow: 0 14px 32px -14px var(--glow); }
.tile.on { box-shadow: 0 0 0 1.5px var(--magenta) inset, 0 14px 30px -16px var(--glow); }
.chip.brand { color: var(--ink); }
.phone { background: linear-gradient(145deg, #3a3129, #15110d); box-shadow: 0 0 0 1.5px rgba(255, 240, 220, 0.1) inset, 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 120px -40px var(--glow); }
.device-wrap { background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%), rgba(20, 14, 8, 0.22); }
:root[data-theme='light'] .device-wrap { background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--amber) 18%, transparent), transparent 70%), var(--surface-2); }
:root[data-theme='light'] .track .bar, :root[data-theme='light'] .meter, :root[data-theme='light'] .switch i, :root[data-theme='light'] .cal .pc:hover { background: #ddd2c4; }
:root[data-theme='light'] .skel { background: linear-gradient(90deg, #e9e1d6, #f6f1ea, #e9e1d6); background-size: 200% 100%; }
:root[data-theme='light'] .cover .art::after { background: linear-gradient(180deg, transparent 40%, rgba(43, 35, 28, 0.75)); }
:root[data-theme='light'] .chip.live, :root[data-theme='light'] .feed .ev .a, :root[data-theme='light'] .shot .s b { color: #7a5d40; }
:root[data-theme='light'] .re-ring::before { background: var(--surface-solid); }

/* ============ Motion ============ */
/* Each page rises in, its blocks one after another. */
.view-enter > * { animation: riseIn 0.6s var(--ease) both; }
.view-enter > *:nth-child(2) { animation-delay: 0.06s; }
.view-enter > *:nth-child(3) { animation-delay: 0.12s; }
.view-enter > *:nth-child(4) { animation-delay: 0.18s; }
.view-enter > *:nth-child(n + 5) { animation-delay: 0.24s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } }
/* Card grids deal in */
.covers > *, .re-photos > *, .re-styles > *, .re-shapes > * { animation: dealIn 0.5s var(--ease) both; }
.covers > *:nth-child(2), .re-photos > *:nth-child(2), .re-styles > *:nth-child(2), .re-shapes > *:nth-child(2) { animation-delay: 0.05s; }
.covers > *:nth-child(3), .re-photos > *:nth-child(3), .re-styles > *:nth-child(3), .re-shapes > *:nth-child(3) { animation-delay: 0.1s; }
.covers > *:nth-child(4), .re-photos > *:nth-child(4), .re-styles > *:nth-child(4), .re-shapes > *:nth-child(4) { animation-delay: 0.15s; }
.covers > *:nth-child(5), .re-photos > *:nth-child(5) { animation-delay: 0.2s; }
.covers > *:nth-child(6), .re-photos > *:nth-child(6) { animation-delay: 0.25s; }
.covers > *:nth-child(n + 7), .re-photos > *:nth-child(n + 7) { animation-delay: 0.3s; }
@keyframes dealIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.re-ph.dragging { animation: none; }

/* Hover and press (only on devices that can hover, so taps never stick) */
@media (hover: hover) {
  .card { transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
  .re-ph:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.6); }
  .re-ph-img img { transition: transform 0.6s var(--ease); }
  .re-ph:hover .re-ph-img img { transform: scale(1.06); }
  .cover .art img, .cover .art video { transition: transform 0.8s var(--ease); }
  .cover:hover .art img, .cover:hover .art video { transform: scale(1.05); }
  .nav a:hover svg { transform: translateY(-1px) scale(1.08); }
  .re-net:hover, .re-pic:hover { transform: translateY(-1px); }
}
.nav a svg { transition: transform 0.3s var(--spring); }
.re-net, .re-pic { transition: transform 0.25s var(--ease), border-color 0.2s, background 0.2s; }
.nav a.on::before { animation: growIn 0.4s var(--spring); }
@keyframes growIn { from { transform: scale(0.3); opacity: 0; } }
/* A sheen sweeps across primary buttons */
.btn.primary { position: relative; overflow: hidden; isolation: isolate; }
.btn.primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%); transform: translateX(-120%); }
@media (hover: hover) { .btn.primary:hover::after { transform: translateX(120%); transition: transform 0.8s var(--ease); } }
.brand-mark { animation: markIn 0.8s var(--spring) both; }
@keyframes markIn { from { transform: rotate(-12deg) scale(0.6); opacity: 0; } }
.tile.on .check { animation: popIn 0.35s var(--spring); }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } }
.re-ring { animation: ringGlow 2.4s ease-in-out infinite; }
@keyframes ringGlow { 50% { box-shadow: 0 0 40px -6px var(--glow); } }
.re-art .re-f2, .re-art .re-f1, .re-art .re-f3 { transform-box: fill-box; transform-origin: center; }
.re-art .re-f1 { animation: floaty 7s ease-in-out infinite; }
.re-art .re-f2 { animation: floaty 8s ease-in-out -2s infinite; }
.re-art .re-f3 { animation: floaty 9s ease-in-out -4s infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.toast { animation: toastIn 0.45s var(--spring); }

/* ============ Phones first ============ */
/* Touch targets and inputs that don't zoom the page on iOS */
.input, .select, .textarea { font-size: 16px; }
.btn { min-height: 44px; }
.btn.sm, .btn.icon { min-height: 0; }
.re-ph-tools { opacity: 1; }
.modal { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: sheetUp 0.4s var(--ease); }
.modal.re-mc { top: auto; max-height: 92dvh; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.drawer { width: 100vw; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.toasts { left: 16px; right: 16px; align-items: stretch; }
.toast { max-width: none; }
.hero { border-radius: 20px; }
.card { padding: 16px; }
.h-1 { font-size: 22px; }

@media (min-width: 600px) {
  .input, .select, .textarea { font-size: 14px; }
  .card { padding: 20px; }
  .h-1 { font-size: 26px; }
  .hero { border-radius: 26px; }
  .modal { left: 50%; right: auto; top: 12vh; bottom: auto; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); max-height: 76vh; border-radius: 20px; padding: 22px; animation: pop 0.3s var(--ease); }
  .modal.re-mc { top: 6vh; max-height: 88vh; }
  .drawer { width: min(480px, 100vw); padding: 22px; }
  .toasts { left: auto; align-items: flex-end; }
  .toast { max-width: min(420px, calc(100vw - 36px)); }
}
@media (hover: hover) and (pointer: fine) {
  .btn { min-height: 0; }
  .re-ph-tools { opacity: 0; }
}
/* Long example prompts wrap instead of running off a phone screen */
.examples .chip { white-space: normal; height: auto; min-height: 26px; padding: 4px 12px; text-align: left; max-width: 100%; }

/* ============ Readable type & eye-catching finish ============ */
:root {
  --ink-2: #e4d9cb;
  --muted: #bcae9c;
  --gold-grad: linear-gradient(100deg, #f3dfb6 0%, #d9b27c 30%, #fff1d2 50%, #c8955e 72%, #f3dfb6 100%);
  --panel: rgba(38, 33, 28, 0.82);
  --panel-edge: linear-gradient(135deg, rgba(243, 223, 182, 0.45), rgba(243, 223, 182, 0.06) 40%, rgba(196, 154, 108, 0.28));
}
:root[data-theme='light'] {
  --ink-2: #4a3d31;
  --muted: #6f5f4f;
  --gold-grad: linear-gradient(100deg, #8a6237 0%, #b5844f 30%, #6e4b28 52%, #a9805a 75%, #8a6237 100%);
  --panel: rgba(255, 252, 247, 0.88);
  --panel-edge: linear-gradient(135deg, rgba(169, 128, 90, 0.5), rgba(169, 128, 90, 0.08) 40%, rgba(138, 117, 100, 0.3));
}
body { font-size: 15px; line-height: 1.6; text-rendering: optimizeLegibility; }
.muted { color: var(--muted); }
.sub { font-size: 14px; line-height: 1.55; color: var(--ink-2); opacity: 0.86; margin-top: 2px; }
small { font-size: 13px; }
.lede { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.h-display { font-size: clamp(32px, 8.5vw, 56px); line-height: 1.04; letter-spacing: -0.03em; }
.h-2 { font-size: 19px; letter-spacing: -0.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.18em; color: var(--magenta); }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--gold-grad); }
.field > span { font-size: 13px; color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.85; }
.input, .select, .textarea { border-color: var(--line-2); }
.textarea { line-height: 1.55; padding-top: 10px; padding-bottom: 10px; }

/* Gold leaf headline that slowly catches the light */
.grad-text { background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldSheen 7s ease-in-out infinite; }
@keyframes goldSheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Panels: near-solid so text sits on a calm surface, with a hairline gold edge */
.card { background: var(--panel); border-color: transparent; position: relative; isolation: isolate; backdrop-filter: blur(16px) saturate(1.1); }
.card::before, .hero::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--panel-edge); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: -1; }
.hero { border-color: transparent; isolation: isolate; }
.hero::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--amber) 32%, transparent), transparent 65%); filter: blur(10px); animation: haloDrift 14s ease-in-out infinite alternate; pointer-events: none; z-index: -1; }
@keyframes haloDrift { to { transform: translate(-60px, 40px) scale(1.15); } }

/* Numbered steps in the listing editor */
.re-step { display: inline-flex; align-items: center; gap: 12px; }
.re-step i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--on-brand); background: var(--brand); box-shadow: 0 8px 18px -8px var(--glow); flex: none; }
.card-h .sub { margin-left: 44px; }

/* Buttons with weight */
.btn { font-weight: 600; letter-spacing: 0.005em; }
.btn.primary { background: linear-gradient(120deg, #c9a06e, #ecd3a2 55%, #c49a6c); color: #1e1712; font-weight: 700; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
:root[data-theme='light'] .btn.primary { background: linear-gradient(120deg, #8a6a4b, #b38b5f 55%, #7d5f43); color: #fff; text-shadow: none; }
.btn.lg { height: 52px; font-size: 16px; }

/* Nav: gold active pill */
.nav a { color: var(--ink-2); }
.nav a.on { background: color-mix(in srgb, var(--magenta) 18%, transparent); color: var(--ink); }
.nav a.on svg { color: var(--magenta); opacity: 1; }
.rail { background: linear-gradient(180deg, rgba(34, 29, 24, 0.94), rgba(26, 22, 18, 0.92)); }
:root[data-theme='light'] .rail { background: rgba(250, 246, 240, 0.94); }
.brand b { background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Listing covers: deeper shadow, gold edge on hover */
.cover { border-color: var(--line); box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.7); }
@media (hover: hover) { .cover:hover { border-color: color-mix(in srgb, var(--amber) 55%, transparent); } }
.cover .body b { font-size: 16px; }
.chip { font-size: 12.5px; }

/* Tiles: clearer selected state */
.tile b { font-size: 15px; }
.tile small { color: var(--ink-2); opacity: 0.8; }
.tile.on { background: color-mix(in srgb, var(--magenta) 16%, var(--panel)); }

@media (min-width: 600px) { .sub { font-size: 14.5px; } }
@media (max-width: 599px) {
  .card-h .sub { margin-left: 0; margin-top: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Top bar (phones and tablets) */
.topbar { background: rgba(30, 26, 22, 0.9); }
:root[data-theme='light'] .topbar { background: rgba(250, 246, 240, 0.92); }
.topbar .tb-brand span:last-child { background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
body.signed-out .topbar { display: none; }
.kbd-hint[hidden] { display: none; }
.rail .brand { padding-right: 44px; }
@media (min-width: 861px) { .rail .brand { padding-right: 8px; } }

/* ============ Blue accents (gold text was hard to read) ============ */
:root {
  --violet: #2563eb;
  --magenta: #3b82f6;
  --amber: #60a5fa;
  --gold: #93c5fd;
  --cyan: #38bdf8;
  --on-brand: #ffffff;
  --brand: linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
  --gold-grad: linear-gradient(100deg, #93c5fd 0%, #60a5fa 30%, #dbeafe 50%, #60a5fa 72%, #93c5fd 100%);
  --glow: rgba(59, 130, 246, 0.55);
  --panel-edge: linear-gradient(135deg, rgba(147, 197, 253, 0.45), rgba(147, 197, 253, 0.06) 40%, rgba(59, 130, 246, 0.3));
}
:root[data-theme='light'] {
  --violet: #1d4ed8;
  --magenta: #2563eb;
  --amber: #3b82f6;
  --gold: #1d4ed8;
  --on-brand: #ffffff;
  --gold-grad: linear-gradient(100deg, #1e40af 0%, #2563eb 35%, #1d4ed8 55%, #3b82f6 78%, #1e40af 100%);
  --panel-edge: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(37, 99, 235, 0.06) 40%, rgba(29, 78, 216, 0.28));
}
.eyebrow { color: var(--gold); }
:root[data-theme='light'] .eyebrow { color: var(--violet); }
.btn.primary, :root[data-theme='light'] .btn.primary { background: linear-gradient(120deg, #1d4ed8, #2563eb 55%, #3b82f6); color: #fff; text-shadow: none; }
@media (hover: hover) { .btn.primary:hover { background: linear-gradient(120deg, #1e40af, #1d4ed8 55%, #2563eb); } }
.brand b, .topbar .tb-brand span:last-child { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
.chip.brand { background: color-mix(in srgb, var(--magenta) 22%, transparent); color: var(--ink); }
.chip.live { color: var(--gold); }
:root[data-theme='light'] .chip.live { color: var(--violet); }
.aurora i:nth-child(2) { background: #93c5fd; opacity: 0.08; }
a { color: inherit; }
.sub a, .muted a, p a { color: var(--gold); }
:root[data-theme='light'] .sub a, :root[data-theme='light'] p a { color: var(--violet); }

/* [hidden] always wins over display rules (sign-in never shows the name field) */
[hidden] { display: none !important; }

/* ---- Tabs in the app ---- */
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tabs a svg, .tabs button svg { width: 16px; height: 16px; }
.tabs a.on { background: var(--surface-2); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset; }
:root[data-theme='light'] .tabs a.on { background: #fffdf9; }
.re-etabs, .st-tabs { width: 100%; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.re-etabs::-webkit-scrollbar, .st-tabs::-webkit-scrollbar { display: none; }
.re-etabs button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.re-pane { animation: riseIn 0.35s var(--ease) both; }
.re-next { display: flex; justify-content: flex-end; margin-top: 12px; }
.re-lbl { display: block; margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.re-formats { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .re-formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.re-revs { text-align: center; margin: 8px 0 0; }
.st-pane { animation: riseIn 0.35s var(--ease) both; }
.st-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.st-list li { display: flex; gap: 10px; align-items: flex-start; }
.st-list svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 3px; }
.plan-pill { display: flex; text-decoration: none; transition: border-color 0.2s; }
@media (hover: hover) { .plan-pill:hover { border-color: var(--magenta); } }
.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.msg.unread { border-color: color-mix(in srgb, var(--magenta) 60%, transparent); }
.msg p { margin: 8px 0 12px; white-space: normal; overflow-wrap: anywhere; }
.tabs .badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--magenta); color: #fff; font-size: 11px; margin-left: 4px; }
.re-banner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 16px; margin-bottom: 18px; background: color-mix(in srgb, var(--magenta) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--magenta) 45%, transparent); }

/* ---- Plans (Settings → Billing) ---- */
.bl-int { width: auto; }
.bl-int .chip { height: 20px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
.bl-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 720px) { .bl-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bl-plan { display: flex; flex-direction: column; gap: 12px; }
.bl-plan.unlimited { background: color-mix(in srgb, var(--magenta) 12%, var(--panel)); }
.bl-plan.on::before { background: var(--brand); }
.bl-amount { display: flex; align-items: baseline; gap: 6px; }
.bl-amount b { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.bl-amount span { color: var(--ink-2); }
