.recording-workspace { scroll-margin-top: 24px; }
.recording-workspace [hidden] { display: none !important; }
.recording-workspace > .workspace-card-head { align-items: flex-start; }
.compact-row { margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.recorder-notice,
.integration-note { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 14px 16px; border: 1px solid #dbe6e2; border-radius: 16px; background: #f5f8f6; }
.recorder-notice > span,
.integration-note > span { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e6f1ec; color: #286f5d; font-weight: 600; }
.recorder-notice p,
.integration-note p { display: grid; gap: 2px; flex: 1; margin: 0; }
.recorder-notice small,
.integration-note small { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.recorder-console { margin-top: 20px; padding: clamp(18px, 3vw, 28px); border: 1px solid #d9e2df; border-radius: 22px; background: linear-gradient(145deg, #fff 0%, #f6f8f6 100%); }
.recorder-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 14px; }
.recorder-consent { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; background: #f5efe0; color: #594b2d; font-size: .85rem; line-height: 1.5; }
.recorder-live { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 150px; margin: 22px 0; padding: 22px; border-radius: 18px; color: #f8f4e8; background: #003746; }
.recorder-status { display: grid; gap: 3px; min-width: 210px; }
.recorder-live small { color: #b8cbcf; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.recorder-live strong { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.05; }
.recorder-live span { color: #c7d4d6; font-size: .82rem; }
.mic-level { display: grid; gap: 6px; width: min(210px, 28%); margin-left: auto; }
.mic-level > span { display: block; height: 8px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.14); }
.mic-level > span > i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #efb83f 0%, #72c4a8 100%); transition: width .12s linear; }
.mic-level small { color: #c7d4d6; font-size: .68rem; line-height: 1.35; text-align: right; }
.recorder-orb { display: flex; align-items: center; gap: 5px; width: 96px; height: 96px; justify-content: center; border: 1px solid rgba(239,184,63,.34); border-radius: 50%; background: rgba(255,255,255,.04); }
.recorder-orb i { width: 5px; height: 20px; border-radius: 8px; background: #efb83f; opacity: .75; transform-origin: center; }
.recorder-orb i:nth-child(2), .recorder-orb i:nth-child(4) { height: 38px; }
.recorder-orb i:nth-child(3) { height: 56px; }
.recorder-live.is-recording .recorder-orb i { animation: recorder-wave .9s ease-in-out infinite alternate; }
.recorder-live.is-recording .recorder-orb i:nth-child(2) { animation-delay: -.25s; }
.recorder-live.is-recording .recorder-orb i:nth-child(3) { animation-delay: -.55s; }
.recorder-live.is-recording .recorder-orb i:nth-child(4) { animation-delay: -.35s; }
.recorder-live.is-paused .recorder-orb { opacity: .55; }
@keyframes recorder-wave { from { transform: scaleY(.38); } to { transform: scaleY(1); } }
.recorder-console audio { width: 100%; height: 44px; margin-bottom: 14px; }
.recorder-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.recording-start { background: #efb83f; border-color: #efb83f; color: #003746; }
.recording-stop { border-color: #d8a5a0; color: #9b3d35; }
.recorder-progress { position: relative; height: 5px; margin-top: 16px; overflow: hidden; border-radius: 5px; background: #dfe8e5; }
.recorder-progress span { position: absolute; inset: 0 auto 0 0; width: 35%; border-radius: inherit; background: #efb83f; animation: recorder-progress 1.15s ease-in-out infinite alternate; }
@keyframes recorder-progress { to { transform: translateX(190%); } }
.recorder-message { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: .84rem; }
.recorder-message.error { color: #a24238; }
.recorder-message.success { color: #286f5d; }
.recordings-history { margin-top: 30px; border-top: 1px solid #e1e7e4; padding-top: 24px; }
.recordings-history > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.recordings-history > header h3 { margin: 4px 0 0; font-size: 1.35rem; font-weight: 450; }
.recordings-history > header > span { color: var(--muted); font-size: .82rem; }
.recording-entry { margin-top: 14px; padding: clamp(16px, 2.4vw, 24px); border: 1px solid #dce4e1; border-radius: 18px; background: #fff; }
.recording-entry > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.recording-entry > header > div { display: flex; align-items: center; gap: 12px; }
.recording-entry > header p { display: grid; gap: 3px; margin: 0; }
.recording-entry > header strong { font-size: 1rem; font-weight: 560; }
.recording-entry > header small { color: var(--muted); font-size: .78rem; }
.recording-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #9a6e16; background: #f8edce; }
.recording-entry.failed { border-color: #ead1cd; }
.stored-audio { display: grid; grid-template-columns: minmax(150px, .32fr) minmax(240px, 1fr); align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: 13px; background: #f5f8f6; }
.stored-audio > span { color: #38545b; font-size: .78rem; font-weight: 560; }
.stored-audio audio { width: 100%; height: 38px; }
.compact-alert { margin: 14px 0 0; padding: 10px 13px; font-size: .82rem; }
.transcript-editor { margin-top: 18px; }
.transcript-editor > label { display: block; margin-bottom: 7px; color: #38545b; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.transcript-editor textarea { min-height: 230px; font-family: inherit; line-height: 1.65; resize: vertical; }
.transcript-editor .button-row { margin-top: 10px; }
.analysis-panel { margin-top: 18px; padding: 17px; border-radius: 15px; background: #f2f6f4; }
.analysis-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.analysis-panel h4 { margin: 2px 0 0; font-size: 1rem; font-weight: 550; }
.ai-analysis-result { margin-top: 14px; padding: 16px; border-left: 3px solid #efb83f; border-radius: 4px 12px 12px 4px; background: #fff; }
.ai-analysis-result header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ai-analysis-result time { color: var(--muted); font-size: .75rem; }
.ai-analysis-result > div { color: #3e565d; font-size: .88rem; line-height: 1.65; }
.recording-waiting { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; padding: 14px; border-radius: 13px; background: #f5f8f6; }
.recording-waiting p { display: grid; gap: 3px; margin: 0; }
.recording-waiting span { color: var(--muted); font-size: .8rem; }
.privacy-note { margin: 14px 0 0; color: #397361; font-size: .79rem; }
.recording-delete { margin-top: 13px; padding-top: 12px; border-top: 1px solid #edf0ef; text-align: right; }
.recording-delete button { padding: 0; border: 0; color: #9b5b55; background: none; font: inherit; font-size: .75rem; cursor: pointer; }
.transcription-settings { margin-bottom: 22px; padding: clamp(20px, 3vw, 30px); scroll-margin-top: 24px; }
.settings-form { margin-top: 20px; }
.danger-check { color: #9b4d45; }
.ai-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin-bottom: 22px; }
.ai-flow > article { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px 17px; border: 1px solid #dce4e1; border-radius: 15px; background: #fff; }
.ai-flow > article.featured { border-color: #0a5160; color: #fff; background: #003746; }
.ai-flow > article > span { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: #8a6419; background: #f7e9c6; font-size: .74rem; font-weight: 650; }
.ai-flow > article p { display: grid; gap: 2px; min-width: 0; margin: 0; }
.ai-flow > article strong { font-size: .86rem; font-weight: 570; }
.ai-flow > article small { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.ai-flow > article.featured small { color: rgba(255,255,255,.64); }
.ai-flow > i { align-self: center; color: #9aabaa; font-style: normal; }
.claude-settings { border-top: 4px solid #efb83f; }
.claude-settings .ai-security-note { margin-top: 18px; }
.provider-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; border: 0; }
.provider-picker legend { margin-bottom: 10px; color: #38545b; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.provider-option { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 104px; padding: 16px; border: 1px solid #d9e3df; border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.provider-option:has(input:checked) { border-color: #0a5160; background: #f0f7f5; box-shadow: inset 0 0 0 1px #0a5160; }
.provider-option input { margin-top: 3px; accent-color: #0a5160; }
.provider-option > span { display: grid; gap: 4px; }
.provider-option strong { color: #073746; font-size: .92rem; font-weight: 600; }
.provider-option small { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.provider-option em { justify-self: start; margin-top: 5px; padding: 4px 8px; border-radius: 20px; color: #7b5812; background: #f7e7bd; font-size: .67rem; font-style: normal; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
.ai-provider-form:has(input[name="provider"][value="openai"]:checked) .provider-anthropic { display: none !important; }
.ai-provider-form:has(input[name="provider"][value="anthropic"]:checked) .provider-openai { display: none !important; }
.provider-key-note { display: flex; align-items: center; gap: 13px; padding: 14px 15px; border: 1px solid #d7e5e0; border-radius: 14px; background: #f2f8f5; }
.provider-key-note > span { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: #7d5912; background: #f5dfaa; font-size: .72rem; font-weight: 700; }
.provider-key-note p { display: grid; flex: 1; gap: 2px; margin: 0; }
.provider-key-note small { color: var(--muted); font-size: .78rem; line-height: 1.45; }

@media (max-width: 760px) {
  .recorder-fields { grid-template-columns: 1fr; }
  .recorder-live { justify-content: flex-start; min-height: 130px; }
  .recorder-orb { width: 74px; height: 74px; }
  .recorder-status { min-width: 0; }
  .mic-level { width: 100%; margin: 10px 0 0; }
  .mic-level small { text-align: left; }
  .stored-audio { grid-template-columns: 1fr; }
  .recording-entry > header,
  .analysis-panel > header,
  .recording-waiting,
  .recorder-notice,
  .integration-note { align-items: flex-start; flex-direction: column; }
  .recording-entry > header .mini-pill { margin-left: 54px; }
  .recorder-actions > button { width: 100%; }
  .ai-flow { grid-template-columns: 1fr; }
  .ai-flow > i { justify-self: center; transform: rotate(90deg); }
  .provider-picker { grid-template-columns: 1fr; }
  .provider-key-note { align-items: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .recorder-orb i,
  .recorder-progress span { animation: none !important; }
}
