/* SpotSync – Fat Dragon CI (Stand der Live-Seite fatdragon.music, 2026-11)
   Farben:  Ink #2B262A · Hellgrau #ECE6E9 · Orange #F9912B · Lockup/Wortmarke #E0763B · Rost #B45A2B · Grau #8E8489
   Schriften (selbst gehostet, siehe brand/HERKUNFT.txt):
     Barlow         Fließtext, Eingaben
     Inter          Überschriften
     Figtree        Labels, Buttons, Kicker
     Inter (tnum)   Timecode, Cue-Nummern, Burn-in (Tabellenziffern)
   Dunkle Fassung für die Videosichtung. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/brand/Barlow-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/brand/Barlow-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/brand/Barlow-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/brand/Barlow-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/brand/Barlow-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/brand/Barlow-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("/brand/BarlowCondensed-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("/brand/BarlowCondensed-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("/brand/Figtree-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("/brand/Figtree-var-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/brand/Inter-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/brand/Inter-var-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Marke */
  --ink: #2B262A;
  --sand: #ECE6E9;
  --orange: #F9912B;
  --lockup: #E0763B;
  --rust: #B45A2B;
  --grey: #8E8489;

  /* Flächen (dunkel, aus Ink abgeleitet) */
  --bg: #1C181A;
  --panel: #2B262A;
  --panel-2: #352F33;
  --panel-3: #403940;
  --line: #4A4247;
  --line-soft: #3A3337;
  --text: #ECE6E9;
  --text-2: #C9C0C5;
  --muted: #9A9096;
  --accent: #F9912B;
  --accent-hover: #FFA54D;
  --accent-active: #E0763B;
  --accent-ink: #2B262A;
  --accent-tint: rgba(249, 145, 43, 0.14);
  --ok: #7CBF8E;
  --warn: #E6B35A;
  --danger: #E06B6B;

  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --head: "Inter", "Segoe UI", system-ui, sans-serif;
  --label: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "Inter", "Segoe UI", system-ui, sans-serif; /* Zahlen: Inter mit Tabellenziffern */
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.mono, .tc, .cuelist td.tc, .cuelist td.num, .kv b, .burnin, .settings input, .settings select, .row input.tcin, #tlPendingLabel, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "cv11" 1; }

/* Schaltflächen: Figtree 600 wie .btn auf der Website */
button {
  font-family: var(--label); font-weight: 600; font-size: 13.5px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 12px; cursor: pointer; color: var(--text); line-height: 1.3;
  transition: background .12s, border-color .12s, color .12s;
}
button:hover { background: var(--panel-3); border-color: var(--grey); }
button:active { background: var(--panel); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.primary:active { background: var(--accent-active); border-color: var(--accent-active); }
button.small, label.small { padding: 3px 9px; font-size: 12px; }
button.icon { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; }
button.icon svg { width: 16px; height: 16px; fill: currentColor; display: block; }
button.play { width: 54px; height: 54px; border-radius: 50%; padding: 0; }
button.play svg { width: 22px; height: 22px; }
button.mono { font-weight: 600; }

input, select, textarea {
  font-family: var(--body); font-size: 15px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 9px; width: 100%; color: var(--text); transition: border-color .12s;
}
input:hover, select:hover, textarea:hover { border-color: var(--grey); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; }
input::placeholder, textarea::placeholder { color: #776d73; }
input.mono, .tc, .cuelist td.tc, .cuelist td.num, .kv b, .burnin, .settings input, .settings select, .row input.tcin, #tlPendingLabel, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "cv11" 1; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
fieldset:disabled { opacity: .45; pointer-events: none; }

/* Labels: Figtree 600, klein, Versalien (wie .kicker / .card-kicker) */
label { display: flex; flex-direction: column; gap: 4px; font-family: var(--label); font-weight: 600; font-size: 10.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
label > input, label > select, label > textarea { text-transform: none; letter-spacing: 0; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
[hidden] { display: none !important; }

/* Wortmarke */
.wordmark { display: inline-block; line-height: 0; --wm-fat: #FFFFFF; --wm-dragon: var(--lockup); }
.wordmark svg { height: 100%; width: auto; display: block; }

/* Hinweis-Toast */
.toast { position: fixed; top: 14px; left: 50%; transform: translate(-50%, -20px); background: var(--panel-3); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-family: var(--label); font-weight: 600; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 60; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { border-color: var(--warn); }

/* Beitritt */
.overlay { position: fixed; inset: 0; background: rgba(20, 16, 18, 0.84); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 30px 30px 26px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.card .wordmark { height: 34px; margin-bottom: 6px; }
.card .joininfo { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.card .joininfo .occ { font-size: 15px; color: var(--text-2); }
.card .joininfo a { color: var(--accent); }
.sourcebar .dl { color: var(--accent); font-family: var(--label); font-weight: 600; text-decoration: none; }
.sourcebar .dl:hover { text-decoration: underline; }
.card h1 { margin: 0; font-family: var(--label); font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.card p { margin: 0 0 4px; color: var(--text-2); }
.card input { padding: 9px 11px; font-size: 16px; }
.card button.primary { padding: 10px 14px; font-size: 15px; margin-top: 4px; }

/* Kopfzeile */
header { display: flex; align-items: flex-end; gap: 18px; padding: 14px 22px 12px; background: var(--panel); border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.brand { display: flex; align-items: flex-end; gap: 16px; }
.brand .wordmark { height: 30px; }
.brand .product { font-family: var(--label); font-weight: 700; font-size: 24px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); line-height: 1; padding-bottom: 1px; }
header .meta { margin-left: 18px; align-items: flex-end; }
header .participants, header .conn { align-self: flex-end; }
header .participants { padding-bottom: 1px; }
header .conn { padding-bottom: 6px; }
header .meta button { position: relative; top: 1px; }
.meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kv { color: var(--muted); display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--label); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; line-height: 1; }
.kv b { font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: .01em; color: var(--text); text-transform: none; line-height: 1; }
.kv #occasionText { font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.kv #occasionText.editable { cursor: text; border-bottom: 1px dashed var(--line); padding-bottom: 1px; }
.kv #occasionText.editable:hover { border-bottom-color: var(--accent); }
.kv #occasionText.empty { color: var(--muted); font-style: italic; }
.kv #occasionInput { width: 240px; padding: 2px 8px; font-family: var(--head); font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; }
.conn { font-family: var(--label); font-weight: 600; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.conn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.conn.on::before { background: var(--ok); }
.conn.off::before { background: var(--danger); }

/* Teilnehmer-Chips mit Rechten */
.participants { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 6px 3px 11px; font-size: 13.5px; color: var(--text-2); line-height: 1.2; }
.chip b { font-weight: 500; color: var(--text); }
.chip.ok { border-color: var(--ok); }
.chip.warn { border-color: var(--warn); }
.chip .badge { font-style: normal; font-family: var(--label); font-weight: 700; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 1px 7px; }
.chip .lead { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.chip .rights { font-style: normal; font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chip .perm { font-size: 10.5px; padding: 1px 8px; border-radius: 999px; background: transparent; border-color: var(--line); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.chip .perm:hover { color: var(--text); border-color: var(--grey); }
.chip .perm.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Layout */
main { display: grid; grid-template-columns: minmax(0, 1fr) 500px; flex: 1; min-height: 0; }
@media (min-width: 1500px) { main { grid-template-columns: minmax(0, 1fr) 560px; } }
.player { display: flex; flex-direction: column; padding: 14px 18px; gap: 10px; min-width: 0; }
.cues { background: var(--panel); border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; min-height: 0; }
.cues > .hint { margin: 12px 14px 0; }

/* Quelle */
.sourcebar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filebtn { display: inline-block; font-family: var(--label); font-weight: 600; font-size: 13.5px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 12px; cursor: pointer; color: var(--text); text-transform: none; letter-spacing: 0; transition: background .12s, border-color .12s; }
.filebtn:hover { background: var(--panel-3); border-color: var(--grey); }
.filebtn input { display: none; }
.hint { background: rgba(230, 179, 90, 0.10); border: 1px solid rgba(230, 179, 90, 0.5); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13.5px; color: var(--text); }
.hint b { color: var(--warn); }
.progress { height: 5px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* Video + Burn-in */
.videowrap { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; max-height: 62vh; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-soft); }
video { width: 100%; height: 100%; object-fit: contain; display: block; }
.burnin {
  position: absolute; top: 4%; left: 3%; pointer-events: none;
  display: flex; align-items: baseline; gap: .55em; max-width: 90%;
  font-weight: 700; font-size: clamp(18px, 3.2vw, 44px); line-height: 1;
  color: #6FE08A; letter-spacing: .02em;
  text-shadow: 0 0 2px rgba(0,0,0,.9), 0 2px 6px rgba(0,0,0,.7), 0 0 14px rgba(0,0,0,.5);
}
.burnin .title { font-family: var(--label); font-weight: 700; font-size: 1em; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.burnin.out { color: #fff; }
.novideo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; line-height: 1.6; color: var(--text-2); gap: 6px; }
.novideo .wordmark { height: 30px; margin-bottom: 12px; --wm-fat: var(--line); --wm-dragon: #5a3a2a; }

/* Zeitleiste */
/* Timeline: thumbnails strip, cue brackets above, note lines with labels below */
.timeline { position: relative; height: 80px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; user-select: none; touch-action: none; background: linear-gradient(var(--panel) 0 0) no-repeat; }
.timeline canvas { position: absolute; left: 0; top: 20px; display: block; border-radius: 4px; }
.timeline svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.timeline .tl-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.timeline text { font-family: var(--label); font-weight: 600; font-size: 10.5px; letter-spacing: .02em; pointer-events: none; }
.timeline .tl-cue path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.timeline .tl-note line { stroke: rgba(236, 230, 233, .85); stroke-width: 1.5; }
.timeline .tl-note path { fill: none; stroke: rgba(236, 230, 233, .6); stroke-width: 1.2; }
.timeline .tl-note text { fill: var(--text-2); font-family: var(--body); font-weight: 500; font-size: 10.5px; }
.timeline #tlPending { fill: none; stroke-width: 2; stroke-linecap: round; }
.timeline #tlPendingLabel { font-weight: 700; }

/* Transport */
.transport { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tc { font-size: 30px; font-weight: 600; letter-spacing: .01em; min-width: 200px; color: var(--accent); line-height: 1; }
.buttons { display: flex; gap: 6px; align-items: center; }
.settings { display: flex; gap: 12px; align-items: flex-end; margin-left: auto; flex-wrap: wrap; }
.settings label { width: auto; }
.settings input, .settings select { width: auto; font-family: var(--mono); font-size: 14px; }
.settings #reel { width: 62px; }
.settings #syncInfo { font-size: 12.5px; padding-bottom: 7px; }

/* Cue-Formular */
.cueform { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 9px; border-bottom: 1px solid var(--line-soft); background: var(--panel); }
.row { display: flex; gap: 8px; align-items: flex-end; }
.row label { flex: 1; }
.row label.short { flex: 0 0 112px; }
.row label.num { flex: 0 0 84px; }
.row label.grow { flex: 2; }
.noteform { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line-soft); background: var(--panel-2); }

.cuelist .swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--cue-color, var(--line)); margin-right: 6px; vertical-align: middle; }

.row input.tcin { color: var(--accent); font-weight: 600; background: var(--bg); font-size: 14px; }
.row input.tcin::placeholder { color: #776d73; font-weight: 400; }

/* Cue-Liste */
.cuelist-wrap { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 120px; }
.cuelist { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.cuelist th:nth-child(1), .cuelist td.num { width: 66px; }
.cuelist th:nth-child(3), .cuelist th:nth-child(4) { width: 98px; }
.cuelist th:nth-child(5), .cuelist td.actions { width: 74px; padding-left: 4px; padding-right: 18px; }
.cuelist tr.cue { border-left-width: 0; box-shadow: inset 3px 0 0 transparent; }
.cuelist tr.active { box-shadow: inset 3px 0 0 var(--cue-color, var(--accent)); }
.cuelist td.main { overflow-wrap: anywhere; }
.cuelist .dur { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.cuelist th { position: sticky; top: 0; background: var(--panel-2); text-align: left; padding: 7px 10px; font-family: var(--label); font-weight: 600; font-size: 10.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; z-index: 1; }
.cuelist td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cuelist tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.cuelist tr.cue { cursor: pointer; border-left: 3px solid transparent; transition: background .1s; }
.cuelist tr.cue:hover { background: var(--panel-2); }
.cuelist tr.note td { color: var(--muted); }
.cuelist tr.note .title { font-weight: 500; color: var(--text-2); }
.cuelist tr.active { background: var(--accent-tint); }
.cuelist tr.note td.tc:nth-child(4) { color: var(--line); }
.cuelist td.num { font-weight: 700; font-size: 12px; letter-spacing: 0; color: var(--text); white-space: nowrap; }
.cuelist td.tc { font-size: 12px; letter-spacing: -.01em; white-space: nowrap; color: var(--text-2); padding-left: 6px; padding-right: 6px; }
.cuelist tr.active td.tc { color: var(--text); }
.cuelist .title { font-family: var(--head); font-weight: 600; font-size: 13.5px; }
.cuelist .notes { color: var(--text-2); white-space: pre-wrap; font-size: 13px; margin-top: 2px; }
.cuelist .type, .cuelist .author { display: inline-block; font-family: var(--label); font-weight: 600; font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; margin-left: 7px; color: var(--muted); vertical-align: middle; line-height: 16px; }
.cuelist .author { border-color: transparent; padding-left: 0; margin-left: 4px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; }
.cuelist td.actions { white-space: nowrap; text-align: right; }
.cuelist td.actions button { padding: 2px 7px; font-size: 12px; margin-left: 2px; background: transparent; border-color: transparent; color: var(--muted); }
.cuelist td.actions button:hover { color: var(--text); background: var(--panel-3); border-color: var(--line); }
.cuelist .empty td { color: var(--muted); padding: 22px 12px; text-align: center; }

.exportbar { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; align-items: center; background: var(--panel); }
.shortcuts { padding: 0 14px 10px; background: var(--panel); line-height: 1.7; }
kbd { font-size: 11px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; color: var(--text-2); }

.printonly { display: none; }

@media (max-width: 1000px) {
  main { grid-template-columns: 1fr; }
  .cues { border-left: none; border-top: 1px solid var(--line-soft); }
  .videowrap { max-height: 45vh; }
  .settings { margin-left: 0; }
}

@media print {
  body > *:not(#printArea) { display: none !important; }
  body { background: #fff; color: #000; }
  .printonly { display: block; padding: 20px; font: 11pt/1.4 var(--body); color: #2B262A; }
  .printonly .wordmark { height: 24px; margin-bottom: 8px; --wm-fat: #2B262A; --wm-dragon: #E0763B; }
  .printonly h1 { font-family: var(--head); font-weight: 700; font-size: 18pt; margin: 0 0 4px; }
  .printonly table { width: 100%; border-collapse: collapse; margin-top: 12px; }
  .printonly th, .printonly td { border: 1px solid #bbb; padding: 4px 6px; text-align: left; vertical-align: top; }
  .printonly th { background: #ECE6E9; font-family: var(--label); font-size: 9pt; text-transform: uppercase; letter-spacing: .05em; }
  .printonly .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
}

/* ---------- Admin dashboard ---------- */
.admin { max-width: 1100px; margin: 0 auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 18px; }
.admin h2 { font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 18px; }
.panel .row + .row { margin-top: 10px; }
.plist { display: flex; flex-direction: column; gap: 6px; }
.plist .prow { display: flex; gap: 8px; align-items: center; }
.plist .prow .pname { flex: 1 1 160px; }
.plist .prow .pmail { flex: 1.4 1 200px; }
.plist .prow .chks { display: inline-flex; gap: 10px; align-items: center; padding: 0 4px; white-space: nowrap; }
.plist .prow label.chk { flex-direction: row; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text-2); width: auto; }
.plist .prow label.chk input { width: auto; margin: 0; }
.plist .prow .remove { padding: 7px 14px; }
.filemode { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 8px 24px; max-width: 640px; }
.filemode label { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); width: auto; white-space: nowrap; }
.filemode label small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.filemode input { width: auto; }
.admin .row > .filebtn { flex: 0 0 auto; }
.admin #fFileInfo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.sessions { display: flex; flex-direction: column; gap: 10px; }
.session { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.session .head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.session .project { font-family: var(--head); font-weight: 700; font-size: 18px; }
.session .occ { color: var(--text-2); font-size: 15px; }
.session .code { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--accent); font-size: 14px; }
.session .facts { color: var(--muted); font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.session .facts b { color: var(--text-2); font-weight: 500; }
.session .links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; grid-column: 1 / -1; }
.session .links code { font-family: var(--mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 6px; padding: 4px 8px; color: var(--text-2); user-select: all; }
.session .invited { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.session .invited span { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }
.session .invited span i { font-style: normal; color: var(--muted); font-family: var(--label); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }
.session .actions { display: flex; gap: 6px; align-items: flex-start; }
button.danger { color: var(--danger); }
button.danger:hover { border-color: var(--danger); }
.admin .upload { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.admin .upload .progress { flex: 1; height: 10px; border-radius: 5px; background: var(--panel-3); border: 1px solid var(--line-soft); }
.admin .upload .progress div { border-radius: 5px; }
.admin .upload .pct { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 48px; text-align: right; color: var(--text-2); }
