/* The prints, the recording desk and the finished tape share one listening path. */
.archive-home .photo-board { max-width: 1060px; padding-bottom: clamp(28px, 4vw, 54px); }
.archive-home .photo-paper { background: #fcfbf8; box-shadow: 0 1px 2px #29232733, 3px 11px 19px -6px #26212644; }
.archive-home .photo-caption h2 { gap: .46em; }
.archive-home .photo-caption svg { width: 1.04em; height: 1.04em; padding: .18em; border: 1px solid #d0bdc0; border-radius: 50%; }
.archive-home .photo-caption p { font-size: clamp(.85rem, 1.1vw, .98rem); }
.resume-night { display: flex; align-items: center; gap: .85rem; min-height: 56px; width: fit-content; max-width: 100%; }
.resume-night > svg { width: 17px; flex-shrink: 0; color: var(--accent); }
.resume-night small, .resume-night strong { display: block; }
.resume-night small, .resume-night time { color: var(--muted); font-size: .8rem; }
.resume-night strong { font-weight: 580; overflow-wrap: anywhere; }
.resume-night time { font-variant-numeric: tabular-nums; }
.archive-home .private-shelf:not(:empty) { margin-block: 0 .8rem; }

.aircheck { color: #f7f4ef; background: #171819; }
.sample-surface {
  width: 100%; min-height: 106px; display: grid; grid-template-columns: auto minmax(0,1fr) minmax(64px,15%) auto minmax(120px,26%);
  align-items: center; text-align: left; gap: clamp(10px,1.5vw,22px); padding: 18px clamp(16px,3vw,36px);
  color: inherit; border: 0; border-radius: 0;
  position:relative; isolation:isolate; overflow:hidden; background:#121313;
}
.sample-play { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #bab5ab; border-radius: 50%; background: #f2eee5; color: #282525; }
.sample-play svg { width: 18px; height: 18px; }
.sample-info strong,.sample-info small { display: block; }
.sample-info strong { font-weight: 540; font-size: clamp(1.02rem,1.7vw,1.35rem); letter-spacing: -.035em; line-height: 1.18; }
.sample-info small { color: #ded4c9; font-size: .75rem; margin-bottom: .32rem; }
.sample-wave { width: 100%; height: 23px; fill: #c2b6af; }
.sample-wave .heard { fill: #f2a19e; }
.sample-time,.tape-times,.sleep-remaining { font-variant-numeric: tabular-nums; }
.sample-time { font-size: .86rem; }

.studio-page .composer { max-width: 980px; }
.composer-desk { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); align-items: start; gap: clamp(22px,4.8vw,68px); margin: 0; }
.studio-page .composer-photo {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: clamp(380px,41vw,520px); padding: clamp(18px,2.65vw,37px); margin: 0;
  background: #191c1d; color: #fffaf4; border: 0;
}
.studio-page .composer-photo img { position: absolute; z-index: -2; inset:0; height: 100%; width: 100%; aspect-ratio: auto; object-fit: cover; object-position: 34% center; border: 0; outline: 0; border-radius: 0; box-shadow: none; transform: none; }
.podcast-studio .composer-photo img { object-position: 60% center; }
.composer-photo::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(0deg,#0a0b0df7,#0a0b0dba 36%,#0a0b0d25 72%); }
.composer-photo .night-class,.listening-cover .night-class { color: #e5c9c8; font-size: .75rem; text-transform: uppercase; letter-spacing: .13em; }
.studio-page .composer-photo h1 { color: inherit; font-size: clamp(2.35rem,4vw,3.8rem); letter-spacing: -.063em; line-height: 1; text-wrap: balance; }
.studio-page .composer-photo p { color: #eee7df; line-height: 1.45; max-width: 33ch; }
.studio-wrap #night-form { width: 100%; max-width: none; gap: .8rem; align-content: start; }
#night-form > label { font-size: 1.18rem; letter-spacing: -.03em; }
#night-form :is(select,textarea) { border-radius: 5px; border-color: #c4c1be; }
#night-form textarea { padding: .8rem; line-height: 1.5; }
#night-form select,.play-options select { appearance: auto; background-image: none; }
.idea-chips button { min-height:44px; }
.idea-chips button[aria-pressed="true"] { background: #eee2e3; border-color: #97616b; }
.session-settings { border-block: 1px solid var(--line); margin: .35rem 0 0; }
.session-settings > summary { cursor: pointer; display: grid; grid-template-columns: 1fr auto; padding: .9rem 0; gap: .25rem .75rem; align-items: center; }
.session-settings > summary::-webkit-details-marker { display:none; }
.session-settings summary > span { font-weight: 570; }
.session-settings summary small { grid-column: 1; color: var(--muted); font-size: .85rem; }
.session-settings summary::after { content:""; grid-area:1/2/3/3; height:8px; width:8px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin-right:6px; }
.session-settings[open] summary::after { transform:rotate(225deg); }
.session-options { display:grid; gap:.75rem; padding: 0 0 1.1rem; }
.session-options .audition audio { width:100%; margin-top:.5rem; }
#night-form #make-night { width: 100%; min-height: 50px; justify-content: center; background: #592633; font-weight: 580; }
#night-form #make-night:hover { background: #401924; }
#studio-status:empty { display:none; }
#engine-note { line-height: 1.46; }

.studio-page.listening-room .studio-wrap { max-width: 740px; }
.listening-cover {
  display: flex; align-items: end; position: relative; margin: 0; padding: clamp(18px,3vw,32px);
  min-height: clamp(160px,19vw,245px); color: #faf5ed; background:#121313; isolation:isolate; overflow:hidden;
}
.listening-cover h1 { color: inherit; max-width: 19ch; overflow-wrap: anywhere; text-wrap: balance; font-size: clamp(1.85rem,4vw,3.4rem); line-height: 1.02; font-weight: 560; letter-spacing: -.055em; margin: .55rem 0; }
.listening-cover p { font-size: .85rem; color: #ded8cf; }
.listening-room .night-player { padding: clamp(16px,3vw,30px); border: 1px solid var(--line); border-top: 0; border-radius: 0; }
.listening-room .night-player audio:not([controls]) { display: none; }
.listening-room .night-player #prepare-audio { min-height: 48px; padding-inline: 1.1rem; }
.tape-transport { display: flex; flex-direction: row; align-items: center; gap: clamp(12px,2vw,24px); margin: .8rem 0 1.1rem; }
.tape-buttons { display:flex; gap:4px; align-items:center; }
.tape-buttons button { border:0; background:transparent; color:var(--ink); min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
.tape-buttons #toggle-tape { background:var(--ink); color:var(--soft); border-radius:50%; width:58px; height:58px; }
#toggle-tape svg { width:23px; height:23px; }
#rewind-tape { flex-direction:column; gap:2px; font-size:.69rem; }
.tape-scrub { flex:1; min-width:0; }
.tape-scrub input { width:100%; height:36px; margin:0; padding:0; cursor:pointer; appearance:none; background:transparent; }
.tape-scrub input::-webkit-slider-runnable-track { height:3px; background:linear-gradient(90deg,var(--accent) var(--played,0%),var(--strong-line) var(--played,0%)); }
.tape-scrub input::-webkit-slider-thumb { appearance:none; width:14px; height:14px; border:0; border-radius:50%; margin-top:-5.5px; background:var(--ink); }
.tape-scrub input::-moz-range-track { height:3px; background:var(--strong-line); }
.tape-scrub input::-moz-range-progress { background:var(--accent); }
.tape-scrub input::-moz-range-thumb { background:var(--ink); border:0; }
.tape-times { display:flex; justify-content:space-between; font-size:.76rem; color:var(--muted); }
.sleep-presets { padding:0; margin:.8rem 0 .55rem; border:0; min-width:0; }
.sleep-presets legend { font-size:.9rem; font-weight:570; margin-bottom:.4rem; }
.sleep-presets > div { display:inline-flex; gap:3px; padding:3px; background:var(--soft); border-radius:8px; vertical-align:middle; }
.sleep-presets label { display:block; position:relative; }
.sleep-presets input { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:pointer; }
.sleep-presets label span { display:grid; place-items:center; min-width:44px; min-height:44px; padding:0 .6rem; cursor:pointer; font-size:.85rem; border:1px solid transparent; border-radius:6px; }
.sleep-presets input:checked + span { background:var(--ink); color:var(--soft); }
.sleep-presets input:focus-visible + span { outline:2px solid var(--accent); outline-offset:1px; }
.sleep-remaining { display:inline-block; font-size:.76rem; margin-inline:.55rem; color:var(--muted); }
.player-footer { display:flex; align-items:baseline; justify-content:space-between; gap:.7rem; border-top:1px solid var(--line); padding-top:.4rem; margin-top:.9rem; }
.audio-tools { flex:1; min-width:0; }
.audio-tools summary { cursor:pointer; width:fit-content; padding:.8rem 0; min-height:44px; font-size:.875rem; }
.listening-room .play-options { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem 1rem; justify-content:flex-start; }
.listening-room .play-options a { display:inline-flex; align-items:center; }
#dim-player { flex-shrink:0; min-height:44px; font-size:.875rem; text-decoration:none; }
#dim-player::after { content:""; width:1.45rem; height:.85rem; border-radius:1rem; border:1px solid var(--strong-line); background:radial-gradient(circle at 28% 50%,var(--muted) 3px,transparent 3.7px); }
#dim-player[aria-pressed="true"]::after { background:radial-gradient(circle at 72% 50%,#19171a 3px,transparent 3.7px),var(--accent); border-color:var(--accent); }
.listening-room .play-options label,.listening-room .play-options a,.listening-room .play-options button { min-height:44px; font-size:.82rem; }
.listening-room .play-options select { width:auto; border:0; background:transparent; color:var(--ink); font-size:.85rem; padding-inline:.2rem; }
#dim-player { display:inline-flex; gap:.35rem; align-items:center; margin-left:auto; }
#dim-player[aria-pressed="true"] { color:var(--accent); }
body.dim-listening :is(#mast,.night-player,.studio-wrap,footer) { background-color:#17171a; }
body.dim-listening .listening-cover .night-class { color:#e5c9c8; }
.listening-room .night-transcript summary,.listening-room .night-sources a { min-height:44px; }
.listening-room .night-sources a { display:inline-flex; align-items:center; }
.listening-room .night-sources a svg { flex-shrink:0; }

@media (max-width:700px) {
  .composer-desk { display:block; }
  .studio-page .composer-photo { min-height:172px; margin-bottom:1.15rem; padding:18px; }
  .studio-page .composer-photo img { object-position:50% 43%; }
  .studio-page .composer-photo h1 { font-size:clamp(1.95rem,7vw,2.6rem); }
  .composer-photo::after { background:linear-gradient(90deg,#090b0de8,#090b0d8c 61%,#090b0d20); }
  .studio-page .composer-photo p { font-size:.88rem; max-width:29ch; }
  .listening-cover { min-height:152px; background-position:66% center; }
}
@media (max-width:640px) {
  .archive-home .photo-board { max-width:450px; padding-top:24px; }
  .archive-home .photo-choice { width:77%; max-width:306px; }
  .archive-home .photo-caption { padding-top:15px; }
  .archive-home .photo-caption p { font-size:.83rem; }
  .sample-surface { min-height:88px; grid-template-columns:auto minmax(0,1fr) auto; padding:14px; gap:10px; }
  .sample-info { max-width:18ch; }
  .sample-wave { display:none; }
  .listening-room .play-options { gap:.2rem .65rem; }
  .tape-buttons #toggle-tape { width:50px; height:50px; }
}
@media (prefers-reduced-motion:no-preference) {
  .sample-surface .sample-play { transition: transform .25s ease-out; }
  .sample-surface:is(:hover,:focus-visible) .sample-play { transform:scale(1.06); }
}

.recorder-art { display:block; position:absolute; z-index:-2; inset:0; width:100%; height:100%; pointer-events:none; }
.sample-surface .recorder-art { left:auto; width:clamp(170px,32%,360px); }
.listening-cover::before,.sample-surface::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; }
.listening-cover::before { background:linear-gradient(90deg,#0a0b0bec 4%,#111115aa 47%,#1515160e); }
.sample-surface::before { background:linear-gradient(90deg,#131414 49%,transparent 79%); }
@media (prefers-reduced-motion:no-preference) {
  .reel-face { transform-origin:0 0; animation:turn-reel 3.8s linear infinite paused; }
  [data-rolling="true"] .reel-face { animation-play-state:running; }
  @keyframes turn-reel { to { transform:rotate(360deg); } }
}
.podcast-setup,.podcast-finder { display:grid; gap:.65rem; min-width:0; }
.podcast-finder { padding-bottom:.95rem; border-bottom:1px solid var(--line); }
#night-form .podcast-finder > label { font-size:1.17rem; font-weight:580; letter-spacing:-.035em; }
.topic-input { display:flex; align-items:center; gap:.55rem; border:1px solid #aca5a6; padding:0 .7rem; border-radius:5px; }
.topic-input:focus-within { outline:2px solid var(--accent); outline-offset:1px; }
.topic-input svg { width:18px; height:18px; flex:none; color:var(--muted); }
#night-form .topic-input input { flex:1; width:0; border:0; min-height:46px; padding:0; outline:0; }
.topic-input input::-webkit-search-cancel-button { -webkit-appearance: none; }
.topic-clear { border:none; background:transparent; color:var(--accent); min-height:44px; }
.topic-shortcuts,.topic-shortcuts details > div { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem .45rem; }
.topic-shortcuts { position:relative; }
.topic-shortcuts button,.topic-shortcuts summary { background:#f6f4f3; color:var(--ink); border:1px solid transparent; padding:.45rem .65rem; cursor:pointer; border-radius:20px; font-size:.82rem; line-height:1.3; }
.topic-shortcuts button[aria-pressed="true"] { color:var(--accent); border-color:#ab7b84; background:#f6eaec; }
.topic-shortcuts summary { background:transparent; color:var(--muted); }
.topic-shortcuts details[open] { flex-basis:100%; }
.topic-shortcuts details > div { margin-top:4px; padding:.55rem 0; }
#topic-results h2 { font-size:.83rem; color:var(--muted); font-weight:550; margin:.8rem 0 .3rem; }
.topic-result { display:flex; align-items:center; justify-content:space-between; gap:.7rem; text-align:start; padding:.75rem .15rem; min-height:56px; width:100%; background:transparent; border:0; border-bottom:1px solid var(--line); color:var(--ink); }
.topic-result:is(:hover,:focus-visible) { background:var(--soft); text-decoration:none; }
.topic-result strong,.topic-result small { display:block; }
.topic-result strong { font-size:1rem; line-height:1.3; font-weight:560; }
.topic-result small,.material-notes small { color:var(--muted); font-size:.74rem; letter-spacing:.025em; }
.topic-result > span:last-child { color:var(--accent); font-size:.82rem; }
.material-notes { font-size:.8rem; line-height:1.5; color:var(--muted); }
.material-notes small { font-weight:600; margin-right:.25rem; }
.material-notes a { text-decoration:underline; text-underline-offset:3px; }
.material-notes:empty { display:none; }
@media (max-width:640px) {
  .sample-surface { padding-right:clamp(66px,19vw,102px); }
  .sample-surface .recorder-art { width:44%; }
  .sample-surface::before { background:linear-gradient(90deg,#131414 44%,#111112aa 66%,transparent 95%); }
  .topic-shortcuts button,.topic-shortcuts summary { min-height:40px; display:inline-flex; align-items:center; }
  .topic-shortcuts summary { text-decoration:underline; text-underline-offset:3px; }
}

.case-match { padding: .85rem 0 1rem; border-top: 1px solid #ab9f80; }
.case-match h3 { margin: .15rem 0 .3rem; font-size: 1.1rem; line-height: 1.3; }
.case-match p, .match-sources { font-size: .88rem; margin: .25rem 0; }
.case-match > small { font-size: .7rem; letter-spacing: .08em; }
.match-sources a { text-decoration: underline; text-underline-offset: 3px; }
.match-actions { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; margin-top: .45rem; }
.match-actions button { min-height: 44px; }
.desk-sheet,.money-desk{max-width:48rem;margin:auto;padding:clamp(1rem,4vw,3.5rem);background:#f5ead3;color:#203034}
.desk-sheet h1,.money-desk h1{line-height:1.08;overflow-wrap:anywhere}
.desk-sheet form,.money-desk #order-panel,.export-box{margin-block:1.25rem}
.desk-sheet label,.export-box label{display:grid;gap:.3rem;margin:.8rem 0;font-weight:600}
.desk-sheet :is(input,textarea,select),.export-box select{width:100%;min-height:44px;padding:.55rem;color:#203034;background:#fff7e5;border:1px solid #887653;font:inherit}
.desk-sheet textarea{resize:vertical}.desk-sheet small,.desk-row span{font-size:.85rem}
.desk-row{display:grid;border-block-end:1px solid #a49879;padding:.7rem 0;text-decoration:none}
.desk-row strong{font-size:1.15rem}.desk-row span,.desk-sheet .section-link{overflow-wrap:anywhere}
.desk-record,.minute-packs{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:.6rem 0}
.balance strong{font-size:2.2rem}.credit-link{display:inline-block;padding:.65rem .3rem}
.export-box{border-block:1px solid currentColor;padding:.8rem 0}.export-box summary{cursor:pointer}.export-box p{margin:.55rem 0}.export-box [role=status]:empty{display:none}
.desk-cover{display:block;width:100%;max-height:300px;object-fit:cover}.desk-sheet input[type=checkbox]{width:auto;min-height:0}.desk-sheet details summary{cursor:pointer}
.featured-file,#episode-sponsor{display:inline-block;color:#eeddb7;text-decoration:underline;text-underline-offset:3px;font-size:.86rem;margin:.2rem .6rem .2rem 0}.featured-file[hidden],#episode-sponsor[hidden]{display:none}
.free-match audio{display:block;width:100%;max-width:32rem;margin:.5rem 0}.free-match>a{text-decoration:underline;font-size:.9rem}
.photo-enclosures figure{margin:1rem 0}.photo-enclosures img{display:block;max-width:100%;max-height:280px;object-fit:contain}.photo-enclosures figcaption{font-size:.86rem;margin:.4rem 0 1rem}
.mystery-room{background:#eee4ca;color:#192b2f;padding:clamp(16px,4vw,50px);max-width:54rem;margin:auto}
.mystery-room header{position:relative;background:#142326;color:#fbf1d9;isolation:isolate;min-height:11rem;display:flex;align-items:end;padding:1.4rem}
.mystery-room header img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;filter:brightness(.34) saturate(.45)}
.mystery-room header h1,.mystery-room header p{color:inherit;margin:.3rem 0}.mystery-room h2{margin:1.8rem 0 .3rem}
.mystery-search{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:1rem}.mystery-search label{width:100%}.mystery-search input{flex:1;min-width:10rem;border:1px solid #83714d;background:#fff6e2;color:#182a2b;font:inherit;padding:.6rem}
.mystery-row{display:grid;gap:.2rem;padding:.75rem 0;border-bottom:1px solid #a2916b;text-decoration:none}.mystery-row small{font:12px/1.5 ui-monospace,monospace;letter-spacing:.07em}.mystery-row strong{font-size:1.16rem}.mystery-row span{font-size:.86rem}.mystery-row:focus-visible,.mystery-row:hover{text-decoration:underline}
.mystery-listen{border-left:3px solid #8e493e;margin:1.5rem 0;padding:.25rem 1rem}.mystery-listen small{font:12px/1.5 ui-monospace,monospace}.mystery-listen h2{margin:0 0 .45rem}.mystery-listen audio{display:block;width:100%;max-width:30rem;margin-bottom:.45rem}
