:root {
  --bg: #000;
  --panel: #0d0f10;
  --panel2: #121517;
  --line: #1f2326;
  --text: #e9ecee;
  --muted: #9aa1a6;
  --steel: #c3c7cb;
  --lime: #b4f000;
  --lime-ink: #000;
  --red: #ff6b6b;
  --amber: #ffc24b;
  --blue: #6cb8ff;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: Montserrat, system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--lime); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100%; }
.side { border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .04em; text-decoration: none; color: var(--text); padding: 4px 8px 18px; }
.side .brand img { width: 34px; height: 34px; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.side a.nav:hover { color: var(--text); background: var(--panel); }
.side a.nav.on { color: var(--lime-ink); background: var(--lime); }
.side a.nav svg { width: 18px; height: 18px; flex: none; }
.side .group { color: #5c6368; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding: 16px 10px 6px; }
.side .me { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 8px 0; font-size: 13px; color: var(--muted); }
.side .me b { display: block; color: var(--text); }
.side .me button { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; margin-top: 6px; font-size: 13px; }
.badge { margin-left: auto; background: var(--lime); color: #000; border-radius: 99px; font-size: 11px; font-weight: 800; padding: 0 7px; }
.main { padding: 32px clamp(16px, 4vw, 48px) 80px; max-width: 1180px; width: 100%; min-width: 0; }
.topbar { display: none; }

h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; line-height: 1.15; }
h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 15px; font-weight: 800; }
.sub { color: var(--muted); margin-top: 6px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 18px; }
.mt2 { margin-top: 32px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { border-color: #3a4044; }
.btn.primary { background: var(--lime); color: #000; border-color: var(--lime); }
.btn.primary:hover { background: #c8ff1a; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--lime); cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; }

label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--steel); }
label.f .hint { font-weight: 500; color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 15px; font-weight: 500;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--lime); margin-top: 2px; flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack { display: grid; gap: 16px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card.hl { border-color: var(--lime); }
.card a.cover-link { text-decoration: none; color: inherit; }
.stat .n { font-size: 28px; font-weight: 900; }
.stat .l { color: var(--muted); font-size: 13px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--lime); transform: translateY(-2px); }
.tile svg { width: 30px; height: 30px; color: var(--lime); }
.tile b { font-size: 17px; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; border: 1px solid currentColor; white-space: nowrap; }
.st-draft { color: var(--muted); }
.st-submitted, .st-in_review { color: var(--amber); }
.st-changes { color: #ff9f43; }
.st-approved, .st-delivered { color: var(--blue); }
.st-live { color: var(--lime); }
.st-rejected, .st-takedown { color: var(--red); }

.notice { border: 1px solid var(--line); border-left: 3px solid var(--amber); background: var(--panel); border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.notice.ok { border-left-color: var(--lime); }
.notice.err { border-left-color: var(--red); }
.notice ul { margin: 6px 0 0 18px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }

.cover { width: 52px; height: 52px; border-radius: 8px; background: var(--panel2) center/cover; border: 1px solid var(--line); flex: none; }
.cover.lg { width: 220px; height: 220px; border-radius: 14px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.rel-card { text-decoration: none; color: inherit; }
.rel-card .cover { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; color: #3a4044; }
.rel-card .cover svg { width: 46px; height: 46px; }
.rel-card b { display: block; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-card span.muted { font-size: 13px; }

/* ---------- wizard ---------- */
.wizard { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.steps { position: sticky; top: 20px; display: grid; gap: 4px; }
.steps button { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--muted); padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: left; font-weight: 700; font-size: 14px; }
.steps button i { width: 24px; height: 24px; border-radius: 99px; border: 1.5px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 12px; flex: none; }
.steps button.on { color: var(--text); background: var(--panel); }
.steps button.on i { border-color: var(--lime); color: var(--lime); }
.steps button.done i { background: var(--lime); border-color: var(--lime); color: #000; }
.pane { display: grid; gap: 20px; }
.pane-foot { display: flex; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
.saved { font-size: 13px; color: var(--muted); align-self: center; }

.drop { position: relative; border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px; display: flex; gap: 18px; align-items: center; background: var(--panel); cursor: pointer; }
.drop:hover, .drop.drag { border-color: var(--lime); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .art { width: 140px; height: 140px; border-radius: 10px; background: var(--panel2) center/cover; border: 1px solid var(--line); flex: none; display: grid; place-items: center; color: #3a4044; }
.drop .art svg { width: 40px; height: 40px; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .2s; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice button { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; color: var(--muted); font-size: 13px; }
.choice button b { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.choice button.on { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.storelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.storelist .check { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.countries { max-height: 340px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; padding: 4px; }
.track { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.track > header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.track > header .no { width: 28px; height: 28px; border-radius: 99px; background: var(--panel2); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.track > header b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .body { padding: 4px 16px 18px; display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.tags span { background: var(--line); border-radius: 99px; padding: 3px 4px 3px 11px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.tags span button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 5px; }
.tags input { flex: 1; min-width: 160px; border: 0 !important; background: transparent !important; padding: 6px !important; outline: none !important; }
audio { width: 100%; height: 38px; }

/* ---------- auth & plans ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .box { width: min(420px, 100%); }
.auth .brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 26px; text-decoration: none; color: var(--text); font-weight: 900; letter-spacing: .06em; }
.auth .brand img { width: 64px; height: 64px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan .price { font-size: 30px; font-weight: 900; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--steel); font-size: 14px; flex: 1; }
.plan li::before { content: "✓"; color: var(--lime); font-weight: 900; margin-right: 8px; }
.plan .tag { position: absolute; top: -11px; right: 18px; background: var(--lime); color: #000; font-size: 11px; font-weight: 900; letter-spacing: .08em; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: #000; font-weight: 700; padding: 11px 20px; border-radius: 99px; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
.toast.err { background: var(--red); }
.loading { color: var(--muted); padding: 40px 0; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }
.bars { display: grid; gap: 8px; }
.bars .b { display: grid; grid-template-columns: 140px 1fr 100px; gap: 12px; align-items: center; font-size: 14px; }
.bars .b > div { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bars .b > div i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 700; font-size: 13px; }
.tabs a.on { background: var(--text); color: #000; border-color: var(--text); }

@media (max-width: 1180px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0; z-index: 40; background: var(--bg); height: 100%; }
  .side.open { display: flex; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(0,0,0,.9); backdrop-filter: blur(8px); z-index: 30; }
  .topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .04em; text-decoration: none; color: var(--text); }
  .topbar .brand img { width: 30px; height: 30px; }
  .main { padding-top: 22px; }
  .grid2, .grid3, .grid4, .plans, .choice { grid-template-columns: 1fr; }
  .wizard { grid-template-columns: 1fr; }
  .steps { position: static; display: flex; overflow-x: auto; gap: 2px; }
  .steps button span { display: none; }
  .cover.lg { width: 100%; height: auto; aspect-ratio: 1; }
  .bars .b { grid-template-columns: 90px 1fr 80px; }
  .drop { flex-direction: column; align-items: flex-start; }
}
