.record-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 80px; }
.record-main [hidden] { display: none !important; }
.tool-heading { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tool-heading h1 { margin: 0; font-size: 32px; letter-spacing: -.045em; }
.tool-heading > p:nth-of-type(2) { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.tool-tabs { display: flex; gap: 7px; margin-top: 17px; }
.tool-tab { padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 750; text-decoration: none; }
.tool-tab.is-active { color: white; border-color: var(--primary); background: var(--primary); }
.record-grid { display: grid; grid-template-columns: minmax(270px, .68fr) minmax(0, 1.72fr); gap: 18px; align-items: stretch; }
.record-sidebar, .record-results { display: grid; gap: 14px; min-height: 0; }
.record-sidebar { grid-template-rows: auto auto; align-content: start; min-width: 0; }
.record-results { grid-template-rows: .72fr 1.28fr; }
.record-card { padding: 20px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.card-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.card-heading .section-kicker { margin-bottom: 5px; font-size: 10px; }
.compact-heading { margin-bottom: 8px; }
.state-badge { padding: 6px 9px; border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 800; }
.state-badge.is-loading { color: var(--primary-dark); background: var(--primary-soft); }
.state-badge.is-complete { color: #426a4c; background: #e4efe4; }
.audio-dropzone { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 20px; border: 1px dashed #cdb8a4; border-radius: 2px; color: var(--muted); background: #fcfaf7; text-align: center; cursor: pointer; }
.audio-dropzone:hover, .audio-dropzone.has-file { border-color: var(--primary); background: #fffaf4; }
.audio-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--primary); font-size: 20px; }
.audio-dropzone strong { color: var(--ink); font-size: 13px; }
.audio-dropzone small { font-size: 10px; }
.audio-dropzone .button { min-height: 35px; margin-top: 4px; padding: 0 12px; pointer-events: none; font-size: 11px; }
.analyze-button { width: 100%; min-height: 39px; margin-top: 10px; font-size: 12px; }
.record-connection-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.record-connection-actions .button { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.button:disabled { cursor: not-allowed; color: #998d83; border-color: var(--line); background: #ece7e2; transform: none; }
.privacy-note { margin: 8px 0 0; color: #9a8d82; font-size: 9px; text-align: center; }
.file-information { margin: 0; }
.file-information div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid #ece4dc; font-size: 11px; }
.file-information div:last-child { border-bottom: 0; }
.file-information dt { color: var(--muted); }
.file-information dd { overflow: hidden; margin: 0; font-weight: 700; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.summary-card, .transcript-card { display: flex; flex-direction: column; }
.result-placeholder { min-height: 120px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 20px; color: var(--muted); background: #fcfaf7; text-align: center; }
.result-placeholder > span { color: var(--primary); font-size: 22px; }
.result-placeholder strong { color: var(--ink); font-size: 12px; }
.result-placeholder p { margin: 0; font-size: 10px; }
.summary-content { flex: 1; padding: 15px 18px; background: #fcfaf7; }
.summary-content ul { display: grid; gap: 10px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.summary-content li::marker { color: var(--primary); }
.transcript-time { color: var(--muted); font-size: 11px; font-weight: 750; }
.transcript-body { flex: 1; min-height: 220px; overflow-y: auto; border: 1px solid #ece4dc; background: #fcfaf7; }
.transcript-placeholder { min-height: 220px; }
.transcript-content { padding: 16px 18px; }
.transcript-content p { display: grid; grid-template-columns: 46px 1fr; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid #ece4dc; color: var(--muted); font-size: 12px; line-height: 1.6; }
.transcript-content p:last-child { border-bottom: 0; }
.transcript-content time { color: var(--primary); font-size: 10px; font-weight: 800; }
.transcript-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.transcript-actions .button { min-height: 34px; padding: 0 11px; border-radius: 7px; font-size: 11px; }
@media (max-width: 900px) { .record-grid { grid-template-columns: 1fr; } .record-sidebar, .record-results { grid-template-rows: auto; } }
@media (max-width: 620px) { .record-main { width: min(100% - 28px, 640px); padding-top: 36px; } .record-card { padding: 17px; } .main-nav { display: none; } }
.summary-content, .transcript-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
#audio-file-status { white-space: normal; overflow-wrap: anywhere; }
.record-progress-panel { min-width: 0; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.record-progress-panel .card-heading { flex-wrap: wrap; gap: 8px; }
.record-progress-panel h3 { margin: 0; font-size: 14px; letter-spacing: -.025em; }
#record-elapsed { color: var(--muted); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#record-progress { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); font-size: 12px; line-height: 1.6; }
#record-progress strong { display: block; }
#record-progress p { margin: 6px 0 0; }
#record-progress[data-phase="error"] { border-color: var(--danger); }
#record-progress[data-phase="error"] strong { color: var(--danger); }
#record-progress[data-phase="complete"] strong { color: #426a4c; }
.record-progress-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.record-progress-steps li { padding: 5px 7px; border-radius: 5px; color: var(--muted); background: var(--surface-soft); font-size: 11px; }
.record-progress-steps li[data-state="active"] { color: white; background: var(--primary); font-weight: 750; }
.record-progress-steps li[data-state="done"] { color: #426a4c; background: #e4efe4; }
.record-progress-steps li[data-state="error"] { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
