:root{--bg:#f7f8fa;--paper:#fff;--ink:#202936;--muted:#657184;--line:#e2e6ed;--border:var(--line);--accent:#305bd1;--green:#305bd1;--green-light:#edf2ff;--amber:#97611b;--amber-light:#fff6e7;--sidebar:248px;--ui:'Inter',system-ui,-apple-system,sans-serif;--serif:'Source Serif 4','Iowan Old Style',Georgia,serif;--mono:'JetBrains Mono',ui-monospace,monospace;font-family:var(--ui);color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);line-height:1.55}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0}button:disabled{opacity:.5;cursor:default}a{color:var(--accent)}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #9db5fa;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #8aa6ed;outline-offset:1px}h1,h2,h3,p{margin:0 0 14px}h1{font-size:30px;letter-spacing:-.8px;line-height:1.25;font-weight:650}h2{font-size:21px;line-height:1.4;font-weight:620;letter-spacing:-.35px}h3{font-size:15px;font-weight:650}p{overflow-wrap:anywhere}small,.small{font-size:12px}.tiny{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:11px;font-weight:650;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:12px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.primary,.secondary,.quiet{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:10px 16px;font-size:13px;font-weight:600;line-height:1.4}.primary{background:var(--accent);color:#fff;border:1px solid var(--accent)}.primary:hover{background:#2548ac}.secondary{border:1px solid var(--line);background:#fff}.secondary:hover,.quiet:hover{background:#eef1f6}.quiet{color:var(--muted)}.text-link{color:var(--accent);font-size:13px;font-weight:550;padding:5px 0;text-align:left}.icon-button{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:7px;font-size:20px}.icon-button:hover{background:#edf0f6}.danger{color:#ad3540}.danger.primary{background:#ad3540;border-color:#ad3540;color:#fff}.pill{display:inline-flex;align-items:center;border-radius:5px;background:#edf0f5;color:#596779;padding:4px 8px;font-size:11px;font-weight:600;white-space:nowrap}.pill.green{background:#eaf4ef;color:#347653}.pill.amber{background:var(--amber-light);color:var(--amber)}.attention{color:#985d20}.divider{height:1px;background:var(--line);margin:24px 0}[hidden]{display:none!important}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--sidebar);background:#f0f2f6;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:22px 14px 12px;z-index:30;transition:width .15s}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:650;letter-spacing:-.6px;color:var(--ink);text-decoration:none;margin-bottom:28px;padding:0 9px;white-space:nowrap}.brand-mark{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;background:#263855;color:white;border-radius:9px;font:italic 26px Georgia,serif}.nav-item{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:11px 10px;border-radius:8px;margin:3px 0;font-size:13px;font-weight:500;white-space:nowrap}.nav-item:hover,.nav-item.active{background:#e3e8f0}.nav-icon{font-size:20px;width:21px;text-align:center;flex-shrink:0;color:#596779}.recent-heading{font-size:11px;font-weight:600;color:var(--muted);padding:30px 10px 10px}.recent-list{overflow:auto;flex:1;min-height:0}.recent-link{display:block;width:100%;text-align:left;padding:10px;border-radius:7px}.recent-link:hover,.recent-link.active{background:#e3e8f0}.recent-link span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.recent-link small{display:block;font-size:10px;margin-top:4px;color:var(--muted)}.nav-empty{padding:10px;font-size:12px;color:var(--muted)}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:12px}.account{display:flex;align-items:center;gap:10px;font-size:12px;padding:8px 5px}.account small{display:block;font-size:10px;color:var(--muted)}.avatar{display:grid;place-items:center;width:30px;height:30px;background:#dce3ef;border-radius:50%;font-weight:600}.workspace{margin-left:var(--sidebar);min-height:100dvh;transition:margin .15s}.nav-collapsed{--sidebar:68px}.nav-collapsed .nav-label{display:none}.nav-collapsed .sidebar{padding:22px 10px 12px}.nav-collapsed .brand{padding:0 8px}.nav-collapsed .nav-item{padding:11px 13px}.nav-collapsed .sidebar-bottom{margin-top:auto}
.login-page{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at top,#e9eef8,transparent 70%),var(--bg);padding:24px}.login{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:16px;padding:36px;box-shadow:0 16px 70px #27334d09}.login .brand{padding:0;margin-bottom:38px}.login h1{font-size:26px}.login form{margin-top:28px}.login .primary{width:100%}.content-page{max-width:1240px;margin:auto;padding:40px 42px 60px}.page-intro{margin-bottom:30px}.page-intro h1{margin-top:10px}.page-intro p{max-width:760px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px;margin-bottom:22px;min-width:0}.system-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.system-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;text-align:left;display:flex;flex-direction:column;align-items:flex-start}.system-card:hover{border-color:#9eb2e6;box-shadow:0 4px 16px #243f7008}.system-card h2{margin-top:18px}.system-card p{color:var(--muted);font-size:13px;flex:1}.conversation-list{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:20px}.conversation-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;text-align:left;width:100%;border-bottom:1px solid var(--line)}.conversation-row:last-child{border:0}.conversation-row:hover{background:#f8f9fc}.conversation-row>div{min-width:0}.conversation-row strong{font-size:14px;font-weight:550;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.conversation-row span{display:block;font-size:12px;color:var(--muted);margin-top:5px}.conversation-row time{font-size:11px;color:var(--muted);white-space:nowrap}.conversation-link{display:block;text-align:left;padding:14px 0;border-bottom:1px solid var(--line);width:100%}.build-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.build-row code{font-size:11px;overflow-wrap:anywhere}.build-row time{font-size:11px;margin-left:auto;color:var(--muted)}details{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}summary{cursor:pointer;font-size:13px;color:#45546b}details p{margin:12px 0;font-size:13px}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.count{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;color:var(--muted)}.lens-section h2{margin-bottom:6px}.lens-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:14px;margin-top:24px}.lens-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:9px;padding:20px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;transition:border-color .15s,transform .15s}.lens-card:hover{border-color:#718fb6;transform:translateY(-2px)}.lens-emblem{display:grid;place-items:center;clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);background:#e8eff6;color:#436383;width:44px;height:40px;font-size:12px;font-weight:650;margin-bottom:18px}.lens-card h3{font-size:14px;line-height:1.5;flex:1}.lens-card p{font-size:12px;color:var(--muted);margin-bottom:18px}.lens-open{color:#456c97;font-size:12px}.lens-axis{display:grid;grid-template-columns:32px 1fr;gap:16px;padding:24px 0;border-top:1px solid var(--line)}.axis-number{font-size:12px;color:#456c97;background:#eaf0f8;border-radius:6px;height:28px;display:grid;place-items:center}.lens-axis h3{font-size:17px}.lens-axis h3:not(:first-child){font-size:13px;color:#456c97;margin-top:20px}.section-label{margin-top:32px}.lens-description{color:#526075}
.home-chat{min-height:100dvh;max-width:900px;margin:auto;padding:clamp(70px,18vh,180px) 40px 50px}.home-intro{text-align:center;margin-bottom:34px}.home-intro h1{font-size:32px;letter-spacing:-.8px}.home-intro p{font-size:15px;color:var(--muted)}.home-chat .composer-wrap{padding:0}.home-hints{display:flex;gap:20px;justify-content:center;margin-top:25px;font-size:11px;color:var(--muted)}.composer-wrap{padding:12px 30px 10px;background:#fff;flex-shrink:0}.composer{border:1px solid #d6deea;border-radius:14px;padding:15px 17px;background:#fff;max-width:850px;margin:auto;box-shadow:0 3px 14px #20345b07}.composer:focus-within{border-color:#8da7dd;box-shadow:0 0 0 2px #edf2fc}.composer textarea{border:0;background:transparent;resize:vertical;width:100%;font-size:14px;line-height:1.65;min-height:58px;max-height:200px;padding:0;outline:none}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px}.composer-bottom .row{min-width:0;gap:10px}.composer-bottom .quiet{font-size:12px;padding:6px 8px;white-space:nowrap}.composer select{max-width:300px;min-width:0;border:0;background:#f0f3f8;border-radius:6px;padding:7px 9px;font-size:12px}.composer-system{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.send-button{width:34px;height:34px;background:var(--accent);color:#fff;border-radius:9px;font-size:22px;flex-shrink:0}.composer-caption{font-size:10px;color:var(--muted);text-align:center;margin:8px 0 0}.attachment{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:5px 8px;font-size:11px;margin:0 5px 10px 0}.attachment button{font-size:17px}.empty-notice{padding:45px 24px;text-align:center;color:var(--muted);font-size:14px}.chat-layout{height:100dvh}.chat-main{display:flex;flex-direction:column;height:100%;min-height:0;background:#fff}.tabs{display:flex;align-items:center;gap:22px;padding:0 26px;border-bottom:1px solid var(--line);height:50px;flex-shrink:0;overflow-x:auto}.tab{height:50px;padding:0;border-bottom:2px solid transparent;color:var(--muted);font-size:13px;white-space:nowrap}.tab.active{color:var(--accent);border-color:var(--accent);font-weight:600}#run-status{margin-left:auto}#turn-select{border:1px solid var(--line);border-radius:5px;max-width:170px;font-size:11px;padding:4px;min-width:0}.tab-content{flex:1;min-height:0;overflow:auto}.conversation-thread{max-width:850px;margin:auto;padding:32px 35px}.message{margin-bottom:32px}.message-label{font-size:11px;font-weight:650;color:var(--muted);margin-bottom:10px}.message.user{margin-left:60px;padding:18px 22px;background:#f0f3f8;border-radius:12px}.message .body{font-size:14px;line-height:1.8}.message .body p:last-child{margin-bottom:0}.message h2{font-size:21px;margin-top:24px}.message h3{font-size:16px;margin-top:22px}.message .text-link{font-size:11px;margin-top:10px}.live-work{display:flex;gap:14px;padding:16px 0;font-size:13px;color:var(--muted)}.live-work strong{color:var(--ink)}.live-work p{margin-top:8px}.status-dot{width:8px;height:8px;background:var(--accent);border-radius:50%;flex-shrink:0;margin-top:7px;animation:pulse 1.6s infinite}.activity-chip{font-size:11px;border:1px solid var(--line);border-radius:6px;padding:7px 9px;background:#f5f7fb;margin:3px;text-align:left}.visual-mode .composer-wrap{display:none}.visual-mode .tab-content{overflow:hidden}
.detail-panel{height:38vh;min-height:230px;max-height:48vh;flex-shrink:0;border-top:1px solid #ccd6e6;background:#fff;display:flex;flex-direction:column;box-shadow:0 -3px 16px #27334d05}.detail-header{display:flex;align-items:center;gap:12px;padding:8px 24px;min-height:48px;border-bottom:1px solid var(--line)}.detail-header strong{font-size:14px}.detail-header .icon-button{margin-left:auto}.detail-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,27%);flex:1;min-height:0}.detail-output,.detail-evidence{overflow:auto;min-height:0;padding:20px 26px;font-size:13px;line-height:1.75}.detail-output h2{font-size:19px;margin-top:18px}.detail-output h3{font-size:15px;margin-top:18px}.detail-evidence{border-left:1px solid var(--line);background:#f8f9fc;padding:20px 18px}.detail-evidence>h3{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted)}.evidence-card{display:block;width:100%;text-align:left;border:1px solid #dce3ed;background:white;padding:12px;border-radius:8px;margin-bottom:12px;font-size:12px;overflow-wrap:anywhere}.evidence-card strong{display:block;font-size:12px}.evidence-card p{font-size:11px;color:var(--muted);margin:8px 0 0}.evidence-card span{display:block;font-size:10px;color:var(--accent);margin-bottom:6px}.step-summary{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;color:var(--muted)}.step-summary h3{margin-top:0;color:var(--ink)}.step-report+.step-report{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.step-running{display:flex;gap:12px;align-items:flex-start}.chain-layout{height:100%;display:flex;flex-direction:column}.segmented{display:flex;border:1px solid var(--line);padding:3px;border-radius:7px;background:#f3f5f9;flex-shrink:0}.segmented button{font-size:12px;padding:5px 13px;border-radius:5px}.segmented button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #1d30431c;color:var(--accent)}#chain-content{flex:1;min-height:0;overflow:auto}.reasoning-view{max-width:850px;margin:auto;padding:25px 32px}.chain-card{display:grid;grid-template-columns:30px 1fr;gap:18px;border-bottom:1px solid var(--line);padding:20px 0}.chain-number{display:grid;place-items:center;width:28px;height:28px;background:#edf2fc;border-radius:7px;color:var(--accent);font-size:12px}.chain-card h3{font-size:16px}.chain-card p{font-size:13px;color:#526075}.chain-card .eyebrow{font-size:10px;margin-bottom:7px}
.agent-graph-view{height:100%;min-height:150px;display:flex;flex-direction:column;background:#f8faff;position:relative;user-select:none;-webkit-user-select:none}.agent-graph-viewport{position:relative;flex:1;min-height:120px;overflow:hidden;touch-action:none;cursor:grab;background-image:radial-gradient(#d7dfed .85px,transparent .85px);background-size:20px 20px;outline-offset:-4px}.agent-graph-viewport.dragging{cursor:grabbing}.agent-graph-toolbar{position:absolute;top:14px;right:18px;z-index:3;background:#ffffffed;border:1px solid var(--line);border-radius:9px;padding:4px;box-shadow:0 2px 10px #27334d07;cursor:default}.agent-graph-toolbar>span{display:none}.agent-graph-controls{display:flex;align-items:center;gap:2px}.agent-graph-controls button{min-width:32px;height:30px;border-radius:5px;font-size:14px}.agent-graph-controls button:hover{background:#edf2fc}.agent-graph-controls output{font-size:11px;min-width:42px;text-align:center;color:var(--muted);font-variant-numeric:tabular-nums}.agent-graph-world{position:absolute;top:0;left:0;transform-origin:0 0;will-change:transform}.agent-graph-edges{position:absolute;inset:0;overflow:visible;pointer-events:none}.agent-graph-edges path{fill:none;stroke:#adbace;stroke-width:1.4;opacity:.65}.agent-graph-edges path.data{stroke-dasharray:4 4}.agent-graph-edges path.highlight{stroke:#547bb7;stroke-width:2;opacity:1}.agent-graph-node{position:absolute;width:182px;height:60px;display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:8px;border:1px solid #d9e1ed;text-align:left;background:#fff;isolation:isolate;cursor:pointer;box-shadow:0 2px 5px #26395806}.agent-graph-node:hover{border-color:#a0b2d0;background:#fafcff}.agent-graph-node.selected{background:#eff4ff;border-color:#6a8dca;box-shadow:0 0 0 2px #dfe9fa}.agent-graph-node.dimmed{opacity:.4}.agent-graph-icon{position:relative;width:30px;height:30px;flex-shrink:0;display:grid;place-items:center;border:1px solid #b3c4df;border-radius:7px;background:#edf2fb;color:#476796;font-size:20px;line-height:1}.agent-graph-label{font-size:13px;font-weight:550;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.agent-graph-node[data-role=lens] .agent-graph-icon{background:#eaf3f1;border-color:#8bb4ad;color:#3d7a6e;border-radius:3px}.agent-graph-status{position:absolute;bottom:-4px;right:-4px;width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:#d4dce8;font-style:normal;display:grid;place-items:center;font-size:9px;font-weight:700}.agent-graph-node[data-status=done] .agent-graph-status{background:#4a8a70;color:white}.agent-graph-node[data-status=running]{border-color:#739ce0}.agent-graph-node[data-status=running] .agent-graph-status{background:#4d79cb;animation:pulse 1.6s infinite}.agent-graph-node[data-status=error] .agent-graph-status{background:#bc5261;color:white}.agent-graph-footer{position:absolute;bottom:10px;left:14px;right:14px;display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);pointer-events:none}.agent-graph-footer>span,.agent-graph-footer>div{background:#f8faffdc;padding:4px 6px;border-radius:4px}.agent-graph-footer>div{display:flex;gap:12px}.graph-key{display:inline-flex;align-items:center;gap:5px}.graph-key:before{content:'';width:6px;height:6px;border-radius:50%;background:#4a8a70}.graph-key.lens:before{background:#6b9f95}.graph-key.running:before{background:#4d79cb}.agent-graph-empty{position:absolute;inset:0;display:grid;place-items:center;padding:30px;text-align:center;color:var(--muted);font-size:13px;pointer-events:none}
.creation-layout,.progress-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px;align-items:start}.form-field{margin-bottom:24px}.form-field>label{display:block;font-size:13px;font-weight:550;margin-bottom:8px}.form-field input,.form-field textarea{width:100%;display:block;border:1px solid #d7deea;border-radius:7px;padding:11px 12px;background:#fff;font-size:14px;line-height:1.6;resize:vertical}.form-field label .muted{font-weight:400}.field-hint{font-size:12px;color:var(--muted);margin:8px 0}.sample-row{position:relative;margin-bottom:12px}.sample-row textarea{padding-right:35px}.remove-sample{position:absolute;right:6px;top:6px;width:25px;height:25px;font-size:20px;color:var(--muted)}.form-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid var(--line);padding-top:22px}.creation-aside{padding-top:12px}.mini-step{display:flex;gap:12px;align-items:start;margin:22px 0;font-size:13px}.mini-step>span{display:grid;place-items:center;background:#e8eef8;border-radius:6px;width:26px;height:26px;flex-shrink:0;color:#5879ae;font-size:12px}.mini-step strong{font-size:13px;font-weight:550}.included{background:#eaf0f8;border-radius:9px;padding:20px;font-size:12px;color:#526887;line-height:2}.included strong{display:block;margin-bottom:6px}.clarification-card{background:#fffbf3;border:1px solid #ecd7b0;border-radius:10px;padding:22px;margin:20px 0}.clarification-card h3{font-size:15px;line-height:1.6;color:#7a551e}.clarification-card p{font-size:13px;color:#756343}.clarification-card .form-field{margin-top:22px}.clarification-card .secondary{font-size:12px}.build-log{max-height:500px;overflow:auto}.log-row{display:flex;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;align-items:start;font-size:12px}.log-row time{font-size:10px;color:var(--muted);min-width:66px;margin-top:2px}.log-row>span:nth-child(2){flex:1}.build-summary dt{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin-bottom:6px}.build-summary dd{margin:0 0 20px;font-size:13px}#creation-status h2{margin-top:18px}
dialog{width:min(820px,94vw);max-height:88dvh;border:1px solid var(--line);border-radius:13px;padding:0;background:#fff;color:var(--ink);box-shadow:0 20px 90px #192b4633}dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#15233888;backdrop-filter:blur(2px)}.modal-sticky{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 18px;border-bottom:1px solid var(--line);background:#fff;flex-shrink:0}.modal-sticky>span{font-size:12px;color:var(--muted)}.modal-body{padding:28px 32px;overflow:auto;line-height:1.8;font-size:14px}.modal-body p,.modal-body li{font-size:13px;line-height:1.85}.modal-body h2{font-size:24px}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f5f9;border:1px solid var(--line);padding:14px;border-radius:7px;font-size:11px;line-height:1.7}code{font-size:.88em}table{border-collapse:collapse;width:100%;font-size:12px}td,th{border:1px solid var(--line);padding:9px;text-align:left}th{background:#f5f7fb}.table-wrap{overflow:auto;margin-bottom:18px}li{margin:6px 0}#toasts{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#263855;color:white;border-radius:9px;padding:14px 20px;max-width:90vw;z-index:100;display:none;font-size:13px;box-shadow:0 4px 20px #23314c22}#toasts.show{display:block}@keyframes pulse{50%{opacity:.4}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media(max-width:1100px){:root{--sidebar:220px}.content-page{padding:30px}.creation-layout,.progress-layout{grid-template-columns:1fr 230px;gap:20px}.tabs{gap:15px;padding:0 18px}.tab{font-size:12px}#turn-select{max-width:115px}.detail-columns{grid-template-columns:minmax(0,1fr) 235px}.detail-output{padding:18px}}@media(max-width:760px){:root{--sidebar:0px}.sidebar{width:248px;box-shadow:8px 0 50px #1c2c4933}.nav-collapsed{--sidebar:0px}.nav-collapsed .sidebar{display:none}.workspace{margin-left:0}.home-chat{padding:90px 20px 40px}.home-intro h1{font-size:27px}.home-intro p{font-size:13px}.home-hints{gap:12px;font-size:10px;flex-wrap:wrap}.content-page{padding:26px 18px}.page-intro.row{align-items:flex-start;gap:14px;flex-wrap:wrap}.page-intro h1{font-size:27px}.panel{padding:20px}.creation-layout,.progress-layout{grid-template-columns:1fr}.creation-aside,.build-summary{display:none}.tabs{padding:0 12px;gap:16px}.tab{font-size:11px}#run-status{display:none}#turn-select{max-width:75px;margin-left:auto}.conversation-thread{padding:24px 18px}.message.user{margin-left:20px;padding:16px}.composer-wrap{padding:10px 15px}.composer select{max-width:190px}.composer-system{max-width:180px}.detail-panel{height:42vh;max-height:50vh;min-height:220px}.detail-header{padding:6px 14px;min-height:42px}.detail-header strong{font-size:12px}.detail-columns{grid-template-columns:minmax(0,1fr) minmax(135px,34%)}.detail-output,.detail-evidence{padding:14px 12px;font-size:12px}.evidence-card{padding:9px}.evidence-card strong{font-size:11px}.evidence-card p{font-size:10px}.detail-evidence>h3{font-size:9px}.segmented button{padding:5px 8px;font-size:11px}.reasoning-view{padding:15px 18px}.agent-graph-toolbar{top:10px;right:10px}.agent-graph-footer{font-size:9px}.agent-graph-footer>span{display:none}.modal-body{padding:22px 20px}.lens-axis{gap:12px}.form-bottom{flex-direction:column;align-items:stretch}.build-row{flex-wrap:wrap}.build-row code{font-size:10px}.conversation-row{padding:16px;gap:12px}.conversation-row time{font-size:10px}.login{padding:28px}}
.home-chat .composer-wrap{background:transparent}.detail-header .pill{margin-left:9px}
/* Graph text is laid out at its displayed size, never enlarged as a bitmap. */
.agent-graph-world{will-change:auto;--graph-zoom:1}
.agent-graph-node{width:calc(182px * var(--graph-zoom));height:calc(60px * var(--graph-zoom));gap:calc(10px * var(--graph-zoom));padding:calc(7px * var(--graph-zoom)) calc(10px * var(--graph-zoom));border-radius:calc(8px * var(--graph-zoom));border-width:calc(1px * var(--graph-zoom))}
.agent-graph-label{font-size:calc(13px * var(--graph-zoom))}
.agent-graph-icon{width:calc(30px * var(--graph-zoom));height:calc(30px * var(--graph-zoom));font-size:calc(20px * var(--graph-zoom));border-radius:calc(7px * var(--graph-zoom));border-width:calc(1px * var(--graph-zoom))}
.agent-graph-status{width:calc(13px * var(--graph-zoom));height:calc(13px * var(--graph-zoom));font-size:calc(9px * var(--graph-zoom));border-width:calc(2px * var(--graph-zoom));bottom:calc(-4px * var(--graph-zoom));right:calc(-4px * var(--graph-zoom))}
.detail-panel{height:var(--detail-height,52%);min-height:0;max-height:75%;border-top:0}
.detail-resizer{height:12px;flex-shrink:0;display:grid;place-items:center;cursor:ns-resize;touch-action:none;background:#f0f3f9;border-top:1px solid #d3dcea;border-bottom:1px solid #e2e6ed;user-select:none}
.detail-resizer span{width:42px;height:3px;border-radius:3px;background:#a4b3cb}
.detail-resizer:hover,.detail-resizer:focus-visible{background:#e2ebfc;outline:2px solid #87a4de;outline-offset:-2px}
.resizing-details,.resizing-details *{cursor:ns-resize!important;user-select:none!important}
.related-stages{border-top:1px solid var(--line);margin-top:20px;padding-top:5px}.related-stages>p,.dependency-hint{font-size:12px;color:var(--muted)}
.dependency-card:hover{border-color:#8ba7d2;background:#f2f6ff}.dependency-card .dependency-link{margin:10px 0 0;font-size:11px}
.ui-icon{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.attachment-button{height:34px;width:34px;padding:7px!important}.sidebar-header{display:flex;align-items:center;gap:6px;margin-bottom:28px}.sidebar-header .brand{padding:0 2px;margin:0;flex:1;font-size:20px}.sidebar-toggle{color:var(--muted)}
.nav-collapsed .sidebar-header{justify-content:center}.nav-collapsed .sidebar-header .brand{display:none}.nav-collapsed .sidebar-toggle svg{transform:rotate(180deg)}
@media(max-width:760px){.nav-collapsed .sidebar{display:flex;width:56px;padding:15px 5px;box-shadow:none}.nav-collapsed .workspace{margin-left:56px}.nav-collapsed .nav-item{padding:11px 12px}.sidebar-header .brand{padding-left:8px}.sidebar-header{margin-bottom:20px}.detail-panel{height:var(--detail-height,52%);min-height:0;max-height:75%}.detail-resizer{height:16px}.tabs{gap:12px}.tab{font-size:10px}#turn-select{max-width:58px}.home-chat{padding-left:15px;padding-right:15px}}

.conversation-item{display:flex;align-items:center;border-bottom:1px solid var(--line);padding-right:16px;gap:8px}.conversation-item:last-child{border-bottom:0}.conversation-item .conversation-row{flex:1;min-width:0;border:0}.conversation-delete{flex-shrink:0}.conversation-delete:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:600px){.page-intro.row>div{min-width:0;max-width:100%;overflow-wrap:anywhere}.conversation-item{padding-right:8px;gap:0}.conversation-item .conversation-row{padding:16px 12px;gap:10px}.conversation-item time{display:none}}

/* Immediate feedback while independently loaded sections arrive. */
.loading-state{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center;color:var(--muted,#64748b);font-size:14px}
.loading-state .loading-dot{flex-shrink:0;margin:0 0 12px}
.loading-state .skeleton-lines{width:min(320px,100%)}
.loading-state .skeleton-lines i{margin-inline:auto;width:100%}
.loading-state .skeleton-lines i:nth-child(2){width:85%}
.loading-state .skeleton-lines i:nth-child(3){width:60%}
.loading-page{min-height:100dvh;display:flex;flex-direction:column}
.loading-page>.loading-state{flex:1}
.conversation-list>.loading-state{min-height:clamp(240px,45dvh,480px)}
.tab-content>.loading-state{height:100%;min-height:0}
#inspector>.loading-state{flex:1;min-height:0}
.loading-dot{display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:currentColor;animation:loading-pulse 1.2s ease-in-out infinite}
.skeleton-lines{display:grid;gap:12px;margin-top:22px;max-width:640px}
.skeleton-lines i{height:12px;border-radius:6px;background:#e9edf2;animation:loading-pulse 1.2s ease-in-out infinite}
.skeleton-lines i:nth-child(2){width:85%}.skeleton-lines i:nth-child(3){width:60%}
@keyframes loading-pulse{50%{opacity:.4}}
@media(prefers-reduced-motion:reduce){.loading-dot,.skeleton-lines i{animation:none}}

.system-settings-page{max-width:1250px}.system-settings-page select{width:100%;min-width:0;padding:10px 12px;border:1px solid var(--line,#dbe1e9);border-radius:8px;background:#fff;color:var(--ink,#162132);font:inherit;font-size:13px}.routing-field{max-width:320px}.stage-settings-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2fr) minmax(150px,1fr);gap:20px;align-items:center;padding:20px 0;border-top:1px solid #e9edf2}.stage-settings-row:has([data-direct-model][hidden]){grid-template-columns:minmax(150px,1fr) minmax(150px,1fr)}.stage-settings-row h3{font-size:14px;margin:0}.stage-settings-row .form-field{margin:0}.stage-settings-row label{font-size:11px}.rotation-row{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:12px;align-items:center;margin:14px 0}.rotation-row>label{font-size:13px}.settings-save{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;background:#fff;border:1px solid #dbe1e9;border-radius:12px;box-shadow:0 -5px 20px #192c4810}.settings-save p{margin:0;font-size:13px;color:var(--muted,#64748b)}.lens-dimension-count{display:block;color:var(--muted,#64748b);font-size:12px;margin:10px 0}.system-settings-page [hidden]{display:none!important}
@media(max-width:760px){.stage-settings-row,.stage-settings-row:has([data-direct-model][hidden]){grid-template-columns:minmax(0,1fr);gap:12px}.rotation-row{grid-template-columns:1fr}.rotation-row .row{justify-content:flex-end}.settings-save{padding:12px;gap:10px}.settings-save p{font-size:11px}.system-settings-page select{font-size:12px}}

/* Reading typography and a compact workspace without a global header. */
html,body{font-family:var(--ui)}
.serif,.markdown{font-family:var(--serif)}
.markdown{font-size:17px;line-height:1.8}
.markdown p{font-size:inherit}
.markdown h1,.markdown h2,.markdown h3,.serif h1,.serif h2,.serif h3{font-family:'Source Serif 4',Georgia,serif;font-weight:600}
.mono,code,pre,kbd,samp{font-family:var(--mono)}
.markdown code,.markdown pre{font-size:13px}
.brand-mark{font-family:'Source Serif 4',Georgia,serif;font-weight:400;font-style:italic}
.chat-main{position:relative}
.tabs{height:auto;min-height:50px;flex-wrap:wrap;column-gap:20px;row-gap:0;overflow:visible}
#chain-view-controls{margin-left:auto}
#chain-view-controls:not([hidden])~#run-status{margin-left:0}
.chain-overlay>.detail-panel{position:absolute;bottom:0;left:0;right:0;z-index:5;box-shadow:0 -8px 32px #27334d18}
.chain-overlay>.detail-resizer{position:absolute;bottom:var(--detail-height,52%);left:0;right:0;z-index:6}
.system-title{display:flex;align-items:center;flex-wrap:wrap;gap:16px;min-width:0}
.system-title h1{margin:0;overflow-wrap:anywhere}
.page-intro>.row{flex-wrap:wrap;gap:20px}
.specifications>h2{margin-bottom:28px}
.specification+.specification,.sample-specifications,.sample-specifications+.specification{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
.specification h3,.sample-specifications>h3{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:14px}
.sample-specifications>.specification>h3{font-size:13px;text-transform:none;letter-spacing:0;color:var(--ink)}
.specification-text{font-family:var(--serif);font-size:18px;line-height:1.8;max-height:18rem;overflow:hidden}
.specification-text.expanded{max-height:none}
.specification-toggle{display:block;margin-top:12px;font-weight:600}
@media(max-width:760px){
 .tabs{gap:0 12px;padding:0 12px 6px}.tab{height:44px;font-size:11px}
 #chain-view-controls{margin-left:0}#chain-view-controls:not([hidden])~#turn-select{margin-left:auto;max-width:100px}
 .system-title h1{font-size:28px}.system-title{gap:12px}.specification-text{font-size:17px;max-height:20rem}
 .markdown{font-size:16px}
}

/* Chat content must reflow, including long citations and wide Markdown tables. */
.conversation-thread,.conversation-thread .message,.conversation-thread .body,.conversation-thread .markdown{min-width:0;overflow-wrap:anywhere}
.conversation-thread .table-wrap{max-width:100%;overflow:visible}
.conversation-thread table{table-layout:fixed;width:100%}
.conversation-thread th,.conversation-thread td{overflow-wrap:anywhere;word-break:normal}
@media(max-width:760px){.conversation-thread th,.conversation-thread td{padding:8px 6px}}

/* Primary content uses the reading face; navigation and controls retain Inter. */
h1,h2,.lens-card h3,.lens-axis h3,.chain-card h3{font-family:'Source Serif 4',Georgia,serif;font-weight:600}
h1{font-weight:500;letter-spacing:-.5px}
.message .body,.lens-description,.system-card p,.conversation-row strong,.conversation-link,
.composer textarea,.form-field textarea,#create #name,.evidence-card strong,.evidence-card p,
.detail-header strong,.agent-graph-label{font-family:var(--serif)}
.message .body,.modal-body .lens-description{font-size:17px;line-height:1.8}
.lens-card h3{font-size:17px;line-height:1.4;font-weight:500}
.system-card p,.conversation-link{font-size:16px;line-height:1.65}
.conversation-row strong{font-size:18px;line-height:1.5;font-weight:500}
.composer textarea,.form-field textarea,#create #name{font-size:17px;line-height:1.65}
.evidence-card strong{font-size:15px;font-weight:600}
.evidence-card p{font-size:14px;line-height:1.6}
.detail-header strong{font-size:17px;font-weight:600}
@media(max-width:760px){.message .body,.modal-body .lens-description{font-size:16px}.detail-header strong{font-size:15px}}

.modal-body .markdown p,.modal-body .markdown li{font-size:inherit}

/* One continuous creation history, with live clarification in the timeline. */
.system-history-link,.build-status{display:flex;justify-content:space-between;align-items:center;gap:28px}
.system-history-link h2{margin-bottom:8px}.system-history-link p{margin:0}.system-history-link>button{flex-shrink:0}
.build-history-page{max-width:1100px}.build-status h2{margin:16px 0 8px}.build-status p{margin:0;max-width:600px}
.build-status-actions{flex-shrink:0;max-width:230px;justify-content:flex-end}
.build-history-section{margin-top:36px}.build-history-section>h2{margin-bottom:6px}
.build-timeline{list-style:none;margin:28px 0 0;padding:0 0 0 28px;border-left:1px solid #ccd6e6}
.timeline-entry{position:relative;padding-bottom:28px;min-width:0}
.timeline-entry:before{content:'';position:absolute;left:-33px;top:6px;width:9px;height:9px;background:#7894bc;border:2px solid var(--bg);border-radius:50%}
.timeline-meta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:11px;color:var(--muted);margin-bottom:10px}
.history-provenance{font-size:10px;background:#edf0f5;padding:3px 7px;border-radius:5px}
.history-card{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:24px;overflow-wrap:anywhere}
.history-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.history-card h3{font-family:var(--serif);font-size:21px;font-weight:600;line-height:1.4;margin:0}
.history-card>p{font-family:var(--serif);font-size:17px;line-height:1.75;margin:0}
.clarification-history.clarification-card{margin:0;background:#fffcf5;border-color:#e4cfaa}
.history-question{border-top:1px solid var(--line);margin-top:22px;padding-top:22px}
.history-question h4{font-family:var(--serif);font-weight:500;font-size:19px;line-height:1.55;margin:0 0 10px}
.history-question .question-reason{font-size:13px;line-height:1.65;color:var(--muted);margin-bottom:18px}
.history-answer{background:#f6f8fb;border:1px solid var(--line);border-radius:8px;padding:18px 20px}
.history-answer .eyebrow{font-size:10px;margin-bottom:10px}.history-answer p{font-family:var(--serif);font-size:17px;line-height:1.75;margin:0}
.clarification-options{margin-bottom:16px}.history-question .form-field{margin:0}.history-question textarea{min-height:125px}
.history-form-footer{margin-top:24px;border-top:1px solid var(--line);padding-top:22px}
.history-form-footer .muted{font-size:12px}.history-answered-at{font-size:11px;color:var(--muted);margin-top:18px}
@media(max-width:760px){
 .system-history-link,.build-status{align-items:flex-start;flex-direction:column;gap:18px}
 .build-status-actions{max-width:none;justify-content:flex-start}.build-timeline{padding-left:18px}.timeline-entry:before{left:-23px}
 .history-card{padding:18px 16px}.history-card-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}
 .history-card h3{font-size:20px}.history-question h4{font-size:18px}.history-answer{padding:16px}
 .history-question textarea{min-height:160px}
}

/* Shared conversation search and system navigation. */
.system-tabs{display:flex;flex-wrap:wrap;gap:28px;border-bottom:1px solid var(--line);margin:0 0 28px}
.system-tabs [role=tab]{padding:12px 2px 14px;color:var(--muted);border-bottom:2px solid transparent;font-weight:500}
.system-tabs [aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent)}
[role=tabpanel][hidden],.system-options[hidden]{display:none!important}
.conversation-browser{margin-bottom:28px}.conversation-search{display:flex;align-items:center;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:8px 14px;max-width:640px;transition:border-color .15s,box-shadow .15s}
.conversation-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
.conversation-search>.ui-icon{color:var(--muted);flex-shrink:0;width:18px;height:18px}.conversation-search input{min-width:0;flex:1;padding:7px 0;border:0;outline:0;background:transparent;color:var(--ink);font-size:14px}.conversation-search input::placeholder{color:var(--muted)}
.conversation-search input::-webkit-search-cancel-button{display:none}.search-status{min-height:38px;padding:10px 2px;font-size:12px;color:var(--muted)}
.conversation-list[aria-busy=true]{opacity:.65;transition:opacity .15s}.search-empty{padding:42px 24px;text-align:center;color:var(--muted)}.search-empty>.ui-icon{margin:0 auto 18px;width:28px;height:28px}.search-empty h2{color:var(--ink);font-size:23px}.search-empty p{font-size:14px}.search-empty .secondary,.search-empty .primary{margin-top:10px}#more-conversations{margin-top:18px}
.system-picker{position:relative;min-width:0}.system-picker-toggle{display:flex;align-items:center;gap:10px;max-width:min(330px,55vw);padding:8px 10px;border-radius:8px;color:var(--ink);font-size:13px;background:var(--bg)}.system-picker-toggle>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.system-picker-toggle>.ui-icon{width:16px;height:16px;flex-shrink:0;color:var(--muted)}.system-picker-toggle:hover,.system-picker-toggle[aria-expanded=true]{background:var(--green-light);color:var(--accent)}
.system-options{position:absolute;left:0;bottom:calc(100% + 10px);z-index:30;width:min(370px,calc(100vw - 130px));max-height:min(350px,45dvh);overflow-y:auto;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 12px 40px #20293622}
.system-options [role=option]{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;padding:13px 12px;border-radius:8px}.system-options strong{display:block;font-family:var(--serif);font-size:18px;font-weight:500}.system-options small{display:block;font-size:12px;line-height:1.6;color:var(--muted);margin-top:4px}.system-options [role=option]:hover,.system-options [role=option]:focus-visible{background:var(--bg);outline:0}.system-options [aria-selected=true]{background:var(--green-light)}.picker-check{color:var(--accent);font-size:17px;flex-shrink:0}
.step-summary{color:var(--ink);overflow:visible;max-height:none}.step-summary .markdown{max-height:none;overflow:visible}.detail-output{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.system-tabs{gap:24px;margin-bottom:22px}.system-tabs [role=tab]{font-size:13px}.conversation-search{max-width:none}.system-picker-toggle{max-width:calc(100vw - 190px);font-size:12px}.system-options{left:-30px;width:calc(100vw - 110px)}.system-options strong{font-size:17px}}

/* Reasoning graph: stages, traversal, folded helpers and reused work. */
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
kbd{display:inline-block;min-width:16px;font:500 10px/1.5 var(--mono);text-align:center;border:1px solid #cdd5e1;border-bottom-width:2px;border-radius:4px;padding:0 4px;background:#fff;color:var(--ink)}
.agent-graph-stages{position:absolute;inset:0;pointer-events:none}
.agent-graph-stage{position:absolute;width:calc(210px * var(--graph-zoom));display:flex;align-items:center;gap:calc(7px * var(--graph-zoom));padding-bottom:calc(6px * var(--graph-zoom));border-bottom:1px solid #dbe2ec;font:600 max(10px,calc(12px * var(--graph-zoom)))/1.3 var(--ui);color:#3f4c60;white-space:nowrap}
.agent-graph-stage span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.agent-graph-stage b{font-weight:600;letter-spacing:0;color:#596779;background:#e8edf5;border-radius:999px;padding:0 calc(6px * var(--graph-zoom));font-size:max(8.5px,calc(10px * var(--graph-zoom)));flex-shrink:0}
.agent-graph-node.on-path{border-color:var(--accent);background:#fff;box-shadow:0 0 0 calc(1px * var(--graph-zoom)) var(--accent)}
.agent-graph-node.selected{border-color:var(--accent);box-shadow:0 0 0 calc(3px * var(--graph-zoom)) #cfdcfb}
.agent-graph-node[data-path-step]:before{content:attr(data-path-step);position:absolute;left:calc(-9px * var(--graph-zoom));top:calc(-9px * var(--graph-zoom));width:calc(18px * var(--graph-zoom));height:calc(18px * var(--graph-zoom));border-radius:50%;background:var(--accent);color:#fff;font:650 calc(10px * var(--graph-zoom))/calc(18px * var(--graph-zoom)) var(--ui);text-align:center;z-index:2}
.agent-graph-node.selected[data-path-step]:before{background:#1d3a8a}
.agent-graph-node.dimmed{opacity:.46}
.agent-graph-edges path.path{stroke:var(--accent);stroke-width:2.4;stroke-dasharray:none;opacity:1}
.agent-graph-edges path.faded{opacity:.22}
.agent-graph-node.inherited{background:#f5f6f8;border-style:dashed;border-color:#b9c2cf;box-shadow:none}
.agent-graph-node.inherited .agent-graph-label{color:#3f4a5a}
.agent-graph-node.inherited .agent-graph-icon{background:#eceff3;border-color:#c5ccd7;color:#5d6878}
.agent-graph-node.inherited.on-path,.agent-graph-node.inherited.selected{border-style:dashed;border-color:var(--accent);background:#f7f9fe}
.agent-graph-node.superseded:not(.dimmed):not(.selected){opacity:.72}
.agent-graph-node.superseded .agent-graph-label{color:#5a6474}
.agent-graph-node.fork-point .agent-graph-badge{border-color:var(--accent);color:#24439a;background:#eef3ff}
.agent-graph-node[data-status=reused] .agent-graph-status{background:#7d8899;color:#fff}
.agent-graph-badge{position:absolute;top:calc(-9px * var(--graph-zoom));right:calc(10px * var(--graph-zoom));height:calc(17px * var(--graph-zoom));padding:0 calc(6px * var(--graph-zoom));border:calc(1px * var(--graph-zoom)) solid #c3ccd9;border-radius:999px;background:#fff;color:#4a5567;font:600 calc(10px * var(--graph-zoom))/calc(15px * var(--graph-zoom)) var(--ui);white-space:nowrap}
.agent-graph-node.spawned{border-left:calc(3px * var(--graph-zoom)) solid #b6c5de}
.agent-graph-expand{position:absolute;z-index:3;min-width:calc(34px * var(--graph-zoom));height:calc(20px * var(--graph-zoom));padding:0 calc(7px * var(--graph-zoom));border-radius:999px;border:calc(1px * var(--graph-zoom)) solid #a9bbd9;background:#fff;color:#28488a;font:650 calc(11px * var(--graph-zoom))/1 var(--ui);box-shadow:0 1px 4px #23395c17;cursor:pointer}
.agent-graph-expand:hover,.agent-graph-expand[aria-expanded=true]{background:#edf2fc}
.agent-graph-node[data-role=continuation] .agent-graph-icon{background:#f1edfb;border-color:#b9acdd;color:#5b4796}
.agent-graph-node[data-role=conclusion]{background:#fffaf0;border-color:#dfc28c}
.agent-graph-node[data-role=conclusion] .agent-graph-icon{background:#fcebc7;border-color:#d6b065;color:#87570f}
.agent-graph-node[data-role=conclusion][data-strength=high]{border-width:calc(2px * var(--graph-zoom));border-color:#c99a3f}
.agent-graph-node[data-role=conclusion][data-strength=low]{border-style:dashed}
.agent-graph-footer kbd{font-size:9px;padding:0 3px;line-height:1.4}
.agent-graph-legend{flex-wrap:wrap;justify-content:flex-end;row-gap:4px}
.graph-key.path:before{width:16px;height:3px;border-radius:2px;background:var(--accent)}
.graph-key.data:before{width:16px;height:0;border-radius:0;background:none;border-top:1.5px dashed #8b98ad}
.graph-key.call:before{width:16px;height:1.5px;border-radius:0;background:#8b98ad}
.graph-key.reused:before{width:11px;height:9px;border-radius:2px;background:#f5f6f8;border:1px dashed #8b98ad}
.graph-key.step:before{border-radius:2px;background:#8aa6ed}
.graph-key.conclusion:before{border-radius:2px;background:#c99a3f}
.fork-banner{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:9px 18px 9px 15px;background:#f3f6fe;border-bottom:1px solid #dbe3f3;border-left:3px solid var(--accent);font-size:12px;line-height:1.45}
.fork-banner>div{min-width:0}
.fork-banner strong{display:block;font-size:13px;font-weight:600}
.fork-banner div>span{display:block;color:var(--muted);font-size:11px}
.fork-banner .fork-summary{color:#45536a;margin-top:2px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.fork-icon{font-size:18px;color:var(--accent)}
.fork-banner .text-link{white-space:nowrap;font-size:12px;margin-left:auto}
.fork-banner.inline{margin:0 0 22px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:9px;background:#fff;padding:10px 14px}

/* Step inspector: what the step did, how it connects, and where it leads. */
.detail-title{display:flex;align-items:center;flex-wrap:wrap;gap:4px 0;min-width:0}
.detail-header .fork-button{margin-left:auto;padding:6px 12px;font-size:12px;white-space:nowrap}
.detail-header .fork-button+.icon-button{margin-left:2px}
.detail-header .strength-tag,.detail-header .confidence-tag{margin-left:12px}
.pill.muted{background:#f3f4f7;color:#4a5567;box-shadow:inset 0 0 0 1px #c3ccd9}
.node-story{margin-bottom:18px}
.node-explanation{font-family:var(--serif);font-size:18px;line-height:1.65;color:var(--ink);margin-bottom:14px}
.node-contribution{border-left:3px solid var(--accent);background:#f4f7ff;border-radius:0 8px 8px 0;padding:10px 14px;margin-bottom:14px}
.node-contribution[data-reaches=false]{border-left-color:#aab4c3;background:#f5f6f8}
.contribution-label{display:block;font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:#2c4a99}
.node-contribution[data-reaches=false] .contribution-label{color:#525e70}
.node-contribution p{margin:3px 0 0;font-size:14px;line-height:1.6}
.node-note{font-size:13px;line-height:1.6;color:#45505f;background:#f5f6f8;border:1px dashed #bcc5d2;border-radius:8px;padding:8px 12px}
.inline-link{color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.node-route{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.route-label{font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.node-route ol{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:0;padding:0;list-style:none}
.node-route li{margin:0;display:flex;align-items:center;gap:4px}
.node-route li+li:before{content:'→';color:#7d8899;font-size:12px}
.route-step{font-size:12px;line-height:1.4;padding:3px 8px;border-radius:5px;background:#edf2fc;color:#2a4ba8}
button.route-step:hover{background:#dfe8fb}
.route-step.current{background:var(--accent);color:#fff}
.node-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 24px;padding:14px 0 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:18px}
.node-flow h3,.node-steps h3{font-family:var(--ui);font-size:11px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.node-flow .muted{font-size:12px;margin:0}
.flow-hint{grid-column:1/-1;font-size:11px;color:var(--muted);margin:0}
.chip-row{display:flex;flex-wrap:wrap;gap:6px}
.flow-chip,.step-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:5px 10px 5px 6px;border:1px solid #d3dbe8;border-radius:7px;background:#fff;font-size:12px;line-height:1.35;text-align:left}
.flow-chip:hover,.step-chip:hover{border-color:#8ba7d2;background:#f5f8ff}
.flow-icon{display:grid;place-items:center;width:20px;height:20px;border-radius:5px;background:#edf2fb;color:#476796;font-size:12px;flex-shrink:0}
.flow-tag{font-size:10px;font-weight:650;color:#2a4ba8;background:#e6edfc;border-radius:4px;padding:1px 6px;white-space:nowrap}
.flow-tag.muted{color:#4a5567;background:#eef0f3}
.node-steps{margin-bottom:20px}
.step-number{display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:5px;background:#edf2fc;color:var(--accent);font:650 11px var(--ui);flex-shrink:0}
.count-badge{display:inline-grid;place-items:center;min-width:20px;height:18px;padding:0 6px;margin-left:4px;border-radius:999px;background:#e8ecf2;color:#4f5c6f;font:600 11px var(--ui);letter-spacing:0;vertical-align:1px}

/* Reasoning chain: conclusions first, then every step with its evidence. */
.chain-headline{padding:4px 0 20px;border-bottom:1px solid var(--line)}
.chain-headline .eyebrow{margin-bottom:6px}
.chain-headline p{font-family:var(--serif);font-size:21px;line-height:1.5;margin:0;color:var(--ink)}
.chain-section{padding-top:10px}
.chain-section-title{font-family:var(--ui);font-size:12px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:18px 0 12px}
.conclusion-card{border:1px solid var(--line);border-left:4px solid #9fb4e3;border-radius:10px;padding:16px 20px 12px;margin-bottom:12px;background:#fff}
.conclusion-card[data-strength=high]{border-left-color:var(--accent)}
.conclusion-card[data-strength=low]{border-left-color:#c3ccd9;border-left-style:dashed}
.conclusion-card h3{font-family:var(--serif);font-size:19px;font-weight:600;line-height:1.45;margin:8px 0 6px}
.conclusion-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:12px;color:var(--muted)}
.conclusion-section{font-style:italic}
.conclusion-toggle{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--accent);padding:4px 2px;border-radius:5px}
.conclusion-toggle:hover{text-decoration:underline;text-underline-offset:3px}
.conclusion-toggle .ui-icon{width:16px;height:16px;transition:transform .15s}
.conclusion-toggle[aria-expanded=true] .ui-icon{transform:rotate(180deg)}
.conclusion-steps{margin-top:6px;border-top:1px solid var(--line)}
.conclusion-steps .chain-card:last-child{border-bottom:0;padding-bottom:6px}
.strength-tag,.confidence-tag{display:inline-flex;align-items:center;gap:6px;font:600 11px var(--ui);color:#3b4a60;white-space:nowrap}
.level-bars{display:inline-flex;align-items:flex-end;gap:2px;height:11px}
.level-bars i{width:3px;border-radius:1px;background:#cdd5e1}
.level-bars i:nth-child(1){height:5px}.level-bars i:nth-child(2){height:8px}.level-bars i:nth-child(3){height:11px}
[data-level=low] .level-bars i:nth-child(1),[data-level=medium] .level-bars i:nth-child(-n+2),[data-level=high] .level-bars i{background:var(--accent)}
.chain-body{min-width:0}
.chain-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin-bottom:6px}
.chain-meta .eyebrow{margin:0}
.chain-card{scroll-margin:90px;border-radius:4px}
.chain-card:focus{outline:none}
.chain-card:focus-visible{outline:2px solid #9db5fa;outline-offset:4px}
.chain-card.flash{animation:step-flash 1.8s ease-out}
@keyframes step-flash{0%,30%{background:#e8efff;box-shadow:0 0 0 8px #e8efff}100%{background:transparent;box-shadow:0 0 0 8px transparent}}
.chain-card .chip-row{margin-top:10px}
.evidence-quotes{display:grid;gap:12px;margin:14px 0 4px}
.evidence-quote{margin:0;border-left:3px solid #d3dbe8;padding:1px 0 1px 14px}
.evidence-quote blockquote{margin:0;font-family:var(--serif);font-size:15px;line-height:1.6;color:#2c3747}
.evidence-quote blockquote:before{content:'“'}.evidence-quote blockquote:after{content:'”'}
.evidence-quote figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:5px;font-size:11px;color:var(--muted)}
.evidence-quote code{font-size:11px;color:#4a5567;background:#f1f3f7;border-radius:4px;padding:0 5px}
.quote-source{font:600 11px var(--ui);color:var(--accent);padding:0}
.quote-source:hover{text-decoration:underline;text-underline-offset:2px}
.verified-mark{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:#25603f;background:#e8f3ec;border-radius:4px;padding:0 6px}

/* "Why?" on answer sections. */
.answer-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.answer-heading>h2,.answer-heading>h3{min-width:0}
.answer-heading.preamble{margin:-4px 0 14px}
.why-button{flex-shrink:0;transform:translateY(-3px);font:600 11px/1 var(--ui);color:#4f5d72;border:1px solid #d6deea;border-radius:999px;padding:5px 10px;background:#fff;transition:color .15s,border-color .15s,background .15s}
.why-button:hover,.why-button[aria-expanded=true]{color:var(--accent);border-color:#9db2e3;background:#f2f6ff}
.why-panel{font-family:var(--ui);font-size:13px;line-height:1.55;border:1px solid #d6deea;border-radius:12px;background:#fbfcfe;padding:14px 16px 16px;margin:0 0 22px;box-shadow:0 2px 12px #20345b0a}
.why-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.why-header .eyebrow{margin-bottom:2px}
.why-header strong{font-size:15px;font-weight:600}
.why-header .icon-button{width:30px;height:30px;font-size:18px;margin:-6px -8px 0 0}
.why-block{margin-top:14px}
.why-block h4{font-size:11px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}
.why-conclusions{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.why-conclusions li{display:grid;grid-template-columns:118px 1fr;align-items:baseline;gap:10px;margin:0;font-family:var(--serif);font-size:15px;line-height:1.5}
.why-steps{list-style:none;margin:0 -8px;padding:0;display:grid;gap:2px}
.why-steps li{margin:0}
.why-step{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:7px 8px;border-radius:8px}
.why-step:hover{background:#eef3fc}
.why-step-text{flex:1;min-width:0}
.why-step-text strong{display:block;font-size:13px;font-weight:600;line-height:1.4}
.why-step-text small{display:block;color:var(--muted);font-size:11px}
.why-step-open{color:var(--accent)}
.why-panel .flow-chip{font-family:var(--ui)}

/* Composer: which earlier work the next turn builds on. */
.fork-chip-row{margin:-4px 0 10px}
.fork-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 4px 3px 10px;border:1px solid #c6d3ef;background:#f2f6ff;color:#25407e;border-radius:999px;font-size:12px;line-height:1.4}
.fork-chip.default{background:#f5f7fa;border-color:var(--line);color:#4a5567}
.fork-chip.fresh{background:var(--amber-light);border-color:#e7cf9f;color:#6e4c17}
.fork-chip-icon{flex-shrink:0}
.fork-chip-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fork-chip strong{font-weight:600}
.fork-chip small{font-size:11px;color:#4a5567}
.chip-action{flex-shrink:0;font-size:11px;font-weight:600;color:var(--accent);padding:3px 8px;border-radius:999px}
.fork-chip.default .chip-action{margin-left:2px}
.chip-action:hover{background:#e1e9fb}
.chip-dismiss{display:grid;place-items:center;flex-shrink:0;width:22px;height:22px;border-radius:50%;font-size:15px;line-height:1;color:inherit}
.chip-dismiss:hover{background:#00000010}
@media(max-width:760px){.fork-banner{padding:8px 12px 8px 10px}.fork-banner .fork-summary{display:none}.node-explanation{font-size:16px}.why-conclusions li{grid-template-columns:1fr;gap:2px}.agent-graph-footer>div{gap:8px}}
/* File libraries share the system and conversation theme. */
.reference-file{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--border);min-width:0}
.reference-file>div:first-child,.reference-file>span{min-width:0;overflow-wrap:anywhere}
.reference-file strong{font-family:'Source Serif 4',Georgia,serif;font-weight:500}
.reference-file small{display:block;color:var(--muted);margin-top:4px}
.reference-files{margin-top:20px}.conversation-files{margin:0 0 28px;padding:16px;border:1px solid var(--border);border-radius:12px}
.conversation-files summary{cursor:pointer;color:var(--muted)}.file-upload-label{display:inline-block;cursor:pointer}
.parsed-document{overflow-wrap:anywhere;max-width:100%}.parsed-document table{display:block;overflow:auto}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Sources: the turn's indexed reference files, section trees and the steps that read them. */
.sources-layout{height:100%;display:flex;flex-direction:column}#sources-content{flex:1;min-height:0;overflow:auto}
.sources-view{max-width:900px;margin:auto;padding:25px 32px 40px}.sources-intro{padding:4px 0 18px}.sources-intro .eyebrow{margin-bottom:6px}.sources-intro h2{margin-bottom:6px}.sources-intro p{font-size:13px;margin:0}
.source-overview{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin-top:12px;font-size:12px}.source-overview .reads-chip{margin:0}.sources-intro .source-readers{margin:8px 0 0}
.source-file{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px 14px;margin-bottom:16px;min-width:0}
.source-file-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}.source-file-name{min-width:0;flex:1 1 240px}
.source-file h3{font-family:var(--serif);font-weight:600;font-size:18px;line-height:1.35;margin:0 0 3px;overflow-wrap:anywhere}.source-file-name small{display:block;color:var(--muted)}.source-alias{font:600 13px var(--mono);color:var(--accent);vertical-align:1px}.source-alias-sep{color:var(--muted);font-weight:400}.source-file-name .pill{padding:2px 6px;font-size:10px;vertical-align:1px}
.source-file-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px}.source-file-actions .reads-chip{margin:0}.source-file>.source-readers{margin:10px 0 0}
.source-description{font-family:var(--serif);font-size:15px;line-height:1.6;color:#2c3747;margin:12px 0 0}
.source-entities{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.source-entities .pill{font-weight:550}
.source-warnings{list-style:none;margin:12px 0 0;padding:8px 12px;border-radius:8px;background:var(--amber-light);color:var(--amber);font-size:12px;line-height:1.5}.source-warnings li+li{margin-top:4px}
.source-sections-toggle{display:inline-flex;align-items:center;gap:4px;margin:12px 0 4px;padding:4px 6px 4px 0;font-size:12px;font-weight:650;color:var(--muted)}.source-sections-toggle:hover{color:var(--ink)}
.source-sections-toggle .ui-icon,.source-twisty .ui-icon,.reads-chip .ui-icon{width:15px;height:15px;transition:transform .15s}.source-sections-toggle[aria-expanded=false] .ui-icon,.source-twisty[aria-expanded=false] .ui-icon{transform:rotate(-90deg)}.reads-chip[aria-expanded=true] .ui-icon{transform:rotate(180deg)}
.source-tree,.source-children{list-style:none;margin:0;padding:0}.source-children{margin-left:11px;padding-left:10px;border-left:1px solid var(--line)}
.source-row{display:flex;align-items:flex-start;gap:2px;border-radius:8px;scroll-margin:40px}.source-row:hover{background:#f5f8ff}.source-row.selected{background:var(--green-light);box-shadow:inset 3px 0 0 var(--accent)}.source-row.flash{animation:step-flash 1.8s ease-out}
.source-twisty{flex-shrink:0;display:grid;place-items:center;width:22px;height:22px;margin-top:7px;border-radius:5px;color:var(--muted)}button.source-twisty:hover{background:#e6ebf3;color:var(--ink)}
.source-section{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 12px;align-items:baseline;padding:7px 8px;border-radius:6px;text-align:left}
.source-title{font-size:13px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}.source-pages{font-size:11px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.source-summary{grid-column:1/-1;font-size:12px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.source-row.selected .source-title{color:var(--accent)}.source-empty{font-size:13px;margin:12px 0 4px}
.reads-chip{flex-shrink:0;display:inline-flex;align-items:center;gap:5px;margin:7px 4px 0 0;padding:3px 7px 3px 8px;border:1px solid #cfdaf3;border-radius:999px;background:#eef3fd;color:#2a4ba8;font-size:11px;font-weight:650;line-height:1.35;white-space:nowrap}.reads-chip:hover{border-color:#8ba7d2;background:#e3ebfc}.reads-chip>span[aria-hidden]{font-size:8px}
.source-readers{margin:2px 4px 8px 32px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.source-readers .flow-chip{font-family:var(--ui)}
.source-output>.eyebrow{margin-bottom:8px;overflow-wrap:anywhere}.source-page{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.source-page:first-child{border-top:0;margin-top:0;padding-top:0}.source-page>.eyebrow{margin-bottom:4px}
.source-page .markdown{font-size:15px;line-height:1.7}.source-more{margin-top:14px}
.cite-link{display:inline;padding:1px 6px;border-radius:5px;background:var(--green-light);color:var(--accent);font:600 12px/1.5 var(--ui);vertical-align:1px;text-align:left;overflow-wrap:anywhere;box-decoration-break:clone;-webkit-box-decoration-break:clone}.cite-link:hover{background:#dfe8ff;text-decoration:underline;text-underline-offset:2px}.cite-text{font-size:.85em;color:var(--muted)}
@media(max-width:760px){.sources-view{padding:15px 16px 30px}.source-file{padding:14px 14px 10px}.source-file h3{font-size:16px}.source-children{margin-left:6px;padding-left:6px}.source-section{grid-template-columns:1fr}.source-pages{white-space:normal}.source-readers{margin-left:8px}.source-row{flex-wrap:wrap}.source-section{flex-basis:calc(100% - 26px)}.source-row>.reads-chip{margin:0 0 7px 32px}}
@media(prefers-reduced-motion:reduce){.source-row.flash{animation:none}.source-sections-toggle .ui-icon,.source-twisty .ui-icon,.reads-chip .ui-icon{transition:none}}

/* Text reasoning follows the document flow; the browser owns vertical scrolling. */
.chat-layout.chain-text{height:auto;min-height:100dvh}.chain-text .chat-main{height:auto;min-height:100dvh}.chain-text .tab-content,.chain-text #chain-content{flex:none;overflow:visible}.chain-text .chain-layout{height:auto}

/* Keep long questions compact so turn navigation also reveals the answer. */
.question-text:not(.expanded){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;max-height:10.8em;overflow:hidden}
.message .question-toggle{display:block;margin-top:8px}
.chat-main:not(.visual-mode) .tab-content{padding-right:60px}
.turn-rail{position:absolute;right:28px;top:64px;width:30px;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain;align-content:safe center;z-index:5}
.turn-rail::-webkit-scrollbar{display:none}
.turn-beat{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px}
.turn-beat span{display:block;width:12px;height:3px;border-radius:3px;background:#b7c0cd;transition:width .15s,background .15s}
.turn-beat:hover,.turn-beat:focus-visible{background:var(--green-light);outline-offset:-3px}
.turn-beat:hover span,.turn-beat:focus-visible span,.turn-beat[aria-current=step] span{width:22px;background:var(--accent)}
.turn-preview{position:fixed;max-width:min(300px,65vw);padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--paper);box-shadow:0 4px 18px #20345b18;color:var(--ink);font-size:12px;line-height:1.5;overflow-wrap:anywhere;pointer-events:none;z-index:40}
@media(max-width:760px){.chat-main:not(.visual-mode) .tab-content{padding-right:56px}.turn-rail{right:24px}.conversation-thread{padding-left:14px;padding-right:10px}.message.user{margin-left:8px;padding:14px}}
 .chain-text .evidence-quote{min-width:0;overflow-wrap:anywhere}

.chain-body>.fork-button,.conclusion-card>.fork-button{margin:10px 10px 4px 0}.fork-chip-text{min-width:0;overflow-wrap:anywhere}

/* Account actions stay behind the identity panel, including in the collapsed rail. */
.sidebar-bottom{position:relative}.account{width:100%;text-align:left;border-radius:9px;min-height:48px;padding:8px 6px}.account:hover,.account[aria-expanded="true"]{background:#e3e8f0}.account .avatar{flex-shrink:0}.account-details{min-width:0;flex:1}.account-details>span,.account-details small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-chevron{width:16px;height:16px;flex-shrink:0;color:var(--muted)}.account[aria-expanded="true"] .account-chevron{transform:rotate(180deg)}.account-menu{position:absolute;bottom:calc(100% + 8px);left:0;width:100%;min-width:200px;padding:5px;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #2029361c}.account-menu [role="menuitem"]{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;color:var(--ink);text-decoration:none;text-align:left;font-size:13px;border-radius:6px}.account-menu [role="menuitem"]:hover,.account-menu [role="menuitem"]:focus-visible{background:#edf2f8}.account-menu [role="menuitem"]>span{width:18px;text-align:center;color:var(--muted)}.nav-collapsed .account{justify-content:center;padding:8px 0}.profile-admin{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.profile-admin h2{margin-bottom:8px}.profile-admin p{margin-bottom:0}.profile-admin>a{text-decoration:none;gap:12px;color:var(--ink)}

/* Generated MCP packages on eligible system builds. */
#tools-panel>p{margin-bottom:24px}
.mcp-package h3,.system-tool-list h4{margin:0;overflow-wrap:anywhere}
.mcp-package p{overflow-wrap:anywhere}
.system-tool-list{list-style:none;margin:20px 0 0;padding:0}
.system-tool-list li{border-top:1px solid var(--line);padding:18px 0 0;margin-top:18px}
.system-tool-list p{margin-bottom:0}

/* System overview sections. */
.system-info-fields{margin:0;display:grid;gap:22px}
.system-info-fields>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px;align-items:start}
.system-info-fields dt{color:var(--muted);font-size:13px;padding-top:4px}
.system-info-fields dd{margin:0;overflow-wrap:anywhere}
.system-id-value{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.system-id-value code{font-size:13px;user-select:all;overflow-wrap:anywhere}
.system-id-value button{flex-shrink:0}
.provided-files{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
.provided-files>h3{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.specifications>section{margin-top:18px;padding:22px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}
.specifications>section>h3{margin-bottom:18px;font-size:16px;font-weight:650;letter-spacing:0;text-transform:none;color:var(--ink)}
.sample-specifications>.specification+.specification{margin-top:18px;padding-top:18px}
.reference-files-preview:not(.expanded)>.reference-file:nth-child(n+4){display:none}
.reference-files-preview>.reference-file{padding:12px 0}
.reference-files-preview>.reference-file:first-child{padding-top:0}
.reference-files-preview>.reference-file:last-child,.reference-files-preview:not(.expanded)>.reference-file:nth-child(3){border-bottom:0}
.reference-files-preview>.reference-file>div:last-child{flex-shrink:0}
.provided-files>.specification-toggle{padding:9px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper);margin-top:16px}
.provided-files>.specification-toggle:hover{border-color:#b7c5e2;background:var(--green-light)}
@media(max-width:760px){.specifications>section{padding:16px}.reference-files-preview>.reference-file{flex-direction:column;align-items:flex-start;gap:6px}}
.clipboard-copy-field{position:fixed;left:-9999px;top:0}
@media(max-width:760px){.system-info-fields>div{grid-template-columns:1fr;gap:8px}.system-id-value{align-items:flex-start}.system-delete-section .secondary{max-width:100%}}

.credential-multiline{-webkit-text-security:disc;min-height:6em;font-family:monospace}
.credential-row{padding:22px 0;border-top:1px solid var(--line)}
.credential-row:first-child{border-top:0;padding-top:0}.credential-row:last-child{padding-bottom:0}
.credential-row h3{margin-bottom:4px}.credential-row code{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.credential-row>.row>div{min-width:0}.credential-description{margin:12px 0;color:var(--muted)}
.credential-mask{margin:14px 0 6px;letter-spacing:2px}.credential-status{font-size:12px;margin:0}
.credential-edit-form{margin-top:18px}.credential-row [hidden]{display:none!important}

.api-key-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line,#ddd)}
#api-keys-list{margin-top:20px}#generated-api-key{width:100%;font-family:monospace;overflow-wrap:anywhere;margin:12px 0}
