* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:var(--tv-font); }
body:before { content:""; position:fixed; z-index:-1; inset:0; opacity:.35; background-image:linear-gradient(rgba(29,107,97,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(29,107,97,.06) 1px,transparent 1px); background-size:44px 44px; }
.shell { min-height:100vh; }
.sidebar { position:fixed; top:0; left:0; z-index:10; display:flex; width:var(--sidebar-width); height:100vh; max-height:100vh; flex-direction:column; overflow-y:auto; padding:30px 22px; background:#173b36; color:#eaf1e6; }
.sidebar + .main { width:calc(100% - var(--sidebar-width)); margin-left:var(--sidebar-width); }
.brand { display:flex; gap:12px; align-items:center; margin-bottom:58px; }
.brand-mark { display:grid; place-items:center; width:38px; height:38px; border-radius: var(--tv-radius); color:var(--ink); background:var(--lime);font: 500 var(--tv-fs-sm) ui-monospace,Consolas,monospace; }
.brand strong,.brand small { display:block; } .brand strong { font-size: var(--tv-fs-lg); } .brand small { margin-top:3px; color:#8da9a2;font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; }
nav { display:grid; gap:7px; } nav a { padding:12px 14px; border-radius: var(--tv-radius); color:#a9c0ba; text-decoration:none; font-size: var(--tv-fs-md); transition:.2s; } nav a:hover,nav a.active { color:#173b36; background:var(--lime); }
.sidebar-note { margin-top:auto; padding:14px; color:#bbd0c9; border:1px solid rgba(200,239,114,.2); border-radius: var(--tv-radius);font: var(--tv-fs-xs)/1.65 ui-monospace,Consolas,monospace; } .sidebar-note small { color:#779a90; }
.status-dot { display:inline-block; width:7px; height:7px; margin-right:6px; border-radius: var(--tv-radius-full); background:var(--lime); box-shadow:0 0 0 4px rgba(200,239,114,.12); }
.main { padding:38px 5vw 80px; max-width:1500px; width:100%; margin:auto; }
.topbar,.section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; } .topbar { margin-bottom:38px; } .section-head { align-items:flex-end; margin-bottom:18px; }
h1,h2,h3,h4,p { margin-top:0; } h1 { margin-bottom:0; font-size:var(--tv-fs-display); letter-spacing:-.055em; } h2 { max-width:720px; margin:12px 0; font-size:var(--tv-fs-display); line-height:1.02; letter-spacing:-.065em; } h3 { margin:8px 0 0; font-size: var(--tv-fs-title); letter-spacing:-.045em; } h4 { margin:17px 0 9px; font-size: var(--tv-fs-lg); } p { color:var(--muted); line-height:1.7; font-size: var(--tv-fs-body); }
.eyebrow { color:#849089;font: 500 var(--tv-fs-xs) ui-monospace,Consolas,monospace; letter-spacing:.14em; } .accent { color:var(--teal); } .muted { color:var(--muted); }
.top-actions,.row-actions,.detail-actions { display:flex; align-items:center; gap:10px; } .language-picker { display:flex; align-items:center; gap:6px; color:var(--muted);font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; } .language-picker select { width:auto; padding:7px 9px; font-size: var(--tv-fs-xs); } .provider-key-field { min-width:170px; } .provider-key-field input { padding:8px; font-size: var(--tv-fs-xs); }
.ghost { cursor:pointer; }
.button { display:inline-flex; align-items:center; text-decoration:none; cursor:pointer; }
.hero { display:flex; align-items:center; justify-content:space-between; min-height:390px; padding:58px 7%; overflow:hidden; border:1px solid #d8e5d2; border-radius: var(--tv-radius); background:linear-gradient(120deg,#e7f1dd,#f8f7ec 60%,#dff1e9); box-shadow:var(--shadow); } .hero p { max-width:560px; }
.orbital { position:relative; display:grid; place-items:center; width:240px; height:240px; margin-right:5%; border:1px solid rgba(29,107,97,.35); border-radius: var(--tv-radius-full); color:var(--teal); background:rgba(255,255,255,.32);font: 500 var(--tv-fs-lg) ui-monospace,Consolas,monospace; box-shadow:0 0 0 30px rgba(255,255,255,.18),0 0 0 60px rgba(255,255,255,.14); } .orbital:before,.orbital:after { content:""; position:absolute; border:1px dashed rgba(29,107,97,.26); border-radius: var(--tv-radius-full); } .orbital:before { inset:30px; } .orbital:after { inset:67px; } .orbital i { position:absolute; width:8px; height:8px; border-radius: var(--tv-radius-full); background:var(--orange); } .orbital i:nth-of-type(1){top:25px;right:43px}.orbital i:nth-of-type(2){bottom:49px;left:32px;background:var(--teal)}.orbital i:nth-of-type(3){top:88px;left:29px;background:var(--lime)}
.metric-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:18px 0 58px; } .metric-grid article { padding:20px; border:1px solid var(--line); border-radius: var(--tv-radius); background:rgba(255,255,255,.7); } .metric-grid span,.metric-grid small { display:block; color:var(--muted);font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; } .metric-grid strong { display:block; margin:10px 0 7px; font-size: var(--tv-fs-title); letter-spacing:-.06em; }
.pill.success { color:var(--tv-brand); background:var(--tv-brand-soft); border-color:var(--tv-brand-soft); }
.module-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.module-card,.form-card,.empty-state,.provider-row,.customer-card,.search-outcome,.lineage-card { border:1px solid var(--line); border-radius: var(--tv-radius); background:var(--panel); box-shadow:0 10px 30px rgba(36,57,48,.04); }
.module-card { min-height:180px; padding:23px; } .module-number { color:var(--orange);font: var(--tv-fs-sm) ui-monospace,Consolas,monospace; } .ready { color:#84948b;font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; }
.form-card { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; padding:28px; max-width:900px; }
label { display:grid; gap:8px; color:var(--muted);font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; } input,select,textarea { width:100%; padding:12px; color:var(--ink); border:1px solid var(--line); border-radius: var(--tv-radius); outline:none; background:#fbfcf8;font: var(--tv-fs-md) Inter,'Segoe UI',Arial,sans-serif; } input:focus,select:focus,textarea:focus { border-color:var(--teal); box-shadow:0 0 0 2px rgba(29,107,97,.08); } textarea { min-height:100px; resize:vertical; }
.full-field,.form-status { grid-column:1/-1; } .form-status { margin:0; color:var(--teal);font: var(--tv-fs-xs)/1.6 ui-monospace,Consolas,monospace; }
.mode-field { padding:0; border:0; } .mode-field legend { margin-bottom:10px; color:var(--muted);font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; } .mode-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.mode-option { display:grid; grid-template-columns:auto 1fr; align-items:start; gap:11px; padding:16px; border:1px solid var(--line); border-radius: var(--tv-radius); background:#fbfcf8; cursor:pointer; } .mode-option:has(input:checked) { border-color:var(--teal); background:#eef7ea; box-shadow:0 0 0 2px rgba(29,107,97,.08); } .mode-option input { width:auto; margin-top:3px; accent-color:var(--teal); } .mode-option strong,.mode-option small { display:block; } .mode-option strong { color:var(--ink); 700 var(--tv-fs-body) Inter,'Segoe UI',Arial,sans-serif; } .mode-option small { margin-top:6px; line-height:1.5; }
.empty-state { padding:48px; color:var(--muted); text-align:center; } .provider-list,.customer-list { display:grid; gap:10px; }
.provider-row { display:grid; grid-template-columns:1fr auto auto; gap:18px; align-items:center; padding:16px 20px; } .provider-row strong,.provider-row small { display:block; } .provider-row small { margin-top:5px; color:var(--muted);font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; } .provider-card { align-items:start; }
.customer-summary { min-width:0; overflow-wrap:anywhere; } .website-link { display:inline-block; margin-top:7px; color:var(--teal);font: 600 var(--tv-fs-xs) ui-monospace,Consolas,monospace; text-underline-offset:3px; }
.customer-card { display:grid; grid-template-columns:1fr auto; gap:24px; padding:23px; } .customer-card h3 { margin:7px 0 2px; font-size: var(--tv-fs-xl); } .customer-card-side { display:flex; min-width:220px; flex-direction:column; align-items:flex-end; justify-content:space-between; gap:18px; }
.metadata-grid { display:flex; flex-wrap:wrap; gap:9px; margin-top:17px; } .metadata-grid span { min-width:145px; padding:9px 11px; border-radius: var(--tv-radius); background:#f4f7f0; color:var(--ink); font-size: var(--tv-fs-sm); } .metadata-grid b { display:block; margin-bottom:4px; color:var(--muted);font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; text-transform:uppercase; letter-spacing:.08em; }
.search-outcome { display:grid; grid-template-columns:1fr auto; gap:14px 22px; align-items:start; padding:22px; border-left:4px solid var(--teal); } .search-outcome.error { border-left-color:var(--danger); } .search-outcome.info { border-left-color:var(--orange); } .search-outcome h3 { margin:7px 0 3px; } .search-outcome p { margin-bottom:5px; } .search-outcome small { color:var(--muted); }
.search-history-panel{margin:0 0 18px;padding:18px;border:1px solid var(--line);border-radius: var(--tv-radius);background:linear-gradient(145deg,#fff,#f8faf6);box-shadow:0 10px 30px rgba(36,57,48,.04)}.search-history-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:12px}.search-history-heading h3{font-size: var(--tv-fs-xl);margin:5px 0}.search-history-heading p{font-size: var(--tv-fs-sm);margin:0}.search-history-filter{width:min(320px,40%)}.search-history-list{display:grid;gap:9px}.search-run-card{border:1px solid var(--line);border-radius: var(--tv-radius);background:#fff;overflow:hidden}.search-run-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px 14px}.search-run-details{min-width:0}.search-run-details>summary{display:grid;grid-template-columns:minmax(130px,1fr) minmax(100px,.7fr) minmax(0,2fr);align-items:center;gap:10px;min-height:36px;cursor:pointer;list-style:none}.search-run-details>summary::-webkit-details-marker{display:none}.search-run-details>summary:before{content:"+";display:grid;place-items:center;width:23px;height:23px;grid-column:1;grid-row:1;align-self:center;border:1px solid #d6e3d5;border-radius: var(--tv-radius-sm);color:var(--teal);background:#f3f8ef}.search-run-details[open]>summary:before{content:"−"}.search-run-product{grid-column:1;grid-row:1;padding-left:31px;font-weight:700;overflow-wrap:anywhere}.search-run-market{grid-column:2;grid-row:1;color:var(--muted);font-size: var(--tv-fs-sm);overflow-wrap:anywhere}.search-run-meta{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 14px;color:var(--muted);font-size: var(--tv-fs-xs)}.search-run-body{padding:10px 0 0}.search-run-evidence{display:flex;gap:9px 16px;flex-wrap:wrap;padding:8px 12px;margin:0 0 9px;border-radius: var(--tv-radius);background:#f4f7f1;color:var(--muted);font-size: var(--tv-fs-xs)}.search-run-terms{margin:6px 0 10px;color:var(--muted);font-size: var(--tv-fs-sm)}.search-run-terms summary{cursor:pointer;color:var(--teal)}.search-run-results{display:grid;gap:9px}.search-run-results .customer-card{padding:16px;box-shadow:none}.search-run-results .customer-card h3{font-size: var(--tv-fs-xl)}.search-run-export{white-space:nowrap;align-self:start}.search-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.search-history-pagination #searchHistoryPage{color:var(--muted);font-size: var(--tv-fs-xs)}#productSearchSummary:empty{display:none}#customerResultList[aria-hidden="true"]{display:none!important}
.technical-details { grid-column:1/-1; margin-top:4px; color:var(--muted); } .technical-details summary { width:max-content; color:var(--teal);font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; cursor:pointer; } .technical-details small { display:block; margin-top:8px; line-height:1.65; overflow-wrap:anywhere; }
.detail-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:18px; } #detailWebsite small { display:block; margin-top:7px; overflow-wrap:anywhere; } .detail-copy strong,.detail-copy small { display:block; } .detail-copy small { margin-top:8px; color:var(--muted);font: var(--tv-fs-xs)/1.7 ui-monospace,Consolas,monospace; } .detail-contacts { margin-top:15px; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size: var(--tv-fs-sm); line-height:1.7; } .detail-contacts b { display:block; margin-bottom:5px; color:var(--ink); font-size: var(--tv-fs-xs); } .management-form { margin-bottom:36px; } .detail-lineage-head { margin-top:16px; } .lineage-card { padding:18px 20px; }
.due-diligence-button { border-color:#b7d7c2; color:var(--teal); background:#f5fbf3; } .due-diligence-button:hover { background:#e7f4e6; transform:translateY(-1px); } .due-diligence-panel { margin:0 0 24px; padding:22px; border-color:#cfe1c6; background:linear-gradient(135deg,#fbfdf8,#f1f8ee); } .due-diligence-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; } .due-diligence-head h3 { margin-top:7px; } .due-diligence-content { margin-top:14px; } .due-diligence-usage { color:var(--teal);font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; } .due-diligence-report-text { max-height:620px; overflow:auto; padding:18px; white-space:pre-wrap; color:var(--ink); border:1px solid #dbe8d5; border-radius: var(--tv-radius); background:rgba(255,255,255,.76);font: var(--tv-fs-md)/1.75 Inter,'Segoe UI',Arial,sans-serif; } .due-diligence-evidence { margin-top:14px; color:var(--teal);font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; } .due-diligence-evidence article { margin-top:10px; padding:12px; border:1px solid var(--line); border-radius: var(--tv-radius); background:#fff; } .due-diligence-evidence article strong { display:block; color:var(--ink);font: 600 var(--tv-fs-sm) Inter,'Segoe UI',Arial,sans-serif; } .due-diligence-evidence article p { margin:5px 0; font-size: var(--tv-fs-sm); }
.provider-section { margin-top:34px; } .compact-head { margin-bottom:12px; } .compact-head h3 { margin-top:0; } .link-button { display:inline-block; text-decoration:none; }
button:disabled { opacity:.45; cursor:not-allowed; } .hidden { display:none; }

.customer-pool-toolbar input,.customer-pool-toolbar select { min-width:0; }
.pool-customer-card { grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:18px; }
.pool-customer-card .customer-summary { min-width:0; }
.pool-customer-card .customer-summary > small { display:block; margin-top:5px; color:var(--muted); font-size: var(--tv-fs-xs); }
.pool-card-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.pool-card-tags .pill { padding:5px 8px; }
.pool-group-chip,.pool-auto-tag { display:inline-flex; align-items:center; gap:4px; max-width:240px; padding:5px 9px; border:1px solid #d6e5d9; border-radius: var(--tv-radius-full); color:#295d51; background:#f0f7ed;font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; overflow-wrap:anywhere; }
button.pool-group-chip { cursor:pointer; }
.pool-auto-tag { color:#725427; border-color:#eadfbe; background:#fbf7e9; }
.pool-group-assign { display:flex; gap:7px; align-items:center; }
.pool-group-assign select { max-width:200px; padding:8px; font-size: var(--tv-fs-xs); }
.pool-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:14px 0 34px; color:var(--muted);font: var(--tv-fs-xs) ui-monospace,Consolas,monospace; }
.pool-pagination > div { display:flex; align-items:center; gap:10px; }
.pool-empty { margin:8px 0 20px; }
@media (max-width:800px) { .pool-customer-card { grid-template-columns:1fr; } .pool-customer-card > .pill { width:max-content; } .pool-group-assign { flex-wrap:wrap; } }
@media (max-width:520px) { .pool-pagination { align-items:flex-start; flex-direction:column; } .pool-pagination > div { width:100%; justify-content:space-between; } }
@media (max-width:800px) { .sidebar { position:static; width:auto; height:auto; max-height:none; overflow:visible; padding:18px; } .sidebar + .main { width:100%; margin-left:0; } .brand { margin-bottom:20px; } nav { grid-template-columns:repeat(3,1fr); } .sidebar-note { display:none; } .main { padding:27px 18px 50px; } .hero { padding:35px 25px; } .orbital { display:none; } .metric-grid,.module-grid,.form-card,.detail-grid { grid-template-columns:1fr 1fr; } .customer-card { grid-template-columns:1fr; } .customer-card-side { min-width:0; align-items:flex-start; } }
@media (max-width:520px) { nav { grid-template-columns:1fr 1fr; } .topbar { flex-direction:column; } .topbar h1 { font-size: var(--tv-fs-title); } .hero { min-height:430px; } .metric-grid,.module-grid,.form-card,.detail-grid,.mode-grid { grid-template-columns:1fr; } .section-head { align-items:flex-start; flex-direction:column; } .provider-row,.search-outcome { grid-template-columns:1fr; gap:8px; } .row-actions,.detail-actions { align-items:stretch; flex-direction:column; } }

#customer-pool .pool-pagination{display:flex;align-items:center;justify-content:space-between;gap: var(--tv-s3);margin-top: var(--tv-s4);font-size: var(--tv-fs-sm);color: var(--tv-text-2)}
#customer-pool .pool-pagination button{height: var(--tv-control-h);padding:0 14px;font-size: var(--tv-fs-sm);border-radius: var(--tv-radius-sm)}

#customer-pool #customerPoolPager{display:flex;align-items:center;justify-content:space-between;gap: var(--tv-s3);margin-top: var(--tv-s4);font-size: var(--tv-fs-sm);color: var(--tv-text-2)}
#customer-pool #customerPoolPager button{height: var(--tv-control-h);padding:0 14px;font-size: var(--tv-fs-sm);border-radius: var(--tv-radius-sm)}

#customer-pool #customerPoolPager{gap: var(--tv-s3)}
#customer-pool #customerPoolPager>*{flex-shrink:0;white-space:nowrap}

/* Pool pagers (customer + public): summary left, controls right, no overlap. Presentation only. */
#customer-pool #customerPoolPager,#public-pool #publicPoolPager,.pool-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-top:14px;font-size: var(--tv-fs-sm);color:#6d786f}
#customer-pool #customerPoolPager button,#public-pool #publicPoolPager button,.pool-pager button{height:34px;min-width:72px;padding:0 14px;font-size: var(--tv-fs-sm);border-radius: var(--tv-radius-sm);flex-shrink:0}
#customer-pool #customerPoolPager>span,#public-pool #publicPoolPager>span,.pool-pager>span{flex-shrink:0;white-space:nowrap}

/* Pool pagers: real structure is <span summary> + <div controls>. Summary left, controls right, no overlap. Presentation only. */
#customer-pool .pool-pager,#public-pool .pool-pager,#customerPoolPager,#publicPoolPager{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;font-size: var(--tv-fs-sm);color:#6d786f}
#customerPoolPager>span,#publicPoolPager>span{flex-shrink:0;white-space:nowrap}
#customerPoolPager>div,#publicPoolPager>div{display:flex;align-items:center;gap:12px;flex-shrink:0;white-space:nowrap}
#customerPoolPager>div>span,#publicPoolPager>div>span{white-space:nowrap}
#customerPoolPager button,#publicPoolPager button{height:34px;min-width:76px;padding:0 14px;font-size: var(--tv-fs-sm);border-radius: var(--tv-radius-sm)}

/* Settings page: aligned category rail, consistent form controls and action buttons. Presentation only. */
#settings .settings-layout{display:grid;grid-template-columns:184px minmax(0,1fr);gap:var(--tv-s4);align-items:start}
#settings .settings-nav{padding:var(--tv-s2);border:0;border-radius:var(--tv-radius-lg);background:var(--tv-rail)}
#settings .settings-nav a{min-height:40px;display:flex;align-items:center;padding:0 var(--tv-s3);font-size:var(--tv-fs-md);font-weight:500;border-radius:var(--tv-radius);transition:background var(--tv-motion),color var(--tv-motion)}
#settings .settings-nav a:hover{background:var(--tv-surface-hover);color:var(--tv-text)}
#settings .settings-nav a.active{background:var(--tv-surface);color:var(--tv-brand-hover);font-weight:650;box-shadow:var(--tv-shadow)}
#settings .settings-panel{border:1px solid var(--tv-border);border-radius:var(--tv-radius-lg);padding:clamp(16px,2.3vw,32px);background:var(--tv-surface)}
#settings .settings-panel h2,#settings .settings-panel h3{font-size: var(--tv-fs-xl);font-weight:600;margin:4px 0 6px}
#settings .settings-panel label span{font-size:var(--tv-fs-md);font-weight:600;color:var(--tv-text-2);margin-bottom:var(--tv-s1);display:block}
#settings .settings-panel input,#settings .settings-panel select{height:42px;font-size: var(--tv-fs-body)}
#settings .settings-panel button{height:40px;padding:0 18px;font-size: var(--tv-fs-md);font-weight:600;border-radius: var(--tv-radius)}
#settings .settings-panel .muted{font-size: var(--tv-fs-sm)}
@media(max-width:800px){#settings .settings-layout{grid-template-columns:1fr}#settings .settings-nav{grid-template-columns:repeat(3,1fr)}}
@media(max-width:430px){#settings .settings-nav{grid-template-columns:repeat(2,minmax(0,1fr))}#settings .settings-nav a{min-height:44px}}
