:root {
    --ab-line: #eeeeee;
    --ab-line-strong: #dbe5ea;
    --ab-safe-bg: #e6fffa;
    --ab-safe: #2c7a7b;
    --ab-safe-line: #b2f5ea;
    --ab-warning-bg: #fffaf0;
    --ab-warning: #c05621;
    --ab-warning-line: #fbd38d;
    --ab-danger-bg: #fff5f5;
    --ab-danger: #c53030;
    --ab-danger-line: #feb2b2;
    --ab-shadow-card: 0 10px 30px rgba(0, 0, 0, .05);
    --ab-shadow-form: 0 10px 40px rgba(0, 0, 0, .05);
    --source-a: var(--primary-color);
    --source-b: var(--accent-pink);
}

.ab-page { max-width: 1120px; padding-bottom: 80px; }
.ab-page [hidden] { display: none !important; }
.ab-page button, .ab-page select, .ab-page input { font: inherit; }

.ab-page button, .ab-page select {
    min-height: 46px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: #fff;
    padding: 10px 16px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.ab-page button:hover:not(:disabled), .ab-page select:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: #f4fcff;
    transform: translateY(-1px);
}

.ab-page button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.ab-page button:disabled { background: #f1f3f5; color: #9aa4ab; cursor: not-allowed; transform: none; box-shadow: none; }
.ab-page :is(button, select, input:not([type="checkbox"]):not([type="radio"]), summary):focus-visible { outline: 3px solid var(--primary-color); outline-offset: 4px; }

.ab-intro { padding: 44px 0 28px; text-align: center; }
.ab-intro h1 { color: var(--text-main); font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; line-height: 1.4; letter-spacing: .02em; }
.ab-intro > p { margin-top: 14px; color: var(--text-sub); font-size: 15px; line-height: 1.9; }

.ab-tool { overflow: hidden; border: 1px solid var(--ab-line); border-radius: var(--border-radius-md); background: #fff; box-shadow: var(--ab-shadow-form); }
.ab-tool-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; padding: 14px 24px; border-bottom: 1px solid var(--ab-line); background: var(--bg-light); }
.ab-tool-title { display: flex; align-items: center; gap: 10px; color: #18273f; font-size: 15px; font-weight: 800; }
.ab-tool-title i { color: var(--primary-color); font-size: 20px; }
.ab-tool-brand { color: var(--text-sub); font-size: 12px; }
.ab-tool-body { padding: 24px; }

.file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.file-card {
    --source: var(--source-a);
    min-width: 0;
    padding: 20px;
    border: 1px solid #cceffc;
    border-radius: var(--border-radius-md);
    background: #f3fbfe;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.file-card.source-b { --source: var(--source-b); border-color: #ffd5d5; background: #fff6f6; }
.file-card.registered { animation: file-card-flash 1s ease-out; }
@keyframes file-card-flash {
    0% { border-color: var(--source); background: color-mix(in srgb, var(--source) 12%, #182230); box-shadow: 0 0 0 0 color-mix(in srgb, var(--source) 42%, transparent); }
    45% { border-color: var(--source); background: color-mix(in srgb, var(--source) 18%, #182230); box-shadow: 0 0 0 10px color-mix(in srgb, var(--source) 16%, transparent), 0 14px 36px color-mix(in srgb, var(--source) 22%, transparent); }
    100% { box-shadow: none; }
}
.file-card h2 { display: flex; align-items: center; gap: 11px; color: var(--source); font-size: 18px; font-weight: 800; }
.source-label { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--source); color: #fff; font-size: 18px; }

.file-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    margin: 16px 0 14px;
    padding: 24px 16px;
    border: 1px dashed #a9c9d6;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.source-b .file-picker { border-color: #e8baba; }
.file-picker:hover, .file-picker:focus-within { border-color: var(--source); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--source) 16%, transparent); }
.upload-icon { display: block; width: 58px; height: 58px; margin-bottom: 14px; object-fit: contain; }
.file-picker strong { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-bottom: 12px; padding: 10px 24px; border-radius: 999px; background: var(--source); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 5px 14px color-mix(in srgb, var(--source) 24%, transparent); transition: transform .2s ease, box-shadow .2s ease; }
.file-picker:hover strong, .file-picker:focus-within strong { transform: translateY(-1px); }
.file-picker:active strong { transform: translateY(1px); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.file-picker span, .file-hint { color: var(--text-sub); font-size: 12px; line-height: 1.8; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-card.dragover { border-color: var(--source); background: #fff; transform: scale(1.005); }
.filename { min-width: 0; overflow: hidden; color: var(--text-main); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.file-status { min-height: 1.7em; margin-top: 10px; color: var(--ab-safe); font-size: 12px; overflow-wrap: anywhere; }
.file-status::before { content: "\f058"; margin-right: 6px; font-family: "Font Awesome 7 Free"; font-weight: 900; }
.file-status.error { color: var(--ab-danger); }
.file-status.error::before { content: "\f06a"; }

.utility-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px -24px -24px; padding: 16px 24px; border-top: 1px solid var(--ab-line); background: #fff; font-size: 12px; }
.utility-bar > span { flex: 1; color: var(--text-sub); }
.utility-bar button::before { margin-right: 7px; font-family: "Font Awesome 7 Free"; font-weight: 900; }
#reset::before { content: "\f2ea"; }
.ab-tool.is-ready .file-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 3px 12px; padding: 14px 16px; background: #fff; }
.ab-tool.is-ready .file-card h2 { grid-row: 1 / 3; }
.ab-tool.is-ready .source-label { width: 34px; height: 34px; }
.ab-tool.is-ready .file-picker { grid-column: 3; grid-row: 1 / 3; min-height: 42px; margin: 0; padding: 0; border: 0; background: transparent; }
.ab-tool.is-ready .file-picker:hover, .ab-tool.is-ready .file-picker:focus-within { box-shadow: none; }
.ab-tool.is-ready .upload-icon, .ab-tool.is-ready .file-picker span, .ab-tool.is-ready .file-hint { display: none; }
.ab-tool.is-ready .file-picker strong { min-height: 40px; margin: 0; padding: 8px 14px; box-shadow: none; font-size: 12px; }
.ab-tool.is-ready .filename { grid-column: 2; grid-row: 1; }
.ab-tool.is-ready .file-status { grid-column: 2; grid-row: 2; min-height: 0; margin: 0; }
.notice { margin: 18px 0 0; padding: 15px 18px; border: 1px solid var(--ab-warning-line); border-radius: var(--border-radius-sm); background: var(--ab-warning-bg); color: var(--ab-warning); font-size: 13px; line-height: 1.8; }

.workspace, .results { margin-top: 20px; padding: 22px; scroll-margin-top: 110px; border: 1px solid var(--ab-line); border-radius: var(--border-radius-md); background: #fff; }
.mode-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ab-line); }
.mode-bar h2, .results h2 { color: #18273f; font-size: 20px; font-weight: 800; }
#blindSetup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
#startBlind, #again { border-color: var(--primary-color); background: var(--primary-color); color: #fff; }
#startBlind:hover, #again:hover { background: var(--primary-hover) !important; color: #fff; }

.wave-row { --source: var(--source-a); margin: 10px 0; }
.wave-row.source-b { --source: var(--source-b); }
.wave-row p { display: flex; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.wave-row strong { display: inline-grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--source); color: #fff; font-size: 13px; }
.wave-row p { align-items: center; }
.wave-row canvas { display: block; width: 100%; height: 76px; border: 1px solid var(--ab-line); border-radius: 9px; background: var(--bg-light); cursor: crosshair; touch-action: none; }
.workspace.is-preview > :not(#waveforms) { display: none; }
.workspace.is-preview .wave-row canvas { cursor: default; }
.small, .shortcuts { color: var(--text-sub); font-size: 12px; line-height: 1.8; }
.timeline { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 14px 0; font-size: 13px; font-weight: 700; }
.timeline output { color: #334a5a; font-variant-numeric: tabular-nums; }
.timeline input[type="range"] {
    grid-column: 1 / -1;
    width: 100%;
    height: 32px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: grab;
    --range-progress: 0%;
    --handle-scale: 1;
    --handle-motion: transform .42s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.timeline input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--primary-color) 0 var(--range-progress), var(--input-border) var(--range-progress) 100%); }
.timeline input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--primary-color) 0 var(--range-progress), var(--input-border) var(--range-progress) 100%); }
.timeline input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 50%; background: var(--primary-color); transform: scale(var(--handle-scale)); transition: var(--handle-motion); box-shadow: 0 2px 5px rgba(0, 0, 0, .2); }
.timeline input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--primary-color); transform: scale(var(--handle-scale)); transition: var(--handle-motion); box-shadow: 0 2px 5px rgba(0, 0, 0, .2); }
@media (hover: hover) { .timeline input[type="range"]:hover { --handle-scale: 1.05; } }
.timeline input[type="range"].is-grabbing { cursor: grabbing; --handle-scale: 1.35; --handle-motion: transform .16s ease-out, box-shadow .2s ease; }
.timeline input[type="range"]:disabled { cursor: not-allowed; opacity: .45; }

.monitor-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.monitor-buttons button { min-height: 74px; border-width: 2px; font-size: 25px; font-weight: 800; }
.monitor-buttons button span { font-size: 13px; }
.monitor-buttons button[aria-pressed="true"] { border-color: var(--source-a); background: #e9faff; color: #0088bb; box-shadow: 0 4px 12px rgba(0, 174, 239, .14); }
.monitor-buttons #monitorB { color: #c84c5e; }
.monitor-buttons #monitorB[aria-pressed="true"] { border-color: var(--source-b); background: #fff1f1; color: #cf4f60; box-shadow: 0 4px 12px rgba(255, 107, 107, .14); }
.monitor-buttons #monitorD { color: #a36b00; }
.monitor-buttons #monitorD[aria-pressed="true"] { border-color: var(--accent-yellow); background: #fffbea; color: #835700; box-shadow: 0 4px 12px rgba(255, 217, 61, .18); }
.monitor-buttons button[aria-pressed="true"] { animation: control-bounce .3s cubic-bezier(.4, 0, .2, 1); }
.monitor-buttons button:active:not(:disabled) { transform: scale(.95); animation: none; }
@keyframes control-bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.monitor-buttons.blind { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.listening { margin: 10px 0; color: var(--text-sub); font-size: 12px; font-weight: 700; text-align: center; }
.transport { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0 12px; }
.transport .play { min-width: 190px; border-color: var(--primary-color); border-radius: 999px; background: var(--primary-color); color: #fff; font-weight: 800; box-shadow: 0 5px 14px rgba(0, 174, 239, .24); }
.transport .play:hover { background: var(--primary-hover) !important; color: #fff; }

.status-bar, .range-bar, .range-inputs, .sync-buttons { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.status-bar { justify-content: space-between; padding: 10px 0; border-block: 1px solid var(--ab-line); font-size: 13px; }
.automatic-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.normalization-control { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
#normalizationAdjustment { color: var(--text-sub); }
.check { display: inline-flex; margin: 0; min-height: 44px; font-weight: 700; }
/* Checkbox animation adapted from Uiverse.io by kyle1dev, matching doc/デザイン.html. */
.check-row { position: relative; display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.check-row input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.check-row .checkbox-wrapper { position: relative; display: inline-block; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; transition: transform .2s ease; }
.check-row .checkbox-bg { position: absolute; inset: 0; border: 2px solid var(--primary-color); border-radius: 7px; background: #1d2938; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.check-row .checkbox-icon { position: absolute; inset: 0; width: 80%; height: 80%; margin: auto; color: #132333; transform: scale(0); transition: transform .2s ease; }
.check-row .check-path { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .3s ease .1s; }
.check-row input:checked + .checkbox-wrapper .checkbox-bg { border-color: var(--primary-color); background: var(--primary-color); }
.check-row input:checked + .checkbox-wrapper .checkbox-icon { transform: scale(1); }
.check-row input:checked + .checkbox-wrapper .check-path { stroke-dashoffset: 0; }
.check-row input:focus-visible + .checkbox-wrapper .checkbox-bg { outline: 2px solid var(--primary-color); outline-offset: 3px; box-shadow: 0 0 0 4px var(--input-focus-ring); }
.check-row input:disabled + .checkbox-wrapper { opacity: .45; }
.check-row:has(input:disabled) { color: #8292a5; cursor: not-allowed; }
@media (hover: hover) { .check-row:hover .checkbox-wrapper { transform: scale(1.05); } }
.check-row:active .checkbox-wrapper { transform: scale(.95); }
.check-row input:checked + .checkbox-wrapper { animation: checkbox-bounce .3s cubic-bezier(.4, 0, .2, 1); }
@keyframes checkbox-bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.range-bar { margin-top: 14px; font-size: 13px; }
#rangeText { flex: 1; color: #334a5a; font-variant-numeric: tabular-nums; font-weight: 700; }
.range-inputs { gap: 10px; margin: 4px 0 15px; font-size: 12px; }
.range-inputs input { width: 106px; }
.ab-page input[type="number"] { min-height: 44px; border: 2px solid var(--input-border); border-radius: var(--border-radius-sm); padding: 6px 9px; background: #fff; color: var(--text-main); }
.ab-page input[type="number"]:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--input-focus-ring); outline: 0; }
.ab-page details { border-top: 1px solid var(--ab-line); }
.ab-page summary { position: relative; min-height: 54px; padding: 15px 34px 15px 4px; cursor: pointer; font-size: 14px; font-weight: 800; list-style: none; }
.ab-page summary::-webkit-details-marker { display: none; }
.ab-page summary::after { content: ""; position: absolute; top: 50%; right: 8px; width: 12px; height: 12px; background: linear-gradient(#666, #666) center / 12px 2px no-repeat, linear-gradient(#666, #666) center / 2px 12px no-repeat; transform: translateY(-50%); }
.ab-page details[open] > summary::after { background: linear-gradient(#666, #666) center / 12px 2px no-repeat; }
.details-body { padding: 4px 4px 20px; }
.offset-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
#offset { width: 130px; }
.offset-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.info-scroll { overflow-x: auto; max-width: 100%; }
.ab-page table { width: 100%; margin: 12px 0; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.ab-page td, .ab-page th { padding: 11px; border-bottom: 1px solid var(--ab-line); overflow-wrap: anywhere; text-align: left; }
.ab-page th { background: var(--bg-light); color: var(--text-sub); }
.shortcuts { margin-top: 20px; text-align: center; }
.blind-prompt { margin: 12px 0; padding: 18px; border-radius: 12px; background: #e9faff; color: #176988; }
.blind-answer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.blind-answer button { min-height: 56px; border-width: 2px; border-color: var(--input-border); font-size: 17px; font-weight: 800; }
.blind-answer button[data-answer="A"] { color: var(--source-a); }
.blind-answer button[data-answer="B"] { color: var(--source-b); }
.results { background: var(--bg-light); }
#resultSummary { display: grid; gap: 12px; margin: 18px 0; }
.result-row { padding: 14px; border: 1px solid var(--ab-line); border-radius: 10px; background: #fff; overflow-wrap: anywhere; }
.result-row progress { display: block; width: 100%; height: 12px; margin-top: 8px; accent-color: var(--primary-color); }

/* Dark palette is scoped to the main tool card. */
.ab-tool {
    color-scheme: dark;
    --text-main: #e8eef5;
    --text-sub: #afbdcd;
    --bg-light: #151e2b;
    --input-border: #46576b;
    --input-focus-ring: rgba(104, 211, 250, .2);
    --primary-color: #68d3fa;
    --primary-hover: #97e2ff;
    --source-a: #68d3fa;
    --source-b: #ff9baa;
    --ab-line: #344255;
    --ab-line-strong: #46576b;
    --ab-safe: #80ddc7;
    --ab-warning-bg: #352c1c;
    --ab-warning: #f4cf86;
    --ab-warning-line: #76603b;
    --ab-danger: #ffaaaa;
    background: #182230;
    color: var(--text-main);
    box-shadow: 0 10px 40px rgba(15, 23, 42, .16);
}
.ab-tool .file-card { border-color: #34566a; background: #1b2d3b; }
.ab-tool .file-card.source-b { border-color: #624653; background: #302530; }
.ab-tool .file-picker { border-color: #526b80; background: #141f2b; }
.ab-tool .source-b .file-picker { border-color: #806071; }
.ab-tool .file-picker:hover, .ab-tool .file-picker:focus-within,
.ab-tool .file-card.dragover { border-color: var(--source); background: #26374a; }
.ab-tool .source-label, .ab-tool .file-picker strong, .ab-tool .wave-row strong { color: #132333; }
.ab-tool .utility-bar, .ab-tool .workspace, .ab-tool .result-row { background: #1d2938; }
.ab-tool.is-ready .file-card { background: #1d2938; }
.ab-tool.is-ready .file-picker { background: transparent; }
.ab-tool .mode-bar h2, .ab-tool .results h2,
.ab-tool .timeline output, .ab-tool #rangeText { color: var(--text-main); }
.ab-tool button, .ab-tool select, .ab-tool input[type="number"] { background: #263548; }
.ab-tool button:hover:not(:disabled), .ab-tool select:hover:not(:disabled) { background: #33485e; }
.ab-tool button:disabled { background: #212c3a; color: #8292a5; }
.ab-tool :is(#startBlind, #again, .play) { background: var(--primary-color); color: #132333; }
.ab-tool :is(#startBlind, #again, .play):hover { color: #132333; }
.ab-tool .monitor-buttons button[aria-pressed="true"] { background: #203f52; color: var(--source-a); }
.ab-tool .monitor-buttons #monitorB { color: var(--source-b); }
.ab-tool .monitor-buttons #monitorB[aria-pressed="true"] { background: #48303e; color: var(--source-b); }
.ab-tool .monitor-buttons #monitorD { color: #f4cf86; }
.ab-tool .monitor-buttons #monitorD[aria-pressed="true"] { background: #443b24; color: #f4cf86; }
.ab-tool .blind-prompt { background: #203f52; color: #a5e5ff; }
.ab-tool summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; }
.ab-tool details[open] > summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat; }

.guide { max-width: 900px; margin: 0 auto; padding-top: 44px; }
.guide-section { padding: 36px 0 44px; border-bottom: 1px solid var(--ab-line); }
.section-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.section-no { color: var(--primary-color); font: 700 13px/1.5 ui-monospace, monospace; }
.section-head h2 { color: #18273f; font-size: 26px; font-weight: 800; }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.guide-steps li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ab-line); counter-increment: step; }
.guide-steps li:last-child { border: 0; }
.guide-steps li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--accent-yellow); color: var(--text-main); font-size: 12px; font-weight: 800; }
.guide-steps strong, .explain-list h3 { color: #24364b; font-size: 15px; font-weight: 800; }
.guide-steps p, .explain-list p { margin-top: 5px; color: var(--text-sub); font-size: 13px; line-height: 1.9; }
.explain-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
.explain-list article { padding: 22px 0; border-top: 1px solid var(--ab-line); }
.explain-list article:first-child { grid-column: 1 / -1; }
.faq-list { overflow: hidden; border: 1px solid var(--ab-line); border-radius: var(--border-radius-md); background: #fff; }
.faq-list details { border: 0; border-bottom: 1px solid var(--ab-line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list details[open] { background: var(--bg-light); }
.faq-list summary { display: flex; align-items: center; gap: 14px; padding: 20px 46px 20px 22px; }
.faq-list .q { color: var(--primary-color); font-size: 18px; }
.faq-list details p { margin: 0 22px 22px 55px; color: var(--text-sub); font-size: 13px; line-height: 1.9; }

@media (max-width: 700px) {
    .ab-page { padding-inline: 16px; padding-bottom: 50px; }
    .ab-intro { padding: 32px 0 26px; text-align: left; }
    .ab-intro h1 { font-size: clamp(27px, 8vw, 34px); }
    .ab-intro > p:not(.privacy) { font-size: 13px; }
    .ab-intro .privacy { align-items: flex-start; margin-top: 20px; font-size: 12px; }
    .ab-tool-body { padding: 16px; }
    .file-grid { grid-template-columns: 1fr; gap: 14px; }
    .file-card { padding: 16px; }
    .file-picker { min-height: 190px; }
    .ab-tool.is-ready .file-grid { grid-template-columns: 1fr; }
    .ab-tool.is-ready .file-picker { grid-column: 2; grid-row: 2; align-items: flex-start; }
    .ab-tool.is-ready .file-card { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; }
    .ab-tool.is-ready .file-card h2 { grid-row: 1 / 4; }
    .ab-tool.is-ready .filename { grid-column: 2; grid-row: 1; }
    .ab-tool.is-ready .file-status { grid-column: 2; grid-row: 3; }
    .utility-bar { margin: 16px -16px -16px; padding: 14px 16px; }
    .utility-bar > span { flex-basis: 100%; }
    .workspace, .results { padding: 16px; }
    .mode-bar { align-items: flex-start; }
    #blindSetup { align-items: stretch; }
    #startBlind { flex-basis: 100%; }
    .monitor-buttons { gap: 8px; }
    .monitor-buttons button { min-height: 68px; padding: 9px 4px; font-size: 21px; }
    .monitor-buttons button span { display: block; font-size: 11px; }
    .transport { gap: 8px; }
    .transport button { padding-inline: 10px; }
    .transport .play { min-width: 112px; flex: 1; }
    .transport .loop-five { flex-basis: 100%; }
    .status-bar { align-items: flex-start; }
    .range-bar { gap: 6px 12px; }
    #rangeText { flex-basis: 55%; }
    .blind-answer { gap: 8px; }
    .blind-answer button { min-height: 52px; padding-inline: 8px; font-size: 15px; }
    .ab-page td, .ab-page th { padding: 8px 5px; }
    .guide { padding-top: 24px; }
    .guide-section { padding: 28px 0 34px; }
    .section-head { gap: 12px; margin-bottom: 18px; }
    .section-head h2 { font-size: 23px; }
    .explain-list { grid-template-columns: 1fr; }
    .explain-list article:first-child { grid-column: auto; }
    .faq-list summary { padding: 18px 42px 18px 16px; }
    .faq-list details p { margin: 0 16px 20px 48px; }
}

@media (max-width: 400px) {
    .file-picker { min-height: 174px; padding-inline: 10px; }
    .file-picker strong { padding-inline: 17px; }
    .monitor-buttons button { font-size: 18px; }
    .transport button { font-size: 12px; }
    .range-inputs label { display: flex; align-items: center; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-page *, .ab-page *::before, .ab-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    .ab-page :is(button, .checkbox-wrapper):hover, .ab-page :is(button, .checkbox-wrapper):active { transform: none !important; }
    .timeline input[type="range"] { --handle-motion: none; }
}
