/* ───────── 라이브 관리자 · 디자인 ───────── */
:root {
  --bg: #f5f4fa;
  --bg-glow: radial-gradient(1200px 600px at 100% -10%, rgba(255, 92, 120, .10), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(124, 92, 255, .08), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f8f7fc;
  --surface-3: #f0eef8;
  --border: #e9e6f2;
  --text: #17152b;
  --muted: #7c7891;
  --brand-1: #ff4d6d;
  --brand-2: #ff8a3d;
  --brand: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --accent: #f0435f;
  --accent-soft: #fff0f2;
  --violet: #7c5cff;
  --violet-soft: #f1edff;
  --ok: #12a26b;
  --ok-soft: #e6f7ef;
  --warn: #d98100;
  --warn-soft: #fff5e3;
  --side: #15132a;
  --side-2: #1e1b3a;
  --side-text: #c9c5e0;
  --side-muted: #7f7a9e;
  --shadow-sm: 0 1px 2px rgba(23, 21, 43, .04);
  --shadow: 0 1px 2px rgba(23, 21, 43, .04), 0 8px 24px -8px rgba(23, 21, 43, .10);
  --shadow-lg: 0 24px 60px -12px rgba(23, 21, 43, .28);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e1a; --surface: #181629; --surface-2: #1d1b31; --surface-3: #242139; --border: #2b2845;
    --text: #f1eff9; --muted: #9a96b3; --accent-soft: #3a1621; --violet-soft: #251f45; --ok-soft: #12291f; --warn-soft: #2f230d;
    --side: #0b0a14; --side-2: #15132a; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0e1a; --surface: #181629; --surface-2: #1d1b31; --surface-3: #242139; --border: #2b2845;
  --text: #f1eff9; --muted: #9a96b3; --accent-soft: #3a1621; --violet-soft: #251f45; --ok-soft: #12291f; --warn-soft: #2f230d;
  --side: #0b0a14; --side-2: #15132a; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg-glow), var(--bg); background-attachment: fixed; color: var(--text);
  font: 15px/1.55 "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
svg { width: 100%; height: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 11px; letter-spacing: .16em; font-weight: 800; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-text { color: var(--accent); min-height: 1em; margin: 4px 0; font-size: 14px; }

/* ── 버튼 ── */
button { cursor: pointer; border: 0; background: none; }
.primary, .secondary, .danger, .danger-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 12px; font-weight: 700; white-space: nowrap;
  transition: transform .12s, box-shadow .2s, filter .2s, background .2s, border-color .2s;
}
.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(255, 77, 109, .55); }
.primary:hover { filter: brightness(1.05); box-shadow: 0 10px 24px -8px rgba(255, 77, 109, .65); }
.primary:active, .secondary:active { transform: translateY(1px); }
.primary.big { padding: 14px; width: 100%; font-size: 16px; border-radius: 14px; }
.secondary { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.secondary:hover { border-color: color-mix(in srgb, var(--violet) 40%, var(--border)); background: var(--surface-2); }
.danger { background: #d92d4a; color: #fff; }
.danger-ghost { color: var(--accent); border: 1px solid transparent; }
.danger-ghost:hover { background: var(--accent-soft); }
.text-button { color: var(--side-muted); padding: 0; font-size: 13px; }
.text-button:hover { color: #fff; }
.icon-btn { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 15%, transparent); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); padding: 0; box-shadow: none; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
label small, .form-grid small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.check-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; align-self: end; padding-bottom: 12px; }
.check-label small { flex-basis: 100%; padding-left: 26px; margin-top: -4px; }
.inline-label { display: flex; align-items: center; gap: 10px; margin: 0; }
.inline-label select { width: auto; min-width: 200px; }

/* ── 로그인 ── */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(800px 500px at 20% 10%, rgba(255, 77, 109, .35), transparent 60%),
              radial-gradient(700px 500px at 90% 90%, rgba(124, 92, 255, .35), transparent 60%), #0f0d1f;
}
.auth-card { width: min(420px, 100%); background: rgba(255,255,255,.97); color: #17152b; border-radius: 26px; padding: 38px 32px 30px; box-shadow: var(--shadow-lg); }
.auth-card .brand { color: #17152b; margin-bottom: 30px; }
.auth-card h1 { font-size: 30px; margin: 8px 0 6px; }
.auth-card p { margin: 0 0 22px; color: #7c7891; }
.auth-card input { background: #f8f7fc; border-color: #e9e6f2; color: #17152b; }
.auth-note { text-align: center; font-size: 13px; margin: 16px 0 0 !important; }

/* ── 레이아웃 ── */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--side-2), var(--side) 60%); color: var(--side-text);
  padding: 24px 16px 18px; display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; color: #fff; padding: 0 6px; }
.brand-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--brand); border-radius: 11px; box-shadow: 0 8px 20px -6px rgba(255, 77, 109, .7); flex: none; }
.brand-icon svg { width: 22px; height: 22px; }
nav { display: grid; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--side-text); text-align: left; font-weight: 600; transition: background .15s, color .15s; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.09); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.nav-item .ni { width: 20px; height: 20px; opacity: .85; flex: none; }
.section-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .14em; color: var(--side-muted); font-weight: 800; padding: 0 6px 8px; }
.section-label .icon-btn { color: #fff; background: rgba(255,255,255,.08); font-size: 16px; }
.section-label .icon-btn:hover { background: var(--brand); }
.channel-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; border-radius: 11px; color: var(--side-text); text-align: left; gap: 8px; font-weight: 500; }
.channel-item:hover { background: rgba(255,255,255,.05); }
.channel-item.active { background: rgba(255, 77, 109, .14); color: #fff; }
.channel-item .cnt { font-size: 12px; color: var(--side-muted); display: flex; align-items: center; gap: 6px; }
.channel-item .edit { opacity: 0; font-size: 12px; padding: 0 2px; color: var(--side-muted); }
.channel-item:hover .edit { opacity: 1; }
.sidebar-channels { flex: 1; }
.sidebar-bottom { font-size: 13px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 12px 14px; }
.sidebar-bottom p { margin: 2px 0 8px; color: var(--side-muted); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 5px; box-shadow: 0 0 0 3px rgba(18,162,107,.2); }
.live-dot.off { background: var(--brand-1); box-shadow: 0 0 0 3px rgba(255,77,109,.25); }

main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 28px 36px 8px; }
.topbar h1 { font-size: 30px; font-weight: 800; }
.topbar-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; font-size: 18px; background: var(--surface); border: 1px solid var(--border); }
.onair-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .1em; padding: 8px 13px; border-radius: 999px; box-shadow: 0 6px 18px -6px rgba(255,77,109,.6); }
.onair-pill i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.page { padding: 18px 36px 36px; }
footer { margin-top: 44px; font-size: 12px; color: var(--muted); }

/* ── 통계 ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; box-shadow: var(--shadow-sm); }
.stat em { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; padding: 11px; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat strong { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.s-total em { background: var(--violet-soft); color: var(--violet); }
.s-live em { background: var(--accent-soft); }
.s-live strong { color: var(--accent); }
.s-warn em { background: var(--warn-soft); color: var(--warn); }
.s-load em { background: var(--ok-soft); color: var(--ok); }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-1); box-shadow: 0 0 0 0 rgba(255,77,109,.6); animation: ring 1.8s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,77,109,.55); } 100% { box-shadow: 0 0 0 12px rgba(255,77,109,0); } }

.list-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.list-header select { width: auto; min-width: 200px; }
.filters { display: flex; gap: 4px; background: var(--surface-3); padding: 4px; border-radius: 13px; }
.filters button { padding: 7px 16px; border-radius: 10px; font-weight: 700; color: var(--muted); font-size: 14px; }
.filters button.selected { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ── 방송 카드 ── */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.slot-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.slot-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23,21,43,.04), 0 18px 40px -14px rgba(23,21,43,.22); }
.slot-card.is-live { border-color: color-mix(in srgb, var(--brand-1) 35%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 10%, transparent), var(--shadow); }
.slot-visual { position: relative; aspect-ratio: 16 / 8; background: #1a1730 center / cover no-repeat; display: flex; align-items: flex-end; margin: 8px 8px 0; border-radius: 16px; overflow: hidden; }
.slot-visual.no-bg { background:
  radial-gradient(120% 90% at 0% 0%, #ff4d6d 0%, transparent 55%),
  radial-gradient(110% 90% at 100% 10%, #7c5cff 0%, transparent 55%),
  radial-gradient(90% 90% at 60% 120%, #ff8a3d 0%, transparent 60%), #241f45; }
.slot-visual.video.no-bg { background:
  radial-gradient(120% 90% at 0% 0%, #2bc6ff 0%, transparent 55%),
  radial-gradient(110% 90% at 100% 10%, #7c5cff 0%, transparent 55%), #17213f; }
.slot-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,25,.05) 30%, rgba(10,8,25,.72)); }
.slot-visual .vis-text { position: relative; z-index: 1; padding: 14px 16px; color: #fff; width: 100%; }
.slot-visual .now-label { font-size: 11px; letter-spacing: .14em; opacity: .85; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.slot-visual .now-title { font-weight: 800; font-size: 19px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.03em; }
.slot-visual .bg-btn { position: absolute; z-index: 2; top: 12px; right: 12px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); }
.slot-visual .bg-btn:hover { background: rgba(255,255,255,.28); }
.slot-visual .status { position: absolute; z-index: 2; top: 12px; left: 12px; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.eq i { width: 3px; background: #fff; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: -.2s; } .eq i:nth-child(2) { animation-delay: -.6s; } .eq i:nth-child(3) { animation-delay: -.4s; } .eq i:nth-child(4) { animation-delay: -.8s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #cfcbe3; }
.status.live { background: var(--brand); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(255,77,109,.8); }
.status.live::before { background: #fff; animation: blink 1.4s infinite; }
.status.starting::before { background: #ffd166; animation: blink .8s infinite; }
.status.retrying { background: #f29a1f; border-color: transparent; }
.status.retrying::before, .status.error::before { background: #fff; }
.status.error { background: #c4223f; border-color: transparent; }
.slot-body { padding: 16px 18px 14px; display: grid; gap: 10px; flex: 1; align-content: start; }
.slot-title-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.slot-title-row h3 { font-size: 18px; font-weight: 800; }
.chip { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 8px; background: var(--violet-soft); color: var(--violet); white-space: nowrap; }
.chip.video { background: #e6f6ff; color: #1a8fd0; }
.slot-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.slot-meta > span { background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 8px; }
.slot-meta b { color: var(--text); font-weight: 700; }
.slot-next { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-next b { color: var(--text); font-weight: 600; }
.slot-error { background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; padding: 9px 12px; border-radius: 11px; word-break: break-all; }
.slot-error.bad { background: var(--accent-soft); color: var(--accent); }
.slot-actions { display: flex; gap: 6px; padding: 12px 14px 14px; }
.slot-actions .primary, .slot-actions .secondary { padding: 9px 12px; font-size: 14px; border-radius: 11px; }
.slot-actions .grow { flex: 1; }
.stop-btn { background: var(--text) !important; color: var(--bg) !important; box-shadow: none !important; }
.ibtn { width: 40px; padding: 0 !important; }
.ibtn svg { width: 18px; height: 18px; }

.empty { background: var(--surface); border: 2px dashed var(--border); border-radius: 22px; padding: 48px 20px; text-align: center; display: grid; gap: 8px; color: var(--muted); justify-items: center; }
.empty::before { content: ""; width: 64px; height: 64px; border-radius: 20px; background: var(--brand); box-shadow: 0 12px 30px -10px rgba(255,77,109,.6);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='7'/%3E%3C/svg%3E"); margin-bottom: 6px; }
.empty strong { color: var(--text); font-size: 18px; }

/* ── 미디어 ── */
.media-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.media-top .primary { margin-left: auto; }
.dropzone { border: 2px dashed color-mix(in srgb, var(--violet) 30%, var(--border)); border-radius: var(--radius); padding: 24px; display: grid; gap: 4px; justify-items: center; text-align: center; background: linear-gradient(135deg, var(--violet-soft), var(--accent-soft)); cursor: pointer; margin-bottom: 16px; transition: border-color .15s, transform .15s; }
.dropzone strong { font-size: 15.5px; }
.dropzone span { color: var(--muted); font-size: 13.5px; }
.dropzone .secondary { margin-top: 8px; }
.dropzone.small { padding: 16px; background: var(--surface-2); }
.dropzone.over { border-color: var(--accent); transform: scale(1.01); }
.upload-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.upload-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; gap: 10px; }
progress { width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; background: var(--surface-3); appearance: none; }
progress::-webkit-progress-bar { background: var(--surface-3); }
progress::-webkit-progress-value { background: var(--brand); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--brand-1); }
.media-layout { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.media-folders { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; display: grid; gap: 3px; box-shadow: var(--shadow-sm); }
.folder-item { display: grid; gap: 2px; text-align: left; padding: 11px 13px; border-radius: 12px; }
.folder-item:hover { background: var(--surface-2); }
.folder-item.active { background: var(--violet-soft); }
.folder-item.active strong { color: var(--violet); }
.folder-item strong { font-size: 14.5px; }
.folder-item span { font-size: 12px; color: var(--muted); }
.media-files { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-height: 260px; box-shadow: var(--shadow-sm); }
.media-files-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.media-files-head h2 { font-size: 19px; font-weight: 800; }
.row-actions { display: flex; gap: 6px; }
.file-list { display: grid; }
.file-row { display: grid; grid-template-columns: 34px 1fr auto auto auto; gap: 12px; align-items: center; padding: 9px 6px; border-radius: 12px; font-size: 14px; }
.file-row:hover { background: var(--surface-2); }
.file-row .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-row .fmeta { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.file-row .ficon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; background: var(--violet-soft); color: var(--violet); }
.file-row button { font-size: 13px; padding: 4px 9px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.file-row button:hover { color: var(--text); background: var(--surface-3); }
.file-preview { grid-column: 1 / -1; padding: 4px 6px 10px; }
.file-preview audio { width: 100%; }
/* 영상·그림은 16:9 그대로, 너무 크지 않게 가운데 */
.file-preview video, .file-preview img { display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; height: auto; object-fit: contain; margin: 0 auto; background: #000; border-radius: 12px; }
.prep { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 7px; background: var(--surface-3); }
.prep.ready { color: var(--ok); background: var(--ok-soft); }
.prep.working, .prep.queued { color: var(--warn); background: var(--warn-soft); }
.prep.failed { color: var(--accent); background: var(--accent-soft); }

/* ── 기록 ── */
.events { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.event { display: grid; grid-template-columns: 14px 150px 1fr; gap: 12px; align-items: baseline; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.event::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); opacity: .6; }
.event:last-child { border-bottom: 0; }
.event time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.event.warn::before { background: var(--warn); opacity: 1; }
.event.error::before { background: var(--accent); opacity: 1; }
.event.error { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }

/* ── 설정 ── */
.system-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.sys { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.sys span { font-size: 13px; color: var(--muted); display: block; font-weight: 600; margin-bottom: 2px; }
.sys strong { font-size: 16px; word-break: break-all; font-weight: 800; }
.sys.bad strong { color: var(--accent); }
.sys.good strong { color: var(--ok); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 18px; margin-bottom: 14px; font-weight: 800; }
.steps { padding-left: 20px; margin: 0 0 10px; display: grid; gap: 8px; font-size: 14px; }

/* ── 대화상자 ── */
dialog { border: 0; border-radius: 24px; padding: 26px 28px; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
dialog.wide { width: min(740px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(15, 13, 31, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 22px; font-weight: 800; }
.close { font-size: 22px; line-height: 1; color: var(--muted); width: 34px; height: 34px; border-radius: 10px; }
.close:hover { background: var(--surface-3); color: var(--text); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; align-items: center; }
.spacer { flex: 1; }
fieldset { border: 0; background: var(--surface-2); border-radius: 16px; padding: 16px 18px 4px; margin: 0 0 14px; }
legend { float: left; width: 100%; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--violet); padding: 0; margin-bottom: 12px; }
legend + * { clear: both; }
fieldset input, fieldset select { background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.key-row { display: flex; gap: 6px; }
.key-row input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; }
.folder-choices { display: grid; gap: 6px; margin-bottom: 14px; max-height: 210px; overflow: auto; }
.folder-choice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; margin: 0; font-weight: 600; cursor: pointer; background: var(--surface); transition: border-color .15s; }
.folder-choice:has(input:checked) { border-color: var(--violet); background: var(--violet-soft); }
.folder-choice small { margin-left: auto; }
.folder-choices .muted { font-size: 13.5px; }
details.adv summary { cursor: pointer; color: var(--muted); font-size: 13.5px; margin-bottom: 12px; font-weight: 600; }
.log-body { background: #0f0d1f; color: #d8d4ee; font: 12.5px/1.6 ui-monospace, Menlo, Consolas, monospace; border-radius: 14px; padding: 16px; height: 50vh; overflow: auto; white-space: pre-wrap; word-break: break-all; margin: 0 0 10px; }
.upcoming { font-size: 13.5px; margin-bottom: 12px; color: var(--muted); }
.upcoming b { color: var(--text); }

#toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: #17152b; color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 700; z-index: 100; max-width: calc(100vw - 32px); box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
#toast.bad { background: #c4223f; }

/* ── 모바일 ── */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .22s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 18px 16px 4px; }
  .topbar h1 { font-size: 23px; }
  .page { padding: 12px 16px 28px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { grid-template-columns: 38px 1fr; padding: 13px 14px; }
  .stat em { width: 38px; height: 38px; padding: 9px; }
  .stat strong { font-size: 22px; }
  .slot-grid { grid-template-columns: 1fr; }
  .media-layout, .settings-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .event { grid-template-columns: 14px 1fr; }
  .event span { grid-column: 2; }
  .file-row { grid-template-columns: 30px 1fr auto auto; }
  .file-row .fsize { display: none; }
  #add-slot { padding: 9px 13px; }
  .onair-pill { display: none; }
  dialog { padding: 22px 18px; }
}

/* ── 방송 칸 편집: 탭 ── */
dialog.tabbed { width: min(980px, calc(100vw - 32px)); padding: 22px 26px; }
dialog.tabbed form { display: flex; flex-direction: column; max-height: calc(100vh - 80px); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex: none; }
.tabs button { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-bottom-color: var(--brand-1); }
.tab-body { overflow-y: auto; flex: 1; min-height: 300px; padding-right: 4px; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.choice { display: grid; gap: 4px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; margin: 0; position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { font-weight: 500; font-size: 13px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--brand-1); background: var(--accent-soft); }
.choice:has(input:checked) strong::after { content: " ✓"; color: var(--brand-1); }
.tag { font-style: normal; font-size: 11px; background: var(--brand); color: #fff; padding: 2px 7px; border-radius: 6px; vertical-align: 2px; }
.notice-line { background: var(--warn-soft); color: var(--text); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin: 0 0 14px; }
.row-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.row-line .inline-label { margin: 0; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 6px 0 10px; }
.switch-row span { display: grid; gap: 2px; }
.switch-row small { font-weight: 500; }
input.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); position: relative; flex: none; cursor: pointer; padding: 0; transition: background .2s; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .2s; }
input.switch:checked { background: var(--brand-1); border-color: transparent; }
input.switch:checked::after { left: 22px; }
.thumb-list { display: grid; gap: 8px; }
.thumb-item { display: grid; grid-template-columns: 28px 160px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.thumb-item img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; display: block; }
.thumb-item .num { font-weight: 800; text-align: center; color: var(--muted); }
.thumb-item .name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-item .row-actions button { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; background: var(--surface-2); }
.now-badge { font-size: 11.5px; font-weight: 800; color: var(--accent); border: 1px solid currentColor; border-radius: 7px; padding: 1px 7px; margin-left: 6px; }
.title-history { font: 12.5px/1.7 ui-monospace, Menlo, Consolas, monospace; background: #0f0d1f; color: #d8d4ee; border-radius: 12px; padding: 12px 14px; max-height: 220px; overflow: auto; margin-top: 6px; }
.title-history a { color: #9db7ff; }
.log-body.tall { height: 55vh; }
textarea { resize: vertical; }

/* ── 구글 연결 ── */
.google-card { margin-bottom: 16px; }
.badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: var(--surface-3); color: var(--muted); vertical-align: 3px; margin-left: 6px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.google-box { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 8px; }
.yt-ch { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.yt-ch img { width: 32px; height: 32px; border-radius: 50%; }

/* ── 방송 카드: 유튜브 정보 ── */
.yt-box { display: grid; gap: 4px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.yt-box .yt-title { font-weight: 800; font-size: 14px; color: var(--text); }
.yt-box .health { font-weight: 800; }
.yt-box .health.good, .yt-box .health.ok { color: var(--ok); }
.yt-box .health.bad { color: var(--accent); }
.yt-box a { color: var(--violet); font-weight: 700; }
.viewers { position: absolute; z-index: 2; top: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.slot-visual.thumb { background-size: cover; background-position: center; }
.chip.api { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 720px) {
  .choice-cards { grid-template-columns: 1fr; }
  .thumb-item { grid-template-columns: 22px 96px 1fr; }
  .thumb-item img { width: 96px; }
  .thumb-item .row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  dialog.tabbed { padding: 16px; }
}
/* ── ChatGPT 버튼 · 프리셋 ── */
.label-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.gpt-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 11px; font-weight: 800; font-size: 13.5px; color: #fff; background: linear-gradient(135deg, #f29a1f, #ff6a3d); box-shadow: 0 6px 16px -8px rgba(242,154,31,.8); white-space: nowrap; }
.gpt-btn:hover { filter: brightness(1.05); }
.label-row .secondary { padding: 7px 12px; font-size: 13px; }
.preset-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 14px; }
.preset-list { display: grid; gap: 6px; }
.preset-item { display: flex; gap: 6px; }
.preset-item button:first-child { flex: 1; text-align: left; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; font-weight: 700; background: var(--surface-2); }
.preset-item .x { padding: 0 10px; border-radius: 10px; color: var(--muted); }

/* ── 제목·썸네일 세트 ── */
.pkg-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.pkg-section-head { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 10px; }
.pkg-section-head h2 { font-size: 18px; font-weight: 800; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.pkg-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.pkg-card[draggable="true"] { cursor: grab; }
.pkg-card.dragging { opacity: .45; outline: 2px dashed var(--violet); }
.pkg-card.done { opacity: .85; }
.pkg-img { position: relative; aspect-ratio: 16 / 9; background: #1a1730; }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pkg-num { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.pkg-num.reserved { background: var(--violet); }
.pkg-num.used { background: rgba(18,162,107,.9); }
.pkg-styled { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.85); color: #17152b; }
.pkg-body { padding: 10px 12px 12px; display: grid; gap: 8px; }
.pkg-body input, .pkg-body textarea { padding: 8px 10px; font-size: 13.5px; border-radius: 10px; }
.pkg-title { font-weight: 700; }
.pkg-body details summary { cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.pkg-body details textarea { margin-top: 6px; }
.pkg-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.pkg-actions button { padding: 5px 10px; border-radius: 9px; border: 1px solid var(--border); font-weight: 700; background: var(--surface-2); font-size: 12.5px; }
.pkg-actions .gpt-mini { border-color: transparent; background: #fff1de; color: #b36200; }
.pkg-actions .del { color: var(--accent); }
.pkg-actions a { color: var(--violet); font-weight: 700; }
.dropzone.over { border-color: var(--violet); background: var(--violet-soft); }

/* ── 썸네일 양식 ── */
dialog.tpl { width: min(1180px, calc(100vw - 32px)); }
.tpl-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
#tpl-canvas { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #222; touch-action: none; cursor: move; display: block; }
.tpl-side { display: grid; gap: 12px; max-height: 62vh; overflow: auto; }
.tpl-layers { display: grid; gap: 6px; }
.tpl-layer { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 700; background: var(--surface); }
.tpl-layer.active { border-color: var(--violet); background: var(--violet-soft); }
.tpl-layer .row-actions button { padding: 2px 7px; border-radius: 7px; color: var(--muted); }
.tpl-props label { margin-bottom: 10px; font-size: 13px; }
.tpl-props input[type="color"] { padding: 2px; height: 38px; }

/* ── 방송 미리보기 ── */
dialog#preview-dialog { width: min(1100px, calc(100vw - 32px)); }
.preview-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.preview-player video, .preview-player audio { width: 100%; border-radius: 12px; background: #000; }
.preview-player video { aspect-ratio: 16 / 9; }
.preview-side { display: grid; gap: 10px; align-content: start; max-height: 65vh; overflow: auto; }
.preview-card { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.preview-card img { width: 100%; border-radius: 8px; }
.preview-card strong { font-size: 13.5px; }
.preview-list { margin: 0; padding-left: 22px; font-size: 13px; display: grid; gap: 3px; }
.preview-list li { cursor: pointer; }
.preview-list li.active { color: var(--accent); font-weight: 800; }
@media (max-width: 860px) {
  .tpl-layout, .preview-layout { grid-template-columns: 1fr; }
}
.bg-btns { position: absolute; z-index: 2; top: 12px; right: 12px; display: flex; gap: 6px; }
.bg-btns .bg-btn { position: static; }

/* ── 캡컷식 편집기 ── */
dialog.ed-dialog { width: calc(100vw - 24px); max-width: 1500px; height: calc(100vh - 24px); max-height: none; padding: 0; overflow: hidden; background: #16141f; color: #ece9f8; }
dialog.ed-dialog[open] { display: flex; flex-direction: column; }
.ed-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #2b2840; flex-wrap: wrap; }
.ed-top h2 { font-size: 18px; font-weight: 800; }
.ed-top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-dialog .secondary { background: #24212f; border-color: #35314a; color: #ece9f8; }
.ed-ic { width: 38px; height: 38px; border-radius: 10px; background: #24212f; color: #ece9f8; font-size: 20px; border: 1px solid #35314a; }
.ed-ic:disabled { opacity: .35; }
.ed-body { flex: 1; display: grid; grid-template-columns: 230px 1fr 300px; min-height: 0; }
.ed-left, .ed-right { overflow-y: auto; padding: 14px; background: #1b1926; }
.ed-left { border-right: 1px solid #2b2840; }
.ed-right { border-left: 1px solid #2b2840; }
.ed-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ed-tools button { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: #24212f; color: #fff; font-size: 20px; border: 1px solid #2f2b42; }
.ed-tools button span { font-size: 11.5px; color: #bdb8d6; font-weight: 700; }
.ed-tools button:hover, .ed-stickers button:hover { border-color: #7c5cff; background: #2d2840; }
.ed-section-label { font-size: 11.5px; letter-spacing: .1em; font-weight: 800; color: #8f89ad; margin: 16px 0 8px; }
.ed-section-label small { letter-spacing: 0; font-weight: 600; margin-left: 4px; }
.ed-stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ed-stickers button { font-size: 24px; padding: 6px 0; border-radius: 10px; background: #24212f; border: 1px solid #2f2b42; }
.ed-layers { display: grid; gap: 4px; }
.ed-layer { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 10px; background: #24212f; border: 1px solid transparent; cursor: pointer; font-size: 12.5px; }
.ed-layer .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ed-layer button { font-size: 12px; padding: 2px 4px; color: #bdb8d6; border-radius: 6px; }
.ed-layer button:hover { background: #35314a; }
.ed-layer.active { border-color: #7c5cff; background: #2d2545; }
.ed-layer.off .nm { opacity: .45; text-decoration: line-through; }
.ed-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; min-width: 0; background: repeating-conic-gradient(#1f1d2a 0 25%, #1a1824 0 50%) 0 0 / 24px 24px; }
.ed-canvas-wrap { position: relative; width: 100%; max-width: calc((100vh - 200px) * 16 / 9); }
#ed-canvas { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); touch-action: none; user-select: none; }
.ed-hint { font-size: 12px; color: #8f89ad; text-align: center; margin: 12px 0 0; }
.ed-inline { position: absolute; z-index: 5; background: rgba(20,18,30,.85); color: #fff; border: 2px solid #7c5cff; border-radius: 8px; padding: 4px 6px; line-height: 1.12; resize: none; outline: none; }
.ed-empty { padding: 30px 10px; text-align: center; }
.ed-sel-name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.ed-mini { padding: 5px 10px; border-radius: 9px; background: #24212f; border: 1px solid #35314a; color: #ece9f8; font-size: 12.5px; font-weight: 700; }
.ed-mini.danger { color: #ff7a8f; }
.ed-styles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.ed-styles button { aspect-ratio: 1; border-radius: 10px; font: 900 22px "Black Han Sans", sans-serif; border: 1px solid #35314a; display: grid; place-items: center; }
.ed-styles button:hover { outline: 2px solid #7c5cff; }
.ed-sec { border-top: 1px solid #2b2840; padding: 12px 0 4px; }
.ed-sec-t { font-size: 12px; font-weight: 800; color: #a59fc6; margin-bottom: 8px; }
.ed-dialog .ed-sec textarea, .ed-dialog .ed-sec select, .ed-dialog .ed-sec input[type="number"] { background: #24212f; border-color: #35314a; color: #fff; padding: 8px 10px; font-size: 13.5px; border-radius: 10px; }
.ed-dialog .ed-sec textarea { width: 100%; margin-bottom: 4px; }
.ed-f { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #bdb8d6; margin: 0 0 8px; }
.ed-f output { float: right; color: #fff; font-weight: 800; }
.ed-f input[type="range"] { padding: 0; accent-color: #7c5cff; }
.ed-color input { height: 36px; padding: 2px; background: #24212f; border-color: #35314a; }
.ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin: 0 0 8px; color: #ece9f8; }
.ed-align { margin-top: 4px; }
@media (max-width: 1000px) {
  .ed-body { grid-template-columns: 1fr; grid-template-rows: auto auto auto; overflow-y: auto; }
  .ed-left, .ed-right { border: 0; }
  .ed-tools { grid-template-columns: repeat(7, 1fr); }
  .ed-canvas-wrap { max-width: 100%; }
}
.inline-check { margin: 0; padding: 0; font-size: 13px; }
.inline-check small { display: none; }
@media (min-width: 1100px) { .inline-check small { display: inline; padding: 0; margin: 0; flex-basis: auto; } }

/* ── 영상 하나씩 고르기 ── */
.file-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fp-col { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.fp-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: 13.5px; }
.fp-list { display: grid; gap: 4px; max-height: 320px; overflow-y: auto; }
.fp-folder { font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.fp-item { display: flex; justify-content: space-between; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 700; font-size: 13px; }
.fp-item small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.fp-item.picked { border-color: var(--violet); background: var(--violet-soft); }
.fp-row { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.fp-n { width: 22px; font-weight: 800; color: var(--violet); }
.fp-name { flex: 1; display: grid; font-weight: 700; overflow: hidden; }
.fp-name small { color: var(--muted); font-weight: 600; }
.fp-row button { padding: 2px 7px; border-radius: 7px; color: var(--muted); }
.fp-row button:hover { background: var(--surface-3); }
.text-link { color: var(--violet); font-size: 12.5px; font-weight: 700; }
@media (max-width: 720px) { .file-picker { grid-template-columns: 1fr; } }
