:root {
  --bg: #0b0c0e; --surface: #16181c; --line: #2a2d33; --text: #f3efe8; --muted: #a9aeb6;
  --gold: #d1a86e; --red: #e10600; --ok: #3fb96b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 "Segoe UI", Arial, sans-serif; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: rgba(11, 12, 14, .94); border-bottom: 1px solid var(--line); }
.top img { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: cover; }
.app { font: 600 18px/1 Bahnschrift, "Segoe UI", sans-serif; letter-spacing: .06em; }
.pills { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
a.pill { color: inherit; text-decoration: none; }
.pill { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); }
.pill.ok { border-color: #2c5e3d; color: #9fe0b5; }
.pill.warn { border-color: #7a2a24; color: #ffb3aa; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h2 { font: 600 22px/1.2 Bahnschrift, "Segoe UI", sans-serif; margin: 28px 0 12px; }
h3 { font: 600 17px/1.2 Bahnschrift, "Segoe UI", sans-serif; margin: 22px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.actions { display: flex; gap: 10px; }
button { font: inherit; border-radius: 10px; padding: 11px 18px; border: 1px solid var(--line); background: #22252b; color: var(--text); cursor: pointer; }
button.primary { background: var(--red); border-color: var(--red); font-weight: 600; }
button.approve { background: var(--ok); border-color: var(--ok); color: #06140b; font-weight: 600; }
button.ghost { background: transparent; }
button:disabled { opacity: .45; cursor: not-allowed; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input { font: inherit; color: var(--text); background: #0f1114; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
input[type=color] { padding: 2px; height: 42px; }
.stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; max-height: 520px; overflow: auto; padding: 2px; }
.car { text-align: left; padding: 0; overflow: hidden; border-radius: 10px; background: #0f1114; }
.car img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.car div { padding: 8px 10px; }
.car b { display: block; font-size: 14px; }
.car span { font-size: 13px; color: var(--muted); }
.car.on { outline: 3px solid var(--red); }
.selected { display: grid; gap: 14px; }
.pick { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.pick header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.pick header b { font-size: 16px; }
.pick header label { flex-direction: row; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pick header input { width: 120px; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.shot { position: relative; flex: 0 0 auto; width: 132px; }
.shot img { width: 132px; height: 99px; object-fit: cover; border-radius: 6px; display: block; border: 3px solid transparent; }
.shot.out img { border-color: var(--gold); }
.shot.in img { border-color: #5aa0ff; }
.shot .tags { display: flex; gap: 4px; margin-top: 4px; }
.shot .tags button { flex: 1; padding: 4px 0; font-size: 12px; border-radius: 6px; }
.shot .tags button.out { background: var(--gold); color: #111; border-color: var(--gold); }
.shot .tags button.in { background: #5aa0ff; color: #081422; border-color: #5aa0ff; }
.row { display: flex; gap: 10px; margin-top: 18px; }
.row.end { justify-content: flex-end; }
.error { color: #ffb3aa; white-space: pre-line; }
.campaigns { display: grid; gap: 14px; }
.campaign { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 16px; }
.campaign video, .campaign .placeholder { display: block; width: 100%; max-height: 70vh; aspect-ratio: 9 / 16; margin: 0 auto;
  object-fit: contain; border-radius: 10px; background: #000; }
.campaign .placeholder { display: grid; place-items: center; color: var(--muted); text-align: center; padding: 12px; }
.bar { height: 6px; border-radius: 3px; background: #2a2d33; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--red); }
.state { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; background: #22252b; }
.state.approved { background: #1d3a27; color: #9fe0b5; }
.state.rejected { background: #3a1d1d; color: #ffb3aa; }
.tabs { display: flex; gap: 6px; margin-top: 10px; }
.tabs button { padding: 6px 12px; font-size: 14px; }
.tabs button.on { border-color: var(--gold); color: var(--gold); }
textarea { width: 100%; min-height: 190px; margin-top: 8px; font: 14px/1.45 "Segoe UI", Arial, sans-serif; color: var(--text);
  background: #0f1114; border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; }
.primary-link { display: inline-block; padding: 10px 16px; border-radius: 10px; background: #229ed9; color: #fff; font-weight: 600; text-decoration: none; }
button.pill { cursor: pointer; }
ul.items { margin: 8px 0; padding-left: 18px; }
.published { margin-top: 12px; display: grid; gap: 6px; }
.published a { color: #9fc4ff; }
button.fb { background: #1877f2; border-color: #1877f2; font-weight: 600; }
button.ig { background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af); border: 0; font-weight: 600; }
@media (max-width: 640px) {
  .campaign { grid-template-columns: 1fr; }
  .pick header label { margin-left: 0; }
}
