/* Audio Monitor: mint website accent, blue FRAME-inspired phone controls. */
body { background: radial-gradient(ellipse at 85% 3%, rgb(112 224 178 / 7%), transparent 24%), #06151e; }
h1 > span, main .eyebrow { color: var(--tool-accent); }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; padding-block: 44px 64px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0 0 35px; list-style: none; font: 11px/1.6 var(--mono); color: var(--muted); }
.breadcrumb li { display: flex; gap: 12px; }
.breadcrumb [aria-current] { color: var(--tool-accent); }
.breadcrumb a:hover { color: var(--ice); }
h1 { font-size: clamp(42px, 4.6vw, 65px); }
.hero-copy > p:first-child { margin: 0 0 27px; max-width: 475px; color: #c1d5df; font-size: 17px; line-height: 1.8; }
.hero-note { margin: 23px 0 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading > p { max-width: 355px; color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
strong { font-weight: 650; }
.small-note, .demo-note { color: var(--muted); font-size: 11px; line-height: 1.85; margin: 19px 0 0; }
code { color: #c7dfeb; font: .94em/1.8 var(--mono); overflow-wrap: anywhere; }
/* Working example: phone listener and the operator's separate source settings. */
#audio-demo { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.1fr); gap: 0 65px; padding: 38px 48px 0; border: 1px solid #33554f; border-top: 3px solid var(--tool-accent); border-radius: 7px; background: radial-gradient(ellipse at 20% 45%, rgb(112 224 178 / 6%), transparent 55%), #0a1c25; }
.demo-controls { align-self: center; min-width: 0; padding-block: 20px 35px; }
.demo-intro > .eyebrow { font-size: 10px; margin-bottom: 15px; }
.demo-intro > h3 { font-size: 29px; line-height: 1.25; }
.demo-intro > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.8; margin-block: 19px 26px; }
.source-preview { padding: 20px; border: 1px solid var(--line); border-radius: 4px; background: #091923; }
.channel-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.channel-heading h3 { font-size: 17px; }
.channel-heading > span { color: #aacbc0; font: 10px/1.7 var(--mono); }
.source-preview > p { margin: 10px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.delay-channel { margin-top: 17px; }
.delay-channel > div { display: flex; gap: 20px; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 11px; margin-bottom: 9px; }
.delay-channel strong { font: 12px/1.6 var(--mono); color: var(--tool-accent); }
progress { display: block; width: 100%; height: 8px; appearance: none; border: 0; border-radius: 3px; background: #27443f; color: var(--tool-accent); overflow: hidden; }
progress::-webkit-progress-bar { background: #27443f; border-radius: 3px; }
progress::-webkit-progress-value { background: var(--tool-accent); }
progress::-moz-progress-bar { background: var(--tool-accent); }
.delay-channel progress { height: 3px; }
input[type="range"] { min-width: 0; height: 30px; padding: 0; margin: 0; accent-color: var(--tool-accent); cursor: pointer; }
select { display: block; width: 100%; min-height: 46px; padding: 10px; font-family: inherit; font-size: 12px; line-height: 1.5; border: 1px solid #4c7165; border-radius: 4px; color: var(--ice); background: #081c25; }
.demo-settings { padding-top: 25px; }
.demo-settings > label { display: block; margin-bottom: 10px; font-size: 12px; color: #d3e8e0; }
.field-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 10px 0 22px; }
.demo-settings > .listeners-label { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 5px; }
.listeners-label output { color: var(--tool-accent); font-family: var(--mono); }
#audio-listeners { width: 100%; }
.data-estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 0; padding-top: 17px; border-top: 1px solid var(--line); }
.data-estimate dt { color: var(--muted); font-size: 10px; line-height: 1.7; }
.data-estimate dd { margin: 8px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -.025em; color: var(--tool-accent); font-variant-numeric: tabular-nums; }
.music-credit { margin-top: 26px; padding-top: 21px; border-top: 1px solid var(--line); font-size: 11px; color: #c8dcd5; line-height: 1.9; }
.music-credit p { margin: 0; }
.music-credit a { display: inline-flex; align-items: center; gap: 5px; color: var(--tool-accent); text-decoration: underline; text-underline-offset: 3px; }
.music-credit .icon { width: 12px; height: 12px; }
.music-credit small { display: block; margin-top: 9px; font-size: 10px; color: var(--muted); }
.phone-preview { min-width: 0; width: 100%; max-width: 374px; justify-self: center; }
.phone-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 12px; color: var(--tool-accent); font: 9px/1.7 var(--mono); margin: 0 0 17px; }
.phone-label span { color: var(--muted); }
.phone-frame { position: relative; padding: 0 9px; border: 2px solid #617570; border-radius: 42px; background: #070e13; box-shadow: 0 0 0 3px #1b2b30, 0 20px 40px rgb(0 0 0 / 22%); }
.phone-frame::before { content: ""; position: absolute; top: 120px; left: -5px; width: 3px; height: 60px; border-radius: 2px; background: #617570; }
.phone-frame::after { content: ""; position: absolute; top: 145px; right: -5px; width: 3px; height: 40px; border-radius: 2px; background: #617570; }
.phone-hardware { height: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.phone-hardware span { width: 47px; height: 4px; background: #344048; border-radius: 9px; }
.phone-hardware i { width: 6px; height: 6px; border-radius: 50%; background: #243841; }
.phone-screen { border: 1px solid #1b3442; border-radius: 24px; background: #08121c; overflow: hidden; color: #e9f0f6; font-family: Arial, sans-serif; }
.phone-brand { display: flex; align-items: center; gap: 9px; padding: 16px 14px; background: #0e1b28; border-bottom: 1px solid #203746; }
.phone-brand strong { display: block; font-size: 14px; letter-spacing: 0; }
.phone-brand span { display: block; font-size: 10px; color: #99b0c3; margin-top: 3px; }
.phone-brand > .icon { margin-left: auto; width: 18px; color: #2cb4fb; }
.phone-content { padding: 17px 13px 14px; }
.phone-source { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 17px; }
.phone-source h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.phone-source p { color: #9bb3c7; font-size: 11px; margin: 7px 0 0; }
#audio-phone-state { border: 1px solid #2c4659; border-radius: 16px; padding: 7px 8px; color: #b9ccda; font-size: 10px; }
#audio-demo[data-state="playing"] #audio-phone-state { border-color: #3d886f; color: #81e4b7; }
.phone-player { padding: 10px; border: 1px solid #243d50; border-radius: 7px; background: #122536; }
#audio-play { width: 100%; min-height: 48px; border: 1px solid #2996ca; border-radius: 5px; background: linear-gradient(#5bcaff, #1baaf1); color: #062035; font-weight: 700; font-size: 16px; }
#audio-play:hover { background: #73d5ff; }
.phone-playback { display: flex; align-items: stretch; gap: 9px; margin-top: 9px; }
.phone-playback > div { flex: 1; padding: 9px 10px; border-left: 3px solid #28b4f5; background: #0c324a; }
.phone-playback span { display: block; color: #9bb6ca; font-size: 10px; margin-bottom: 4px; }
.phone-playback strong { font-size: 13px; }
#audio-mute { min-height: 44px; min-width: 59px; border: 1px solid #335267; border-radius: 4px; padding: 8px; color: #e0edf6; background: #0d2030; font-size: 11px; }
#audio-mute[aria-pressed="true"] { border-color: #43c4fc; color: #75d4ff; }
#audio-listener-level { margin-top: 10px; height: 3px; background: #203e54; color: #44bff7; }
#audio-listener-level::-webkit-progress-bar { background: #203e54; }
#audio-listener-level::-webkit-progress-value { background: #44bff7; }
#audio-listener-level::-moz-progress-bar { background: #44bff7; }
.buffer-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-block: 18px 9px; font-size: 10px; color: #b6cbdc; }
.buffer-heading > span { font-size: 9px; }
.buffer-track { position: relative; height: 24px; border: 1px solid #38566b; border-radius: 4px; overflow: hidden; background: #07121b; }
.buffer-track::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(to right, transparent 0 calc(2.5% - 1px), rgb(187 226 255 / 17%) calc(2.5% - 1px) 2.5%); background-size: 200% 100%; background-position-x: calc(0% - var(--buffer-offset, 0%)); pointer-events: none; }
.buffer-fill { position: absolute; top: 3px; bottom: 3px; left: 100%; width: 0; background: #24a6dd; }
.buffer-playhead, .buffer-target, .buffer-live { position: absolute; top: 0; bottom: 0; z-index: 1; transform: translateX(-100%); }
.buffer-playhead { left: 100%; width: 3px; background: #fff; box-shadow: 0 0 5px rgb(255 255 255 / 30%); }
.buffer-target { left: 92.5%; width: 6px; height: 7px; bottom: auto; background: #ffc16b; clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateX(-50%); z-index: 2; }
.buffer-live { left: 100%; width: 2px; background: #ff8293; }
.buffer-scale { display: flex; justify-content: space-between; color: #9bb4c8; font-size: 9px; margin-top: 7px; }
.buffer-scale span:nth-child(2) { color: #ffce82; }
.buffer-scale span:last-child { color: #ffa4b0; }
.buffer-key { margin: 10px 0 15px; color: #a7c3d6; font-size: 9px; line-height: 1.6; }
.volume-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; color: #b6cad9; font-size: 11px; }
.volume-label input { width: 100%; accent-color: #35b9f5; }
.phone-select-label { display: block; margin: 20px 0 8px; font-size: 11px; font-weight: 700; color: #b1c5d6; }
.phone-screen select { font-family: Arial, sans-serif; border-color: #304e64; background: #07141f; padding-inline: 8px; font-size: 11px; }
.phone-field-note { font-size: 10px; line-height: 1.7; color: #a1b9cc; margin: 9px 0 19px; }
.phone-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; }
.phone-stats > div { padding: 10px 7px; border: 1px solid #233d50; border-radius: 4px; background: #132535; }
.phone-stats dt { font-size: 9px; line-height: 1.5; color: #a0b9cd; }
.phone-stats dd { font-size: 13px; font-weight: 700; margin: 7px 0 0; font-variant-numeric: tabular-nums; }
.phone-quality { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; font-size: 10px; color: #afc7da; }
.phone-quality strong { color: #e1edf6; }
.phone-simulation { padding-top: 12px; border-top: 1px solid #253b4b; margin: 14px 0 0; color: #a6c2d5; font-size: 10px; line-height: 1.7; }
.phone-home { width: 88px; height: 4px; border-radius: 5px; margin: 13px auto; background: #78858d; }
.phone-caption { text-align: center; font: 10px/1.9 var(--mono); color: var(--muted); margin: 23px 0 30px; }
.demo-feedback { grid-column: 1 / -1; padding: 20px 0; border-top: 1px solid var(--line); color: #c6e3d7; font: 11px/1.8 var(--mono); }
.demo-feedback p { margin: 0; }
#audio-demo-error { color: #ffc0b4; margin-top: 9px; }
.demo-feedback noscript { color: var(--gold); }
#audio-demo :disabled { opacity: .55; cursor: default; }
.latency-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; margin-top: 30px; }
.latency-options article { border-top: 2px solid var(--tool-accent); padding-top: 19px; }
.latency-options article > span { color: var(--tool-accent); font: 9px/1.7 var(--mono); }
.latency-options h3 { font-size: 28px; margin-top: 12px; line-height: 1.1; font-weight: 550; }
.latency-options h3 small { font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.latency-options p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 13px 0 0; }
/* Three reference captures: create, manage, capture. */
.capture { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #0b202c; }
.capture-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); font: 10px/1.6 var(--mono); color: var(--muted); }
.capture-topline > span:first-child { color: var(--tool-accent); }
.capture > a { display: block; }
.capture > a:focus-visible { outline-offset: -4px; }
.capture img { width: 100%; height: auto; }
.capture figcaption { display: flex; flex-wrap: wrap; gap: 9px 20px; justify-content: space-between; align-items: center; margin: 0; padding: 15px 18px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.8; color: var(--muted); }
.capture figcaption > span { display: inline-flex; align-items: center; gap: 8px; color: var(--tool-accent); font-size: 10px; white-space: nowrap; }
.capture figcaption .icon { width: 12px; height: 12px; }
.source-section { margin-top: 55px; }
.source-section, .sources-section, .capture-section { border-top: 1px solid var(--line); }
.portal-path { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding: 17px 0 30px; color: var(--tool-accent); font: 11px/1.7 var(--mono); }
.portal-path > span:first-child { color: var(--tool-accent); }
.portal-path .icon { width: 17px; height: 17px; }
.source-settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: start; }
.feature-copy > h3 { font-size: 27px; line-height: 1.25; }
.feature-copy > p:not(.small-note) { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 19px 0 0; }
.feature-copy strong { color: #d5e7df; }
.source-settings-list { margin: 24px 0 0; display: grid; gap: 19px; }
.source-settings-list dt { color: var(--tool-accent); font-size: 13px; font-weight: 600; }
.source-settings-list dd { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.source-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0; margin: 30px 0; list-style: none; }
.source-actions li > span { display: block; color: var(--tool-accent); font: 10px/1.7 var(--mono); margin-bottom: 13px; }
.source-actions p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 13px 0 0; }
.access-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 25px; border-top: 1px solid var(--line); }
.access-notes h3 { font-size: 15px; line-height: 1.4; }
.access-notes p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 10px 0 0; }
.capture-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.capture-presets article { padding-top: 20px; border-top: 2px solid var(--tool-accent); }
.capture-presets article > span { font: 10px/1.7 var(--mono); color: var(--tool-accent); }
.capture-presets h3 { margin-top: 12px; font-size: 18px; }
.capture-presets p { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.capture-presets strong { display: block; margin-bottom: 5px; color: #cde6db; font-size: 11px; }
.capture-guidance { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.setup-link { margin-top: 28px; }
.related { padding-bottom: 55px; }
.related > .eyebrow { margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.related-tool { padding: 25px; border: 1px solid var(--line); border-top: 2px solid var(--tool-accent); border-radius: 4px; background: #0a1f2b; }
.related-tool:hover { border-color: var(--tool-accent); background: #102531; }
.related-tool > .icon { color: var(--tool-accent); margin-bottom: 18px; }
.related-tool p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-block: 12px 20px; }
.related-tool > span { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--tool-accent); font-size: 12px; }
.bridge-note { margin: 25px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.bridge-note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) {
  .hero { gap: 35px; }
  #audio-demo { gap: 0 35px; padding: 28px 28px 0; }
  .source-settings-row { gap: 35px; }
  .demo-intro > h3 { font-size: 26px; }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 27px; padding-bottom: 45px; }
  .hero-copy > p:first-child { max-width: 610px; font-size: 16px; }
  .section-heading { flex-direction: column; align-items: start; gap: 17px; }
  .section-heading > p { max-width: 600px; }
  #audio-demo { grid-template-columns: 1fr; }
  .demo-controls { max-width: 560px; justify-self: center; padding-top: 10px; }
  .source-settings-row, .capture-guidance { grid-template-columns: 1fr; gap: 28px; }
  .source-settings-row > .capture { width: min(600px, 100%); justify-self: center; }
  .latency-options { grid-template-columns: 1fr 1fr; }
  .capture-presets, .source-actions { gap: 20px; }
  .related-grid { gap: 12px; }
  .related-tool { padding: 20px; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(38px, 8.6vw, 53px); }
  .hero { padding-top: 28px; }
  .breadcrumb ol { font-size: 10px; gap: 8px; margin-bottom: 25px; }
  .breadcrumb li { gap: 8px; }
  #audio-demo { padding: 25px 16px 0; }
  .phone-frame { padding-inline: 7px; border-radius: 35px; }
  .phone-screen { border-radius: 21px; }
  .phone-content { padding-inline: 10px; }
  .phone-player { padding: 9px; }
  .phone-brand { padding-inline: 10px; }
  .phone-label { font-size: 8px; }
  .phone-screen select { font-size: 10px; padding-inline: 5px; }
  .phone-stats { gap: 5px; }
  .phone-stats > div { padding-inline: 5px; }
  .phone-stats dt { font-size: 8px; }
  .buffer-key { font-size: 8px; }
  .demo-controls { padding-block: 15px 25px; }
  .demo-intro > h3 { font-size: 25px; }
  .demo-intro > p:last-child { font-size: 13px; }
  .data-estimate { gap: 12px; }
  .demo-feedback { font-size: 10px; }
  .capture-topline { padding: 12px 14px; font-size: 9px; }
  .capture figcaption { padding: 13px 14px; font-size: 10px; }
  .latency-options { gap: 23px 18px; }
  .latency-options h3 { font-size: 26px; }
  .latency-options h3 small { display: block; margin-top: 7px; }
  .latency-options p { font-size: 11px; }
  .latency-options article > span { font-size: 8px; }
  .portal-path { gap: 10px; font-size: 10px; padding-block: 10px 25px; }
  .feature-copy > h3 { font-size: 25px; }
  .capture-presets, .source-actions, .access-notes, .related-grid { grid-template-columns: 1fr; }
  .access-notes { gap: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .buffer-track::after { background-position-x: 0; }
}
@media (forced-colors: active) {
  #audio-demo, .phone-frame, .phone-player, .capture { border-color: CanvasText; }
  .buffer-fill { background: Highlight; forced-color-adjust: none; }
  .buffer-playhead, .buffer-target, .buffer-live { forced-color-adjust: none; }
  #audio-mute[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -4px; }
  progress { appearance: auto; }
}
