/* Shared design tokens: change controls, spacing and colors here for every page. */
:root{font-family:system-ui,-apple-system,sans-serif;line-height:1.6;color:#263c42;background:#f1f5f4;--surface:#fff;--field:#fff;--text:#263c42;--muted:#647674;--border:#dce6e1;--field-border:#b6c9c1;--accent:#246e58;--accent-soft:#eaf3ef;--head:#f2f6f4;--control-height:36px;--radius:6px;--gap:10px}
[data-theme=dark]{color-scheme:dark;--surface:#18272e;--field:#142229;--text:#e1ece8;--muted:#afc4bc;--border:#34484e;--field-border:#496168;--accent:#8bd7b9;--accent-soft:#223d3b;--head:#20343b;background:#101b20;color:var(--text)}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;color:var(--text)}h1,h2,h3,p{margin-top:0}h1{font-size:21px;margin:0}h2{font-size:18px;margin-bottom:12px}h3{font-size:15px;margin-bottom:10px}p{font-size:13px;color:var(--muted);line-height:1.65}a{color:var(--accent)}button,input,select,textarea{font:inherit;font-size:13px;color:inherit}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:6px;height:var(--control-height);padding:6px 11px;margin:0;border:1px solid transparent;border-radius:var(--radius);background:transparent;color:var(--accent);font-weight:600;white-space:nowrap;line-height:1.4}button:hover{background:var(--accent-soft)}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.ui-primary{background:#286d59;color:#fff;border-color:#286d59}.ui-primary:hover{background:#205b4b}.ui-outline{border-color:var(--field-border)}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select{height:var(--control-height);min-height:var(--control-height);width:100%;min-width:0;padding:6px 10px;margin:0;border:1px solid var(--field-border);border-radius:var(--radius);background:var(--field)}textarea{width:100%;min-height:100px;max-width:100%;padding:10px;border:1px solid var(--field-border);border-radius:var(--radius);background:var(--field);resize:vertical;line-height:1.6}input[type=checkbox],input[type=radio]{width:15px;height:15px;margin:0;accent-color:#388e73;vertical-align:middle}input[type=file]{padding:4px!important}input[type=file]::file-selector-button{border:0;border-radius:3px;padding:3px 6px;margin-right:8px;background:var(--accent-soft);color:var(--text)}
form{display:flex;flex-direction:column;gap:14px;max-width:620px}label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:13px;font-weight:600}form>button{align-self:flex-start}.check{flex-direction:row;align-items:center;font-weight:400;gap:8px}fieldset{min-width:0;border:0;border-top:1px solid var(--border);padding:12px 0;margin:0}legend{font-size:13px;color:var(--muted);padding-right:10px}.bar,.pages,.task-actions,.device-actions,.selection-bar,.row-actions{display:flex;align-items:center;gap:var(--gap);flex-wrap:wrap}.bar{justify-content:space-between}.bar h2,.bar h3{margin:0}.pages{margin:12px 0}.selection-bar{margin:16px 0 10px;font-size:13px;color:var(--muted)}.selection-bar .task-actions{margin-left:auto}.row-actions{justify-content:center;gap:10px;margin:0}.row-actions button{height:auto;min-height:0;padding:2px 0;border:0;border-radius:0;font-weight:500}.row-actions button:hover{text-decoration:underline;background:transparent}.task-filter,#auditFilter{display:flex;flex-direction:row;align-items:end;flex-wrap:wrap;max-width:none;gap:8px}.task-filter label,#auditFilter label{flex:0 1 145px}.task-filter button,#auditFilter button{align-self:end}.device-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}.device-filters label{flex:1;min-width:140px}.device-actions{margin:12px 0;font-size:13px}.device-actions select{width:auto}
/* Shared tables: only column geometry and long-content exceptions live below. */
table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:center;vertical-align:middle;padding:11px 10px;border-bottom:1px solid var(--border)}th{background:var(--head);font-weight:600;color:var(--muted);white-space:nowrap}td{max-width:380px;overflow-wrap:anywhere;line-height:1.6}.table,#userRows{overflow:auto}td pre{white-space:pre-wrap}.table button{font-size:13px}.stat-download{padding:0;height:auto;border:0;border-bottom:1px dashed currentColor;border-radius:0;background:transparent;font-size:inherit;font-weight:inherit}.stat-download:disabled{border:0}.task-copy summary{cursor:pointer;white-space:normal;overflow-wrap:anywhere}.task-copy pre{max-height:220px;overflow:auto;background:var(--head);padding:10px;font:inherit;white-space:pre-wrap}.task-status{display:inline-block;border-radius:12px;padding:2px 8px;background:var(--head);white-space:nowrap;font-size:12px}.task-status.ReviewRequired{background:#604e2426;color:#b78930}.task-status.Completed{background:var(--accent-soft);color:var(--accent)}.task-status.Paused,.task-status.Cancelled{opacity:.75}.task-progress{display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.task-progress progress{width:100px;height:6px;accent-color:#388e73}.task-progress small{font-size:11px;color:var(--muted)}
/* Workspace shell. */
header{display:flex;align-items:center;gap:18px;padding:22px 28px;background:#163b3b;color:#fff}header>button{color:#e1ece8}header>button:hover{background:#214c46}header p{margin:0;font-size:12px;color:#b8d1cc}.brand{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:#e0eee7;color:#163b3b;font-size:24px;font-weight:800}.brand span{color:#398971}#identity{margin-left:auto;font-size:13px}main{max-width:1160px;margin:32px auto;padding:0 20px}section{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:22px;margin-bottom:18px}#login{max-width:440px;margin:70px auto}.eyebrow,.workspace-hint{font-size:12px;color:var(--muted)}.sidebar{position:fixed;top:92px;left:0;bottom:0;width:224px;display:flex;flex-direction:column;overflow-y:auto;padding:24px 14px;background:#163b3b;color:#d7e8e3;border-right:1px solid #254f4c;z-index:20}.sidebar nav{display:block}.nav-group{margin-bottom:24px}.sidebar-heading,.nav-label{position:relative;font-size:12px;font-weight:700;color:#93bbb0;letter-spacing:1px;padding:0 10px 0 16px;line-height:20px;margin-bottom:10px}.sidebar-heading:before,.nav-label:before{content:'';position:absolute;left:5px;top:4px;width:3px;height:12px;border-radius:2px;background:#75ac99}.nav-group+.nav-group{padding-top:16px;border-top:1px solid #b8d1cc38}.sidebar nav button{display:block;width:100%;height:auto;min-height:36px;padding:10px 10px 10px 20px;margin:3px 0;border:0;background:transparent;color:#e1ece8;text-align:left;font-size:14px;font-weight:500}.sidebar button:hover{background:#214c46}.sidebar button.active{background:#2b6657;color:#fff}.sidebar-footer{margin-top:auto;padding:20px 14px 0;font-size:12px;color:#8cb1a7}body.signed-in header{position:fixed;inset:0 0 auto;height:92px;padding:18px 28px;z-index:30}body.signed-in main{max-width:none;margin:92px 0 0 224px;padding:16px 24px;min-width:0}.workspace-content{min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.context-bar{display:flex;align-items:center;gap:12px}.context-bar label{flex:1}.context-status p{font-size:12px;margin:4px 0}.panel>p:first-child{margin-top:0}#menuToggle{display:none}footer{text-align:center;font-size:12px;color:var(--muted);margin:40px 0}
/* Summary metrics use separators, not a stack of bordered cards. */
.task-totals,#reportTotals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:12px 0 18px}.task-totals>div{padding:8px 16px;border:0;border-right:1px solid var(--border);background:transparent}.task-totals>div:first-child{padding-left:0}.task-totals>div:last-child{border:0}.task-totals span{display:block;font-size:12px;color:var(--muted)}.task-totals strong{display:block;margin-top:6px;font-size:24px;color:var(--accent)}
/* Task list geometry. */
#taskFilter{max-width:none}#taskFilter label{flex:1 1 115px}#taskFilter label:first-child{flex-basis:170px}#taskRows table{table-layout:fixed;min-width:920px}#taskRows th,#taskRows td{padding:10px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#taskRows th:nth-child(1),#taskRows td:nth-child(1){width:26px}#taskRows th:nth-child(2),#taskRows td:nth-child(2){width:50px}#taskRows th:nth-child(3),#taskRows td:nth-child(3){width:100px}#taskRows th:nth-child(5),#taskRows td:nth-child(5){width:70px}#taskRows th:nth-child(6),#taskRows td:nth-child(6){width:70px}#taskRows th:nth-child(7),#taskRows td:nth-child(7){width:160px}#taskRows th:nth-child(8),#taskRows td:nth-child(8){width:60px}#taskRows th:nth-child(9),#taskRows td:nth-child(9){width:60px}#taskRows th:nth-child(4),#taskRows td:nth-child(4){width:auto}#taskRows th:last-child,#taskRows td:last-child{width:150px;overflow:visible}#taskRows .row-actions{flex-wrap:nowrap;gap:8px}#taskRows .row-actions button{white-space:nowrap}.task-content-trigger{display:block;width:100%;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0;height:auto;background:transparent;font-weight:400}#taskDetail,#reportDetails{border-top:1px solid var(--border);margin-top:24px;padding-top:16px}
/* Device resources and phone health share the same compact toolbar treatment. */
.device-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.device-main{min-width:0}.device-groups{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:10px}.device-groups h3{margin:0 8px 0 0;font-size:14px}#groupList{display:flex;align-items:center;flex-wrap:wrap;gap:4px}#groupList>div{display:flex;align-items:center;gap:3px}#deviceRefresh{margin-left:auto}.device-groups button.selected{background:var(--accent-soft);color:var(--accent)}#deviceManager .device-filters{display:grid;grid-template-columns:minmax(0,280px) minmax(0,120px);align-items:end}#deviceManager .device-filters label{min-width:0}#deviceEnabled{text-align:center;text-align-last:center}#managedDeviceRows table{min-width:1140px}#managedDeviceRows th:last-child{min-width:260px}#managedDeviceRows .row-actions{flex-wrap:nowrap;gap:10px}.device-name{height:auto;max-width:150px;width:100%;display:block;margin:auto;padding:0;overflow:hidden;text-overflow:ellipsis;font-weight:500}#managedDeviceRows td{white-space:nowrap}.device-cell{display:block;max-width:150px;margin:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.device-count.sent{color:var(--accent)}.device-count.failed{color:#c96a62}.device-count.review{color:#bd963c}.phone-health-heading{display:flex;justify-content:flex-start;margin-bottom:10px}.phone-device-section{margin:0}.phone-status-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--border);margin:14px 0}.phone-status-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:6px 14px;color:inherit}.phone-status-tabs button.selected{border-bottom-color:var(--accent);color:var(--accent);background:var(--accent-soft)}#phoneDeviceSearch{width:240px;max-width:100%}.phone-selection-bar{border-top:1px solid var(--border);padding-top:4px}#phoneDeviceSelected{display:inline-flex;align-items:center;height:var(--control-height);font-size:13px;white-space:nowrap}#phoneDeviceSummary{font-size:12px;opacity:.8;margin:8px 0}#phoneDeviceRows table{min-width:1000px}#phoneDeviceRows th:first-child{width:32px}#phoneDeviceRows td:nth-child(5){min-width:220px;max-width:380px}#phoneDeviceRows .row-actions{flex-wrap:nowrap}
/* Reports, audit and permissions: dimensions only; controls inherit shared rules. */
#messageFilter label{flex:0 1 155px}#messageFilter label:nth-child(3){flex-basis:125px}.report-hour-title{margin:16px 0 6px}.report-hours{display:flex;align-items:flex-end;gap:4px;overflow-x:auto;padding:4px 0 8px}.report-hour{display:flex;flex:1 0 28px;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px;min-width:28px;height:66px;padding:3px 1px;font-size:11px;line-height:14px}.report-hour-bar{max-height:30px;min-height:2px;width:60%;background:#3c997e;border-radius:3px}#reportPolicy,#reportTimeNotice{font-size:12px;line-height:1.6}#reportTimeNotice:empty{display:none}#reportDevices table{min-width:850px}#messageRows table{min-width:900px}#auditRows table{min-width:1000px}#auditRows td:last-child{min-width:300px;max-width:600px;text-align:left;white-space:normal;overflow-wrap:anywhere}#auditRows details summary{cursor:pointer;white-space:normal}#auditRows details>div{font-size:12px;color:var(--muted);margin-top:8px}#team>.device-filters input{width:220px}#team>.device-filters select{width:140px}#teamCreateDialog{width:min(440px,94vw)}#teamAccessDialog{width:min(720px,94vw)}#team .ui-dialog-actions{justify-content:flex-end}#teamAccessDialog .device-filters{margin:0}#teamAccessDialog .device-filters input{flex:1;min-width:180px}#teamAccessDialog .device-filters select{width:170px}#teamAccessDialog .pages{margin:0;font-size:13px}.team-access-settings{display:flex;align-items:end;gap:20px}.team-access-settings>label:first-child{flex:1}.team-access-settings>.check{height:36px}#grantDevices{grid-auto-rows:28px;align-content:start;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;max-height:300px;overflow:auto;padding:6px 0}#grantDevices .check{overflow:hidden}#grantDevices .check span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#passwordForm{max-width:480px}#sendForm{max-width:620px}#sendDeviceHost .context-bar{display:block;padding:0;margin:0}#sendDeviceHost select{width:100%}#sendDeviceHost #sync{display:none}.send-policy{margin:0 0 10px;font-size:12px;color:var(--muted)}
/* Dialogs share a surface, spacing and backdrop. */
dialog{width:min(640px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid var(--field-border);border-radius:10px;background:var(--surface);color:var(--text);padding:22px}dialog::backdrop{background:#0008}dialog>.bar{margin-bottom:14px}dialog form{max-width:none}#phoneOnboardingDialog .phone-onboarding{padding:0;margin:0;border:0;background:transparent}#phoneOnboardingDialog .bar{margin-bottom:14px}.phone-onboarding canvas{display:block;max-width:100%;height:auto;margin:16px 0;background:#fff}#nativeTraceDialog{width:min(960px,94vw)}#pairingEvidenceView img{display:block;max-width:100%;max-height:65vh;margin:10px auto}#taskContentDialog{position:fixed;inset:auto;margin:0;width:360px;max-width:calc(100vw - 16px);padding:12px;z-index:100;box-shadow:0 5px 20px #0004}#taskContentFull{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;margin-top:8px;font-size:13px}#taskContentClose{height:24px;width:24px;padding:0}#taskStatusDialog{width:min(360px,90vw)}#taskStatusCounts{display:grid;gap:8px;margin-top:16px}#taskStatusCounts>div{display:flex;justify-content:space-between;border-bottom:1px solid var(--border);padding:8px 0}#taskStatusCounts strong{font-size:18px}
/* Create-task editor: only its grid and content-specific controls are special. */
#bulkCreateDialog{width:min(760px,94vw);padding:20px}#bulkForm{display:flex;flex-direction:column;max-width:none;gap:10px}#bulkForm textarea{height:112px;min-height:112px;font-size:13px}.task-top-row{display:grid;grid-template-columns:minmax(0,1fr) 170px 115px;gap:10px}.task-time-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.task-time-row small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.4}.task-resource-row{display:grid;grid-template-columns:190px minmax(0,1fr) auto;align-items:end;gap:10px}.upload-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:13px;font-weight:600}#bulkPoolGroups{display:flex;gap:12px;flex-wrap:wrap}#bulkPoolGroups label{display:flex;flex-direction:row;align-items:center;gap:6px;font-weight:400}.pool-options:has(#bulkPoolGroups[hidden]):has(#bulkDevices[hidden]){display:none}.pool-options .device-filters{margin:0}#bulkDeviceSearch,#bulkDeviceGroup{flex:1;min-width:140px}#bulkDevices{max-height:360px;overflow:auto}.country-combo{position:relative;display:flex}.country-combo input{padding-right:34px!important}.country-combo>button{position:absolute;right:0;top:0;width:30px;padding:0}#bulkCountryOptions{position:absolute;top:calc(100% + 4px);left:0;z-index:10;width:250px;max-height:220px;overflow:auto;padding:4px;background:var(--surface);border:1px solid var(--field-border);border-radius:6px;box-shadow:0 6px 18px #0002}#bulkCountryOptions button{width:100%;justify-content:flex-start;font-weight:400}.recipient-editor{font-size:12px}.recipient-editor summary{cursor:pointer;color:var(--muted)}.recipient-editor textarea{margin-top:6px}#bulkImportStatus{font-size:12px;margin:0}#bulkImportStatus:empty{display:none}.copy-token{display:flex;align-items:center;gap:8px;font-size:12px}.copy-token span{font-size:11px;color:var(--muted)}#copyCustomerToken{font-family:monospace;padding:0 8px}#openCopyPreview{margin-left:auto}.create-footer{justify-content:flex-end;padding:10px 0 0;margin:0}.task-actions{justify-content:flex-end}#bulkCopyPreview{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;background:var(--head);padding:14px;margin-top:12px;max-height:280px;overflow:auto;border-radius:6px}#previewCount{font-size:12px;margin-bottom:0}#bulkForm textarea[name=customerNumbers]{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;font-variant-numeric:tabular-nums;line-height:1.25;letter-spacing:0}
/* Theme picker and transient notice. */
.theme-picker{position:relative;z-index:40;flex-shrink:0}.theme-picker summary{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 11px;border:1px solid #ffffff30;border-radius:6px;list-style:none;cursor:pointer;font-size:12px}.theme-picker summary::-webkit-details-marker{display:none}.theme-symbol{font-size:17px}.theme-arrow{font-size:11px;opacity:.65}.theme-menu{position:absolute;top:calc(100% + 8px);right:0;width:210px;padding:7px;background:#163b3b;border:1px solid #ffffff30;border-radius:8px;box-shadow:0 8px 24px #0003}.theme-choice{width:100%;height:auto;display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:10px 11px;color:#e1ece8;text-align:left;border:0;font-weight:400}.theme-choice small{grid-column:1;color:#afc4bc}.theme-choice b{grid-column:2;grid-row:1/span 2;color:#8bd7b9}.theme-choice:hover,.theme-choice.active{background:#2b6657}#notice:empty{display:none}#notice:not(:empty){position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1000;width:max-content;max-width:min(460px,calc(100vw - 32px));padding:14px 22px;border:1px solid #d6c69a;border-radius:8px;background:#fff6dd;color:#5c481c;box-shadow:0 6px 28px #0003;text-align:center;font-size:14px;overflow-wrap:anywhere;cursor:pointer}[data-theme=dark] #notice:not(:empty){background:#463b25;color:#f4e3b3;border-color:#786641}
/* Responsive layout only; control sizes and colors stay global. */
@media(max-width:1100px){.task-filter label{flex:1 1 140px}.task-totals,#reportTotals{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:12px}}
@media(max-width:900px){body.signed-in header{height:76px;padding:14px 20px}.sidebar{top:76px;transform:translateX(-100%);transition:transform .18s ease}.sidebar:not(.is-open){visibility:hidden}.sidebar.is-open{transform:translateX(0)}body.signed-in main{margin:76px 0 0;padding:16px}body.signed-in #menuToggle{display:inline-flex}.workspace-hint{display:none}}
@media(max-width:650px){header{gap:10px}header p{display:none}body.signed-in header{padding:12px}header h1{font-size:15px;white-space:nowrap}.brand{width:36px;height:36px;font-size:20px}#identity{display:none}section{padding:16px}body.signed-in main{padding:12px}.bar{gap:10px}.task-totals,#reportTotals{grid-template-columns:repeat(2,minmax(0,1fr))}.task-totals strong{font-size:20px}.task-top-row{grid-template-columns:1fr 115px}.task-top-row>label:first-child{grid-column:1/-1}.task-time-row{grid-template-columns:1fr}.task-resource-row{grid-template-columns:1fr auto}.task-resource-row>label:first-child{grid-column:1/-1}#deviceManager .device-filters{grid-template-columns:minmax(0,1fr) minmax(0,120px)}#messageFilter label{flex:1 1 135px}#messageFilter label:nth-child(3){flex-basis:110px}.table table{min-width:600px}.selection-bar .task-actions{margin-left:0}.copy-token{gap:5px}.copy-token span{font-size:10px}.panel>.bar>h2{font-size:16px}}

/* Shared short-input and confirmation dialog. */
.ui-dialog{width:min(460px,calc(100vw - 32px))}.ui-dialog form{gap:14px}.ui-dialog h2{margin:0}.ui-dialog p{margin:0;white-space:pre-wrap}.ui-dialog textarea{min-height:110px}.ui-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:6px}

#remoteControlDialog{width:min(1050px,96vw)}.remote-grid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1fr);gap:18px}#remoteImage{display:block;max-width:100%;max-height:60vh;margin:auto;cursor:crosshair}.remote-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.remote-coordinates{display:flex;gap:8px}.remote-coordinates label{min-width:0}#remoteControlDialog pre{max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}#remoteRules{width:220px}#phoneDeviceRows table{min-width:1250px}@media(max-width:700px){.remote-grid{grid-template-columns:1fr}.remote-fields{grid-template-columns:1fr 1fr}}

.remote-inline{display:inline-flex;flex-direction:row;align-items:center;gap:6px;margin:0;white-space:nowrap}.remote-inline input[type=checkbox]{width:16px;height:16px;margin:0}.remote-inline select{width:auto}#remoteOwnerStatus{font-weight:600}#remoteControlDialog code{display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px;margin:8px 0}

.remote-fields label[hidden]{display:none}.remote-fields .remote-coordinates:has(label:not([hidden])){display:grid}.remote-fields .remote-coordinates:not(:has(label:not([hidden]))){display:none}

.task-timing{display:flex;flex-direction:column;gap:1px;font-size:11px;line-height:1.4;text-align:left;color:var(--muted)}.task-timing span{white-space:nowrap}

/* Proxy settings reuse global controls, toolbars, tables and dialogs. */
.proxy-subtitle{margin:5px 0 0}.proxy-preview-tag{font-size:12px;color:var(--muted);white-space:nowrap}.proxy-summary{display:flex;gap:28px;flex-wrap:wrap;padding:4px 0 14px;border-bottom:1px solid var(--border);font-size:13px;color:var(--muted)}.proxy-summary strong{color:var(--text);font-size:18px;margin-left:8px;font-weight:600}.proxy-filters>label:first-child{flex:2}.proxy-filters>label:nth-child(2){flex:1}.proxy-filters>.pages{margin:0 0 0 auto;flex-wrap:nowrap}#proxyResourceRows table{min-width:900px}#proxyResourceRows th:first-child{width:34px}#proxyResourceRows .row-actions{flex-wrap:nowrap}#proxySettings .proxy-section-heading{margin:24px 0 10px}#proxySettings .proxy-footnote{margin:14px 0 0;font-size:12px}#proxyEditor{width:min(560px,94vw)}#proxyEditorForm{max-width:none}#proxyEditorFields{display:grid;gap:12px}#proxyEditorFields .proxy-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}#proxyEditorFields .proxy-member-list{max-height:260px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px}#proxySettings .proxy-pending{color:var(--muted)}@media(max-width:650px){.proxy-filters>.pages{margin-left:0}.proxy-summary{gap:16px}.proxy-preview-tag{white-space:normal}#proxyEditorFields .proxy-field-grid,#proxyEditorFields .proxy-member-list{grid-template-columns:1fr}}


.human-browser-dialog{width:min(1180px,94vw);max-width:94vw}.human-browser-image{display:block;max-width:100%;max-height:65vh;width:auto;height:auto;margin:0 auto 10px;cursor:crosshair;border:1px solid var(--border)}.human-browser-busy{pointer-events:none;opacity:.75}.human-browser-dialog>input{max-width:480px;margin-bottom:10px}

/* Protocol task counts remain on one row; narrow screens scroll horizontally. */
#taskRows.protocol-task-table table{table-layout:fixed;min-width:1230px;width:100%}
#taskRows.protocol-task-table th,#taskRows.protocol-task-table td{width:52px;padding:10px 5px;font-size:12px;white-space:nowrap}
#taskRows.protocol-task-table th:nth-child(1),#taskRows.protocol-task-table td:nth-child(1){width:26px}
#taskRows.protocol-task-table th:nth-child(2),#taskRows.protocol-task-table td:nth-child(2){width:40px}
#taskRows.protocol-task-table th:nth-child(3),#taskRows.protocol-task-table td:nth-child(3){width:105px}
#taskRows.protocol-task-table th:nth-child(4),#taskRows.protocol-task-table td:nth-child(4){width:120px}
#taskRows.protocol-task-table th:nth-child(5),#taskRows.protocol-task-table td:nth-child(5){width:45px}
#taskRows.protocol-task-table th:nth-child(6),#taskRows.protocol-task-table td:nth-child(6){width:98px}
#taskRows.protocol-task-table th:nth-child(7),#taskRows.protocol-task-table td:nth-child(7){width:180px}
#taskRows.protocol-task-table th:last-child,#taskRows.protocol-task-table td:last-child{width:150px;overflow:visible}
#taskRows.protocol-task-table .task-timing{display:block;text-align:center;font-size:inherit;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#taskRows.protocol-task-table .task-content-trigger{font-size:12px}

#taskRows.protocol-task-table th:nth-child(8),#taskRows.protocol-task-table td:nth-child(8){width:76px}

#taskRows.protocol-task-table th:nth-child(13),#taskRows.protocol-task-table td:nth-child(13){width:74px}

.device-guard-alerts{position:sticky;top:0;z-index:8;padding:10px 14px;margin-bottom:12px;border:1px solid #b65b52;border-radius:6px;background:var(--surface);color:#b33d35;font-size:13px}.device-guard-alerts>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 0}.device-guard-alerts button{height:auto;white-space:nowrap;padding:3px 8px}#deviceGuardEvidence{white-space:pre-wrap;max-height:45vh;overflow:auto;font-size:12px}


#managedDeviceRows td{padding-top:6px;padding-bottom:6px}.protocol-check-dialog{width:min(560px,92vw)}.protocol-check-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:65vh;overflow:auto;font:inherit;line-height:1.6;text-align:left}

.page-size-control{display:inline-flex;flex-direction:row;align-items:center;gap:5px;margin-left:8px;font-size:12px;font-weight:400;white-space:nowrap}.page-size-control select{width:auto;height:30px;padding:3px 7px}
/* Keep all six task totals together; compact filters leave room for quick dates. */
#taskTotals{grid-template-columns:repeat(6,minmax(85px,140px));max-width:840px;overflow-x:auto}
#taskTotals>div{padding:6px 12px;min-width:0}
#taskTotals strong,#taskTotals .stat-download{font-size:21px;line-height:1.25}
#taskTotals span{white-space:nowrap}
#taskFilter{gap:8px;align-items:flex-end}
#taskFilter label{flex:0 1 110px;width:110px}
#taskFilter label:first-child{flex:1 1 160px;max-width:220px}
#taskFilter label:nth-child(4),#taskFilter label:nth-child(5){flex-basis:130px;width:130px}
#taskFilter input,#taskFilter select{width:100%;min-width:0;padding:8px 10px}
#taskFilter>button{align-self:flex-end;white-space:nowrap;padding:8px 10px}
.task-date-presets{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.task-date-presets button{white-space:nowrap;padding:8px 10px}
@media(max-width:650px){#taskTotals{grid-template-columns:repeat(6,minmax(80px,1fr))}#taskFilter label:first-child{max-width:none}#taskFilter label{flex-grow:1}.task-date-presets{width:100%}}
/* Compact task status popover next to the triggering count. */
#taskStatusDialog{position:fixed;inset:auto;margin:0;width:240px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);padding:12px;z-index:100;box-shadow:0 5px 20px #0003}
#taskStatusDialog>.bar{margin-bottom:6px;gap:8px}
#taskStatusTitle{font-size:14px;line-height:1.4;margin:0}
#taskStatusClose{height:24px;width:24px;padding:0;flex:none}
#taskStatusCounts{gap:2px;margin-top:6px;font-size:13px}
#taskStatusCounts>div{padding:4px 0;align-items:center;gap:12px}
#taskStatusCounts strong{font-size:14px;line-height:1.4}
.wallet-header{display:flex;align-items:center;gap:10px;font-size:13px;white-space:nowrap}.wallet-header button{background:var(--accent-soft);color:var(--accent)}#walletDialog{width:min(560px,calc(100vw - 24px));padding:18px}#walletDialog h2{font-size:18px}#walletDialog form{margin:12px 0}#walletDialog p{font-size:13px;margin:6px 0}.wallet-order{border-top:1px solid var(--border);padding:12px 0;overflow-wrap:anywhere}.wallet-order canvas{display:block;max-width:160px;height:auto;margin:8px 0}.wallet-order button{margin-right:6px;font-size:12px}@media(max-width:650px){header{flex-wrap:wrap}.wallet-header{font-size:12px;gap:6px}}
