.nexus-hero{background:linear-gradient(120deg,#122c4e,#195c73);color:#fff;border-radius:18px;padding:28px 32px;margin-bottom:24px;box-shadow:0 8px 24px #173b5e14}.nexus-hero h2{font-size:26px;color:#fff;margin:12px 0}.nexus-hero p{color:#dfedf3;max-width:820px;line-height:1.65}.nexus-kicker{font-size:11px;letter-spacing:1.7px;color:#f2cf78;font-weight:700}.nexus-flow{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}.nexus-flow span{padding:10px 14px;border:1px solid #9aacbe66;border-radius:10px;font-weight:600;font-size:12px}.nexus-flow .active{background:#153f60;color:#fff}.nexus-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:18px}.nexus-card{padding:24px;display:flex;flex-direction:column;gap:10px}.nexus-card h2{font-size:20px;margin:6px 0}.nexus-card p{margin:0}.nexus-card .actions{flex-wrap:wrap;margin-top:auto;padding-top:16px}.nexus-card-top{display:flex;gap:8px;align-items:center;justify-content:space-between}.nexus-card-top small{color:#677d8c;font-size:11px}.nexus-badge{border-radius:20px;padding:5px 10px;font-size:11px;background:#edf1f4;white-space:nowrap}.nexus-badge.ready{background:#def3e9;color:#19634c}.nexus-badge.busy{background:#e4edff;color:#255594}.nexus-badge.warning{background:#fff0d3;color:#8c5510}.nexus-note{padding:24px;margin-top:24px;line-height:1.7}.nexus-muted{display:block;font-size:11px;color:#708293}.nexus-table-list article{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #e4eaf0}.nexus-table-list article>div{flex:1}.nexus-table-list p{font-size:12px;color:#677d8c}.nexus-parameters{white-space:pre-wrap;background:#f3f6fa;border:1px solid #dae3ed;padding:16px;border-radius:8px}.nexus-import{padding:16px;background:#eef5fb;margin:12px 0;border-radius:10px}#nx-values{width:100%;box-sizing:border-box;padding:12px;border:1px solid #c8d7e4;border-radius:8px;font:14px/1.6 monospace}@media(max-width:640px){.nexus-hero{padding:20px}.nexus-hero h2{font-size:22px}.nexus-table-list article{flex-wrap:wrap}.nexus-table-list article>div{flex-basis:100%}}
.nexus-filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid var(--line,#dce5ed);border-radius:12px;padding:14px;margin:14px 0;background:#f6f9fc}.nexus-filter-row button{justify-self:start}.nexus-selection{margin-block:20px}#nexus-inspection details{border:1px solid #dce5ed;border-radius:10px;padding:12px;margin:10px 0}#nexus-inspection summary{cursor:pointer;font-weight:600}#nexus-inspection .table-wrap{max-height:320px;overflow:auto}#nexus-inspection td{max-width:320px;overflow-wrap:anywhere}.nexus-flow{flex-wrap:wrap}@media(max-width:640px){.nexus-filter-row{grid-template-columns:1fr}}
.nexus-research{margin-block:24px}.nexus-research article{border:1px solid #dce5ed;border-radius:14px;padding:18px;background:#fafbfd}.nexus-research p{line-height:1.65;color:#456274}.nexus-research .button{display:inline-block;padding:12px;border-radius:8px;background:#174653;color:white;text-decoration:none}

.nexus-catalog{max-height:60vh;overflow:auto;padding:4px}.nexus-catalog h3{margin:6px 0}.nexus-catalog details{font-size:13px}.nexus-catalog button{margin-top:auto}.nexus-hero>button{background:#fff;color:#153f60;border-color:#fff}

.nexus-finding-question,.nexus-finding-reading{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px}.nexus-finding-reading summary{font-weight:700;cursor:pointer}.nexus-finding-question button[aria-pressed="true"]{outline:2px solid var(--accent);outline-offset:2px}

.nexus-start{margin:24px 0 30px}.nexus-start .nexus-kicker{color:#8b650c}.nexus-start h2{margin:8px 0;font-size:22px}.nexus-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.nexus-entry{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;padding:24px;background:#fff;border:1px solid #d6e2ef;border-radius:16px;min-width:0;box-shadow:0 4px 16px #173d6208;transition:transform .16s,box-shadow .16s}.nexus-entry:hover{transform:translateY(-3px);box-shadow:0 10px 24px #173d6218;border-color:#6a9ac5}.nexus-entry>strong{font-size:18px}.nexus-entry>span:not(.nexus-entry-icon){font-size:13px;font-weight:400;line-height:1.5;color:#536c82}.nexus-entry>b{margin-top:auto;font-size:12px;color:#245f94}.nexus-entry-icon{display:grid;place-items:center;width:42px;height:42px;background:linear-gradient(135deg,#e7f1fd,#f8ebbd);border-radius:12px;color:#1c5a8b;font-size:26px}.nexus-availability{color:#637589;font-size:12px;line-height:1.6}.nexus-search-intro h3{font-size:24px;margin:12px 0}.nexus-search-form{display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr) auto;gap:12px;align-items:end;padding:18px;background:#f1f6fc;border-radius:12px}.nexus-search-form label{display:flex;flex-direction:column;gap:8px;min-width:0}.nexus-search-form input,.nexus-search-form select{width:100%;box-sizing:border-box}.nexus-search-form button{min-height:42px}.nexus-search-empty{text-align:center;padding:28px 18px;background:#f8fafc;border:1px dashed #cbd9e7;border-radius:14px;margin:20px 0}.nexus-search-empty>span{font-size:34px;color:#6792b9}.nexus-search-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0}.nexus-search-summary h3{margin:0}.nexus-search-summary>span{font-size:12px;color:#687f91}.nexus-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:48vh;overflow:auto;padding:3px}.nexus-candidate{display:flex;align-items:flex-start;gap:12px;padding:18px;border:1px solid #d5e0eb;border-radius:12px;background:white;cursor:pointer;min-width:0}.nexus-candidate.selected{background:#eff6ff;border-color:#3677ba;box-shadow:inset 0 0 0 1px #3677ba}.nexus-candidate>input{width:18px;height:18px;flex-shrink:0;margin:4px 0}.nexus-candidate>div{min-width:0;overflow-wrap:anywhere}.nexus-candidate h4{font-size:16px;margin:12px 0 5px}.nexus-candidate strong{display:block;font-size:13px;margin-top:10px}.nexus-candidate p{font-size:12px;color:#536d81;margin:6px 0;line-height:1.5}.nexus-candidate .nexus-badge{white-space:normal;display:inline-block}.nexus-search-pages{justify-content:center;align-items:center;margin:18px 0}.nexus-search-selection{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px;margin-top:18px;background:#143c62;color:white;border-radius:12px}.nexus-search-selection small{display:block;color:#d8e7f5;font-size:11px;margin-top:6px}.nexus-search-selection button{background:white!important;color:#143c62!important;border-color:white}.nexus-search-selection button:disabled{opacity:.55}.nexus-search-spinner{display:inline-block;width:26px;height:26px;border:3px solid #d6e7f8;border-top-color:#245f94;border-radius:50%;animation:nexus-spin .9s linear infinite}@keyframes nexus-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.nexus-entry{transition:none}.nexus-search-spinner{animation:none}}@media(max-width:700px){.nexus-entry-grid,.nexus-candidates{grid-template-columns:1fr}.nexus-search-form{grid-template-columns:1fr}.nexus-search-selection,.nexus-search-summary{align-items:stretch;flex-direction:column}.nexus-entry{padding:18px}}

.nexus-candidate:only-child{grid-column:1/-1}.nexus-search-dialog .nexus-search-selection{position:sticky;bottom:0;z-index:2;box-shadow:0 -8px 16px #fff9}.nexus-search-dialog .nexus-search-intro h3{margin:10px 0;font-size:22px}.nexus-search-dialog .nexus-search-intro p{margin:8px 0 18px}.nexus-search-dialog .nexus-candidate h4{color:#1b4f7b}.nexus-search-dialog .nexus-candidate:only-child>div{flex:1}

/* Wizard: selection context and navigation stay visible while reviewing data. */
.nexus-search-form:has(.nexus-search-mode){grid-template-columns:minmax(140px,1fr) minmax(0,2fr) minmax(130px,1fr) auto}.nexus-search-form [hidden]{display:none}.nexus-search-form:has(#nx-search-uf-label[hidden]){grid-template-columns:minmax(140px,1fr) minmax(0,3fr) auto}
.nexus-wizard-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 24px;padding:0}.nexus-wizard-steps li{display:flex;align-items:center;gap:8px;padding:12px 10px;border-radius:10px;background:#f1f5f9;color:#61768a;font-size:13px}.nexus-wizard-steps li>span{display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;background:white;font-weight:700}.nexus-wizard-steps li[aria-current]{color:#174f83;background:#e8f2fd;font-weight:700;box-shadow:inset 0 0 0 1px #9cc3ea}.nexus-wizard-steps li[aria-current]>span{background:#245f94;color:white}
.nexus-selected-summary{margin:20px 0}.nexus-selected-heading p{font-size:13px;color:#4e6579;line-height:1.6}.nexus-selected-companies{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:10px;max-height:32vh;overflow:auto}.nexus-selected-companies article{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #bfd6ea;border-radius:12px;background:#f5faff;overflow-wrap:anywhere}.nexus-selected-companies strong{color:#1b4f7b;font-size:14px}.nexus-selected-companies span,.nexus-selected-companies small{color:#4e6579;font-size:12px}.nexus-edit-companies{padding:14px;border:1px solid #d5e0eb;border-radius:10px;margin:16px 0}.nexus-edit-companies summary{cursor:pointer;font-weight:600}.nexus-edit-companies label{margin-top:16px}
.nexus-wizard-dialog .modal-actions{position:sticky;bottom:0;z-index:3;background:white;box-shadow:0 -8px 16px #fff9;padding-block:16px;margin-bottom:0}.nexus-wizard-actions{width:100%;display:flex;align-items:center;gap:12px;margin:0}.nexus-wizard-actions>span{margin-right:auto;font-size:12px;color:#61768a}.nexus-wizard-actions button{min-height:42px}
@media(max-width:700px){.nexus-search-form:has(.nexus-search-mode),.nexus-search-form:has(#nx-search-uf-label[hidden]){grid-template-columns:1fr}.nexus-wizard-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.nexus-wizard-steps li{padding:8px;font-size:12px}.nexus-wizard-actions{flex-wrap:wrap;gap:8px}.nexus-wizard-actions>span{flex-basis:100%}.nexus-wizard-actions button.primary{flex:1}}

.nexus-next-step{padding:20px;background:linear-gradient(120deg,#edf6ff,#f7fbfe);border:1px solid #bdd7ed;border-radius:14px;margin-top:10px}.nexus-next-step .nexus-kicker,.nexus-query-intro .nexus-kicker{color:#275f8c}.nexus-next-step h3{font-size:19px;margin:10px 0}.nexus-next-step p{font-size:13px;line-height:1.6;margin-bottom:16px}.nexus-query-intro h3{font-size:24px;margin:12px 0}.nexus-query-route{display:flex;flex-wrap:wrap;gap:12px 30px;padding:16px 16px 16px 32px;background:#f1f6fc;border-radius:12px;font-size:13px}.nexus-data-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:14px;margin:18px 0}.nexus-data-choice{padding:20px;border:1px solid #c9ddeb;border-radius:14px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;background:#fff}.nexus-data-choice h3{font-size:20px;color:#1b4f7b;margin:12px 0 8px}.nexus-data-choice p{line-height:1.55;font-size:13px}.nexus-data-choice small{color:#637589}.nexus-data-choice .actions{display:flex;flex-wrap:wrap;gap:8px}.nexus-data-choice button{min-height:40px;white-space:normal}.nexus-empty-tables{margin-top:18px;padding:16px;border:1px solid #d5e0eb;border-radius:12px}.nexus-empty-tables summary{cursor:pointer;font-weight:600}.nexus-query-dialog #nexus-sample .table-wrap{max-height:35vh;overflow:auto}

/* Task-oriented discovery: four entry points and progressive filters. */
.nexus-entry-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.nx-search-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.nx-search-fields label{display:flex;flex-direction:column;gap:7px;min-width:0}.nx-search-fields label.check{flex-direction:row;align-items:center}.nx-search-fields input:not([type=checkbox]),.nx-search-fields select{width:100%;box-sizing:border-box}.nx-search-advanced{grid-column:1/-1;border:1px solid #cbdceb;border-radius:10px;padding:14px}.nx-search-advanced summary{cursor:pointer;font-weight:600}.nx-search-advanced[open] summary{margin-bottom:15px}#nx-search-form{padding:18px;background:#f1f6fc;border-radius:12px}.nx-catalog-filters{display:grid;grid-template-columns:2fr 1fr;gap:12px}.nx-coverage{padding:12px;border-radius:10px;background:#edf6f8;font-size:13px;line-height:1.6}.nx-coverage p{margin:5px 0}.nx-area-heading{margin-top:30px}.nx-catalog-scope{font-size:12px;color:#526b7e}@media(max-width:1050px){.nexus-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.nexus-entry-grid,.nx-search-fields,.nx-catalog-filters{grid-template-columns:1fr}.nx-search-advanced{grid-column:auto}}

@media(max-width:700px){.nexus-search-dialog .nexus-search-selection{position:static;box-shadow:none}.nexus-search-dialog .nexus-candidates{max-height:none}.nexus-search-dialog .nexus-search-selection button{min-height:44px}}

.cards>.nexus-source-card{grid-column:1/-1;display:grid;grid-template-columns:minmax(200px,.8fr) minmax(260px,1.2fr);gap:22px;align-items:start}.nexus-source-card .nexus-source-heading h3{font-size:21px;margin:16px 0 10px}.nexus-source-card .notice{margin-bottom:16px}.nexus-source-card>details{grid-column:1/-1;border-top:1px solid var(--line);padding-top:16px}.nexus-source-card .actions{gap:10px;flex-wrap:wrap}@media(max-width:760px){.cards>.nexus-source-card{grid-template-columns:1fr}}
