:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #10131b; color: #eef1f7; }
.page { width: min(1000px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
.eyebrow { color: #8b9cff; font-size: 12px; letter-spacing: .18em; }
h1 { margin: 8px 0; font-size: clamp(32px, 6vw, 58px); letter-spacing: -.04em; }
h2 { margin: 0; font-size: 20px; }
.intro { color: #aeb6c8; max-width: 720px; line-height: 1.7; }
.card { margin-top: 24px; padding: 24px; border: 1px solid #293042; border-radius: 18px; background: #171b25; box-shadow: 0 16px 45px #0002; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-grid.compact { grid-template-columns: 1fr 1fr; margin-top: 16px; }
label { display: grid; gap: 8px; color: #b8c0d2; font-size: 13px; }
input, select { width: 100%; padding: 11px 12px; color: #f6f7fb; background: #0e1118; border: 1px solid #30394d; border-radius: 10px; }
button, .button { display: inline-block; margin-top: 22px; padding: 12px 18px; border: 0; border-radius: 10px; color: #10131b; background: #9eafff; font-weight: 700; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .55; cursor: wait; }
.secondary { color: #eef1f7; background: #29344e; }
.import-result-row { display: grid; grid-template-columns: minmax(250px, 1fr) 1.4fr; align-items: end; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #293042; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-head-meta { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.preview-head-meta .small-button { margin: 0; }
.task-timing { margin: 8px 0 0; color: #aeb6c8; font-size: 12px; }
.result-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 12px; border: 1px solid #30394d; border-radius: 12px; background: #11151e; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tab { margin: 0; padding: 7px 10px; border: 1px solid #30394d; border-radius: 8px; color: #b8c0d2; background: transparent; font-size: 12px; font-weight: 600; }
.filter-tab.active { border-color: #9eafff; color: #10131b; background: #9eafff; }
.display-mode { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.display-mode select { width: auto; min-width: 120px; padding: 7px 9px; }
.pill { padding: 5px 10px; border-radius: 999px; background: #30394d; font-size: 12px; }
.pill.running { color: #131008; background: #f0c36b; }.pill.completed { color: #06150e; background: #73e2a4; }.pill.failed { color: #210909; background: #ff8d8d; }
.mono { color: #9eafff; font: 13px ui-monospace, SFMono-Regular, monospace; word-break: break-all; }
.muted, .notes { color: #8994a9; font-size: 13px; }
.progress { height: 10px; margin-top: 20px; overflow: hidden; border-radius: 999px; background: #0d1016; }
#progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b9cff, #73e2a4); transition: width .3s ease; }
.error { color: #ff9e9e; white-space: pre-wrap; }
.player-box { display: flex; align-items: center; gap: 12px; margin: 20px 0; padding: 12px; border: 1px solid #30394d; border-radius: 12px; background: #0d1016; }
.player-box audio { width: min(100%, 520px); }
.small-button { margin: 0; padding: 7px 10px; border: 0; border-radius: 8px; color: #10131b; background: #9eafff; font-size: 12px; font-weight: 700; cursor: pointer; }
.small-button:disabled { opacity: .4; cursor: not-allowed; }
.download-button { display: inline-block; text-decoration: none; }.download-button.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.matches-list { display: grid; gap: 12px; margin-top: 18px; }
.matches-list.flat-list { margin-top: 18px; }
.section-group { display: grid; gap: 10px; margin-top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid #30394d; border-radius: 10px; background: #1b2130; }
.section-heading > div { display: grid; gap: 4px; }
.waveform-index { display: grid; gap: 12px; margin-top: 18px; }
.waveform-index-heading { color: #b8c0d2; font-size: 13px; font-weight: 700; }
.waveform-panel { padding: 12px; border: 1px solid #30394d; border-radius: 10px; background: #0d1016; }
.waveform-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #cbd3e6; font-size: 12px; }
.section-group > summary { list-style: none; cursor: pointer; }
.section-group > summary::-webkit-details-marker { display: none; }
.section-group > summary::before { content: '＋'; display: inline-block; width: 20px; color: #9eafff; font-weight: 700; }
.section-group[open] > summary::before { content: '－'; }
.section-group > .waveform-panel { margin-top: 10px; }
.waveform-panel .small-button { margin-top: 4px; }
.waveform-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; }
.waveform-modal-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 10, .78); backdrop-filter: blur(5px); }
.waveform-dialog { position: relative; z-index: 1; width: min(1100px, 100%); max-height: min(900px, calc(100vh - 48px)); overflow: auto; padding: 22px; border: 1px solid #3b465d; border-radius: 18px; background: #171b25; box-shadow: 0 25px 80px #0009; }
.waveform-dialog-header, .waveform-zoom-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.waveform-zoom-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.waveform-dialog-header h3 { margin: 0; font-size: 20px; }.waveform-dialog-header p { margin: 6px 0 0; max-width: 760px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waveform-large-wrap { margin-top: 18px; padding: 10px; border: 1px solid #30394d; border-radius: 12px; background: #0d1016; }
.waveform-large { display: block; width: 100%; height: 260px; border-radius: 8px; cursor: crosshair; }
.waveform-zoom { height: 220px; }
.waveform-zoom-header { margin-top: 18px; color: #f0c36b; font-size: 13px; }
.waveform-dialog-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.modal-open { overflow: hidden; }
.empty-state { margin: 24px 0 0; padding: 22px; border: 1px dashed #3d4961; border-radius: 10px; color: #8994a9; text-align: center; }
.match-card { padding: 16px; border: 1px solid #30394d; border-left: 4px solid #59657e; border-radius: 12px; background: #11151e; }
.match-card.matched { border-left-color: #73e2a4; }.match-card.ambiguous { border-left-color: #f0c36b; }.match-card.unmatched { border-left-color: #ff8d8d; }
.match-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.match-meta { margin: 8px 0 12px; color: #aeb6c8; font-size: 12px; }
.raw-interval { margin: -4px 0 12px; color: #f0c36b; font-size: 12px; }
.match-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.match-card h4 { margin: 16px 0 8px; color: #f0c36b; font-size: 13px; }
.candidate-list { display: grid; gap: 7px; }.candidate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; background: #1b2130; color: #cbd3e6; font-size: 12px; }
.raw-json { margin-top: 22px; color: #aab7ff; font-size: 13px; }.raw-json summary { cursor: pointer; }
pre { max-height: 540px; overflow: auto; padding: 16px; border-radius: 10px; background: #0d1016; color: #cbd3e6; font-size: 12px; line-height: 1.55; }
.hidden { display: none; }
a { color: #aab7ff; }
@media (max-width: 720px) { .field-grid, .field-grid.compact, .import-result-row { grid-template-columns: 1fr; } .page { padding-top: 32px; } .player-box, .candidate-row, .result-controls, .section-heading, .waveform-dialog-header, .waveform-zoom-header, .preview-head-meta { align-items: flex-start; flex-direction: column; } .waveform-modal { padding: 10px; } .waveform-dialog { max-height: calc(100vh - 20px); padding: 16px; } .waveform-large { height: 200px; } .waveform-zoom { height: 180px; } }
