/*! EMLV (Easy Make Lyrics Video) | Copyright (c) 2026 lamganjaman. All rights reserved.
 *  無断での複製・改造・再配布・販売を禁止します。詳しくは LICENSE を参照。 */
/* EMLV — ハードウェア風の暗い画面。操作しやすさを優先し、飾りは控えめに。 */
:root {
  --bg: #0b0c0d;
  --body-hi: #33353a;
  --body: #25272b;
  --body-lo: #1a1b1e;
  --well: #141517;
  --line: #34373c;
  --silk: #9aa0a8;
  --silk-dim: #666b72;
  --text: #e6e8eb;
  --lcd-bg: #150f05;
  --lcd: #ffb640;
  --lcd-dim: #87602a;
  --rec: #ff3b30;
  --play: #3ddc84;
  --accent: #ffb640;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  --radius: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 筐体 */
.unit {
  height: 100vh; min-height: 640px;
  display: grid; grid-template-rows: auto 1fr;
  background: linear-gradient(180deg, var(--body-hi), var(--body) 70px, var(--body) calc(100% - 40px), var(--body-lo));
}
.topbar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid #111; box-shadow: 0 1px 0 rgba(255,255,255,.04); }
.logo { display: flex; align-items: baseline; gap: 10px; flex: none; }
.logo b { font: 900 26px/1 "Arial Black", "Helvetica Neue", sans-serif; letter-spacing: .06em; color: #eceef0; }
.logo b i { font-style: normal; color: var(--rec); }
.logo span { font: 600 9.5px/1 var(--mono); letter-spacing: .24em; color: var(--silk-dim); text-transform: uppercase; }
.silk { font: 700 10px/1 var(--mono); letter-spacing: .2em; color: var(--silk-dim); }
.spacer { flex: 1; }
.muted { color: var(--silk); margin: 0; }
.small { font-size: 12px; }

/* 液晶 */
.lcd { background: var(--lcd-bg); color: var(--lcd); font: 600 13px/1.2 var(--mono); border-radius: 6px; box-shadow: inset 0 1px 6px rgba(0,0,0,.85); }
.lcd-dim { color: var(--lcd-dim); }
.readout-main { flex: 1; display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; min-width: 0; white-space: nowrap; overflow: hidden; }
.lcd-big { font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.lcd-sep { width: 1px; height: 14px; background: #3a2a10; margin: 0 6px; align-self: center; }
.lcd-state.is-rec { color: var(--rec); text-shadow: 0 0 8px rgba(255,59,48,.7); }
.lcd-state.is-play { color: var(--play); }

.top-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.chip, .chip-btn { font: 700 10px/1 var(--mono); letter-spacing: .1em; color: var(--silk); border: 1px solid #3c3f44; background: transparent; padding: 7px 9px; border-radius: 5px; }
.chip-btn:hover:not(:disabled) { color: var(--text); border-color: #5a5e64; }
.chip .led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #444; margin-right: 6px; vertical-align: 0; }
.chip.is-saved .led { background: var(--play); box-shadow: 0 0 7px var(--play); }
.chip.is-saving .led { background: var(--lcd); box-shadow: 0 0 7px var(--lcd); }
.chip.is-off .led { background: var(--rec); }

.body { display: grid; grid-template-columns: 124px minmax(0, 1fr) 300px; gap: 14px; padding: 14px 16px 16px; min-height: 0; }

/* 左：モード */
.modes { display: flex; flex-direction: column; gap: 8px; }
.mbtn {
  position: relative; border: 0; border-radius: 7px; text-align: left; padding: 9px 10px 9px 26px;
  background: linear-gradient(180deg, #44474d, #2e3034); box-shadow: 0 3px 0 #101113, inset 0 1px 0 rgba(255,255,255,.08);
  font: 800 11.5px/1.1 "Helvetica Neue", Arial, sans-serif; letter-spacing: .1em; color: #cfd2d6;
}
.mbtn small { display: block; margin-top: 4px; font: 500 10.5px/1.2 var(--sans); letter-spacing: 0; color: var(--silk-dim); }
.mbtn::before { content: ""; position: absolute; left: 10px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: #3a2b12; }
.mbtn[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #4d5057, #33363a); }
.mbtn[aria-pressed="true"]::before { background: var(--lcd); box-shadow: 0 0 9px var(--lcd); }
.mbtn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #101113; }
.mbtn.is-soon::before { background: #2a2b2e; }
.modes-foot { margin-top: auto; }
.linklike { background: none; border: 0; color: var(--silk); text-decoration: underline; padding: 4px 0; }

/* 中央 */
.center { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 10px; min-width: 0; min-height: 0; }
.bezel { background: #0c0d0e; border-radius: 10px; padding: 8px; box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.05); min-width: 0; }
.wave-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 6px; }
.wave-hint { font-size: 11px; color: var(--silk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini { min-width: 30px; height: 24px; border: 1px solid #3c3f44; border-radius: 5px; background: #1c1d20; color: var(--silk); font: 700 11px/1 var(--mono); }
.mini:hover { color: var(--text); }
.mini-toggle { display: inline-flex; align-items: center; gap: 5px; font: 700 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--silk); white-space: nowrap; }
.wave-box { position: relative; height: 150px; border-radius: 5px; overflow: hidden; background: var(--lcd-bg); }
.wave-box canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.wave-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--lcd-dim); font-size: 13px; pointer-events: none; }

.blocks { display: flex; align-items: center; gap: 10px; min-width: 0; }
.block-strip { display: flex; gap: 6px; overflow-x: auto; padding: 3px 2px 6px; min-width: 0; flex: 1; scrollbar-width: thin; }
.block-chip {
  flex: none; min-width: 58px; height: 38px; border: 0; border-radius: 7px; padding: 4px 8px; text-align: left;
  background: radial-gradient(120% 140% at 50% 20%, color-mix(in srgb, var(--c) 75%, #fff 5%), color-mix(in srgb, var(--c) 45%, #1b1b1b));
  box-shadow: 0 2px 0 #0f1012, 0 0 12px color-mix(in srgb, var(--c) 30%, transparent);
  color: #fff; font: 800 11px/1.1 var(--mono);
}
.block-chip small { display: block; font: 600 9.5px/1.2 var(--mono); opacity: .85; margin-top: 3px; }
.block-chip.is-single { background: #34363b; box-shadow: 0 2px 0 #0f1012; color: #c3c7cc; }
.block-chip.is-current { outline: 2px solid #fff; outline-offset: 1px; }
.block-strip .none { color: var(--silk-dim); font-size: 12px; align-self: center; }

/* 行の一覧 */
.list-bezel { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0; overflow: hidden; position: relative; }
.list-head, .row { display: grid; grid-template-columns: 44px 52px 92px 92px minmax(0, 1fr) 104px; align-items: center; gap: 6px; padding: 0 10px; }
.list-head { height: 30px; border-bottom: 1px solid #1f2124; font: 700 10px/1 var(--mono); letter-spacing: .14em; color: var(--silk-dim); }
.lines { overflow-y: auto; outline: none; padding-bottom: 40vh; }
.row { min-height: 42px; border-bottom: 1px solid #17181a; border-left: 4px solid transparent; position: relative; }
.row:hover { background: #151619; }
.row.is-selected { background: #1f1b12; }
.row.is-selected .text-view { color: #fff; }
.row.is-playing { background: #2a1f0c; }
.row.is-playing::after { content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 4px; background: var(--lcd); box-shadow: 0 0 10px var(--lcd); }
.row.is-armed .col-no::before { content: "●"; color: var(--rec); margin-right: 4px; text-shadow: 0 0 6px var(--rec); }
.row.is-untimed .time-input { color: var(--silk-dim); }
.col-no { font: 600 12px/1 var(--mono); color: var(--silk-dim); text-align: right; padding-right: 4px; }
.col-block { display: flex; }
.blk-tag { font: 800 10.5px/1 var(--mono); color: #fff; background: var(--c, #3a3c41); border-radius: 4px; padding: 4px 5px; min-width: 34px; text-align: center; }
.blk-tag.is-single { background: #2c2e32; color: #8e939a; }
.time-input {
  width: 100%; height: 30px; border: 1px solid transparent; border-radius: 5px; background: transparent; padding: 0 6px;
  font: 600 13px/1 var(--mono); color: var(--lcd); font-variant-numeric: tabular-nums;
}
.time-input:hover { border-color: #3a3d42; }
.time-input:focus { border-color: var(--accent); background: var(--lcd-bg); outline: none; }
.time-input.is-invalid { border-color: var(--rec); }
.col-text { min-width: 0; }
.text-view { display: block; padding: 6px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d5d8dc; cursor: text; font-size: 15px; }
.text-input { width: 100%; height: 32px; border: 1px solid var(--accent); border-radius: 5px; background: #0f1012; padding: 0 8px; font-size: 15px; }
.col-tools { display: flex; gap: 4px; justify-content: flex-end; }
.icon-btn { width: 30px; height: 28px; border: 1px solid #34373c; border-radius: 5px; background: #1b1c1f; color: var(--silk); font-size: 13px; line-height: 1; padding: 0; }
.icon-btn:hover { color: #fff; border-color: #5a5e64; }
.icon-btn.retake:hover { color: var(--rec); border-color: var(--rec); }
.lines-empty { position: absolute; inset: 31px 0 0; display: grid; place-content: center; text-align: center; color: var(--silk); }
.lines-empty p { margin: 4px; }

/* 運転ボタン */
.transport { display: flex; align-items: center; gap: 10px; }
.tbtn {
  width: 68px; height: 44px; border: 0; border-radius: 8px; display: grid; place-items: center; gap: 2px; padding-top: 5px;
  background: linear-gradient(180deg, #4a4d53, #2f3136); box-shadow: 0 3px 0 #101113, inset 0 1px 0 rgba(255,255,255,.09);
  color: #d7dade; font: 800 10px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: .14em;
}
.tbtn .g { font-size: 14px; letter-spacing: 0; }
.tbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #101113; }
.tbtn.rec .g { color: #8a2a24; }
.tbtn.rec[aria-pressed="true"] .g { color: var(--rec); text-shadow: 0 0 10px var(--rec); }
.tbtn.play .g { color: var(--play); }
.tbtn[aria-pressed="true"] { background: linear-gradient(180deg, #55585f, #393c41); }
#loopButton[aria-pressed="true"] .g { color: var(--lcd); text-shadow: 0 0 8px var(--lcd); }
.status { font-size: 12.5px; color: var(--silk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.status.is-error { color: #ff7b72; }
.status.is-ok { color: #9be9b8; }

/* 右パネル */
.side { background: #1d1e21; border-radius: 10px; padding: 14px; overflow-y: auto; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); min-height: 0; }
.panel { display: none; }
.panel.is-active { display: grid; gap: 12px; }
.panel h2 { margin: 0; font: 900 13px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: .24em; color: var(--silk); }
.group { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.drop { display: grid; gap: 4px; padding: 14px; border: 1.5px dashed #464a50; border-radius: var(--radius); cursor: pointer; background: #18191b; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: #1f1b12; }
.drop strong { font-size: 14px; }
.drop span { font-size: 12px; color: var(--silk); word-break: break-all; }
.wide-btn, .sbtn {
  border: 0; border-radius: 7px; padding: 10px 12px; text-align: center;
  background: linear-gradient(180deg, #44474d, #2f3135); box-shadow: 0 2px 0 #101113; color: #e3e5e8; font-weight: 700;
}
.wide-btn.primary, .sbtn.primary { background: linear-gradient(180deg, #ffb640, #d98d12); color: #1a1204; }
.wide-btn.as-label { display: block; cursor: pointer; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tip summary { cursor: pointer; color: var(--silk); font-size: 13px; }
.tip p { font-size: 12px; color: var(--silk); }
textarea { width: 100%; border: 1px solid #3a3d42; border-radius: 6px; background: #111214; padding: 8px; resize: vertical; }
.field { display: grid; gap: 4px; font-size: 12.5px; color: var(--silk); }
.field span { display: flex; align-items: center; gap: 6px; color: var(--text); }
.field input, .field select { height: 32px; border: 1px solid #3a3d42; border-radius: 6px; background: #111214; padding: 0 8px; }
.field input[type="number"] { width: 90px; font-family: var(--mono); }

.tap {
  width: 100%; height: 110px; border: 0; border-radius: 12px; touch-action: none; user-select: none;
  background: radial-gradient(120% 140% at 50% 20%, #ff6b4a, #d8321f 55%, #7d1409);
  box-shadow: 0 5px 0 #3a0a05, 0 0 22px rgba(255,80,50,.35), inset 0 1px 0 rgba(255,255,255,.3);
  color: #fff; font: 900 26px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: .32em;
}
.tap small { display: block; margin-top: 8px; font: 600 11px/1.3 var(--sans); letter-spacing: .02em; opacity: .9; }
.tap:disabled { opacity: .35; filter: grayscale(.6); }
.tap.is-down { transform: translateY(4px); box-shadow: 0 1px 0 #3a0a05, 0 0 40px rgba(255,90,60,.8), inset 0 0 30px rgba(255,255,255,.35); }
.armed { display: flex; gap: 10px; padding: 9px 11px; align-items: baseline; min-height: 38px; }
.armed #armedText { font-family: var(--sans); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inspector { display: grid; gap: 8px; }
.inspector .times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inspector input[type="text"] { height: 34px; border: 1px solid #3a3d42; border-radius: 6px; background: #111214; padding: 0 8px; width: 100%; }
.inspector .mono { font-family: var(--mono); color: var(--lcd); }
.inspector .btn-row { grid-template-columns: repeat(3, 1fr); }

/* カウントダウン */
.countdown { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); z-index: 50; pointer-events: none; }
.countdown span { font: 900 160px/1 "Arial Black", sans-serif; color: var(--lcd); text-shadow: 0 0 40px rgba(255,182,64,.7); }

/* ダイアログ */
.modal { border: 0; border-radius: 12px; padding: 0; background: #1f2023; color: var(--text); width: min(620px, 92vw); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.modal::backdrop { background: rgba(0,0,0,.6); }
.modal form { display: grid; gap: 12px; padding: 20px; }
.modal h2 { margin: 0; font-size: 17px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.help { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.keys { border-collapse: collapse; font-size: 13px; }
.keys td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys td:first-child { font-family: var(--mono); color: var(--lcd); white-space: nowrap; }

@media (max-width: 1100px) {
  .body { grid-template-columns: 96px minmax(0, 1fr) 260px; gap: 10px; padding: 10px; }
  .list-head, .row { grid-template-columns: 34px 46px 84px 84px minmax(0, 1fr) 98px; }
  .wave-hint { display: none; }
}
.row.is-warning .col-no { color: #ffcc4d; }
.row.is-warning .time-input:first-of-type { color: #ffcc4d; text-decoration: underline wavy rgba(255,204,77,.6); }

/* ---------- 第2段階：VIDEO ---------- */
.scenes-view { display: none; min-height: 0; }
body[data-mode="video"] .scenes-view { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; min-height: 0; }
body[data-mode="video"] .list-bezel { display: none; }
body[data-mode="video"] .center { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.stage-bezel { display: flex; align-items: flex-start; }
.stage-box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 5px; overflow: hidden; }
.stage-box.is-portrait { aspect-ratio: 9 / 16; max-height: 100%; width: auto; margin: 0 auto; }
.stage-box canvas { display: block; width: 100%; height: 100%; }
.stage-tag { position: absolute; left: 8px; top: 8px; font: 700 11px/1 var(--mono); color: var(--lcd); background: rgba(21,15,5,.8); padding: 5px 7px; border-radius: 4px; }
.scene-bezel { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0; overflow: hidden; }
.scene-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #1f2124; }
.scene-list { overflow-y: auto; padding: 6px; display: grid; gap: 6px; align-content: start; }
.scene {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 9px; align-items: center; padding: 6px; border-radius: 7px;
  background: #151619; border: 1px solid #202226; border-left: 4px solid var(--c, #3a3c41); cursor: pointer; text-align: left;
}
.scene:hover { background: #1a1b1f; }
.scene.is-selected { border-color: var(--accent); background: #1f1b12; }
.scene.is-current { box-shadow: 0 0 0 2px #fff inset; }
.scene.is-over { background: #2a2210; }
.scene-thumb { width: 74px; aspect-ratio: 16 / 9; border-radius: 4px; background: #0c0d0e center/cover no-repeat; display: grid; place-items: center; font: 700 9.5px/1 var(--mono); color: var(--silk-dim); border: 1px dashed #3a3d42; overflow: hidden; }
.scene-thumb.has-media { border: 0; }
.scene-meta { min-width: 0; display: grid; gap: 2px; }
.scene-title { display: flex; gap: 8px; align-items: baseline; font: 800 12px/1.2 var(--mono); color: #fff; }
.scene-title span { font-weight: 600; color: var(--lcd); }
.scene-lyric { font-size: 12px; color: var(--silk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-media { font-size: 11px; color: var(--silk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-media.is-warn { color: #ffcc4d; }
.group.first { border-top: 0; padding-top: 0; }
.sbtn.as-label { display: block; cursor: pointer; font-size: 13px; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 260px; overflow-y: auto; }
.media-grid:empty::before { content: "画像・動画を追加してください"; grid-column: 1 / -1; color: var(--silk-dim); font-size: 12px; padding: 10px 0; }
.media-item { position: relative; aspect-ratio: 16 / 9; border-radius: 5px; background: #0c0d0e center/cover no-repeat; border: 2px solid transparent; cursor: grab; overflow: hidden; }
.media-item:hover { border-color: #5a5e64; }
.media-item .badge { position: absolute; left: 3px; bottom: 3px; font: 700 9px/1 var(--mono); background: rgba(0,0,0,.7); color: #fff; padding: 2px 4px; border-radius: 3px; }
.media-item .count { position: absolute; right: 3px; top: 3px; font: 700 9px/1 var(--mono); background: var(--lcd); color: #1a1204; padding: 2px 4px; border-radius: 3px; }
.media-item .remove { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; border: 0; border-radius: 3px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; line-height: 1; padding: 0; opacity: 0; }
.media-item:hover .remove { opacity: 1; }
.seg { display: grid; grid-auto-flow: column; gap: 4px; }
.seg button { border: 1px solid #3a3d42; background: #151619; border-radius: 6px; padding: 6px 4px; font-size: 12px; color: var(--silk); }
.seg button[aria-pressed="true"] { border-color: var(--accent); color: #fff; background: #2a2210; }
.field input[type="range"] { width: 100%; }
.progress { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.progress .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #111214; overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb640, #ff6b4a); }
.progress span { font: 600 11px/1.2 var(--mono); color: var(--lcd); }

/* ---------- 第3段階a：FX ---------- */
.fx-bezel { display: none; grid-template-rows: auto minmax(0, 1fr); padding: 0; overflow: hidden; }
body[data-mode="fx"] .scenes-view { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; min-height: 0; }
body[data-mode="fx"] .list-bezel, body[data-mode="fx"] .scene-bezel { display: none; }
body[data-mode="fx"] .fx-bezel { display: grid; }
body[data-mode="fx"] .stage-box canvas { cursor: crosshair; touch-action: none; }
.fx-list { overflow-y: auto; padding: 6px; display: grid; gap: 4px; align-content: start; }
.fx-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left; padding: 8px 8px; border-radius: 6px; border: 1px solid #202226; border-left: 4px solid var(--c); background: #151619; color: #d5d8dc; }
.fx-row:hover { background: #1a1b1f; }
.fx-row.is-selected { border-color: var(--accent); background: #1f1b12; color: #fff; }
.fx-row.is-untimed { opacity: .5; }
.fx-no { font: 600 11px/1 var(--mono); color: var(--silk-dim); text-align: right; }
.fx-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.fx-flag { font: 700 10px/1 var(--mono); color: var(--lcd); }
.fx-panel { display: grid; gap: 10px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn.accent { color: #1a1204; background: var(--lcd); border-color: var(--lcd); }
.color-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-row .field > span:last-child { display: flex; gap: 6px; align-items: center; }
.field input[type="color"] { width: 44px; height: 30px; padding: 2px; border: 1px solid #3a3d42; border-radius: 6px; background: #111214; }
.range-row { display: grid; grid-template-columns: 1fr 52px; gap: 8px; align-items: center; }
.range-row b { font: 600 12px/1 var(--mono); color: var(--lcd); text-align: right; }
.field select { width: 100%; }

/* ---------- 第3段階b ---------- */
.fx-tabs { margin-bottom: 4px; }
.scope { display: grid; gap: 6px; }
.scope-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; max-height: 150px; overflow-y: auto; padding: 6px; background: #151619; border-radius: 6px; }
.fx-panel input[type="url"], .fx-panel input[type="text"], .field > input[type="text"] { height: 34px; border: 1px solid #3a3d42; border-radius: 6px; background: #111214; padding: 0 8px; width: 100%; }
#spectrumHint.is-error { color: #ff7b72; }
#exportMp4Slot > .group { border-top: 0; padding-top: 0; margin-bottom: 4px; }
.effect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.effect-item { font: 600 12.5px/1.2 var(--sans); letter-spacing: 0; color: var(--text); }
.copyright { margin: 6px 0 0; font: 600 9.5px/1.3 var(--mono); color: var(--silk-dim); }
