/* Nexxen Sales — mobile-first, light glass UI, ink + gold */
:root {
  --ink: #0b1220;
  --ink-2: #1c2638;
  --muted: #64708a;
  --line: rgba(11, 18, 32, .09);
  --bg: #f3f4f7;
  --card: rgba(255, 255, 255, .86);
  --card-solid: #fff;
  --gold: #c9a227;
  --gold-2: #e7c75a;
  --gold-ink: #6b5410;
  --mu: #0f766e;
  --mu-soft: #d9f2ee;
  --mg: #c2560c;
  --mg-soft: #fde8d7;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 8px 24px rgba(11, 18, 32, .07);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(201, 162, 39, .14), transparent 60%),
    radial-gradient(700px 500px at -20% 10%, rgba(15, 118, 110, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.hidden { display: none !important; }

/* ── Boot / login ───────────────────────── */
.boot { min-height: 100vh; display: grid; place-items: center; }
.logo-mark {
  width: 56px; height: 56px; border-radius: 16px;
  background: conic-gradient(from 210deg, var(--gold), var(--gold-2), var(--ink-2), var(--gold));
  box-shadow: 0 10px 30px rgba(201, 162, 39, .35), inset 0 0 0 1px rgba(255, 255, 255, .3);
  position: relative;
}
.logo-mark::after {
  content: "N"; position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 26px; color: #fff; letter-spacing: -.02em;
}
.boot .logo-mark { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

.login {
  min-height: 100vh; padding: calc(48px + var(--safe-t)) 20px 32px;
  display: flex; flex-direction: column; gap: 22px; max-width: 460px; margin: 0 auto;
}
.login h1 { font-size: 30px; line-height: 1.1; margin: 12px 0 0; letter-spacing: -.02em; }
.login p.sub { margin: 0; color: var(--muted); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who button {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--r);
  padding: 14px; text-align: left; display: flex; gap: 10px; align-items: center;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, border-color .15s;
}
.who button:active { transform: scale(.97); }
.who button.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .25), var(--shadow); }
.who small { display: block; color: var(--muted); font-size: 12px; }

/* ── Shell ─────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(243, 244, 247, .78);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top h1 { font-size: 20px; margin: 0; flex: 1; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .back { border: 0; background: none; font-size: 26px; line-height: 1; padding: 0 4px 0 0; cursor: pointer; }
main { padding: 14px 16px calc(var(--nav-h) + 96px + var(--safe-b)); max-width: 760px; margin: 0 auto; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border-top: 1px solid var(--line);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600;
}
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--ink); }
.nav a.on svg { color: var(--gold); }

.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + 18px + var(--safe-b)); z-index: 25;
  height: 56px; min-width: 56px; padding: 0 20px; border-radius: 28px; border: 0;
  background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: #fff; font-weight: 700;
  display: flex; align-items: center; gap: 8px; justify-content: center;
  box-shadow: 0 10px 28px rgba(11, 18, 32, .35), inset 0 0 0 1px rgba(231, 199, 90, .35);
  cursor: pointer;
}
.fab svg { width: 22px; height: 22px; color: var(--gold-2); }
.fab:active { transform: scale(.96); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 14px; color: #fff; border: 0; cursor: pointer;
}
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.av-MU { background: linear-gradient(135deg, #14b8a6, var(--mu)); }
.av-MG { background: linear-gradient(135deg, #f59e0b, var(--mg)); }

/* ── Building blocks ───────────────────── */
.card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card + .card, .card + .sec, .sec + .card { margin-top: 12px; }
.sec { margin: 22px 2px 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; align-items: center; }
.sec a, .sec button { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--gold-ink); background: none; border: 0; cursor: pointer; font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.b { font-weight: 700; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gap { height: 12px; }
.center { text-align: center; }

.btn {
  border: 1px solid var(--line); background: var(--card-solid); border-radius: 14px;
  min-height: 44px; padding: 0 16px; font-weight: 650; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: #fff; border-color: transparent; }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241b02; border-color: transparent; }
.btn.wa { background: #25d366; color: #05391b; border-color: transparent; }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btns.three { grid-template-columns: 1fr 1fr 1fr; }

.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin: 0 0 6px 2px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card-solid); outline: none;
  font-size: 16px; /* stops iOS zoom */
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .2); }

.seg { display: flex; background: rgba(11, 18, 32, .06); border-radius: 13px; padding: 3px; gap: 3px; }
.seg button {
  flex: 1; border: 0; background: none; border-radius: 10px; min-height: 38px; padding: 0 10px;
  font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(11, 18, 32, .12); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card-solid); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips.wrap { flex-wrap: wrap; overflow: visible; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(11, 18, 32, .06); white-space: nowrap; }
.badge.new { background: #dcfce7; color: #166534; }
.badge.used { background: #ede9fe; color: #5b21b6; }
.badge.MU_MG { background: var(--mu-soft); color: var(--mu); }
.badge.MG_MU { background: var(--mg-soft); color: var(--mg); }
.badge.available { background: #dcfce7; color: #166534; }
.badge.reserved { background: #fef3c7; color: #92400e; }
.badge.sold { background: #e5e7eb; color: #374151; }
.badge.draft { background: #e5e7eb; color: #374151; }
.badge.discussing { background: #e0f2fe; color: #075985; }
.badge.agreed { background: #fef3c7; color: #92400e; }
.badge.shipped { background: #ede9fe; color: #5b21b6; }
.badge.delivered { background: #dcfce7; color: #166534; }
.badge.cancelled { background: #fee2e2; color: #991b1b; }

/* ── Dashboard ─────────────────────────── */
.hello { margin: 6px 2px 14px; }
.hello h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 14px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 650; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.stat .v small { font-size: 13px; font-weight: 650; color: var(--muted); }
.stat.wide { grid-column: span 2; }
.hero-val {
  background: linear-gradient(135deg, #111a2c, #0b1220); color: #fff; border: 0;
  position: relative; overflow: hidden;
}
.hero-val::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(231, 199, 90, .45), transparent 70%); }
.hero-val .k { color: rgba(255, 255, 255, .65); }
.hero-val .v small { color: var(--gold-2); }
.bar { height: 8px; border-radius: 4px; background: rgba(11, 18, 32, .07); overflow: hidden; display: flex; margin-top: 10px; }
.bar i { display: block; height: 100%; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend b { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button {
  border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; cursor: pointer;
}
.quick svg { width: 24px; height: 24px; color: var(--gold); }
.feed .it { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.feed .it:first-child { border-top: 0; padding-top: 0; }
.feed .it:last-child { padding-bottom: 0; }
.thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #e9ebf0 center/cover; flex: none; }

/* ── Grids & lists ─────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 560px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.ph {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e9ebf0;
  cursor: pointer; border: 0; padding: 0;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.cut img { object-fit: contain; background: repeating-conic-gradient(#eef0f4 0 25%, #fff 0 50%) 0 0/16px 16px; }
.ph .tag { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: rgba(11, 18, 32, .72); color: #fff; }
.ph .tick {
  position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0, 0, 0, .25); display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 900;
}
.ph.sel .tick { background: var(--gold); border-color: var(--gold); }
.ph.sel { outline: 3px solid var(--gold); outline-offset: -3px; }
.ph .spin { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .6); }

.items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .items { grid-template-columns: 1fr 1fr 1fr; } }
.item {
  background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .7); cursor: pointer; display: flex; flex-direction: column;
}
.item .img { aspect-ratio: 1; background: #fff center/contain no-repeat; position: relative; }
.item .img.ph0 { background: linear-gradient(135deg, #eef0f4, #e3e6ec); display: grid; place-items: center; color: var(--muted); }
.item .img .badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.item .body { padding: 10px 12px 12px; }
.item .t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .p { font-weight: 800; font-size: 15px; margin-top: 2px; }
.item .p small { font-weight: 600; color: var(--muted); font-size: 11px; display: block; }

.list .li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.list .li:first-child { border-top: 0; padding-top: 0; }
.list .li:last-child { padding-bottom: 0; }
.stack { display: flex; }
.stack .thumb { width: 40px; height: 40px; border: 2px solid #fff; margin-left: -12px; }
.stack .thumb:first-child { margin-left: 0; }

.search { position: relative; margin-bottom: 10px; }
.search input { padding-left: 40px; }
.search svg { position: absolute; left: 13px; top: 13px; width: 20px; height: 20px; color: var(--muted); }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: var(--gold); margin-bottom: 8px; }
.empty h3 { color: var(--ink); margin: 0 0 6px; }

/* ── Item detail ───────────────────────── */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .g {
  flex: none; width: 78%; max-width: 420px; aspect-ratio: 1; border-radius: var(--r); scroll-snap-align: center;
  background: #fff center/contain no-repeat; box-shadow: var(--shadow); position: relative; border: 0; padding: 0; cursor: pointer;
}
.gallery .g.add { display: grid; place-items: center; background: rgba(255, 255, 255, .6); border: 2px dashed rgba(11, 18, 32, .15); width: 40%; color: var(--muted); font-weight: 650; }
.gallery .g .cover { position: absolute; left: 10px; top: 10px; }
.price-conv { font-size: 12px; color: var(--muted); margin: 6px 2px 0; }
.money { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.money .seg { min-width: 120px; }

/* ── Thread ────────────────────────────── */
.thread .msg { display: flex; gap: 8px; margin: 10px 0; align-items: flex-end; }
.thread .msg.me { flex-direction: row-reverse; }
.bubble { max-width: 78%; padding: 9px 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(11, 18, 32, .08); }
.msg.me .bubble { background: var(--ink); color: #fff; }
.bubble .offer { display: inline-block; margin-top: 4px; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241b02; }
.bubble .meta { font-size: 10px; opacity: .6; margin-top: 3px; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.composer textarea { min-height: 44px; height: 44px; padding: 10px 12px; }
.composer .btn { flex: none; }

/* ── Order lines ───────────────────────── */
.line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line .price-in { width: 110px; min-height: 38px; padding: 6px 10px; font-size: 15px; border-radius: 10px; text-align: right; }
.totals { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 2px solid var(--ink); }
.totals .v { font-size: 22px; font-weight: 800; }
.steps { display: flex; gap: 4px; margin: 4px 0 12px; }
.steps button {
  flex: 1; border: 0; padding: 8px 0 0; background: none; font-size: 10.5px; font-weight: 700; color: var(--muted); cursor: pointer;
  border-top: 4px solid rgba(11, 18, 32, .1);
}
.steps button.done { border-top-color: var(--gold); color: var(--ink); }
.steps button.cur { border-top-color: var(--ink); color: var(--ink); }

/* ── Sheets ────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(11, 18, 32, .4); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92vh; overflow: auto;
  background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 16px calc(20px + var(--safe-b));
  box-shadow: 0 -10px 40px rgba(11, 18, 32, .25); animation: up .26s cubic-bezier(.2, .9, .3, 1);
  max-width: 760px; margin: 0 auto;
}
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(11, 18, 32, .18); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 12px; font-size: 19px; }
.menu button {
  width: 100%; border: 0; background: var(--card-solid); padding: 14px 16px; text-align: left; font-weight: 600;
  display: flex; gap: 12px; align-items: center; cursor: pointer; border-top: 1px solid var(--line);
}
.menu button:first-child { border-radius: 14px 14px 0 0; border-top: 0; }
.menu button:last-child { border-radius: 0 0 14px 14px; }
.menu button:only-child { border-radius: 14px; }
.menu button svg { width: 20px; height: 20px; color: var(--gold); }
.menu button.danger { color: var(--bad); }
.menu button.danger svg { color: var(--bad); }
.pick .li { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.pick .li.on { background: rgba(201, 162, 39, .12); border-radius: 12px; }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(11, 18, 32, .2); flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: transparent; }
.on > .check { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ── Editor ────────────────────────────── */
.editor { position: fixed; inset: 0; z-index: 70; background: #0b0f17; color: #fff; display: flex; flex-direction: column; }
.ed-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; }
.ed-top h2 { flex: 1; margin: 0; font-size: 17px; }
.ed-top .btn { min-height: 38px; }
.ed-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px; position: relative; }
.ed-stage canvas {
  max-width: 100%; max-height: 100%; border-radius: 10px;
  background: repeating-conic-gradient(#2a3040 0 25%, #1d2230 0 50%) 0 0/20px 20px;
}
.ed-busy {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 15, 23, .72);
  text-align: center; padding: 24px; font-weight: 600;
}
.ed-busy .pbar { width: 220px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; margin: 12px auto 0; }
.ed-busy .pbar i { display: block; height: 100%; width: 0; background: var(--gold-2); transition: width .2s; }
.ed-panel { background: #121826; border-radius: 20px 20px 0 0; padding: 12px 14px calc(14px + var(--safe-b)); max-height: 46vh; overflow: auto; }
.ed-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.ed-tabs button { flex: 1; border: 0; border-radius: 10px; padding: 9px 0; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .7); font-weight: 700; font-size: 13px; cursor: pointer; }
.ed-tabs button.on { background: var(--gold); color: #241b02; }
.ed-panel .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .08); color: #fff; }
.ed-panel .btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241b02; }
.ed-panel .seg { background: rgba(255, 255, 255, .08); }
.ed-panel .seg button { color: rgba(255, 255, 255, .65); }
.ed-panel .seg button.on { background: rgba(255, 255, 255, .92); color: var(--ink); }
.slider { display: grid; grid-template-columns: 92px 1fr 40px; gap: 10px; align-items: center; margin: 8px 0; font-size: 13px; }
.slider output { text-align: right; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--gold); height: 28px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.swatch { width: 40px; height: 40px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .15); cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(231, 199, 90, .35); }
.swatch.trans { background: repeating-conic-gradient(#555 0 25%, #888 0 50%) 0 0/12px 12px; }
.ed-note { font-size: 12px; color: rgba(255, 255, 255, .55); margin: 6px 0; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; font-size: 14px; }
.toggle input { width: 46px; height: 28px; accent-color: var(--gold); }

.checks .ck { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 14px; }
.checks .ck:first-child { border-top: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.dot.ok { background: #22c55e; } .dot.warn { background: #f59e0b; } .dot.bad { background: #ef4444; }
.score { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.score .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.palette { display: flex; gap: 6px; margin: 6px 0; }
.palette span { flex: 1; height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); }

/* ── Toast ─────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 90px + var(--safe-b)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 90; max-width: calc(100vw - 32px); text-align: center;
  box-shadow: 0 10px 30px rgba(11, 18, 32, .3);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--bad); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(11, 18, 32, .15); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.upbar { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 95; transition: width .2s; }
a.card, a.item, a.li, a.it, a.badge, a.stat { text-decoration: none; color: inherit; display: block; }
a.li, a.it { display: flex; }
a.item { display: flex; }
.ed-top .btn:not(.gold) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .12); color: #fff; }
