/* Master task workspace. No global console or desktop layout overrides. */
.nrs-master-workspace[hidden]{display:none!important}
.nrs-history-search{margin:12px 0;border:1px solid #385575;border-radius:8px;padding:0 12px}
.nrs-history-search>summary,.nrs-manual-history-card>details>summary{cursor:pointer;min-height:44px;padding:10px 0;color:#bce6e2;font-size:15px;line-height:1.5}
.nrs-history-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}
.nrs-history-filters label{display:flex;flex-direction:column;gap:6px;font-size:14px}
.nrs-history-filters input{width:100%;font:inherit;min-width:0}
.nrs-history-status{color:#b7c8da;font-size:14px;line-height:1.5}
.nrs-history-results .nrs-manual-history-text,.nrs-history-full-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.nrs-history-actions,.nrs-history-pages{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.nrs-history-actions button,.nrs-history-pages button,.nrs-history-filters button,.nrs-manual-history-card>details>button{border:1px solid #587095;border-radius:7px;background:#203855;color:#e9f0fa;padding:9px 13px;min-height:44px;font:inherit;cursor:pointer}
.nrs-history-pages button:disabled{opacity:.45;cursor:default}
.nrs-history-full-text{max-height:50dvh;overflow:auto}
.nrs-history-search small{display:block;line-height:1.6;margin-bottom:12px;color:#b7c8da}
@media(max-width:900px){
 body.nrs-master-mobile{padding-bottom:max(18px,env(safe-area-inset-bottom));background:#0b1629}
 .nrs-master-mobile>.nrs-mobile-nav,.nrs-master-mobile>.wrap{display:none}
 .nrs-master-workspace{padding:0 12px 16px;max-width:100%;min-width:0}
 .nrs-master-workspace-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 0}
 .nrs-master-workspace-heading h1{font-size:20px;margin:0;line-height:1.5}
 .nrs-master-account{max-width:100%;font-size:14px}
 .nrs-master-account>summary{min-height:44px;padding:10px 0;cursor:pointer;color:#b7c8da;overflow-wrap:anywhere}
 .nrs-master-account[open]{flex-basis:100%}
 .nrs-master-account #nrsSessionBar{position:static;margin:0;max-width:100%;border-radius:8px}
 .nrs-master-task-nav{position:sticky;top:0;z-index:950;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;background:#10233b;border:1px solid #37516b;border-radius:9px;padding:4px;scroll-margin-top:0!important}
 .nrs-master-task-nav button{border:0;background:transparent;color:#b7c8da;border-radius:5px;font-size:14px;font-weight:600;padding:7px 2px;min-height:48px;line-height:1.4;white-space:normal}
 .nrs-master-task-nav button[aria-selected=true]{background:#203f51;color:#b5f1e5;box-shadow:inset 0 -3px #81d8cf}
 .nrs-master-task-nav button:focus-visible{outline:3px solid #81d8cf;outline-offset:-2px}
 .nrs-master-live-status{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
 .nrs-master-live-status .chip{font-size:12px;line-height:1.5;padding:5px 8px;max-width:100%;white-space:normal;overflow-wrap:anywhere;border-radius:6px}
 .nrs-master-workspace [role=tabpanel]{scroll-margin-top:72px;min-width:0}
 .nrs-master-workspace [role=tabpanel]>.panel{padding:14px 12px;margin:0;border-radius:10px;min-width:0}
 .nrs-master-workspace [role=tabpanel] h2{font-size:20px;margin-top:0}
 .nrs-master-workspace :where(input,select,textarea){font-size:16px;min-width:0;max-width:100%}
 .nrs-master-workspace :where(.rows,.rows3,.toolbar,.toolbar-3cols){grid-template-columns:minmax(0,1fr)}
 .nrs-master-workspace [role=tabpanel]>:not(:first-child){margin-top:12px}
 .nrs-master-fold{margin-top:12px;border-top:1px solid #344c66;padding:2px 0}
 .nrs-master-fold>summary{cursor:pointer;min-height:48px;padding:12px 0;color:#c7deee;font-size:15px;line-height:1.5;font-weight:600}
 .nrs-master-mobile .nrs-alerts .alert-list{min-height:120px;max-height:none;overflow:visible}
 .nrs-master-mobile .nrs-alerts .alert-card .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .nrs-master-mobile .nrs-alerts .metric>strong{font-size:22px}
 .nrs-master-mobile .nrs-alerts .alert-totals{margin:8px 0}
 .nrs-master-mobile .nrs-alerts #aLiveStatus{font-size:12px;line-height:1.5;margin:8px 0}
 .nrs-master-mobile .nrs-alerts .pagination{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;font-size:12px;line-height:1.5}
 .nrs-master-mobile .nrs-alerts .pagination button{padding:7px;min-width:0;font-size:13px}
 .nrs-master-mobile #nrsDraftOrigin{max-height:240px;overflow:auto}
 .nrs-master-mobile #messageText{min-height:240px;max-height:50dvh;font-size:16px}
 .nrs-master-mobile #nrsServerPreplay{flex-wrap:wrap}
 .nrs-master-mobile #nrsServerPreplayMeta{font-size:14px}
 .nrs-master-mobile .nrs-speech-controls{display:flex;flex-wrap:wrap;gap:8px}
 .nrs-master-mobile .nrs-speech-controls>label{width:100%;display:grid;gap:7px}
 .nrs-master-mobile .nrs-speech-controls select{width:100%}
 .nrs-master-mobile .nrs-history-filters{grid-template-columns:minmax(0,1fr)}
 .nrs-master-mobile .nrs-history-results .nrs-manual-history-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
 .nrs-master-mobile .nrs-manual-history-card{padding:12px;margin:10px 0}
 .nrs-master-mobile .nrs-manual-history-card button{min-height:44px;width:auto}
 .nrs-master-mobile #historyList>.item:nth-child(n+3){display:none}
 .nrs-master-mobile #nrsMasterTask_system .hero{margin:12px 0}
 .nrs-master-mobile #nrsMasterTask_system .hero h1{display:none}
 .nrs-master-mobile #nrsMasterTask_system .nrs-readiness{margin:0;padding:14px 12px}
 .nrs-master-mobile #nrsAudioToolMount:empty{display:none}
}
@media(max-width:360px){.nrs-master-mobile .nrs-alerts .alert-card .metrics{grid-template-columns:1fr}.nrs-master-task-nav button{font-size:13px}}
