@font-face{font-family:Inter;src:local('Inter')}*{box-sizing:border-box} :root{--bg:#f5f7fb;--surface:#fff;--text:#1b2942;--muted:#78859b;--line:#e5eaf2;--blue:#3567ed;--purple:#8066cd;--amber:#bd8a44;--red:#b85661;--shadow:0 8px 28px #24417209;--radius:16px}body{margin:0;color:var(--text);background:var(--bg);font:14px/1.5 Inter,'Segoe UI',sans-serif}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button,input,textarea,select{outline-offset:3px}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--blue)}button{transition:background .16s,box-shadow .16s,transform .16s}button:hover:not(:disabled){filter:brightness(.98)}[hidden]{display:none!important}a{color:var(--blue);text-underline-offset:3px}h1,h2,h3,p{margin:0}h2{font-size:16px;font-weight:650}h3{font-size:14px}small,.muted{color:var(--muted)}.topbar{height:80px;border-bottom:1px solid var(--line);display:flex;gap:26px;align-items:center;padding:0 32px;background:#ffffffd9;position:relative;z-index:20}.brand{display:flex;align-items:center;gap:11px;border:0;background:none;padding:0;text-align:left;font-size:25px;font-weight:750;letter-spacing:-.8px;min-width:189px}.brandmark{width:39px;height:39px;border-radius:12px;background:var(--blue);color:white;text-align:center;font-size:37px;line-height:32px;font-weight:600;box-shadow:0 4px 12px #3567ed26}.brand-caption{display:block;font-size:8px;letter-spacing:1.3px;color:#97a3b7;line-height:10px;margin-top:1px}.source-tag{font-size:12px;color:#64738c;margin-left:auto;display:flex;gap:8px;align-items:center;white-space:nowrap}.source-tag>span:last-child{color:#98a3b6;padding-left:5px}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#65ad94}.avatar{border:1px solid #dde5f4;background:#edf2fd;border-radius:50%;width:35px;height:35px;font-weight:600;color:#536b9b}.top-search{width:min(530px,48vw)}.search-wrap{position:relative}.search-field{display:flex;align-items:center;background:white;border:1px solid #dce3ef;border-radius:13px;box-shadow:var(--shadow);padding:0 16px;gap:12px;height:48px}.search-field:focus-within{border-color:#88a8ff;box-shadow:0 0 0 4px #3567ed0a}.search-field>span{font-size:25px;color:#8e9bb0;line-height:1}.search-field input{width:100%;border:0;outline:0;background:none;font-size:13px;height:100%;min-width:0}.search-field input::placeholder{color:#929cb0}.search-field kbd{border:1px solid #e9edf4;border-radius:5px;padding:0 5px;color:#a0aabc;font:12px/1.6 inherit}.search-results{position:absolute;z-index:40;top:calc(100% + 8px);width:100%;background:white;border:1px solid var(--line);border-radius:13px;padding:6px;box-shadow:0 15px 45px #283c5929;max-height:450px;overflow:auto;text-align:left}.search-result{border:0;background:none;width:100%;display:flex;align-items:center;gap:12px;padding:11px 10px;border-radius:8px;text-align:left}.search-result:hover,.search-result:focus{background:#f2f5fb}.search-result strong{font-size:13px;font-weight:550;display:block}.search-result small{display:block;font-size:11px;margin-top:3px}.result-icon,.entity-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:10px;width:34px;height:34px;font-size:15px;color:var(--blue);background:#edf2ff}.result-icon.person,.entity-icon.person{background:#f2edfd;color:var(--purple)}.result-icon.procurement,.entity-icon.procurement{background:#fbf4e8;color:var(--amber)}.search-empty{padding:18px;color:var(--muted)}.landing{min-height:calc(100vh - 80px);max-width:1100px;padding:64px 34px 30px;margin:0 auto;text-align:center;position:relative}.landing:before{content:'';position:absolute;z-index:-1;inset:0 -70px;background:radial-gradient(ellipse at 30% 21%,#e6edffb3 0,transparent 45%),radial-gradient(ellipse at 76% 28%,#efe9fa8f 0,transparent 40%);filter:blur(18px);pointer-events:none}.intro-tag{font-size:10px;letter-spacing:2px;font-weight:650;color:#7f91b1;margin-bottom:23px}.landing h1{font-size:clamp(32px,4vw,49px);letter-spacing:-1.8px;line-height:1.2;font-weight:650}.landing h1 span{color:#7189b3}.intro-copy{font-size:15px;color:#8290a7;line-height:1.8;margin:20px auto 27px}.hero-search{max-width:655px;margin:auto}.hero-search .search-field{height:66px;border-radius:16px;box-shadow:0 9px 30px #436cab0b}.hero-search input{font-size:15px}.stats{color:#96a0b2;font-size:11px;display:flex;gap:22px;justify-content:center;margin:16px auto 45px}.stats b{color:#677a9b;font-weight:600;margin-right:5px}.section-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-line span{font-size:11px;color:#97a2b4}.company-section,.saved-section{text-align:left}.company-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.company-card{border:1px solid #e2e8f2;background:#ffffffdb;box-shadow:0 2px 4px #24417202;border-radius:14px;padding:17px;text-align:left;min-height:125px}.company-card:hover{box-shadow:0 6px 24px #395c9510;transform:translateY(-2px);border-color:#c9d6ef}.company-avatar{width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;margin-bottom:13px;font-weight:650;font-size:12px;background:var(--tint,#eef3fe);color:var(--ink,#5071a9)}.company-card strong{display:block;font-size:13px;font-weight:600;margin-bottom:3px}.company-card small{font-size:10px;color:#96a2b5}.company-card .count{color:#73917f}.pilot-note{font-size:10px;color:#9ba6b6;margin-top:29px}.saved-section{margin-top:30px}.saved-cards{display:flex;flex-wrap:wrap;gap:10px}.saved-card{border:1px solid var(--line);background:white;padding:12px 18px;border-radius:10px;text-align:left}.saved-card small{display:block}.workspace{height:calc(100vh - 80px);display:grid;grid-template-columns:205px minmax(380px,1fr) 358px}.sidebar{padding:24px 18px 18px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fcfdff;overflow:auto}.sidebar-label{font-size:9px;font-weight:650;letter-spacing:1.2px;color:#a2adbe;margin:12px 10px}.saved-label{margin-top:28px}.nav-item{width:100%;border:0;background:none;text-align:left;display:flex;align-items:center;gap:9px;padding:9px;border-radius:9px;margin-bottom:3px;font-size:12px}.nav-item:hover{background:#f2f5fb}.nav-item.active{background:#eaf0fd;color:var(--blue)}.nav-item .company-avatar{width:26px;height:26px;border-radius:8px;margin:0;font-size:9px}.nav-item .nav-count{margin-left:auto;color:#97a4b9;font-size:10px}.saved-nav-item{border:0;background:none;width:100%;text-align:left;padding:8px 10px;font-size:11px;color:#72809a}.sidebar-bottom{margin-top:auto;padding:30px 9px 0;color:#7e8fa8;font-size:11px}.sidebar-bottom .live-dot{margin-right:6px}.sidebar-bottom p{font-size:10px;color:#a3aebe;margin-top:8px}.explorer{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#f7f9fd}.explorer-head{height:88px;flex-shrink:0;padding:20px 26px;display:flex;align-items:center;justify-content:space-between;gap:16px}.eyebrow{font-size:9px;letter-spacing:1.2px;color:#9aa6ba;margin-bottom:4px}.explorer-head h1{font-size:21px;font-weight:650;letter-spacing:-.4px;max-width:350px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.button{border:1px solid #dce4f0;border-radius:8px;padding:8px 12px;background:white;font-size:12px;white-space:nowrap}.button.primary{background:var(--blue);color:white;border-color:var(--blue);box-shadow:0 4px 10px #3567ed12}.button.soft{background:#f1f5fe;border-color:#e4ebfc;color:var(--blue)}.button.full{width:100%}.text-button{border:0;background:none;color:#8190a8;font-size:11px;padding:5px}.icon-button{border:0;background:none;color:#8e9bb0;padding:3px 6px;font-size:21px;line-height:1}.toolbar{display:flex;align-items:center;gap:16px;padding:0 26px 15px;flex-shrink:0}.segmented{border:1px solid #e0e6f0;border-radius:8px;padding:3px;display:flex;gap:2px;background:#edf1f7}.segmented button{border:0;border-radius:5px;background:none;font-size:11px;color:#8a96aa;padding:5px 14px}.segmented button[aria-pressed=true]{background:white;color:#426599;box-shadow:0 1px 4px #1224480a}.filter-label{font-size:10px;color:#99a4b5;display:flex;gap:7px;align-items:center}.filter-label select{border:0;background:none;font-size:11px;color:#7587a3;max-width:140px}.toolbar>.text-button{margin-left:auto}.canvas-wrap{flex:1;min-height:350px;position:relative;overflow:hidden;background-image:radial-gradient(#ced8eb80 1px,transparent 1px),radial-gradient(ellipse at 25% 45%,#eaf0fd88,transparent 65%);background-size:22px 22px,100% 100%;border-top:1px solid #e7edf6}.canvas-wrap svg{width:100%;height:100%;position:absolute;inset:0;touch-action:none;cursor:grab}.canvas-wrap svg:active{cursor:grabbing}.graph-node{cursor:pointer;outline:none}.graph-node .node-box{fill:white;stroke:#d7e1f1;stroke-width:1.2;filter:drop-shadow(0 4px 7px #23497909)}.graph-node.selected .node-box,.graph-node:focus .node-box{stroke:var(--blue);stroke-width:2}.graph-node.root .node-box{fill:#edf3ff;stroke:#9db7ed}.graph-node text{font-family:Inter,'Segoe UI',sans-serif;pointer-events:none;user-select:none}.graph-node .node-label{font-size:11px;fill:#4b5e7b;font-weight:550}.graph-node .node-sub{font-size:8px;fill:#94a1b5}.node-add{fill:#f5f8fd;stroke:#dee6f2}.node-add-label{font-size:12px;fill:#8198c0}.edge-hit{stroke:transparent;stroke-width:18;fill:none;cursor:pointer}.edge-line{stroke:#bfd0e9;stroke-width:1.6;fill:none;pointer-events:none}.graph-edge:hover .edge-line,.graph-edge.selected .edge-line{stroke:#5981d6;stroke-width:2.6}.graph-edge.questioned .edge-line{stroke:#c09755;stroke-dasharray:6 5}.graph-edge.rejected .edge-line{stroke:#c4878f;stroke-dasharray:2 6}.graph-edge.confirmed .edge-line{stroke:#6caa9b;stroke-width:2.3}.edge-label{font-size:8px;fill:#8e9fb8;paint-order:stroke;stroke:#f7f9fd;stroke-width:4;pointer-events:none}.canvas-hint{position:absolute;bottom:24px;left:20px;color:#9aa9be;font-size:10px;pointer-events:none;max-width:60%}.graph-controls{position:absolute;right:20px;bottom:20px;border:1px solid #e0e7f1;border-radius:10px;background:white;display:flex;box-shadow:var(--shadow)}.graph-controls button{border:0;background:none;width:34px;height:35px;color:#8a9bb5;font-size:18px}.graph-controls button+button{border-left:1px solid #edf1f7}.graph-footer{padding:12px 24px;display:flex;align-items:center;gap:14px;font-size:9px;color:#96a4b9;border-top:1px solid var(--line);background:#fafcff;flex-shrink:0}.legend{display:flex;gap:13px;flex-wrap:wrap;margin-left:auto}.legend span{display:flex;gap:5px;align-items:center}.legend i{display:inline-block;width:6px;height:6px;border-radius:2px}.company-dot{background:#7896d0}.person-dot{background:#b09bde}.procurement-dot{background:#d9bc8b}.legend .dashed-line{width:14px;height:0;border-top:1px dashed #bc9457}.empty-graph{position:absolute;left:18%;right:18%;top:60%;text-align:center;font-size:12px;color:#8c9eb9;pointer-events:none}.list-wrap{flex:1;overflow:auto;padding:10px 24px}.node-row{width:100%;display:flex;gap:12px;border:1px solid var(--line);background:white;border-radius:11px;margin-bottom:8px;padding:13px;text-align:left;align-items:center}.node-row.active{border-color:#87a8ee}.node-row strong{display:block;font-size:12px;font-weight:550}.node-row small{display:block;font-size:10px;margin-top:3px}.detail{background:white;border-left:1px solid var(--line);overflow:auto;min-width:0}.detail-empty{padding:35px;color:#9aa6b9}.detail-top{padding:26px 25px 0}.detail-kind{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;font-size:9px;letter-spacing:1px;color:#a0acc0}.detail-title{font-size:22px;letter-spacing:-.5px;line-height:1.35;font-weight:620;margin:14px 0 8px;overflow-wrap:anywhere}.detail-title.long{font-size:17px}.entity-icon{width:42px;height:42px;border-radius:13px;font-size:17px}.detail-sub{font-size:11px;color:#95a1b4;overflow-wrap:anywhere;line-height:1.65}.badge{display:inline-block;border-radius:5px;background:#f2f5fb;color:#7c8eaa;font-size:9px;padding:3px 7px;margin:9px 5px 2px 0;letter-spacing:0}.badge.green{background:#edf6f2;color:#5c9685}.badge.amber{background:#faf3e7;color:#b48c48}.detail-actions{display:flex;gap:7px;margin-top:17px}.detail-actions>.button{flex:1;padding:8px 9px;font-size:11px}.detail-tabs{display:flex;padding:20px 25px 0;gap:18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.detail-tabs button{border:0;border-bottom:2px solid transparent;padding:0 0 11px;background:none;font-size:11px;color:#94a0b4}.detail-tabs button.active{color:var(--blue);border-color:var(--blue)}.detail-body{padding:23px 25px}.field-block{margin-bottom:22px}.field-label{font-size:9px;letter-spacing:.6px;color:#9ba7b9;margin-bottom:8px;display:flex;justify-content:space-between}.field-value{font-size:12px;color:#4e6485;overflow-wrap:anywhere}.field-value+.field-value{margin-top:6px}.quality-note{color:#ad8a4e;background:#fcf7ed;border-radius:7px;font-size:10px;padding:8px 10px;margin-top:7px}.source-note{font-size:10px;color:#a4adba;line-height:1.7;margin-top:6px}.manual-note{font-size:9px;color:#9077ae;margin-top:4px}.status-select{width:100%;padding:10px;border:1px solid #e2e8f1;border-radius:8px;background:#fafbfd;font-size:12px}.divider{height:1px;background:var(--line);margin:22px 0}.relation-row{display:flex;width:100%;padding:11px 0;background:none;border:0;border-bottom:1px solid #eff2f8;text-align:left;gap:10px;font-size:11px;color:#667b9c}.relation-row span:last-child{flex:1}.relation-row small{display:block;font-size:9px;margin-top:4px}.evidence-card{border:1px solid #e5eaf3;border-radius:10px;padding:14px;margin-bottom:12px}.evidence-card h3{font-size:12px;font-weight:550;line-height:1.7}.evidence-card .date{font-size:9px;color:#a4afbf;margin:7px 0}.evidence-card a{font-size:10px}.evidence-card details{margin-top:9px}.evidence-card summary{font-size:10px;color:#8698b2;cursor:pointer}.evidence-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font:10px/1.8 Inter,'Segoe UI',sans-serif;background:#f6f8fc;padding:10px;color:#8592a7;border-radius:6px}.detail-empty-text{font-size:12px;color:#95a2b6;line-height:1.9}.note-form textarea{width:100%;min-height:95px;border:1px solid #dfe6f1;border-radius:9px;padding:11px;resize:vertical;font-size:12px;background:#fcfdff}.note-form .button{margin-top:9px}.note{padding:15px 0;border-bottom:1px solid var(--line)}.note p{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.note small{font-size:9px;display:block;margin-top:8px}.history-row{padding:0 0 20px 15px;border-left:1px solid #e1e8f4;position:relative}.history-row:before{content:'';position:absolute;width:5px;height:5px;border-radius:50%;background:#bdcde4;left:-3px;top:7px}.history-row p{font-size:11px;color:#7589a7;overflow-wrap:anywhere}.history-row small{font-size:9px;display:block;margin-top:5px}.detail-alert{padding:12px;border-radius:9px;background:#fbf6eb;font-size:11px;color:#a08652;margin-top:15px;line-height:1.8}.correction-row{font-size:11px;padding:11px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.correction-row small{display:block;margin-top:5px}.correction-row button{font-size:10px;color:var(--blue);border:0;background:none;padding:7px 0 0}.toast{position:fixed;z-index:100;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:11px;background:#283c5a;color:white;font-size:12px;box-shadow:0 10px 35px #1e305433;max-width:90vw}.error{color:var(--red);font-size:12px;margin-top:12px;white-space:pre-wrap}dialog{border:1px solid #e1e7f3;border-radius:18px;padding:26px;width:440px;max-width:92vw;color:var(--text);box-shadow:0 25px 80px #21345133}dialog::backdrop{background:#243b5f42;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:20px}.modal-head h2{font-size:18px}.form-field{display:block;font-size:11px;color:#7e90aa;margin:14px 0}.form-field input,.form-field select,.form-field textarea{display:block;width:100%;margin-top:6px;border:1px solid #dbe4f2;border-radius:8px;padding:10px;background:#fbfcff;font-size:13px;color:#465e82}.form-field textarea{min-height:80px;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.modal-help{font-size:11px;color:#96a2b5;line-height:1.8}.fatal{margin:30px;padding:24px;border:1px solid #efced4;border-radius:12px;background:#fff5f6;color:#a25b65}.recent-source{font-size:10px;color:#98a6bc;line-height:1.9}
@media(min-width:1600px){.workspace{grid-template-columns:225px minmax(380px,1fr) 390px}.sidebar{padding:28px 24px}.detail-top{padding:30px 30px 0}.detail-body{padding:25px 30px}.detail-tabs{padding-left:30px}}
@media(max-width:1150px){.workspace{grid-template-columns:170px minmax(300px,1fr) 310px}.topbar{padding:0 22px;gap:15px}.brand{min-width:150px}.sidebar{padding:21px 10px}.detail-top{padding:22px 20px 0}.detail-body{padding:20px}.detail-tabs{padding-left:20px;gap:14px}.toolbar{gap:9px;padding-left:18px;padding-right:18px}.graph-footer{padding:10px 16px}.legend{gap:8px}.source-tag>span:last-child{display:none}}
@media(max-width:920px){.workspace{grid-template-columns:minmax(300px,1fr) 315px}.sidebar{display:none}.topbar{height:70px}.workspace{height:calc(100vh - 70px)}.brand{min-width:135px}.company-grid{grid-template-columns:repeat(3,1fr)}.landing{padding-top:40px}.source-tag{font-size:10px}.graph-footer{display:block}.legend{margin-top:7px}.explorer-head{padding:18px}.explorer-head h1{max-width:220px}.top-search{flex:1}.filter-label>select{max-width:118px}}
@media(max-width:650px){.topbar{padding:0 16px;gap:12px;height:auto;min-height:68px;flex-wrap:wrap;padding-top:13px;padding-bottom:13px}.brand{font-size:21px;min-width:125px}.brandmark{height:33px;width:33px;font-size:31px;line-height:27px;border-radius:10px}.source-tag{margin-left:auto}.avatar{width:30px;height:30px}.top-search{order:4;width:100%;flex-basis:100%}.top-search .search-field{height:42px}.landing{padding:35px 20px}.intro-tag{font-size:8px}.landing h1{letter-spacing:-1.1px}.hero-search .search-field{height:58px;padding:0 12px}.hero-search input{font-size:13px}.intro-copy{font-size:13px}.company-grid{grid-template-columns:repeat(2,1fr);gap:10px}.company-card{padding:14px;min-height:113px}.company-card strong{font-size:12px}.stats{font-size:9px;gap:14px;margin-bottom:34px}.section-line h2{font-size:14px}.section-line span{font-size:9px}.workspace{height:auto;display:flex;flex-direction:column}.explorer{height:600px;flex-shrink:0}.detail{border-left:0;border-top:1px solid var(--line);overflow:visible}.detail-title{font-size:22px}.detail-top{padding:25px}.detail-body{padding:25px}.detail-tabs{padding-left:25px}.toolbar{gap:12px}.canvas-hint{font-size:9px}.explorer-head h1{max-width:200px}.legend{font-size:9px}.topbar.workspace-header .source-tag{font-size:10px}.graph-footer{padding-bottom:14px}.landing:before{inset:0}.search-field input,.form-field input,.form-field textarea,.note-form textarea{font-size:16px}.hero-search input{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Exploration controls remain visible as the graph grows. */
.exploration-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:0 18px 12px;flex-shrink:0}
.exploration-actions .button{font-size:11px;padding:7px 9px}
button:disabled{opacity:.48;cursor:default}
.filter-context{padding:0 18px 10px;font-size:10px;color:#627895;flex-shrink:0}
.graph-edge.in-path .edge-line{stroke-width:3.5;filter:drop-shadow(0 0 3px #376ad355)}
.graph-edge.in-path .edge-label{fill:#395a94;font-weight:700}
.graph-edge:focus .edge-line{stroke-width:4;stroke:#3567ed}
.graph-node.context-node .node-box{fill:#f2f5fa}
.node-card circle{fill:#f4f7fd;stroke:#bccbe1}
.node-card text{fill:#4c6b9b;font-size:11px}
.node-card:focus circle{stroke:#3567ed;stroke-width:2}
.path-panel{border:1px solid #d7e3f5;background:#f7faff;border-radius:9px;padding:12px;margin-bottom:20px;font-size:11px}
.path-panel summary{cursor:pointer;color:#4f6c98;font-weight:600}
.path-panel ol{padding-left:18px;margin:9px 0 0}
.path-panel .text-button{text-align:left;white-space:normal;overflow-wrap:anywhere;color:#4b6995}
.legend .source-line,.legend .confirmed-line,.legend .rejected-line{width:14px;height:0;border-top:2px solid #789aca;border-radius:0}
.legend .confirmed-line{border-top:3px double #579584}
.legend .rejected-line{border-top:2px dotted #bd7380}
.search-field{min-width:0}
.search-field input{min-width:0}
.search-filter-toggle{border:1px solid #dce5f2;border-radius:7px;background:#f7f9fd;color:#567098;font-size:11px;padding:7px;white-space:nowrap}
.search-filter-toggle.active{background:#e7efff;border-color:#a5bce6;color:#355b9a}
.search-results{max-height:min(72vh,680px);overflow:auto;overscroll-behavior:contain}
.search-filter-panel{padding:14px;border-bottom:1px solid var(--line);background:#f8faff;text-align:left}
.search-filters-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.search-filter-field{display:block;min-width:0;font-size:10px;color:#617793}
.search-filter-field>span{display:block;margin-bottom:4px}
.search-filter-field input,.search-filter-field select{display:block;width:100%;min-width:0;border:1px solid #dbe4f1;border-radius:6px;background:white;padding:7px;font-size:11px;color:#496181}
.search-filter-help{font-size:10px;line-height:1.6;color:#7a899e;margin:9px 0}
.search-reset,.search-more{border:1px solid #dce5f2;background:#f3f7ff;color:#4e6e9c;padding:7px 10px;border-radius:7px;font-size:11px}
.search-summary{display:flex;gap:8px;justify-content:space-between;align-items:center;padding:12px 15px;font-size:11px;color:#677e9d;background:#f8faff;text-align:left}
.search-group h3{display:flex;justify-content:space-between;padding:10px 15px 6px;font-size:11px;color:#5c7294}
.search-group h3 span{color:#8193ae;font-weight:400}
.search-result-text{min-width:0;flex:1;text-align:left}
.search-result-text strong,.search-result-text small{display:block;white-space:normal;overflow-wrap:anywhere}
.search-result-text small{line-height:1.6}
.search-more{display:block;margin:8px 15px 14px}
.search-error{padding:12px 15px;color:#ab5665;font-size:11px}
.card-link{padding:0;text-align:left;overflow-wrap:anywhere;white-space:normal}
.contact-value-row{display:flex;align-items:baseline;gap:8px;justify-content:space-between;margin-top:8px}
.copy-button{flex-shrink:0}
.provenance-list{padding-left:15px;font-size:10px;color:var(--muted)}
.provenance-list li{margin:6px 0}
.source-path-row{padding:7px 0;border-top:1px solid var(--line)}
.source-path-row p{font-size:11px}
.contact-original summary{cursor:pointer;font-size:11px;color:var(--muted)}
.detail-actions{flex-wrap:wrap}
.node-row-main{border:0;background:none;display:flex;align-items:center;gap:12px;padding:0;flex:1;min-width:0;text-align:left}
.node-row-main strong{overflow-wrap:anywhere}
.node-card{cursor:pointer}
.canvas-wrap{min-height:240px}
@media(max-width:1150px){.top-search kbd{display:none}.top-search .search-field{padding:0 9px;gap:7px}.top-search input{font-size:12px}}
@media(max-width:650px){.explorer{height:780px}.exploration-actions{gap:6px}.search-filter-field input,.search-filter-field select{font-size:14px}.hero-search kbd{display:none}.search-results{max-height:65vh}.search-filters-grid{gap:8px}.search-filter-toggle{font-size:10px}.canvas-hint{max-width:65%;bottom:65px}.toolbar{flex-wrap:wrap}.canvas-wrap{min-height:280px}}

/* Accounts and the team's administrative workspace. */
.account-screen{position:fixed;inset:0;z-index:1000;overflow:auto;display:grid;place-items:center;padding:32px 20px;background:radial-gradient(ellipse at 25% 15%,#e7edfd,transparent 60%),var(--bg)}
.account-card{width:min(100%,460px);padding:32px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 18px 65px #273d5f0e}
.account-brand{color:var(--blue);font-size:30px;font-weight:750;letter-spacing:-1px;margin-bottom:24px}
.account-card h1{font-size:23px;line-height:1.3;margin-bottom:12px;overflow-wrap:anywhere}
.account-card>p{color:#6c7a91;margin:0 0 20px}.account-card form{display:grid;gap:15px}.account-card .form-field{margin:0}.account-card .error:empty{display:none}.account-card .full{width:100%;justify-content:center}
.account-card input{width:100%;min-height:43px}.account-card .source-note{font-size:12px;line-height:1.6}.admin-tools{white-space:nowrap}
.workspace-row{display:flex;gap:3px;align-items:center;min-width:0}.workspace-row .saved-nav-item{flex:1;min-width:0;overflow-wrap:anywhere}.workspace-row .icon-button{flex:none}
.workspace-controls{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.workspace-controls>*{flex:1 1 120px}
.session-status{font-size:11px;white-space:normal;max-width:175px;text-align:right;line-height:1.4}.session-status[data-status=error],.session-status[data-status=conflict]{color:var(--red)}
.explorer-head{flex-wrap:wrap;gap:10px}.explorer-head>div:first-child{flex:1 1 180px;min-width:0}.explorer-head h1{overflow-wrap:anywhere}.explorer-head #save-workspace{margin-left:auto}
dialog.admin-dialog{width:min(1160px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:18px;background:var(--bg);box-shadow:0 25px 100px #182d4940;color:var(--text);overflow:auto}
dialog.admin-dialog::backdrop{background:#1a2c4866;backdrop-filter:blur(3px)}
.admin-shell{padding:26px}.admin-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.admin-header h1{font-size:25px}.admin-header p{margin-top:4px}
.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:16px}.admin-tabs [aria-selected=true]{background:var(--blue);border-color:var(--blue);color:white}
.admin-panel{display:grid;gap:18px;outline-offset:5px;min-width:0}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-card{min-width:0;border:1px solid var(--line);border-radius:13px;background:white;padding:20px;overflow-wrap:anywhere}.admin-card>h2,.admin-card>h3{margin-bottom:10px}.admin-card>p{margin:7px 0}.admin-card form{margin-top:15px}.admin-card details{margin-top:12px}.admin-card summary{cursor:pointer}.admin-card details[open]>summary{margin-bottom:12px}
.admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin-bottom:16px}.admin-fields .form-field{margin:0;min-width:0}.admin-fields input,.admin-fields select{width:100%;min-width:0;min-height:40px}.admin-fields input[type=checkbox]{width:auto;min-height:auto}.admin-list{display:grid;gap:13px;margin-top:15px}.admin-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.admin-row>div{min-width:0;flex:1}.admin-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}
.admin-muted{color:#748197;font-size:12px;line-height:1.65}.admin-status{color:#356b51;font-size:13px;white-space:pre-wrap}.admin-status:not(:empty){padding:10px 0}.admin-warning{padding:12px 15px;border:1px solid #e7d4ae;border-radius:10px;background:#fff9ed;color:#846334;font-size:13px;line-height:1.65}.admin-check{display:flex;align-items:flex-start;gap:10px;line-height:1.6;margin:12px 0}.admin-check input{margin-top:5px;flex:none}.admin-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:15px 0}.admin-evidence{padding:13px;background:#f5f7fb;border-radius:9px;margin-top:10px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.admin-evidence>p{margin-bottom:7px}.admin-evidence pre{white-space:pre-wrap;overflow-wrap:anywhere}.admin-panel input[type=file]{max-width:100%;margin:12px 0}.admin-panel .button{white-space:normal;text-align:center}.admin-panel a{overflow-wrap:anywhere}#admin-error:not(:empty){margin-bottom:14px}
@media(max-width:1150px){.topbar{gap:12px;padding:0 20px}.workspace-header .brand{min-width:130px}.top-search{flex:1;min-width:150px}.workspace-header .source-tag{display:none}.admin-tools{font-size:12px;padding:8px 10px}}
@media(max-width:700px){.account-screen{padding:20px 12px;align-items:start}.account-card{padding:25px;align-self:center}.topbar{gap:10px;padding:0 14px}.topbar .source-tag{display:none}.topbar .brand{min-width:0;margin-right:auto}.workspace-header .brand{min-width:0}.workspace-header .brand>span:last-child{display:none}.workspace-header .brandmark{width:32px;height:32px;line-height:26px;font-size:31px}.top-search{width:auto;min-width:110px}.avatar{flex-shrink:0;width:32px;height:32px}.admin-tools{padding:7px;font-size:11px}.explorer-head>div:first-child{flex-basis:100%}.session-status{max-width:none;flex:1}.explorer-head #save-workspace{margin-left:0}dialog.admin-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:13px}.admin-shell{padding:16px}.admin-header{gap:12px;align-items:flex-start}.admin-header h1{font-size:22px}.admin-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.admin-tabs .button{font-size:12px;padding:9px}.admin-grid,.admin-comparison,.admin-fields{grid-template-columns:1fr}.admin-card{padding:15px}.admin-actions>.button{flex:1 1 100px}}
.admin-changes{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:3px;max-width:440px;margin:12px 0;font-size:12px;color:#6c7a91}.admin-changes dt,.admin-changes dd{margin:0}.admin-changes dd{text-align:right;font-variant-numeric:tabular-nums;color:var(--text)}
/* Desktop collection panel reuses the shared database interface. */
.desktop-dialog{width:min(760px,calc(100vw - 40px));max-height:85vh;overflow:auto;border:1px solid #dce3ed;border-radius:18px;padding:26px;color:#1e293b;background:#fff}
.desktop-dialog::backdrop{background:#18253966}
.desktop-dialog h2{margin:0 0 14px}.desktop-dialog p{line-height:1.6}
.desktop-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.desktop-job{border-top:1px solid #e1e7ef;padding:18px 0}
.desktop-job p{margin:6px 0}.desktop-dialog select{width:100%;padding:10px}
.desktop-dialog details{margin-top:20px;border-top:1px solid #e1e7ef;padding-top:16px}
