@import url("./fonts.css");
:root{--bg:#f7f8f8;--card:#fff;--ink:#1a2c2b;--muted:#74817f;--line:#e5ebe8;--green:#127c62;--green-soft:#e9f5ef;--sidebar:#132b2a;--amber:#a46c12;--radius:14px;font:14px/1.6 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}svg{width:19px;height:19px;flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1.25px;font-weight:650;line-height:1.25}h2{font-size:16px;letter-spacing:-.35px;font-weight:650}h3{font-size:15px;font-weight:600}small{font-size:11px}button:focus-visible,a:focus-visible{outline:3px solid #57b49d;outline-offset:3px}input,select,textarea{background:#fff;border:1px solid #dce4df;border-radius:8px;color:var(--ink);padding:10px 12px;min-width:0;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:#61aa93;box-shadow:0 0 0 3px #127c6210}textarea{resize:vertical}label{display:block;font-size:12px;font-weight:600;color:#556360}label input,label select,label textarea{margin-top:6px;font-weight:400;font-size:13px}[hidden]{display:none!important}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.7px;color:var(--muted);margin-bottom:8px}.button{border:1px solid transparent;border-radius:8px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s,transform .15s;min-height:40px}.button:hover{transform:translateY(-1px)}.primary{background:var(--green);color:white;box-shadow:0 2px 3px #105c4810}.primary:hover{background:#09664f}.secondary{background:white;border-color:#dae3dd;color:#344941}.secondary:hover{background:#f1f6f3}.full-width{width:100%}.icon-button{width:34px;height:34px;padding:6px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;color:var(--muted);border-radius:7px;flex-shrink:0}.icon-button:hover{background:#e9f0ec;color:var(--green)}.text-button{border:0;background:none;color:var(--green);font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:7px;padding:5px 0}.text-button:hover{color:#064734}.danger{color:#ae514a}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:3px 7px;font-size:9px;font-weight:650;letter-spacing:.3px;white-space:nowrap}.pill svg{width:12px;height:12px}.pill.green{background:var(--green-soft);color:var(--green)}.pill.amber{background:#fff5e6;color:var(--amber)}.pill.red{background:#fbeeed;color:#b64e43}.pill.neutral{background:#f0f3f2;color:#697975}.pill.blue{background:#edf2fb;color:#5778ad}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#c5ceca;flex-shrink:0}.dot.green{background:#55b798}.dot.red{background:#d46b60}.brand{display:flex;align-items:center;gap:7px;text-decoration:none;font-size:21px;letter-spacing:-.8px;font-weight:600;color:white;white-space:nowrap}.brand-ai{font-weight:350;opacity:.6;margin-left:-4px}.brand-mark{background:#2a514c;color:#c4f2df;border:1px solid #41665d;border-radius:10px;width:34px;height:34px;font-size:29px;line-height:30px;letter-spacing:-5px;padding-left:5px;margin-right:3px}.brand-mark span{color:#72d4b3;font-size:28px;letter-spacing:0}.app-shell{display:flex;min-height:100vh}.sidebar{width:228px;flex-shrink:0;background:var(--sidebar);color:#c4d2ce;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:30px 19px 0;z-index:30}.sidebar .brand{margin:0 10px 48px}.sidebar-label{font-size:9px;color:#698c80;letter-spacing:1.8px;margin:0 13px 13px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:11px 12px;border:0;background:transparent;color:#9eb6ae;border-radius:7px;font-size:12px}.nav-item:hover{background:#1b3933;color:#d9e9df}.nav-item.active{background:#24483e;color:#d7f5e7;font-weight:600}.nav-item.active svg{color:#83c7a8}.nav-count{margin-left:auto;border-radius:4px;background:#36584b;color:#9dd7b9;padding:0 6px;font-size:10px}.sidebar-bottom{margin-top:auto;padding-top:35px}.runtime-card{display:flex;align-items:center;gap:10px;border:1px solid #2a4840;background:#193730;border-radius:9px;padding:12px;margin-bottom:22px}.runtime-card strong{font-size:11px;font-weight:550;color:#c0dfcf;display:block}.runtime-card small{font-size:9px;color:#709788;display:block}.owner-row{display:flex;gap:9px;align-items:center;border-top:1px solid #28413a;padding:19px 0}.avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;background:#36584a;color:#bfe0cb;border-radius:50%;font-size:12px}.owner-row strong{display:block;font-size:10px;font-weight:550;color:#c7dace}.owner-row small{display:block;font-size:9px;color:#789a89}.owner-row .icon-button{margin-left:auto;color:#85a595}.owner-row .icon-button:hover{background:#2a4b3d}.workspace{margin-left:228px;min-width:0;flex:1}.topbar{height:76px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:15px}.breadcrumb{display:flex;gap:12px;align-items:center;font-size:11px;color:#8a9690}.breadcrumb strong{font-weight:550;color:#4f6259}.crumb-separator{color:#ccd4cf}.topbar-actions{display:flex;gap:19px;align-items:center}.local-label{display:flex;gap:6px;align-items:center;font-size:10px;color:#789082}.workspace-picker{display:flex;align-items:center;gap:8px;color:#647c6b;border-left:1px solid var(--line);padding-left:19px}.workspace-picker select{border:0;padding:0 20px 0 0;margin:0;background:transparent;font-size:11px;font-weight:600;width:auto;max-width:220px;color:#394f41}.workspace-picker svg{width:16px;height:16px}.topbar .icon-button{border:1px solid var(--line);width:30px;height:30px}.topbar .icon-button svg{width:15px;height:15px}#mobile-menu{display:none}main{max-width:1500px;margin:auto;padding:34px 36px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.page-heading p{font-size:12px;color:var(--muted);margin-top:8px}.heading-actions{display:flex;gap:8px}.scope-line{display:flex;align-items:center;gap:10px;font-size:11px;margin-bottom:20px;color:var(--muted)}.scope-icon{display:inline-flex;color:#769888}.scope-icon svg{width:14px;height:14px}.scope-line strong{font-weight:550;color:#506557}.scope-divider{color:#c9d4cc}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stats-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#687d70;font-size:11px}.stat-icon{background:#f0f5f2;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;color:#6a9880}.stat-icon svg{width:15px;height:15px}.stat-value{font-size:31px;font-weight:600;letter-spacing:-1px;margin:5px 0 3px;line-height:1.25}.stat-description{font-size:10px;color:#8a9b90}.stat-description strong{color:var(--green);font-weight:550}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:23px;min-width:0}.card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:23px}.card-heading p{font-size:11px;color:var(--muted);margin-top:4px}.overview-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:20px;margin-bottom:20px}.pipeline{display:flex;justify-content:space-between;gap:5px;margin:28px 0 27px}.pipeline-step{flex:1;text-align:center;position:relative;min-width:0}.pipeline-step:not(:last-child):after{content:"";position:absolute;top:24px;left:calc(50% + 25px);width:calc(100% - 47px);border-top:1px dashed #cbdacf}.step-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:13px;border:1px solid #dfe9e2;background:#f5f9f6;color:#608771;margin:0 auto 12px;position:relative;z-index:1}.pipeline-step.ready .step-icon{background:var(--green-soft);border-color:#d4e9dc;color:var(--green)}.pipeline-step.recorded .step-icon{background:#f0f4fa;color:#6f86ac;border-color:#dfe6f0}.pipeline-step h3{font-size:11px}.pipeline-step p{font-size:9px;color:#95a196;margin-top:3px}.pipeline-step .pill{margin-top:8px;font-size:8px}.pipeline-footer{display:flex;gap:7px;align-items:center;border-top:1px solid var(--line);padding-top:14px;font-size:10px;color:#809085}.pipeline-footer svg{width:13px;height:13px;color:#7f9b87}.check-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eef2ef;min-width:0}.check-row:last-child{border-bottom:0}.check-row>span:first-child{display:inline-flex}.check-row svg{width:15px;height:15px;color:#94a19a}.check-row .check-green svg{color:var(--green)}.check-row .check-red svg{color:#bb6252}.check-row .check-amber svg{color:var(--amber)}.check-row strong{font-size:11px;font-weight:500;overflow-wrap:anywhere}.check-row small{color:var(--muted);font-size:9px;display:block}.check-row .pill{margin-left:auto}.subtle-note{font-size:10px;color:#849388;line-height:1.65;margin-top:14px}.lower-grid{grid-template-columns:1.65fr 1fr}.book-preview{display:flex;align-items:center;gap:14px;padding:4px 0 16px}.book-cover{display:flex;align-items:center;justify-content:center;background:linear-gradient(150deg,#1e5e49,#43765b);color:#b4d3ba;width:52px;height:68px;border-radius:3px 6px 6px 3px;box-shadow:inset 4px 0 #11392d40,2px 3px 8px #12433315;flex-shrink:0}.book-cover svg{width:23px;height:23px}.book-preview strong{font-size:12px;font-weight:550;display:block;line-height:1.65;overflow-wrap:anywhere}.book-preview p{font-size:10px;color:#849487;margin-top:4px}.book-preview .pill{margin-top:6px}.book-details{min-width:0;flex:1}.book-preview+.book-preview{border-top:1px solid var(--line);padding-top:17px}.library-summary{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:13px;font-size:10px;color:#809084}.accent-icon{display:inline-flex;color:#719c83}.accent-icon svg{width:20px;height:20px}.evidence-card .button{margin-top:16px}.evidence-metric{display:flex;align-items:center;gap:11px;margin-bottom:15px}.evidence-metric-icon{width:29px;height:29px;border-radius:50%;background:var(--green-soft);color:var(--green);display:flex;align-items:center;justify-content:center}.evidence-metric-icon svg{width:14px;height:14px}.evidence-metric-icon.unavailable{background:#f2f4f3;color:#929e96}.evidence-metric strong{font-size:12px;font-weight:550;display:block}.evidence-metric small{font-size:9px;color:#8c9b91;display:block}.connection-banner{background:#edf3ee;border:1px solid #e0e9e0;border-radius:var(--radius);display:flex;gap:16px;align-items:center;padding:21px 24px;margin-bottom:25px}.banner-icon{width:38px;height:38px;background:#deeadf;border-radius:10px;color:#678972;display:flex;align-items:center;justify-content:center}.connection-banner h3{font-size:13px}.connection-banner p{font-size:10px;color:#7d9182;margin-top:3px}.connection-banner .button{margin-left:auto}.page-footer{display:flex;justify-content:space-between;gap:20px;color:#96a398;font-size:9px;padding:25px 0 22px;margin-top:10px;border-top:1px solid var(--line)}.footer-dot{margin:0 7px;color:#b6c5ba}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 14px}.count-label{color:#8a9c8d;background:#eaf0eb;border-radius:4px;padding:2px 6px;font-size:10px;margin-left:6px}.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.course-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:19px}.course-card .course-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.course-icon{width:32px;height:32px;border-radius:9px;background:#eff5f0;color:#77a085;display:flex;align-items:center;justify-content:center}.course-card h3{font-size:15px}.course-card p{font-size:11px;color:var(--muted);margin:6px 0 14px}.course-material{display:flex;align-items:center;gap:7px;font-size:11px;color:#6c806f;padding:8px 0;border-top:1px solid #edf2ee}.course-material svg{width:13px;height:13px}.course-material .text-button{margin-left:auto}.course-card .course-chat{width:100%;margin-top:13px}.compact-select{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:400;min-width:0}.compact-select select{margin:0;width:auto;max-width:220px;font-size:11px;padding:7px 27px 7px 9px}.library-card{margin-bottom:20px}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:9px;color:#91a095;letter-spacing:.7px;text-transform:uppercase;font-weight:550;padding:10px;border-bottom:1px solid var(--line);background:#f9fbf9}td{padding:16px 10px;border-bottom:1px solid #edf2ee;font-size:11px;color:#667e6c}td:first-child{width:43%;color:#314f38}tr:last-child td{border-bottom:0}.table-book{display:flex;align-items:center;gap:10px;min-width:220px}.table-book .book-cover{width:29px;height:39px}.table-book .book-cover svg{width:14px;height:14px}.table-book strong{display:block;font-weight:500;font-size:11px;max-width:360px;overflow-wrap:anywhere}.table-book small{color:#90a293;font-size:9px}.table-actions{display:flex;justify-content:flex-end;gap:5px}.empty-state{padding:34px 18px;text-align:center;color:#88988d}.empty-state svg{width:30px;height:30px;margin-bottom:10px;color:#a4baad}.empty-state h3{font-size:13px;color:#59705e;margin-bottom:4px}.empty-state p{font-size:11px}.job-row{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #edf2ee}.job-row:last-child{border:0}.job-row .job-description{min-width:0;flex:1}.job-row strong{font-size:11px;display:block}.job-row p{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.job-row progress{width:90px;height:5px;accent-color:var(--green)}.chat-scope{display:flex;gap:13px;align-items:flex-end;padding:15px 19px;margin-bottom:18px}.chat-scope label{max-width:180px;min-width:0}.chat-scope input{font-size:12px;padding:8px 10px}.scope-explanation{display:flex;gap:7px;align-items:center;margin-left:auto;font-size:9px;color:#8a9d90;padding-bottom:3px}.scope-explanation svg{width:14px;height:14px;color:#6d9d7d}.scope-explanation strong{font-weight:550;color:#6a8572}.chat-layout{display:grid;grid-template-columns:200px minmax(0,1fr) 248px;gap:16px;align-items:start}.chat-history{padding:16px 12px;display:flex;flex-direction:column;min-height:650px}.history-heading{display:flex;justify-content:space-between;align-items:center;padding:0 5px 14px;border-bottom:1px solid var(--line)}.history-heading h2{font-size:12px}.history-item{position:relative;margin-top:7px;padding:9px 8px;border-radius:7px;border:1px solid transparent}.history-item:hover{background:#f7faf7}.history-item.active{background:#eef6ef;border-color:#dfebde}.history-select{border:0;background:none;color:#4b6953;text-align:left;font-size:11px;width:100%;padding:0;display:block;overflow-wrap:anywhere}.history-item small{font-size:9px;color:#95a194;display:block;margin-top:4px}.history-actions{display:flex;gap:1px;margin-top:5px}.history-actions .icon-button{width:25px;height:23px}.history-actions svg{width:12px;height:12px}.history-foot{margin-top:auto;padding:20px 5px 0;font-size:9px;color:#a0ac9f}.chat-panel{padding:0;overflow:hidden}.chat-panel-heading{padding:18px 21px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-panel-heading .eyebrow{font-size:8px;margin-bottom:2px}.chat-panel-heading h2{font-size:13px}.chat-panel-heading .pill{font-size:8px}#messages{min-height:340px;max-height:600px;overflow:auto;padding:21px;scroll-behavior:smooth}.chat-empty{display:flex;min-height:300px;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#8d9e90}.chat-empty .empty-symbol{width:48px;height:48px;background:#eef6ef;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#6c987a;margin-bottom:16px}.chat-empty h3{font-size:16px;color:#496d50;letter-spacing:-.3px}.chat-empty p{font-size:11px;margin-top:5px;max-width:290px}.turn{padding:0 0 24px}.turn .question{padding:11px 13px;border-radius:10px 10px 2px 10px;background:#eef3ef;color:#44604a;font-size:12px;margin-left:26px;white-space:pre-wrap;overflow-wrap:anywhere}.answer-label{display:flex;gap:7px;align-items:center;margin:19px 0 8px;font-size:10px;font-weight:550;color:#5d896b}.answer-label svg{width:14px;height:14px}.answer{font-size:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:#334d3b}.answer-status{display:flex;gap:6px;align-items:center;margin:10px 0}.source{background:#f9fbf9;border:1px solid #e4ece4;border-radius:7px;margin:10px 0;padding:10px 12px;overflow-wrap:anywhere}.source summary{display:flex;gap:6px;align-items:center;font-size:10px;font-weight:500;color:#55745c;cursor:pointer;list-style:none}.source summary svg{width:13px;height:13px}.source p{font-size:10px;color:#7f9384;white-space:pre-wrap;margin-top:8px}.source .text-button{font-size:10px;margin-top:8px}.suggestions{display:flex;gap:6px;flex-wrap:wrap;padding:0 19px 14px}.suggestions button{background:#fff;border:1px solid #e2eae2;border-radius:6px;padding:6px 8px;font-size:9px;color:#7e9382}.suggestions button:hover{background:#f2f7f2}.suggestions span{margin-left:5px}.composer{margin:0 18px 18px;border:1px solid #dce8db;border-radius:10px;padding:12px 12px 8px;background:#fff;box-shadow:0 1px 5px #18432004}.composer:focus-within{border-color:#8eb59b}.composer textarea{padding:0;border:0;resize:none;font-size:12px;min-height:48px;max-height:180px;box-shadow:none}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px}.composer-footer>span{font-size:9px;color:#9dad9e;display:flex;gap:4px;align-items:center}.composer-footer>span svg{width:12px;height:12px}.composer-footer .button{font-size:10px;min-height:31px;padding:6px 11px}.composer-footer .button svg{width:13px;height:13px}.retry-button{margin:0 18px 16px}.memory-panel{padding:19px 17px}.memory-panel .card-heading{margin-bottom:10px}.memory-panel h2{font-size:13px}.memory-panel .eyebrow{font-size:8px;margin-bottom:2px}.memory-description{font-size:10px;color:#8b9b8b;margin-bottom:18px}.memory-item{padding:12px;border:1px solid #e7eee4;background:#f7faf5;border-radius:8px;margin:8px 0}.memory-item p{font-size:11px;line-height:1.7;color:#57714f;white-space:pre-wrap;overflow-wrap:anywhere}.memory-item small{font-size:8px;color:#9bab96;display:block;margin:5px 0}.memory-actions{display:flex;gap:10px}.memory-actions .text-button{font-size:9px}.memory-panel form{border-top:1px solid var(--line);padding-top:16px;margin-top:17px}.memory-panel textarea{font-size:11px;margin:7px 0 8px}.memory-panel .button{font-size:10px;padding:7px;min-height:32px}.memory-foot{display:flex;gap:5px;font-size:9px;color:#97a48e;margin-top:16px}.memory-foot svg{width:13px;height:13px;flex-shrink:0}.pending-turn .answer{color:#829789}.pending-turn .answer-label svg{animation:pulse 1.5s infinite}.notice{display:flex;gap:11px;border:1px solid #dce9e1;background:#f0f6f2;border-radius:10px;padding:15px 18px;margin-bottom:23px;color:#6e8a76;font-size:11px}.notice svg{width:17px;height:17px;margin-top:2px}.verification-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}.verification-grid .check-row{padding:12px 0}.verification-grid .check-row strong{font-size:11px}.recorded-group{margin:0 0 20px}.recorded-group>summary{cursor:pointer;display:flex;gap:10px;align-items:center;list-style:none;padding:12px;background:#f7faf7;border:1px solid #e6eee6;border-radius:8px}.recorded-group summary strong{font-size:12px;font-weight:550}.recorded-group summary small{color:#90a392;font-size:9px;display:block}.recorded-group summary .pill{margin-left:auto}.recorded-group ul{padding-left:18px;margin:15px 0;font-size:10px;color:#7d9480}.recorded-group li{padding:4px 0}.connection-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:20px;margin:20px 0}.integration-flow{display:flex;align-items:center;justify-content:space-around;gap:10px;padding:10px 15px 18px}.integration-flow>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}.integration-flow svg{width:23px;height:23px;color:#6a9478;margin-bottom:7px}.integration-flow strong{font-size:12px;font-weight:550}.integration-flow small{color:#90a491;font-size:10px}.flow-arrow{color:#b4c9b6;font-size:22px}.detail-pair{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #edf2ed;padding:11px 0;font-size:11px}.detail-pair:last-child{border:0}.detail-pair span{color:#8ba08c;flex-shrink:0}.detail-pair strong{font-weight:500;color:#536c53;text-align:right;overflow-wrap:anywhere;min-width:0}.detail-pair code{font-size:9px}.settings-details{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.settings-details summary{cursor:pointer;font-size:11px;color:#6b856b}.settings-details label{margin-top:12px;font-size:10px}.settings-details input,.settings-details select{font-size:11px}.settings-details .button{margin-top:15px;font-size:11px}.checkbox-label{display:flex;gap:8px;align-items:flex-start}.checkbox-label input{width:auto;margin-top:3px;accent-color:var(--green)}.code-block{background:#16372c;color:#b7d7ba;font:11px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;border-radius:9px;padding:21px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.toast{position:fixed;bottom:24px;left:calc(50% + 114px);transform:translateX(-50%);z-index:100;background:#173b2e;color:#e2f0df;box-shadow:0 8px 30px #0f2d2320;border:1px solid #2a4c3c;border-radius:9px;padding:12px 19px;font-size:12px;max-width:min(550px,calc(100vw - 30px))}.toast.error{background:#643a32;border-color:#825c51}dialog{border:1px solid #dfe7dd;border-radius:16px;padding:26px;width:460px;max-width:calc(100vw - 30px);box-shadow:0 20px 80px #103d2720;color:var(--ink)}dialog::backdrop{background:#102c2240;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-heading h2{font-size:19px}.dialog-heading .icon-button{font-size:25px}.dialog-form{display:flex;flex-direction:column;gap:14px}.dialog-form p,.dialog-description{font-size:12px;color:var(--muted);line-height:1.8}.dialog-form .button{margin-top:10px}.dialog-form textarea{min-height:120px}.dialog-token{font:11px/1.8 ui-monospace,monospace;background:#f4f8f2;border:1px solid #e2eadc;border-radius:8px;padding:14px;overflow-wrap:anywhere;margin:17px 0;user-select:all}.page-text{font-size:12px;white-space:pre-wrap;max-height:55vh;overflow:auto;padding:14px;background:#f8faf6;border-radius:8px;line-height:1.8}.login-screen{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-story{background:var(--sidebar);color:#c4d7cc;padding:45px 11%;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.login-story .brand{align-self:flex-start}.login-story h1{font-size:54px;line-height:1.14;letter-spacing:-2.5px;color:#e1efe3;margin:18px 0 22px;font-weight:500}.login-story .eyebrow{color:#81ac91;font-size:10px}.login-story p{font-size:12px;line-height:1.9;color:#88ab93}.login-story>small{font-size:9px;color:#668e72}.login-flow{display:flex;gap:12px;align-items:center;font-size:10px;color:#91b59b}.login-flow span{border:1px solid #325441;background:#21442f;padding:9px 12px;border-radius:8px}.login-flow i{font-style:normal;color:#648770}.login-panel{display:flex;align-items:center;justify-content:center;background:#fafbf8;padding:30px}.login-form-wrap{width:340px;max-width:100%}.login-form-wrap h2{font-size:31px;letter-spacing:-1px;margin:6px 0 9px}.login-form-wrap>p{font-size:12px;color:#8a9a88}.login-form-wrap form{margin-top:32px}.login-form-wrap input{margin:8px 0 17px;padding:13px;font-size:12px}.login-form-wrap .button{width:100%;justify-content:space-between;padding:12px 16px}.login-footnote{font-size:10px;color:#a0aa98;line-height:1.9;margin-top:27px}.error-text{color:#b86a56!important;margin-top:12px;font-size:11px!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes pulse{50%{opacity:.35}}
@media(min-width:1650px){main{padding-top:40px}.chat-layout{grid-template-columns:220px minmax(0,1fr) 280px}.pipeline{margin:35px 0 30px}}
@media(max-width:1200px){.sidebar{width:200px;padding-left:13px;padding-right:13px}.workspace{margin-left:200px}.topbar{padding:0 25px}main{padding:27px 25px 0}.chat-layout{grid-template-columns:180px minmax(0,1fr)}.memory-panel{grid-column:1/-1}.memory-panel #memories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.memory-panel .memory-item{margin:0}.memory-panel form{max-width:440px}.toast{left:calc(50% + 100px)}.scope-explanation{max-width:200px}.stats-grid{gap:12px}.stat{padding:16px}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:960px){.overview-grid{grid-template-columns:1fr}.topbar-actions{gap:10px}.local-label{display:none}.workspace-picker{padding-left:0;border-left:0}.scope-explanation{display:none}.connection-grid,.verification-grid{grid-template-columns:1fr}.page-heading h1{font-size:28px}.page-heading{align-items:flex-start}.heading-actions{flex-direction:column}.connection-banner{flex-wrap:wrap}.connection-banner .button{margin-left:54px}.login-story h1{font-size:43px}.login-flow{gap:6px}.login-flow span{padding:7px;font-size:9px}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);width:228px;box-shadow:8px 0 40px #17352320;transition:transform .2s}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.topbar{height:65px;padding:0 16px;position:sticky;top:0;z-index:20}.breadcrumb{gap:7px;font-size:10px}.breadcrumb>span:first-of-type{display:none}.crumb-separator{display:none}#mobile-menu{display:inline-flex;border:0}.workspace-picker select{max-width:158px;font-size:10px}.workspace-picker>span{display:none}.topbar-actions{gap:8px}main{padding:24px 16px 0}.page-heading{flex-direction:column;gap:15px;margin-bottom:23px}.page-heading h1{font-size:29px}.page-heading p{font-size:11px}.heading-actions{flex-direction:row;flex-wrap:wrap}.scope-line{font-size:10px;flex-wrap:wrap;gap:7px}.stats-grid,.stats-grid.three{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats-grid.three .stat:last-child{grid-column:1/-1}.stat{padding:14px}.stat-value{font-size:28px}.stat-top{font-size:10px}.stat-description{font-size:9px}.card{padding:18px}.card-heading{margin-bottom:18px}.card-heading h2{font-size:14px}.card-heading p{font-size:10px}.pipeline{margin:23px 0}.step-icon{width:38px;height:38px;border-radius:10px}.step-icon svg{width:17px;height:17px}.pipeline-step:not(:last-child):after{top:19px;left:calc(50% + 20px);width:calc(100% - 37px)}.pipeline-step h3{font-size:9px}.pipeline-step p{font-size:8px}.pipeline-step .pill{font-size:7px;padding:2px 4px}.connection-banner{padding:18px;gap:12px}.connection-banner>div:nth-child(2){flex:1}.connection-banner h3{font-size:12px}.connection-banner p{font-size:10px}.connection-banner .button{margin-left:0;width:100%}.course-grid{grid-template-columns:1fr}.compact-select{max-width:160px}.compact-select>span{display:none}.compact-select select{max-width:150px}.chat-scope{display:grid;grid-template-columns:1fr 1fr;gap:11px}.chat-scope label{max-width:none}.chat-scope .button{grid-column:1/-1}.chat-layout{grid-template-columns:1fr}.chat-history{min-height:0;max-height:210px;padding:13px}.chat-history #history{overflow:auto;max-height:130px}.history-foot{padding-top:10px}.history-item{padding:8px}.history-actions{position:absolute;right:7px;top:4px;margin:0}.history-select{padding-right:55px}.chat-panel{padding:0}.memory-panel{grid-column:auto}.memory-panel #memories{grid-template-columns:1fr}#messages{min-height:270px;padding:17px;max-height:500px}.chat-empty{min-height:235px}.suggestions{padding-left:15px;padding-right:15px}.composer-footer>span{font-size:8px}.chat-panel-heading{padding:17px}.chat-panel-heading h2{font-size:12px}.integration-flow{padding:8px 0;gap:5px}.integration-flow svg{width:18px;height:18px}.integration-flow strong{font-size:10px}.integration-flow small{font-size:8px}.flow-arrow{font-size:15px}.notice{font-size:10px}.page-footer{font-size:8px}.toast{left:50%;bottom:17px}.login-screen{grid-template-columns:1fr}.login-story{min-height:0;padding:25px;gap:30px}.login-story h1{font-size:34px;letter-spacing:-1px;margin:9px 0 12px}.login-story h1 br{display:none}.login-story p,.login-story .login-flow,.login-story>small{display:none}.login-panel{padding:38px 25px;align-items:flex-start}.login-form-wrap h2{font-size:28px}.login-form-wrap form{margin-top:23px}}
.typing-answer::after{content:"▍";color:var(--green);animation:answer-cursor 1s steps(2,start) infinite}
.memory-toggle{display:flex;gap:9px;align-items:center;margin:12px 0}.memory-toggle input{width:16px;height:16px;margin:0;flex-shrink:0}.turn-suggestions{padding:12px 0 0;flex-wrap:wrap}.turn-suggestions button{white-space:normal;text-align:start}
@keyframes answer-cursor{to{opacity:0}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Independent provider connections: compact on desktop, stacked on mobile. */
.provider-settings { margin-bottom: 24px; }
.provider-row { padding: 22px 0; border-top: 1px solid var(--border, #e8ebef); }
.provider-row-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.provider-row-heading h3 { margin: 0 0 5px; font-size: 16px; }
.provider-row-heading p { margin: 0; color: var(--muted, #687381); font-size: 13px; }
.provider-controls { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px; }
.provider-controls > label { min-width: 0; }
.provider-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.provider-actions .text-button { margin-right: auto; }
@media (max-width: 700px) {
  .provider-controls { grid-template-columns: 1fr; gap: 12px; }
  .provider-row-heading { flex-direction: column; gap: 8px; }
  .provider-actions { justify-content: flex-start; }
}
/* Processing updates are read-only and never reset chat/provider drafts. */
.book-progress{display:flex;flex-direction:column;gap:6px;min-width:150px;margin-top:9px}.book-progress progress{width:100%;height:6px}.book-progress small,.previous-index{font-size:10px;color:var(--muted)}.previous-index{display:block;margin-top:4px}
.book-error{display:block;max-width:220px;margin-top:7px;color:#a54337;font-size:11px}
.original-page-preview{display:block;max-width:100%;height:auto;margin-top:16px;border:1px solid var(--border)}
dialog[open]{display:flex;flex-direction:column;max-height:90dvh;overflow:hidden}dialog .dialog-heading{flex-shrink:0}#dialog-body{overflow:auto;min-height:0}.extraction-dialog{width:820px}.extraction-dialog .page-text{max-height:35dvh}
.destructive{background:#a3332c;color:#fff;border-color:#a3332c}.destructive:hover{background:#852720}.danger-zone{border-color:#ebd5d1}.extraction-form{display:grid;gap:16px;grid-template-columns:1fr 1fr}.extraction-job{grid-template-columns:minmax(180px,1fr) 110px auto auto}.extraction-form input[type=file]{font-size:12px}#extraction-page{max-width:220px;margin:8px 0}#extraction-text{max-height:48dvh}#extraction-preview .original-page-preview{max-height:900px;object-fit:contain;object-position:left}
.chat-choices{display:grid;gap:8px;margin:14px 0}.chat-choice{white-space:normal;text-align:left;justify-content:flex-start;line-height:1.5;max-width:100%}
@media(max-width:700px){.extraction-form{grid-template-columns:1fr}.extraction-job{grid-template-columns:minmax(0,1fr) auto}.extraction-job progress{width:100%;grid-row:2}.extraction-job .table-actions{grid-row:2}.extraction-form .heading-actions{flex-wrap:wrap}}
[hidden] { display: none !important; }
.references { margin-top: 16px; border: 1px solid var(--line, #dbe4e1); border-radius: 12px; padding: 12px; }
.references > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.references > summary svg { width: 18px; height: 18px; }
.assignment-page, .assignment-question { margin: 16px 0; padding: 16px; border: 1px solid var(--line, #dbe4e1); border-radius: 12px; min-width: 0; }
.assignment-question label { display: block; margin-bottom: 12px; }
.assignment-question textarea, .assignment-page-text { width: 100%; min-height: 100px; }
.assignment-preview { margin: 12px 0; }
