:root{color-scheme:light;font-family:Inter,Arial,sans-serif;background:#f3f5f6;color:#18232c}*{box-sizing:border-box}body{margin:0;min-width:1024px;background:#f3f5f6}button,input{font:inherit}button:focus-visible,input:focus-visible{outline:3px solid rgba(42,103,130,.24);outline-offset:2px}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:48px}.auth-intro{padding:72px clamp(52px,7vw,110px);display:flex;flex-direction:column;justify-content:center;background:#1f3b49;color:#f7fbfc}.brand-mark{width:48px;height:48px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.42);border-radius:12px;margin-bottom:36px;font-weight:600}.eyebrow{margin:0 0 10px;text-transform:uppercase;letter-spacing:.12em;font-size:12px;color:#607582}.auth-intro .eyebrow{color:#a9c1cc}.auth-intro h1{max-width:650px;margin:0;font-size:clamp(36px,4vw,58px);line-height:1.08;font-weight:500}.intro-copy{max-width:600px;margin:28px 0;color:#c7d8df;font-size:17px;line-height:1.6}.trust-list{list-style:none;padding:0;margin:20px 0 0;display:grid;grid-gap:13px;gap:13px;color:#dce8ec}.trust-list li:before{content:"✓";margin-right:10px;color:#77c5a2}.auth-panel{width:min(100%,680px);background:#fff;padding:44px clamp(56px,6vw,90px);display:flex;flex-direction:column;justify-content:center;border:1px solid #dce3e7;border-radius:12px}.auth-tabs{display:flex;border-bottom:1px solid #dce3e7;margin-bottom:38px}.auth-tabs button{border:0;background:transparent;padding:12px 2px;margin-right:28px;color:#74828c;cursor:pointer;border-bottom:2px solid transparent}.auth-tabs button[aria-selected=true]{color:#173747;border-bottom-color:#2a677f}.panel-heading{margin-bottom:28px}.panel-heading h2{margin:0;font-size:30px;font-weight:500}.field-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px}.field{display:grid;grid-gap:7px;gap:7px;margin-bottom:18px;color:#43535e;font-size:13px}.field input{width:100%;border:1px solid #c8d2d8;border-radius:7px;padding:12px 13px;background:#fff;color:#17232b}.field input:hover{border-color:#9dabb4}.consent{display:flex;align-items:flex-start;gap:10px;margin:5px 0 20px;color:#52626d;font-size:13px;line-height:1.45}.consent input{margin-top:3px}.button{border:1px solid #bdc8ce;background:#fff;color:#203640;border-radius:7px;padding:10px 15px;cursor:pointer}.button.primary{background:#245a70;border-color:#245a70;color:#fff}.button.full{width:100%;padding:13px 16px}.button:disabled{opacity:.55;cursor:not-allowed}.form-error{color:#a23838;background:#fff3f2;border-left:3px solid #c44b4b;padding:10px 12px;font-size:13px}.form-note{text-align:center;color:#7a8790;font-size:12px;margin:16px 0 0}.status-screen{min-height:100vh;display:grid;place-items:center}.status-card{min-width:340px;padding:36px;background:#fff;border:1px solid #dce3e7;border-radius:12px;text-align:center}.spinner{width:28px;height:28px;margin:0 auto 16px;border:3px solid #d7e0e5;border-top-color:#2a677f;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.cabinet-shell{min-height:100vh}.cabinet-header{height:72px;padding:0 42px;background:#fff;border-bottom:1px solid #d9e1e5;display:flex;justify-content:space-between;align-items:center}.cabinet-header .eyebrow{margin-bottom:3px}.header-user{display:flex;align-items:center;gap:18px}.cabinet-content{max-width:1240px;margin:0 auto;padding:62px 42px}.welcome h1{margin:0 0 8px;font-size:38px;font-weight:500}.welcome>p:last-child{color:#64747e}.cabinet-grid{display:grid;grid-template-columns:1.15fr .85fr;grid-gap:24px;gap:24px;margin-top:42px}.access-card,.start-card{background:#fff;border:1px solid #d8e1e5;border-radius:12px;padding:28px}.access-card{border-left:5px solid #4f8b72}.access-card.access-cancelled,.access-card.access-expired{border-left-color:#b46b51}.access-card.access-access_suspended{border-left-color:#b14242}.card-label{color:#6c7b85;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.access-card h2,.start-card h2{font-weight:500;margin:10px 0}.access-card>p,.start-card>p{color:#65747e;line-height:1.55}.access-card dl{margin:24px 0 0;display:grid;grid-gap:12px;gap:12px}.access-card dl div{display:grid;grid-template-columns:100px 1fr;grid-gap:12px;gap:12px;font-size:12px}.access-card dt{color:#7b8992}.access-card dd{margin:0;font-family:Consolas,monospace;overflow-wrap:anywhere}.start-card .button{margin-top:18px}.session-actions{display:flex;gap:10px;flex-wrap:wrap}.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}.admin-link{display:inline-block;margin-top:14px;text-decoration:none}.platform-shell{min-height:100vh}.platform-content{max-width:1420px;margin:0 auto;padding:48px 42px}.platform-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px}.platform-heading h1{margin:0;font-size:38px;font-weight:500}.platform-heading>p{color:#687985}.platform-security{margin-bottom:28px}.platform-security .knowledge-form{max-width:680px;margin-top:0}.form-success{color:#32664f;background:#edf7f1;border-left:3px solid #4f8b72;padding:10px 12px;font-size:13px}.platform-table-wrap{overflow:hidden;background:#fff;border:1px solid #d8e1e5;border-radius:12px}.platform-table{width:100%;border-collapse:collapse}.platform-table td,.platform-table th{padding:17px 18px;border-bottom:1px solid #e3e8eb;text-align:left;vertical-align:middle}.platform-table th{background:#f8fafb;color:#667680;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.platform-table tbody tr:last-child td{border-bottom:0}.platform-table td small,.platform-table td strong{display:block}.platform-table td small{margin-top:4px;color:#75848d}.status-pill{display:inline-block;padding:5px 9px;border-radius:999px;background:#e8f3ed;color:#32664f;font-size:12px}.status-pill.status-cancelled,.status-pill.status-expired{background:#f8ece7;color:#934f38}.status-pill.status-access_suspended{background:#f8e6e6;color:#9b3434}.admin-actions{display:flex;gap:8px;align-items:center}.admin-actions select{border:1px solid #bdc8ce;border-radius:7px;padding:10px;background:#fff}.button.danger{border-color:#c48787;color:#9b3434}.knowledge-layout{max-width:1500px;margin:0 auto;padding:34px 42px 60px;display:grid;grid-template-columns:360px 1fr;grid-gap:28px;gap:28px}.knowledge-sidebar,.knowledge-workspace{min-width:0}.knowledge-sidebar{background:#fff;border:1px solid #d8e1e5;border-radius:12px;padding:22px;align-self:start}.knowledge-sidebar .platform-heading{margin-bottom:18px}.knowledge-sidebar .platform-heading h1{font-size:28px}.knowledge-list{display:grid;grid-gap:8px;gap:8px;margin-bottom:20px;max-height:420px;overflow:auto}.knowledge-list button{border:1px solid #dce3e7;border-radius:8px;background:#fff;padding:12px;text-align:left;cursor:pointer}.knowledge-list button.active{border-color:#2a677f;background:#eef6f8;box-shadow:inset 3px 0 #2a677f}.knowledge-list small,.knowledge-list strong{display:block}.knowledge-list small{color:#71818b;margin-top:5px;line-height:1.35}.knowledge-workspace{display:grid;align-content:start;grid-gap:20px;gap:20px}.knowledge-form,.version-card{background:#fff;border:1px solid #d8e1e5;border-radius:12px;padding:22px}.knowledge-form{display:grid;grid-gap:13px;gap:13px;margin-top:18px}.knowledge-form.horizontal{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}.knowledge-form h2{grid-column:1/-1;margin:0 0 4px;font-size:20px;font-weight:500}.chunk-editor label,.knowledge-form label{display:grid;grid-gap:6px;gap:6px;color:#53636d;font-size:12px}.chunk-editor input,.chunk-editor textarea,.knowledge-form input,.knowledge-form select{width:100%;border:1px solid #c8d2d8;border-radius:7px;padding:10px 11px;background:#fff;color:#17232b;font:inherit}.form-actions{grid-column:1/-1;display:flex;gap:8px}.version-stack{display:grid;grid-gap:16px;gap:16px}.version-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.version-head h2{margin:10px 0 6px;font-size:22px;font-weight:500}.version-head p{margin:0;color:#6d7c86}.status-pill.knowledge-draft,.status-pill.knowledge-testing{background:#edf0f3;color:#566671}.status-pill.knowledge-retired{background:#f2ece9;color:#795a4e}.chunk-editor{display:grid;grid-gap:13px;gap:13px;margin-top:22px;padding-top:20px;border-top:1px solid #e1e7ea}.chunk-editor textarea{min-height:130px;resize:vertical;line-height:1.5}.chunk-editor .form-note{text-align:left;margin:0}.empty-state{color:#73828c;padding:20px;text-align:center;background:#f8fafb;border-radius:8px}.control-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:12px;gap:12px;margin:22px 0 0}.control-grid div{background:#f6f8f9;border-radius:8px;padding:13px}.control-grid dt{color:#70808a;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.control-grid dd{margin:7px 0 0;font-family:Consolas,monospace;overflow-wrap:anywhere}.embedding-list{display:grid;grid-gap:8px;gap:8px;margin-top:16px}.embedding-list>div{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:12px;gap:12px;border-top:1px solid #e2e7ea;padding-top:12px}.embedding-list small,.embedding-list span{color:#667680}.tooth-chart-card{margin-top:24px;padding:28px;background:#fff;border:1px solid #d8e1e5;border-radius:12px}.issue-card{margin-top:16px;border-width:2px;background:color-mix(in srgb,var(--issue-color) 9%,white);border-color:var(--issue-color)}.issue-card textarea{box-sizing:border-box;width:100%;min-height:88px;margin-top:12px;padding:10px;border:1px solid color-mix(in srgb,var(--issue-color) 65%,#9aa7ae);border-radius:8px;resize:vertical}.issue-legal_regulatory{--issue-color:#a33b3b}.issue-medical_logic{--issue-color:#b66b13}.issue-contradiction{--issue-color:#7b4ab3}.issue-missing_data{--issue-color:#2f70a8}.issue-structure_formatting{--issue-color:#397d68}.issue-language_terminology{--issue-color:#66727a}.severity-normal{border-width:1px}.severity-critical{box-shadow:0 0 0 2px color-mix(in srgb,var(--issue-color) 25%,transparent)}.final-document-editor{box-sizing:border-box;width:100%;min-height:420px;padding:14px;border:1px solid #9aa7ae;border-radius:8px;font:inherit;line-height:1.5;resize:vertical}.tooth-chart-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.tooth-chart-heading h2{margin:8px 0;font-weight:500}.tooth-chart-heading p{color:#65747e}.tooth-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-gap:9px;gap:9px;margin-top:22px}.tooth-cell{display:grid;grid-gap:7px;gap:7px;min-width:0;padding:10px;border:1px solid #d8e1e5;border-radius:8px;background:#f8fafb}.tooth-cell.needs-review{border-color:#d69249;background:#fff7ea}.tooth-cell select,.tooth-confirm input{width:100%;padding:8px;border:1px solid #bdc8ce;border-radius:6px;background:#fff}.tooth-cell small{color:#6f7e87;overflow-wrap:anywhere}.kpu-result,.tooth-confirm{display:flex;align-items:flex-end;gap:18px;margin-top:24px;padding-top:20px;border-top:1px solid #e1e7ea}.tooth-confirm label{display:grid;grid-gap:6px;gap:6px;color:#53636d;font-size:12px}.kpu-result{align-items:center;flex-wrap:wrap}.kpu-result strong{font-size:22px}.structure-review>p{color:#65747e;line-height:1.55}.structure-review details{margin:18px 0}.structure-review summary{cursor:pointer;color:#245a70}.structure-review pre{max-height:360px;overflow:auto;white-space:pre-wrap;padding:14px;border:1px solid #d8e1e5;border-radius:8px;background:#f8fafb;font:13px/1.5 Consolas,monospace}.visit-editor-list{display:grid;grid-gap:16px;gap:16px;margin:20px 0}.visit-editor{padding:18px;border:1px solid #d8e1e5;border-radius:9px;background:#fbfcfc}.visit-editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.structure-sensitive,.visit-editor label{display:grid;grid-gap:7px;gap:7px;margin-top:12px;color:#53636d;font-size:12px}.structure-sensitive textarea,.visit-editor input,.visit-editor textarea{width:100%;padding:10px;border:1px solid #bdc8ce;border-radius:7px;background:#fff;font:inherit}.visit-editor textarea{min-height:180px;resize:vertical;line-height:1.5}.structure-sensitive{margin:20px 0}.structure-sensitive textarea{min-height:100px;resize:vertical}.processing-steps{margin:20px 0;padding:0;list-style:none;display:grid;grid-gap:8px;gap:8px}.processing-steps li{padding:10px 12px;border-left:3px solid #c7d1d6;background:#f7f9fa;color:#687985}.processing-steps li.done{border-left-color:#4f8b72;color:#315f4c;background:#edf7f1}.processing-steps li.active{border-left-color:#2a677f;color:#245a70;background:#eef6f8}.model-response>p,.protected-context>p{color:#65747e;line-height:1.55}.protected-visits{display:grid;grid-gap:14px;gap:14px;margin:18px 0}.protected-visits article{padding:16px;border:1px solid #d8e1e5;border-radius:9px;background:#fbfcfc}.protected-visits pre{max-height:420px;overflow:auto;white-space:pre-wrap;margin:12px 0 0;padding:14px;border-radius:8px;background:#f3f6f7;font:13px/1.5 Consolas,monospace}.assistant-message{margin:20px 0;padding:20px;border:1px solid #cadbe2;border-radius:12px 12px 12px 3px;background:#f1f7f9;line-height:1.6}.assistant-message>p:first-child{margin-top:0}.model-answer-item{padding:14px 0;border-top:1px solid #d7e4e9}.model-answer-item p{margin:7px 0 0}.next-step{padding:13px 15px;border-left:3px solid #2a677f;background:#eef6f8;color:#245a70!important}