:root {
  --bg: #0f1115; --panel: #171a20; --panel2: #1e222a; --line: #2a2f39; --ink: #e6e8ec; --mut: #8b93a1;
  --acc: #22c55e; --acc-ink: #04130a; --acc-dim: rgba(34, 197, 94, .14); --danger: #ef4444; --warn: #f59e0b;
  --in: #22c55e; --emph: #a855f7; --out: #f97316; --radius: 8px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.45 Inter, system-ui, -apple-system, sans-serif; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0; }
h3 { font-size: 14px; margin: 0; }
h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin: 18px 0 8px; }
p { margin: 0 0 10px; }
code { background: var(--panel2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.muted { color: var(--mut); }
.sm { font-size: 12px; }
.pad { padding: 10px 12px; }
.err { color: var(--danger); }
.spacer { flex: 1; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 16px; }

input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=number], input[type=password], input[type=search], input[type=date], input:not([type]), select, textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; min-width: 0; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-dim); }
textarea { resize: vertical; }
select.mini { width: auto; padding: 4px 6px; font-size: 12.5px; }
input.num { width: 100%; }

.btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; padding: 7px 12px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel2); color: var(--ink); cursor: pointer; white-space: nowrap; font-weight: 500; text-decoration: none !important; }
.btn:hover { border-color: #3a414e; background: #252a33; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn.block { width: 100%; margin-top: 10px; }
.btn.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }
.icon-btn { background: transparent; border: 1px solid transparent; color: var(--ink); border-radius: 6px; padding: 4px 8px; cursor: pointer; line-height: 1; }
.icon-btn:hover:not(:disabled) { background: var(--panel2); border-color: var(--line); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.sm { padding: 2px 5px; font-size: 12px; }
.icon-btn.danger:hover { color: var(--danger); }
.pill { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--mut); border: 1px solid var(--line); }
.pill.ok { color: var(--acc); border-color: rgba(34, 197, 94, .4); background: var(--acc-dim); }
.pill.warn { color: var(--warn); border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1); }
label.check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-size: 12.5px; margin: 4px 10px 4px 0; }

/* ---------------- shell */
.shell { display: flex; flex-direction: column; min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 22px; padding: 0 20px; height: 54px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 700; color: var(--ink); display: flex; gap: 8px; align-items: center; font-size: 15px; }
.brand .logo { color: var(--acc); font-size: 20px; }
.byline { font-size: 8.5px; font-weight: 600; letter-spacing: .14em; color: var(--mut); text-transform: uppercase; align-self: center; white-space: nowrap; vertical-align: middle; }
.brand .byline { margin-left: 2px; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { color: var(--mut); padding: 6px 12px; border-radius: 6px; font-weight: 500; }
.topbar nav a.on, .topbar nav a:hover { color: var(--ink); background: var(--panel2); text-decoration: none; }
.dash { display: flex; flex: 1; min-height: 0; }
.side { width: 230px; flex: none; border-right: 1px solid var(--line); background: var(--panel); padding: 14px 10px; }
.panel-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin: 4px 6px 8px; font-weight: 600; }
.client { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; text-align: left; }
.client:hover { background: var(--panel2); }
.client.on { background: var(--acc-dim); color: var(--acc); }
.client .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.client .cname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client .count { color: var(--mut); font-size: 12px; }
.client-actions { display: flex; gap: 6px; margin-top: 8px; }
.dash-main, .page { flex: 1; padding: 22px 26px; min-width: 0; }
.page { max-width: 1200px; width: 100%; margin: 0 auto; }
.dash-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-head p { margin: 0; }
.search { max-width: 260px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ad-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.ad-card:hover { border-color: #3a414e; }
.thumb { display: block; aspect-ratio: 16 / 9; background: #0b0d10; position: relative; border-bottom: 1px solid var(--line); }
.thumb-host { position: absolute; inset: 0; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; }
.card-title a { color: var(--ink); font-weight: 600; }
.card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.client-tag { border-left: 3px solid; padding-left: 6px; font-weight: 500; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.status-live { color: var(--acc); } .status-review { color: var(--warn); } .status-approved { color: #38bdf8; } .status-archived { color: var(--mut); }
.empty { grid-column: 1 / -1; padding: 50px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; color: var(--mut); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 30px; width: 340px; display: flex; flex-direction: column; gap: 12px; }

/* modal */
.modal-wrap { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; width: min(520px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 16px 18px 18px; overflow: auto; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form.two { flex-direction: row; } .form.two > label { flex: 1; }
.form label, .embed-opts label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--mut); }
.size-group h4 { margin-top: 12px; }
.size-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.size-opt { display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 12.5px; background: var(--bg); }
.size-opt:has(input:checked) { border-color: var(--acc); background: var(--acc-dim); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.tpl { display: flex; flex-direction: column; gap: 3px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; }
.tpl.on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-dim); }
.tpl-thumb { position: relative; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: #fff; margin-bottom: 4px; }
.code-wrap { position: relative; }
pre.code { background: #0a0c0f; border: 1px solid var(--line); border-radius: 8px; padding: 12px 70px 12px 12px; white-space: pre-wrap; word-break: break-all; font: 12.5px/1.5 ui-monospace, Menlo, monospace; margin: 0 0 8px; color: #c7f9d4; }
.code-wrap .copy { position: absolute; top: 8px; right: 8px; }
.embed-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 4px; }
.embed-stage { overflow: auto; background: repeating-linear-gradient(45deg, #15181d 0 10px, #1a1d23 10px 20px); border-radius: 8px; padding: 14px; }
.embed-preview { display: block; border: 0; background: #fff; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.media-item { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--mut); }
.media-item:hover { border-color: var(--acc); }
.media-item img, .media-item video { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: repeating-conic-gradient(#2a2f39 0 25%, #20242c 0 50%) 0 0 / 14px 14px; border-radius: 4px; }

/* toasts */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; }
.toast { background: #111827; border: 1px solid var(--line); border-left: 3px solid var(--acc); padding: 9px 14px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transition: opacity .3s, transform .3s; }
.toast.err { border-left-color: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* zones + stats */
.site-title { margin: 22px 0 10px; color: var(--mut); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.zone-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.zone-head { display: flex; align-items: center; gap: 12px; }
.zone-ad { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.zone-ad .zname { flex: 1; min-width: 160px; display: flex; gap: 8px; align-items: center; }
.zone-ad label { display: flex; align-items: center; gap: 6px; color: var(--mut); }
.zone-ad input.num { width: 64px; } .zone-ad input[type=date] { width: 150px; }
details summary { cursor: pointer; color: var(--mut); font-size: 12.5px; margin-bottom: 8px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; }
.kpi span { color: var(--mut); font-size: 12px; } .kpi b { font-size: 26px; }
.stat-block { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.stat-block h3 { margin-bottom: 10px; }
.chart { width: 100%; height: auto; }
.chart .bar { fill: var(--acc); opacity: .85; } .chart .bar:hover { opacity: 1; }
.chart .axis { fill: var(--mut); font-size: 11px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--mut); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose { max-width: 820px; } .prose h3 { margin: 22px 0 8px; } .prose li { margin-bottom: 6px; }

/* ---------------- editor */
.editor { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.ed-top { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--panel); flex: none; }
.ed-top .back { color: var(--mut); font-weight: 500; margin-right: 4px; }
.title-input { width: 260px !important; font-weight: 600; background: transparent !important; border-color: transparent !important; font-size: 15px; }
.title-input:hover { border-color: var(--line) !important; }
.save-state { font-size: 12px; color: var(--mut); min-width: 64px; }
.save-state.busy { color: var(--warn); } .save-state.err { color: var(--danger); }
.ed-main { display: flex; flex: 1; min-height: 0; }
.ed-left { width: 220px; flex: none; border-right: 1px solid var(--line); background: var(--panel); padding: 12px 8px; overflow: auto; }
.add-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.add-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px; border: 1px solid var(--line); background: var(--panel2); border-radius: 8px; cursor: pointer; font-size: 11.5px; }
.add-btn:hover { border-color: var(--acc); color: var(--acc); }
.add-btn .ico { font-size: 16px; }
.layers { display: flex; flex-direction: column; gap: 2px; }
.layer { display: flex; align-items: center; gap: 6px; padding: 6px 6px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; font-size: 13px; }
.layer:hover { background: var(--panel2); }
.layer.sel { background: var(--acc-dim); border-color: rgba(34, 197, 94, .35); }
.layer.hid .lname { opacity: .45; text-decoration: line-through; }
.layer.over { border-top: 2px solid var(--acc); }
.layer .ico { width: 20px; text-align: center; color: var(--mut); font-size: 12px; }
.layer .lname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ed-center { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #0b0d10; }
.bp-bar { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel); overflow-x: auto; flex: none; }
.bp-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); background: var(--panel2); border-radius: 6px; cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.bp-chip:hover { border-color: #3a414e; }
.bp-chip.on { border-color: var(--acc); color: var(--acc); background: var(--acc-dim); }
.bp-chip.add { border-style: dashed; color: var(--mut); }
.bp-thumb { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; opacity: .8; }
.canvas-wrap { flex: 1; min-height: 0; position: relative; display: flex; }
.canvas-area { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; overflow: hidden;
  background: radial-gradient(circle, #1a1e25 1px, transparent 1px) 0 0 / 18px 18px; }
.canvas-area.drop { outline: 2px dashed var(--acc); outline-offset: -8px; }
.canvas-frame { position: relative; flex: none; box-shadow: 0 0 0 1px #2f3540, 0 10px 40px rgba(0, 0, 0, .55); background: #fff; }
.canvas-host { position: absolute; inset: 0; overflow: hidden; }
.canvas-overlay { position: absolute; inset: 0; outline: none; touch-action: none; }
.size-label { font-size: 12px; color: var(--mut); }
.ov-box { position: absolute; box-sizing: border-box; }
.canvas-overlay:hover .ov-box { outline: 1px dashed rgba(34, 197, 94, .35); }
.ov-box.sel { outline: 1.5px solid var(--acc) !important; }
.handle { position: absolute; width: 10px; height: 10px; background: #fff; border: 1.5px solid var(--acc); border-radius: 2px; margin: -5px 0 0 -5px; }
.handle.nw { left: 0; top: 0; cursor: nwse-resize; } .handle.n { left: 50%; top: 0; cursor: ns-resize; } .handle.ne { left: 100%; top: 0; cursor: nesw-resize; }
.handle.e { left: 100%; top: 50%; cursor: ew-resize; } .handle.se { left: 100%; top: 100%; cursor: nwse-resize; } .handle.s { left: 50%; top: 100%; cursor: ns-resize; }
.handle.sw { left: 0; top: 100%; cursor: nesw-resize; } .handle.w { left: 0; top: 50%; cursor: ew-resize; }
.lock-badge { position: absolute; top: -18px; left: 0; font-size: 11px; }
.guide { position: absolute; pointer-events: none; background: #f0abfc; }
.guide.x { top: -2000px; bottom: -2000px; width: 1px; } .guide.y { left: -2000px; right: -2000px; height: 1px; }
.overview { flex: 1; overflow: auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 22px; align-content: flex-start; }
.ov-card { cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.ov-card:hover .ov-host { outline: 2px solid var(--acc); }
.ov-host { position: relative; background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.ov-cap { font-size: 12px; color: var(--mut); }
.ov-card.add { width: 160px; height: 120px; border: 1px dashed var(--line); border-radius: 8px; align-items: center; justify-content: center; }
.ov-plus { font-size: 28px; color: var(--mut); }

/* timeline */
.ed-timeline { --tl-label: 130px; flex: none; height: 190px; border-top: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.tl-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.time-label { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; margin-left: 6px; }
.tl-body { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; }
.tl-ruler { display: flex; height: 22px; position: sticky; top: 0; background: var(--panel); z-index: 2; border-bottom: 1px solid var(--line); }
.tl-label { width: var(--tl-label); flex: none; padding: 0 10px; font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; cursor: pointer; }
.tl-scale { position: relative; flex: 1; cursor: ew-resize; margin-right: 14px; }
.tick { position: absolute; top: 4px; font-size: 10px; color: var(--mut); transform: translateX(-50%); }
.tick::after { content: ''; position: absolute; left: 50%; top: 13px; height: 5px; border-left: 1px solid var(--line); }
.tl-row { display: flex; height: 24px; align-items: center; border-bottom: 1px solid rgba(42, 47, 57, .5); }
.tl-row.sel { background: var(--acc-dim); }
.tl-row.sel .tl-label { color: var(--ink); }
.tl-lane { position: relative; flex: 1; height: 100%; margin-right: 14px; }
.tl-bar { position: absolute; top: 5px; height: 14px; background: #334155; border-radius: 4px; cursor: grab; overflow: hidden; min-width: 6px; }
.tl-bar:active { cursor: grabbing; }
.seg { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.seg.in { left: 0; background: var(--in); opacity: .85; }
.seg.out { right: 0; background: var(--out); opacity: .85; }
.seg.emph { right: 0; height: 3px; top: auto; bottom: 0; background: var(--emph); }
.edge { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 1; }
.edge.l { left: 0; } .edge.r { right: 0; }
.tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #f43f5e; pointer-events: none; z-index: 3; }

/* inspector */
.ed-right { width: 320px; flex: none; border-left: 1px solid var(--line); background: var(--panel); overflow-y: auto; padding-bottom: 30px; }
.insp-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.insp-head h3 { flex: 1; }
.type-badge { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; background: var(--panel2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; color: var(--mut); }
.name-input { flex: 1; font-weight: 600; background: transparent !important; border-color: transparent !important; }
.name-input:hover { border-color: var(--line) !important; }
.insp-sec { border-bottom: 1px solid var(--line); }
.insp-sec summary { list-style: none; padding: 10px 12px; font-weight: 600; font-size: 12.5px; cursor: pointer; color: var(--ink); margin: 0; display: flex; }
.insp-sec summary::after { content: '▾'; margin-left: auto; color: var(--mut); }
.insp-sec:not([open]) summary::after { content: '▸'; }
.sec-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.f-row { display: flex; align-items: center; gap: 8px; }
.f-label { width: 74px; flex: none; font-size: 12px; color: var(--mut); }
.f-ctrl { flex: 1; display: flex; gap: 6px; align-items: center; min-width: 0; }
.f-ctrl > * { min-width: 0; }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lf { display: flex; align-items: center; gap: 5px; flex: 1; }
.lf-l { font-size: 11.5px; color: var(--mut); min-width: 14px; }
.with-suffix { position: relative; display: flex; flex: 1; }
.with-suffix .sfx { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 10.5px; color: var(--mut); pointer-events: none; }
.align-row { display: flex; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px; justify-content: space-between; }
.color-field { display: flex; gap: 5px; align-items: center; flex: 1; flex-wrap: wrap; }
.swatch { width: 30px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; flex: none; }
.swatch::-webkit-color-swatch-wrapper { padding: 2px; } .swatch::-webkit-color-swatch { border: 0; border-radius: 4px; }
.color-text { flex: 1; min-width: 70px !important; width: 80px !important; font-family: ui-monospace, Menlo, monospace; font-size: 12px !important; }
.mini-swatches { display: flex; gap: 3px; width: 100%; }
.mini-swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer; padding: 0; }
.media-field { display: flex; gap: 6px; flex: 1; }
.anim-block { border-left: 3px solid; padding-left: 9px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.anim-block.in { border-color: var(--in); } .anim-block.emph { border-color: var(--emph); } .anim-block.out { border-color: var(--out); }
.anim-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); font-weight: 600; }
.size-list { display: flex; flex-wrap: wrap; gap: 5px; }
.size-item { padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; cursor: pointer; }
.size-item.on { border-color: var(--acc); color: var(--acc); }
.shortcuts div { margin-bottom: 4px; }

@media (max-width: 1100px) {
  .ed-left { width: 170px; } .ed-right { width: 280px; }
  .title-input { width: 160px !important; }
}
