/* Keep navigation compact and give the transcript the remaining viewport. */
:root{--workbench-header-height:56px}
.top{height:var(--workbench-header-height)}
.shell{min-height:calc(100dvh - var(--workbench-header-height))}
.sidebar{padding:16px;gap:8px;min-height:0}
.sidebar>*{flex-shrink:0}
.sideTop{justify-content:flex-end}
.languageOptions{display:flex;align-items:center;gap:20px;min-width:0;border:0;padding:0;margin:0 0 2px}
.languageOptions label{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer}
.languageOptions input{width:16px;height:16px;margin:0;accent-color:#126cba}
.languageOptions:disabled{opacity:.6}
.processingHelp{line-height:1.55}
.sidebar .primary{padding:10px 12px}
.linkImportEntry{margin-top:0;padding:10px 4px;font-size:13px;white-space:nowrap}
.search{height:36px}
.search input{padding:7px 10px;font-size:13px}
.search button{padding:4px 9px;background:transparent}
.groupHeading{margin-top:4px}
.groups{max-height:108px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;flex-shrink:1;min-height:68px}
.groupRow{min-width:0}
.groupRow>button:first-child{min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:6px 9px;font-size:13px}
.listHeading{margin-top:4px}
.library{max-height:none;flex:1;min-height:120px;overscroll-behavior:contain;scrollbar-gutter:stable}
.itemCard{padding:9px;gap:3px}
.itemName{font-size:13px}
.itemMeta{margin-top:3px}
.itemMeta:nth-of-type(3),.itemMeta:nth-of-type(4){display:inline-block;margin-right:6px}
.intro{align-items:center;margin-bottom:16px;gap:16px}
.intro h1{font-size:clamp(24px,2.4vw,36px);margin:0;letter-spacing:-.03em}
.introActions{flex-wrap:nowrap;flex-shrink:0}
.introActions .smallBtn,.introActions select{font-size:13px;padding:8px 10px}
.main .workbenchTop{padding:12px 24px}
.main .workbenchTop h2{font-size:21px;margin:0 0 5px}
.main .player{padding:12px 24px}
.main .controls{margin-top:8px;gap:8px 12px}
.controls #generatedTextNotice{flex:1 1 280px;min-width:0;margin:0;line-height:1.5}
.main .transcriptHead{padding:10px 24px}
.main .transcript{padding:0 24px 12px;scroll-padding-block:16px;overscroll-behavior:contain;scrollbar-gutter:stable}
.main .sheetFoot{padding:10px 24px;align-items:center;gap:12px}
.sheetFoot .sheetHint{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:11px;color:#8b9fac}
.sheetFoot #positionText{flex-shrink:0}
.sheetFoot #saveStatus{max-width:40%;overflow-wrap:anywhere}
.main>.siteHelpNav{margin-top:8px;flex-shrink:0}
@media(min-width:901px){
 .shell{height:calc(100dvh - var(--workbench-header-height));min-height:0}
 .sidebar{height:100%;overflow:auto}
 .sideTop{display:none}
 .main{height:100%;display:flex;flex-direction:column;min-height:0;overflow:auto}
 .main>.intro,.main>.taskState,.main>.notice{flex-shrink:0}
 .main>.workbench{flex:1;min-height:350px;display:flex;flex-direction:column}
 .main .workbenchTop,.main .player,.main .transcriptHead,.main .sheetFoot{flex-shrink:0}
 .main .transcript{flex:1;min-height:100px;max-height:none}
}
@media(max-width:900px){
 :root{--workbench-header-height:52px}
 .brand{flex-shrink:0;white-space:nowrap}
 .topRight{min-width:0;flex-shrink:1}
 .topRight .quiet{white-space:nowrap}
 .topRight #accountButton{min-width:0;max-width:180px;overflow:hidden;text-overflow:ellipsis}
 .main{padding-top:20px;padding-bottom:24px}
 .sideTop{position:absolute;right:10px;top:8px}
 .sidebar{padding-top:46px;overflow:auto}
 .introActions{margin-top:12px}
 .main .transcript{max-height:60dvh;padding-left:10px;padding-right:10px}
 .main .workbenchTop,.main .player,.main .transcriptHead{padding-left:17px;padding-right:17px}
}
.taskState .processingEstimate{font-size:13px;line-height:1.6;color:#526d85;overflow-wrap:anywhere}
.taskState .processingStatusRow{display:flex;align-items:center;gap:12px;min-width:0}
.processingStatusLabel{flex:0 1 auto;min-width:0}
.processingStatusRow .processingEstimate{flex:1;min-width:0}
.processingStatusRow .processingStatusLabel,.processingStatusRow .processingEstimate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.taskState .processingStatusRow button{flex-shrink:0;margin:0}
.processingStatusRow button:first-of-type{margin-left:auto}
@media(max-width:600px){
 .taskState .processingStatusRow{gap:8px;flex-wrap:wrap}
 .processingStatusRow .processingStatusLabel{max-width:100%;white-space:normal}
 .processingStatusRow .processingEstimate{flex-basis:100%;white-space:normal}
}
#messagesButton .messageCount:not(:empty){display:inline-block;margin-left:4px;padding:1px 5px;border-radius:12px;background:#b42337;color:#fff;font-size:11px;line-height:1.4}
.messageList{display:grid;gap:8px}.messageRow{display:grid;text-align:left;gap:4px;background:#fff;border:1px solid #dbe7ef;border-radius:10px;padding:10px;color:inherit;cursor:pointer}.messageRow span,.messageRow small{color:#547087}

@media(max-width:600px){
 :root{--workbench-header-height:96px}
 .top{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:44px 44px;align-content:center;column-gap:8px}
 .top>.brand{justify-self:start}
 .topRight{grid-column:1/-1;width:100%;gap:2px}
 .topRight .quiet{flex:0 0 auto;min-height:40px}
 .topRight #accountButton{flex:1 1 0;max-width:none}
}
