/* SOC AI visual system. Keep the underlying ingestion and mapping controls intact. */
:root{color-scheme:dark;--surface:#111a23;--surface-raised:#15212b;--surface-soft:#0d161d;--border:#293c49;--muted:#a9bbcb;--teal:#37dac4;--violet:#b9a7fb;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#e9f3f7;background:#0b131a}
*{box-sizing:border-box}body{background:#0b131a;color:#e9f3f7}h1,h2,h3,h4,strong{color:#eff7fa}p,small{color:inherit}.muted{color:#9eb2c3!important}.eyebrow{font:600 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace!important;letter-spacing:.15em;color:#7ceadd!important}
.sidebar{width:72px;padding:16px 9px;background:#0d151c;border-right:1px solid #263641;align-items:center;z-index:22}.sidebar .brand{display:grid;place-items:center;padding:0;width:48px;height:48px;margin:0 0 30px;color:#3ee0c8;text-decoration:none;font-size:34px;line-height:1}.sidebar nav{display:grid;gap:10px;width:100%}.sidebar nav button{width:52px;height:49px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:10px;font-size:24px;color:#9cb3c2}.sidebar nav button.selected{color:#42deca;border-color:#29695f;background:#17332f}.sidebar nav button:disabled{opacity:.68}.sidebar nav button:hover:not(:disabled){background:#192935;color:#d5f3ed}.sidebar-bottom{margin-top:auto;padding:12px 0;color:#43dcc8;font-size:16px}.shell{margin-left:72px;min-height:100vh;background:#0b131a}.topbar{height:57px;padding:0 28px;background:#0f171f;border-bottom:1px solid #263641;color:#9fb3c5}.topbar>div{gap:14px}.topbar .environment{background:#121d26;border-color:#344755;color:#aabcca}.topbar button.quiet{font-size:12px}.avatar{background:#201d32;border:1px solid #504670;color:#d3c6ff;padding:8px}
main{max-width:1780px;min-height:calc(100vh - 57px);padding:28px 30px 122px;background-image:linear-gradient(#a5c8ca0a 1px,transparent 1px),linear-gradient(90deg,#a5c8ca0a 1px,transparent 1px);background-size:40px 40px}.panel,.table-wrap,.collection-table,.inspector-summary,.inspector-deliveries{background:#121c25;border:1px solid #2b3d49;border-radius:12px;box-shadow:0 8px 25px #0002}.heading h1,.source-header h1,.collection-heading h1{color:#f0f7f9}.heading p,.source-header p,.collection-heading p,.source-section-title p{color:#a9bbcb}.heading{margin-bottom:22px}
button,input,textarea,select{font:inherit}button{border:1px solid #354c5d;border-radius:8px;background:#17232e;color:#e4eef5}button:hover:not(:disabled){background:#1d3340;border-color:#44ddc7;color:#f5ffff}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #52ead5;outline-offset:2px}button:disabled{opacity:.48}button.primary{background:#3cdec7;border-color:#3cdec7;color:#0c2028;font-weight:750}button.primary:hover:not(:disabled){background:#6bf0da;color:#09242b}button.outline{border-color:#4db6aa;color:#a7f8e8;background:#122026}button.outline:hover:not(:disabled){background:#1b3d3a}button.quiet{background:transparent;color:#b9d0db;border-color:transparent}button.quiet:hover:not(:disabled){background:#1c313a;color:#51e6d2}input,select,textarea{background:#0d171e;border-color:#314652;color:#e5f2f7}input::placeholder,textarea::placeholder{color:#7c94a5}input:disabled,textarea:read-only,select:disabled{color:#bbced7;background:#13212b}.code,pre{background:#0d151c;border:1px solid #293f4b;color:#d0e2e8;scrollbar-color:#3d5866 transparent}.receipt{background:#112921;border:1px solid #2d7467;color:#c5f4e4}.receipt p{color:#bddbd2}hr{border:0;border-top:1px solid #30434f}
.badge,.pill,.subtle-chip,.source-method{background:#1a2c34;color:#a8dfda;border:1px solid #3a555d}.badge.active,.source-status.active{background:#12312e;color:#74e9d7;border-color:#346e64}.badge.paused,.source-status.paused{background:#312617;color:#f3c582;border-color:#75582f}.badge.draft,.source-status.draft{background:#202b38;color:#b9c9d6;border-color:#465668}.source-status{background:#17242d;border-color:#38505b;color:#d7e9ed}.pill.active{background:#143631;border-color:#3ad6c2;color:#9cf4e3}.stat{background:#13212b;border:1px solid #314450}.stat strong{color:#eef9fb}.icon,.icon.green,.icon.amber{background:#173b3a;color:#64dfcf}.empty{background:#121d26}
.source-header .eyebrow,.source-card .eyebrow,.sample-editor .eyebrow,.sample-guidance .eyebrow,.validation-examples .eyebrow{color:#76d9d2!important}.source-tabs{border-bottom-color:#2e424e}.source-tab{color:#9bb3c2;background:transparent}.source-tab:hover:not(:disabled){background:#162b31;color:#d9f6f1}.source-tab.current,.source-tab.current:hover:not(:disabled){background:#102b2a;border-bottom-color:#42dec9;color:#8bf4e3}.tab-number{border-color:#3b535f;color:#a9becc}.source-tab.current .tab-number{background:#38d9c3;border-color:#38d9c3;color:#0d2025}.source-status{font-weight:650}.source-section-title h2{color:#eff7f9}.source-method,.subtle-chip{background:#15302e;border-color:#33635d;color:#80e8d9}.source-card,.sample-editor,.sample-guidance,.validation-examples{background:#141f29}.source-card .muted,.sample-editor .muted,.guidance-row p{color:#a5b9c7!important}.source-card h3,.sample-editor h3,.sample-guidance h3,.validation-examples h3{color:#eff8fb}.card-divider,.guidance-row,.json-disclosure{border-color:#30434e}.card-divider{background:#30434e}.copy-line{background:#0c161d;border-color:#304652}.copy-line code{color:#d9f8f3}.source-note{background:#16272d;border-color:#32525b;color:#a9cbce}.setup-spec{border-color:#30434e}.setup-spec span{color:#aec1ce}.delivery-item{border-color:#30434e}.delivery-item small{color:#a9becc}.delivery-outcome,.delivery-outcome.updated{color:#63dfcb}.delivery-outcome.rejected{color:#fa8986}.validation-hero,.validation-hero.is-ready{background:#142e2a;border-color:#398878;color:#d8f7ee}.validation-hero.has-issues{background:#30271a;border-color:#88643b}.validation-hero .eyebrow{color:#91f5df!important}.validation-hero p{color:#c2d9d7}.validation-icon{background:#267f72}.has-issues .validation-icon{background:#966735}.validation-examples .sample-result{background:#101b23;border-color:#30434f;color:#dcebf0}.validation-examples .sample-result.selected{background:#14322f;border-color:#38b7a6}.validation-examples .sample-result small{color:#a6bac8}.result-mark{background:#174f43;color:#8df2dc}.sample-result.bad .result-mark{background:#513026;color:#ffa48f}.json-grid h4{color:#a6c4ce}.source-card .receipt{margin-top:14px}
/* Home screen: only fields supplied by the current sources and deliveries APIs. */
.sources-home{padding-top:30px}.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:26px}.collection-heading h1{font-size:32px;margin:4px 0 4px;letter-spacing:-.035em}.collection-heading p{margin:0;color:#aebfce}.collection-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(320px,.96fr);align-items:start;gap:18px}.collection-list{min-width:0}.collection-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}.collection-toolbar input{flex:1;min-width:160px;max-width:none;background:#101a22}.source-filters{display:flex;gap:5px}.source-filters button{font-size:12px;padding:10px 12px;white-space:nowrap}.source-filters button.selected{color:#92f4df;border-color:#3ccfb9;background:#153731}.collection-table{overflow:hidden}.collection-columns,.collection-row{display:grid;grid-template-columns:minmax(170px,1.6fr) minmax(90px,.7fr) minmax(115px,1.03fr) minmax(92px,.55fr);gap:9px;align-items:center}.collection-columns{padding:15px 18px;color:#91acbc;font:600 10px ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;border-bottom:1px solid #304451}.collection-row{width:100%;min-height:69px;text-align:left;border:0;border-radius:0;border-bottom:1px solid #2b3f4b;background:#111c25;padding:9px 18px;font-size:12px;font-weight:400}.collection-row:hover:not(:disabled){background:#182c34;border-color:#347f73}.collection-row.selected,.collection-row.selected:hover:not(:disabled){background:#12312f;box-shadow:inset 3px 0 #40dec7;color:#e6faf4}.collection-name{display:flex;align-items:center;gap:12px;min-width:0}.collection-name>span:last-child{min-width:0}.collection-name strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.collection-name small{display:block;color:#8faaba;font-size:10px;margin-top:4px}.source-symbol{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid #37615a;border-radius:9px;background:#162d2d;color:#58e3cf;font-size:19px}.collection-date{color:#c4d5df;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-version{display:flex;align-items:center;justify-content:space-between;color:#c7d8e0}.collection-version>span{font-size:25px;color:#9bb8c6}.collection-totals{padding:17px 19px;color:#a7bccc;font-size:11px}.collection-totals span{padding:0 6px;color:#568277}.collection-empty{padding:48px 15px;text-align:center;color:#aec3ce}.collection-empty p{font-size:12px}.source-inspector{display:grid;gap:14px;min-width:0}.inspector-summary,.inspector-deliveries{padding:19px}.inspector-identity{display:flex;align-items:center;gap:12px;margin:18px 0}.inspector-identity .source-symbol{width:53px;height:53px;font-size:25px}.inspector-identity h2{margin:0 0 7px;font-size:19px}.inspector-identity .badge{margin-right:4px}.inspector-spec{display:grid;grid-template-columns:1fr auto;gap:10px 14px;padding:14px 0;border-top:1px solid #2e4550;border-bottom:1px solid #2e4550;font-size:12px}.inspector-spec span{color:#9eb7c5}.inspector-spec strong{text-align:right;font-size:12px}.inspector-actions{display:flex;gap:8px;margin-top:16px}.inspector-actions button{padding:10px;flex:1;font-size:12px}.inspector-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.inspector-section-head h3{font-size:15px;margin:3px 0}.inspector-section-head button{font-size:21px;padding:4px 9px}.inspector-event{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 7px;padding:10px 0;border-top:1px solid #2d414b;font-size:11px}.inspector-event time{color:#a8c0cd}.inspector-event small{display:block;width:100%;color:#a8bdc9;overflow-wrap:anywhere}.inspector-ai{padding:14px;background:#211e31;border:1px solid #50436a;border-radius:10px;color:#ccbbfa;font-size:12px}.inspector-placeholder{text-align:center;padding:60px 20px;border:1px solid #314450;border-radius:12px;color:#9db3c2}.inspector-placeholder>span{color:#b8a5f0;font-size:25px}
/* Fixed action dock, following the approved live-listener reference. */
.wizard-footer,.pagination-footer{position:fixed;bottom:0;left:72px;right:0;z-index:18;min-height:69px;margin:0;padding:10px 30px;border:0;border-top:1px solid #2c4350;border-radius:0;background:#0e171f;box-shadow:none;backdrop-filter:none}.wizard-footer>div{display:flex;align-items:center;gap:16px;margin-left:auto}.wizard-footer .footer-note{color:#c4aff5;font-size:12px}.wizard-footer button,.pagination-footer button{padding:10px 15px}.pagination-footer{justify-content:flex-end;gap:10px}.pagination-footer button:first-child{margin-right:auto}#message{left:88px;right:16px;bottom:80px;background:#162630;border-color:#3d5b64;color:#e4f4f3;box-shadow:0 8px 35px #0008}#message.error{color:#ffaaa1}#message .message-close{color:#ddeceb}
/* Mapping surfaces, including folders, drop targets, agent proposals and editors. */
.mapping-workbench .panel,.source-page .mapping-workbench .panel{background:#141f29;box-shadow:none}.mapping-section-head small,.mapping-section-head .muted{color:#a4b9c8}.mapping-scroll{scrollbar-color:#3d6068 transparent}.mapping-incoming .incoming-field,.incoming-folder,.map-row,.map-row.mapped{background:#111c25;border-color:#344853;color:#d8e9ef}.incoming-field:hover,.incoming-folder>summary:hover{background:#1b3437;border-color:#3bbcae}.incoming-name code,.folder-name{color:#d2f0ef}.incoming-name small,.incoming-folder>summary small{color:#a1b8c4}.folder-children,.mapping-result{border-color:#304650}.mapping-group{border-color:#314751}.mapping-group span{background:#233543;color:#b5cbd5}.map-row.over{background:#174840;border-color:#4ce8d1}.map-row-head button,.add-field{color:#6fe8d8}.required,.mapping-ops .badge,.auto-field .badge{background:#153b35;color:#8defdc}.mapping-route code{background:#192a35;border-color:#385363;color:#d3e9f3}.mapping-hint{background:#13232b;border-color:#456575;color:#a9c6d2}.mapping-arrow,.handle,.folder-chevron{color:#88aaba}.good{color:#81eacb}.bad{color:#ffaaa1}.mapping-ai{background:#1b1b2b!important;border-color:#514675!important}.mapping-ai h3,.decisions h3,.mapping-ai .ai-guidance summary{color:#d7c8ff}.mapping-ai label,.mapping-ai p,.mapping-ai small{color:#b8a9d3}.mapping-ai button{background:#7257d8;color:#fff}.mapping-ai button:hover:not(:disabled){background:#8d72eb}.decisions{background:#151e2a!important;border-color:#483f65!important}.proposal,.decisions .proposal{background:#161f2d;border-color:#4a4768}.decisions .proposal>summary{color:#ebe4ff}.decisions .proposal-body{border-color:#484261}.decisions .proposal>summary:after{color:#c4b4ec}.proposal-empty{color:#b8aaca}.proposal-empty strong{color:#f0e9ff}.proposal-empty-icon{background:#2e254c;color:#d0bbff}.ai-loading{color:#d6c8ff}.ai-loading>span:last-child{color:#b9abc9}.ai-spinner{border-color:#514874;border-top-color:#cab2ff}.mapping-sample-controls select{background:#13222b}.add-field{border-color:#4bcdb9}.rule-dialog,.rule-step{background:#121e27;border-color:#38505b;color:#e7f1f5}.rule-step .step-number{background:#153d39;color:#8eecde}.rule-dialog .footer{position:static;background:transparent;border:0;box-shadow:none}.rule-dialog .inline button{background:#172936}
/* Help text, empty states and authentication share the same palette. */
.guide{background:#152c2c;border-color:#33625b}.assistant{background:#1e1b2a;border-color:#52436a}.assistant h3{color:#d9c9ff}.assistant p{color:#c2b2dc}.form-card{background:#141f29}.form-card .footer{border-color:#334a56}dialog{color-scheme:dark;background:#13202a;color:#eaf5f6;border-color:#3b5461}dialog::backdrop{background:#050b0cd9}dialog h2{color:#f3fafa}dialog p{color:#afc2cf}#access-error{color:#ffaba3}.json-disclosure summary{color:#84ecdc}.source-card .receipt{background:#12352e;border-color:#307f6e}
@media(max-width:1250px){.collection-layout{grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr)}.collection-columns,.collection-row{grid-template-columns:minmax(130px,1.5fr) 80px minmax(100px,1fr) 73px;gap:6px}.collection-toolbar{flex-wrap:wrap}.collection-toolbar input{width:100%;flex-basis:100%}.source-filters{width:100%}.mapping-aside{position:static}}
@media(max-width:980px){.collection-layout{grid-template-columns:1fr}.source-inspector{grid-template-columns:1fr 1fr}.inspector-ai{grid-column:1/-1}.source-grid,.validation-grid{grid-template-columns:1fr 1fr}.source-page .mapping-workbench{grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr)}}
@media(max-width:700px){.sidebar{position:sticky;top:0;width:100%;height:52px;padding:4px 10px;flex-direction:row;justify-content:space-between}.sidebar .brand{width:42px;height:42px;margin:0;font-size:29px}.sidebar nav{display:flex;width:auto;margin:0;gap:6px}.sidebar nav button{width:43px;height:40px;font-size:19px}.sidebar-bottom{display:none}.shell{margin-left:0}.topbar{height:49px;padding:0 14px;font-size:11px}.topbar>div{gap:5px}main{padding:18px 14px 110px;min-height:calc(100vh - 101px)}.collection-heading h1{font-size:25px}.collection-layout,.source-inspector,.source-grid,.validation-grid{grid-template-columns:1fr}.collection-toolbar{margin-bottom:10px}.source-filters{overflow-x:auto}.source-filters button{padding:8px}.collection-columns,.collection-row{grid-template-columns:minmax(130px,1.5fr) 77px minmax(75px,.8fr);gap:5px;padding-left:10px;padding-right:10px}.collection-columns span:nth-child(4),.collection-version{display:none}.collection-name{gap:6px}.collection-name .source-symbol{width:27px;height:27px;font-size:16px}.collection-name small{font-size:9px}.collection-date{font-size:10px}.source-page .mapping-workbench{grid-template-columns:1fr}.wizard-footer,.pagination-footer{left:0;right:0;bottom:0;min-height:63px;padding:9px 12px;border-radius:0;margin:0;flex-direction:row;align-items:center}.wizard-footer>div{flex:1;justify-content:flex-end}.wizard-footer .footer-note{display:none}#message{left:9px;right:9px;bottom:70px}.source-header{flex-wrap:wrap}.source-header h1{font-size:23px}.source-tab{min-width:85px}.source-section-title{flex-wrap:wrap}.json-grid{grid-template-columns:1fr}}
@media(max-width:700px){.sidebar nav button:disabled{display:grid}}

/* Approved connection palette, shared by every page. */
:root{--surface:#111920;--surface-raised:#121b23;--surface-soft:#0c1318;--border:#2c414c;--muted:#9fb3c3;--teal:#39ddc7;--violet:#bca9fc;background:#0c1217}
body,.shell{background:#0c1217}.sidebar{background:#0e161d;border-right-color:#263943}.topbar{background:#101820;border-bottom-color:#2b3d47}
main{background-image:linear-gradient(#9cb9c80b 1px,transparent 1px),linear-gradient(90deg,#9cb9c80b 1px,transparent 1px);background-size:40px 40px}
.panel,.table-wrap,.collection-table,.inspector-summary,.inspector-deliveries{background:#111920;border-color:#2b404b;box-shadow:none}
button{background:#111b23;border-color:#344956}button.primary{background:#39ddc7;border-color:#39ddc7;color:#092129}button.primary:hover:not(:disabled){background:#72f2df}button.outline{background:#10191f;border-color:#40d7c1;color:#e4f7f5}
input,select,textarea,.code,pre{background:#0c141b;border-color:#304651;color:#e9f2f6}.source-card,.sample-editor,.sample-guidance,.validation-examples,.mapping-workbench .panel,.source-page .mapping-workbench .panel{background:#111920}
.guide,.source-note{background:#111f23;border-color:#34525a}.assistant,.mapping-ai{background:#1b1928!important;border-color:#51416c!important}.decisions{background:#161b28!important;border-color:#51416c!important}.wizard-footer,.pagination-footer{background:#101820;border-top-color:#30434d}
.source-header .eyebrow,.source-card .eyebrow,.sample-editor .eyebrow,.sample-guidance .eyebrow,.validation-examples .eyebrow{color:#7fe6d6!important}
.source-tabs{border-bottom:0;gap:8px}.source-tab{flex:0 1 auto;min-width:100px;border:1px solid #344956;border-radius:8px;padding:10px 13px;font:600 11px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.03em}.source-tab.current,.source-tab.current:hover:not(:disabled){border:1px solid #38d9c3;border-radius:8px;background:#0d2929;color:#8bf4e3}.source-tab .tab-number{border:0;width:auto;height:auto;background:transparent!important;color:inherit!important}
.source-card h3,.sample-editor h3,.sample-guidance h3,.validation-examples h3{color:#eef7f9}

/* Approved data source index: searchable list and selected-source inspector. */
.sources-home{padding-top:30px}.sources-home .collection-heading{margin-bottom:30px}.sources-home .collection-heading h1{font-size:37px}.sources-home .collection-heading p{font-size:15px}
.sources-home .collection-heading button{min-width:155px;padding:14px 20px}
.sources-home .collection-layout{grid-template-columns:minmax(0,1.8fr) minmax(315px,1fr);gap:20px}
.sources-home .collection-toolbar{margin-bottom:14px}.sources-home .collection-toolbar input{min-height:48px;background:#101920}
.sources-home .source-filters{gap:8px}.sources-home .source-filters button{min-width:77px;background:#101920;padding:13px 17px}.sources-home .source-filters button.selected{background:#103331;border-color:#40ddca;color:#91f6e5}
.sources-home .collection-table{min-height:425px}.sources-home .collection-columns,.sources-home .collection-row{grid-template-columns:minmax(155px,1.2fr) minmax(130px,1fr) minmax(135px,.9fr) minmax(105px,.7fr)}
.sources-home .collection-columns{padding:20px 20px;color:#9fb8c7}.sources-home .collection-row{min-height:67px;background:#111920;padding:10px 20px}
.sources-home .collection-row.selected,.sources-home .collection-row.selected:hover:not(:disabled){background:#0e302e;border:1px solid #3fddca;border-radius:10px;box-shadow:inset 0 0 22px #46d6c10b;color:#ebfaf8}
.sources-home .collection-row:hover:not(:disabled){background:#17272c}.sources-home .collection-name strong{font-size:13px}
.sources-home .collection-name .source-symbol{width:34px;height:34px;background:transparent;border:0;color:#b6d5df;font-size:22px}
.sources-home .collection-status{display:flex;align-items:center;gap:8px;min-width:0}.sources-home .collection-status .badge,.sources-home .inspector-identity .badge{background:transparent;border:0;padding:0;color:#75e9d6;font:600 11px ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;letter-spacing:.03em}
.sources-home .collection-status .badge:before,.sources-home .inspector-identity .badge:before{content:'●';margin-right:9px;font-size:11px}.sources-home .collection-status .badge.paused,.sources-home .inspector-identity .badge.paused{color:#f0bb73}.sources-home .collection-status .badge.draft,.sources-home .inspector-identity .badge.draft{color:#afc2d7}
.sources-home .version-chip{display:inline-block;padding:5px 9px;border:1px solid #3c525e;border-radius:8px;color:#adc7d6;font-size:11px;white-space:nowrap}.sources-home .collection-date{font-size:12px}.sources-home .collection-method{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#b6cbd6;font-size:12px}.sources-home .collection-method>span{font-size:23px;color:#a5d0dd}
.sources-home .collection-totals{border-top:1px solid #30424e;margin-top:0;padding:17px 20px;font-size:12px}
.sources-home .source-inspector{display:grid;gap:15px;align-content:start}.sources-home .inspector-summary,.sources-home .inspector-deliveries{padding:20px}.sources-home .inspector-identity{margin:24px 0 16px}.sources-home .inspector-identity .source-symbol{width:61px;height:61px;font-size:27px}.sources-home .inspector-identity h2{font-size:22px;margin:0 0 8px}.sources-home .inspector-spec{padding:16px 0;border-top:0;font-size:12px}.sources-home .inspector-actions button{min-height:44px}
.sources-home .inspector-deliveries>.eyebrow{color:#a7bdc9!important}.sources-home #inspector-events{margin:14px 0}.sources-home .inspector-event{display:grid;grid-template-columns:80px 40px minmax(0,1fr);align-items:start;gap:8px;border:0;padding:7px 0;font:12px ui-monospace,SFMono-Regular,Consolas,monospace}.sources-home .inspector-event time{color:#d5e2e7}.sources-home .delivery-code{color:#55e0ca;font-weight:700}.sources-home .delivery-code.rejected{color:#ff8b90}.sources-home .inspector-outcome{color:#b8ced8;overflow-wrap:anywhere}.sources-home #inspect-refresh{padding:8px 12px;font-size:12px}.sources-home .inspector-ai{background:#1b1928;border-color:#51416c;color:#cbbaff}
@media(max-width:1200px){.sources-home .collection-layout{grid-template-columns:1fr}.sources-home .source-inspector{grid-template-columns:1fr 1fr}.sources-home .inspector-ai{grid-column:1/-1}.sources-home .collection-columns,.sources-home .collection-row{grid-template-columns:minmax(150px,1.2fr) minmax(120px,1fr) minmax(125px,.9fr) minmax(95px,.7fr)}}
@media(max-width:700px){.sources-home .collection-heading h1{font-size:26px}.sources-home .collection-heading button{min-width:auto;padding:10px}.sources-home .collection-toolbar{flex-wrap:wrap}.sources-home .collection-toolbar input{flex-basis:100%}.sources-home .source-filters{width:100%;overflow-x:auto}.sources-home .source-filters button{min-width:65px;padding:9px}.sources-home .collection-columns,.sources-home .collection-row{grid-template-columns:minmax(110px,1.5fr) minmax(95px,1fr) minmax(100px,1fr);gap:5px;padding-left:10px;padding-right:10px}.sources-home .collection-columns span:nth-child(4),.sources-home .collection-method{display:none}.sources-home .collection-status{gap:4px;flex-wrap:wrap}.sources-home .collection-status .badge{font-size:10px}.sources-home .version-chip{padding:3px 5px;font-size:10px}.sources-home .source-inspector{grid-template-columns:1fr}.sources-home .inspector-ai{grid-column:auto}}

/* Connection reference: compact title and numbered tabs above task cards. */
.source-page .source-top{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:0 0 24px}
.source-page .source-header{margin:0;align-items:flex-end;justify-content:flex-start;gap:13px}.source-page .source-header h1{font-size:30px;margin:5px 0 0}.source-page .source-tabs{margin:0;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.source-page .source-section-title{margin-bottom:14px}.source-page .source-section-title h2{font-size:17px}.source-page .source-grid{grid-template-columns:minmax(0,1.7fr) minmax(285px,1fr);gap:20px}.source-page .source-primary,.source-page .source-secondary{gap:14px}.source-page .source-card{padding:21px}.source-page .source-card h3{font-size:16px}
.source-page .connection-stack .eyebrow{font-size:11px;letter-spacing:.12em;color:#a9c0cb!important}.source-page .connection-stack .source-card{min-height:112px}.source-page .connection-stack .copy-line{background:#0c141a}.source-page .connection-stack .copy-line code{font-size:12px}
.source-page .connection-key-warning{background:#332613;color:#f5cf91;border:1px solid #835d25;border-radius:7px;padding:11px 12px;font-size:12px;line-height:1.5;margin:10px 0 0}
.source-page .connection-request pre{min-height:150px;white-space:pre;overflow:auto;background:#0c141a}.source-page .connection-request code{font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace}.source-page .connection-request .quiet{font-size:12px}
.source-page .connection-activity .delivery-list{min-height:170px;max-height:280px;background:#0b1217;border:1px solid #30434e;border-radius:8px;padding:12px}.source-page .connection-activity .delivery-item{font:12px ui-monospace,SFMono-Regular,Consolas,monospace}.source-page .connection-activity .delivery-item small{font-size:11px}.source-page .connection-handshake{padding:20px}.source-page .connection-handshake p{font-size:12px;margin:10px 0}.source-page .connection-handshake p:before{content:'✓';color:#49deca;margin-right:12px}.source-page .connection-advanced summary{cursor:pointer;color:#9fd9d1;font-size:12px}.source-page .connection-advanced select{margin:12px 0 0}
@media(max-width:1100px){.source-page .source-top{align-items:flex-start;flex-direction:column}.source-page .source-tabs{justify-content:flex-start}.source-page .source-grid{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr)}}
@media(max-width:700px){.source-page .source-top{gap:16px}.source-page .source-header{flex-wrap:wrap}.source-page .source-header h1{font-size:24px}.source-page .source-grid{grid-template-columns:1fr}.source-page .source-tab{min-width:75px;padding:8px}.source-page .source-primary,.source-page .source-secondary{min-width:0}}
.source-page.mapping-page .source-top .source-header,.source-page.mapping-page .source-top .source-tabs{margin:0}

/* Incident workspace: the same surfaces and restrained signals as Connection. */
.incident-toolbar{display:flex;gap:10px;align-items:center;margin:22px 0 15px}.incident-toolbar input{flex:1;min-width:180px}.incident-toolbar select{width:auto;min-width:150px}.incident-toolbar button{white-space:nowrap}
.incident-workspace{display:grid;grid-template-columns:minmax(360px,1.15fr) minmax(390px,1fr);gap:18px;align-items:start}
.incident-list,.incident-detail{min-width:0;padding:0;overflow:hidden}.incident-list-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #30434e;font-weight:700}.incident-list-head small{font-size:11px;color:#9bb3c0;font-weight:400}
.incident-row{display:grid;grid-template-columns:minmax(145px,1fr) auto minmax(105px,.65fr) 13px;align-items:center;gap:14px;width:100%;border:0;border-bottom:1px solid #2e414c;border-radius:0;background:#111920;text-align:left;padding:17px 19px;font-weight:400}.incident-row:last-child{border-bottom:0}.incident-row:hover:not(:disabled){background:#182a30}.incident-row.selected,.incident-row.selected:hover:not(:disabled){background:#0e302e;box-shadow:inset 3px 0 #40dec7}.incident-title{min-width:0}.incident-title strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.incident-title small{display:block;margin-top:6px;color:#a5bdc8;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.incident-row-date{color:#adc4d0;font-size:11px;text-align:right;line-height:1.4}
.severity-tag{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border:1px solid #455862;border-radius:20px;color:#bdcdd5;background:#192630;text-transform:capitalize;font-size:11px;font-weight:700;white-space:nowrap}.severity-tag.critical{color:#ffaaa8;background:#382022;border-color:#7d4245}.severity-tag.high{color:#ffc08b;background:#352719;border-color:#80603b}.severity-tag.medium{color:#f3da91;background:#302d1c;border-color:#746532}.severity-tag.low{color:#83e2d3;background:#163530;border-color:#337c6e}.severity-tag.info{color:#99cafa;background:#172d3d;border-color:#375d80}
.incident-detail{padding:22px;max-height:calc(100vh - 250px);min-height:360px;overflow-y:auto;scrollbar-color:#39535b transparent}.incident-detail-head h2{font-size:23px;line-height:1.3;margin:8px 0 14px;overflow-wrap:anywhere}.incident-detail-head>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.incident-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;border-top:1px solid #314651;border-bottom:1px solid #314651;padding:19px 0;margin:20px 0}.incident-facts small{display:block;font-size:11px;color:#9db4c2;margin-bottom:6px}.incident-facts strong{display:block;font-size:12px;overflow-wrap:anywhere;font-weight:600}.incident-section{border-bottom:1px solid #30434e;padding:4px 0 20px;margin-top:19px}.incident-section:last-child{border-bottom:0}.incident-section pre{max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0;font-size:11px}.incident-section .muted{font-size:12px}.incident-timeline{padding-left:20px;margin:14px 0 0;border-left:1px solid #3f8179;list-style:none}.incident-timeline li{position:relative;padding:0 0 18px}.incident-timeline li:last-child{padding-bottom:0}.incident-timeline li:before{content:'';position:absolute;left:-25px;top:5px;width:9px;height:9px;background:#47ddc8;border-radius:50%}.incident-timeline strong{display:block;font-size:12px}.incident-timeline time,.incident-timeline small{display:block;font-size:11px;margin-top:4px;color:#9fb8c4}.incident-evidence summary{cursor:pointer;color:#b6e9e3;font-size:12px;font-weight:700}.incident-evidence summary span{float:right;color:#9fb8c4;font-weight:400}.incident-empty,.incident-loading{text-align:center;color:#aac1cb;padding:70px 18px;font-size:12px}.pagination-count{font-size:12px;color:#b5c7d0;min-width:45px;text-align:center}
@media(max-width:1150px){.incident-workspace{grid-template-columns:1fr}.incident-detail{max-height:none}.incident-toolbar{flex-wrap:wrap}.incident-toolbar input{flex-basis:100%}}
@media(max-width:700px){.incident-toolbar select{flex:1;min-width:120px}.incident-row{grid-template-columns:minmax(110px,1fr) auto 12px;gap:7px;padding:13px 10px}.incident-row-date{display:none}.incident-detail{padding:15px}.incident-facts{gap:15px 8px}.pagination-count{display:none}}

/* Source management keeps connection details beside the selected source. */
.sources-home .collection-layout{grid-template-columns:minmax(500px,1.5fr) minmax(390px,1fr)}
.sources-home .collection-columns{grid-template-columns:minmax(0,1fr) 82px 117px 57px;gap:8px;padding:15px 17px}
.sources-home .collection-columns span:last-child{text-align:center}
.sources-home .collection-row{display:grid;grid-template-columns:minmax(0,1fr) 57px;gap:8px;align-items:center;padding:0 17px;border:0;border-bottom:1px solid #30434e;border-radius:0;min-height:76px}
.sources-home .collection-row.selected,.sources-home .collection-row.selected:hover:not(:disabled){border:0;border-bottom:1px solid #40dec7;border-radius:0;box-shadow:inset 3px 0 #40dec7}
.sources-home .source-select{min-width:0;width:100%;display:grid;grid-template-columns:minmax(0,1fr) 82px 117px;align-items:center;gap:8px;padding:12px 0;text-align:left;border:0;background:transparent;color:inherit;font-weight:400}
.sources-home .source-select:hover:not(:disabled){background:transparent}
.sources-home .collection-name .source-symbol{width:33px;height:33px;color:#6cead8}
.source-symbol svg{width:22px;height:22px}
.sources-home .collection-name small{font-size:11px;margin-top:5px}
.sources-home .collection-date{font-size:11px}
.source-toggle{justify-self:center;position:relative;width:42px;height:25px;padding:0;border-radius:16px;border:1px solid #506573;background:#283741;flex:none;cursor:pointer}
.source-toggle span{display:block;position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;background:#a7b8c3;transition:transform .18s,background .18s}
.source-toggle.on{border-color:#3bdac4;background:#126557}
.source-toggle.on span{background:#eafffb;transform:translateX(17px)}
.source-toggle:disabled{cursor:not-allowed;opacity:.43}
.sources-home .source-inspector{grid-template-columns:1fr;gap:12px}
.sources-home .connection-card{min-width:0;padding:18px 19px}
.connection-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.connection-card-head h2{font-size:20px;margin:5px 0 0;overflow-wrap:anywhere}
.connection-card-head button{white-space:nowrap;padding:9px 11px;font-size:12px}
.connection-card>.eyebrow{color:#aac0cc!important}
.connection-card .copy-line{display:flex;min-width:0;align-items:center;gap:0;padding:0;margin:12px 0 8px;overflow:hidden}
.connection-card .copy-line .source-method{align-self:stretch;display:flex;align-items:center;flex:none;padding:0 10px;border-radius:6px 0 0 6px;font-size:11px}
.connection-card .copy-line code{flex:1;min-width:0;overflow:auto;white-space:nowrap;padding:12px;font-size:11px}
.connection-card .copy-line button{flex:none;margin-right:5px;padding:7px 9px;font-size:11px}
.connection-card .muted{font-size:12px;margin:8px 0 0}
.connection-key-line{display:flex;gap:8px;margin:14px 0 0}
.connection-key-line input{flex:1;min-width:0;font:12px ui-monospace,SFMono-Regular,Consolas,monospace}
.connection-key-line button{padding:8px 12px}
.connection-card .connection-key-warning{background:#322617;border:1px solid #775828;border-radius:7px;color:#f2c98c;padding:10px 12px;font-size:12px;line-height:1.5;margin:12px 0}
.connection-card>button.primary{padding:10px 12px}
.connection-request pre{min-height:112px;max-width:100%;overflow:auto;margin:12px 0;padding:13px;white-space:pre;font:11px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace}
.connection-request>button{padding:9px 12px;font-size:12px}

/* Mapping owns sample entry, validation and publication. */
.mapping-incoming .input-view-switch{display:flex;gap:5px;margin:12px 0}
.input-view-switch button{padding:7px 12px;font-size:12px}
.input-view-switch button.selected{background:#113831;border-color:#46dcca;color:#9af5e7}
.input-field-view[hidden],.input-json-view[hidden]{display:none!important}
.input-json-view textarea{display:block;width:100%;min-height:290px;resize:vertical;white-space:pre;overflow:auto;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
.input-json-view p{font-size:11px;line-height:1.5;color:#afc4cd;margin:10px 0}
.input-json-view button{font-size:11px}
.mapping-checks{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 19px;margin-bottom:13px;border-color:#357468;background:#102520}
.mapping-checks h3{font-size:15px;margin:6px 0 8px}
.mapping-check-list{display:flex;flex-wrap:wrap;gap:6px 13px;font-size:11px}
.mapping-check-list .bad{overflow-wrap:anywhere}
.mapping-checks .primary{flex:none;padding:10px 13px}
.mapping-policy{padding:0;margin-bottom:14px}
.mapping-policy summary{padding:11px 16px;cursor:pointer;color:#b9d3d7;font-size:12px}
.mapping-policy p,.mapping-policy select{margin:5px 16px 14px;font-size:12px}
.mapping-policy select{width:calc(100% - 32px);max-width:440px}

/* Collapsible navigation uses the existing fixed action dock. */
.sidebar .brand{white-space:nowrap}
.sidebar .brand-label,.sidebar .nav-label{display:none}
.sidebar nav svg{width:22px;height:22px;flex:none}
.sidebar #sidebar-toggle{margin-top:auto;width:48px;min-height:40px;border-color:#2e4951;background:transparent;color:#9fb9c6;font-size:20px}
.sidebar-bottom{margin-top:6px}
body.nav-expanded .sidebar{width:212px;align-items:stretch;padding:16px 10px}
body.nav-expanded .sidebar .brand{display:flex;width:auto;justify-content:flex-start;gap:13px;padding:0 10px;font-size:25px}
body.nav-expanded .sidebar .brand-label{display:inline;font-size:16px;color:#eaf7f7}
body.nav-expanded .sidebar .nav-label{display:inline;font-size:13px}
body.nav-expanded .sidebar nav button{display:flex;align-items:center;gap:13px;width:100%;padding:0 13px;text-align:left;font-size:21px}
body.nav-expanded .sidebar #sidebar-toggle{display:flex;align-items:center;gap:13px;width:100%;padding-left:14px;text-align:left}
body.nav-expanded .sidebar-bottom{padding-left:15px}
body.nav-expanded .shell{margin-left:212px}
body.nav-expanded .wizard-footer,body.nav-expanded .pagination-footer{left:212px}
body.nav-expanded #message{left:228px}
@media(max-width:1250px){.sources-home .collection-layout{grid-template-columns:1fr}.sources-home .source-inspector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.sources-home .connection-request{grid-column:1/-1}}
@media(max-width:700px){
  .sidebar #sidebar-toggle,.sidebar .nav-label,.sidebar .brand-label{display:none!important}
  body.nav-expanded .sidebar{width:100%;height:52px;flex-direction:row;justify-content:space-between;align-items:center;padding:4px 10px}
  body.nav-expanded .sidebar .brand{width:42px;height:42px;padding:0;margin:0;font-size:29px}
  body.nav-expanded .sidebar nav{display:flex;width:auto;gap:6px}
  body.nav-expanded .sidebar nav button{width:43px;height:40px;display:grid;place-items:center;padding:0;font-size:19px}
  body.nav-expanded .shell{margin-left:0}
  body.nav-expanded .wizard-footer,body.nav-expanded .pagination-footer{left:0}
  body.nav-expanded #message{left:9px}
  .sources-home .collection-columns{grid-template-columns:minmax(0,1fr) 72px 50px;padding:12px 9px}
  .sources-home .collection-columns span:nth-child(3){display:none}
  .sources-home .collection-columns span:last-child{display:block}
  .sources-home .collection-row{grid-template-columns:minmax(0,1fr) 50px;padding:0 9px}
  .sources-home .source-select{grid-template-columns:minmax(0,1fr) 72px}
  .sources-home .source-select .collection-date{display:none}
  .sources-home .collection-name{gap:7px}
  .sources-home .source-inspector{grid-template-columns:1fr}
  .sources-home .connection-request{grid-column:auto}
  .mapping-checks{flex-direction:column;align-items:stretch}
  .mapping-checks .primary{align-self:flex-start}
}
.confirm-dialog{width:min(440px,calc(100vw - 24px));padding:23px;background:#111b23;border:1px solid #40616a;border-radius:12px;color:#eaf6f6}
.confirm-dialog h2{margin:0 0 10px;font-size:19px}
.confirm-dialog p{margin:0 0 20px;font-size:13px;line-height:1.5;color:#b9cbd2}
.confirm-actions{display:flex;gap:10px;justify-content:flex-end}
.confirm-actions button{width:auto;min-width:115px;margin:0;padding:9px 14px}
.confirm-dialog::backdrop{background:#050b0bd9}

/* Full-width incident inventory with an on-demand detail drawer. */
.incident-toolbar{margin:22px 0 10px;flex-wrap:wrap}
.incident-toolbar input{flex:1;min-width:220px}
.incident-toolbar select{width:auto;min-width:145px}
.incident-view-actions{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.incident-view-actions details{position:relative;z-index:6}
.incident-view-actions summary{list-style:none;cursor:pointer;border:1px solid #39515d;border-radius:8px;background:#121c24;color:#d9ecee;padding:10px 13px;font-size:12px;font-weight:650;white-space:nowrap}
.incident-view-actions summary::-webkit-details-marker{display:none}
.incident-view-actions summary:hover{border-color:#39ddc7}
.incident-view-right{display:flex;align-items:center;gap:8px}
.incident-view-right label{margin:0 2px 0 0;color:#a8c0cb;font-size:12px}
.incident-view-right select{width:auto;max-width:175px;min-width:120px;font-size:12px}
.incident-view-right button{font-size:12px;padding:10px}
.incident-column-options{position:absolute;right:0;top:calc(100% + 6px);min-width:214px;max-height:355px;overflow:auto;padding:10px;border:1px solid #3a5460;border-radius:10px;background:#14202a;box-shadow:0 16px 45px #0009}
.incident-column-options label{display:flex;align-items:center;gap:10px;margin:0;padding:9px 7px;border-radius:6px;cursor:pointer;font-size:12px;white-space:nowrap}
.incident-column-options label:hover{background:#1a3135}
.incident-column-options input{width:auto;margin:0;accent-color:#39ddc7}
.incident-filter-controls{position:absolute;left:0;top:calc(100% + 6px);width:min(670px,calc(100vw - 110px));display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px;border:1px solid #3a5460;border-radius:10px;background:#14202a;box-shadow:0 16px 45px #0009}
.incident-filter-controls select,.incident-filter-controls input{width:auto;min-width:125px;flex:1;font-size:12px}
.incident-filter-controls #incident-value-wrap{flex:1;display:flex;min-width:145px}
.incident-filter-controls #incident-value-wrap input,.incident-filter-controls #incident-value-wrap select{width:100%;min-width:0}
.incident-filter-controls button{padding:10px 12px;font-size:12px}
.incident-list{width:100%;padding:0;overflow:hidden}
.incident-table-scroll{overflow:auto;max-height:calc(100vh - 325px);scrollbar-color:#3d6068 transparent}
.incident-table{width:100%;min-width:max(880px,100%);border-collapse:collapse;table-layout:fixed}
.incident-table th{position:sticky;top:0;z-index:2;background:#18242d;padding:0;border-bottom:1px solid #3b5260;text-align:left}
.incident-sort-head{width:100%;min-height:42px;text-align:left;background:transparent;border:0;border-radius:0;padding:12px 15px;font:650 10px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.07em;text-transform:uppercase;color:#a9c5d0;white-space:nowrap}
.incident-sort-head:hover:not(:disabled){background:#23353b;color:#7cebd9;border:0}
.incident-sort-head span{color:#5de5d0;font-size:15px}
.incident-table td{min-width:0;padding:14px 15px;border-bottom:1px solid #2b3e4b;color:#d7e8ec;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.incident-table td>span:not(.severity-tag):not(.ai-state):not(.incident-status){display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.incident-table tbody tr{background:#111920;cursor:pointer}
.incident-table tbody tr:hover{background:#193035}
.incident-table tbody tr:last-child td{border-bottom:0}
.incident-open{width:100%;padding:0;text-align:left;border:0;background:transparent;color:#e8f7f7;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.incident-open:hover:not(:disabled){background:transparent;color:#6be9d5;border:0}
.incident-no-results{text-align:center!important;padding:45px 15px!important;color:#b1c4ce!important;white-space:normal!important}
.incident-status{text-transform:capitalize;color:#b2d5dd}
.ai-state{display:inline-flex;align-items:center;padding:5px 9px;border:1px solid #465262;border-radius:15px;background:#1c2631;color:#c4d1dc;font-size:11px;text-transform:capitalize;white-space:nowrap}
.ai-state.waiting,.ai-state.running{border-color:#716038;background:#302917;color:#ecd394}
.ai-state.completed{border-color:#337668;background:#16332e;color:#8df1db}
.ai-state.error{border-color:#874c4e;background:#3a2226;color:#ffada9}
dialog.incident-detail{position:fixed;inset:57px 0 0 auto;margin:0;width:min(530px,100vw);height:calc(100vh - 57px);max-height:none;padding:0;border:0;border-left:1px solid #3e5861;border-radius:12px 0 0 0;background:#111b23;overflow:auto;color:#eaf4f4;scrollbar-color:#3d6068 transparent}
dialog.incident-detail::backdrop{background:#050d11ae;backdrop-filter:blur(2px)}
.incident-drawer-toolbar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-bottom:1px solid #334953;background:#13222b}
.incident-drawer-toolbar button{width:33px;height:33px;margin:0;padding:5px}
#incident-detail-body{padding:4px 23px 28px}
@media(max-width:900px){.incident-view-actions{flex-wrap:wrap}.incident-view-right{flex-wrap:wrap}.incident-table-scroll{max-height:calc(100vh - 355px)}}
@media(max-width:700px){.incident-toolbar input{flex-basis:100%}.incident-toolbar select{flex:1;min-width:125px}.incident-view-right{width:100%}.incident-view-right label{display:none}.incident-filter-controls{width:min(480px,calc(100vw - 26px))}.incident-table-scroll{max-height:calc(100vh - 350px)}dialog.incident-detail{top:52px;height:calc(100vh - 52px);width:100%;border-radius:0}.pagination-footer{justify-content:space-between}}

/* Incident inventory: keep the controls compact and the fixed footer clear. */
main.incident-page{padding-top:20px;padding-bottom:calc(100px + env(safe-area-inset-bottom, 0px))}
.incident-page .collection-heading{margin-bottom:12px;align-items:center}
.incident-page .collection-heading h1{font-size:27px;line-height:1.15;margin:3px 0}
.incident-page .collection-heading p{font-size:12px;line-height:1.35;margin:0}
.incident-page .incident-toolbar{margin:0 0 8px;gap:8px}
.incident-page .incident-toolbar input{min-width:200px}
.incident-page .incident-toolbar input,.incident-page .incident-toolbar select,.incident-page .incident-toolbar button,
.incident-page .incident-view-right select,.incident-page .incident-view-right button,.incident-page .incident-view-actions summary{min-height:36px;padding:7px 11px;font-size:12px}
.incident-page .incident-view-actions{margin-bottom:10px;gap:10px;align-items:center}
.incident-page .incident-list-head{padding:10px 16px;font-size:13px}
.incident-page .incident-table-scroll{max-height:max(180px,calc(100dvh - 360px))}
.incident-page .incident-table{min-width:max(100%,var(--incident-table-min-width));table-layout:fixed}
.incident-page .incident-sort-head{min-height:37px;padding:9px 12px}
.incident-page .incident-table td{padding:10px 12px}
.incident-page .incident-open>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.incident-page .incident-table-scroll:focus-visible{outline:2px solid #52ead5;outline-offset:-2px}
.incident-page .incident-open:focus-visible{outline:2px solid #52ead5;outline-offset:-2px}
.incident-page .pagination-footer{padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px))}
@media(max-width:900px){.incident-page .incident-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,auto) minmax(150px,auto) auto}.incident-page .incident-toolbar input{min-width:0}.incident-page .incident-toolbar select{min-width:0;max-width:210px}.incident-page .incident-table-scroll{max-height:max(180px,calc(100dvh - 395px))}}
@media(max-width:700px){.incident-page .collection-heading h1{font-size:23px}.incident-page .collection-heading p{font-size:11px}.incident-page .incident-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.incident-page .incident-toolbar input{grid-column:1/-1}.incident-page .incident-toolbar select{width:100%;max-width:none}.incident-page .incident-toolbar button{grid-column:1/-1}.incident-page .incident-view-actions{align-items:flex-start}.incident-page .incident-view-right{justify-content:flex-end}.incident-page .incident-table-scroll{max-height:max(180px,calc(100dvh - 495px))}.incident-page .incident-list-head{padding:9px 12px}}

/* Personalized incident columns and charts. */
.incident-page .incident-table td[data-field="title"],.incident-page .incident-table td[data-field="datasource"]{white-space:normal}
.incident-page .incident-table td[data-field="title"] .incident-multiline,.incident-page .incident-table td[data-field="datasource"] .incident-multiline{display:-webkit-box;max-width:100%;overflow:hidden;white-space:normal;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35}
.incident-page .incident-table td[data-field="title"] .incident-open{white-space:normal;line-height:1.35}
.incident-page .incident-column-options{min-width:min(440px,calc(100vw - 38px));max-height:420px;padding:9px}
.incident-column-option{display:flex;align-items:center;gap:5px;min-height:38px;padding:3px 4px;border-radius:6px}
.incident-column-option:hover,.incident-column-option.drag-over{background:#1b3539}
.incident-column-option.drag-over{box-shadow:inset 0 2px #3bdec9}
.incident-drag-handle{width:18px;flex:none;color:#75c9bd;cursor:grab;text-align:center;font-size:17px;line-height:1}
.incident-drag-handle[draggable="false"]{opacity:.3;cursor:default}
.incident-column-option label{display:flex;align-items:center;flex:1;min-width:0;gap:8px;cursor:pointer;margin:0;padding:5px 3px;font-size:11px}
.incident-column-option label input{flex:none}
.incident-column-width{width:62px!important;min-width:62px!important;padding:5px!important;font-size:11px!important;text-align:right}
.incident-column-option .incident-move{margin:0;padding:4px 5px;font-size:12px;line-height:1;border:0;background:transparent}
.incident-column-option .incident-move:hover{background:#25453f}
.incident-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 12px}
.incident-card{min-width:0;min-height:156px;padding:12px;border:1px solid #30444c;border-radius:10px;background:#121e26}
.incident-card-head,.incident-card-foot{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#9ebbc8;font:600 10px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.035em}
.incident-card-head>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.incident-card select{width:23px;min-width:23px;height:25px;padding:0 1px;color:#c9dcdd;background:#182931;font-size:11px;cursor:pointer}
.incident-card select:focus,.incident-card select:hover{width:auto;min-width:120px;max-width:180px}
.incident-card-foot{margin-top:7px;font-size:10px;font-weight:400;letter-spacing:0}
.incident-card-foot select{width:auto;min-width:74px;height:25px;padding:3px 6px}
.incident-card-body{min-height:91px;display:flex;align-items:center;gap:11px;margin:5px 0;overflow:hidden}
.incident-card-total{font-size:38px;line-height:1;color:#63ead4}
.incident-card-caption,.incident-card-empty{font-size:11px;line-height:1.4;color:#a9bfca}
.incident-card-legend,.incident-bars{flex:1;min-width:0;max-height:90px;overflow:auto;scrollbar-width:thin}
.incident-card-legend>div,.incident-bar-row{display:flex;align-items:center;gap:5px;margin:2px 0;color:#b6cbd4;font-size:10px}
.incident-card-legend i{width:7px;height:7px;flex:none;border-radius:2px}
.incident-card-legend span,.incident-bar-row>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.incident-card-legend strong,.incident-bar-row strong{font-size:10px}
.incident-donut{width:70px;height:70px;flex:none;display:grid;place-items:center;border-radius:50%}
.incident-donut span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#121e26;color:#f1f7f8;font-weight:700;font-size:14px}
.incident-bar-row>span{max-width:95px}.incident-bar-track{height:6px;flex:1;border-radius:5px;background:#273640;overflow:hidden}.incident-bar-track i{display:block;height:100%;border-radius:5px}
.incident-page .incident-table-scroll{max-height:max(180px,calc(100dvh - 540px))}
@media(max-width:1250px){.incident-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.incident-page .incident-table-scroll{max-height:max(180px,calc(100dvh - 710px))}}
@media(max-width:700px){.incident-cards{grid-template-columns:1fr 1fr}.incident-card{min-height:146px;padding:9px}.incident-card-body{min-height:77px}.incident-donut{width:52px;height:52px}.incident-donut span{width:36px;height:36px;font-size:10px}.incident-page .incident-table-scroll{max-height:max(180px,calc(100dvh - 775px))}}

/* Put search and field filtering before the charts; keep table controls together. */
.incident-page .incident-toolbar{display:flex;align-items:center;flex-wrap:nowrap;margin:0 0 10px;gap:9px}
.incident-page .incident-toolbar input{flex:1;min-width:0}
.incident-page .incident-toolbar details{position:relative;z-index:8;flex:none}
.incident-page .incident-toolbar summary{list-style:none;cursor:pointer;min-height:36px;padding:7px 11px;border:1px solid #39515d;border-radius:8px;background:#121c24;color:#d9ecee;font-size:12px;font-weight:650;white-space:nowrap}
.incident-page .incident-toolbar summary::-webkit-details-marker{display:none}
.incident-page .incident-toolbar summary:hover{border-color:#39ddc7}
.incident-page .incident-toolbar button{flex:none;white-space:nowrap}
.incident-page .incident-view-actions{justify-content:flex-end;margin:0 0 8px}
.incident-card{height:174px;min-height:0;display:flex;flex-direction:column;padding:12px}
.incident-card-head>span{flex:1}
.incident-card select{flex:none;width:118px;min-width:0;max-width:45%;height:28px;padding:4px 6px;font-size:11px;white-space:nowrap;text-overflow:ellipsis}
.incident-card select:hover,.incident-card select:focus{width:118px;min-width:0;max-width:45%}
.incident-card-foot{margin-top:auto;min-height:28px}
.incident-card-foot select{width:82px;min-width:0;max-width:45%}
.incident-card-body{flex:1;min-height:0;overflow:hidden;margin:6px 0}
.incident-donut{width:74px;height:74px;border-radius:0;background:none;display:block}
.incident-card-legend,.incident-bars{max-height:83px;overflow:auto}
.incident-bar-track{display:block;min-width:40px;flex:1;height:8px;overflow:visible;background:none}
.incident-page .incident-table-scroll{max-height:none}
@media(max-width:1250px){.incident-card{height:162px}}
@media(max-width:700px){.incident-page .incident-toolbar{display:flex;flex-wrap:wrap}.incident-page .incident-toolbar input{flex-basis:100%}.incident-page .incident-toolbar details{flex:1}.incident-page .incident-toolbar button{flex:none}.incident-card{height:154px;padding:9px}.incident-card select{width:80px;max-width:44%}.incident-card select:hover,.incident-card select:focus{width:80px;max-width:44%}.incident-donut{width:57px;height:57px}.incident-card-legend,.incident-bars{max-height:74px}}

/* Field filter content expands below the compact search row. */
.incident-page .incident-cards[hidden]{display:none!important}
.incident-page .incident-filter-controls{position:static;width:100%;max-width:100%;box-sizing:border-box;margin:8px 0 0;box-shadow:none;display:grid;grid-template-columns:minmax(130px,1.2fr) minmax(145px,1fr) minmax(170px,1.5fr) auto auto;gap:8px}
.incident-page .incident-filter-controls>select,.incident-page .incident-filter-controls #incident-value-wrap{min-width:0;width:100%}
@media(max-width:850px){.incident-page .incident-filter-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.incident-page .incident-filter-controls #incident-value-wrap{grid-column:1/-1}}
@media(max-width:550px){.incident-page .incident-filter-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact incident query row and inline table visibility control. */
.incident-page .incident-toolbar{position:relative;display:flex;flex-wrap:nowrap;gap:8px}
.incident-page .incident-search-wrap{position:relative;flex:1 1 auto;min-width:0}
.incident-page .incident-search-wrap input{width:100%;min-width:0;min-height:36px;padding:7px 11px;font-size:12px}
.incident-page .incident-toolbar button{flex:0 0 auto;min-height:36px;padding:7px 11px;font-size:12px}
.incident-suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:15;max-height:220px;overflow-y:auto;border:1px solid #3a5460;border-radius:8px;background:#14202a;box-shadow:0 16px 35px #0009}
.incident-suggestions[hidden],.incident-page .incident-filter-panel[hidden]{display:none!important}
.incident-suggestions button{display:block;width:100%;min-height:32px;text-align:left;padding:7px 11px;border:0;border-radius:0;background:transparent;color:#d9ecee;font:12px ui-monospace,SFMono-Regular,Consolas,monospace}
.incident-suggestions button:hover,.incident-suggestions button[aria-selected="true"]{background:#25453f;color:#70f0dc}
.incident-page .incident-filter-panel{margin:0 0 8px}
.incident-page .incident-filter-controls{margin:0}
.incident-page .incident-view-actions{justify-content:space-between;align-items:center}
.incident-charts-switch{display:inline-flex;align-items:center;gap:8px;margin:0;color:#a9c5d0;font-size:12px;cursor:pointer;white-space:nowrap}
.incident-charts-switch input{width:15px;height:15px;margin:0;accent-color:#39ddc7;cursor:pointer}
@media(max-width:700px){.incident-page .incident-toolbar{flex-wrap:wrap}.incident-page .incident-search-wrap{flex-basis:100%}.incident-page .incident-toolbar button{flex:1 1 auto}.incident-page .incident-view-actions{gap:8px;flex-wrap:wrap}.incident-page .incident-view-right{width:auto;min-width:0;margin-left:auto}}
