/* PurffleShorts Studio — dark first, light when the system asks for it. */
:root {
  --bg: #0b0c10; --bg2: #101218; --panel: #14161d; --panel2: #1a1d26; --line: #252834; --line2: #303443;
  --text: #eceef4; --muted: #8e93a6; --faint: #5d6274;
  --accent: #ffe11a; --accent-ink: #15161b; --accent-soft: rgba(255, 225, 26, .12);
  --violet: #8b5cf6; --blue: #5b9dff; --ok: #34d399; --warn: #fbbf24; --bad: #fb7185;
  --ok-soft: rgba(52, 211, 153, .13); --bad-soft: rgba(251, 113, 133, .13); --blue-soft: rgba(91, 157, 255, .14);
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --r: 14px; --r-sm: 10px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6fa; --bg2: #eef0f5; --panel: #ffffff; --panel2: #f7f8fb; --line: #e3e6ee; --line2: #d4d8e3;
    --text: #151821; --muted: #5d6275; --faint: #9095a6;
    --accent: #f5c400; --accent-ink: #15161b; --accent-soft: rgba(245, 196, 0, .16);
    --ok: #0f9f6e; --bad: #d23a57; --blue: #2d6ae0; --violet: #6d3fe0;
    --shadow: 0 10px 40px rgba(20, 24, 40, .14);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 18px 14px;
  background: var(--bg2); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 2px 6px; }
.brand b { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.logo svg { fill: var(--accent-ink); stroke: none; width: 18px; height: 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-weight: 550; position: relative; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.active svg { color: var(--accent); }
.badge { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 20px; text-align: center;
  padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.badge.soft { background: var(--panel2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.side-foot .row { display: flex; justify-content: space-between; gap: 8px; padding: 0 6px; }
.side-foot .row b { color: var(--text); font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { padding: 26px 32px 60px; min-width: 0; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; letter-spacing: -.02em; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- building blocks ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 14px; font-weight: 650; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field + .field, .grid2 + .field, .seg + .field, .field + .grid2, .grid2 + .grid2, .grid3 + .field, .field + .grid3 { margin-top: 12px; }
.grid2 > .field + .field, .grid3 > .field + .field { margin-top: 0; }
#live:not(:empty) { margin-bottom: 16px; }
label, .label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hint { font-size: 12.5px; color: var(--faint); margin: 0; }
input[type=text], input[type=url], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg);
  outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 44px; text-align: right; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-sm);
  padding: 10px 16px; font-weight: 650; cursor: pointer; background: var(--panel2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line2); text-decoration: none; white-space: nowrap; transition: transform .06s, filter .15s; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--muted); padding: 7px 10px; }
.btn.ghost:hover { color: var(--text); background: var(--panel2); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions.end { justify-content: flex-end; }

.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.seg button[aria-pressed=true] { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.shape { display: inline-block; border: 2px solid currentColor; border-radius: 3px; }
.shape.s916 { width: 9px; height: 15px; } .shape.s169 { width: 16px; height: 9px; } .shape.s11 { width: 12px; height: 12px; } .shape.s45 { width: 11px; height: 13px; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 550; }
.switch input { appearance: none; width: 36px; height: 21px; border-radius: 999px; background: var(--line2); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(15px); background: var(--accent-ink); }
.switch small { display: block; color: var(--faint); font-weight: 500; font-size: 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: var(--panel2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.chip.bad { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.chip.blue { background: var(--blue-soft); color: var(--blue); box-shadow: none; }
.chip.accent { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
@media (prefers-color-scheme: light) { .chip.accent { color: #8a6d00; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); margin-bottom: 16px; }
.banner svg { color: var(--accent); margin-top: 2px; }
.banner p { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- create ---------- */
.create { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 20px; align-items: start; }
.sticky { position: sticky; top: 20px; }
.src-tabs { margin-bottom: 12px; }
.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.fmt { text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 11px; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; min-height: 76px; transition: border-color .15s, background .15s; }
.fmt:hover { border-color: var(--line2); }
.fmt b { font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.fmt span { font-size: 11.5px; color: var(--faint); line-height: 1.35; }
.fmt[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }
.fmt .new { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; padding: 1px 5px; border-radius: 4px; background: var(--violet); color: #fff; }
.swatches + .field { margin-top: 14px; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sw { border: 1px solid var(--line); border-radius: 11px; padding: 12px 6px 8px; cursor: pointer; background: #1b1e27;
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sw[aria-pressed=true] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sw small { color: #a8adbd; font-size: 11.5px; font-weight: 600; }
.cap { font: 800 17px/1.1 Impact, "Anton", "Arial Black", sans-serif; letter-spacing: .01em; color: #fff; text-transform: uppercase;
  text-shadow: 0 0 1px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 2px 3px 4px rgba(0,0,0,.6); }
.cap i { font-style: normal; color: #ffe11a; }
.cap.boxed i { color: #fff; background: #7c3aed; padding: 0 4px; border-radius: 4px; text-shadow: none; }
.cap.neon { color: #fff; text-shadow: 0 0 6px #00e5ff, 0 0 12px #00e5ff; } .cap.neon i { color: #39ff14; }
.cap.clean { font: 700 15px/1.1 var(--font); text-transform: none; text-shadow: 0 1px 3px rgba(0,0,0,.8); } .cap.clean i { color: #fff; }
.cap.karaoke i, .cap.karaoke u { color: #ffe11a; text-decoration: none; }
.cap.minimal i { color: #fff; }
.more { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 14px; }
details.more > summary { cursor: pointer; color: var(--muted); font-weight: 650; list-style: none; display: flex; align-items: center; gap: 6px; }
details.more > summary::before { content: "▸"; transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more > summary + * { margin-top: 12px; }
.go-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 18px; }
.go-row .btn { padding: 13px 16px; font-size: 15px; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks-inline label { display: inline-flex; gap: 6px; align-items: center; color: var(--text); font-weight: 500; font-size: 13.5px; }
.checks-inline input { accent-color: var(--accent); }

/* editor */
.score { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 14px; }
.ring { --p: 0; --c: var(--accent); width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.ring b { width: 46px; height: 46px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.score ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.scenes { display: flex; flex-direction: column; gap: 10px; }
.scene { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--bg); display: grid; grid-template-columns: 28px 1fr; gap: 8px 10px; }
.scene .num { width: 26px; height: 26px; border-radius: 8px; background: var(--panel2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.scene.b .num { background: var(--blue-soft); color: var(--blue); }
.scene.a.multi .num { background: var(--accent-soft); color: var(--accent); }
.scene textarea { min-height: 52px; }
.scene .row { display: flex; gap: 6px; align-items: center; }
.scene .row input { font-size: 13px; padding: 6px 9px; }
.scene .tools { display: flex; gap: 2px; margin-left: auto; }
.scene .tools .btn { padding: 5px 7px; }
.wc { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.phone { margin: 0 auto; width: 220px; aspect-ratio: 9/16; border-radius: 26px; border: 6px solid #22252f; background: linear-gradient(160deg, #2c5364, #0f2027);
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.phone .ph-hook { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.7); color: #fff; font: 800 11px/1.2 Impact, "Anton", sans-serif;
  padding: 5px 8px; border-radius: 6px; text-transform: uppercase; max-width: 80%; text-align: center; }
.phone .cap { font-size: 20px; text-align: center; padding: 0 12px; }
.phone .bar { position: absolute; top: 0; left: 0; height: 3px; width: 38%; background: var(--accent); }

/* live job */
.live { display: flex; flex-direction: column; gap: 10px; }
.stages { display: flex; gap: 4px; }
.stages span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.stages span.done { background: var(--accent); }
.stages span.now { background: linear-gradient(90deg, var(--accent), var(--line)); background-size: 200% 100%; animation: slide 1.1s linear infinite; }
@keyframes slide { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.live .stage-name { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.live .stage-name b { color: var(--text); }

/* ---------- library ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 280px; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; }
.vcard { cursor: pointer; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); text-align: left; padding: 0;
  display: flex; flex-direction: column; transition: transform .12s, border-color .15s; }
.vcard:hover { transform: translateY(-2px); border-color: var(--line2); }
.thumb { position: relative; aspect-ratio: 9/16; background: #07080b; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.thumb .tl { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 4px; }
.thumb .tl .chip { background: rgba(10, 11, 15, .72); color: #eceef4; box-shadow: none; backdrop-filter: blur(6px); }
.thumb .tl .chip.ok { color: #34d399; } .thumb .tl .chip.bad { color: #fb7185; } .thumb .tl .chip.blue { color: #7fb2ff; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; font-size: 11.5px; font-weight: 700; background: rgba(10,11,15,.75); color: #fff; padding: 1px 6px; border-radius: 5px; }
.vcard .meta { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.vcard .meta b { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .meta .sub { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; }
.drawer-bg { position: absolute; inset: 0; background: rgba(4, 5, 8, .6); backdrop-filter: blur(2px); }
.drawer-panel { position: relative; width: min(860px, 100%); height: 100%; overflow: auto; background: var(--bg2); border-left: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 22px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-content: start; }
.drawer-panel .player video { width: 100%; max-height: 72vh; border-radius: 14px; background: #000; display: block; }
.drawer-panel h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.close { position: absolute; top: 12px; right: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 14px 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.desc { white-space: pre-wrap; font-size: 13px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-height: 180px; overflow: auto; }

/* ---------- queue ---------- */
.jobs { display: flex; flex-direction: column; gap: 12px; }
.job { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.job-top { display: flex; gap: 12px; align-items: center; }
.job-top .kind { width: 34px; height: 34px; border-radius: 10px; background: var(--panel2); display: grid; place-items: center; color: var(--muted); flex: none; }
.job-top .t { min-width: 0; flex: 1; }
.job-top .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-top .t small { color: var(--muted); }
.pbar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 12px; }
.pbar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s; }
.job.failed .pbar i { background: var(--bad); } .job.done .pbar i { background: var(--ok); }
.log { margin: 10px 0 0; max-height: 220px; overflow: auto; font: 12px/1.5 var(--mono); color: var(--muted); background: var(--bg); border-radius: 10px;
  padding: 10px 12px; white-space: pre-wrap; word-break: break-word; border: 1px solid var(--line); }
.job .err { color: var(--bad); margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
.status-pill { font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.status-pill.running { color: var(--blue); } .status-pill.done { color: var(--ok); } .status-pill.failed { color: var(--bad); } .status-pill.queued, .status-pill.cancelled { color: var(--muted); }

/* ---------- ideas / channel / system ---------- */
.list { display: flex; flex-direction: column; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .grow b { display: block; }
.item .grow small { color: var(--muted); display: block; margin-top: 2px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.kpi b { display: block; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.hbar { display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.hbar .track { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--accent); border-radius: 5px; width: 0; }
.checks { display: flex; flex-direction: column; }
.check { display: grid; grid-template-columns: 22px 190px 1fr; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 13.5px; align-items: start; }
.check:first-child { border-top: 0; }
.check .m { font-weight: 800; } .check .m.ok { color: var(--ok); } .check .m.bad { color: var(--bad); } .check .m.info { color: var(--faint); }
.check span:last-child { color: var(--muted); overflow-wrap: anywhere; }
pre.code { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: 12.5px/1.5 var(--mono); overflow: auto; }

/* toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow); display: flex; gap: 10px;
  align-items: flex-start; animation: pop .18s ease-out; font-size: 13.5px; }
.toast.ok svg { color: var(--ok); } .toast.bad svg { color: var(--bad); } .toast.info svg { color: var(--accent); }
.toast a { color: var(--accent); font-weight: 650; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ---------- small screens ---------- */
@media (max-width: 1100px) { .create { grid-template-columns: 1fr; } .sticky { position: static; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; padding: 10px 16px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand > span:last-child, .side-foot { display: none; }
  .nav { flex: 1; justify-content: space-between; }
  .nav { flex-direction: row; gap: 2px; }
  .nav a span { display: none; } .nav a { padding: 9px 10px; }
  .nav a .badge { position: absolute; top: 0; right: -2px; margin: 0; font-size: 10px; min-width: 16px; padding: 0 4px; }
  main { padding: 18px 16px 60px; }
  .drawer-panel { grid-template-columns: 1fr; padding: 16px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .go-row { grid-template-columns: 1fr; }
  .check { grid-template-columns: 22px 1fr; } .check span:last-child { grid-column: 2; }
}
@media (max-width: 480px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lib { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
