/* Readable workflow surfaces; the approved table image is never restyled. */
#analystDesk{width:min(1120px,94vw);max-width:94vw;max-height:92dvh;margin:auto;padding:0;border:1px solid #477183;border-radius:14px;background:#07121f;color:#e6f3f8;box-shadow:0 24px 100px #000b;overflow:auto;font:14px/1.6 system-ui,sans-serif}
#analystDesk::backdrop{background:#02080dd9;backdrop-filter:blur(5px)}
#analystDesk>header{position:sticky;top:0;z-index:5;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#0b1d2b;border-bottom:1px solid #305065}
#analystDesk>header h2{font-size:26px;letter-spacing:-.5px;line-height:1.2;margin:6px 0 0}
#analystDesk>header small{color:#85c5d9;font:11px ui-monospace,monospace;letter-spacing:.12em}
#analystDesk button,#analystDesk select,#analystDesk input,#analystDesk textarea,#analystDesk a{font:inherit}
#analystDesk button,#analystDesk .analyst-import{border:1px solid #34586b;background:#102a3b;color:#c8effa;border-radius:7px;padding:9px 13px;min-height:42px;cursor:pointer}
#analystDesk button:hover{border-color:#75ceeb;background:#183d51}
#analystDesk button:disabled{opacity:.45;cursor:default}
#analystDesk button:focus-visible,#analystDesk input:focus-visible,#analystDesk select:focus-visible,#analystDesk textarea:focus-visible,#goldSourcesDialog input:focus-visible{outline:2px solid #7ee2f9;outline-offset:3px}
#analystDeskClose{width:42px;height:42px;font-size:25px!important;padding:0!important;flex-shrink:0}
#analystDeskNav{display:flex;flex-wrap:wrap;gap:7px;padding:14px 24px 0}
#analystDeskNav [aria-pressed=true]{background:#154258;color:#e5f9ff;border-color:#83cfe5}
#analystDesk #analystStorage{margin:8px 24px 0;font-size:12px;color:#a1c3d3;min-height:20px}
#analystDeskBody{padding:20px 24px 28px;overflow-wrap:anywhere}
#analystDesk h3{font-size:19px;line-height:1.35;margin:0 0 12px}
#analystDesk h4{font-size:16px;margin:12px 0}
#analystDesk p{margin:10px 0;color:#adc8d7}
#analystDesk label{display:flex;flex-direction:column;gap:6px;color:#c8dfe9;font-size:13px}
#analystDesk input:not([type=file]),#analystDesk select,#analystDesk textarea{border:1px solid #31566c;background:#071727;color:#e6f3f8;border-radius:7px;padding:10px 12px;min-width:0;width:100%;box-sizing:border-box}
#analystDesk textarea{resize:vertical;line-height:1.7}
#analystDesk a{color:#9bdcf0;text-decoration:none}
.analyst-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.analyst-section-head small{font:11px ui-monospace,monospace;color:#85c5d9;letter-spacing:.08em}
.analyst-section-head h3{margin:7px 0 0!important;font-size:24px!important}
.analyst-section-head>select{max-width:330px}
.analyst-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0}
.analyst-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.analyst-metrics>div{padding:16px;border:1px solid #2f5066;border-radius:8px;background:linear-gradient(140deg,#102a3b,#0a1927);min-width:0}
.analyst-metrics b{display:block;font-size:27px;line-height:1.1;color:#e5f7ff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.analyst-metrics span{display:block;color:#9fc2d5;font-size:12px;line-height:1.4;margin-top:8px}
.analyst-note{font-size:12px;line-height:1.75;color:#a2becf!important}
.analyst-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.analyst-panel{border:1px solid #2f5066;background:#0a1b2a;border-radius:9px;padding:20px;margin:18px 0;min-width:0}
.analyst-columns>.analyst-panel{margin:0}
.analyst-family-list{display:grid;gap:6px}
.analyst-family-list button{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:14px}
.analyst-family-list b{font-variant-numeric:tabular-nums}
.analyst-timeline{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;align-items:end;margin-top:20px}
.analyst-timeline button{display:flex;flex-direction:column;align-items:center;justify-content:end;min-height:128px!important;gap:7px;padding:8px 3px!important;background:#0b1c2a!important;border:0!important;min-width:0}
.analyst-timeline button>span{width:70%;max-width:70px;display:block;background:linear-gradient(#7bdeec,#258ca6);border-radius:4px 4px 0 0;min-height:3px}
.analyst-timeline b{font-size:12px;font-variant-numeric:tabular-nums}
.analyst-timeline small{color:#a3c6d6;font:11px ui-monospace,monospace}
.analyst-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.analyst-mini-card{border:1px solid #294d63;border-radius:8px;padding:16px;min-width:0;background:#0a1b29}
.analyst-mini-card>small{font-size:11px;color:#8bcfe0}
.analyst-mini-card h3{font-size:16px!important;margin:10px 0!important;line-height:1.5!important}
.analyst-mini-card p{font-size:12px}
.analyst-mini-card>div{display:flex;gap:6px;flex-wrap:wrap}
.analyst-mini-card button{font-size:12px!important;padding:7px 10px!important;min-height:36px!important}
#analystComparison{overflow:auto}
#analystComparison table{width:100%;border-collapse:collapse;margin-top:14px;font-size:12px}
#analystComparison th,#analystComparison td{border-bottom:1px solid #27485c;padding:9px;text-align:left}
.analyst-inline-form{display:flex;gap:10px;align-items:end;margin:20px 0;padding:16px;background:#0c2333;border-radius:8px}
.analyst-inline-form label{flex:1;min-width:0}
.analyst-case-fields{display:grid;gap:14px}
.analyst-workspace-list{display:grid;gap:10px;margin-top:24px}
.analyst-workspace-row{display:flex;justify-content:space-between;align-items:center;gap:18px;border:1px solid #2b4c63;border-radius:8px;padding:16px;background:#0a1b29}
.analyst-workspace-row>div{min-width:0;flex:1}
.analyst-workspace-row h3{font-size:16px!important;margin:7px 0!important}
.analyst-workspace-row small{font-size:11px;color:#93cadc}
.analyst-workspace-row p{font-size:12px;margin:4px 0!important}
.analyst-workspace-row nav{display:flex;gap:6px;flex-wrap:wrap;flex-shrink:0}
.analyst-watch-list{display:grid;gap:12px}
.analyst-watch-card{border:1px solid #315269;border-radius:9px;padding:20px;background:#0b1e2d}
.analyst-watch-card>div{display:flex;justify-content:space-between;align-items:start;gap:16px}
.analyst-watch-card>div span{color:#84dce9;font-size:13px}
.analyst-watch-card small{font-size:12px;color:#9ac0d0}
.analyst-watch-card nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.analyst-health-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.analyst-health-card{border:1px solid #34556a;border-radius:8px;padding:18px;background:#0c1d2b}
.analyst-health-card h3{font-size:16px!important}
.analyst-health-card>b{font-size:13px;color:#83d6d3}
.analyst-health-card[data-health=error]>b,.analyst-health-card[data-health=cached]>b{color:#e4c17f}
.analyst-health-card small{display:block;color:#8fb1c5;font-size:12px}
.analyst-health-card p{font-size:12px}
.analyst-health-card>div{display:flex;align-items:center;gap:14px;margin-top:14px}
.analyst-health-card details{font-size:12px;color:#b4cbd7;margin-top:10px}
.analyst-guide{padding-left:22px;display:grid;gap:18px}
.analyst-guide b{color:#d5f0f7}
.analyst-import{display:inline-flex!important;flex-direction:row!important;cursor:pointer;min-width:0;max-width:100%;box-sizing:border-box}
.analyst-import input{max-width:190px;font-size:12px!important}
.analyst-empty{padding:24px;border:1px dashed #31576d;border-radius:8px;background:#081927;margin:16px 0}
.analyst-empty h3{font-size:18px;margin:0 0 8px}
.analyst-empty p{font-size:13px;color:#a6c3d3;line-height:1.8}

#goldSourcesDialog .gold-dialog-body{font-size:14px}
.analyst-query-help{font-size:12px;line-height:1.7;color:#9ec1d1;margin:8px 0 16px}
#analystAdvanced{border:1px solid #34586a;background:#091d2b;border-radius:8px;padding:12px 16px;margin:16px 0}
#analystAdvanced summary{cursor:pointer;font-size:14px;color:#c0e8f4;min-height:28px}
#analystAdvanced>p{font-size:12px;line-height:1.7;color:#a6c4d2}
.analyst-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.analyst-filter-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#bbd9e5}
#goldSourcesDialog .analyst-filter-grid input,#goldSourcesDialog .analyst-filter-grid select{width:100%;min-width:0;font:14px system-ui;padding:10px;background:#071727;color:#e4f3f8;border:1px solid #355a6f;border-radius:6px;box-sizing:border-box;min-height:42px}
.analyst-checks{display:flex;flex-wrap:wrap;gap:16px;margin-top:18px}
.analyst-checks label{display:flex;align-items:center;gap:7px;font-size:12px;color:#b4d2df}
.analyst-checks input{width:18px!important;height:18px;margin:0!important;accent-color:#76dce8}
#analystResultStats>div{padding:12px}
#analystResultStats b{font-size:23px}
#analystSelection{display:flex;gap:7px;flex-wrap:wrap;align-items:center;padding:12px;border:1px solid #456b80;background:#0f2b3c;border-radius:8px;margin:16px 0}
#analystSelectionCount{font-size:12px;color:#c2e4ed;flex-basis:100%}
#analystSelection button,#analystSelection select{font:12px system-ui;min-height:36px;padding:8px 10px;background:#0a2030;border:1px solid #456b80;color:#c9eef5;border-radius:6px}
#analystExportFormat{padding:10px;font:13px system-ui;background:#091f2e;color:#d4eff5;border:1px solid #345b6e;border-radius:6px;max-width:100%}
.analyst-source-card{overflow-wrap:anywhere}
.analyst-source-card .analyst-pick{display:flex;align-items:center;gap:8px;margin:0;min-width:0;font-size:12px}
.analyst-pick input{width:18px!important;height:18px;margin:0!important;accent-color:#78d9e7;flex-shrink:0}
.analyst-source-card .analyst-pick span{min-width:0;color:#95cedc}
.analyst-source-card h3{font-size:18px!important;line-height:1.5!important}
.analyst-source-card p{font-size:13px!important;line-height:1.75!important}
.analyst-source-card time{font-size:12px!important}
.analyst-badges{display:flex;flex-wrap:wrap;gap:6px!important;margin:8px 0}
.analyst-badges>span{background:#0d2737;border:1px solid #315369;color:#b5dce8;border-radius:5px;padding:4px 7px;font-size:11px}
.analyst-badges>[data-quality=unlocated],.analyst-badges>[data-quality=approximate],.analyst-badges>[data-quality=coded]{color:#d8c499;border-color:#75674655}
.analyst-badges>.analyst-priority{color:#95e1f0}
.analyst-group{border-top:1px solid #2c4d61;margin-top:18px;padding-top:12px;font-size:12px;line-height:1.6}
.analyst-group summary{color:#9cdaea;cursor:pointer;padding:6px 0}
.analyst-group button{display:block;max-width:100%;text-align:left;margin:6px 0!important;font-size:12px!important;line-height:1.6!important;white-space:normal}
#analystMapBar{margin:14px 0 18px}
.analyst-map-presets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.analyst-map-presets button{font:12px system-ui;background:#0b2737;border:1px solid #345c70;color:#b9e1ed;border-radius:6px;min-height:35px;padding:7px 10px;cursor:pointer}
.analyst-map-presets [aria-pressed=true]{border-color:#7acede;background:#184052}
#analystMapFilterState{display:flex;gap:7px;align-items:start;flex-wrap:wrap;font-size:12px;line-height:1.7;color:#a3c9d9}
#analystMapClear{font:12px system-ui;background:#183849;color:#c8eff7;border:1px solid #527487;border-radius:5px;padding:5px 9px;cursor:pointer;flex-shrink:0}
.analyst-row-review{color:#96d5e1!important;font-size:12px!important;border-top:1px solid #2f5066;padding-top:10px}
.analyst-record-tools{border-color:#447687!important;background:#0c2535!important}
.analyst-record-tools>h2{font-size:19px!important;color:#d6f4fb}
.analyst-record-fields{display:grid;grid-template-columns:1fr 1fr 2fr;gap:12px}
.analyst-record-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#b5d7e4}
.analyst-record-fields input,.analyst-record-fields select{width:100%;min-width:0;padding:10px;border:1px solid #406579;border-radius:6px;background:#061925;color:#e2f1f6;font:14px system-ui;min-height:42px;box-sizing:border-box}
#analystRecordStatus{font-size:12px;color:#9fcad9}
.analyst-record-tools button{font-size:13px!important;min-height:38px}
body.flat-command:not(.reference-gold-table) #flatMap{grid-template-rows:auto auto minmax(0,1fr) auto auto!important}
body.flat-command:not(.reference-gold-table) #flatMap .flat-viewport{min-height:0!important;height:auto!important}
body.flat-command:not(.reference-gold-table) #flatMap .flat-head{display:grid!important;grid-template-columns:1fr auto;gap:12px;align-items:center}
body.flat-command:not(.reference-gold-table) .flat-head-actions{display:none!important}
body.flat-command:not(.reference-gold-table) .gold-command-actions{display:flex;gap:7px}
body.flat-command:not(.reference-gold-table) .gold-command-actions button{min-height:42px;font-size:12px;padding:10px 14px}
body.flat-command:not(.reference-gold-table) #goldCommandDock{display:flex;position:static;gap:5px;flex-shrink:0;padding:6px;background:#091c2b;border:1px solid #365c6f;border-radius:8px}
#goldPhysicalControls[hidden]{display:none!important}
@media(max-width:820px){
 #analystDesk{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0;border:0;margin:0;padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box}
 #analystDesk>header{padding:16px}
 #analystDesk>header h2{font-size:22px}
 #analystDeskNav{padding:12px 16px 0;gap:6px}
 #analystDeskNav button{font-size:12px;padding:8px 10px;min-height:40px}
 #analystDesk #analystStorage{margin:9px 16px 0}
 #analystDeskBody{padding:18px 16px 30px}
 .analyst-section-head{flex-direction:column;align-items:stretch;gap:12px}
 .analyst-section-head>select{max-width:none}
 .analyst-section-head h3{font-size:22px!important}
 .analyst-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .analyst-metrics>div{padding:13px}
 .analyst-metrics b{font-size:25px}
 .analyst-metrics span{font-size:12px}
 .analyst-columns,.analyst-card-grid,.analyst-health-grid{grid-template-columns:1fr}
 .analyst-panel{padding:16px}
 .analyst-inline-form{flex-direction:column;align-items:stretch;padding:13px}
 .analyst-workspace-row{flex-direction:column;align-items:stretch;padding:14px}
 .analyst-watch-card{padding:16px}
 .analyst-watch-card>div{flex-direction:column;gap:4px}
 .analyst-watch-card nav button{flex:1 1 140px;text-align:center}
 .analyst-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #analystAdvanced{padding:12px}
 .analyst-checks{display:grid;gap:12px}
 #analystSelection button{flex:1 1 135px}
 #analystSelection select{width:100%}
 .analyst-source-card>div:first-child{align-items:start!important;gap:10px}
 .analyst-source-card time{max-width:130px;text-align:right;flex-shrink:0}
 .analyst-source-card .analyst-pick span{font-size:11px}
 .analyst-source-card h3{font-size:17px!important}
 .analyst-record-fields{grid-template-columns:1fr 1fr}
 .analyst-record-fields label:last-child{grid-column:1/-1}
 .analyst-record-tools .analyst-actions button{flex:1 1 140px}
 .analyst-import{flex-direction:column!important;align-items:stretch}
 #analystDesk .analyst-import input{width:100%;max-width:100%;min-width:0}
 body.flat-command:not(.reference-gold-table) #flatMap .flat-head{grid-template-columns:1fr!important;padding:13px 14px;gap:12px}
 body.flat-command:not(.reference-gold-table) .globe-stage{height:auto!important;min-height:0!important}
 body.flat-command:not(.reference-gold-table) #flatMap{position:relative!important;inset:auto!important;grid-template-rows:auto auto minmax(320px,48dvh) auto auto!important}
 body.flat-command:not(.reference-gold-table) .gold-command-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}
 body.flat-command:not(.reference-gold-table) .gold-command-actions button{font-size:11px;padding:8px 5px;min-height:40px}
 body.flat-command:not(.reference-gold-table) #goldCommandDock{justify-content:center;max-width:100%;width:100%;box-sizing:border-box}
 body.flat-command:not(.reference-gold-table) #referenceGuide{display:none}
}
@media(prefers-reduced-motion:reduce){.analyst-timeline *{transition:none!important}}
