/* Desktop workspace: only side content scrolls; the image remains visible. */
body:not(.ct-mode){height:100dvh;overflow:hidden}
body:not(.ct-mode) .shell{height:100dvh;min-height:0;display:flex;flex-direction:column;gap:8px;padding:14px;overflow:hidden}
body:not(.ct-mode) .shell>header,body:not(.ct-mode) .notice{width:100%;max-width:none;margin:0;flex:none}
body:not(.ct-mode) .notice{font-size:11px;padding:8px 12px}
body:not(.ct-mode) .grid{grid-template-columns:minmax(0,1fr) 330px;min-height:0;flex:1;width:100%;max-width:none;margin:0;overflow:hidden}
.grid>aside:first-child{display:none}
body:not(.ct-mode) .grid>.viewer{display:flex;flex-direction:column;min-height:0;padding:12px;gap:8px;overflow:hidden}
body:not(.ct-mode) .viewer>.heading,body:not(.ct-mode) .modality-tabs{margin:0;flex:none}
body:not(.ct-mode) .stage{min-height:0;flex:1}
body:not(.ct-mode) .grid>.review{grid-column:auto;min-height:0;overflow:auto;padding:14px}
.compact-toolbar{display:flex;gap:8px;align-items:center;flex:none}.compact-toolbar .primary{width:auto;padding:8px 12px;font-size:12px}.compact-toolbar>button:not(.primary){padding:8px;border:1px solid var(--line);border-radius:8px;background:white;font-size:11px;color:var(--muted);cursor:pointer}
body.ct-mode #compactToolbar,body.io-mode #compactToolbar,body.ct-mode #compactQueue{display:none}
body.io-mode .grid{grid-template-columns:1fr}
#compactQueue{margin:10px 0;font-size:12px}#compactQueue .teeth{display:grid;gap:5px;min-height:0;max-height:180px;overflow:auto;padding:8px 0}#compactQueue .teeth button{width:100%;max-width:none;min-width:0;display:flex;align-items:center;gap:8px;padding:7px;text-align:left}#compactQueue .teeth span{font-size:11px}
#candidate .tooth{width:42px;height:42px;font-size:19px;margin:8px 0}#candidate h3{font-size:17px}.compact-correction{margin-top:12px;border-top:1px solid var(--line);padding:10px 0}.compact-correction summary,.compact-filters summary{cursor:pointer;color:var(--teal);font-size:12px;padding:6px 0}.compact-correction .actions{position:sticky;bottom:-14px;background:#fbfcfb;padding:10px 0;z-index:3}
body.ct-mode .ct-panel-head{gap:6px;padding-top:8px}.ct-panel-pane .finding-list-section{gap:5px}.compact-mark-hint{font-size:12px;color:var(--muted);line-height:1.5}.ct-panel-tabs button{padding:8px 2px}
#compactInfoBody .workflow-guide{display:none}#compactInfoBody .heading{margin:15px 0}#compactInfoBody nav{margin-top:10px}
@media(max-width:700px){body:not(.ct-mode){height:auto;overflow:auto}body:not(.ct-mode) .shell{height:auto;overflow:visible}body:not(.ct-mode) .grid{display:flex;flex-direction:column}body:not(.ct-mode) .stage{flex:none;height:50vh;min-height:280px}body:not(.ct-mode) .grid>.review{max-height:65vh}.compact-toolbar{flex-wrap:wrap}}

#compactQueue .teeth{max-height:none;overflow:visible}.compact-pager{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 0 9px}.compact-pager button{padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--teal);cursor:pointer;font-size:11px}.compact-pager button:disabled{opacity:.4;cursor:default}.compact-pager span{font-size:11px;color:var(--muted)}

.opg-correction-open{display:block;width:100%;padding:12px;margin-top:14px;border:1px solid #8060a7;border-radius:8px;background:#47325f;color:#eee0ff;text-align:left;cursor:pointer}#compactCorrection{width:min(720px,92vw);max-height:88dvh;padding:0;border:1px solid #78618f;border-radius:14px;background:#251d31;color:#eee5f8;overflow:auto}#compactCorrection::backdrop{background:#080510b8}#compactCorrection header{display:flex;gap:16px;align-items:start;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #53405f}#compactCorrection h2{font-size:20px;margin:0}#compactCorrection header p{font-size:13px;color:#c4b1d8;margin:6px 0 0}#compactCorrection header button{background:#3c2e4c;color:white;border:1px solid #806797;border-radius:7px;font-size:22px;cursor:pointer}#compactCorrection .opg-correction-body{padding:12px 20px}#compactCorrection .pathology-review-editor{display:grid;grid-template-columns:1fr 1fr;gap:12px}#compactCorrection .pathology-review-editor label{display:flex;flex-direction:column;gap:6px;font-size:12px}#compactCorrection .pathology-review-editor section,#compactCorrection .pathology-review-editor>p{grid-column:1/-1}#compactCorrection input,#compactCorrection select{max-width:100%;background:#382b46;color:#f2e9fb;border:1px solid #78638f;padding:8px;border-radius:6px}#compactCorrection .actions{position:sticky;bottom:0;display:flex;flex-wrap:wrap;gap:8px;padding:14px 20px;background:#251d31;border-top:1px solid #53405f;margin:0}#compactCorrection .actions button{flex:1;min-width:145px;padding:10px;border:1px solid #8d70a9;border-radius:8px;background:#624385;color:white;cursor:pointer}#opgCorrectionFeedback{margin:0;padding:0 20px 12px;font-size:13px;color:#f0d399}#opgCorrectionFeedback:empty{display:none}@media(max-width:600px){#compactCorrection .pathology-review-editor{grid-template-columns:1fr}#compactCorrection header{padding:14px}#compactCorrection .opg-correction-body{padding:10px 14px}}
#compactCorrection [hidden]{display:none!important}
