:root {
  --bg: #0c0c0f;
  --bg-soft: #101013;
  --surface: #131316;
  --surface-2: #1a1a1f;
  --border: #26262d;
  --border-soft: #1c1c22;
  --text: #e6e5e9;
  --muted: #85838e;
  --muted-2: #5d5b66;
  --accent: #b83c58;
  --accent-2: #d2607b;
  --accent-hover: #a23350;
  --wine: #6d2339;
  --accent-soft: rgba(184, 60, 88, 0.16);
  --input: #101013;
  --track: #2a2a32;
  --btn: #7b1d34;
  --btn-hover: #651728;
  --green: #2ecc71;
  --green-soft: rgba(46, 204, 113, 0.14);
  --red: #ff5c6c;
  --red-soft: rgba(255, 92, 108, 0.14);
  --amber: #ffb84d;
  --amber-soft: rgba(255, 184, 77, 0.14);
  --blue: #4da3ff;
  --blue-soft: rgba(77, 163, 255, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 248px;
}

[data-theme="light"] {
  --bg: #e9e7e2;
  --bg-soft: #e1ded8;
  --surface: #f4f2ee;
  --surface-2: #dcd9d2;
  --input: #fbfaf8;
  --track: #d3d0c8;
  --border: #cdcac2;
  --border-soft: #d8d5cd;
  --text: #1a1a1a;
  --muted: #5f5d57;
  --muted-2: #8b8880;
  --accent: #7b1d34;
  --accent-2: #7b1d34;
  --accent-hover: #651728;
  --wine: #6d2339;
  --accent-soft: rgba(123, 29, 52, 0.10);
  --green: #1f9d5b;
  --green-soft: rgba(31, 157, 91, 0.12);
  --red: #d6455a;
  --red-soft: rgba(214, 69, 90, 0.12);
  --amber: #c98a1e;
  --amber-soft: rgba(201, 138, 30, 0.14);
  --blue: #2f7fd6;
  --blue-soft: rgba(47, 127, 214, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--border-soft);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.content { padding: clamp(16px, 2.2vw, 40px); width: 100%; }

/* ---------- Sidebar ---------- */
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 10px 18px;
  color: var(--text);
}

.btn-create {
  display: block;
  text-align: center;
  background: var(--btn);
  color: #fff;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  margin-bottom: 16px;
}
.btn-create:hover { background: var(--btn-hover); text-decoration: none; color: #fff; }

.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); padding: 14px 10px 6px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
}
.nav-item:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent-2); }
.nav-item .ico { width: 18px; text-align: center; opacity: 0.85; }

/* ---------- Topbar ---------- */
.topbar .plan {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip .name { font-weight: 600; }
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--btn); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ---------- Cards / stat tiles ---------- */
.page-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 20px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px;
}
.card h3 { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 28px; font-weight: 800; }
.stat-note { font-size: 12px; color: var(--muted); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--muted-2); padding: 10px 12px; border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.table td { padding: 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table .muted { color: var(--muted); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
}
.badge-draft { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.badge-moderation { background: var(--amber-soft); color: var(--amber); }
.badge-released { background: var(--green-soft); color: var(--green); }
.badge-rejected { background: var(--red-soft); color: var(--red); }
.badge-blocked { background: var(--red-soft); color: var(--red); }
.badge-deleted { background: var(--surface-2); color: var(--muted-2); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a {
  padding: 10px 16px; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.form-row .req::after { content: " *"; color: var(--accent-2); }
.form-row .help { font-size: 12px; color: var(--muted); margin-top: 4px; }

input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="time"], input[type="number"], select, textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

input[type="file"] { padding: 8px 0; }

.radio-group { display: flex; gap: 18px; align-items: center; }
.radio-group label { font-weight: 500; margin: 0; display: flex; align-items: center; gap: 6px; }
.checkbox-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.checkbox-list label { font-weight: 500; display: flex; align-items: center; gap: 8px; margin: 0; }

.errorlist { color: var(--red); margin: 6px 0 0; padding-left: 16px; font-size: 13px; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--red); }

.form-actions { display: flex; gap: 10px; margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: rgba(255,92,108,0.25); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Messages ---------- */
.messages { list-style: none; padding: 0; margin: 0; position: fixed; top: 78px; right: 24px; z-index: 70; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.messages li { pointer-events: auto; box-shadow: 0 6px 20px rgba(0,0,0,.12); transition: opacity .4s, transform .4s; background-clip: padding-box; }
.messages li.fade { opacity: 0; transform: translateY(-6px); }
.messages .success { background: #dcebdf; } .messages .error { background: #f6dcdc; } .messages .info { background: #dde7f3; }
.messages li { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 8px; font-weight: 500; border: 1px solid transparent; }
.messages .success { background: var(--green-soft); color: var(--green); }
.messages .error { background: var(--red-soft); color: var(--red); }
.messages .info { background: var(--blue-soft); color: var(--blue); }

/* ---------- Cover / upload dropzone ---------- */
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; color: var(--muted);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.cover-preview { width: 120px; height: 120px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border); }

/* ---------- Analytics ---------- */
.platform-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.platform-pills a {
  padding: 7px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); color: var(--muted); font-weight: 500;
}
.platform-pills a:hover { color: var(--text); text-decoration: none; }
.platform-pills a.active { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar input, .toolbar select { width: auto; }

/* График «по дням» (inline-SVG): сглаженные линии, заливка, подписи у точек. */
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; max-height: 60vh; }
.chart .grid-line { stroke: var(--border-soft); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 12px; }
.chart .series .line { stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .series .area { fill-opacity: 0.12; stroke: none; }
.chart .series .dot { fill: var(--surface); stroke-width: 2; }
.chart .series .val-label { fill: var(--text); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.chart .series.off { display: none; }
.chart .crosshair { stroke: var(--muted-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hover-dot { stroke: var(--surface); stroke-width: 2; }
.chart-legend { display: flex; gap: 8px 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.chart-legend .legend-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: inherit; font-size: 13px; background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chart-legend .legend-item:hover { background: var(--bg-soft); }
.chart-legend .legend-item.off { color: var(--muted-2); text-decoration: line-through; }
.chart-legend .legend-item.off .legend-line { opacity: .35; }
.chart-legend .legend-line { width: 18px; height: 3px; border-radius: 2px; }

.chart-tooltip {
  position: absolute; z-index: 20; pointer-events: none;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; font-size: 12px;
  min-width: 150px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.chart-tooltip .tt-date { color: var(--muted-2); font-size: 11px; margin-bottom: 4px; }
.chart-tooltip .tt-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.chart-tooltip .tt-swatch { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.chart-tooltip .tt-name { color: var(--muted); flex: 1; }
.chart-tooltip .tt-val { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.auth-card h1 { margin: 0 0 4px; font-size: 22px; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; }
.auth-footer { margin-top: 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.flex { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Brand / navigation (new layout) ---------- */
a.brand { display: block; text-decoration: none; }
a.brand:hover { text-decoration: none; }

.nav-group { display: flex; flex-direction: column; }
.nav-toggle {
  background: transparent; border: none; width: 100%;
  text-align: left; cursor: pointer; font: inherit;
}
.nav-item .chev { margin-left: auto; font-size: 10px; opacity: 0.6; }

.nav-sub { display: flex; flex-direction: column; padding-left: 16px; margin: 2px 0 8px; gap: 1px; }
.nav-sub.collapsed { display: none; }
.nav-sub-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.nav-sub-item:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav-sub-item.active { color: var(--accent-2); background: var(--accent-soft); }

.count {
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 1px 8px; font-size: 11px; font-weight: 600;
}
.nav-sub-item.active .count, .tabs a.active .count { color: var(--accent-2); border-color: var(--accent); }

.nav-item.disabled { opacity: 0.45; pointer-events: none; }
.nav-sub-item.disabled { opacity: 0.45; pointer-events: none; }

/* ---------- Topbar: account + theme ---------- */
.topbar-right { display: flex; align-items: center; gap: 12px; }

.account-menu { position: relative; }
.account-btn {
  min-width: calc(5ch + 52px); justify-content: space-between;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
  color: var(--text); font: inherit; font-weight: 600;
}
.account-btn:hover { background: var(--bg-soft); }
.account-btn .name { min-width: 5ch; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px; z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.account-item {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border-radius: 6px; color: var(--text); background: transparent;
  border: none; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
}
.account-item:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.account-item-form { margin: 0; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 16px;
}
.theme-toggle:hover { background: var(--bg-soft); }

[hidden] { display: none !important; }

/* ---------- Home dashboard ---------- */
.grid-home { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .grid-home { grid-template-columns: 1fr; } }

.top-track { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.top-track:last-child { border-bottom: none; }
.top-track-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--border); }
.top-track-cover.placeholder { background: var(--surface-2); }
.top-track-meta { flex: 1; min-width: 0; }
.top-track-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-track-plays { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.summary-row:last-child { border-bottom: none; }
.summary-val { font-weight: 800; font-size: 20px; text-align: right; }

.stat-big { font-size: 40px; line-height: 1.1; margin-bottom: 8px; }

/* ---------- Distribution bars (демография / устройства / ОС / география) ---------- */
.bar-row { display: grid; grid-template-columns: minmax(96px, 0.9fr) minmax(0, 2fr) 40px; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
.bar-row:last-child { border-bottom: none; }
.bar-label { font-size: 13px; overflow-wrap: break-word; line-height: 1.25; }
.bar-label .plays { display: block; font-size: 11px; color: var(--muted); }
.bar-track { height: 12px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent-2); border-radius: 999px; }
.bar-fill--blue { background: var(--blue); }
.bar-fill--green { background: var(--green); }
.bar-fill--amber { background: var(--amber); }
.bar-pct { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Wizard: участники релиза ---------- */
.participant-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.participant-row:last-child { border-bottom: none; }


/* ---------- Wizard: расширенные поля ---------- */
.sub-title { font-size: 15px; font-weight: 700; margin: 22px 0 6px; color: var(--text); }
.check-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-weight: 500; cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-row .check-row { font-weight: 500; }
.ai-options { margin: 8px 0 0 26px; }
.ai-options ul { list-style: none; margin: 0; padding: 0; }
.ai-options label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 6px 0; }
.upload-progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.upload-progress-bar { height: 100%; width: 100%; background: var(--accent); }
.callout { border-left: 3px solid var(--border); }
.callout-warn { border-left-color: var(--amber); }
.callout-error { border-left-color: var(--red); }
.plain-list { margin: 8px 0 0; padding-left: 18px; }
.plain-list li { margin: 3px 0; }
.nav-sub-item.disabled { color: var(--muted-2); cursor: default; }
h3.page-sub { color: var(--text); font-size: 18px; margin: 4px 0 4px; }
.form-row label.check-row { display: flex; font-weight: 500; }

/* Демо-режим оплаты и закрытые блоки */
.demo-banner { background: var(--amber-soft); color: var(--amber); border: 1px dashed var(--amber); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.locked-card { text-align: center; padding: 32px 20px; }
.topbar a.plan { text-decoration: none; }

.person-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: center; padding: 6px 0; }

/* ---------- Wizard: этапы сверху, блоки, чек-лист справа ---------- */
:root { --topbar-h: 67px; }
[data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

.wiz-tabs-wrap { position: sticky; top: var(--topbar-h); z-index: 8; background: var(--bg); padding: 6px 0 10px; }
.wiz-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.wiz-tab { position: relative; padding: 11px 10px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; font-weight: 500; color: var(--muted); border: 1px solid transparent; border-radius: var(--radius); margin: -1px 0 -1px -1px; }
.wiz-tab:first-child { margin-left: -1px; }
.wiz-tab + .wiz-tab::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--border-soft); }
.wiz-tab:hover { color: var(--text); text-decoration: none; }
.wiz-tab.active { color: var(--text); font-weight: 600; border-color: var(--accent); background: var(--accent-soft); z-index: 1; }
.wiz-tab.active::before, .wiz-tab.active + .wiz-tab::before { display: none; }



.tracklist-tools { display: flex; gap: 8px; }

.review-info { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.review-table { flex: 1; }
.review-cover { width: 160px; height: 160px; }

/* Трек: сворачиваемая шапка + блоки внутри */

.radio-group > div, .radio-group > div > div { display: flex; gap: 22px; align-items: center; }


/* ---------- Логотип «эра» и пластинка ---------- */
.brand-row { display: flex; align-items: center; gap: 14px; padding: 4px 10px 18px; }
.brand { padding: 0; line-height: 0; }
.logo {
  display: block; height: 34px; aspect-ratio: 154 / 84; background: var(--text);
  -webkit-mask: url("../img/logo-mask.127cc7ab9246.png") center / contain no-repeat;
  mask: url("../img/logo-mask.127cc7ab9246.png") center / contain no-repeat;
}
.vinyl {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background:
    conic-gradient(from 20deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.22) 28deg, rgba(255,255,255,0) 70deg, rgba(255,255,255,0) 180deg, rgba(255,255,255,.16) 208deg, rgba(255,255,255,0) 250deg),
    repeating-radial-gradient(circle, #141314 0 1px, #262426 1px 2px);
  box-shadow: 0 3px 8px rgba(0,0,0,.28);
  animation: vinyl-spin 10s linear infinite; animation-delay: var(--vinyl-delay, 0s);
}
.vinyl-label {
  position: absolute; inset: 22%; border-radius: 50%; background: #7b1d34;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
.vinyl-label::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 74%; aspect-ratio: 154 / 84; transform: translate(-50%, -50%);
  background: #efe9e0;
  -webkit-mask: url("../img/logo-mask.127cc7ab9246.png") center / contain no-repeat;
  mask: url("../img/logo-mask.127cc7ab9246.png") center / contain no-repeat;
}
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vinyl { animation: none; } }

/* ---------- Селекты ---------- */
select {
  -webkit-appearance: none; appearance: none; height: 42px; line-height: 1.2; padding: 0 38px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238b8880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.toolbar select { width: auto; min-width: 170px; }

/* ---------- Таблицы: числовые колонки у правого края ---------- */
.table th.num, .table td.num { text-align: right; white-space: nowrap; width: 1%; padding-left: 36px; font-variant-numeric: tabular-nums; }
.table td.strong { font-weight: 700; }

/* ---------- Адаптивность ---------- */
.menu-toggle { display: none; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); width: 38px; height: 38px; font-size: 18px; cursor: pointer; }
.nav-backdrop { display: none; }
.layout { min-height: 100vh; min-height: 100dvh; width: 100%; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s ease; height: 100dvh; width: min(280px, 85vw); flex-basis: auto; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 30px rgba(0,0,0,.25); }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.4); }
  .topbar { padding: 10px 16px; }
  .table { display: block; overflow-x: auto; }
  .wiz-tabs-wrap { position: static; padding-top: 0; }
  .toolbar select, .toolbar input[type="text"] { min-width: 0 !important; width: 100%; }
  .toolbar, .toolbar form { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .wiz-tabs { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; }
  .wiz-tab { margin: 0; padding: 12px 8px; }
  .wiz-tab::before { display: none !important; }
  .bar-row { grid-template-columns: minmax(84px, 1fr) minmax(0, 1.6fr) 40px; gap: 8px; }
}

/* ---------- Файлы, textarea ---------- */
textarea { resize: vertical; max-width: 100%; min-height: 80px; }
.form-row input[type="file"] { display: none; }
.dropzone:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone-sm { padding: 14px; font-size: 14px; }
.dropzone-multi { margin-bottom: 18px; }

/* ---------- Свой выпадающий список ---------- */
.cs { position: relative; width: 100%; }
.toolbar .cs { width: auto; min-width: 170px; }
.cs-native { display: none; }
.cs-btn {
  width: 100%; height: 42px; padding: 0 38px 0 14px; text-align: left; cursor: pointer;
  background: var(--input); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; font: inherit; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238b8880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.cs-btn:focus, .cs.open .cs-btn { outline: none; border-color: var(--accent); }
.cs-btn.placeholder { color: var(--muted); }
.cs-btn:disabled { opacity: .55; cursor: not-allowed; }
.field-error .cs-btn { border-color: var(--red); }
.cs-list {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
  margin: 0; padding: 4px; list-style: none; max-height: 260px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.cs.open .cs-list { display: block; }
.cs-list li { padding: 9px 12px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.cs-list li:hover, .cs-list li.active { background: var(--accent-soft); }
.cs-list li.selected { color: var(--accent); font-weight: 600; }
.cs-list li.disabled { opacity: .45; cursor: not-allowed; }
.btn-danger-text:hover { color: var(--red); }

/* ---------- Главная: плитки сводки ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; min-width: 0; }
.kpi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.kpi-label { margin: 6px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.kpi-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.kpi-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi-value { font-size: 28px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-value-sm { font-size: 22px; }
.kpi-mid { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.kpi-mid-sm { margin-top: 10px; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.kpi-pair { margin-bottom: 8px; }
.kpi-link { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.kpi-track { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 14px; }
.kpi-track-n { color: var(--muted-2); font-variant-numeric: tabular-nums; width: 12px; flex: none; }
.kpi-track-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.kpi-track-plays { font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-title { margin: 0 0 8px; font-size: 15px; color: var(--text); }


/* ---------- Корзина, скрытые строки ---------- */
[hidden] { display: none !important; }
.is-deleted { display: none !important; }
.del-flag { display: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.icon-btn:hover, .icon-btn:focus-visible { color: var(--red); border-color: var(--red); background: var(--red-soft); outline: none; }
.participant-row { align-items: end; }
.participant-row > .form-row { margin: 0; min-width: 0; }
.participant-row .row-del { display: flex; align-items: center; }
@media (max-width: 640px) {
  .participant-row { grid-template-columns: 1fr auto; }
  .participant-row > .form-row:nth-of-type(1), .participant-row > .form-row:nth-of-type(2) { grid-column: 1 / -1; }
  .participant-row .row-del { grid-column: 2; justify-self: end; }
}


/* ---------- Выбор даты и времени ---------- */
.dtp { position: relative; max-width: 320px; }
.dtp-display { width: 100%; cursor: pointer; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.dtp.open .dtp-display, .dtp-display:focus { border-color: var(--accent); outline: none; }
.field-error .dtp-display { border-color: var(--red); }
.dtp-pop { position: absolute; z-index: 1000; width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); overflow: hidden; }
.dtp-head { display: flex; align-items: center; gap: 2px; padding: 10px 8px; background: var(--surface-2); }
.dtp-title { flex: 1; text-align: center; font-weight: 700; font-size: 15px; }
.dtp-nav { background: none; border: none; color: var(--muted); font-size: 18px; line-height: 1; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; }
.dtp-nav:hover { color: var(--accent); background: var(--accent-soft); }
.dtp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 8px 10px 10px; }
.dtp-wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted-2); padding: 4px 0; }
.dtp-day { height: 34px; border: none; background: transparent; color: var(--text); border-radius: 8px; font-size: 14px; cursor: pointer; font-family: inherit; }
.dtp-day:hover:not(:disabled) { background: var(--accent-soft); }
.dtp-day.other { color: var(--muted-2); }
.dtp-day.today { box-shadow: inset 0 0 0 1px var(--accent); }
.dtp-day.selected { background: var(--btn); color: #fff; font-weight: 600; }
.dtp-day:disabled { opacity: .3; cursor: not-allowed; }
.dtp-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--muted); }
.dtp-time { width: 84px; text-align: center; padding: 7px 8px; }
.dtp-time.bad { border-color: var(--red); }
.dtp-clear { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; font-family: inherit; }
.dtp-clear:hover { color: var(--red); }


/* ---------- Мастер релиза: 1 экран на шаг ---------- */
.wiz-title { margin-bottom: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; padding: 0; }
.wiz-tab-n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.wiz-tab.active .wiz-tab-n { background: var(--btn); color: #fff; }
.wiz-tab.done .wiz-tab-n { background: var(--green-soft); color: var(--green); }
.wiz-tab.active.done .wiz-tab-n { background: var(--green); color: #fff; }

.wiz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 10px; }
.wiz-head-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.wiz-head-sub { color: var(--muted); font-size: 13px; }
.tracklist-tools { display: flex; gap: 8px; flex-wrap: wrap; }

.wiz-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.wiz-card .form-row { margin-bottom: 12px; }
.wiz-card .form-row > label, .wiz-card .form-row > div > label:not(.check-row) { font-size: 12px; margin-bottom: 4px; color: var(--muted); font-weight: 600; display: block; }
.wiz-card .form-row > label.check-row { display: flex; color: var(--text); font-size: 14px; margin-bottom: 0; }
.wiz-card input[type="text"], .wiz-card input[type="number"], .wiz-card input[type="date"], .wiz-card input[type="time"],
.wiz-card select, .wiz-card textarea { padding: 9px 12px; border-radius: 6px; }
.wiz-card .cs-btn { height: 40px; }
.wiz-card input[type="text"], .wiz-card input[type="number"], .wiz-card .dtp-display { height: 40px; }
.wiz-card input[type="file"] { display: none; }
.wiz-card input[type="radio"], .wiz-card input[type="checkbox"] { accent-color: var(--accent); }
.wiz-card .errorlist { margin-top: 4px; font-size: 12px; }
.wiz-card .help { font-size: 12px; color: var(--muted); margin-top: 4px; }

.wiz-grid { display: grid; gap: 0 14px; align-items: start; }
.wiz-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wiz-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wiz-grid .span-2 { grid-column: span 2; }
.wiz-col { display: flex; flex-direction: column; min-width: 0; }
.plat-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plat-sum li { border: 1px solid var(--border-soft); border-radius: 999px; padding: 4px 12px; font-size: 13px; background: var(--bg-soft); }
.plat-sum .badge { margin-left: 6px; font-size: 11px; color: var(--accent); font-weight: 600; }
.tbl-scroll { max-height: 150px; overflow-y: auto; }
.tbl-scroll thead th { position: sticky; top: 0; background: var(--surface); }
.wiz-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; align-items: start; }
.wiz-stack { min-width: 0; }
.wiz-sec { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.wiz-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.wiz-sec-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.wiz-sec-head .wiz-sec-title { margin: 0; }
.edit-link { float: right; font-size: 13px; font-weight: 600; }

.s1-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; }
.cover-drop { position: relative; width: 190px; height: 190px; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; overflow: hidden; }
.cover-drop .cover-preview { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; }
.dz-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -6px; margin-right: 6px; }
.cover-drop .dz-ico { display: block; margin: 0 auto 6px; width: 28px; height: 28px; }
.static-field { padding: 9px 12px; border: 1px dashed var(--border); border-radius: 6px; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dropzone-multi { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.dropzone-multi .dz-ico { margin: 0; }
.dz-help { font-size: 12px; color: var(--muted-2); }
.dropzone-sm { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 12px; font-size: 13px; }
.dropzone-sm .dz-ico { width: 18px; height: 18px; }

/* Треклист: пока не загружен ни один трек — только большое поле загрузки */
.tracklist .dz-ico-lg { display: none; }
.tracklist.is-empty .tracklist-tools { display: none; }
.tracklist.is-empty .dropzone-multi { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 42px 20px; min-height: 260px; }
.tracklist.is-empty .dropzone-multi .dz-ico-sm { display: none; }
.tracklist.is-empty .dropzone-multi .dz-ico-lg { display: block; width: 56px; height: 56px; stroke-width: 1.4; color: var(--accent); margin: 0 0 6px; }
.tracklist.is-empty .dropzone-multi [data-dz-text] { font-size: 17px; font-weight: 600; max-width: 620px; }
.tracklist.is-empty .dropzone-multi .dz-help { font-size: 13px; line-height: 1.6; }

.seg { display: inline-flex; background: var(--input); border: 1px solid var(--border); border-radius: 6px; padding: 3px; gap: 2px; max-width: 100%; }
.seg-opt { margin: 0 !important; cursor: pointer; font-weight: 500 !important; font-size: 13px !important; color: var(--muted) !important; position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: block; padding: 6px 12px; border-radius: 4px; white-space: nowrap; }
.seg-opt:hover span { color: var(--text); }
.seg-opt:has(input:checked) span { background: var(--btn); color: #fff; }
.seg-opt:has(input:focus-visible) span { outline: 2px solid var(--accent); outline-offset: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.check-row.chip { margin: 0; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; background: var(--input); gap: 8px; color: var(--text); }
.check-row.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.hint { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1; cursor: help; vertical-align: 1px; margin-left: 2px; text-transform: none; }
.hint:hover, .hint:focus { background: var(--btn); color: #fff; outline: none; }
.hint::after { content: attr(data-tip); position: absolute; z-index: 50; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 270px; padding: 8px 10px; border-radius: 8px; background: #26262d; color: #f1f0f3; font-size: 12px; font-weight: 400; line-height: 1.4; text-align: left; white-space: normal; box-shadow: 0 8px 22px rgba(0,0,0,.25); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s; }
.hint:hover::after, .hint:focus::after { opacity: 1; visibility: visible; }
.hint-end::after { left: auto; right: -8px; transform: none; }

.participants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.participants .participant-row > .form-row, .person-rows .form-row { margin: 0; }
.participants .participant-row { grid-template-columns: 1fr 1fr auto; gap: 10px; padding: 0 0 8px; border: 0; }
.participants .participant-row .icon-btn { height: 40px; }
.person-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.person-rows .person-row { grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 0 0 8px; }

/* Треки: аккордеон */
.track-row { margin-bottom: 8px; }
.track-head { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 8px 12px 8px 14px; cursor: pointer; transition: border-color .15s; }
.track-head:hover { border-color: var(--border); }
.track-row:not(.collapsed) .track-head { border-color: var(--accent); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.track-row:not(.collapsed) .track-body { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; margin-bottom: 0; }
.track-toggle { color: var(--muted); font-size: 14px; width: 16px; text-align: center; }
.track-row.collapsed .track-toggle .chev { display: inline-block; transform: rotate(-90deg); }
.track-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.track-num::after { content: "."; }
.track-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.track-state { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.track-state.ok { background: var(--green-soft); color: var(--green); }
.track-state.todo { background: var(--amber-soft); color: var(--amber); }
.icon-btn-sm { width: 32px; height: 32px; flex: none; margin-left: 0 !important; }
.track-head .icon-btn-sm[data-track-replace]:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.track-row .track-body { margin-bottom: 8px; }

/* Площадки */
.plat-list { display: flex; flex-direction: column; gap: 8px; }
.plat-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1.5fr) auto; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-soft); }
.plat-row:last-child { border-bottom: 0; }
.plat-row .plat-name { font-weight: 600; margin: 0; }
.plat-row .plat-date .dtp { max-width: none; }
.plat-row.off .plat-date, .plat-row.off .chip { opacity: .45; }
.wiz-quick { margin-top: 6px; display: flex; gap: 4px; }
.wiz-card .checkbox-list, .wiz-card #id_countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; }
.wiz-card #id_countries > div label { font-weight: 500; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--text); }
.wiz-card > .check-row { margin: 6px 0; }

/* Проверка */
.review-info { display: flex; gap: 16px; align-items: flex-start; }
.review-cover { width: 120px; height: 120px; flex: none; }
.review-nocover { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: 13px; }
.review-table { font-size: 14px; }
.wiz-card .table th, .wiz-card .table td { padding: 6px 8px; }
.callout { border-left: 3px solid var(--border); background: var(--bg-soft); border-radius: 6px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.callout-ok { border-left-color: var(--green); }
.callout .plain-list { margin: 4px 0 0; }

/* Нижняя панель действий */
.wiz-bar { position: sticky; bottom: 0; z-index: 7; display: flex; align-items: center; gap: 10px; padding: 12px 0 14px; margin-top: 6px; background: var(--bg); border-top: 1px solid var(--border-soft); }
.wiz-bar-step { color: var(--muted); font-size: 13px; }
.wiz-bar-spacer { flex: 1; }

/* Модальное окно подтверждения */
.modal-back { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 12, 14, .45); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: modal-fade .15s ease; }
.modal { width: min(500px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.modal-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.modal-text { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.btn-danger-solid { background: var(--red); color: #fff; }
.btn-danger-solid:hover { filter: brightness(.92); }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
  .wiz-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiz-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .s1-layout { grid-template-columns: minmax(0, 1fr); }
  .s1-cover { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; }
  .wiz-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wiz-grid.c3, .wiz-grid.c4, .participants, .person-rows { grid-template-columns: minmax(0, 1fr); }
  .wiz-grid .span-2 { grid-column: auto; }
  .s1-cover { grid-template-columns: minmax(0, 1fr); }
  .cover-drop { width: 100%; height: 160px; }
  .plat-row { grid-template-columns: 1fr; gap: 6px; }
  .track-meta { display: none; }
  .wiz-tab { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 13px; }
  .wiz-bar { flex-wrap: wrap; }
  .wiz-bar-step { display: none; }
  .review-info { flex-direction: column; }
  .wiz-card { padding: 14px; }
}

/* ---------- Аккаунты в панели администратора ---------- */
.card-flex { display: flex; flex-direction: column; }
.card-flex .card-form { display: flex; flex-direction: column; flex: 1; }
.card-actions { margin-top: auto; padding-top: 14px; }
.mt-8 { margin-top: 8px; }
.admin-2fa { display: flex; gap: 8px; align-items: center; }

.admin-create summary {
  cursor: pointer; font-weight: 600; color: var(--accent-2);
  list-style: none;
}
.admin-create summary::-webkit-details-marker { display: none; }
.admin-create[open] summary { margin-bottom: 14px; }
.admin-create-form { display: grid; gap: 12px; }
.admin-create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-create-grid .form-row, .admin-create-foot .form-row { margin: 0; }
.admin-create-foot { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.admin-create-foot .form-row { flex: 1; min-width: 200px; }
.admin-reregister { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.admin-reregister .form-row { margin: 0; }

@media (max-width: 640px) {
  .admin-create-grid { grid-template-columns: 1fr; }
  .admin-user-head { flex-direction: column; align-items: flex-start; }
  .admin-user-actions { flex-wrap: wrap; }
}
