/* Slideshow Studio — quiet graphite "screening room" chrome so the work carries the colour. */
:root {
  --ink: #171c25;
  --panel: #1f2530;
  --panel-2: #262e3b;
  --panel-3: #2f3848;
  --line: #374255;
  --line-soft: #2c3546;
  --text: #e8ecf2;
  --muted: #8f9bb0;
  --faint: #66728a;
  --amber: #f2b544;
  --amber-hi: #ffc65c;
  --amber-ink: #2b1f04;
  --danger: #ef6461;
  --ok: #4cc38a;
  --radius-s: 6px;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --topbar: 56px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ink); color: var(--text); font: 14px/1.45 var(--ui); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; text-decoration: none; color: var(--text); white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--panel-3); border-color: #4a566c; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 600; }
.btn-primary:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--line); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-icon { width: 34px; padding: 0; }
.btn-sm.btn-icon { width: 28px; }
.btn svg { flex: none; }

.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field > span, .field-label { font-size: 12px; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 34px; padding: 0 10px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s); }
.textarea { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; line-height: 1.4; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--amber); outline: none; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .field { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.range { width: 100%; accent-color: var(--amber); }
.range-row { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 8px; }
.range-row output { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; text-align: right; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 8px; }
.check input { accent-color: var(--amber); width: 16px; height: 16px; }
.color-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.color { display: flex; align-items: center; gap: 8px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 4px 8px 4px 4px; font-size: 12px; color: var(--muted); cursor: pointer; }
.color input[type=color] { width: 26px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch[aria-pressed=true] { box-shadow: 0 0 0 2px var(--amber); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 0 12px; height: 30px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--panel-3); color: var(--text); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); display: flex; align-items: center; gap: 16px; padding: 0 18px; background: rgba(23, 28, 37, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.wordmark { font: 400 22px/1 var(--display); letter-spacing: .01em; margin: 0; color: var(--text); text-decoration: none; white-space: nowrap; }
.wordmark em { color: var(--amber); }
.topnav { display: flex; gap: 2px; margin-left: 10px; }
.topnav a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: var(--radius-s); }
.topnav a:hover { color: var(--text); background: var(--panel); }
.topnav a[aria-current=page] { color: var(--text); background: var(--panel-2); }
.topbar .spacer, .editor-top .spacer { flex: 1; }
.editor-top:empty { display: none; }
body:has(.editor) .topnav { display: none; }
.usermenu { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel-3); display: grid; place-items: center; color: var(--text); font-weight: 600; font-size: 12px; }

/* ---------- pages ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 32px 24px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font: 400 40px/1.05 var(--display); margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }

/* home */
.shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.show-card { position: relative; display: grid; gap: 10px; text-decoration: none; color: var(--text); }
.show-card .thumb { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line-soft); }
.show-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.show-card:hover .thumb img { transform: scale(1.03); }
.show-card h3 { margin: 0; font-size: 15px; font-weight: 600; }
.show-card .meta { color: var(--muted); font-size: 12px; }
.show-card .card-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.show-card:hover .card-actions, .show-card:focus-within .card-actions { opacity: 1; }
.card-actions .btn { background: rgba(23, 28, 37, .85); }
.dropzone-hero { border: 1.5px dashed var(--line); border-radius: 16px; padding: 56px 24px; text-align: center; color: var(--muted); background: radial-gradient(ellipse at top, rgba(242, 181, 68, .06), transparent 60%); }
.dropzone-hero h2 { font: 400 32px/1.1 var(--display); color: var(--text); margin: 0 0 8px; }
.dropzone-hero.is-over, .is-over { border-color: var(--amber); background: rgba(242, 181, 68, .08); }

/* template gallery */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.chip[aria-pressed=true] { background: var(--text); color: var(--ink); border-color: var(--text); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px 22px; }
.tpl-card { display: grid; gap: 10px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--text); }
.tpl-card canvas { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); display: block; background: #000; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; transition: transform .25s, box-shadow .25s; }
.tpl-card:hover canvas, .tpl-card:focus-visible canvas { transform: translateY(-3px); box-shadow: var(--shadow); }
.tpl-card .tpl-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tpl-card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.tpl-card .tag { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.tpl-card p { margin: 0; color: var(--muted); font-size: 13px; }
.status-pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.status-open { color: var(--ok); border-color: rgba(76, 195, 138, .4); }
.status-assigned { color: var(--amber); border-color: rgba(242, 181, 68, .4); }
.status-closed { color: var(--danger); border-color: rgba(239, 100, 97, .4); }

/* ---------- editor ---------- */
.editor { position: fixed; inset: var(--topbar) 0 0 0; display: grid; grid-template-columns: 196px 1fr 336px; grid-template-rows: 1fr auto; grid-template-areas: "strip stage inspector" "tray tray inspector"; }
.editor-top { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.title-input { flex: 1; max-width: 420px; min-width: 220px; background: transparent; border: 1px solid transparent; border-radius: var(--radius-s); height: 34px; padding: 0 10px; font-size: 15px; font-weight: 600; }
.title-input:hover { border-color: var(--line); }
.title-input:focus { border-color: var(--amber); outline: none; background: var(--ink); }
.save-state { font-size: 12px; color: var(--faint); white-space: nowrap; }
.save-state.dirty { color: var(--amber); }
.save-state.err { color: var(--danger); }

.strip { grid-area: strip; overflow-y: auto; border-right: 1px solid var(--line-soft); padding: 12px 12px 80px; background: var(--panel); }
.strip-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.slide-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; margin-bottom: 12px; cursor: pointer; text-align: left; }
.slide-thumb canvas { width: 100%; aspect-ratio: 16/9; display: block; border-radius: var(--radius-s); outline: 2px solid transparent; outline-offset: 2px; background: #000; }
.slide-thumb[aria-current=true] canvas { outline-color: var(--amber); }
.slide-thumb .num { position: absolute; left: 6px; top: 5px; font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .6); padding: 1px 6px; border-radius: 4px; }
.slide-thumb .dur { position: absolute; right: 6px; bottom: 6px; font-size: 11px; background: rgba(0, 0, 0, .6); padding: 1px 6px; border-radius: 4px; color: #dfe4ec; }
.slide-thumb.drop-before::before, .slide-thumb.drop-after::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--amber); border-radius: 2px; }
.slide-thumb.drop-before::before { top: -8px; }
.slide-thumb.drop-after::after { bottom: -8px; }
.slide-thumb.dragging { opacity: .35; }
.add-slide { width: 100%; aspect-ratio: 16/9; border: 1.5px dashed var(--line); border-radius: var(--radius-s); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 13px; }
.add-slide:hover, .add-slide.is-over { border-color: var(--amber); color: var(--text); }

.stage-wrap { grid-area: stage; display: grid; grid-template-rows: 1fr auto; min-width: 0; min-height: 0; background: #0f131a; }
.stage { position: relative; display: grid; place-items: center; padding: 24px; min-height: 0; overflow: hidden; }
.stage canvas { max-width: 100%; max-height: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: #000; cursor: default; touch-action: none; }
.stage canvas.can-pan { cursor: grab; }
.stage canvas.panning { cursor: grabbing; }
.stage-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 12px; color: var(--faint); pointer-events: none; white-space: nowrap; }
.stage.is-over::after { content: "Drop to add to this slide"; position: absolute; inset: 16px; border: 2px dashed var(--amber); border-radius: var(--radius); display: grid; place-items: center; font-size: 16px; color: var(--amber); background: rgba(15, 19, 26, .6); }
.transport { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; }
.scrub { position: relative; flex: 1; height: 28px; cursor: pointer; }
.scrub-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; background: var(--panel-3); border-radius: 2px; }
.scrub-fill { position: absolute; left: 0; top: 12px; height: 4px; background: var(--amber); border-radius: 2px; }
.scrub-mark { position: absolute; top: 8px; width: 2px; height: 12px; background: var(--line); }
.scrub-mark.cur { background: var(--text); }
.scrub-head { position: absolute; top: 6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgba(0, 0, 0, .4); }
.timecode { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; min-width: 92px; text-align: right; }

.inspector { grid-area: inspector; border-left: 1px solid var(--line-soft); background: var(--panel); display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line-soft); padding: 0 8px; }
.tabs button { flex: 1; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; }
.tabs button[aria-selected=true] { color: var(--text); border-bottom-color: var(--amber); }
.panel-body { overflow-y: auto; padding: 16px 16px 60px; }
.section { border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; margin-bottom: 16px; }
.section:last-child { border-bottom: 0; }
.section h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.section h4 small { color: var(--faint); font-weight: 400; }
.photo-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.photo-chip { position: relative; aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--ink); }
.photo-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-chip[aria-pressed=true] { border-color: var(--amber); }
.photo-chip .x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .7); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 13px; line-height: 1; }
.photo-chip .missing { display: grid; place-items: center; height: 100%; font-size: 11px; color: var(--faint); }
.focus-pad { position: relative; border-radius: var(--radius-s); overflow: hidden; cursor: crosshair; margin: 0 auto 10px; width: fit-content; max-width: 100%; }
.focus-pad img { display: block; max-width: 100%; max-height: 220px; width: auto; height: auto; }
.focus-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); pointer-events: none; }
.help { font-size: 12px; color: var(--faint); margin: -4px 0 10px; }

.tray { grid-area: tray; border-top: 1px solid var(--line-soft); background: var(--panel); display: grid; grid-template-rows: auto 1fr; height: 168px; min-width: 0; }
.tray.collapsed { height: 40px; }
.tray-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px; min-height: 40px; }
.tray-head .title { font-size: 12px; color: var(--muted); }
.tray-list { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 12px; align-items: stretch; }
.tray-item { position: relative; flex: none; width: 112px; border-radius: var(--radius-s); overflow: hidden; border: 2px solid transparent; cursor: grab; background: var(--ink); padding: 0; }
.tray-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tray-item[aria-pressed=true] { border-color: var(--amber); }
.tray-item .used { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(0, 0, 0, .65); padding: 0 5px; border-radius: 3px; }
.tray-item .add { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--amber); color: var(--amber-ink); font-weight: 700; cursor: pointer; opacity: 0; }
.tray-item:hover .add, .tray-item:focus-visible .add { opacity: 1; }
.tray-drop { flex: none; width: 170px; border: 1.5px dashed var(--line); border-radius: var(--radius-s); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; padding: 8px; cursor: pointer; }
.tray-drop:hover { border-color: var(--amber); color: var(--text); }
.uploading { flex: none; width: 112px; border-radius: var(--radius-s); background: var(--panel-2); display: grid; place-items: center; font-size: 11px; color: var(--muted); }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; background: #000; z-index: 50; display: grid; place-items: center; }
.player canvas { max-width: 100vw; max-height: 100vh; }
.player-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); display: flex; align-items: center; gap: 12px; transition: opacity .3s; }
.player.idle .player-ui, .player.idle .player-close { opacity: 0; }
.player.idle { cursor: none; }
.player-close { position: absolute; top: 16px; right: 16px; transition: opacity .3s; }

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(8, 10, 14, .7); z-index: 80; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.modal.wide { width: min(1100px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; }
.modal-head h2 { margin: 0; font: 400 26px/1.1 var(--display); }
.modal-body { padding: 16px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 18px; }
.progress { height: 8px; background: var(--ink); border-radius: 4px; overflow: hidden; margin: 12px 0 6px; }
.progress > div { height: 100%; width: 0; background: var(--amber); transition: width .2s; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; }
.toast { background: var(--panel-3); border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 10px 14px; border-radius: var(--radius-s); box-shadow: var(--shadow); max-width: 380px; animation: rise .2s; }
.toast.error { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.menu { position: absolute; z-index: 60; min-width: 220px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: var(--radius-s); cursor: pointer; }
.menu button:hover { background: var(--panel-3); }
.menu button small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- admin ---------- */
.subnav { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.subnav a { padding: 10px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a[aria-current=page] { color: var(--text); border-bottom-color: var(--amber); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tpl-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tpl-admin-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: grid; }
.tpl-admin-card canvas { width: 100%; aspect-ratio: 16/9; display: block; }
.tpl-admin-card .body { padding: 12px 14px 14px; display: grid; gap: 10px; }
.tpl-admin-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tpl-admin-card h3 { margin: 0; font-size: 15px; }
.designer { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.designer .preview { position: sticky; top: calc(var(--topbar) + 16px); display: grid; gap: 10px; }
.designer .preview canvas { width: 100%; border-radius: var(--radius); background: #000; }
.designer .panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; max-height: calc(100vh - var(--topbar) - 40px); overflow: auto; }
.user-pick { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px; background: var(--ink); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h2 { font: 400 30px/1.1 var(--display); color: var(--text); margin: 0 0 8px; }
.notice { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; color: var(--muted); font-size: 13px; }
.notice-error { border-color: rgba(239, 100, 97, .5); color: #ffc9c7; background: rgba(239, 100, 97, .08); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* ---------- login ---------- */
body.login { min-height: 100%; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.4fr 1fr; }
.login-reel { position: relative; background: #000; display: grid; place-items: center; overflow: hidden; }
.login-reel canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-reel-caption { position: absolute; left: 24px; bottom: 18px; margin: 0; font-size: 12px; color: rgba(255, 255, 255, .6); }
.login-card { padding: 12vh 8vw 40px 6vw; display: flex; flex-direction: column; gap: 18px; justify-content: center; max-width: 560px; }
.login-card .wordmark { font-size: 56px; }
.login-lede { color: var(--muted); font-size: 17px; margin: 0; max-width: 34ch; }
.ms-btn { align-self: flex-start; }
.login-fine { color: var(--faint); font-size: 13px; margin: 0; max-width: 40ch; }
.dev-login { display: grid; gap: 6px; margin-top: 12px; }
.dev-login .btn { justify-content: flex-start; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .editor { grid-template-columns: 150px 1fr 300px; }
}
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-reel { height: 42vh; }
  .login-card { padding: 32px 20px; }
  .editor { position: static; display: flex; flex-direction: column; }
  .strip { display: flex; gap: 8px; overflow-x: auto; border-right: 0; padding: 10px; }
  .strip .slide-thumb, .strip .add-slide { width: 140px; flex: none; margin: 0; }
  .strip-head { display: none; }
  .stage { padding: 10px; }
  .inspector { border-left: 0; }
  .tray { height: 150px; }
  .designer { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .page-head h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
