:root {
  color-scheme: light;
  --paper: #fff; --surface: #fff; --raised: #f7f9fc; --ink: #172235;
  --secondary: #445369; --muted: #5d6a7b; --line: #dfe5ec;
  --accent: #175cd3; --accent-hover: #124bb0; --soft: #eff5ff;
  --warning: #aa3535; --success: #177856; --radius: 12px; --shell: 1200px;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font: 400 15px/1.6 'Segoe UI','Microsoft YaHei UI','Noto Sans SC',sans-serif; }
::selection { background: #cfe0ff; color: var(--ink); }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 500; line-height: 1.18; letter-spacing: -.025em; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 64px),var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.site-header { height: 68px; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; white-space: nowrap; }
.brand-sub { color: var(--secondary); font-weight: 400; }
.brand:hover .brand-sub { color: var(--accent); }
.brand-icon { display: flex; align-items: flex-end; gap: 3px; width: 22px; height: 22px; padding: 2px; }
.brand-icon span { width: 4px; background: var(--accent); border-radius: 2px; }
.brand-icon span:nth-child(1) { height: 8px; }
.brand-icon span:nth-child(2) { height: 16px; }
.brand-icon span:nth-child(3) { height: 12px; }
.system-state { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); font-size: 13px; }
.system-state::before { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #8a98aa; content: ''; }
.system-state.ready::before { background: var(--success); }
.system-state.offline::before { background: var(--warning); }
.access-view { padding-block: 48px; }
.access-grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr); gap: clamp(32px,5vw,72px); align-items: start; }
.access-content { min-width: 0; }
.access-content h1 { font-size: 48px; letter-spacing: -.04em; line-height: 1.12; }
.access-form { width: min(100%,520px); margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form-head { margin-bottom: 20px; }
.form-heading { font-size: 20px; font-weight: 500; }
.access-form label,.editor-fields label,.search-field,.editor-chart-controls label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.access-form label:not(:first-of-type) { margin-top: 20px; }
input:not([type=checkbox]),textarea,select { min-width: 0; width: 100%; min-height: 48px; padding: 11px 14px; color: var(--ink); background: #fff; border: 1px solid #bcc8d6; border-radius: 8px; font-size: 16px; outline: none; caret-color: var(--accent); transition: border-color 160ms var(--ease),box-shadow 160ms var(--ease); }
textarea { min-height: 84px; resize: vertical; }
input:focus,textarea:focus,select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #d9e7ff; }
input::placeholder,textarea::placeholder { color: #5c6c7f; }
input[aria-invalid=true],textarea[aria-invalid=true] { border-color: var(--warning); }
.field-error { color: var(--warning); font-size: 14px; }
.field-error:not(:empty) { margin: 8px 0; }
.form-message { min-height: 20px; margin-top: 12px; color: var(--secondary); font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 500; line-height: 1.3; text-align: center; transition: background-color 160ms var(--ease),border-color 160ms var(--ease),color 160ms var(--ease),transform 160ms var(--ease); }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:disabled { background: #e9edf3; color: #5d6a7b; opacity: 1; }
.button.primary:not(:disabled):hover { background: var(--accent-hover); }
.button.secondary { background: #fff; border-color: #c7d1de; color: var(--secondary); }
.button.secondary:not(:disabled):hover { background: var(--raised); border-color: var(--accent); color: var(--accent); }
.button:not(:disabled):active { transform: translateY(1px); }
.access-form .button { width: 100%; margin-top: 20px; }
.cover-art { min-width: 0; }
.preview-window { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 28px rgba(20,39,65,.06); }
.preview-head { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.preview-head h2 { font-size: 17px; letter-spacing: 0; }
.preview-search { margin: 20px 24px 8px; }
.preview-search label { display: block; margin-bottom: 8px; color: var(--secondary); font-size: 14px; }
.preview-status { margin: 8px 24px 0; color: var(--muted); font-size: 13px; }
.preview-list { max-height: 480px; overflow-y: auto; padding: 0 24px 20px; }
.preview-more { width: calc(100% - 48px); margin: 0 24px 20px; }
.preview-song { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.preview-song:last-child { border-bottom: 0; }
.preview-song img { width: 64px; height: 64px; flex: none; border-radius: 6px; object-fit: cover; }
.preview-song > span:nth-child(2) { min-width: 0; flex: 1; }
.preview-song strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.preview-song small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.preview-song .preview-version-logo { width: 72px; height: 32px; object-fit: contain; border-radius: 0; }
.catalog-view { padding: 40px 0 64px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h1,.progress-view h1 { font-size: 36px; }
.workspace,.progress-layout { display: grid; grid-template-columns: minmax(0,1fr) 316px; gap: 24px; align-items: start; }
#catalog-queue-slot,#progress-queue-slot { min-width: 0; align-self: stretch; }
.library-pane,.selection-pane,.submitted-pane { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.library-pane { padding: 24px; }
.library-tools { display: flex; }
.search-field { flex: 1; }
.library-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.library-filters label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.library-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 16px 0 12px; color: var(--muted); font-size: 13px; }
.filter-actions { display: flex; align-items: center; gap: 16px; }
.recovery-panel { margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.recovery-panel h2 { margin-bottom: 16px; font-size: 20px; }
#recovery-options { display: flex; flex-wrap: wrap; gap: 12px; }
.player-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-bottom: 24px; padding: 20px 24px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); }
.player-banner div { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.player-banner span { color: var(--muted); font-size: 13px; }
.player-banner strong { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.player-banner p { color: var(--secondary); font-size: 14px; flex: 1 1 180px; }
.player-banner .preview-countdown { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 12px; margin-left: auto; }
.player-banner .preview-countdown-copy { flex: 0 1 auto; gap: 2px; }
.player-banner .preview-countdown-copy strong { color: var(--ink); font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.preview-ring { width: 48px; height: 48px; flex: none; transform: rotate(-90deg); }
.preview-ring-track,.preview-ring-value { fill: none; stroke-width: 3; }
.preview-ring-track { stroke: var(--line); }
.preview-ring-value { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 350ms linear; }
.preview-countdown[data-urgent=true] .preview-ring-value { stroke: var(--warning); }
.preview-countdown[data-expired=true] .preview-ring-value { opacity: 0; }
.song-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.song-card { display: flex; align-items: stretch; gap: 16px; width: 100%; min-width: 0; min-height: 120px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-align: left; transition: background-color 160ms var(--ease),border-color 160ms var(--ease); }
.song-card:hover { background: var(--soft); border-color: #9cbbef; }
.song-card:active { background: #e2edff; }
.song-card .song-cover { width: 96px; height: 96px; flex: none; border-radius: 5px; object-fit: cover; }
.song-card-content { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; gap: 4px; }
.song-card strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.song-card small { color: var(--muted); font-size: 13px; }
.song-card .song-version-logo { width: auto; max-width: 100%; height: 30px; margin-top: auto; object-fit: contain; }
.version-unknown { font-size: 13px; color: var(--muted); }
.load-more { width: 100%; margin-top: 20px; }
.queue-sidebar { display: grid; gap: 20px; position: sticky; top: 16px; max-height: calc(100svh - 32px); overflow-y: auto; scrollbar-gutter: stable; }
.selection-pane,.submitted-pane { overflow: hidden; }
.selection-top { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.selection-top h2 { font-size: 21px; }
.selection-top p { margin-top: 8px; color: var(--accent); font-size: 14px; font-weight: 500; }
.selected-list,.submitted-list { overflow-y: auto; padding: 8px 20px; }
.selected-list { max-height: 260px; }
.submitted-list { max-height: 260px; }
.empty-selection { padding: 16px 0; color: var(--muted); font-size: 14px; }
.selected-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.selected-item:last-child { border-bottom: 0; }
.selected-item-head { display: flex; align-items: flex-start; gap: 12px; }
.selected-item-head img { width: 48px; height: 48px; flex: none; border-radius: 5px; object-fit: cover; }
.selected-item-head div { min-width: 0; }
.selected-item-head strong { font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.selected-item-head small { display: block; color: var(--muted); font-size: 13px; }
.selected-item p { margin: 10px 0; color: var(--secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.selected-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.queue-action { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--secondary); font-size: 14px; font-weight: 500; line-height: 1.4; transition: color 160ms var(--ease),background-color 160ms var(--ease),border-color 160ms var(--ease),transform 160ms var(--ease); }
.queue-action-edit { color: var(--accent); border-color: #b3c9ed; background: #f7faff; }
.queue-action-edit:not(:disabled):hover { background: var(--soft); border-color: var(--accent); color: var(--accent-hover); }
.queue-action-remove:not(:disabled):hover { color: var(--warning); background: #fff3f2; border-color: #d9aaa6; }
.queue-action:not(:disabled):active { transform: translateY(1px); }
.queue-action:disabled { background: var(--raised); border-color: var(--line); color: var(--muted); opacity: .65; }
.queue-action-remove:focus-visible { outline-color: var(--warning); }
.text-button { min-height: 44px; padding: 4px 0; color: var(--accent); background: none; border: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--accent-hover); }
.auxiliary-section { padding: 16px 20px 20px; background: var(--soft); border-top: 1px solid #b3c9ed; }
.auxiliary-section h3 { font-size: 17px; }
.auxiliary-section > p { margin: 10px 0; font-size: 14px; color: var(--secondary); }
.auxiliary-section > .button { width: 100%; }
.operation-tag { display: inline-block; padding: 4px 8px; border: 1px solid #e3b4ad; border-radius: 5px; background: #fff4f2; color: var(--warning); font-size: 13px; }
.selection-bottom { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.selection-bottom .button { width: 100%; }
.queue-status:empty { display: none; }
.queue-status { margin: 12px 20px; color: var(--warning); font-size: 14px; }
.quota-summary { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; padding: 16px 20px; background: var(--raised); border-top: 1px solid var(--line); }
.quota-summary strong { font-size: 23px; color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
#reserved-quota { grid-column: 1/-1; color: var(--secondary); font-size: 14px; }
#reserved-quota:empty { display: none; }
.submission-state { display: inline-block; margin-top: 8px; padding: 2px 8px; background: var(--raised); border: 1px solid var(--line); border-radius: 4px; color: var(--secondary); font-size: 13px; }
.submission-state[data-state=matched] { color: var(--success); }
.submission-state[data-state=processing] { color: var(--accent); }
.submission-state[data-state=unknown] { color: var(--warning); }
.score-icons,.score-icons > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.score-icons { gap: 12px; min-height: 36px; }
.game-score-status { height: 36px; width: auto; max-width: 48px; object-fit: contain; }
.game-dx-stars { height: 16px; width: auto; max-width: 96px; object-fit: contain; }
.score-icon-label { color: var(--secondary); font-size: 13px; }
.is-placeholder { border-radius: 7px; }
.selection-resume { margin: 20px 0 24px; padding: 24px; background: var(--soft); border: 1px solid #b3c9ed; border-radius: var(--radius); }
.selection-resume h2 { font-size: 23px; }
.selection-resume p { margin-top: 10px; overflow-wrap: anywhere; }
.resume-quota { color: var(--accent-hover); font-weight: 500; font-variant-numeric: tabular-nums; }
.resume-actions,.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.rescan-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px 12px; margin-top: 20px; }
.rescan-form label { grid-column: 1/-1; font-size: 14px; font-weight: 500; }
.rescan-form textarea { min-height: 72px; }
.rescan-form .button { min-height: 48px; }
.result-banner { display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: start; gap: 20px; padding: 32px; border: 1px solid #a4cdbb; border-radius: var(--radius); background: #f1faf5; color: #135b42; }
.result-banner[data-outcome=failed] { border-color: #e3b4ad; background: #fff4f2; color: #8d2828; }
.result-banner[data-outcome=partial],.result-banner[data-outcome=unknown] { border-color: #dbc28d; background: #fffbef; color: #75500d; }
.result-mark { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid currentColor; border-radius: 50%; }
.result-mark svg { width: 32px; height: 32px; }
.result-banner h2 { font-size: clamp(27px,3.2vw,36px); line-height: 1.25; }
.result-banner p { margin-top: 12px; font-size: 16px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.result-banner .result-quota { font-size: 18px; font-weight: 600; }
.result-banner .result-retry-note { font-size: 14px; }
.result-retry-note:empty { display: none; }
.progress-details .progress-items-title { display: block; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.progress-item-state { display: inline-block; margin-top: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--raised); }
.progress-item-state[data-state=matched] { color: #135b42; border-color: #b9d9c7; background: #f1faf5; }
.progress-item-state[data-state=unknown],.progress-item-state[data-state=inflight] { color: #75500d; border-color: #dbc28d; background: #fffbef; }
.progress-item-state[data-state=released] { color: var(--warning); border-color: #e3b4ad; background: #fff4f2; }
.editor-operation { display: grid; gap: 8px; margin: 20px 0; font-size: 14px; font-weight: 500; }
.operation-unavailable { margin: 16px 0; padding: 16px; color: var(--warning); background: #fff4f2; border: 1px solid #e3b4ad; border-radius: 8px; }
.progress-view { min-height: calc(100svh - 160px); padding: 40px 0 64px; }
.progress-layout { margin-top: 28px; }
.progress-main { display: grid; min-width: 0; gap: 24px; }
.progress-panel,.progress-details { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.processing-indicator { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--secondary); font-size: 14px; }
.processing-spinner { display: block; width: 22px; height: 22px; flex: none; border: 2px solid #d9e7ff; border-top-color: var(--accent); border-right-color: var(--accent); border-radius: 50%; animation: processing-spin 850ms linear infinite; }
@keyframes processing-spin { to { transform: rotate(360deg); } }
.progress-panel strong { display: block; color: var(--accent); font-size: 25px; font-weight: 500; }
#progress-view[data-state=completed] .progress-panel strong { color: var(--success); }
#progress-view[data-state=unknown] .progress-panel strong,#progress-view[data-state=failed] .progress-panel strong { color: var(--warning); }
.progress-panel p { margin-top: 12px; color: var(--secondary); }
.progress-panel .progress-error { color: var(--warning); }
.progress-details h2 { font-size: 22px; }
.progress-details ol { margin: 20px 0; padding-left: 24px; }
.progress-details li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.progress-details li span { color: var(--muted); }
.progress-details .button { margin-top: 20px; }
.result-countdown { margin-top: 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--secondary); font-size: 14px; }
.result-countdown strong { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 500; }
.packet-review { min-width: 0; padding: 24px; border: 1px solid #9bbbf2; border-radius: var(--radius); background: #fff; }
.packet-review-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.packet-review-head h2 { font-size: 23px; }
.packet-review-head span { color: var(--secondary); font-size: 14px; }
.packet-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; margin: 20px 0 0; }
.packet-summary .packet-target { padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.packet-summary dt { color: var(--secondary); font-size: 14px; }
.packet-summary dd { margin: 4px 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.packet-hash { margin-top: 20px; color: var(--secondary); font-size: 13px; overflow-wrap: anywhere; }
.packet-hash code { display: block; margin-top: 4px; color: var(--ink); font-size: 12px; word-break: break-all; }
.packet-nodes { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.packet-nodes summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.packet-nodes ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 12px; max-height: 220px; margin: 12px 0 0; padding: 0; overflow: auto; list-style: none; }
.packet-nodes li { color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
dialog { width: min(640px,calc(100vw - 32px)); max-height: min(90dvh,900px); padding: 0; overflow-y: auto; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 64px rgba(16,33,55,.16); }
dialog::backdrop { background: rgba(15,28,48,.45); }
.editor,.confirm-inner { padding: 28px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dialog-head h2,.confirm-inner h2 { font-size: 28px; }
.dialog-head p,.confirm-inner > p { margin-top: 8px; color: var(--secondary); font-size: 14px; }
.icon-button { min-width: 52px; min-height: 44px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--secondary); font-size: 14px; flex: none; }
.icon-button:hover { background: var(--raised); }
.editor-chart-controls,.editor-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; }
.editor-chart-controls { margin-bottom: 24px; }
.field-limit { color: var(--secondary); font-size: 14px; font-weight: 400; }
.score-control { display: grid; grid-template-columns: minmax(0,1fr) 76px; align-items: center; gap: 12px; }
.score-art { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.score-art .game-dx-stars { max-width: 76px; }
.editor-options { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.check-field { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; font-size: 14px; cursor: pointer; }
.check-field input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.editor-options .check-field { margin-top: 0; }
.editor > .button { width: 100%; margin-top: 20px; }
.advanced-dialog { width: min(880px,calc(100vw - 32px)); }
.achievement-table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; margin-bottom: 24px; }
.achievement-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.achievement-table caption { text-align: left; font-size: 16px; font-weight: 500; padding-bottom: 12px; }
.achievement-table th,.achievement-table td { padding: 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.achievement-table thead th { background: var(--raised); font-weight: 500; }
.achievement-table tbody th { font-weight: 500; }
.achievement-table input { width: 76px; min-height: 44px; padding: 8px; font-size: 16px; }
.break-table { min-width: 0; max-width: 440px; }
.break-table input { width: 136px; }
.achievement-result-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.achievement-result { color: var(--accent); font-size: 26px; font-variant-numeric: tabular-nums; }
.achievement-result.invalid { color: var(--warning); font-size: 14px; }
.confirm-inner ol { max-height: 40vh; margin: 20px 0 0; padding: 0; overflow: auto; list-style: none; }
.confirm-inner li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.confirm-inner li strong { display: block; font-weight: 500; }
.confirm-inner li > span { color: var(--secondary); font-size: 14px; }
.confirm-inner .score-icons { margin-top: 8px; }
.dialog-actions { display: flex; gap: 12px; margin-top: 24px; }
.dialog-actions .button { flex: 1; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; min-height: 64px; color: var(--secondary); font-size: 14px; }
@media (max-width: 1050px) {
 .workspace,.progress-layout { grid-template-columns: minmax(0,1fr) 290px; }
 .song-grid { grid-template-columns: 1fr; }
 .preview-song .preview-version-logo { width: 56px; }
}
@media (max-width: 800px) {
 .shell { width: calc(100% - 48px); }
 .access-grid { grid-template-columns: 1fr; gap: 32px; }
 .access-content,.cover-art { width: 100%; max-width: 520px; margin-inline: auto; }
 .workspace,.progress-layout { grid-template-columns: 1fr; }
 .queue-sidebar { position: static; max-height: none; overflow: visible; }
 #catalog-queue-slot { grid-row: 1; }
 .song-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
 .shell { width: calc(100% - 36px); }
 .site-header { height: 60px; }
 .brand { font-size: 16px; }
 .system-state { font-size: 12px; }
 .access-view { padding-block: 32px; }
 .access-content h1 { font-size: 36px; }
 .access-form { margin-top: 24px; padding: 20px 16px; }
 .form-heading { font-size: 18px; }
 .catalog-view,.progress-view { padding: 32px 0 48px; }
 .section-head { align-items: stretch; flex-direction: column; }
 .section-head h1,.progress-view h1 { font-size: 30px; }
 .section-head .button { width: 100%; }
 .workspace,.progress-layout { gap: 16px; }
 .library-pane { padding: 16px; }
 .library-filters { gap: 12px; }
 .song-grid { grid-template-columns: 1fr; }
 .song-card .song-cover { width: 80px; height: 80px; }
 .song-card { min-height: 104px; }
 .player-banner { padding: 16px; gap: 12px; }
 .player-banner div { flex: 1 1 100%; }
 .player-banner .preview-countdown { flex: 1 1 100%; margin-left: 0; }
 .player-banner .preview-countdown-copy { flex: 0 1 auto; }
 .editor-chart-controls,.editor-fields { grid-template-columns: 1fr; }
 .selection-top,.selected-list,.submitted-list,.selection-bottom { padding-inline: 16px; }
 .selection-top { padding-block: 16px; }
 .selection-top h2 { font-size: 20px; }
 .selected-list,.submitted-list { max-height: 220px; }
 .selection-bottom { padding-block: 16px; }
 .packet-review { padding: 16px; }
 .packet-summary { grid-template-columns: 1fr; }
 .progress-panel,.progress-details { padding: 20px; }
 .result-banner { grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 20px 16px; }
 .result-mark { width: 40px; height: 40px; }
 .result-mark svg { width: 25px; height: 25px; }
 .result-banner h2 { font-size: 26px; }
 .result-banner p { font-size: 15px; }
 .result-banner .result-quota { font-size: 17px; }
 .result-actions,.resume-actions { flex-direction: column; }
 .result-actions .button,.resume-actions .button { width: 100%; }
 .selection-resume { padding: 20px 16px; }
 .rescan-form { grid-template-columns: minmax(0,1fr); }
 .rescan-form .button { width: 100%; }
 .editor,.confirm-inner { padding: 20px; }
 .dialog-actions { flex-direction: column-reverse; }
 .achievement-result-row { align-items: stretch; flex-direction: column; }
 .achievement-result-row .button { width: 100%; }
 .footer-inner { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 360px) { .library-filters { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
 *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
 .processing-spinner { animation: none !important; }
}
@media (forced-colors: active) {
 .preview-ring-track { stroke: GrayText; }
 .preview-ring-value { stroke: Highlight; }
 .processing-spinner { border-color: GrayText; border-top-color: Highlight; border-right-color: Highlight; }
}
