.record-page { background: #f5f8fa; }
.record-hero { position: relative; min-height: 165px; overflow: hidden; }
.record-hero-image, .record-hero-shade { position: absolute; inset: 0; }
.record-hero-image { background: url("assets/coast-brittany.jpg") center 58% / cover; }
.record-hero-shade { background: linear-gradient(90deg, rgba(255,255,255,.99) 8%, rgba(255,255,255,.9) 48%, rgba(255,255,255,.12)); }
.record-heading { position: relative; display: flex; min-height: 165px; align-items: center; gap: 22px; }
.record-title-icon { display: grid; width: 76px; height: 76px; flex: 0 0 76px; place-items: center; border-radius: 18px; color: white; background: linear-gradient(145deg, #1596be, #075e7c); }
.record-title-icon svg { width: 43px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.record-heading h1 { margin: 0 0 6px; font-size: 36px; letter-spacing: -1.4px; }
.record-heading p { margin: 1px 0; font-size: 14px; }
.record-workspace { padding-block: 16px 26px; }
.record-language-picker { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 0; border: 0; }
.record-language-picker legend { width: 100%; margin-bottom: 5px; color: #30485a; font-size: 12px; font-weight: 800; }
.record-language-option { position: relative; display: flex; min-width: 220px; align-items: center; gap: 11px; padding: 9px 13px; border: 1px solid #d7e4ea; border-radius: 10px; background: white; cursor: pointer; }
.record-language-option:has(input:checked) { border-color: #1688b1; background: #edf8fc; box-shadow: 0 0 0 2px rgba(21,150,190,.1); }
.record-language-option input { position: absolute; opacity: 0; pointer-events: none; }
.record-language-option img { width: 40px; height: 25px; border: 1px solid rgba(13,27,42,.15); border-radius: 3px; object-fit: cover; }
.record-language-option span { display: grid; line-height: 1.25; }.record-language-option strong { font-size: 12px; }.record-language-option small { color: #65798a; font-size: 9px; }
.record-language-option i { width: 16px; height: 16px; margin-left: auto; border: 1px solid #a9bbc5; border-radius: 50%; }
.record-language-option:has(input:checked) i { border: 5px solid #087fa8; }
.record-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.record-pills span { padding: 8px 13px; border: 1px solid #d8e4e9; border-radius: 8px; background: white; font-size: 12px; }
.record-grid { display: grid; grid-template-columns: 370px 1fr; gap: 12px; }
.record-card { border: 1px solid #dce7eb; border-radius: 13px; background: rgba(255,255,255,.98); box-shadow: 0 10px 30px rgba(13,27,42,.05); }
.record-card h2 { margin: 0; font-size: 14px; }
.capture-card { padding: 14px; }
.capture-box { margin-top: 12px; padding: 12px; border: 1px solid #e1e9ed; border-radius: 10px; text-align: center; }
.capture-status { display: flex; justify-content: space-between; font-size: 11px; }
.capture-status span { display: flex; align-items: center; gap: 7px; }
#record-dot, #live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a9bac3; }
#record-dot.active { background: #ef4444; } #live-dot.active { background: #1688b1; box-shadow: 0 0 0 4px rgba(22,136,177,.1); }
.waveform { display: flex; height: 62px; align-items: center; gap: 2px; margin: 9px 0; overflow: hidden; }
.waveform i { width: 3px; height: var(--height); flex: 1; border-radius: 4px; background: #1688b1; transform: scaleY(.28); transition: transform .2s; }
.record-toggle.recording ~ * .waveform i, .recording-page .waveform i { transform: scaleY(1); }
.capture-box:has(.record-toggle.recording) .waveform i { transform: scaleY(1); animation: pulse-wave .8s ease-in-out infinite alternate; animation-delay: calc(var(--height) * -10ms); }
@keyframes pulse-wave { to { transform: scaleY(.35); } }
.record-toggle { display: grid; width: 58px; height: 58px; margin: auto; place-items: center; border: 0; border-radius: 50%; color: white; background: linear-gradient(145deg, #1596be, #075e7c); cursor: pointer; font-size: 21px; }
.record-toggle.recording { background: linear-gradient(145deg, #ef5350, #c62828); }
#record-hint { display: block; margin-top: 5px; color: #617386; }
#audio-preview { width: 100%; height: 35px; margin-top: 10px; }
.record-settings h3 { margin: 12px 0 7px; font-size: 12px; }
.record-settings label { display: grid; grid-template-columns: 120px 1fr; align-items: center; min-height: 38px; padding: 7px 10px; border: 1px solid #dfe8ec; border-radius: 8px; font-size: 10px; }
.record-settings label + label { margin-top: 6px; }
.record-settings select { min-width: 0; border: 0; color: #506478; background: transparent; font: inherit; }
.record-settings strong { color: #506478; font-weight: 500; }
.good-to-know { display: grid; gap: 4px; margin-top: 8px; padding: 11px 14px; border: 1px solid #cfe3ed; border-radius: 8px; color: #17627e; background: #f0f8fc; font-size: 10px; }
.transcriptions { display: grid; gap: 12px; }
.record-language-welsh #primary-transcript-card { display: none; }
.transcript-card { padding: 14px; }
.transcript-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.transcript-card header h2 span { margin-left: 5px; padding: 4px 8px; border-radius: 999px; color: #075e7c; background: #e5f3f9; font-size: 9px; }
.transcript-card header > div { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.transcript-card button { padding: 7px 11px; border: 1px solid #d7e3e8; border-radius: 7px; color: var(--ink); background: white; cursor: pointer; font: inherit; font-size: 10px; font-weight: 750; }
.transcript-card textarea { width: 100%; height: 145px; margin-top: 10px; padding: 14px; resize: vertical; border: 1px solid #d7e4e8; border-radius: 8px; color: #102132; background: #f7fbfc; font: inherit; font-size: 13px; line-height: 1.7; }
.transcript-card footer { color: #66798a; font-size: 10px; }
.whisper-card header h2 span { color: #6425ce; background: #eee7ff; }
.transcript-card .whisper-button { color: white; border-color: #6d28d9; background: #6d28d9; }
button:disabled { opacity: .48; cursor: not-allowed; }
.whisper-card { position: relative; }
.whisper-card textarea { background: #fbf9ff; }
#whisper-placeholder { position: absolute; top: 73px; right: 30px; left: 30px; margin: 0; color: #5c3997; text-align: center; font-size: 12px; pointer-events: none; }
#whisper-placeholder small { color: #68768a; }
.after-recording { margin-top: 12px; padding: 14px; }
.after-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.after-grid article { display: flex; gap: 13px; min-height: 92px; padding: 5px 16px; border-right: 1px solid #e1e8ec; }
.after-grid article:last-child { border: 0; }
.after-grid article > span { color: #087fa8; font-size: 27px; }
.after-grid h3 { margin: 0; font-size: 11px; }.after-grid p { min-height: 31px; margin: 4px 0; color: #617286; font-size: 9px; }
.after-grid button { padding: 6px 10px; border: 1px solid #72b5ce; border-radius: 6px; color: #075e7c; background: white; font-size: 9px; font-weight: 750; }
.record-message { margin: 10px 0 0; color: #617486; font-size: 11px; }.record-message.error { color: #b42318; }
@media (max-width: 900px) { .record-grid { grid-template-columns: 1fr; }.after-grid { grid-template-columns: 1fr 1fr; }.after-grid article:nth-child(2) { border-right: 0; } }
@media (max-width: 600px) { .record-hero-shade { background: rgba(255,255,255,.87); }.record-heading { min-height: 200px; }.record-title-icon { width: 62px; height: 62px; flex-basis: 62px; }.record-heading h1 { font-size: 30px; }.record-pills { display: grid; }.transcript-card header { align-items: flex-start; flex-direction: column; }.transcript-card header > div, .whisper-button { width: 100%; }.after-grid { grid-template-columns: 1fr; }.after-grid article { border-right: 0; border-bottom: 1px solid #e1e8ec; }.record-settings label { grid-template-columns: 100px 1fr; } }
