:root {
  color-scheme: dark;
  --bg: #080a0d;
  --panel: #0d1116;
  --panel-2: #121820;
  --line: rgba(215, 238, 255, 0.14);
  --line-strong: rgba(215, 238, 255, 0.28);
  --text: #edf7ff;
  --muted: #80909f;
  --cyan: #78f5df;
  --violet: #a994ff;
  --danger: #ff6e8a;
  --warning: #ffd178;
  --radius: 8px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a, label.file-button, label.file-inline { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.landing-page { min-height: 100vh; overflow: hidden; }
.landing-shell { position: relative; z-index: 2; display: flex; min-height: 100vh; width: min(1050px, 100%); padding: 9vh 7vw; flex-direction: column; justify-content: center; align-items: flex-start; }
.landing-shell h1 { margin: 10px 0 22px; font-size: clamp(72px, 14vw, 190px); line-height: .76; letter-spacing: -.075em; font-weight: 800; }
.landing-shell h1::after { content: ""; display: inline-block; width: .16em; height: .16em; margin-left: .1em; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 30px rgba(120,245,223,.55); }
.landing-copy { margin: 0 0 35px; color: #b7c8d5; font-size: clamp(16px, 2vw, 22px); line-height: 1.75; }
.landing-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fine-print { margin-top: 24px; color: var(--muted); font-size: 12px; }
.landing-grid { position: fixed; z-index: 0; inset: 0; opacity: .55; background-image: linear-gradient(rgba(120,245,223,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(120,245,223,.045) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(circle at 70% 42%, black, transparent 72%); transform: perspective(500px) rotateX(52deg) scale(1.6) translateY(14%); }

.eyebrow { margin: 0; color: var(--cyan); font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: .24em; }
.primary-button, .ghost-button, .icon-button, .danger-button, .file-button { display: inline-flex; min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius); align-items: center; justify-content: center; gap: 7px; background: none; cursor: pointer; transition: border-color .16s, background .16s, color .16s, transform .16s; }
.primary-button { background: var(--cyan); color: #07100f; font-weight: 750; }
.primary-button:hover { background: #a4ffef; transform: translateY(-1px); }
.ghost-button, .icon-button, .file-button { border-color: var(--line-strong); background: rgba(255,255,255,.025); }
.ghost-button:hover, .icon-button:hover, .file-button:hover { border-color: var(--cyan); background: rgba(120,245,223,.07); }
.danger-button { border-color: rgba(255,110,138,.4); color: var(--danger); }
.danger-button:hover { background: rgba(255,110,138,.1); }
.compact { min-height: 36px; padding: 0 14px; font-size: 13px; }
.wide { width: 100%; margin-top: 9px; }

.app-page { height: 100vh; overflow: hidden; }
.app-shell { height: 100%; }
.topbar { height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(8,10,13,.96); }
.brand { flex: 0 0 auto; font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.brand span { color: var(--muted); font-weight: 500; }
.topbar-actions { display: flex; gap: 7px; align-items: center; overflow-x: auto; }
.topbar .icon-button { min-height: 34px; padding: 0 12px; font-size: 12px; white-space: nowrap; }

.game-stage { position: relative; height: calc(100% - 58px); min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 38%, #101923 0, #080a0d 67%); }
#gameCanvas, #previewCanvas, #timelineCanvas { display: block; width: 100%; touch-action: none; }
#gameCanvas { height: calc(100% - 54px); background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(205,231,242,.08) 25%); }
.game-hud { position: absolute; top: 18px; left: 24px; right: 24px; display: grid; grid-template-columns: 1fr auto 1fr; pointer-events: none; text-shadow: 0 2px 12px #000; }
.game-hud > div { display: flex; flex-direction: column; }
.game-hud strong { font-variant-numeric: tabular-nums; font-size: clamp(22px, 3.2vw, 40px); line-height: 1; letter-spacing: -.04em; }
.hud-label { color: var(--muted); font-size: 9px; letter-spacing: .2em; margin-bottom: 5px; }
.hud-center { align-items: center; min-width: 150px; }
.hud-center strong { color: var(--cyan); font-size: clamp(17px, 2.2vw, 28px); }
.hud-center strong.clear-result { font-size: clamp(24px, 4vw, 52px); letter-spacing: .04em; animation: clearResultIn .6s cubic-bezier(.2,.9,.2,1); }
.hud-center span { color: var(--muted); font-size: 11px; margin-top: 5px; }
.hud-right { align-items: flex-end; }
.song-strip { position: absolute; height: 54px; bottom: 0; left: 0; right: 0; padding: 0 18px; display: grid; grid-template-columns: minmax(140px, 240px) 1fr 105px; align-items: center; gap: 16px; border-top: 1px solid var(--line); background: rgba(8,10,13,.94); }
.song-strip > div { min-width: 0; display: flex; flex-direction: column; }
.song-strip strong, .song-strip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-strip strong { font-size: 13px; }
.song-strip span { color: var(--muted); font-size: 10px; }
.song-strip > span { font-variant-numeric: tabular-nums; text-align: right; }

input[type="range"] { width: 100%; accent-color: var(--cyan); }
input[type="checkbox"] { width: 38px; height: 20px; accent-color: var(--cyan); }
input[type="number"], input[type="text"], select, textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: #090d12; color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); }

.side-panel { position: fixed; z-index: 10; width: min(390px, 100%); top: 0; bottom: 0; right: 0; padding: 22px; overflow-y: auto; border-left: 1px solid var(--line); background: rgba(12,16,21,.98); box-shadow: -25px 0 80px rgba(0,0,0,.4); transform: translateX(103%); transition: transform .22s ease; }
.side-panel.open { transform: translateX(0); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.panel-heading h2, .tab-panel h2, .calibration-dialog h2 { margin: 3px 0 0; font-size: 25px; letter-spacing: -.04em; }
.close-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 20px; }
.settings-form { display: flex; flex-direction: column; gap: 18px; }
.settings-form label, .stack-form label, .tab-panel > label { display: grid; grid-template-columns: 1fr auto; gap: 7px; color: #c8d4de; font-size: 12px; }
.settings-form label input[type="range"], .settings-form label small, .stack-form label input, .tab-panel > label select { grid-column: 1 / -1; }
.settings-form output { color: var(--cyan); font-variant-numeric: tabular-nums; }
.settings-form small, .panel-note { color: var(--muted); font-size: 10px; line-height: 1.45; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; color: #c8d4de; font-size: 12px; }
.button-row { display: flex; gap: 8px; }
.button-row > * { flex: 1; }
.settings-form hr { width: 100%; border: 0; border-top: 1px solid var(--line); }
.file-button, .file-inline { position: relative; overflow: hidden; }
.file-button { font-size: 12px; }
.file-button input, .file-inline input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.calibration-dialog { position: relative; width: min(520px, calc(100% - 30px)); padding: 28px; border: 1px solid var(--line-strong); border-radius: 12px; background: #0d1218; color: var(--text); }
.calibration-dialog::backdrop { background: rgba(3,5,7,.76); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; top: 18px; right: 18px; }
.calibration-dialog > p:not(.eyebrow):not(.calibration-result) { color: #aab8c4; line-height: 1.65; font-size: 13px; }
.calibration-pad { width: 100%; min-height: 180px; margin: 15px 0; border: 1px solid rgba(120,245,223,.36); border-radius: 10px; background: radial-gradient(circle, rgba(120,245,223,.11), rgba(120,245,223,.02)); color: var(--text); cursor: pointer; touch-action: manipulation; }
.calibration-pad.active { animation: calibrationPulse .5s ease-out; }
.calibration-pad span, .calibration-pad strong { display: block; }
.calibration-pad span { color: var(--cyan); font-size: 18px; }
.calibration-pad strong { margin-top: 7px; color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.calibration-result { color: var(--muted); font-size: 11px; }
@keyframes calibrationPulse { from { background: rgba(120,245,223,.42); } to { background: rgba(120,245,223,.02); } }
@keyframes clearResultIn { from { opacity: 0; transform: scale(.72); filter: blur(8px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }

.editor-shell { height: 100%; display: grid; grid-template-rows: 58px 1fr; }
.editor-workspace { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 390px; }
.preview-pane { min-width: 0; min-height: 0; display: grid; grid-template-rows: 48px minmax(260px, 1fr) 42px 210px; background: radial-gradient(circle at 50% 40%, #101923, #080a0d 65%); }
.preview-toolbar, .timeline-toolbar { padding: 0 12px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); background: #0b0f14; }
.preview-toolbar .small { min-height: 32px; padding: 0 10px; }
.preview-toolbar input[type="range"] { min-width: 80px; }
.preview-toolbar span { min-width: 58px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
#previewCanvas { height: 100%; min-height: 0; touch-action: none; }
.timeline-toolbar { border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.timeline-toolbar label { display: flex; gap: 5px; align-items: center; }
.timeline-toolbar input { width: 63px; min-height: 28px; padding: 4px 7px; }
#timelineCanvas { height: 210px; background: #090c10; cursor: crosshair; }

.inspector-pane { min-height: 0; border-left: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.tab-list { height: 42px; display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.tab { border: 0; border-right: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 11px; }
.tab small { display: inline-grid; width: 16px; height: 16px; margin-right: 4px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; }
.tab.active { color: var(--cyan); box-shadow: inset 0 -2px var(--cyan); }
.tab-panel { display: none; height: calc(100% - 42px); padding: 19px; overflow-y: auto; }
.tab-panel.active { display: block; }
.tab-panel h3 { margin: 24px 0 10px; color: #b7c4cf; font-size: 12px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.form-grid label, .stack-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 10px; }
.route-summary, .validation-summary { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #090d12; color: var(--muted); font-size: 11px; line-height: 1.6; white-space: pre-line; }
.entity-list { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.entity-row { min-height: 38px; padding: 7px 9px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.02); }
.entity-row.selected { border-color: var(--cyan); background: rgba(120,245,223,.06); }
.entity-swatch { display: block; width: 4px; align-self: stretch; border-radius: 3px; background: var(--entity-color, var(--violet)); box-shadow: 0 0 8px var(--entity-color, var(--violet)); }
.entity-swatch.empty { opacity: .16; box-shadow: none; background: var(--line-strong); }
.entity-row button { border: 0; background: none; color: var(--danger); cursor: pointer; }
.entity-main { min-width: 0; cursor: pointer; }
.entity-main strong, .entity-main span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entity-main strong { font-size: 11px; }
.entity-main span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.stack-form { margin-top: 17px; display: flex; flex-direction: column; gap: 11px; }
.bulk-note-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bulk-note-row label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 10px; }
.json-details { margin-top: 20px; color: var(--muted); font-size: 11px; }
.json-details summary { cursor: pointer; color: #c7d5df; }
.json-editor { height: calc(100% - 110px); margin-top: 15px; resize: none; font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; line-height: 1.5; }
.json-details .json-editor { height: 360px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 20px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: #111820; color: var(--text); font-size: 11px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255,110,138,.55); color: #ffd4dc; }

.song-select-page { height: 100vh; overflow: hidden; background: radial-gradient(circle at 18% 12%, #13232b, #080a0d 48%); }
.song-select-shell { height: 100%; display: grid; grid-template-rows: 58px 1fr; }
.selection-main { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.song-browser { min-width: 0; padding: 34px; overflow-y: auto; }
.selection-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.selection-heading h1 { margin: 3px 0 0; font-size: clamp(30px, 5vw, 62px); letter-spacing: -.06em; }
.selection-heading > span { color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.song-card { min-width: 0; padding: 10px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); text-align: left; cursor: pointer; transition: .18s ease; }
.song-card:hover, .song-card.selected { border-color: rgba(120,245,223,.65); background: rgba(120,245,223,.065); transform: translateY(-2px); }
.song-card.selected { box-shadow: 0 0 0 1px rgba(120,245,223,.18), 0 16px 45px rgba(0,0,0,.28); }
.song-card.cloud-song { background-image: linear-gradient(115deg, rgba(169,148,255,.055), transparent 58%); }
.song-cover, .detail-cover { position: relative; overflow: hidden; display: grid; place-items: center; background-position: center; background-size: cover; }
.song-cover { width: 76px; aspect-ratio: 1; border-radius: 7px; }
.song-cover::after, .detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 45%, rgba(120,245,223,.09)); }
.default-cover > span { position: relative; z-index: 1; color: rgba(237,247,255,.88); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-shadow: 0 2px 12px #000; }
.song-card-copy { min-width: 0; align-self: center; }
.song-card-copy strong, .song-card-copy span, .song-card-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.song-card-copy strong { font-size: 15px; }
.song-card-copy span { margin-top: 6px; color: #b4c1cc; font-size: 11px; }
.song-card-copy small { margin-top: 11px; color: var(--muted); font-size: 9px; }
.song-card-copy em { display: inline-block; margin-top: 7px; padding: 2px 5px; border: 1px solid rgba(169,148,255,.28); border-radius: 4px; color: #c9bcff; font-size: 8px; font-style: normal; letter-spacing: .08em; }
.song-detail { min-height: 0; padding: 28px; overflow-y: auto; border-left: 1px solid var(--line); background: rgba(10,14,19,.94); }
.detail-cover { width: 100%; max-width: 304px; margin: 0 auto 26px; aspect-ratio: 1; border-radius: 12px; box-shadow: 0 22px 70px rgba(0,0,0,.42); }
.detail-cover > span { font-size: 16px; }
.song-detail h2 { margin: 5px 0 0; font-size: 31px; letter-spacing: -.045em; }
.detail-artist { margin: 8px 0 20px; color: #b7c5d0; }
.song-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 20px; border: 1px solid var(--line); border-radius: 8px; }
.song-stats > div { min-width: 0; padding: 11px; border-right: 1px solid var(--line); }
.song-stats > div:nth-child(2n) { border-right: 0; }
.song-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.song-stats dt { color: var(--muted); font-size: 9px; }
.song-stats dd { margin: 4px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.detail-actions { display: grid; gap: 7px; }
.preview-button { border-color: rgba(255,209,120,.34); color: #ffe1a8; }
.cloud-publish-button { border-color: rgba(169,148,255,.42); color: #d7ceff; }
.package-hint { margin-top: 18px; }
.cloud-status { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.transfer-progress { margin-top: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.transfer-progress span { display: block; margin-bottom: 8px; color: #b9c8d3; font-size: 10px; }
.transfer-progress progress { width: 100%; height: 7px; accent-color: var(--cyan); }
.account-dialog { width: min(480px, calc(100% - 24px)); }
.account-dialog .button-row { margin-top: 4px; }
.account-dialog #accountSignedIn { padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.account-dialog #accountSignedIn p { margin: 0 0 5px; color: var(--muted); font-size: 11px; }
.account-dialog #accountSignedIn strong { overflow-wrap: anywhere; }
.cloud-setup-notice { padding: 14px; border: 1px solid rgba(255,209,120,.35); border-radius: 8px; background: rgba(255,209,120,.055); }
.cloud-setup-notice p { margin-bottom: 0; color: #c9b98e; line-height: 1.55; font-size: 12px; }
.cloud-setup-notice code { color: #ffe1a8; }
.cover-editor { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 14px; margin: 15px 0 20px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.02); }
.cover-editor-preview { width: 112px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background-position: center; background-size: cover; }
.cover-editor-preview span { position: relative; z-index: 1; color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-shadow: 0 2px 10px #000; }
.cover-editor-actions { min-width: 0; }
.cover-editor-actions strong { display: block; margin-bottom: 5px; }
.cover-editor-actions .file-button, .cover-editor-actions .ghost-button { width: 100%; min-height: 36px; margin-top: 7px; padding: 0 10px; font-size: 10px; }
.legacy-imports { color: var(--muted); font-size: 11px; }
.legacy-imports summary { cursor: pointer; }
.legacy-imports .file-button { width: 100%; margin-top: 8px; }
.trim-range-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.trim-range-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 10px; }
.trim-buttons { margin-top: 10px; }

@media (max-width: 860px) {
  .editor-workspace { grid-template-columns: minmax(0, 1fr) 330px; }
  .preview-pane { grid-template-rows: 48px minmax(220px, 1fr) 42px 170px; }
  #timelineCanvas { height: 170px; }
  .selection-main { grid-template-columns: minmax(0, 1fr) 300px; }
  .song-browser { padding: 24px; }
}

@media (max-width: 680px) {
  .topbar { min-height: 58px; height: auto; padding: 8px 10px; }
  .brand { font-size: 11px; }
  .brand span { display: none; }
  .game-hud { left: 12px; right: 12px; }
  .song-strip { grid-template-columns: 120px 1fr; gap: 10px; }
  .song-strip > span { display: none; }
  .song-select-page { height: auto; min-height: 100vh; overflow: auto; }
  .song-select-shell { min-height: 100vh; height: auto; grid-template-rows: auto auto; }
  .selection-main { display: flex; flex-direction: column; }
  .song-browser { padding: 20px 14px; overflow: visible; }
  .selection-heading { margin-bottom: 16px; align-items: flex-start; }
  .song-grid { grid-template-columns: 1fr; }
  .song-detail { padding: 20px 14px 34px; border: 0; border-top: 1px solid var(--line); overflow: visible; }
  .detail-cover { max-width: 230px; }
  .editor-page { height: 100dvh; overflow: hidden; }
  .editor-shell { height: 100dvh; grid-template-rows: auto minmax(0, 1fr); }
  .editor-workspace { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(330px, 48%) minmax(0, 1fr); }
  .preview-pane { height: auto; min-height: 0; grid-template-rows: 44px minmax(160px, 1fr) 38px 112px; }
  .preview-toolbar { overflow-x: auto; padding: 0 8px; }
  .preview-toolbar > * { flex: 0 0 auto; }
  .preview-toolbar input[type="range"] { width: 110px; }
  .timeline-toolbar { overflow-x: auto; padding: 0 8px; }
  #timelineCanvas { height: 112px; }
  .inspector-pane { height: auto; min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .tab-list { position: sticky; top: 0; z-index: 2; height: 44px; background: var(--panel); }
  .tab-panel { height: calc(100% - 44px); padding: 15px; -webkit-overflow-scrolling: touch; }
  .tab { min-width: 56px; }
  .topbar-actions { max-width: 76vw; }
  .selection-topbar { align-items: stretch; flex-wrap: wrap; gap: 7px; }
  .selection-topbar .brand { align-self: center; min-height: 34px; display: flex; align-items: center; }
  .selection-topbar .topbar-actions { width: 100%; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); overflow: visible; }
  .selection-topbar .topbar-actions > * { min-width: 0; width: 100%; }
  .topbar .icon-button, .topbar .compact { min-height: 40px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .entity-row { min-height: 46px; }
  .audio-trim-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; }
  .cover-editor { grid-template-columns: 88px minmax(0,1fr); }
  .cover-editor-preview { width: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
