/* ================= THEMES ================= */
:root, [data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --card: #141417;
  --card-2: #1a1a1e;
  --ink: #f1f1f3;
  --muted: #8b8d96;
  --line: #25252b;
  --accent: #ff2e43;
  --accent-2: #ff5c6c;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 46, 67, .12);
  --good: #3ddc84;
  --good-soft: rgba(61, 220, 132, .10);
  --topbar: rgba(11, 11, 13, .78);
  --ascii: rgba(255, 46, 67, .38);
  --shadow: 0 0 0 1px rgba(255,46,67,.25), 0 10px 30px rgba(0,0,0,.5);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f5f3;
  --bg-2: #efeeeb;
  --card: #ffffff;
  --card-2: #f9f8f6;
  --ink: #131316;
  --muted: #676a72;
  --line: #e3e1dd;
  --accent: #e0182d;
  --accent-2: #c40f22;
  --accent-ink: #ffffff;
  --accent-soft: #ffecee;
  --good: #12875a;
  --good-soft: #e6f5ee;
  --topbar: rgba(246, 245, 243, .85);
  --ascii: rgba(224, 24, 45, .22);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 26px rgba(0,0,0,.08);
  color-scheme: light;
}
:root { --radius: 14px; --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace; }

/* ================= BASE ================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; }
h2 .slash { color: var(--accent); font-family: var(--mono); font-weight: 600; }
.cursor { animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s, border-color .12s;
  font-size: 15px;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 24px rgba(255,46,67,.35); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ================= TOP BAR ================= */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--topbar); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { font-family: var(--mono); font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: .08em; white-space: nowrap; }
.logo .br { color: var(--accent); }
.nav { display: flex; gap: 20px; margin-right: auto; font-family: var(--mono); font-size: 13px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a::before { content: "./"; color: transparent; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::before { color: var(--accent); }
.theme-toggle { font-family: var(--mono); font-size: 12px; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 7px 10px; cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
@media (max-width: 720px) { .nav { display: none; } .logo { margin-right: auto; } #header-signup { display: none; } }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
#ascii-bg {
  position: absolute; inset: 0; margin: 0; z-index: 0; pointer-events: none; user-select: none;
  font: 12px/1 var(--mono); color: var(--ascii); white-space: pre; overflow: hidden;
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 70%);
          mask-image: linear-gradient(100deg, transparent 15%, #000 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 20px; padding-top: 64px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 580px; margin: 0 0 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.boot { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 18px; min-height: 1.5em; }
.boot .pr { color: var(--accent); }
.cube-wrap { display: flex; flex-direction: column; align-items: center; }
.cube { font: 13px/1.05 var(--mono); color: var(--accent); margin: 0; white-space: pre; text-shadow: 0 0 12px rgba(255,46,67,.35); }
.cube-cap { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; letter-spacing: .1em; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .cube-wrap { display: none; } }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 8px; position: relative; z-index: 1; }
.trust div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.trust b { display: block; font-size: 15px; margin-bottom: 2px; }
.trust span { color: var(--muted); font-size: 13px; }
.trust .ico { font-family: var(--mono); color: var(--accent); font-size: 12px; margin-bottom: 8px; display: block; }
@media (max-width: 720px) { .trust { grid-template-columns: 1fr; } }

/* ================= TOOLBAR ================= */
.toolbar { position: sticky; top: 62px; z-index: 10; background: var(--bg); padding: 14px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); margin: 8px 0 20px; }
.search { flex: 1 1 260px; position: relative; }
.search input {
  width: 100%; padding: 11px 14px 11px 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 14px var(--mono); outline: none;
}
.search input:focus { border-color: var(--accent); }
.search::before { content: ">"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--accent); font-family: var(--mono); font-weight: 700; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font: 600 12px var(--mono); color: var(--muted); }
.chip:hover { color: var(--ink); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
select { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 12px var(--mono); }

/* ================= GRID / CARDS ================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: var(--card-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; background: rgba(10,10,12,.82); color: var(--good); font: 700 11px var(--mono); padding: 4px 8px; border-radius: 6px; }
.badge.right { left: auto; right: 10px; color: #f1f1f3; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 650; font-size: 15px; min-height: 1.5em; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; }
.price { font-weight: 800; font-size: 18px; }
.price small { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font: 600 11px var(--mono); background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 5px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); grid-column: 1 / -1; font-family: var(--mono); white-space: pre; }

/* ================= ITEM PAGE ================= */
.back { display: inline-block; margin: 22px 0 14px; color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 13px; }
.back:hover { color: var(--accent); }
.item { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 880px) { .item { grid-template-columns: 1fr; gap: 20px; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--card-2); cursor: zoom-in; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumbs img { aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: .65; }
.thumbs img.active, .thumbs img:hover { border-color: var(--accent); opacity: 1; }

.buybox { position: sticky; top: 82px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.buybox h1 { font-size: 26px; }
.buybox .price { font-size: 30px; }
.stars { color: var(--accent); letter-spacing: 2px; font-family: var(--mono); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.fact { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fact span { display: block; font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fact b { font-size: 15px; }
.colors { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.colors span { font-size: 12px; border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; }
.note { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 14px; margin: 14px 0; font-size: 14px; }
.note.fit { background: var(--good-soft); border-left-color: var(--good); }
.note b { display: block; margin-bottom: 2px; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.signup-hint { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.signup-hint a { color: var(--accent); font-weight: 600; }

.section { margin: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.qc-grid img { aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--line); transition: border-color .15s; }
.qc-grid img:hover { border-color: var(--accent); }
.qc-check { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font: 12px var(--mono); color: var(--muted); }
.qc-check b { color: var(--good); }

.toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.toggle button { border: 0; background: none; padding: 6px 14px; border-radius: 6px; font: 600 12px var(--mono); cursor: pointer; color: var(--muted); }
.toggle button.active { background: var(--accent); color: #fff; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); }
td { font-family: var(--mono); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--accent-soft); }
td:first-child { font-weight: 700; color: var(--accent); }
.size-tip { margin-top: 12px; padding: 12px 14px; background: var(--good-soft); border-left: 3px solid var(--good); border-radius: 8px; font-size: 14px; }

/* ================= STEPS / CTA ================= */
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .n { font: 700 13px var(--mono); color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step p a { color: var(--accent); }

.cta-band { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--accent); border-radius: 18px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 48px 0; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: 26px; margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band .cta-ascii { position: absolute; inset: 0; margin: 0; z-index: 0; font: 11px/1 var(--mono); color: var(--ascii); white-space: pre; overflow: hidden; pointer-events: none; opacity: .7;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }

/* ================= GUIDE ================= */
.guide { max-width: 820px; }
.guide h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 40px; }
.guide .step { margin-bottom: 12px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.guide .step .n { margin: 2px 0 0; font-size: 15px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 8px; }
details[open] { border-color: var(--accent); }
summary { cursor: pointer; font-weight: 650; list-style: none; }
summary::before { content: "+ "; font-family: var(--mono); color: var(--accent); }
details[open] summary::before { content: "- "; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--line); padding: 30px 0 20px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.footer .logo { font-size: 15px; }
.disclosure { margin: 0; }
.footer-sig { margin-top: 20px; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* ================= LIGHTBOX ================= */
.lightbox { position: fixed; inset: 0; background: rgba(6,6,8,.94); z-index: 100; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 8px; object-fit: contain; }
.lb-close { position: absolute; top: 14px; right: 18px; font-size: 34px; background: none; border: 0; color: #fff; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 40px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; width: 54px; height: 54px; border-radius: 10px; cursor: pointer; line-height: 1; }
.lb-nav:hover { border-color: #ff2e43; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-count { position: absolute; bottom: 18px; color: #aaa; font-size: 13px; }

/* Page fade-in */
#app > * { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= ACCOUNTS / SUPPORT / ADMIN ================= */
.hdr-link { font-family: var(--mono); font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.hdr-link:hover { color: var(--accent); }
#saved-link { color: var(--accent); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.accent { color: var(--accent); }
.center { text-align: center; }
.right { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.center-row { justify-content: center; }
.narrow { max-width: 640px; }
.page-head { margin: 36px 0 18px; }
.page-head p { margin: 0; }
.item-top { display: flex; justify-content: space-between; }

/* hearts */
.heart { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px; transition: transform .15s, color .15s; }
.heart:hover { transform: scale(1.15); color: var(--accent); }
.heart.on { color: var(--accent); }
.heart.on-img { position: absolute; bottom: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; background: rgba(10,10,12,.75); color: #f1f1f3; font-size: 19px; }
.heart.on-img.on { color: var(--accent); }
.heart.big { font-size: 28px; }
.buybox-top { display: flex; justify-content: space-between; align-items: center; }

/* panels & forms */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 18px 0; }
.panel h3 { margin-top: 0; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
label .hint { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=file]), textarea, .panel select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: 14px inherit; font-family: inherit; outline: none;
}
textarea.mono { font-family: var(--mono); font-size: 13px; }
input:focus, textarea:focus, .panel select:focus { border-color: var(--accent); }
input.filled, textarea.filled { border-color: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.form-error { color: var(--accent); font-size: 14px; min-height: 1.2em; margin-bottom: 10px; }
.btn-danger { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-danger:hover { background: var(--accent); color: #fff; }
details.panel.danger summary { color: var(--accent); }
.lock { display: inline-block; text-align: left; color: var(--accent); }
.link-list { display: grid; gap: 8px; margin: 14px 0 20px; }
.link-list a { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--bg-2); }
.link-list a:hover { border-color: var(--accent); }

/* pills */
.pill { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 5px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill-open { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.pill-answered, .pill-live { color: var(--good); border-color: var(--good); background: var(--good-soft); }
.pill-admin { color: var(--accent); border-color: var(--accent); }
a.chip { text-decoration: none; }

/* support */
.ticket-list { display: grid; gap: 8px; margin: 16px 0 40px; }
.ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.ticket-row:hover { border-color: var(--accent); }
.thread { display: grid; gap: 10px; margin: 20px 0; }
.msg { padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); max-width: 85%; }
.msg.mine { margin-left: auto; }
.msg.from-admin { border-left: 3px solid var(--accent); }
.msg-head { color: var(--muted); margin-bottom: 4px; }
.msg.from-admin .msg-head { color: var(--accent); }
.msg-body { white-space: pre-wrap; }

/* admin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats > * { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; }
.stats span { display: block; font: 11px var(--mono); color: var(--muted); text-transform: uppercase; }
.stats b { font-size: 28px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
.import-box { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-color: var(--accent); }
.import-box ol { margin: 8px 0 0; padding-left: 18px; }
.bookmarklet { cursor: grab; white-space: nowrap; }
.admin-table td { font-family: inherit; vertical-align: middle; }
.admin-table td:first-child { color: inherit; }
.admin-table a { text-decoration: none; }
.mini { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .grid3 { grid-template-columns: 1fr; } }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 14px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-hint { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.pick { cursor: pointer; display: inline; margin: 0; font-weight: 600; }
.thumbs-ed, .tray-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.te { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; background: var(--bg-2); }
.te img { width: 100%; height: 100%; object-fit: cover; }
.te-cover { position: absolute; top: 4px; left: 4px; font: 700 10px var(--mono); background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 4px; }
.te-actions { position: absolute; inset: auto 0 0 0; display: flex; gap: 2px; justify-content: center; padding: 4px; background: rgba(10,10,12,.8); opacity: 0; transition: opacity .15s; }
.te:hover .te-actions, .te-actions.show { opacity: 1; }
.te-actions button { background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 4px; font: 600 11px var(--mono); padding: 3px 6px; cursor: pointer; }
.te-actions button:hover { border-color: #ff2e43; color: #ff2e43; }
.tray-panel { border-color: var(--good); }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 14px 0; border-top: 1px solid var(--line); margin-bottom: 40px; }

/* toast */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 10px; font: 600 13px var(--mono); transition: all .2s; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) { .hdr-link#account-link { order: 2; } }

/* header fit on mid-size screens */
.nav a, #header-signup { white-space: nowrap; }
.topbar-inner { gap: 16px; }
@media (max-width: 1100px) { #header-signup { display: none; } .nav { gap: 14px; } }
@media (max-width: 860px) { .nav { display: none; } .logo { margin-right: auto; } }
.tray-group { margin-top: 14px; }
.tray-grid { margin-top: 8px; }
.tray-group.album { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.te-name { position: absolute; top: 4px; left: 4px; right: 4px; font: 600 10px var(--mono); background: rgba(10,10,12,.8); color: #f1f1f3; padding: 2px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-style { left: auto; right: 4px; background: var(--good); }
