:root{--ink:#202139;--muted:#777b8f;--faint:#9ba0ad;--stroke:#e7e9ef;--bg:#f8f8fc;--paper:#fff;--violet:#7554cb;--violet-2:#a58de0;--violet-faint:#f2eeff;--navy:#18152e;--navy2:#23203e;--green:#158663;--amber:#a57524;--red:#c84b60;--shadow:0 6px 26px rgba(32,28,74,.045)}
*{box-sizing:border-box}html{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;color:var(--ink);background:var(--bg)}body{margin:0;overflow-x:hidden}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--violet);outline-offset:2px}.app-shell{min-height:100vh;display:flex}.sidebar{position:sticky;top:0;width:258px;flex:0 0 258px;height:100vh;background:var(--navy);color:#d7d2e9;padding:31px 18px 17px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;margin:0 8px 40px}.brand-mark{width:36px;height:38px;border:1px solid #9380d9;border-radius:10px;display:grid;place-items:center;color:#b9a3ff;font-size:27px;font-weight:800;transform:skew(-4deg)}.brand-mark span{font-family:Georgia,serif;transform:translateY(-1px)}.brand-overline{font-size:8.7px;letter-spacing:1.6px;color:#a9a5bf;margin-bottom:7px;font-weight:700}.brand-name{font-size:16px;letter-spacing:1.5px;color:#fff;font-weight:800;white-space:nowrap}.brand-name span{display:block;font-size:10px;font-weight:500;letter-spacing:2.2px;color:#c1b8e3;margin-top:4px}.workspace-card{display:flex;gap:11px;align-items:center;background:#292540;border:1px solid #383453;border-radius:11px;padding:15px;margin:0 1px 34px}.workspace-bullet{height:11px;width:11px;border-radius:50%;background:#b498ed;box-shadow:0 0 0 5px #463a72;flex-shrink:0}.workspace-card b,.sidebar-footer b{display:block;font-size:12px;color:#f5f2ff;font-weight:600}.workspace-card small,.sidebar-footer small{display:block;margin-top:5px;font-size:10px;color:#b4afc5}.side-section{font-size:10px;font-weight:700;color:#77718e;letter-spacing:1.7px;margin:0 15px 13px}.side-section-bottom{margin-top:36px}.sidebar nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:13px;border:0;border-radius:8px;background:transparent;text-align:left;color:#b8b5cc;font-size:12.5px;font-weight:520;padding:13px 13px;width:100%;position:relative;white-space:nowrap}.nav-item:hover{background:#302b4e;color:#fff}.nav-item.active{background:#403461;color:#fff;box-shadow:inset 3px 0 0 #ba9dfb}.nav-icon{width:19px;text-align:center;font-size:18px;color:#aa9ccc}.nav-item.active .nav-icon{color:#e7daff}.nav-push{margin-left:auto;font-size:10px;color:#9a92b0}.sidebar-footer{display:flex;align-items:center;gap:12px;margin-top:auto;padding:18px 6px 14px;border-top:1px solid #38334e}.status-dot{width:8px;height:8px;border-radius:50%;background:#70ccad;box-shadow:0 0 0 4px rgba(112,204,173,.12)}.sidebar-legal{font-size:10px;line-height:1.8;color:#77718e;padding:5px 6px}.main{flex:1;min-width:0}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--stroke);display:flex;justify-content:space-between;align-items:center;padding:0 42px;gap:15px}.top-left,.top-right{display:flex;align-items:center;gap:13px}.top-breadcrumb{font-size:12px;color:#9292a4}.top-sep{color:#b6b7c2}.top-left #crumb-view{font-weight:600;font-size:12px}.top-right{gap:19px}.top-dataset{font-size:11.5px;color:#626778}.mini-pulse{display:inline-block;background:#21a078;width:6px;height:6px;border-radius:50%;margin-right:7px}.avatar{width:33px;height:33px;border-radius:50%;background:#ded7f3;color:#624ba0;display:grid;place-items:center;font-size:11px;font-weight:800}.content{padding:38px clamp(24px,3.25vw,55px) 28px;max-width:1900px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:23px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7a5cc7;font-weight:800;margin-bottom:12px}h1{font-size:29px;letter-spacing:-1px;margin:0;font-weight:700}h2{font-size:17px;letter-spacing:-.35px;font-weight:700;margin:0}h3{margin:0;font-size:14px}.page-heading p{color:#85889b;font-size:12px;margin:9px 0 0}.heading-status{font-size:11px;background:#fff;border:1px solid var(--stroke);border-radius:100px;padding:10px 14px;color:#61677d;position:relative;white-space:nowrap}.outline-dot{color:#d49d2d;margin-right:7px}.chevron{margin-left:11px}.status-tooltip{display:none;position:absolute;top:38px;right:0;background:#26203a;color:#fff;padding:14px;width:290px;white-space:normal;line-height:1.5;border-radius:9px;z-index:30;box-shadow:0 9px 25px #0003}.heading-status:hover .status-tooltip{display:block}.filter-surface{background:#fff;border:1px solid var(--stroke);border-radius:11px;padding:17px 20px 12px;box-shadow:var(--shadow);margin-bottom:25px}.filter-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.filter-group{min-width:100px;flex:1}.filter-group-wide{flex:1.5;min-width:165px}.filter-group label{display:block;color:#8b8b9d;font-size:9px;letter-spacing:1.15px;font-weight:800;margin-bottom:8px}.filter-group select,.filter-group input{height:37px;width:100%;border:1px solid #e5e6ee;border-radius:7px;background:#fcfcff;padding:0 10px;color:#414358;font-size:11px;min-width:0}.filter-group input[type=month]{padding:0 7px}.filter-group-scope{flex:1.4;min-width:205px}.segmented{display:flex;border:1px solid #e5e6ee;border-radius:7px;overflow:hidden;height:37px;padding:3px;background:#fcfcff}.segmented button{flex:1;border:0;background:transparent;color:#77768b;font-size:11px;border-radius:5px;padding:5px 6px;white-space:nowrap}.segmented button.active{background:#ede6fa;color:#6746b5;font-weight:800}.filter-row-low{justify-content:space-between;align-items:center;margin-top:13px;border-top:1px solid #f0f0f4;padding-top:12px;gap:12px}.search-box{display:flex;align-items:center;gap:8px;color:#918da9;flex:1;max-width:450px}.search-box span{font-size:19px}.search-box input{width:100%;border:0;background:transparent;color:#414255;font-size:11px;outline:0}.search-box input::placeholder{color:#a0a2b0}.filter-caption{font-size:10.5px;color:#8d8fa0}.text-button{border:0;background:transparent;color:#7355bf;font-size:11px;font-weight:700}.btn{height:35px;border:1px solid #e0e1e8;border-radius:7px;padding:0 13px;background:#fff;color:#504d68;font-size:11.5px;font-weight:650;display:inline-flex;align-items:center;gap:7px;justify-content:center;white-space:nowrap}.btn:hover{border-color:#b09be9;color:#6543bd}.btn.btn-primary{background:#7151c6;border-color:#7151c6;color:#fff}.btn.btn-primary:hover{background:#6242b5}.btn.btn-ghost{border-color:#ddd8ed}.btn.btn-danger{color:var(--red)}.icon-button{border:0;background:transparent;font-size:19px;color:#626779}.mobile-only{display:none}.panel{background:#fff;border:1px solid var(--stroke);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.panel-pad{padding:21px 23px}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.panel-header .subtle{margin:6px 0 0}.subtle{color:#9596a5;font-size:11px;line-height:1.5}.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e8e1f7;border-radius:5px;background:#f7f3ff;padding:4px 7px;color:#7858bf;font-size:10px;font-weight:700}.chip.muted{color:#697180;background:#f5f6f9;border-color:#eceef4}.chip.green{background:#e7f8f1;color:#19775b;border-color:#d5f1e3}.chip.amber{background:#fff5e0;color:#986e25;border-color:#fdeac5}.chip.red{background:#fceff1;color:#bd485e;border-color:#fad9df}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.kpi{padding:19px 20px;min-height:144px;background:#fff;border:1px solid var(--stroke);border-radius:11px;box-shadow:var(--shadow)}.kpi-top{display:flex;align-items:center;justify-content:space-between;color:#81859a;gap:5px}.kpi-label{font-size:11px;font-weight:600}.kpi-icon{font-size:17px;color:#977dc8}.kpi-value{font-size:26px;letter-spacing:-.8px;line-height:1.2;color:#26243d;font-weight:730;margin-top:15px}.kpi-foot{font-size:10px;color:#9899a9;margin-top:9px}.kpi-foot .up{color:#148566;font-weight:750}.kpi-foot .warn{color:#aa7424;font-weight:750}.cols-2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:17px;margin-bottom:18px}.cols-2.equal{grid-template-columns:1fr 1fr}.chart-wrap{min-height:260px;position:relative}.chart-wrap svg{width:100%;height:270px;overflow:visible}.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:10px;color:#686a7d}.legend-item{display:flex;align-items:center;gap:6px}.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.svg-label{font:10px Inter,"Segoe UI",sans-serif;fill:#9598a9}.bar-list{display:grid;gap:14px}.bar-top{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:11px}.bar-top b{font-weight:650}.bar-top span{font-weight:700;font-size:11px}.bar-track{height:6px;border-radius:100px;background:#f0ecf6;overflow:hidden}.bar-fill{height:100%;background:#8768d6;border-radius:100px}.bar-row{cursor:pointer}.bar-row:hover .bar-top b{color:#6c4ac2}.footnote{color:#999dad;font-size:10px;line-height:1.5;margin-top:16px}.table-wrap{overflow-x:auto;max-width:100%}.data-table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}.data-table th{background:#fafafc;color:#777c8e;font-weight:750;font-size:10px;letter-spacing:.25px;text-align:left;padding:13px 13px;border-bottom:1px solid #e8e8f0}.data-table td{padding:12px 13px;border-bottom:1px solid #f0f1f5;color:#4c5062;max-width:320px;overflow:hidden;text-overflow:ellipsis}.data-table tbody tr:hover{background:#faf9ff}.data-table th.sortable{cursor:pointer}.data-table th.sortable:hover{color:#6a50bc}.data-table tr:last-child td{border-bottom:0}.num{text-align:right!important;font-variant-numeric:tabular-nums}.num.negative{color:#bc4b62}.linklike{border:0;background:none;padding:0;color:#6d50bb;font-weight:700;font-size:11px;text-align:left}.linklike:hover{text-decoration:underline}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}.toolbar-section{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.toolbar label{font-size:10px;color:#83889a;font-weight:700}.toolbar select{height:35px;min-width:130px;max-width:240px;border:1px solid #e3e4ed;border-radius:7px;color:#45475e;padding:0 9px;background:#fff;font-size:11px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:8px 0 16px}.section-title p{margin:5px 0 0;color:#9597a7;font-size:11px}.empty{padding:60px 18px;text-align:center;color:#86889a}.empty strong{display:block;color:#55536d;font-size:15px;margin-bottom:8px}.loading-panel{padding:80px;text-align:center;color:#8a849a}.page-footer{margin-top:25px;border-top:1px solid #e5e6ed;padding-top:16px;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;color:#a3a4b2;font-size:9px}.pill-stat{display:inline-block;padding:5px 9px;border-radius:16px;background:#f6f4fb;color:#8a70b9;font-size:10px;font-weight:750}.callout-line{border-left:3px solid #b79cec;padding:10px 12px;background:#faf8ff;font-size:11px;line-height:1.65;color:#66647a;border-radius:0 6px 6px 0;margin:12px 0 19px}.callout-line.warning{border-left-color:#d9a65b;background:#fffbf3}.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;border-top:1px solid #edf0f6}.pager small{color:#8a8d9c}.pager-actions{display:flex;align-items:center;gap:7px}.pager button{background:#fff;border:1px solid #e5e5ed;border-radius:6px;padding:7px 11px;color:#55556e}.pager button:disabled{opacity:.35;cursor:not-allowed}.drawer-backdrop{position:fixed;inset:0;background:rgba(15,13,29,.34);z-index:30}.detail-drawer{position:fixed;right:0;top:0;bottom:0;width:min(580px,96vw);background:#fff;z-index:31;overflow-y:auto;box-shadow:-12px 0 30px #11122822;padding:28px 31px}.hidden{display:none!important}.drawer-header{display:flex;justify-content:space-between;gap:14px;align-items:start;border-bottom:1px solid #e8e9f0;padding-bottom:20px}.drawer-header h2{font-size:21px}.drawer-close{height:32px;width:32px;border-radius:50%;border:1px solid #e6e5ed;background:#fff;font-size:17px}.kv-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.kv{min-width:0}.kv label{display:block;font-size:9px;letter-spacing:.6px;color:#9194a6;text-transform:uppercase;font-weight:750;margin-bottom:5px}.kv span{font-size:12px;color:#48455d;word-break:break-word}.drawer-section{margin-top:23px}.drawer-section h3{color:#5f5585;padding-bottom:10px;border-bottom:1px solid #eeeef3;margin-bottom:13px}.flag-list{display:grid;gap:8px}.flag{font-size:11px;background:#fff8ef;color:#8a6429;padding:10px 12px;border:1px solid #f8eddb;border-radius:7px}.toast-area{position:fixed;right:24px;bottom:24px;z-index:60}.toast{background:#2a2447;color:#fff;padding:13px 17px;border-radius:8px;max-width:420px;margin-top:8px;box-shadow:0 12px 30px #17132b36;font-size:12px}.method-row{padding:15px 0;border-bottom:1px solid #eeeef3}.method-row h3{font-size:12px;color:#48445f;margin-bottom:5px}.method-row p{font-size:11px;line-height:1.6;color:#888b9a;margin:0}.method-row .source-basis{color:#5b536f;margin-top:6px}.quality-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.quality-stat{padding:18px;border:1px solid var(--stroke);border-radius:9px}.quality-stat b{font-size:22px;display:block;margin:12px 0 3px}.quality-stat span{color:#828598;font-size:11px}.quality-list{display:grid;gap:11px;padding-left:18px}.quality-list li{font-size:12px;color:#626579;line-height:1.6}.tab-buttons{display:flex;gap:4px;background:#f7f6fb;border:1px solid #eae7f2;padding:4px;border-radius:8px}.tab-buttons button{border:0;background:transparent;color:#737287;padding:8px 13px;font-size:11px;border-radius:6px}.tab-buttons button.active{background:#fff;color:#6c4dbc;box-shadow:0 1px 5px #3c266011;font-weight:800}.sources-table{font-size:11px;width:100%}.sources-table td:first-child{color:#9294a3;width:31%}.sources-table td{padding:8px 6px;vertical-align:top;border-bottom:1px solid #f1f0f5;word-break:break-word}.layout-note{font-size:10px;color:#9b9cac}.nudge{color:#a47adf}.dot-divider{border-top:1px solid #eeeef4;margin:22px 0}.foot-btn{width:100%;margin-top:14px}.search-inline{height:36px;min-width:180px;border:1px solid #e3e3ee;border-radius:7px;padding:0 10px;color:#55566e}.saveviews{display:flex;align-items:center;gap:8px}.nowrap{white-space:nowrap}.clickable-row{cursor:pointer}.clickable-row:hover{background:#f7f4ff!important}.notice-mini{display:flex;gap:8px;align-items:center;color:#7e7d93;font-size:10px}.monospace{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px}.metric-choice{color:#7f80a0;font-size:10px}.info-band{padding:15px 18px;border:1px solid #e4d9f6;background:#fbf9ff;border-radius:9px;margin:0 0 18px;font-size:11px;line-height:1.65;color:#6d6286}
@media(max-width:1450px){.sidebar{width:240px;flex-basis:240px}.content{padding:27px 30px}.topbar{padding:0 30px}.kpi{padding:16px 17px}.filter-group-scope{flex:1.8}.cols-2{grid-template-columns:1.4fr 1fr}}
@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.cols-2{grid-template-columns:1fr}.filter-group{min-width:150px}.sidebar{width:220px;flex-basis:220px}.brand-name{font-size:14px}}
@media(max-width:800px){.sidebar{position:fixed;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 30px #0002}.sidebar.open{transform:translateX(0)}.main{width:100%}.mobile-only{display:inline-block}.topbar{height:60px;padding:0 18px}.top-dataset{display:none}.content{padding:25px 16px}.page-heading{align-items:start}.heading-status{display:none}.filter-group{min-width:calc(50% - 12px)}.filter-group-wide{min-width:calc(50% - 12px)}.filter-group-scope{min-width:100%}.kpi-grid{gap:9px}.kpi{min-height:130px;padding:14px}.kpi-value{font-size:22px}.quality-grid{grid-template-columns:1fr}.filter-row-low{gap:7px}.filter-caption{display:none}.page-footer span:last-child{display:none}}
@media(max-width:480px){.kpi-grid{grid-template-columns:1fr 1fr}.filter-group{min-width:100%}.filter-group-wide{min-width:100%}.top-breadcrumb{display:none}.top-sep{display:none}}
/* Post-audit improvements: no 50-row page sprawl; clickable, stable analytical tables. */
.table-wrap{max-height:610px;overflow:auto;scrollbar-color:#d8d4e8 #faf9fd}
.data-table thead th{position:sticky;top:0;z-index:2;background:#f9f9fc;box-shadow:0 1px 0 #e7e8f0}
.crosstab{width:max-content;min-width:100%}
.crosstab th:first-child,.crosstab td:first-child{position:sticky;left:0;z-index:3;background:#fff;min-width:200px}
.crosstab thead th:first-child{z-index:5;background:#f9f9fc}
.crosstab .total-row{background:#f1edfa}
.crosstab .total-row td{border-top:2px solid #b29dde;font-weight:800}
.crosstab .total-row td:first-child{background:#f1edfa}
.filter-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.filter-tags:empty{display:none}
.active-chip{border:1px solid #e4d9f5;background:#f7f3ff;color:#7053bc;font-size:10px;padding:6px 9px;border-radius:20px}
.active-chip b{margin-left:8px;font-size:12px}
.advanced-rule{display:grid;grid-template-columns:2fr 1fr 2fr 34px;align-items:center;gap:9px;margin-bottom:9px}
.advanced-rule select,.advanced-rule input{height:36px;min-width:0;padding:0 10px;border:1px solid #e6e4ef;border-radius:7px;background:#fff;color:#52516a;font-size:11px}
.advanced-rule .btn{height:36px;padding:0}
@media(max-width:850px){.advanced-rule{grid-template-columns:1.5fr 1fr}.advanced-rule .advanced-value{grid-column:1/2}}


/* V1.2 — visual refinement; no source, calculation or query changes. */
:root{--ink:#21223a;--muted:#646a7e;--faint:#8b91a2;--stroke:#dfe3ec;--bg:#f5f6fa;--paper:#fff;--violet:#6c48bc;--violet-2:#9270d9;--violet-faint:#f2edfc;--navy:#14162d;--navy2:#20213a;--shadow:0 3px 18px rgba(26,31,58,.035)}
html{font-size:14px;-webkit-font-smoothing:antialiased}body{letter-spacing:.01px}
.sidebar{width:235px;flex-basis:235px;background:linear-gradient(170deg,#18152f 0%,#17182f 56%,#222141 100%);padding:26px 15px 18px}
.brand{margin:0 7px 34px;gap:12px}.brand-mark{border-radius:11px;background:rgba(149,114,224,.08)}.brand-name{font-size:15px;letter-spacing:1.15px}
.workspace-card{margin-bottom:28px;padding:13px 12px;border-color:#3b3856;background:#2a2845}
.side-section{font-size:10px;color:#a3a0b9;margin-bottom:11px;letter-spacing:1.35px}
.nav-item{font-size:12.5px;padding:12px 13px;color:#c6c1d5;border-radius:10px;gap:11px}
.nav-item.active{background:#42365f;box-shadow:inset 3px 0 0 #b89cef,0 2px 7px #11101e1a}
.sidebar-footer{padding:16px 6px 12px}.sidebar-footer small{line-height:1.45}
.topbar{height:65px;padding:0 34px}.top-left #crumb-view{font-size:12.5px}
.content{padding:31px clamp(22px,3.1vw,49px) 28px;max-width:1700px}
.page-heading{margin-bottom:21px}.eyebrow{letter-spacing:1.55px;font-size:10px;margin-bottom:10px;color:#7450bf}h1{font-size:30px;font-weight:750;letter-spacing:-.85px}
.page-heading p{color:#717689;font-size:12.5px;line-height:1.5;margin-top:7px}
.heading-status{border-color:#e6ddf4;background:#fcfaff;color:#705a92;font-size:11px;padding:9px 13px}.heading-status .outline-dot{color:#a984da}
.filter-surface{border-radius:15px;padding:16px 19px 12px;margin-bottom:21px;box-shadow:none;border:1px solid #e4e6ef}
.filter-group label{font-size:10px;color:#777b8e;letter-spacing:.8px}
.filter-group select,.filter-group input{height:40px;border-color:#e0e3ec;background:#fff;border-radius:9px;color:#3d425c;font-size:12px;padding:0 11px}
.filter-group select:focus,.filter-group input:focus{border-color:#9c80d7}
.search-box input{font-size:12px}.filter-caption{font-size:10.5px;color:#7e8293}
.panel{border-radius:15px;border-color:#e2e4ed;box-shadow:none}.panel-pad{padding:22px 23px}.panel-header{margin-bottom:18px}
.panel-header h2{font-size:16px;letter-spacing:-.3px}.subtle{font-size:11.5px;color:#798094;line-height:1.5}
.kpi-grid{gap:13px;margin-bottom:16px}.kpi{min-height:133px;padding:18px 19px;border-radius:14px;box-shadow:none;position:relative;overflow:hidden}
.kpi:before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,#8e65cf 0%,#ddd4f3 65%,transparent 100%)}
.kpi-label{font-size:10.8px;color:#5f667a;font-weight:700}.kpi-icon{color:#b1a1d7;font-size:16px}.kpi-value{font-size:29px;color:#1f233b;margin-top:11px;letter-spacing:-1.25px}
.kpi-foot{font-size:10.8px;color:#72788c;line-height:1.48;margin-top:7px}
.cols-2{gap:15px;margin-bottom:16px}.bar-top{font-size:12px}.bar-top span{font-size:11.5px}.bar-track{height:7px}
.btn{height:37px;border-radius:9px;font-size:12px;border-color:#dfe1eb;color:#4d4a69;padding:0 13px}.btn:hover{background:#f8f5fe;border-color:#b8a5e1}
.btn.btn-primary{background:#6b49bd;border-color:#6b49bd;box-shadow:0 2px 7px #7053ac25}.btn.btn-primary:hover{background:#5c3aa9}
.data-table{font-size:12px}.data-table th{font-size:10.5px;letter-spacing:.4px;padding:13px 14px;color:#5f697e;background:#f8f9fc}.data-table td{padding:12px 14px;color:#454a5b}
.data-table tbody tr:hover{background:#f6f2fe}.table-wrap{scrollbar-color:#c5bfdd #f6f6f9}
.pill-stat{font-size:11px}.toolbar select,.search-inline{font-size:12px}.tab-buttons button{font-size:12px}
.info-band{border-color:#e6dafa;background:#fbf9ff;border-radius:12px;color:#5e5870;font-size:12px;line-height:1.6}
.footnote{font-size:11px;color:#7e8496}.page-footer{font-size:10px;color:#8b91a2}
.quality-stat{border-radius:12px}.quality-stat span{font-size:11px}
.analyst-start{display:grid;grid-template-columns:minmax(210px,.9fr) minmax(0,2fr);gap:18px;align-items:center;padding:18px 21px;margin-bottom:16px;border:1px solid #e3dfee;background:linear-gradient(105deg,#f8f5ff 0%,#fff 50%,#fbfaff 100%);border-radius:15px}
.analyst-intro .eyebrow{display:block;font-size:9px;margin-bottom:7px;color:#795cc4}.analyst-intro h2{font-size:15px;line-height:1.35;margin:0 0 7px;color:#26213b}.analyst-intro p{margin:0;color:#717187;line-height:1.48;font-size:11px}
.analyst-route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.analyst-route{display:flex;gap:10px;align-items:center;text-align:left;min-width:0;padding:12px 11px;background:#fff;border:1px solid #e5e2ee;border-radius:10px;color:#38354f;transition:border-color .18s,background-color .18s,transform .18s}
.analyst-route:hover{border-color:#b39cdb;background:#fcfaff;transform:translateY(-1px)}
.route-glyph{font-size:10px;font-weight:800;letter-spacing:.6px;color:#8561c5;background:#f2eafa;border-radius:8px;padding:8px;flex-shrink:0}
.analyst-route>span:nth-child(2){min-width:0}.analyst-route strong{display:block;font-size:11.5px;line-height:1.3}.analyst-route small{display:block;font-size:10px;line-height:1.4;margin-top:4px;color:#808295}.route-arrow{font-size:14px;color:#9674d0;margin-left:auto;align-self:flex-start}
@media(max-width:1450px){.sidebar{width:228px;flex-basis:228px}.content{padding:29px 30px}.topbar{padding:0 30px}.analyst-start{grid-template-columns:1fr}}
@media(max-width:1100px){.sidebar{width:215px;flex-basis:215px}.analyst-start{grid-template-columns:1fr}.analyst-route-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.sidebar{width:235px;flex-basis:235px}.topbar{height:60px;padding:0 16px}.content{padding:23px 15px}.kpi-grid{gap:10px}.kpi{min-height:126px;padding:14px}.kpi-value{font-size:24px}.analyst-start{padding:15px}.analyst-route-grid{grid-template-columns:1fr 1fr}}
@media(max-width:540px){h1{font-size:26px}.analyst-route-grid{grid-template-columns:1fr}.analyst-route{padding:10px}.kpi-label{font-size:9.7px}.kpi-value{font-size:23px}.kpi-foot{font-size:10px}.panel-pad{padding:17px}}
@media(prefers-reduced-motion:reduce){.analyst-route{transition:none}.analyst-route:hover{transform:none}}

/* v1.4 (Cole AI): workflows, keyboard and screen-reader access, AA contrast for every caveat (D20), density (D16),
   state that stays put while loading (D23). No source, calculation or query changes. */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-999px;top:8px;z-index:100;background:#fff;color:#4a2f9c;padding:10px 14px;border-radius:8px;border:2px solid var(--violet);font-weight:700}
.skip-link:focus{left:8px}
#content-area{position:relative;outline:0}
#content-area.is-loading>:not(.loading-panel){opacity:.5;transition:opacity .15s}
.loading-overlay{position:absolute;top:0;right:0;z-index:6;padding:9px 14px;background:#fff;border:1px solid #d9d2ee;border-radius:9px;box-shadow:0 6px 18px #1a1f3a22;font-size:12px}
.error-actions{display:flex;gap:9px;justify-content:center;margin-top:17px;flex-wrap:wrap}
.warn{color:#8a5a10}
.faint{color:#6b7183}.not-held{color:#5b6275}
.hidden{display:none!important}

/* contrast: every piece of explanatory or caveat text at 4.5:1 or better, and no smaller than 11px */
.subtle,.footnote,.page-footer,.kpi-foot,.filter-caption,.page-heading p,.top-breadcrumb,.loading-panel,.empty,.method-row p,.quality-stat span,
.sources-table td:first-child,.layout-note,.pager small,.notice-mini,.metric-choice,.section-title p,.analyst-intro p,.analyst-route small{color:#5b6275}
.subtle,.footnote,.kpi-foot,.filter-caption,.page-footer,.callout-line,.info-band,.quality-stat span,.pager small{font-size:11.5px}
.footnote,.page-footer{font-size:11px}
.svg-label{fill:#5b6275}
.filter-group label,.group-label,.toolbar label,.kv label{color:#5b6275;font-size:10.5px}
.group-label{display:block;letter-spacing:.8px;font-weight:800}
.chip{font-size:11px}.chip.muted{color:#566070}.chip.amber{color:#7a5412}.chip.green{color:#14664e}.chip.red{color:#a83a50}
.pill-stat{color:#6746b5}.kpi-foot .warn{color:#8a5a10}
.tab-buttons button,.segmented button{color:#5b6275}
.search-box input::placeholder{color:#6b7183}
.sidebar-legal{color:#a9a5c0;font-size:11px}.side-section{color:#b3afc8}
.legend{font-size:11px;color:#565a6e}
.flag{font-size:12px;color:#7a5412}
.search-box:focus-within{outline:2px solid var(--violet);outline-offset:3px;border-radius:7px}
.heading-status:focus .status-tooltip{display:block}
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--violet);outline-offset:2px}

/* filters: labels, several-at-once, collapse, coverage */
.label-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px;min-height:15px}
.label-row label{margin-bottom:0;letter-spacing:.8px;font-weight:800;display:block}
.multi{position:relative;font-size:10.5px}
.multi summary{cursor:pointer;color:#6746b5;font-weight:700;list-style:none}
.multi summary::-webkit-details-marker{display:none}
.multi-pop{position:absolute;right:0;top:18px;z-index:25;background:#fff;border:1px solid #dcd6ee;border-radius:9px;box-shadow:0 8px 22px #16152c22;padding:10px 12px;display:grid;gap:7px;min-width:170px}
.multi-pop label{display:flex;align-items:center;gap:7px;font-size:12px;color:#3d425c;letter-spacing:0;font-weight:500;margin:0;white-space:nowrap}
.filter-group .multi-pop input{width:auto;height:auto}
.filter-surface.collapsed .filter-row-main{display:none}
.filter-surface.collapsed .filter-row-low{margin-top:0;border-top:0;padding-top:0}
.filter-surface.not-used .filter-row,.filter-surface.not-used .filter-tags,.filter-surface.not-used #coverage-note{display:none}
.coverage-note{margin-top:10px;font-size:11.5px;line-height:1.55;color:#5a4a1a;background:#fffaf0;border:1px solid #f1e2bf;border-radius:8px;padding:8px 11px}
#filters-unused{color:#4d4a69;background:#f7f5fc;border-color:#e3dcf5;margin-top:0}
.active-chip{font-size:11px;color:#5a3fa8}

/* tables */
.th-sort{border:0;background:none;padding:0;font:inherit;color:inherit;font-weight:inherit;letter-spacing:inherit;cursor:pointer;white-space:nowrap}
.th-sort:hover{color:#5a3fa8}
.data-table.dense td{padding:6px 12px}.data-table.dense th{padding:9px 12px}
.explorer-wrap{max-height:calc(100vh - 215px);min-height:250px}
.totals-bar{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid #e7e8f0;background:#fbfaff;font-size:12px;color:#3d3f55}
.totals-bar b{color:#26243d}
.total-row td{border-top:2px solid #b29dde;background:#f6f3fc;font-weight:700}
.flag-dot{color:#9a6208;font-size:12px}.flagged-row{background:#fffaf0}
.flag-note{margin:10px 16px}
.wrap-cells td{white-space:normal}.wrap{white-space:normal;display:inline-block;min-width:200px;max-width:440px;line-height:1.45}
.wrap-head th{white-space:normal;vertical-align:bottom}
.control-name{width:65%}
.page-jump{min-width:70px;width:78px;height:31px}.page-size{min-width:75px;width:92px;height:31px}
.toolbar-foot{margin-top:14px;margin-bottom:0}
#advanced-panel{margin-bottom:14px}.pivot-controls{margin-bottom:15px}
.cols-2+.info-band,.panel+.info-band{margin-top:18px}
.panel+.panel,.panel+.mini-grid,.mini-grid+.panel,.quality-grid+.panel{margin-top:16px}

/* category bars are buttons now */
.bar-row{display:block;width:100%;border:0;background:none;padding:0;text-align:left;color:inherit}
.bar-top{display:flex}.bar-track{display:block}.bar-fill{display:block}

/* column chooser */
.chooser{position:relative}.chooser summary{list-style:none}.chooser summary::-webkit-details-marker{display:none}
.chooser-pop{position:absolute;right:0;top:41px;z-index:19;background:#fff;border:1px solid #e0dcee;box-shadow:0 8px 22px #16152c22;border-radius:9px;padding:12px 14px;width:400px;max-height:420px;overflow:auto}
.chooser-head{display:flex;justify-content:space-between;align-items:center;margin:8px 0 6px;font-size:11px;color:#4d4a69}
.col-item{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:3px 0}
.col-item label{font-size:11.5px;color:#454a5b;display:flex;gap:6px;align-items:flex-start}
.col-move{display:flex;gap:3px}
.mini{border:1px solid #dcd9e8;background:#fff;border-radius:5px;font-size:11px;padding:2px 7px;color:#4d4a69}
.mini:disabled{opacity:.35;cursor:not-allowed}

/* charts as tables */
.chart-table{margin-top:10px}.chart-table summary{cursor:pointer;font-size:11.5px;color:#5a3fa8;font-weight:700}
.chart-table .table-wrap{max-height:300px;margin-top:8px;border:1px solid #e7e8f0;border-radius:8px}

/* W1 difference, W2 concentration, W3 family */
.diff-link{font-variant-numeric:tabular-nums;text-align:right}.diff-link.negative{color:#a83a50}
.diff-cards .quality-stat b{font-size:20px}
.mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mini-panel{background:#fff;border:1px solid #e2e4ed;border-radius:12px;overflow:hidden}
.mini-panel h3{padding:12px 14px 4px;font-size:12.5px;color:#48445f}
.mini-panel .table-wrap{max-height:260px}
.conc-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.share{display:inline-flex;align-items:center;gap:8px;justify-content:flex-end;min-width:120px}
.share-bar{display:inline-block;height:6px;border-radius:4px;background:#8768d6;max-width:70px}
.pvm-pair{margin-bottom:18px}.pvm-pair h4{margin:0 0 8px;font-size:12.5px;color:#48445f}
.detail-drawer.wide{width:min(1120px,97vw)}
.drawer-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.stat-top{margin-top:18px}
.section-title h3{border:0;padding:0;margin:0}
.drawer-section .section-title{border-bottom:1px solid #eeeef3;padding-bottom:10px;margin-bottom:13px}

/* density in the Data Explorer (D16): the grid gets the screen */
body[data-view=explorer] .page-heading .eyebrow,body[data-view=explorer] .page-heading p{display:none}
body[data-view=explorer] .page-heading{margin-bottom:12px}
body[data-view=explorer] h1{font-size:22px}
body[data-view=explorer] .filter-surface{margin-bottom:12px;padding:11px 16px 9px}
body[data-view=explorer] .toolbar{margin-bottom:10px}

@media(max-width:1250px){.mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.conc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.sidebar{box-shadow:none}.sidebar.open{box-shadow:10px 0 30px #0002}.mini-grid,.conc-grid{grid-template-columns:1fr 1fr}.chooser-pop{width:min(400px,88vw)}.explorer-wrap{max-height:70vh}}
@media(prefers-reduced-motion:reduce){#content-area.is-loading>:not(.loading-panel){transition:none}}

a.btn{text-decoration:none}
.panel-header select{height:35px;min-width:120px;border:1px solid #e3e4ed;border-radius:7px;color:#45475e;padding:0 9px;background:#fff;font-size:12px}
.panel-header label{font-size:10.5px;color:#5b6275;font-weight:700}
.panel-header .toolbar-section{flex-wrap:nowrap;flex-shrink:0}
.caveat-list{margin:6px 0 0;padding-left:18px}.caveat-list li{margin:3px 0}
.mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.label-row label{white-space:nowrap}

.route-glyph{color:#6340b0}
.data-table.dense td{padding:4px 12px}.data-table.dense .chip{padding:1px 6px;border-radius:4px}
.data-table.wrap-head th,.data-table.wrap-head td{padding-left:9px;padding-right:9px}
@media(max-width:800px){.avatar{display:none}.top-right{gap:8px}.top-right .btn{padding:0 9px;font-size:11px}}

/* v1.5 adviser-investigation: user workflows, not unverified accounting recommendations */
.advisor-investigation{display:grid;grid-template-columns:minmax(220px,1fr) minmax(410px,1.5fr);gap:20px;align-items:center;background:linear-gradient(110deg,#f7f5fc,#fff);border:1px solid #e6e0f3;border-radius:14px;padding:19px 22px;margin:0 0 16px}
.advisor-investigation h3{font-size:16px;color:#27213d;margin:7px 0 5px;font-weight:700}.advisor-investigation p{font-size:12px;line-height:1.5;color:#625a75;margin:0}
.advisor-investigation-items{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
.advisor-investigation-items button{display:flex;align-items:center;gap:8px;border:1px solid #e0d9ee;background:white;color:#3b315c;border-radius:10px;padding:10px 12px;cursor:pointer;font-size:12px}.advisor-investigation-items button:hover,.advisor-investigation-items button:focus-visible{border-color:#926ec9;box-shadow:0 1px 5px #937bb433}.advisor-investigation-items strong{font-weight:750;font-variant-numeric:tabular-nums}
.cost-kpis .kpi{border-top:2px solid #b79de2}.cost-basis-foot{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
@media(max-width:1000px){.advisor-investigation{grid-template-columns:1fr}.advisor-investigation-items{justify-content:flex-start}}

@media(max-width:520px){.cost-kpis{grid-template-columns:1fr!important}.cost-kpis .kpi{min-height:104px}.cost-basis-foot{gap:5px}.advisor-investigation{padding:15px}.advisor-investigation-items button{width:100%;justify-content:space-between}}

/* v1.6 adviser experience: persistent basis + independent source-workpaper */
.metric-basis-strip{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:-5px 0 18px;padding:10px 13px;border:1px solid #e6e2f1;background:#fbfaff;border-radius:11px}
.basis-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #ddd4ee;background:#fff;color:#5b4a7a;padding:6px 9px;border-radius:7px;font-size:10px;font-weight:750;letter-spacing:.12px}
.basis-pill.muted{font-weight:550;color:#696a7e;border-color:#e5e6ed}
.review-grid .kpi-value{font-size:23px;letter-spacing:-.6px}
.review-form{margin:0;padding:0}
.review-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:16px}
.review-form-grid label{display:flex;flex-direction:column;gap:6px;color:#52536c;font-size:11px;font-weight:700}
.review-form-grid label.wide-field{grid-column:1/-1}
.review-form-grid input,.review-form-grid select,.review-form-grid textarea{width:100%;min-width:0;min-height:39px;background:#fff;border:1px solid #dee1ec;border-radius:8px;padding:9px 11px;color:#30334d;font-size:12px;font-weight:450;font-family:inherit;line-height:1.4}
.review-form-grid textarea{resize:vertical;min-height:74px}
.review-form-grid input:focus,.review-form-grid textarea:focus,.review-form-grid select:focus{border-color:#825bcc;outline:2px solid #ceb9ee;outline-offset:1px}
.review-form .btn-primary{min-height:39px}
.review-form .footnote{margin-top:12px}
@media(max-width:750px){.review-form-grid{grid-template-columns:1fr}.review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.review-grid .kpi-value{font-size:18px}.basis-pill{max-width:100%;line-height:1.3}}
@media(max-width:450px){.review-grid{grid-template-columns:1fr 1fr}.review-grid .kpi-value{font-size:17px}}

/* v1.7 independent FDD usability pass: navigation and long workpapers */
.sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#544776 #201c35}
.sidebar nav{flex-shrink:0}
.sidebar-footer,.sidebar-legal{flex-shrink:0}
.sidebar-legal{padding-bottom:15px}
@media(max-width:800px){
 .review-grid .kpi{min-height:125px}
 .review-grid .kpi-label{line-height:1.35;white-space:normal}
 .review-grid .kpi-value{overflow-wrap:anywhere}
 body[data-view=review] .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 body[data-view=review] .panel:has(.data-table){position:relative}
 body[data-view=review] .panel:has(.data-table)::after{content:'Swipe horizontally to inspect all columns';display:block;font-size:10px;color:#62647b;padding:5px 14px 10px}
}

/* v1.8.0 (Cole AI): phone toolbars, phone navigation, stacked panels, export alerts. No source, calculation or query changes. */
/* F17: controls in a panel header wrap under the title instead of running past the edge, where a phone cannot reach them */
.panel-header{flex-wrap:wrap}
.panel-header>div:first-child{flex:1 1 260px;min-width:0}
.panel-header .toolbar-section{flex-wrap:wrap;flex-shrink:1;justify-content:flex-end;min-width:0}
.pager{flex-wrap:wrap}.pager-actions{flex-wrap:wrap}
/* F41: equal two-column panels stack where the other two-column panels do */
@media(max-width:1100px){.cols-2.equal{grid-template-columns:1fr}}
/* an information toast never blocks a tap on what lies under it (on a phone it spans the width); the export alert stays until dismissed */
.toast-area,.toast{pointer-events:none}.toast-error{pointer-events:auto;background:#5c1f2d;display:flex;gap:12px;align-items:flex-start}
.toast-close{border:0;background:transparent;color:#fff;font-size:18px;line-height:1;padding:0 2px;margin-left:auto}
/* F40: on a phone the closed navigation takes no focus; open, it has a close button and a backdrop */
.sidebar-backdrop{display:none}
@media(max-width:800px){
 .panel-header .toolbar-section{justify-content:flex-start;width:100%}
 .pager-actions{width:100%}
 .panel-header select,.toolbar select{min-width:0;max-width:100%}
 .export-what{display:none}
 .toast-area{left:12px;right:12px;bottom:12px}.toast{max-width:none}
 .sidebar{visibility:hidden;transition:transform .2s,visibility 0s linear .2s}
 .sidebar.open{visibility:visible;transition:transform .2s}
 .sidebar-close.mobile-only{display:grid;place-items:center;align-self:flex-end;flex-shrink:0;margin:-14px -4px 4px 0;width:36px;height:36px;border-radius:50%;border:1px solid #4b4668;background:#2a2845;color:#f5f2ff;font-size:20px}
 .sidebar-backdrop:not(.hidden){display:block;position:fixed;inset:0;background:rgba(15,13,29,.34);z-index:19}
}
@media(prefers-reduced-motion:reduce){.sidebar,.sidebar.open{transition:none}}
/* F20: in the Data Explorer the scope strip keeps every pill but takes less height, so at 1280 by 720 the grid starts higher */
body[data-view=explorer] .metric-basis-strip{margin:-4px 0 8px;padding:4px 8px;gap:5px}
body[data-view=explorer] .basis-pill{padding:3px 7px}
body[data-view=explorer] .totals-bar{padding:6px 14px;row-gap:2px}
body[data-view=explorer] #content-area>.toolbar{margin-bottom:8px}
/* F62: the year filter's label and its '+ more' stay on one line, and the whole 'FY24 to FY27 Q1' is readable */
.multi summary{white-space:nowrap}
.filter-group-year{min-width:150px}
.export-what{margin-left:-3px}
/* F41: the W1 breakdown tables stack on a phone too, so their figures are not cut */
@media(max-width:800px){.mini-grid{grid-template-columns:1fr}}

/* Phoenix pilot: the sign-in and setup pages (hosted mode only) */
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:#16122d}
.auth-card{width:100%;max-width:420px;background:#fff;border-radius:14px;padding:28px 24px;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.auth-card h1{margin:6px 0 8px;font-size:1.6rem}
.auth-card form{display:flex;flex-direction:column;gap:14px;margin:18px 0 10px}
.auth-card label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.9rem}
.auth-card input{padding:10px 12px;border:1px solid #c9c4dc;border-radius:8px;font-size:1rem}
.auth-card .small{font-size:.8rem}
.auth-message{min-height:1.2em;color:#9b1c31;margin:0}
.signed-in{display:inline-flex;align-items:center;gap:8px;font-size:.85rem}
