/* Shared application presentation; no research or billing logic. */
:root{--mw-font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--mw-ink:#172033;--mw-muted:#526174;--mw-border:#dce3ec;--mw-blue:#1456b8}
.workspace-app{font-family:var(--mw-font);font-size:16px;line-height:1.5;color:var(--mw-ink)}
.workspace-app :is(button,input,select,textarea){font-family:var(--mw-font)!important}
.workspace-app :is(main,.card,.card-body,form,.row)>*{min-width:0}
.workspace-app :is(main,.card,form){min-width:0;max-width:100%;box-sizing:border-box}
.workspace-app main.container{max-width:1320px;width:calc(100% - 32px);padding-left:0;padding-right:0}
.workspace-app :is(h1,h2,h3,h4,h5,p){overflow-wrap:break-word}
.workspace-app main :is(h1,h3.mb-0){font-size:clamp(1.75rem,2.15vw,2rem);line-height:1.25;font-weight:650;color:var(--mw-ink)}
.workspace-app main h2{font-size:1.375rem;line-height:1.3;font-weight:650}
.workspace-app main :is(h5,.card-title){font-size:1.125rem;line-height:1.4;font-weight:650}
.workspace-app .text-muted,.workspace-app .muted{color:var(--mw-muted)!important}
.workspace-app .small,.workspace-app small{font-size:.875rem}
.workspace-app .card-body{padding:1.25rem}
.workspace-app .app-footer,.workspace-app .mw-app-footer{font-size:.875rem;overflow-wrap:anywhere}
.workspace-app :is(.btn,.form-control,.form-select){font-size:1rem}
.workspace-app :is(.btn-sm,.form-control-sm,.form-select-sm){font-size:.875rem;min-height:36px}
.workspace-app :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #1764c0;outline-offset:3px}
.workspace-app .workspace-nav{padding:.65rem 0;background:#202b3d;color:white}
.workspace-app .workspace-nav>.container,.workspace-nav>.mw-navbar-container{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:nowrap;width:calc(100% - 32px);max-width:1320px;margin:auto;min-width:0}
.workspace-nav .navbar-brand,.workspace-nav .mw-navbar-brand{font-size:1.25rem;font-weight:650;margin:0;color:white;text-decoration:none;white-space:nowrap}
.mw-menu{position:relative;margin-left:auto;min-width:0}
.mw-menu>summary{cursor:pointer;list-style:none;border:1px solid #a6b8d0;border-radius:7px;padding:.45rem .75rem;color:white}
.mw-menu>summary::-webkit-details-marker{display:none}
.mw-menu[open]>summary{display:none}
.mw-menu-content{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;min-width:0}
.workspace-nav :is(.btn,.mw-nav-btn){font-size:.875rem;line-height:1.5;min-height:36px;padding:.4rem .65rem;white-space:nowrap}
.workspace-nav .mw-app-switcher{display:flex;gap:0;flex-wrap:nowrap}
.workspace-nav .mw-nav-btn{border:1px solid #9dafc6;border-radius:6px;color:white;text-decoration:none;display:inline-flex;align-items:center}
.workspace-nav .mw-nav-btn-active{background:white;color:#172033}
.mw-account{position:relative}
.mw-account>summary{cursor:pointer;list-style:none;color:white;border:1px solid #9dafc6;border-radius:7px;padding:.4rem .65rem;min-height:36px;box-sizing:border-box;font-size:.875rem}
.mw-account>summary::after{content:' ▾'}
.mw-account-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:1100;background:white;color:#172033;box-shadow:0 12px 36px #17203330;border:1px solid var(--mw-border);border-radius:10px;padding:.6rem;min-width:230px;max-width:min(290px,85vw)}
.mw-account-panel a{display:block;color:#174f9c;text-decoration:none;padding:.6rem .7rem;border-radius:6px;font-size:.875rem}
.mw-account-panel a:hover{background:#eef4fc}
.mw-account-name{padding:.5rem .7rem;color:var(--mw-muted);font-size:.875rem;overflow-wrap:anywhere;border-bottom:1px solid var(--mw-border);margin-bottom:.25rem}
.mw-page-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.mw-project-card .card-body{display:flex;flex-direction:column;gap:.7rem}
.mw-project-card .card-title{margin:0;line-height:1.4}
.mw-project-kind{align-self:flex-start;font-size:.75rem;padding:.35rem .6rem;border-radius:99px;background:#e8eef8;color:#314968;font-weight:650;line-height:1.25}
.mw-project-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:.875rem;margin:0}
.mw-project-id{font-size:.875rem;color:var(--mw-muted);overflow-wrap:anywhere}
.mw-project-id summary{cursor:pointer;font-size:.875rem}
.mw-project-card .card-footer{padding:1rem 1.25rem;gap:.5rem}
.mw-project-management{width:100%;margin-top:.3rem}
.mw-project-management>summary{cursor:pointer;font-size:.875rem;color:#465a75;padding:.4rem 0}
.mw-project-management[open]>div{display:flex;flex-wrap:wrap;gap:.5rem;padding:.5rem 0}
.mw-project-header{display:block!important}
.mw-project-header h3{max-width:1000px}
.mw-project-workflow{margin-top:1.2rem;padding:.85rem;background:white;border:1px solid var(--mw-border);border-radius:12px;display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.mw-project-workflow .btn{font-size:.875rem;min-height:38px}
.mw-project-settings{margin-top:.75rem}
.mw-project-settings>summary{cursor:pointer;font-size:.875rem;font-weight:600;color:#425978;padding:.6rem 0}
.mw-project-settings>div{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;padding:.8rem;background:#fff;border:1px solid var(--mw-border);border-radius:10px}
.mw-extra-filters{padding:.65rem;border:1px solid var(--mw-border);border-radius:8px}
.mw-extra-filters>summary{cursor:pointer;color:#174f9c;font-size:.875rem;font-weight:600}
.mw-extra-filters[open]>summary{margin-bottom:.65rem}
.mw-queue-scroll{max-height:70vh;overflow:auto;position:relative;border:1px solid var(--mw-border);border-radius:8px}
.mw-queue-scroll thead th{position:sticky;top:0;z-index:2;background:#eef3f9;box-shadow:0 1px 0 var(--mw-border)}
.mw-queue-scroll table{font-size:.9375rem;margin:0}
.mw-queue-scroll :is(td,th){padding:.7rem .65rem}
.mw-study-title{font-weight:600;line-height:1.45;text-decoration:none;display:inline-block}
.mw-study-authors{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:.3rem}
.mw-table-scroll{max-width:100%;overflow:auto;min-width:0;overscroll-behavior-x:contain}
.mw-screenwiz-parity .mw-main{max-width:1320px;width:calc(100% - 32px)}
.mw-screenwiz-parity .card{padding:1.25rem;box-sizing:border-box}
.mw-screenwiz-parity h1{font-size:2rem!important;line-height:1.25;font-weight:650}
.mw-screenwiz-parity h2{font-size:1.375rem}
.mw-screenwiz-parity .muted{font-size:.875rem}
.mw-screenwiz-parity :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;max-width:100%;min-width:0}
.mw-screenwiz-parity #subgroup_labels{min-width:0!important;width:100%}
.mw-screenwiz-parity :is(th,td){font-size:.9375rem}
.mw-screenwiz-parity :is(pre,canvas,svg,img){max-width:100%}
.mw-screenwiz-parity pre{overflow:auto;box-sizing:border-box}
.mw-screenwiz-parity .mw-optional>summary{cursor:pointer;color:#174f9c;display:list-item;list-style:disclosure-closed inside}
.mw-screenwiz-parity .mw-optional[open]>summary{list-style-type:disclosure-open;margin-bottom:1rem}
.mw-screenwiz-parity .mw-optional>summary h2{display:inline;font-size:1.125rem}
.mw-analysis-steps{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 1.25rem}
.mw-analysis-steps a{padding:.5rem .85rem;border:1px solid #c9d8ec;border-radius:8px;background:white;color:#174f9c;text-decoration:none;font-size:.875rem}
.workspace-app [id]{scroll-margin-top:1.25rem}
.workspace-app .mw-guide-meta-trigger{position:static!important;font-size:.875rem;max-width:calc(100vw - 24px);margin:0}
@media(max-width:991px){
 .workspace-app .workspace-nav>.container,.workspace-nav>.mw-navbar-container{align-items:flex-start;flex-wrap:wrap}
 .workspace-nav .mw-menu{margin:0 0 0 auto;position:static}
 .workspace-nav .mw-menu[open]{flex:1 1 100%}
 .workspace-nav .mw-menu[open]>summary{display:block;margin-bottom:.65rem;width:max-content}
 .workspace-nav .mw-menu-content{align-items:flex-start;gap:.6rem}
 .workspace-nav .mw-account-panel{right:auto;left:0}
 .workspace-nav .mw-menu>summary{display:block}
 .workspace-app .mw-page-heading{align-items:flex-start;gap:.75rem}
 .workspace-app .mw-page-heading>div{max-width:100%}
 .workspace-app .mw-project-header .mw-project-workflow{justify-content:flex-start}
}
@media(max-width:575px){
 .workspace-app main.container{padding-left:16px;padding-right:16px}
 .workspace-app .card-body,.mw-screenwiz-parity .card{padding:1rem}
 .workspace-app main :is(h1,h3.mb-0){font-size:1.75rem!important}
 .workspace-app :is(button,.btn,.mw-nav-btn,summary){min-height:40px}
 .workspace-app input:not([type=checkbox]):not([type=radio]),.workspace-app select,.workspace-app textarea{font-size:16px}
 .mw-account{position:static}.mw-account-panel{left:16px!important;right:16px!important;max-width:calc(100vw - 32px)}
 .mw-project-workflow{padding:.65rem}
}
