.study-tabs {display:flex;gap:6px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}
.study-tabs button {flex:1;font-size:14px}
.study-tabs button[aria-pressed=true] {border-color:var(--accent);color:var(--accent);background:var(--paper)}
.listening-workspace {min-width:0}
.study-panel {min-width:0;border-top:1px solid var(--line);padding:20px 0}
.study-panel h3 {font:26px/1.2 var(--serif);margin:0}
.study-identity {display:flex;align-items:center;gap:12px;margin-bottom:16px}
.study-identity img {width:48px;height:48px;object-fit:cover;border-radius:12px}
.study-identity small {font:12px var(--sans);color:var(--muted);margin-left:8px}
.study-identity p {margin:4px 0 0;font-size:13px;color:var(--muted)}
.study-panel p {line-height:1.6}
.study-context {padding:12px 14px;background:var(--surface);border-inline-start:2px solid var(--accent);margin-bottom:16px}
.study-context p {margin:6px 0;font:19px/1.5 var(--serif);max-height:100px;overflow:auto}
.study-context-controls {display:flex;gap:8px;flex-wrap:wrap}
.study-context-controls button,.study-prompts button {font-size:12px}
.study-context-caption {font-size:12px;color:var(--muted)}
.study-prompts {display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.study-panel textarea {box-sizing:border-box;width:100%;min-width:0;resize:vertical;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:16px/1.6 var(--sans)}
.study-compose-row {display:flex;gap:8px;align-items:end}
.study-compose-row textarea {flex:1}
.study-compose-row button {min-width:56px}
.study-disclosure {font-size:12px;color:var(--muted);margin:10px 0}
.study-status {font-size:13px;color:var(--muted);min-height:20px}
.study-status:empty {min-height:0;margin:0}
.study-message {padding:16px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.study-message > p {white-space:pre-wrap;font-size:15px}
.study-speaker {font-size:12px;color:var(--muted);font-weight:600}
.study-message[data-role=user] > p {font-size:14px;color:var(--muted)}
.study-sources {display:grid;gap:8px;margin:12px 0}
.study-sources button {display:block;width:100%;text-align:left;font:16px/1.5 var(--serif)}
.study-sources small {display:block;color:var(--muted);font:12px var(--sans);margin-bottom:5px}
.study-note {border-inline-start:2px solid var(--accent);padding:4px 0 4px 14px;margin:16px 0}
.study-note h4 {margin:0 0 8px;font:20px var(--serif)}
.study-note p {margin:6px 0;font-size:14px}
.study-note .study-example {font:19px/1.5 var(--serif)}
.study-recall {border-block:1px solid var(--line);padding:12px 0;margin:16px 0}
.study-recall .eyebrow {margin:0}
.study-recall details {border:0}
.study-recall summary {font-size:13px;padding-block:12px}
.study-recall textarea {min-height:72px}
.study-guide {font-size:14px;color:var(--muted);margin:12px 0 20px}
.study-guide strong {color:var(--ink)}
.summary-starers {font:16px/1.7 var(--serif);color:var(--accent);margin:12px 0}
.summary-writing {margin-top:18px}
.summary-writing textarea {min-height:190px}
.summary-progress {display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);margin:8px 0 12px}
.summary-actions {display:flex;gap:8px;flex-wrap:wrap}
.summary-actions button {font-size:13px}
.study-panel :focus-visible,.study-tabs :focus-visible {outline:2px solid var(--accent);outline-offset:3px}
@media(min-width:1000px) {
  .escuta-studying .escuta-wrap {width:min(1440px,calc(100% - 48px))}
  .escuta-studying .escuta-layout {grid-template-columns:180px minmax(0,1fr);gap:24px}
  .study-open.listening-workspace {display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:24px;align-items:start}
  .study-open .study-panel {border-top:0;border-inline-start:1px solid var(--line);padding:20px 0 20px 24px;max-height:65vh;overflow:auto;scrollbar-gutter:stable}
  .study-open .transcript {height:65vh;max-height:780px}
  .study-open .line-original {font-size:24px!important}
  .study-open .line-translation {font-size:16px!important}
}
@media(max-width:999px) {
  .study-open > .transcript {display:none}
  .study-panel {border-top:0}
  .study-tabs {position:sticky;top:0;background:var(--paper);z-index:2}
  .study-panel h3 {font-size:24px}
}
.escuta-expanded .listening-workspace {flex:1 1 auto;min-height:0;overflow:hidden;max-width:1400px}
.escuta-expanded .listening-workspace > .transcript {height:100%;box-sizing:border-box}
.escuta-expanded .study-open .study-panel {height:100%;max-height:none;overflow:auto;box-sizing:border-box}
.escuta-expanded .study-open {height:100%;align-items:stretch}
@media(max-width:999px) {.escuta-expanded .study-open .study-panel{padding-bottom:36px}}

.escuta-expanded .escuta-reader {height:var(--escuta-visible-height,100dvh);top:var(--escuta-visible-top,0px);bottom:auto}
.escuta-expanded.escuta-short .story-heading,.escuta-expanded.escuta-short .time-row,.escuta-expanded.escuta-short #seek,.escuta-expanded.escuta-short .seek-label,.escuta-expanded.escuta-short #play-status {display:none}
.escuta-expanded.escuta-short .reader-heading {padding:0;border:0}
.escuta-expanded.escuta-short .transport {margin:2px 0;gap:4px}
.escuta-expanded.escuta-short .study-tabs {padding:6px 0}
.escuta-expanded.escuta-short .study-panel textarea {min-height:100px;height:100px;max-height:120px}
