:root{color-scheme:dark;--bg:#0b1220;--panel:#101c2e;--panel2:#132239;--text:#edf4ff;--muted:#a8b6ca;--line:#263a55;--teal:#58dfcb;--blue:#89b8ff;--amber:#f3c579}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 75% 0%,#142b42 0,transparent 44%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.6}.topbar{height:76px;max-width:1180px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12}.brand{display:flex;align-items:center;gap:12px;color:var(--text);text-decoration:none;font-weight:700;letter-spacing:.01em}.brand-mark{display:grid;place-items:center;width:40px;height:34px;border:1px solid #58dfcb70;border-radius:10px;color:var(--teal);font-size:.8rem;letter-spacing:.1em}.topbar nav{display:flex;align-items:center;gap:28px}.topbar nav a,footer a{color:var(--muted);text-decoration:none;font-size:.92rem}.topbar nav a:hover,footer a:hover,.card a:hover{color:var(--teal)}main{max-width:1180px;margin:auto;padding:0 28px}.hero{min-height:500px;padding:86px 0 70px;display:grid;grid-template-columns:1.4fr .8fr;align-items:center;gap:70px}.eyebrow{margin:0 0 15px;color:var(--teal);font-size:.77rem;font-weight:750;letter-spacing:.14em;text-transform:uppercase}.hero .eyebrow{display:flex;align-items:center;gap:10px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--teal);box-shadow:0 0 14px #58dfcb80}.hero h1{margin:0;font-size:clamp(2.8rem,6vw,5.2rem);line-height:1.05;letter-spacing:-.055em}.hero h1 span{color:var(--blue)}.lede{max-width:650px;margin:25px 0 30px;color:var(--muted);font-size:1.12rem}.actions{display:flex;flex-wrap:wrap;gap:12px}.button{min-height:46px;padding:11px 17px;display:inline-flex;align-items:center;gap:12px;border-radius:10px;text-decoration:none;font-size:.93rem;font-weight:700}.primary{background:var(--teal);color:#09201f}.primary:hover{background:#8cecdf}.secondary{border:1px solid var(--line);color:var(--text);background:#ffffff05}.secondary:hover{border-color:var(--blue)}.notice{padding:24px;display:flex;gap:15px;border:1px solid #80683b77;border-radius:16px;background:linear-gradient(135deg,#30271d,#171e29 75%)}.notice-icon{flex:0 0 27px;height:27px;display:grid;place-items:center;border:1px solid var(--amber);border-radius:50%;color:var(--amber);font-weight:800}.notice strong{color:#ffe2b0}.notice p{margin:7px 0 0;color:#d2c7b8;font-size:.92rem}.status-panel{padding:28px 32px;display:flex;align-items:center;justify-content:space-between;gap:30px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(115deg,var(--panel2),var(--panel))}.status-panel .eyebrow{margin-bottom:7px}.status-panel h2,.section-heading h2,.deployment-card h2{margin:0;font-size:1.65rem;letter-spacing:-.025em}.status-panel p:not(.eyebrow){max-width:760px;margin:8px 0 0;color:var(--muted)}.status-badge{flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid #58dfcb52;border-radius:999px;color:#b9f6ed;font-size:.82rem}.section{padding:92px 0 72px}.section-heading{max-width:660px;margin-bottom:30px}.section-heading h2{font-size:2.25rem}.section-heading>p:last-child{color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{min-height:220px;padding:24px;border:1px solid var(--line);border-radius:15px;background:#101a2a}.card-number{color:var(--teal);font-size:.78rem;font-weight:800;letter-spacing:.08em}.card h3{margin:15px 0 7px;font-size:1.15rem}.card p{min-height:74px;margin:0 0 16px;color:var(--muted);font-size:.92rem}.card a{color:var(--blue);text-decoration:none;font-size:.9rem;font-weight:700}.link-list{display:grid;gap:9px;margin-top:14px}.link-list a{padding-bottom:8px;border-bottom:1px solid #ffffff12;font-size:.86rem}.workspace .card{min-height:100%}.workspace .card p{min-height:0}.deployment-card{padding:30px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #314865;border-radius:18px;background:linear-gradient(110deg,#152b43,#101b2b)}.deployment-card .eyebrow{margin-bottom:6px}.deployment-card p:last-child{max-width:720px;margin:8px 0 0;color:var(--muted)}footer{max-width:1180px;margin:65px auto 0;padding:22px 28px;display:flex;justify-content:space-between;gap:18px;border-top:1px solid #ffffff12;color:#8191a7;font-size:.84rem}@media(max-width:760px){.topbar{padding:0 18px}.topbar nav{gap:13px}.topbar nav a{font-size:.8rem}.topbar nav a:first-child{display:none}main{padding:0 18px}.hero{min-height:auto;padding:62px 0 48px;grid-template-columns:1fr;gap:32px}.hero h1{font-size:clamp(2.7rem,12vw,4.2rem)}.status-panel,.deployment-card{align-items:flex-start;flex-direction:column;padding:24px}.cards{grid-template-columns:1fr}.card{min-height:0}.card p{min-height:0}footer{margin-top:45px;padding:20px 18px;flex-wrap:wrap}footer span:first-child{flex-basis:100%}}

.status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.status-card{padding:23px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(135deg,#132239,#101a2a)}.status-card .label{display:block;margin-bottom:13px;color:var(--teal);font-size:.72rem;font-weight:800;letter-spacing:.13em}.status-card strong{display:block;font-size:1.1rem}.status-card p{margin:9px 0 15px;color:var(--muted);font-size:.9rem}.status-card>a{color:var(--blue);font-size:.88rem;font-weight:700;text-decoration:none}.mini-stats,.score-row{display:flex;gap:10px;flex-wrap:wrap}.mini-stats span,.score-row span{padding:8px 10px;border:1px solid #ffffff12;border-radius:9px;color:var(--muted);font-size:.78rem}.mini-stats b,.score-row b{display:block;color:var(--text);font-size:.84rem}.workboard{overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#101a2a}.task{min-height:82px;padding:16px 20px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:14px;border-bottom:1px solid #ffffff10;cursor:pointer}.task:last-child{border-bottom:0}.task input{width:18px;height:18px;accent-color:var(--teal)}.task span b,.task span small{display:block}.task span small{margin-top:4px;color:var(--muted);font-size:.85rem}.task>a{color:var(--blue);font-size:.83rem;font-weight:700;text-decoration:none}.task:has(input:checked) span b{text-decoration:line-through;color:#a8b6ca}.text-button{margin-top:12px;padding:7px 0;border:0;background:none;color:var(--muted);cursor:pointer}.text-button:hover{color:var(--teal)}.notebook-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.notebook-link{min-height:128px;padding:16px;display:flex;flex-direction:column;gap:5px;border:1px solid var(--line);border-radius:13px;background:#101a2a;color:var(--text);text-decoration:none;transition:transform .15s,border-color .15s}.notebook-link:hover{transform:translateY(-2px);border-color:#58dfcb85}.notebook-link>span{color:var(--teal);font-size:.74rem;font-weight:800;letter-spacing:.1em}.notebook-link b{font-size:.91rem}.notebook-link small{color:var(--muted);font-size:.78rem}.notebook-link.featured{border-color:#58dfcb65;background:linear-gradient(145deg,#163145,#101a2a)}.workflow-list{display:grid;gap:9px;margin:0 0 20px}.workflow-row{padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid var(--line);border-radius:11px;background:#101a2a;color:var(--text);text-decoration:none}.workflow-row:hover{border-color:#58dfcb85}.workflow-row small{display:block;color:var(--muted);font-size:.78rem}.run-state{flex:0 0 auto;padding:5px 9px;border:1px solid #ffffff20;border-radius:999px;color:var(--muted);font-size:.76rem}.run-state.success{border-color:#58dfcb55;color:#b9f6ed}.run-state.failure{border-color:#e18a8a66;color:#ffc0c0}.section.compact{padding-top:45px}.workspace .section-heading{margin-bottom:22px}.deployment-card code{color:#d9e8ff;background:#ffffff12;padding:2px 5px;border-radius:5px}
@media(max-width:900px){.notebook-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.status-grid{grid-template-columns:1fr}.notebook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.task{grid-template-columns:22px 1fr}.task>a{grid-column:2}.workflow-row{align-items:flex-start;flex-direction:column}.topbar nav a:nth-child(2){display:none}}
/* Interactive case review */
.case-section { background: linear-gradient(145deg, rgba(20, 44, 70, .58), rgba(10, 18, 32, .2)); border: 1px solid rgba(133, 178, 215, .16); border-radius: 26px; padding: clamp(22px, 4vw, 42px); }
.api-connect { background: rgba(8, 15, 26, .58); border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 16px; padding: 18px; margin: 22px 0; }
.api-connect > label, .field-label { display: block; font-weight: 700; margin-bottom: 9px; }
.api-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.api-row input, .chat-form input, .case-form textarea, .token-setting select { background:#0b1422; border:1px solid rgba(170,195,220,.25); color:#edf4fb; border-radius:10px; padding:12px 14px; font:inherit; }
.api-row input { flex:1 1 240px; }
.api-connect small, .case-section small { display:block; color:#9fb1c4; margin-top:10px; line-height:1.5; }
#api-status.success { color:#84e1b4; } #api-status.failure { color:#ffadad; }
.case-form { display:grid; gap:12px; }
.upload-control { display:flex; align-items:center; gap:14px; border:1px dashed rgba(155,192,225,.42); background:rgba(7,15,26,.45); border-radius:16px; padding:17px; cursor:pointer; }
.upload-control b { display:block; } .upload-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:#173b58; font-size:27px; }
.upload-control input { max-width:100%; margin-left:auto; }
.image-preview-wrap { display:flex; align-items:start; gap:14px; flex-wrap:wrap; }
.image-preview-wrap img { max-width:min(100%,460px); max-height:380px; object-fit:contain; background:#050a11; border-radius:12px; }
.case-form textarea { width:100%; resize:vertical; min-height:140px; }
.form-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.token-setting { display:flex; gap:9px; align-items:center; color:#afc0d1; }
.token-setting select { padding:9px 12px; }
.button:disabled { opacity:.55; cursor:wait; }
.clinical-warning, .caveat { color:#e8c98f; line-height:1.6; font-size:.9rem; }
.case-results { margin-top:30px; }
.result-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.result-card { background:rgba(8,15,26,.72); border:1px solid rgba(170,195,220,.16); border-radius:16px; padding:20px; min-width:0; }
.result-title { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:14px; }
.result-card pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; line-height:1.65; color:#edf4fb; margin:0; }
.difference-row { border-top:1px solid rgba(170,195,220,.13); padding:12px 0; display:grid; gap:5px; }
.difference-row span { color:#becddd; }
.case-chat { margin-top:18px; background:rgba(8,15,26,.58); border:1px solid rgba(170,195,220,.16); border-radius:16px; padding:20px; }
.case-chat h3 { margin:.2em 0; font-size:1.3rem; }
.case-chat p { color:#b9c9d8; }
.chat-thread { display:grid; gap:10px; margin:18px 0; max-height:380px; overflow:auto; }
.chat-message { max-width:88%; padding:12px 14px; border-radius:13px; background:#142338; }
.chat-message.user { justify-self:end; background:#173b58; }
.chat-message p { white-space:pre-wrap; margin:5px 0 0; color:#edf4fb; }
.chat-form { display:flex; gap:10px; }
.chat-form input { flex:1; min-width:0; }
.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; }
@media (max-width:760px) { .result-grid { grid-template-columns:1fr; } .upload-control { align-items:flex-start; flex-wrap:wrap; } .upload-control input { margin:6px 0 0; width:100%; } .chat-message { max-width:100%; } }
