:root{
  --ink:#000;--muted:rgba(0,0,0,.58);--muted2:rgba(0,0,0,.56);--paper:#fff;--surface:#fff;--surface2:#fff;
  --line:rgba(0,0,0,.22);--line2:rgba(0,0,0,.10);--blue:#000;--sky:#fff;--lime:#fff;
  --sans:"Helvetica Now Display","Helvetica Neue",Helvetica,Arial,sans-serif;
  --mono:"Helvetica Now Display","Helvetica Neue",Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box} html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:var(--sans)}
body.modal-open{overflow:hidden}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
button,input,textarea,select{font:inherit}.app{min-height:100vh}
.topbar{height:82px;border-bottom:1px solid var(--line2);display:flex;align-items:center;justify-content:space-between;padding:0 48px;position:sticky;top:0;background:rgba(255,255,255,.95);backdrop-filter:blur(18px);z-index:30}
.brand{display:flex;align-items:center;gap:14px}.logo{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#111;color:var(--lime);font-weight:700;font-size:18px}.brand strong{display:block;font-size:25px;line-height:.9;letter-spacing:-.06em}.brand strong span{color:#8c8c8c}.brand small{display:block;margin-top:5px;font-family:var(--mono);font-size:10px;letter-spacing:.15em;color:#777}
.topbar-right{display:flex;align-items:center;gap:10px}
.connection-state{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:#3b744d}.connection-state:before{content:"";width:7px;height:7px;border-radius:50%;background:#2fbf71}.connection-state.offline{color:#9b5d19}.connection-state.offline:before{background:#e5922f}
#authArea{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:36px}
.auth-status,.auth-error,.auth-dev{font-family:var(--mono);font-size:10px;letter-spacing:.04em}
.auth-status{color:var(--muted)}.auth-error{color:#a3261f;max-width:240px}.auth-dev{color:#765d00}
.auth-button{border:1px solid #111;background:#111;color:#fff;border-radius:999px;padding:9px 13px;font-family:var(--mono);font-size:10px;text-transform:uppercase;letter-spacing:.06em;cursor:pointer}
.app.auth-required .shell{opacity:1}
.app.auth-required .inbox-tools,.app.auth-required .inbox-meta,.app.auth-required #openModal{display:none}
.account{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:999px;padding:5px 6px 5px 12px}
.account img{width:26px;height:26px;border-radius:50%}
.account .acc-name{font-family:var(--mono);font-size:11px;letter-spacing:.04em}
.account .logout{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 10px;font-family:var(--mono);font-size:10px;text-transform:uppercase;letter-spacing:.06em;cursor:pointer}
.account .logout:hover{border-color:#111}
.workspace{border:1px solid #111;border-radius:999px;background:#fff;padding:12px 18px;min-width:150px;font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.shell{max-width:1320px;margin:0 auto;padding:28px 26px 80px}.navrow{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tab,.add-btn,.pill,.icon-btn{border:1px solid var(--line);background:#fff;border-radius:999px;cursor:pointer;transition:.16s}.tab,.add-btn{padding:11px 18px;font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase}.tab.active{background:#111;color:#fff;border-color:#111}.add-btn{background:#111;color:#fff;border-color:#111}.view{display:none}.view.active{display:block}
.app-message{margin-bottom:18px;padding:12px 16px;border:1px solid #e6bd77;border-radius:14px;background:#fff8e9;color:#724812;font-size:13px}.refresh-btn{border:1px solid #111;background:#fff;border-radius:999px;padding:10px 15px;cursor:pointer}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin:34px 0 24px}.page-head h1{margin:0;font-size:clamp(48px,6vw,84px);font-weight:400;letter-spacing:-.065em;line-height:.87}.page-head p{max-width:520px;margin:0;color:var(--muted);font-size:16px;line-height:1.4}
.page-head>div>p{margin-top:16px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;flex-wrap:wrap}.filters{display:flex;gap:8px;flex-wrap:wrap}.pill{padding:8px 13px;font-family:var(--mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase}.pill.active{background:var(--surface);border-color:#111}
.filter-panel{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(5,minmax(125px,1fr));gap:9px;padding:14px;border:1px solid var(--line);border-radius:18px;margin-bottom:16px;background:var(--surface)}.filter-panel input,.filter-panel select{min-width:0;width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 11px;outline:0;font-size:12px}.filter-panel input:focus,.filter-panel select:focus{border-color:#111}
.feed{display:grid;gap:14px}.feed-card{border:1px solid var(--line);border-radius:23px;background:#fff;padding:24px;position:relative;transition:.18s;cursor:pointer}.feed-card:hover{border-color:#bdbdb7;transform:translateY(-1px)}.feed-card:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.meta{display:flex;align-items:center;justify-content:space-between;gap:18px}.meta-left{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--muted);font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.type,.source-badge{border:1px solid #111;border-radius:999px;padding:6px 10px;color:#111}.source-badge{border-color:var(--line);color:var(--muted);font-family:var(--mono);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.card-states{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.confidence{font-family:var(--mono);font-size:9px;color:var(--muted)}.status{display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.status:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--blue)}.status-ready:before{background:#2fbf71}.status-queued:before{background:#e0b000}.status-processing:before{background:var(--blue);animation:pulse 1.2s infinite}.status-degraded:before{background:#ff9f43}.status-failed:before{background:#d4473d}.feed-card h3{margin:18px 0 10px;font-size:25px;font-weight:450;letter-spacing:-.045em;line-height:1.13}.excerpt{max-width:900px;margin:0 0 17px;color:#555;line-height:1.5}.tags{display:flex;gap:7px;flex-wrap:wrap}.tag{border:1px solid var(--line);border-radius:999px;padding:6px 10px;font-family:var(--mono);font-size:10px;color:var(--muted)}.tag.primary{background:var(--sky);border-color:transparent;color:#26373e}.connections-line{display:flex;align-items:center;gap:10px;margin-top:18px;padding-top:15px;border-top:1px solid var(--line2);color:var(--muted);font-size:12px}.avatar-stack{display:flex}.avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:700}.avatar-stack .avatar{margin-left:-6px;border:2px solid #fff}.avatar-stack .avatar:first-child{margin-left:0}
.state-card{display:flex;align-items:center;justify-content:center;gap:10px;min-height:140px;border:1px dashed var(--line);border-radius:20px;color:var(--muted);text-align:center}.state-card button{border:1px solid #111;border-radius:999px;background:#fff;padding:8px 12px;cursor:pointer}.error-state{color:#a3261f}.spinner{width:15px;height:15px;border:2px solid var(--line);border-top-color:#111;border-radius:50%;animation:spin .7s linear infinite}
.workspace-setup-state{gap:22px;padding:30px;border-style:solid;background:linear-gradient(135deg,#f7faf8,#fff);color:var(--ink)}.workspace-setup-state div{max-width:520px;text-align:left}.workspace-setup-state strong{display:block;font-size:22px;font-weight:500;letter-spacing:-.03em}.workspace-setup-state p{margin:7px 0 0;color:var(--muted);line-height:1.45}.workspace-setup-state button{background:#111;color:#fff;padding:11px 16px}.workspace-setup-state button:disabled{opacity:.5}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.3}}
.empty{color:var(--muted);padding:40px 0;text-align:center}
.agent-wrap{max-width:1020px;margin:54px auto 0}.agent-title{text-align:center;font-size:clamp(58px,7vw,100px);font-weight:400;letter-spacing:-.075em;line-height:.84;margin:0 0 28px}.agent-search{display:flex;align-items:center;gap:10px;border:1px solid #111;border-radius:999px;padding:9px 10px 9px 24px;box-shadow:0 14px 40px rgba(0,0,0,.06)}.agent-search input{flex:1;border:0;outline:0;font-size:19px}.agent-search button{border:0;background:#111;color:#fff;border-radius:999px;padding:14px 20px;cursor:pointer}.prompt-row{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:14px}.prompt-chip{border:1px solid var(--line);border-radius:999px;background:#fff;padding:8px 12px;color:var(--muted);cursor:pointer;font-size:12px}
.agent-results{margin-top:36px}.answer-panel{border-top:1px solid #111;border-bottom:1px solid var(--line);padding:26px 0}.answer-panel h2{margin:0 0 14px;font-size:34px;font-weight:450;letter-spacing:-.05em}.answer-panel p{margin:0;max-width:820px;font-size:18px;line-height:1.48;white-space:pre-wrap}.answer-actions{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}.answer-actions button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;cursor:pointer}.source-list{margin-top:18px}.source-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;padding:16px 0;border-bottom:1px solid var(--line2);cursor:pointer}.source-row strong{font-weight:520}.source-row p{margin:5px 0 0;color:var(--muted);font-size:13px}.rank{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--surface);font-family:var(--mono);font-size:10px}
.team-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px}.graph-panel,.team-side{border:1px solid var(--line);border-radius:24px;background:#fff}.graph-panel{padding:20px;min-height:680px}.graph-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;flex-wrap:wrap}.graph-toolbar h2{margin:0;font-size:30px;font-weight:450;letter-spacing:-.05em}.graph-controls{display:flex;gap:8px}.graph-controls button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;cursor:pointer}.graph-stage{position:relative;height:590px;border-radius:18px;background:radial-gradient(circle at center,#f8f9f9,#fff 68%);overflow:hidden;cursor:grab}.graph-stage:active{cursor:grabbing}.edge{position:absolute;height:1px;background:#d5d5d0;transform-origin:left center;z-index:1}.node{position:absolute;z-index:2;cursor:pointer;user-select:none;transition:opacity .15s}.node:hover{filter:brightness(.97)}.node.person{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:650;text-align:center;box-shadow:0 8px 22px rgba(0,0,0,.1);border:4px solid #fff;font-size:12px}.node.theme{border:1px solid #111;background:#fff;border-radius:999px;padding:10px 13px;white-space:nowrap;font-size:12px}.node.content{border:1px solid var(--line);background:var(--surface2);border-radius:999px;padding:8px 11px;white-space:nowrap;font-size:11px;max-width:180px;overflow:hidden;text-overflow:ellipsis}.node.dim{opacity:.14}.node.selected{outline:3px solid #111;outline-offset:3px}
.team-side{padding:22px;height:max-content;position:sticky;top:108px}.team-side h2{margin:0;font-size:27px;font-weight:450;letter-spacing:-.05em}.team-side p{color:var(--muted);line-height:1.45}.legend{display:grid;gap:10px;margin:20px 0}.legend-row{display:flex;align-items:center;gap:10px;font-size:13px;cursor:pointer}.legend-dot{width:13px;height:13px;border-radius:50%}.detail-list{margin-top:16px;border-top:1px solid var(--line2)}.detail-row{padding:13px 0;border-bottom:1px solid var(--line2);cursor:pointer}.detail-row small{display:block;color:var(--muted);font-family:var(--mono);font-size:9px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}.detail-row strong{font-weight:520}.team-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.team-actions button{border:1px solid #111;border-radius:999px;background:#fff;padding:9px 12px;cursor:pointer}.team-actions .primary{background:#111;color:#fff}
.modal{position:fixed;inset:0;background:rgba(12,18,20,.35);display:none;align-items:center;justify-content:center;padding:20px;z-index:50;backdrop-filter:blur(7px)}.modal.open{display:flex}.modal-card{width:min(620px,calc(100vw - 30px));background:#fff;border:1px solid #111;border-radius:25px;padding:25px;box-shadow:0 30px 80px rgba(0,0,0,.16);max-height:90vh;overflow:auto}.modal-card h2{margin:0 0 20px;font-size:34px;font-weight:450;letter-spacing:-.05em}.field{display:grid;gap:7px;margin-top:14px}.field label{font-family:var(--mono);font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px 13px;outline:0;background:#fff}.field textarea{min-height:120px;resize:vertical}.ai-note{font-family:var(--mono);font-size:11px;color:var(--blue);min-height:15px;margin-top:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.modal-actions button{border:1px solid #111;border-radius:999px;background:#fff;padding:10px 14px;cursor:pointer}.modal-actions .primary{background:#111;color:#fff}
.detail-card{position:relative;width:min(920px,calc(100vw - 40px));padding:0;overflow:auto;border-color:#c9cbc7;max-height:min(92vh,940px)}.detail-close{position:sticky;float:right;top:18px;margin:18px 18px -52px 0;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:rgba(255,255,255,.92);font-size:25px;line-height:1;cursor:pointer;z-index:2;backdrop-filter:blur(8px)}.detail-close:hover{border-color:#111}.detail-header{padding:40px 54px 30px;border-bottom:1px solid var(--line2);background:linear-gradient(135deg,#f8faf9,#fff 68%)}.detail-kicker{padding-right:54px;color:var(--muted);font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase}.detail-header h1{max-width:760px;margin:16px 0 20px;font-size:clamp(36px,5vw,58px);font-weight:430;letter-spacing:-.06em;line-height:1.02}.detail-state{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.detail-language{font-family:var(--mono);font-size:9px;letter-spacing:.08em;color:var(--muted);border-left:1px solid var(--line);padding-left:14px}.detail-source{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px;margin:26px 54px 0;padding:16px 18px;border:1px solid var(--line);border-radius:16px;color:var(--ink);text-decoration:none;background:var(--surface)}.detail-source:hover{border-color:#111}.detail-source-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#111;color:#fff}.detail-source span:nth-child(2){min-width:0;display:grid;gap:3px}.detail-source small{font-family:var(--mono);font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}.detail-source strong{font-size:15px}.detail-source em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;font-size:11px;color:var(--muted)}.detail-source b{font-family:var(--mono);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.detail-summary,.detail-section,.connections-line+.detail-section{margin-left:54px;margin-right:54px}.detail-summary{padding:32px 0 6px}.detail-summary h2,.detail-section h2{margin:0 0 12px;font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}.detail-summary p{max-width:760px;margin:0;font-size:21px;line-height:1.55;letter-spacing:-.015em}.detail-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line2)}.takeaway-list{display:grid;gap:12px;margin:0;padding:0;list-style:none;counter-reset:takeaway}.takeaway-list li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;line-height:1.55}.takeaway-list li:before{counter-increment:takeaway;content:counter(takeaway);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--surface);font-family:var(--mono);font-size:10px}.evidence-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.evidence-list blockquote{margin:0;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}.evidence-list p{margin:0;line-height:1.5}.evidence-list cite{display:block;margin-top:12px;font-family:var(--mono);font-size:9px;font-style:normal;color:var(--muted);overflow-wrap:anywhere}.evidence-list a{color:inherit}.detail-taxonomy{padding-bottom:4px}.detail-actions{position:sticky;bottom:0;margin-top:26px;padding:16px 54px;border-top:1px solid var(--line2);background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}.detail-action-spacer{flex:1}.detail-actions .danger{border-color:#d8aaa6;color:#a3261f}.detail-actions .danger:hover,.detail-actions .danger.armed{border-color:#a3261f;background:#fff1ef}.detail-actions .danger.armed{font-weight:600}
.detail-md h1{font-size:30px;font-weight:450;letter-spacing:-.05em;margin:0 0 12px}.detail-md h2{font-size:18px;margin:18px 0 8px}.detail-md p{line-height:1.55;color:#333}.detail-md ul{padding-left:18px}.detail-md li{line-height:1.55;margin:3px 0}
.detail-point{margin:7px 0;line-height:1.45}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#111;color:#fff;padding:12px 16px;border-radius:999px;opacity:0;pointer-events:none;transition:.2s;z-index:80;font-family:var(--mono);font-size:12px}.toast.show{opacity:1;transform:translate(-50%,0)}

/* Personal knowledge × collective intelligence */
.topbar{height:72px;padding:0 34px}
.brand{display:grid;gap:5px}
.brand strong{font-size:23px}
.brand small{margin:0;font-size:8px;letter-spacing:.12em}
.shell{max-width:1180px;padding:22px 28px 80px}
.navrow{align-items:flex-end;margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid var(--line2)}
.tabs{align-items:flex-end;gap:4px}
.nav-group{display:grid;gap:5px}
.nav-group-label{padding-left:8px;font-family:var(--mono);font-size:7px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted2)}
.nav-items{display:flex;gap:3px}
.tab,.add-btn{padding:9px 13px;font-size:10px}
.tab{border-color:transparent;border-radius:9px}
.tab:hover{background:var(--surface)}
.tab.active{background:#111}
.tab:focus-visible{outline:0;box-shadow:0 1px 0 #111}
.add-btn{border-radius:9px}
.page-head{margin:38px 0 22px}
.page-head h1{font-size:clamp(44px,5vw,66px);line-height:.94}
.page-head p{font-size:15px}
.section-kicker{margin-bottom:15px;font-family:var(--mono);font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:25px 0 11px}
.section-heading h2{margin:0;font-size:22px;font-weight:450;letter-spacing:-.04em}
.section-heading p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.mind-path{display:flex;align-items:center;gap:8px;margin-bottom:17px;font-family:var(--mono);font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted2)}
.mind-path i{font-style:normal;color:var(--line)}
.mind-path .active{color:var(--ink)}
.inbox-meta{display:flex;align-items:center;gap:14px}
.inbox-meta>span{font-family:var(--mono);font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.refresh-btn{border-color:var(--line);border-radius:9px;padding:9px 12px;font-size:12px}
.inbox-tools{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:9px;margin-bottom:14px}
.inbox-search{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 14px;outline:0;background:#fff}
.inbox-search:focus{border-color:#111}
.filter-drawer{position:relative}
.filter-drawer summary{height:100%;display:flex;align-items:center;list-style:none;border:1px solid var(--line);border-radius:12px;padding:0 15px;cursor:pointer;font-family:var(--mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.filter-drawer summary::-webkit-details-marker{display:none}
.filter-drawer summary:after{content:"+";margin-left:12px;font-size:15px}
.filter-drawer[open] summary:after{content:"−"}
.filter-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:15;width:min(820px,calc(100vw - 56px));grid-template-columns:repeat(5,minmax(130px,1fr));margin:0;padding:10px;border-radius:14px;box-shadow:0 14px 35px rgba(0,0,0,.07)}
.feed{gap:9px}
.feed-card{border-radius:15px;padding:20px 21px}
.feed-card:hover{transform:none;border-color:#9d9d97}
.feed-card h3{margin:15px 0 8px;font-size:22px}
.excerpt{max-width:780px;margin-bottom:14px;font-size:14px;line-height:1.5}
.type,.source-badge,.tag{border-radius:7px}
.tag.primary{background:var(--surface);border-color:var(--line);color:var(--ink)}
.status:before{width:6px;height:6px}
.graph-panel,.team-side{border-radius:15px}
.agent-title{font-size:clamp(48px,6vw,78px)}
.search-kicker{text-align:center}
.agent-subtitle{max-width:580px;margin:-12px auto 24px;text-align:center;color:var(--muted);line-height:1.5}
.agent-search{box-shadow:none}
.modal{background:rgba(18,18,18,.24);backdrop-filter:blur(3px)}
.modal-card{border-color:var(--line);border-radius:18px;box-shadow:0 18px 55px rgba(0,0,0,.12)}
.modal-kicker{margin:0 0 8px;font-family:var(--mono);font-size:9px;letter-spacing:.1em;color:var(--muted)}
.detail-header{background:#fff}
.detail-card{box-shadow:0 18px 55px rgba(0,0,0,.12)}
.collective-head{margin-bottom:6px}
.collective-relevance{margin-bottom:28px}
.collective-signals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.collective-signal{display:grid;align-content:start;min-height:190px;padding:19px;border:1px solid var(--line);border-radius:15px;cursor:pointer}
.collective-signal:hover{border-color:#999}
.collective-signal.demo{cursor:default}
.collective-signal.demo:hover{border-color:var(--line)}
.collective-signal:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.collective-signal h3{margin:17px 0 8px;font-size:20px;font-weight:480;letter-spacing:-.035em;line-height:1.2}
.collective-signal>p{margin:0;color:#555;font-size:13px;line-height:1.48}
.collective-empty{display:flex;align-items:center;justify-content:center;gap:14px;grid-column:1/-1;min-height:130px;border:1px dashed var(--line);border-radius:15px;color:var(--muted)}
.collective-empty span{font-size:28px}
.collective-empty p{max-width:420px;margin:0;line-height:1.45}
.graph-empty{height:100%;display:flex;align-items:center;justify-content:center;gap:14px;padding:30px;color:var(--muted);text-align:left}
.graph-empty span{font-family:var(--mono);font-size:26px;color:var(--ink)}
.graph-empty p{max-width:360px;margin:0;line-height:1.5}
.connection-count{display:grid;justify-items:start;margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--line2)}
.connection-count span,.connection-count small{font-family:var(--mono);font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.connection-count strong{margin:4px 0;font-size:48px;font-weight:400;letter-spacing:-.07em;line-height:1}
.connection-key{display:grid;gap:11px;margin:20px 0;padding:18px 0;border-top:1px solid var(--line2);border-bottom:1px solid var(--line2)}
.connection-key>div{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:10px;font-size:11px;color:var(--muted)}
.connection-key i{display:block;height:1px;background:#555}
.connection-key .line-weak{background:repeating-linear-gradient(90deg,#999 0 4px,transparent 4px 8px)}
.connection-key .line-indirect{background:repeating-linear-gradient(90deg,#ccc 0 2px,transparent 2px 6px)}
.edge.connection-strong{height:1.5px;background:#555}
.edge.connection-weak{background:repeating-linear-gradient(90deg,#aaa 0 5px,transparent 5px 9px)}
.edge.connection-indirect{background:repeating-linear-gradient(90deg,#ccc 0 2px,transparent 2px 6px)}

/* Essential-only interface */
html,body,button,input,textarea,select{font-family:var(--sans)!important}
.topbar{height:58px;padding:0 28px}
.brand strong{font-size:21px}
.connection-state{font-size:0}
.account .acc-name{display:none}
.shell{padding-top:14px}
.navrow{margin:0;padding:8px 0 12px}
.tab{padding:8px 11px;border-radius:0}
.tab:hover{background:transparent;color:var(--muted)}
.tab.active{background:transparent;color:var(--ink);border-color:transparent;border-bottom-color:var(--ink)}
.add-btn{width:34px;height:34px;padding:0;display:grid;place-items:center;border-radius:50%;font-size:18px;letter-spacing:0}
.page-head{margin:50px 0 20px}
.page-head h1{font-size:clamp(42px,5vw,58px)}
.inbox-tools{margin-bottom:0}
.inbox-search{border-width:0 0 1px;border-radius:0;padding:13px 2px}
.filter-drawer summary{border:0;border-radius:0;padding:0 4px}
.filter-panel{top:calc(100% + 2px)}
.feed{gap:0}
.feed-card{border:0;border-bottom:1px solid var(--line2);border-radius:0;padding:24px 0}
.feed-card:first-child{border-top:1px solid var(--line2)}
.feed-card:hover{border-color:var(--line);background:#fff}
.feed-card h3{margin:13px 0 7px;font-size:21px}
.meta-left>span:not(.type):not(.source-badge),.confidence{display:none}
.type,.source-badge,.tag{padding:4px 7px;border-radius:4px}
.excerpt{display:-webkit-box;margin-bottom:11px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.tags .tag:nth-child(n+3){display:none}
.collective-relevance{margin-bottom:18px}
.collective-relevance .section-heading{margin-top:0}
.collective-empty{min-height:92px;border-width:0 0 1px;border-radius:0}
.team-layout{gap:0;border-top:1px solid var(--line2)}
.graph-panel,.team-side{border:0;border-radius:0}
.graph-panel{padding:22px 22px 0 0}
.team-side{padding:22px 0 22px 22px;border-left:1px solid var(--line2)}
.graph-stage{background:#fff}
.agent-wrap{margin-top:80px}
.agent-title{font-size:clamp(46px,6vw,70px)}
.agent-search{border-radius:0;border-width:0 0 1px;padding:10px 0}
.agent-search button{border-radius:4px}

/* One typeface, black ink, white space */
button{border-radius:999px!important}
.tab{padding:8px 14px;border:0;background:rgba(0,0,0,.045)}
.tab.active{background:#000;color:#fff}
.tab:hover{background:rgba(0,0,0,.09)}
.tab.active:hover{background:#000;color:#fff}
.tab:focus-visible{outline:1px solid #000;outline-offset:2px;box-shadow:none}
.agent-search button,.modal-actions button,.state-card button,.team-actions button,.graph-controls button{border-radius:999px!important}
.connection-state,.connection-state.offline,.auth-status,.auth-error,.auth-dev,.error-state,.ai-note,.detail-actions .danger{color:#000}
.connection-state:before,.connection-state.offline:before,.status:before,.status-ready:before,.status-queued:before,.status-processing:before,.status-degraded:before,.status-failed:before{background:#000}
.account img{filter:grayscale(1) contrast(1.08)}
.avatar,.node.person,.legend-dot{background:#000!important;color:#fff!important}
.tag.primary,.workspace-setup-state,.app-message{background:#fff;color:#000;border-color:var(--line)}
.workspace-setup-state{background-image:none}
.meta-left{display:none}
.meta{justify-content:flex-end}
.feed-card h3{margin-top:0}
.tags .tag:nth-child(n+2){display:none}
.type,.source-badge,.tag,.status,.confidence,.connection-state,.brand small,.nav-group-label,.section-kicker,.modal-kicker,.connection-count span,.connection-count small{font-family:var(--sans)}
.status-processing:before{animation:none}
.node.person{box-shadow:none}
.modal-card,.detail-card{box-shadow:0 10px 30px rgba(0,0,0,.14)}

/* Account menu */
.account{position:relative;border:0;padding:0}
.account-trigger{width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;cursor:pointer;overflow:hidden}
.account-trigger:hover,.account-trigger[aria-expanded="true"]{border-color:#000}
.account-trigger img{width:100%;height:100%;object-fit:cover;filter:none}
.account-menu{position:absolute;right:0;top:calc(100% + 9px);z-index:40;width:210px;padding:7px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 14px 35px rgba(0,0,0,.10)}
.account-identity{display:grid;gap:3px;padding:10px 11px 12px;border-bottom:1px solid var(--line2)}
.account-identity strong{overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:550;white-space:nowrap}
.account-identity small{overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:11px;white-space:nowrap}
.account-menu button,.account-menu a{width:100%;display:block;margin-top:3px;padding:9px 11px;border:0;border-radius:10px!important;background:#fff;color:#000;text-align:left;text-decoration:none;font-size:12px;cursor:pointer}
.account-menu button:hover,.account-menu a:hover{background:rgba(0,0,0,.055)}

/* Full-width, item-only knowledge map */
.team-layout{display:block;border-top:1px solid var(--line2)}
.graph-panel{width:100%;min-height:720px;padding:22px 0 0}
.graph-stage{height:650px;background:#fff}
.node.content{max-width:220px;padding:9px 13px;border-color:var(--line);background:#fff}
.node.content:hover{border-color:#000}
.node.content.selected{outline:2px solid #000;outline-offset:3px}
.collective-signal.demo{cursor:pointer}
.collective-signal.demo:hover{border-color:#999}

/* Header navigation */
.topbar{display:grid;grid-template-columns:1fr auto 1fr;gap:18px}
.header-menu{display:flex;align-items:center;gap:9px}
.header-menu .tabs{flex-wrap:nowrap}
.header-menu .add-btn{width:32px;height:32px}
.topbar-right{justify-self:end}
.shell{padding-top:28px}

/* Personal filters and content taxonomy */
.inbox-tools{grid-template-columns:minmax(220px,1fr) auto}
.content-type-filter{min-width:135px;border:1px solid var(--line);border-radius:999px;padding:9px 32px 9px 13px;background:#fff;cursor:pointer;font-size:12px}
.meta-left{display:flex}
.meta-left>span:not(.type){display:none}
.meta{justify-content:space-between}
.type{display:inline-flex!important;border-color:#000;border-radius:999px}

/* GejstMind settings */
.settings-card{width:min(520px,calc(100vw - 30px))}
.settings-header{margin-bottom:24px}
.settings-header h2{margin-bottom:7px}
.settings-header p{margin:0;color:var(--muted);font-size:13px}
.settings-grid{display:grid;gap:18px}
.settings-field{display:grid;gap:7px}
.settings-field label{font-size:11px;font-weight:550}
.settings-field select{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff}
.settings-account{padding:15px;border:1px solid var(--line2);border-radius:14px}
.settings-account strong,.settings-account small{display:block}
.settings-account small{margin-top:4px;color:var(--muted)}
.search-empty{max-width:620px;margin:34px auto 0;padding:28px 0;border-top:1px solid var(--line);text-align:center}
.search-empty h2{margin:0 0 8px;font-size:28px;font-weight:450;letter-spacing:-.04em}
.search-empty p{margin:0;color:var(--muted);line-height:1.5}

/* Refined library hierarchy */
.shell{max-width:1200px;padding-top:22px}
.inbox-head{align-items:flex-end;margin:30px 0 26px}
.inbox-head h1{font-size:clamp(48px,5vw,64px);line-height:.95}
.inbox-meta{padding-bottom:4px}
.inbox-meta>span{font-size:10px;color:var(--muted2)}
.inbox-tools{align-items:stretch;gap:0;margin-bottom:0;border-bottom:1px solid var(--line)}
.inbox-search{min-height:52px;padding:13px 4px;border:0}
.content-type-filter{min-width:150px;margin:6px 0 6px 16px;padding-top:8px;padding-bottom:8px;border-color:var(--line);background-color:#fff}
.feed-card{min-height:176px;padding:26px 52px 25px 0}
.feed-card:after{content:"↗";position:absolute;right:4px;top:28px;color:var(--muted2);font-size:18px;opacity:0;transform:translate(-4px,4px);transition:.16s}
.feed-card:hover:after,.feed-card:focus-visible:after{opacity:1;transform:none}
.feed-card:hover{background:linear-gradient(90deg,#fff 0,#fff 75%,rgba(0,0,0,.018) 100%)}
.meta{min-height:24px;margin-bottom:10px}
.meta-left{gap:9px;color:var(--muted2);font-size:9px}
.meta-left>span:not(.type){display:inline-flex}
.meta-left .source-badge{padding:0;border:0;color:var(--muted2)}
.meta-left .source-badge:before{content:"·";margin-right:9px}
.meta-left>span:last-child:before{content:"·";margin-right:9px}
.feed-card h3{max-width:840px;margin:0 0 9px;font-size:24px;line-height:1.12}
.excerpt{max-width:900px;margin-bottom:14px;color:rgba(0,0,0,.62);font-size:14px;line-height:1.5}
.tags{min-height:25px}
.tag{padding:5px 9px;border-radius:999px}
.type{padding:5px 9px;font-size:9px;letter-spacing:.055em}

/* Shared spacing rhythm */
.view{padding-bottom:48px}
.inbox-tools{margin-bottom:22px}
.feed-card:first-child{border-top:0}
.feed>.state-card{margin-top:8px}
.feed-card{padding-top:30px;padding-bottom:30px}
.feed-card+.feed-card{margin-top:4px}
.collective-head{margin-bottom:34px}
.collective-relevance{margin-bottom:48px}
.collective-signals{gap:16px}
.collective-signal{min-height:210px;padding:24px}
.collective-signal h3{margin-top:22px}
.team-layout{margin-top:42px}
.graph-panel{padding-top:32px}
.graph-toolbar{margin-bottom:26px}
.agent-wrap{margin-top:92px}
.agent-results{margin-top:52px}
.answer-panel{padding:34px 0}
.answer-actions{margin-top:24px}
.source-list{margin-top:28px}
.source-row{padding:22px 0}
.state-card{min-height:168px;padding:30px}
.modal-card{padding:32px}
.field{gap:9px;margin-top:20px}
.modal-actions{margin-top:28px}
.settings-header{margin-bottom:30px}
.settings-grid{gap:24px}
.detail-card{padding:0}
.detail-header{padding-top:48px;padding-bottom:38px}
.detail-source{margin-top:32px}
.detail-summary{padding-top:42px}
.detail-section{margin-top:36px;padding-top:30px}
.detail-actions{margin-top:36px;padding-top:20px;padding-bottom:20px}

/* Balanced header geometry */
.topbar{grid-template-columns:auto 1fr auto}
.brand{justify-self:start;width:max-content;display:flex}
.brand strong{width:auto}
.header-menu{justify-self:center}
.header-menu .tab,.header-menu .add-btn{height:36px;display:inline-flex;align-items:center;justify-content:center}
.header-menu .add-btn{width:36px}

/* Conversational knowledge search */
.agent-wrap{max-width:920px;margin:64px auto 0}
.search-hero{text-align:left}
.search-eyebrow{display:block;margin-bottom:14px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted2)}
.agent-title{text-align:left;margin:0 0 30px;font-size:clamp(48px,6vw,70px);line-height:.94}
.agent-search{min-height:62px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;padding:8px 8px 8px 18px;border:1px solid var(--line);border-radius:32px;box-shadow:none;background:#fff}
.agent-search:focus-within{border-color:#000}
.search-mark{align-self:center;font-size:24px;line-height:1;color:var(--muted)}
.agent-search input{min-width:0;font-size:16px;background:transparent}
.agent-search button{width:46px;height:46px;padding:0;border-radius:50%!important;font-size:21px}
.prompt-row{justify-content:flex-start;margin-top:13px}
.prompt-chip{padding:8px 13px;background:#fff}
.agent-results{margin-top:46px}
.chat-thread{display:grid;gap:24px}
.user-query{justify-self:end;max-width:76%;padding:12px 17px;border-radius:18px 18px 4px 18px;background:rgba(0,0,0,.055);font-size:14px;line-height:1.45}
.assistant-turn{padding:28px 0 4px;border-top:1px solid var(--line)}
.assistant-label{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.assistant-label strong{font-size:14px;font-weight:600}
.assistant-label span{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted2)}
.overview-copy{max-width:820px;margin:0;white-space:pre-wrap;font-size:19px;line-height:1.58;letter-spacing:-.012em}
.loading-answer{display:flex;align-items:center;gap:12px;color:var(--muted)}
.loading-answer p{margin:0}
.empty-answer h2{margin:0 0 10px;font-size:30px;font-weight:450;letter-spacing:-.045em}
.empty-answer>p{max-width:620px;margin:0;color:var(--muted);line-height:1.55}
.empty-answer>button{margin-top:22px;padding:10px 15px;border:1px solid #000;border-radius:999px;background:#000;color:#fff;cursor:pointer}
.search-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.search-source-card{position:relative;min-height:170px;padding:19px 42px 19px 19px;border:1px solid var(--line);border-radius:18px;cursor:pointer}
.search-source-card:hover,.search-source-card:focus-visible{border-color:#000;outline:0}
.search-source-card>div{display:flex;align-items:center;gap:9px}
.search-source-card small{color:var(--muted2);font-size:9px;text-transform:uppercase}
.search-source-card h3{margin:17px 0 8px;font-size:19px;font-weight:520;letter-spacing:-.035em;line-height:1.18}
.search-source-card p{display:-webkit-box;margin:0;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.48;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.search-source-card>b{position:absolute;right:18px;top:19px;font-weight:400}

@media(max-width:1050px){
  .filter-panel{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .topbar{padding:0 20px}
  .shell{padding:20px 16px 70px}
  .team-layout{grid-template-columns:1fr}
  .team-side{position:static;border-left:0;border-top:1px solid var(--line2);padding-left:0}
  .graph-panel{padding-right:0}
  .page-head{align-items:flex-start;flex-direction:column}
  .navrow{align-items:stretch}
  .tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}
  .nav-group{flex:0 0 auto}
  .tab{white-space:nowrap}
  .graph-stage{height:520px}
  .connection-state{display:none}
}
@media(max-width:620px){
  .topbar{grid-template-columns:auto 1fr auto;padding:0 12px;gap:8px}
  .brand strong{font-size:18px}
  .header-menu{justify-self:center;gap:4px}
  .header-menu .tab{height:30px;padding:7px 9px;font-size:9px}
  .header-menu .add-btn{width:30px;height:30px}
  .account-trigger{width:32px;height:32px}
  .inbox-tools{grid-template-columns:1fr}
  .content-type-filter{width:100%;margin:6px 0}
  .inbox-head{margin-top:24px}
  .inbox-meta{padding-bottom:0}
  .feed-card{min-height:0;padding-right:38px}
  .collective-relevance{margin-bottom:38px}
  .team-layout{margin-top:32px}
  .agent-wrap{margin-top:58px}
  .search-source-grid{grid-template-columns:1fr}
  .user-query{max-width:90%}
  .brand small{display:none}
  .navrow{gap:10px}
  .add-btn{align-self:flex-start}
  .page-head{margin-top:28px}
  .page-head h1{font-size:44px}
  .mind-path{gap:5px;font-size:8px}
  .inbox-meta{width:100%;justify-content:space-between}
  .inbox-tools{grid-template-columns:1fr auto}
  .collective-signals{grid-template-columns:1fr}
  .filter-panel{position:fixed;left:12px;right:12px;top:auto;width:auto;grid-template-columns:1fr}
  .meta{align-items:flex-start;flex-direction:column}
  .card-states{justify-content:flex-start}
  .feed-card{padding:17px}
  .account .acc-name{display:none}
  .modal{padding:0;align-items:flex-end}
  .detail-card{width:100%;max-height:94vh;border-radius:18px 18px 0 0}
  .detail-header{padding:34px 22px 24px}
  .detail-header h1{font-size:34px}
  .detail-source{grid-template-columns:36px minmax(0,1fr);margin:20px 22px 0;padding:14px}
  .detail-source b{display:none}
  .detail-summary,.detail-section,.provenance{margin-left:22px;margin-right:22px}
  .detail-summary p{font-size:18px}
  .evidence-list{grid-template-columns:1fr}
  .detail-actions{padding:14px 22px}
  .detail-close{top:12px;margin:12px 12px -50px 0}
}

/* Production UI pass — one system across personal, collective, search, and capture */
:root{
  --space-1:8px;
  --space-2:12px;
  --space-3:16px;
  --space-4:24px;
  --space-5:32px;
  --space-6:48px;
  --space-7:64px;
  --control-h:40px;
  --focus:0 0 0 3px rgba(0,0,0,.16);
}
button,input,textarea,select,summary{min-height:var(--control-h)}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,
[role="button"]:focus-visible{outline:0;box-shadow:var(--focus)}
.topbar{height:68px;padding-inline:var(--space-5)}
.header-menu{gap:var(--space-1)}
.header-menu .tab,.header-menu .add-btn{height:40px}
.header-menu .add-btn{width:40px}
.shell{max-width:1240px;padding:var(--space-5) var(--space-5) 96px}
.page-head{margin:var(--space-6) 0 var(--space-5)}
.page-head h1{font-size:clamp(52px,5vw,72px);line-height:.92}
.page-head>div>p{max-width:620px;margin-top:var(--space-3);font-size:16px;line-height:1.5}
.inbox-meta{align-self:flex-end;padding-bottom:var(--space-1)}

.inbox-tools{
  grid-template-columns:minmax(260px,1fr) auto auto;
  align-items:center;
  gap:var(--space-2);
  margin-bottom:var(--space-4);
  padding-bottom:var(--space-3);
}
.inbox-search{min-height:48px}
.inbox-tool-actions{display:flex;align-items:center;gap:var(--space-2)}
.content-type-filter,.sort-filter{
  min-width:148px;
  height:40px;
  margin:0;
  padding:8px 34px 8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#000;
  cursor:pointer;
  font-size:12px;
}
.sort-filter{min-width:164px}
.filter-drawer summary{
  height:40px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  white-space:nowrap;
}
.filter-panel{top:calc(100% + 10px);box-shadow:0 18px 50px rgba(0,0,0,.10)}
.feed-card{min-height:188px;padding:32px 64px 32px 0}
.feed-card h3{font-size:26px}
.feed-card:after{top:34px}
.feed>.state-card{border-radius:20px}

.graph-panel{min-height:760px;padding-top:var(--space-5)}
.graph-toolbar{align-items:flex-end;margin-bottom:var(--space-4)}
.graph-toolbar>div:first-child{display:grid;gap:var(--space-1)}
.graph-toolbar h2{font-size:30px}
.graph-toolbar p{max-width:500px;margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.graph-tools{display:flex;align-items:center;gap:6px}
.graph-tools input{
  width:180px;
  height:40px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  outline:0;
}
.graph-tools button{
  height:40px;
  min-width:40px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  cursor:pointer;
}
.graph-tools button:hover{border-color:#000}
#graphZoomLabel{min-width:42px;color:var(--muted);font-size:10px;text-align:center}
.graph-stage{height:650px;border:1px solid var(--line2);border-radius:24px;cursor:default}
.graph-canvas{
  position:absolute;
  inset:0;
  transform:scale(var(--graph-scale,1));
  transform-origin:center;
  transition:transform .18s ease;
}
.node.content{border-radius:999px;background:#fff;transition:opacity .15s,border-color .15s,transform .15s}
.node.content:hover{filter:none;border-color:#000;transform:translateY(-1px)}
.node.search-match{border-color:#000;box-shadow:0 0 0 3px rgba(0,0,0,.10)}

.search-options{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:var(--space-3);
  margin-top:var(--space-2);
}
.search-scope{display:flex;gap:4px;flex:0 0 auto}
.search-scope button,.prompt-chip{
  min-height:34px;
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  cursor:pointer;
  font-size:11px;
}
.search-scope button.active{border-color:#000;background:#000;color:#fff}
.prompt-row{justify-content:flex-end;margin-top:0}
.agent-results{margin-top:var(--space-6)}
.chat-thread{gap:var(--space-5)}
.assistant-turn{padding-top:var(--space-5)}
.overview-copy{display:grid;gap:var(--space-3)}
.overview-copy p{margin:0}
.source-citation{
  display:inline-grid;
  place-items:center;
  width:22px;
  min-height:22px;
  margin-left:6px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:#000;
  cursor:pointer;
  font-size:10px;
  vertical-align:middle;
}
.source-citation:hover{border-color:#000}
.search-source-card{min-height:184px;padding:22px 48px 22px 22px}
.search-source-card .source-rank{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border:1px solid #000;
  border-radius:50%;
  font-size:10px;
}
.capture-context{margin-top:var(--space-4);border-top:1px solid var(--line2)}
.capture-context summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:var(--space-2) 0;
  list-style:none;
  color:var(--muted);
  cursor:pointer;
  font-size:12px;
}
.capture-context summary::-webkit-details-marker{display:none}
.capture-context summary:after{content:"+";font-size:18px}
.capture-context[open] summary:after{content:"−"}
.ai-note{min-height:18px;color:#000}
.settings-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0 2px;
  cursor:pointer;
  font-size:12px;
}
.settings-toggle input{width:18px;height:18px;min-height:0;accent-color:#000}

.detail-edit-field{
  width:100%;
  padding:10px 12px;
  border:1px solid #000;
  border-radius:12px;
  outline:0;
}
h1.detail-edit-field{font:inherit}
textarea.detail-edit-field{min-height:150px;resize:vertical;font-size:18px;line-height:1.5}
.detail-actions button[disabled],.modal-actions button[disabled]{cursor:wait;opacity:.48}

@media(max-width:900px){
  .shell{padding-inline:var(--space-4)}
  .inbox-tools{grid-template-columns:1fr auto}
  .inbox-tool-actions{grid-column:1/-1}
  .filter-drawer{position:absolute;right:var(--space-4)}
  .graph-toolbar{align-items:flex-start;flex-direction:column}
  .graph-tools{width:100%;flex-wrap:wrap}
  .graph-tools input{flex:1;min-width:180px}
  .search-options{align-items:flex-start;flex-direction:column}
  .prompt-row{justify-content:flex-start}
}
@media(max-width:620px){
  .topbar{height:auto;min-height:64px;padding:10px 14px}
  .header-menu .tab{height:36px;padding-inline:10px}
  .header-menu .add-btn{width:36px;height:36px}
  .shell{padding:20px 18px 72px}
  .page-head{margin-top:var(--space-5)}
  .page-head h1{font-size:46px}
  .inbox-tools{display:grid;grid-template-columns:1fr}
  .inbox-tool-actions{display:grid;grid-template-columns:1fr 1fr}
  .content-type-filter,.sort-filter{width:100%;min-width:0}
  .filter-drawer{position:relative;right:auto}
  .filter-drawer summary{justify-content:center}
  .feed-card{padding:26px 40px 26px 0}
  .feed-card h3{font-size:22px}
  .graph-panel{min-height:600px}
  .graph-stage{height:520px}
  .graph-tools input{width:100%;flex-basis:100%}
  .agent-wrap{margin-top:var(--space-6)}
  .agent-title{font-size:46px}
  .agent-search{min-height:56px;padding-left:14px}
  .prompt-row{display:none}
  .search-source-grid{grid-template-columns:1fr}
}
@media(max-width:460px){
  .topbar{padding:8px;gap:4px}
  .brand strong{font-size:16px}
  .header-menu{gap:3px}
  .header-menu .tabs{gap:2px}
  .header-menu .tab{height:34px;padding:6px 8px;font-size:8px}
  .header-menu .add-btn{width:34px;height:34px}
  .account-trigger{width:30px;height:30px}
}

/* Fixed search workspace and a single header control rhythm */
:root{
  --topbar-h:68px;
  --header-control-h:40px;
}
.topbar{height:var(--topbar-h)}
.header-menu .tabs{
  height:var(--header-control-h);
  align-items:stretch;
}
.header-menu .tab,
.header-menu .add-btn{
  height:var(--header-control-h);
  min-height:var(--header-control-h);
}
.header-menu .add-btn{
  width:var(--header-control-h);
  min-width:var(--header-control-h);
  flex:0 0 var(--header-control-h);
  padding:0;
  font-size:18px;
  line-height:1;
}

body.search-active{overflow:hidden}
body.search-active .app{
  height:100vh;
  height:100dvh;
  overflow:hidden;
}
body.search-active .shell{
  height:calc(100vh - var(--topbar-h));
  height:calc(100dvh - var(--topbar-h));
  padding-top:0;
  padding-bottom:0;
  overflow:hidden;
}
#agentSearch.view.active{
  height:100%;
  padding-bottom:0;
  overflow:hidden;
}
#agentSearch .agent-wrap{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  margin:0 auto;
  overflow:hidden;
}
.search-fixed{
  position:relative;
  z-index:2;
  flex:0 0 auto;
  padding:40px 0 24px;
  background:#fff;
}
#agentSearch .agent-title{margin-bottom:24px}
#agentSearch .agent-results{
  flex:1 1 auto;
  min-height:0;
  margin-top:0;
  padding:24px 8px 72px 0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.detail-header h1{margin-top:0}
.detail-meta{color:var(--muted);font-size:12px;line-height:1.4}

/* Eyebrows repeat information already carried by page titles. */
.search-eyebrow,
.section-kicker,
.search-kicker,
.nav-group-label,
.mind-path,
.modal-kicker,
.detail-kicker{display:none!important}

@media(max-width:620px){
  :root{
    --topbar-h:64px;
    --header-control-h:36px;
  }
  .topbar{
    height:var(--topbar-h);
    min-height:var(--topbar-h);
  }
  .search-fixed{padding:28px 0 18px}
  #agentSearch .agent-title{margin-bottom:18px}
  #agentSearch .agent-results{padding-top:18px;padding-bottom:48px}
}
@media(max-width:460px){
  :root{--header-control-h:34px}
}

/* Knowledge detail is a full in-app page, not a floating dialog. */
#detailModal.detail-page-overlay{
  inset:var(--topbar-h) 0 0;
  padding:0;
  align-items:stretch;
  justify-content:stretch;
  background:#fff;
  backdrop-filter:none;
  z-index:20;
}
#detailModal .detail-card{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  width:100%;
  max-width:none;
  height:calc(100vh - var(--topbar-h));
  height:calc(100dvh - var(--topbar-h));
  max-height:none;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.detail-page-bar{
  display:flex;
  align-items:center;
  width:min(1180px,calc(100% - 64px));
  min-height:64px;
  margin:0 auto;
  padding:14px 0 10px;
  background:#fff;
  gap:18px;
}
.detail-page-bar-title{overflow:hidden;color:var(--muted);font-size:13px;font-weight:500;letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap}
#detailModal .detail-close{
  position:static;
  float:none;
  justify-self:start;
  width:auto;
  height:40px;
  min-height:40px;
  margin:0;
  padding:0 15px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  font-size:12px;
  line-height:1;
}
#detailModal .detail-close span{font-size:18px}
#detailBody{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.detail-page-content{
  width:min(1180px,calc(100% - 64px));
  margin:0 auto;
  padding-bottom:80px;
}
#detailModal .detail-header{
  padding:64px 0 48px;
  border-bottom:1px solid var(--line2);
  background:#fff;
}
.detail-type-chip{
  display:inline-flex;
  min-height:30px;
  padding:6px 11px;
  align-items:center;
  border:1px solid #000;
  border-radius:999px;
  font-size:11px;
}
#detailModal .detail-header h1{
  max-width:980px;
  margin:20px 0 24px;
  font-size:clamp(48px,6vw,82px);
  font-weight:400;
  line-height:.94;
  letter-spacing:-.065em;
}
#detailModal .detail-state{gap:12px}
#detailModal .detail-meta{font-size:13px}
.detail-overview-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(440px,.9fr);
  gap:56px;
  padding:56px 0 64px;
}
.detail-overview-column{min-width:0}
#detailModal .detail-source{
  margin:0;
  padding:16px 18px;
  border-radius:18px;
}
#detailModal .detail-summary{
  margin:34px 0 0;
  padding:0;
}
#detailModal .detail-summary h2,
#detailModal .detail-note-block h2,
#detailModal .detail-network-section h2,
#detailModal .detail-saved-article h2,
#detailModal .detail-section h2{
  margin:0 0 14px;
  color:#000;
  font-family:var(--sans);
  font-size:25px;
  font-weight:500;
  line-height:1.05;
  letter-spacing:-.04em;
  text-transform:none;
}
#detailModal .detail-summary p{
  margin:0;
  font-size:20px;
  line-height:1.55;
}
.detail-content-points{display:grid;gap:10px;margin:24px 0 0;padding-left:20px;color:var(--muted);font-size:15px;line-height:1.55}
.detail-note-block{
  margin-top:34px;
  padding-top:28px;
  border-top:1px solid var(--line2);
}
.detail-note-block p,
.detail-note-block blockquote{
  margin:0;
  font-size:17px;
  line-height:1.6;
}
.detail-note-block blockquote{
  padding-left:18px;
  border-left:2px solid #000;
}
.detail-network-section{
  min-width:0;
  padding-left:48px;
  border-left:1px solid var(--line2);
}
.detail-network-section>header{margin-bottom:18px}
.detail-network-section>header p,
.detail-saved-article>header p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.detail-network{
  height:620px;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 50%,rgba(223,255,87,.28),transparent 46%),
    radial-gradient(rgba(0,0,0,.07) 1px,transparent 1.2px) 0 0/22px 22px;
  border-radius:20px;
}
.detail-network-loading,
.detail-network-empty{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}
.detail-network-canvas{position:relative;width:100%;height:100%}
.detail-network-canvas svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.detail-network-edge{fill:none;stroke:#111;stroke-linecap:round;transition:opacity .2s,stroke .2s}
.detail-network-edge.layer-2{stroke:#9a9a9a;stroke-dasharray:2 6}
.detail-network-node{
  position:absolute;
  z-index:2;
  width:152px;
  min-height:56px;
  padding:10px 16px;
  transform:translate(-50%,-50%);
  display:grid;
  gap:3px;
  align-content:center;
  border:1px solid #000;
  background:#fff;
  color:#000;
  text-align:left;
  box-shadow:0 4px 14px rgba(0,0,0,.07);
  transition:opacity .2s,box-shadow .2s,background .15s,color .15s;
}
button.detail-network-node{cursor:pointer}
.detail-network-node span{
  overflow:hidden;
  color:var(--muted);
  font-size:9px;
  letter-spacing:.07em;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}
.detail-network-node strong{
  display:-webkit-box;
  overflow:hidden;
  font-size:12px;
  font-weight:600;
  line-height:1.3;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.detail-network-node.root{
  width:176px;
  min-height:66px;
  padding:12px 18px;
  border-radius:22px!important;
  background:#000;
  color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}
.detail-network-node.root span{color:var(--signal,#dfff57)}
.detail-network-node.root{box-shadow:0 0 0 4px rgba(223,255,87,.35),0 0 32px rgba(223,255,87,.45),0 8px 24px rgba(0,0,0,.22)}
.detail-network-node.root strong{font-size:13px}
.detail-network-node.layer-2{
  width:120px;
  min-height:48px;
  padding:8px 14px;
  border-color:#b5b5b5;
  box-shadow:none;
}
.detail-network-node.layer-2 strong{font-size:11px;font-weight:550}
.detail-network-canvas.focus .detail-network-node:not(.on){opacity:.35}
.detail-network-canvas.focus .detail-network-edge:not(.on){opacity:.12!important}
.detail-network-canvas.focus .detail-network-edge.on{stroke:#000;opacity:1!important;filter:drop-shadow(0 0 3px rgba(223,255,87,.95))}
.detail-network-node.on:not(.root){border-color:#000;box-shadow:0 0 0 3px rgba(223,255,87,.55),0 6px 18px rgba(0,0,0,.1)}
button.detail-network-node:hover,button.detail-network-node:focus-visible{background:#000;color:#fff;box-shadow:0 0 0 4px rgba(223,255,87,.45),0 0 26px rgba(223,255,87,.4),0 8px 22px rgba(0,0,0,.2);border-color:#000}
button.detail-network-node:hover span,button.detail-network-node:focus-visible span{color:var(--signal,#dfff57)}
/* Strongest direct links get a lime underglow so the best matches pop. */
.detail-network-edge.layer-1.strong{filter:drop-shadow(0 0 4px rgba(223,255,87,.9))}
.detail-saved-article{
  padding:64px 0;
  border-top:1px solid var(--line2);
}
.detail-saved-article>header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:40px;
}
.detail-saved-article>article{max-width:820px}
.detail-saved-article>article h1{
  margin:42px 0 18px;
  font-size:36px;
  font-weight:500;
  letter-spacing:-.04em;
}
.detail-saved-article>article h2{
  margin:34px 0 14px;
  font-size:26px;
}
.detail-saved-article>article p,
.detail-saved-article>article li{
  color:#222;
  font-size:17px;
  line-height:1.72;
}
.detail-structured-reader>article{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.detail-structured-reader .detail-reader-summary{
  margin-top:0;
  color:#000;
  font-size:22px;
  line-height:1.6;
}
.detail-structured-reader blockquote{
  margin:24px 0 0;
  padding:18px 0 0 22px;
  border-top:1px solid var(--line2);
  border-left:2px solid #000;
  font-size:15px;
  line-height:1.6;
}
.detail-structured-reader>a{
  display:inline-flex;
  min-height:40px;
  margin-top:16px;
  padding:0 15px;
  align-items:center;
  border:1px solid #000;
  border-radius:999px;
  color:#000;
  font-size:12px;
  text-decoration:none;
}
.detail-structured-sections{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 56px;
  border-top:1px solid var(--line2);
}
#detailModal .detail-structured-sections .detail-section{
  margin:0;
  padding:48px 0;
  border-top:0;
  border-bottom:1px solid var(--line2);
}
#detailModal .detail-structured-sections .connections-line{
  margin:0;
  padding:32px 0;
}
/* Delete / Edit live in the top bar, beside Back. */
#detailModal .detail-actions{
  position:static;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:0;
  margin:0 0 0 auto;
  padding:0;
  border:0;
  background:none;
  backdrop-filter:none;
  flex-shrink:0;
}
#detailModal .detail-page-bar-title{min-width:0}
#detailModal .detail-actions button{
  height:40px;
  min-height:40px;
  margin:0;
  padding:0 18px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  box-shadow:none;
}
#detailModal .detail-actions #detailEdit{border-color:#000;background:#000;color:#fff}
#detailModal .detail-actions #detailEdit:hover{color:var(--signal,#dfff57)}

@media(max-width:980px){
  .detail-overview-grid{grid-template-columns:1fr;gap:48px}
  .detail-network-section{
    padding:48px 0 0;
    border-top:1px solid var(--line2);
    border-left:0;
  }
}
@media(max-width:620px){
  .detail-network{height:560px}
  .detail-network-node{width:116px;min-height:48px;padding:8px 12px}
  .detail-network-node.root{width:132px}
  .detail-network-node.layer-2{width:92px}
  .detail-network-node strong{font-size:11px}
  .detail-page-bar{width:calc(100% - 36px);min-height:54px;padding:10px 0 6px}
  #detailModal .detail-close{height:36px;min-height:36px;padding:0 12px}
  .detail-page-content{width:calc(100% - 36px);padding-bottom:48px}
  #detailModal .detail-header{padding:42px 0 34px}
  #detailModal .detail-header h1{font-size:44px}
  .detail-overview-grid{padding:36px 0 48px}
  .detail-saved-article{padding:48px 0}
  .detail-saved-article>header{display:block;margin-bottom:28px}
  .detail-saved-article>header p{margin-top:8px}
  .detail-saved-article>article p,
  .detail-saved-article>article li{font-size:16px}
  .detail-structured-reader>article{padding:24px}
  .detail-structured-reader .detail-reader-summary{font-size:18px}
  .detail-structured-sections{grid-template-columns:1fr}
  #detailModal .detail-actions{gap:6px}
  #detailModal .detail-actions button{height:36px;min-height:36px;padding:0 13px}
}

/* Semantic connection strength */
.card-delete{
  min-height:30px;
  padding:5px 10px;
  border:1px solid transparent;
  border-radius:999px;
  background:transparent;
  color:var(--muted2);
  font:500 10px/1 var(--sans);
  cursor:pointer;
  opacity:.65;
  transition:background .14s,border-color .14s,color .14s,opacity .14s;
}
.card-delete:hover,.card-delete:focus-visible{
  border-color:#d8aaa6;
  color:#a3261f;
  opacity:1;
  outline:0;
}
.card-delete.armed{
  border-color:#a3261f;
  background:#fff1ef;
  color:#a3261f;
  opacity:1;
}
.card-delete:disabled{cursor:wait;opacity:.55}
.feed-card:has(.card-delete):after{display:none}
.feed-card .card-delete{position:absolute;top:34px;right:0}

.edge-score{
  position:absolute;
  z-index:4;
  min-height:20px;
  padding:4px 6px;
  transform:translate(-50%,-50%);
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--muted);
  font-size:8px;
  line-height:1;
  opacity:0;
  pointer-events:none;
}
.edge-score.high{opacity:.72}
.edge-score.active{border-color:#000;color:#000;opacity:1}

/* Audit pass: purposeful empty states and restrained liquid glass chrome */
.topbar{
  border-bottom-color:rgba(255,255,255,.55);
  background:rgba(248,249,250,.70);
  -webkit-backdrop-filter:blur(24px) saturate(165%);
  backdrop-filter:blur(24px) saturate(165%);
  box-shadow:0 1px 0 rgba(0,0,0,.05),0 10px 34px rgba(0,0,0,.035);
}
.header-menu .tabs{
  padding:3px;
  border:1px solid rgba(255,255,255,.68);
  border-radius:999px;
  background:rgba(255,255,255,.38);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.header-menu .tab{border:0;background:transparent}
.header-menu .tab.active{background:rgba(0,0,0,.92);box-shadow:0 2px 8px rgba(0,0,0,.13)}
.header-menu .add-btn{box-shadow:0 3px 12px rgba(0,0,0,.13)}

/* Keep the active location cue as a solid black tab; do not add a second dot. */
.header-menu .tab.active{background:#000;color:#fff;box-shadow:none}
.header-menu .tab.active:after{display:none}

.account-menu,.filter-panel{
  border-color:rgba(255,255,255,.72);
  background:rgba(248,249,250,.76);
  -webkit-backdrop-filter:blur(28px) saturate(170%);
  backdrop-filter:blur(28px) saturate(170%);
  box-shadow:0 18px 55px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.82);
}
.account-menu button,.account-menu a,.filter-panel select,.filter-panel input{background:rgba(255,255,255,.58)}
#logoutBtn{color:#9d241d}

.inbox-search-wrap{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  min-height:48px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  transition:border-color .15s,box-shadow .15s;
}
.inbox-search-wrap:focus-within{border-color:#000;box-shadow:var(--focus)}
.inbox-search-wrap>span{color:var(--muted2);font-size:18px}
.inbox-search-wrap .inbox-search{min-height:46px;padding:0 10px;border:0;background:transparent;box-shadow:none}
.inbox-search-wrap .inbox-search:focus{border:0;box-shadow:none}

.empty-action-state{
  display:flex;
  min-height:240px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:42px 24px;
  text-align:center;
}
.empty-action-state .state-symbol{display:grid;width:38px;height:38px;place-items:center;margin-bottom:5px;border-radius:50%;background:#000;color:#fff;font-size:20px}
.empty-action-state strong{font-size:22px;font-weight:520;letter-spacing:-.03em}
.empty-action-state p{max-width:480px;margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.empty-action-state button,.error-state button,.graph-error button{margin-top:8px;padding:10px 16px;border:1px solid #000;border-radius:999px;background:#000;color:#fff;cursor:pointer}
.empty-action-state small{margin-top:4px;color:var(--muted2);font-size:11px}
.error-state p{margin:5px 0 0;color:var(--muted);font-size:12px}
.graph-error{text-align:left}
.graph-error>div{display:grid;justify-items:start}
.collective-load-failed .team-layout{display:none}

.search-hero{display:grid;gap:12px}
.search-subtitle{max-width:620px;margin:-14px 0 8px;color:var(--muted);font-size:15px;line-height:1.5}
.agent-search{
  border-color:rgba(0,0,0,.14);
  background:rgba(248,249,250,.72);
  -webkit-backdrop-filter:blur(22px) saturate(155%);
  backdrop-filter:blur(22px) saturate(155%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 8px 28px rgba(0,0,0,.05);
}
.agent-search:focus-within{border-color:rgba(0,0,0,.55);box-shadow:var(--focus),inset 0 1px 0 rgba(255,255,255,.85)}
.search-scope-wrap{display:grid;grid-template-columns:auto auto auto;align-items:center;gap:9px}
.search-option-label{color:var(--muted2);font-size:10px;text-transform:uppercase;letter-spacing:.07em}
.scope-hint{color:var(--muted);font-size:11px}
.search-options{align-items:flex-start;flex-direction:column;gap:14px}
.prompt-row{justify-content:flex-start}

.toast{display:flex;align-items:center;font-family:var(--sans);font-weight:520}

@media(max-width:620px){
  .topbar{padding-inline:10px}
  .brand strong{font-size:15px}
  .header-menu .tabs{padding:2px}
  .header-menu .tab{padding-inline:8px;font-size:9.5px;letter-spacing:.035em}
  .inbox-search-wrap{width:100%}
  .search-scope-wrap{grid-template-columns:auto 1fr}
  .scope-hint{grid-column:1/-1;padding-left:0}
  .search-subtitle{margin-top:-8px;font-size:14px}
  .feed-card .card-delete{top:26px}
}
@media(max-width:420px){
  .brand{display:none}
  .topbar{grid-template-columns:1fr auto}
  .header-menu{justify-self:start}
  .header-menu .tab{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
@media(prefers-reduced-transparency:reduce){
  .topbar,.account-menu,.filter-panel,.agent-search{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(prefers-contrast:more){
  .topbar,.account-menu,.filter-panel,.agent-search{border-color:#000;background:#fff}
}

/* Inputs use one surface and one focus boundary — never a nested focus box. */
.agent-search{
  border-color:rgba(0,0,0,.18);
  background:rgba(255,255,255,.76);
  box-shadow:none;
}
.agent-search:focus-within{
  border-color:rgba(0,0,0,.48);
  box-shadow:none;
}
.agent-search input,
.agent-search input:focus,
.agent-search input:focus-visible,
.inbox-search-wrap input,
.inbox-search-wrap input:focus,
.inbox-search-wrap input:focus-visible{
  border:0;
  outline:0;
  box-shadow:none!important;
}
.inbox-search-wrap{box-shadow:none}
.inbox-search-wrap:focus-within{border-color:rgba(0,0,0,.48);box-shadow:none}
.header-menu .tab.active,.header-menu .add-btn{box-shadow:none}
.account-menu,.filter-panel{
  box-shadow:0 10px 30px rgba(0,0,0,.07),inset 0 1px 0 rgba(255,255,255,.78);
}

/* Workspace administration */
.admin-tab[hidden]{display:none!important}
.workspace-admin{padding-top:2.5rem}.admin-head{align-items:flex-end}.admin-role{padding:.45rem .75rem;border-radius:999px;background:#1e1e1e;color:#fff;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em}.admin-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:1.25rem}.admin-panel{padding:1.6rem;border-radius:1.5rem;background:#fff;box-shadow:0 1px 0 rgba(30,30,30,.08),0 18px 45px rgba(30,30,30,.055)}.license-panel{grid-row:span 2}.admin-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem}.admin-panel h2{margin:0;font-size:1.45rem;letter-spacing:-.035em}.admin-panel p{margin:.35rem 0 0;color:var(--muted);line-height:1.5}.admin-panel-head>span{font-size:.72rem;color:var(--muted)}.license-code{min-height:5rem;padding:1rem 1.1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-radius:1rem;background:#1e1e1e;color:#fff}.license-code span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1.15rem;letter-spacing:.08em}.license-code button,.billing-actions button,.invite-row button{border:0;border-radius:999px;padding:.72rem 1rem;background:#fff;color:#1e1e1e;cursor:pointer}.license-disclosure{font-size:.75rem}.admin-list{display:grid;margin-top:1.25rem}.admin-list-row{display:grid;grid-template-columns:1fr auto;gap:1rem;padding:.9rem 0;border-top:1px solid rgba(30,30,30,.09)}.admin-list-row strong,.admin-list-row small{display:block}.admin-list-row small{margin-top:.2rem;color:var(--muted)}.admin-list-row button{align-self:center;border:0;background:transparent;color:#9c2f28;cursor:pointer}.invite-row{display:grid;grid-template-columns:1fr auto auto;gap:.5rem}.invite-row input,.invite-row select{min-width:0;padding:.75rem .85rem;border:0;border-radius:.8rem;background:rgba(30,30,30,.055);font:inherit}.invite-row button,.billing-actions button{background:#1e1e1e;color:#fff}.billing-actions{display:flex;gap:.55rem;flex-wrap:wrap}.billing-actions button+button{background:rgba(30,30,30,.07);color:#1e1e1e}@media(max-width:850px){.admin-grid{grid-template-columns:1fr}.license-panel{grid-row:auto}.invite-row{grid-template-columns:1fr 1fr}.invite-row input{grid-column:1/-1}}

/* Search is intentionally quiet: one question field, optional scope. */
.search-options{margin-top:12px}
.search-scope-filter{position:relative;width:max-content}
.search-scope-filter>summary{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  list-style:none;
  color:var(--muted);
  font-size:11px;
}
.search-scope-filter>summary::-webkit-details-marker{display:none}
.search-scope-filter>summary:focus-visible{border-color:rgba(0,0,0,.48);box-shadow:none}
.search-scope-filter>summary:after{content:"+";margin-left:10px;font-size:14px}
.search-scope-filter[open]>summary:after{content:"−"}
.search-scope-panel{
  position:absolute;
  left:0;
  top:calc(100% + 8px);
  z-index:8;
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:11px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:16px;
  background:rgba(248,249,250,.82);
  -webkit-backdrop-filter:blur(24px) saturate(165%);
  backdrop-filter:blur(24px) saturate(165%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}

/* Loosen the display typography without making body copy airy. */
.brand strong{letter-spacing:-.018em}
.agent-title,
.page-head h1,
#detailModal .detail-header h1{letter-spacing:-.035em}
.feed-card h3,
.graph-toolbar h2,
.section-heading h2{letter-spacing:-.022em}

@media(max-width:620px){
  .search-scope-panel{min-width:min(330px,calc(100vw - 36px))}
}

/* Attach readable references to the claim they support. */
.cited-paragraph{display:grid;gap:12px}
.cited-paragraph>p{margin:0}
.paragraph-sources{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.source-citation{
  display:inline-flex;
  align-items:center;
  width:auto;
  max-width:min(300px,100%);
  min-height:30px;
  margin:0;
  padding:5px 10px 5px 6px;
  gap:7px;
  border-radius:999px;
  color:var(--muted);
  font-size:10px;
  line-height:1;
}
.source-citation b{
  display:grid;
  width:18px;
  height:18px;
  place-items:center;
  flex:0 0 18px;
  border-radius:50%;
  background:#000;
  color:#fff;
  font-size:9px;
  font-weight:550;
}
.source-citation span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.source-citation:hover{border-color:#000;color:#000}
.source-overflow{color:var(--muted2);font-size:10px}

/* Personal knowledge benefits from a small vocabulary, not a single generic label. */
.feed-card .tags .tag:nth-child(n){display:inline-flex}

/* Each follow-up reads as a new conversational turn. */
.search-turn+.search-turn{
  margin-top:88px;
  padding-top:64px;
  border-top:1px solid var(--line2);
}
.search-turn+.search-turn .user-query{margin-bottom:8px}

/* Shared floating GejstMind header */
:root{--topbar-h:94px;--floating-header-h:62px}
.topbar{
  position:fixed;
  z-index:100;
  top:16px;
  left:50%;
  width:min(calc(100% - 32px),1220px);
  height:var(--floating-header-h);
  min-height:var(--floating-header-h);
  padding:7px 8px 7px 16px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:18px;
  border:1px solid rgba(255,255,255,.82);
  border-radius:31px;
  background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.64));
  -webkit-backdrop-filter:blur(30px) saturate(180%);
  backdrop-filter:blur(30px) saturate(180%);
  box-shadow:0 14px 38px rgba(30,30,30,.085),inset 0 1px 0 rgba(255,255,255,.96),inset 0 0 0 .5px rgba(30,30,30,.05);
  transform:translateX(-50%);
}
.brand{min-width:0}
.app-wordmark{display:inline-flex;align-items:center;gap:11px;color:#1e1e1e;font-size:16px;font-weight:720;letter-spacing:.025em;text-decoration:none}
.mind-mark{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:30%;background:#0b0b0b;box-shadow:0 4px 11px rgba(30,30,30,.18),inset 0 1px 0 rgba(255,255,255,.14);transition:transform .42s cubic-bezier(.2,.8,.2,1),border-radius .42s cubic-bezier(.2,.8,.2,1)}
.mind-mark svg{width:35px;height:35px;overflow:visible;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.mind-mark circle{fill:#fff;stroke:none}
.mind-mark circle.accent{fill:#dfff57}
.app-wordmark:hover .mind-mark{transform:scale(1.06)}
.header-menu .tabs{height:44px;padding:3px;border:1px solid rgba(255,255,255,.78);background:rgba(255,255,255,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.86)}
.header-menu .tab,.header-menu .add-btn{height:36px;min-height:36px}
.header-menu .tab.active{background:#1e1e1e;box-shadow:none}
.topbar-right{justify-self:end}
.shell{padding-top:calc(var(--topbar-h) + 28px)}
body.search-active .shell{height:calc(100vh - var(--topbar-h));height:calc(100dvh - var(--topbar-h));padding-top:0;margin-top:var(--topbar-h)}
#detailModal.detail-page-overlay{inset:var(--topbar-h) 0 0}
#detailModal .detail-card{height:calc(100vh - var(--topbar-h));height:calc(100dvh - var(--topbar-h))}
@media(max-width:620px){
  :root{--topbar-h:84px;--floating-header-h:56px}
  .topbar{top:12px;width:calc(100% - 20px);padding:6px 7px 6px 10px;gap:7px}
  .app-wordmark{gap:0}
  .app-wordmark .wordmark-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .mind-mark{width:38px;height:38px}
  .mind-mark svg{width:30px;height:30px}
  .header-menu .tabs{height:40px}
  .header-menu .tab,.header-menu .add-btn{height:32px;min-height:32px}
  .shell{padding-top:calc(var(--topbar-h) + 18px)}
}
@media(max-width:420px){.brand{display:block}.topbar{grid-template-columns:1fr auto 1fr}.header-menu .tab{padding-inline:7px}.topbar-right{min-width:30px}}
@media(prefers-reduced-motion:reduce){.mind-mark{transition:none}.app-wordmark:hover .mind-mark{transform:none}}
@media(prefers-reduced-transparency:reduce){.topbar{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}

/* Shared identity explorations with the public landing page. */

/* Actual product directions. Each direction changes the shell, hierarchy and
   capture surface so the switcher is a real design exploration. */


/* Keep the dark direction readable against the later shared welcome rules. */

/* Signed-out welcome and stronger everyday hierarchy. */
body{background:linear-gradient(180deg,#f8f8f7 0,#fff 360px)}
.page-head h1{color:#171717;font-weight:430}
.page-head p{color:rgba(0,0,0,.62)}
.header-menu{justify-self:center}
.header-menu .add-btn{
  flex:none;
  width:40px;
  height:40px;
  border:0;
  background:#1e1e1e;
  color:#fff;
  font-size:22px;
  line-height:1;
  transition:transform .18s ease,background .18s ease;
}
.header-menu .add-btn:hover{background:#000;transform:scale(1.045)}
.header-menu .add-btn:focus-visible{outline:2px solid #000;outline-offset:3px}
.signed-out-state{
  display:grid;
  justify-items:center;
  max-width:820px;
  min-height:390px;
  margin:12px auto 0;
  padding:66px 54px 52px;
  border:1px solid rgba(0,0,0,.09);
  border-radius:32px;
  background:rgba(255,255,255,.8);
  box-shadow:0 24px 70px rgba(0,0,0,.055);
  text-align:center;
}
.signed-out-mark{display:grid;width:42px;height:42px;place-items:center;margin-bottom:22px;border-radius:50%;background:#1e1e1e;color:#fff;font-size:17px}
.signed-out-state .eyebrow{margin:0 0 14px;color:rgba(0,0,0,.48);font-size:11px;font-weight:650;letter-spacing:.11em;text-transform:uppercase}
.signed-out-state h2{max-width:680px;margin:0;color:#171717;font-size:clamp(34px,5vw,56px);font-weight:430;letter-spacing:-.045em;line-height:1.02}
.signed-out-state>p:not(.eyebrow){max-width:570px;margin:22px 0 0;color:rgba(0,0,0,.62);font-size:16px;line-height:1.55}
.signed-out-cta{min-height:46px;margin-top:30px;padding:0 22px;border:0;border-radius:999px;background:#1e1e1e;color:#fff;font-weight:600;cursor:pointer}
.signed-out-cta:hover{background:#000;transform:translateY(-1px)}
.signed-out-cta:focus-visible{outline:2px solid #000;outline-offset:3px}
.signed-out-state small{margin-top:16px;color:rgba(0,0,0,.45);font-size:11px}
.platform-admin{padding-top:2.5rem}.admin-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;margin:1.5rem 0}.admin-metric{padding:1rem 1.1rem;border:1px solid var(--line);border-radius:1rem;background:rgba(255,255,255,.72)}.admin-metric span,.admin-metric small{display:block;color:var(--muted);font-size:.75rem}.admin-metric strong{display:block;margin:.25rem 0;font-size:2rem;letter-spacing:-.06em}.platform-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}.platform-wide{grid-column:1/-1}.admin-refresh,.table-action{border:0;background:transparent;color:#00a99d;cursor:pointer;font:inherit}.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;font-size:.86rem}.admin-table th{padding:.65rem 0;text-align:left;color:var(--muted);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}.admin-table td{padding:.85rem .5rem .85rem 0;border-top:1px solid var(--line);vertical-align:top}.referral-form{display:grid;grid-template-columns:1.2fr 1.2fr .65fr .65fr auto;gap:.55rem;margin-bottom:1rem}.referral-form input{min-width:0;padding:.75rem .85rem;border:1px solid var(--line);border-radius:.75rem;background:#fff;font:inherit}.referral-form button{border:0;border-radius:.75rem;padding:.75rem 1rem;cursor:pointer}.referral-form .primary{background:#1e1e1e;color:#fff}
@media(max-width:620px){
  .header-menu .add-btn{width:36px;height:36px}
  .signed-out-state{min-height:340px;padding:46px 24px 40px;border-radius:24px}
  .app.auth-required .inbox-head{margin-top:18px}
}
@media(prefers-reduced-motion:reduce){.header-menu .add-btn{transition:none}.header-menu .add-btn:hover{transform:none}}

/* Final product palette and profile actions. */
:root{
  --ink:#000;
  --muted:rgba(0,0,0,.62);
  --muted2:rgba(0,0,0,.42);
  --paper:#fff;
  --surface:#fff;
  --surface2:#fff;
  --line:rgba(0,0,0,.22);
  --line2:rgba(0,0,0,.12);
  --blue:#000;
  --sky:#fff;
  --lime:#dfff57;
}
body{background:#fff!important;color:#000}
.topbar{background:rgba(255,255,255,.68);border:1px solid rgba(255,255,255,.86);box-shadow:0 16px 34px rgba(0,0,0,.09),inset 0 1px 0 rgba(255,255,255,.95);-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%)}
.header-menu{justify-self:center}
.header-menu .tabs{border:0;background:transparent;box-shadow:none;padding:0}
.header-menu .tab{background:transparent;color:#000;border:0}
.header-menu .tab:hover{background:rgba(0,0,0,.06)}
.header-menu .tab.active{background:#000;color:#fff}
.topbar-right{position:relative;display:flex;flex-direction:column;align-items:flex-end;justify-self:end;gap:4px}
.profile-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-height:30px}
.profile-actions .tab{height:28px;min-height:28px;padding:6px 10px;border-radius:999px!important;background:#fff;color:#000;border:1px solid rgba(0,0,0,.2);font-size:9px}
.profile-actions .tab:hover{background:#dfff57;color:#000}
.profile-actions .add-btn{width:30px;height:30px;min-height:30px;padding:0;border:1px solid #000;border-radius:50%!important;background:#000;color:#fff;font-size:17px;line-height:1}
.profile-actions .add-btn:hover{background:#dfff57;color:#000;transform:none}
.account{border:0;padding:0}
.account-trigger{width:36px;height:36px;border-color:rgba(0,0,0,.2);background:#fff}
.account-trigger:hover,.account-trigger[aria-expanded="true"]{border-color:#000}
.account-menu{top:calc(100% + 9px);border-color:rgba(0,0,0,.2);box-shadow:0 18px 40px rgba(0,0,0,.12)}
.account-menu button:hover,.account-menu a:hover{background:#dfff57}
.account-menu .menu-view-action{display:block}
.account:hover .account-menu[hidden]{display:block!important}
.account:hover .account-trigger,.account-trigger[aria-expanded="true"]{border-color:#000;box-shadow:0 0 0 3px #dfff57}
.header-menu .tab{position:relative;background:transparent;color:#000}
.header-menu .tab:hover{background:#dfff57;color:#000}
.header-menu .tab.active{background:transparent;color:#000}
.header-menu .tab.active:after{content:"";position:absolute;left:50%;bottom:-3px;width:5px;height:5px;border-radius:50%;background:#dfff57;transform:translateX(-50%)}
.header-menu .tab.active:hover{background:#dfff57;color:#000}
.empty-action-state .state-symbol{background:#dfff57;color:#000}
.inbox-search:focus,.content-type-filter:focus,.inbox-sort:focus{border-color:#000;box-shadow:0 0 0 3px #dfff57}
.detail-header{background:rgba(223,255,87,.16);border-bottom-color:rgba(0,0,0,.16)}
.detail-source:hover,.detail-close:hover{border-color:#000;background:#dfff57}
.detail-section{border-top-color:rgba(0,0,0,.16)}
.graph-stage{background:radial-gradient(circle at 50% 45%,rgba(223,255,87,.18),#fff 68%)}
.graph-stage .node.content{background:#dfff57;border-color:#000;color:#000}
.graph-stage .node.content:hover,.graph-stage .node.content.selected{background:#000;color:#fff}
.eyebrow,.section-kicker,.detail-kicker,.modal-kicker{display:none!important}
@media(prefers-reduced-transparency:reduce){.topbar{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}
.mind-mark{background:#000;box-shadow:none}
.mind-mark circle.accent{fill:#dfff57}
.auth-button,.add-btn,.primary,.workspace-setup-state button{background:#000;color:#fff;border-color:#000}
.auth-button:hover,.primary:hover,.workspace-setup-state button:hover{background:#dfff57;color:#000}
button:focus-visible,input:focus,textarea:focus,select:focus{outline:2px solid #000;outline-offset:2px}
.status-ready:before,.status-queued:before,.status-processing:before,.status-degraded:before,.status-failed:before,.connection-state:before{background:#000!important}
.tag.primary,.workspace-setup-state,.app-message{background:#fff;color:#000}
.app-message{border-color:rgba(0,0,0,.2)}
.modal,.detail-page-overlay{background:rgba(0,0,0,.24)}.node.person,.detail-source-icon{background:#000;color:#fff}
@media(max-width:620px){
  .topbar-right{gap:2px}
  .profile-actions .tab{padding-inline:8px}
}

/* Final selected overview treatment. */

/* Active page state stays visibly selected. */
.header-menu .tab.active{background:#000;color:#fff;box-shadow:none}
.header-menu .tab.active:after{display:none}

.node:focus-visible,.feed-card:focus-visible,.search-source-card:focus-visible{outline:2px solid #111;outline-offset:3px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

.citation-note{margin:10px 0 0;font:12px/1.4 var(--sans);color:var(--muted)}
.active-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.active-filters:empty{display:none}
.filter-chip{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:5px 12px;border:1px solid var(--line,#d7d7d2);border-radius:999px;background:#fff;font:500 12px/1 var(--sans);cursor:pointer}
.filter-chip:hover,.filter-chip:focus-visible{border-color:#111;outline:0}
.filter-chip-clear{border-style:dashed;color:var(--muted)}
