:root{font-family:Segoe UI,Arial,sans-serif;color:#1d2928;background:#f7f9f8;font-size:14px}[hidden]{display:none!important}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1{font-size:21px;font-weight:650}h2{font-size:19px;font-weight:650}h3{font-size:16px;font-weight:650}.muted{color:#697875}.error{color:#a22626}.auth-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:#f5f8f7}.auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:34px;font-size:18px;font-weight:650;color:#234a43}.auth-brand img{width:36px;height:36px;object-fit:contain}.auth-form{width:min(100%,380px);background:white;border:1px solid #dbe4e1;border-radius:6px;padding:30px;box-shadow:0 12px 36px #17372d0a}.auth-form p{margin-bottom:26px}.auth-form label,.inline-toolbar label,.inline-form label{display:flex;flex-direction:column;gap:7px;font-weight:600}.auth-form label{margin-bottom:17px}input,select,textarea{background:white;border:1px solid #cbd7d3;border-radius:5px;outline:none;color:#1d2928}input:focus,select:focus,textarea:focus{border-color:#168168;box-shadow:0 0 0 3px #16906e1f}input,select{height:40px;padding:0 11px}textarea{padding:12px;resize:vertical;min-height:56px}.primary,.secondary,.upload-control{min-height:39px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:5px;padding:0 15px;font-weight:600}.primary{background:#147963;color:white;border:1px solid #147963}.primary:hover{background:#0f644f}.auth-form .primary{width:100%;margin-top:3px}.secondary,.upload-control{background:#fff;color:#245349;border:1px solid #cbd7d3}.secondary:hover,.upload-control:hover{background:#eef6f2}.lucide{width:16px;height:16px;stroke-width:2}.workspace{display:flex;min-height:100vh}.sidebar{width:250px;flex:0 0 250px;background:#192723;color:#f6fbf9;display:flex;flex-direction:column;padding:17px 12px;gap:15px}.brand{height:42px;padding:0 10px;display:flex;align-items:center;gap:10px;font-size:15px}.brand img{width:26px;height:26px;object-fit:contain}.sidebar nav{display:flex;flex-direction:column;gap:4px}.nav-button,.conversation-button{width:100%;border:0;background:transparent;color:#c9d8d3;text-align:left;border-radius:5px;display:flex;align-items:center;gap:11px;min-height:38px;padding:0 11px}.nav-button:hover,.conversation-button:hover{background:#2c4039;color:white}.nav-button.active{background:#285b49;color:white}.side-heading{display:flex;align-items:center;justify-content:space-between;color:#9db3ab;font-size:12px;text-transform:uppercase;padding:4px 8px}.icon-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:inherit;border-radius:5px}.icon-button:hover{background:#dfe9e5}.sidebar .icon-button:hover{background:#2c4039}.conversation-list{flex:1;min-height:50px;overflow:auto}.conversation-button{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-button.active{background:#314a40;color:white}.sidebar-footer{border-top:1px solid #345047;padding:12px 7px 0;display:flex;align-items:center;justify-content:space-between;min-height:45px}.main-content{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{min-height:75px;padding:13px 28px;border-bottom:1px solid #dfe8e3;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar h1{margin:2px 0 0}.eyebrow{font-size:11px;text-transform:uppercase;font-weight:700;color:#70847b}.status-pill{background:#f8eed4;color:#7a5613;border-radius:4px;padding:7px 10px;font-size:12px;font-weight:600;white-space:nowrap}.status-pill.connected{background:#dcefe6;color:#225a45}.mobile-menu{display:none}.notice{padding:10px 18px;background:#fff4d8;color:#684f16;border-bottom:1px solid #eadfac}.view{flex:1;min-height:0}.chat-view{display:flex;flex-direction:column}.chat-empty{margin:auto;text-align:center;padding:35px}.chat-empty img{width:76px;height:76px;object-fit:contain;margin-bottom:18px}.chat-empty h2{margin-bottom:9px}.chat-empty p{margin-bottom:22px}.chat-active{display:flex;flex-direction:column;flex:1;min-height:0}.chat-context{height:54px;background:#eef4f1;border-bottom:1px solid #dfe8e3;padding:0 26px;display:flex;align-items:center;justify-content:space-between}.chat-context>div{display:flex;gap:12px;align-items:center}.messages{flex:1;min-height:250px;overflow-y:auto;padding:25px max(24px,calc((100% - 860px)/2)) 18px;display:flex;flex-direction:column;gap:18px}.message{max-width:85%;line-height:1.52;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#e0eee8;padding:11px 15px;border-radius:6px}.message.assistant{align-self:flex-start;padding:4px 0}.message.tool{align-self:flex-start;border-left:3px solid #96bdae;background:#f0f5f2;padding:9px 12px;font-size:12px;color:#536a61}.message.error{padding:10px 12px;border:1px solid #e9c7c7;background:#fff2f1;border-radius:5px}.message.notice{background:#f7f9ef;padding:9px 12px;color:#526440;border-radius:5px}.approval{border:1px solid #d7c8a6;background:#fffaf0;padding:14px;border-radius:5px;margin:0 0 12px}.approval strong{display:block;margin-bottom:6px}.approval-actions{display:flex;gap:9px;margin-top:12px}.composer{margin:0 auto 22px;width:min(calc(100% - 40px),860px);display:flex;align-items:flex-end;gap:9px;border:1px solid #ccd9d3;border-radius:6px;background:white;padding:7px}.composer textarea{flex:1;border:0;box-shadow:none;max-height:160px}.send-button{width:36px;height:36px;border:0;border-radius:5px;background:#147963;color:white;display:flex;align-items:center;justify-content:center;flex:0 0 36px}.content-view{padding:28px max(24px,calc((100% - 1050px)/2));overflow:auto}.section-title{display:flex;justify-content:space-between;align-items:start}.section-title h2{margin-bottom:4px}.inline-toolbar,.inline-form{display:flex;align-items:end;gap:11px;flex-wrap:wrap}.inline-toolbar{padding:20px 0 16px;border-bottom:1px solid #dce6e1}.inline-toolbar select{min-width:250px}.cluster-list{padding:8px 0}.cluster-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:70px;border-bottom:1px solid #e0e8e4}.cluster-row .number{color:#6d8179;font-weight:700}.cluster-row strong,.cluster-row small{display:block;overflow-wrap:anywhere}.cluster-row small{color:#6d8179;margin-top:3px}.import-section{margin-top:30px;padding-top:25px;border-top:1px solid #dce6e1}.import-section h3{margin-bottom:6px}.inline-form{margin:18px 0}.inline-form input{width:min(420px,70vw)}.upload-control{position:relative;overflow:hidden;cursor:pointer}.upload-control input{position:absolute;inset:0;opacity:0;cursor:pointer}.account-detail{margin:24px 0;font-size:14px}.device-flow{margin-top:24px;padding:18px;border-left:3px solid #147963;background:#edf5f0;max-width:450px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.device-flow strong{font-size:27px;letter-spacing:2px}.device-flow a{color:#146e5c;font-weight:600}@media(max-width:720px){.sidebar{position:fixed;z-index:9;height:100vh;left:-260px;transition:left .2s;box-shadow:8px 0 24px #0014}.sidebar.open{left:0}.mobile-menu{display:inline-flex}.topbar{padding:11px 16px;min-height:66px}.topbar h1{font-size:17px}.content-view{padding:20px 16px}.chat-context{padding:0 14px}.messages{padding:20px 17px}.message{max-width:94%}.cluster-row{grid-template-columns:24px minmax(0,1fr);padding:10px 0}.cluster-row button{grid-column:2;justify-self:start}.inline-toolbar select{min-width:200px}}
.cluster-actions{display:flex;align-items:center;gap:5px}.cluster-actions .secondary{margin-right:7px}.cluster-actions .icon-button{color:#45665b}.cluster-actions .icon-button.danger{color:#a13a37}.cluster-actions .icon-button.danger:hover{background:#fbeae8}.cluster-name-input{width:min(100%,320px);font-weight:600}.message.tool summary{cursor:pointer;font-weight:600}.message.tool summary:hover{color:#1c6654}.tool-result{max-width:min(700px,75vw);overflow:auto;margin:10px 0 0;padding:10px;background:#fff;border:1px solid #d6e3dc;border-radius:4px;white-space:pre;font-size:11px;line-height:1.45}@media(max-width:720px){.cluster-actions{grid-column:2;flex-wrap:wrap}.tool-result{max-width:85vw}}
.message.assistant{white-space:normal}.message.assistant p,.message.assistant ul,.message.assistant ol{margin:0 0 10px}.message.assistant>:last-child{margin-bottom:0}.message.assistant ul,.message.assistant ol{padding-left:22px}.message.assistant li{margin:3px 0}.message.assistant code{font-family:Consolas,monospace;background:#edf2ef;border-radius:3px;padding:1px 4px}.message.assistant pre{overflow:auto;background:#eef3f0;border-radius:4px;padding:10px}.message.assistant pre code{background:transparent;padding:0}.message.assistant a{color:#136d59}.message.evidence{max-width:85%;font-size:12px;color:#547064;border-left:2px solid #a8c4b7;padding:3px 9px;line-height:1.4}.tool-details{margin-top:3px}.tool-details summary{cursor:pointer;color:#537268;font-size:11px}.tool-details summary:hover{text-decoration:underline}.tool-details .tool-result{max-width:min(700px,75vw)}
.evidence-group{align-self:flex-start;max-width:85%;font-size:12px;color:#547064}.evidence-group>summary{cursor:pointer;list-style:none;padding:5px 0}.evidence-group>summary::-webkit-details-marker{display:none}.evidence-group>summary:hover{color:#1c6654}.evidence-group[open]{width:min(100%,700px);border-left:2px solid #a8c4b7;padding-left:10px}.evidence-group .message.evidence{max-width:100%;margin:8px 0;border-left:0;padding:0}.evidence-group .message.error{margin:8px 0}.message.assistant h1,.message.assistant h2,.message.assistant h3{font-size:15px;margin:0 0 9px;letter-spacing:0}@media(max-width:720px){.evidence-group{max-width:94%}}
.cluster-report{flex:0 0 auto;border-bottom:1px solid #d9e3de;background:#f4f8f6}.cluster-report.healthy{background:#edf8f2}.cluster-report.warning{background:#fff8e8}.cluster-report.critical{background:#fff0ef}.cluster-report.unknown{background:#f3f5f5}.report-inner{width:min(calc(100% - 48px),860px);margin:auto;padding:13px 0 12px}.report-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.report-status{display:flex;align-items:center;gap:9px;min-width:0}.report-status>span{font-size:19px;line-height:1}.report-status strong,.report-status small{display:block}.report-status strong{font-size:15px;line-height:1.3}.report-status small{font-size:11px;color:#5e6f68;margin-top:2px}.report-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:11px 0 8px}.report-metric{display:flex;flex-direction:column;gap:1px;padding:2px 10px;border-left:1px solid #cbd9d2;min-width:0}.report-metric:first-child{padding-left:0;border-left:0}.report-metric strong{font-size:18px;line-height:1.2;font-weight:700}.report-metric span{font-size:11px;color:#5e6f68}.report-headline{font-size:12px;color:#344e43;margin:0;line-height:1.4}.cluster-report.warning .report-headline{color:#72531c}.cluster-report.critical .report-headline{color:#8d2825}@media(max-width:720px){.report-inner{width:calc(100% - 34px)}.report-metrics{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:8px}.report-metric:nth-child(4){padding-left:0;border-left:0}.report-metric strong{font-size:16px}}
.port-forward{align-self:flex-start;max-width:100%;border:1px solid #bcd9ca;background:#f1faf5;border-radius:5px;padding:13px 15px;display:flex;flex-direction:column;gap:9px}.port-forward strong{font-size:13px;overflow-wrap:anywhere}.port-forward-actions{display:flex;gap:9px;flex-wrap:wrap}.port-forward a{text-decoration:none}.port-forward small{font-size:11px}

/* Keep the conversation in its own reading pane while the report and composer stay visible. */
:root{font-size:15px;color:#1b302c;background:#f5f8f6}
.workspace{height:100vh;height:100dvh;min-height:0;overflow:hidden}
.sidebar{width:256px;flex-basis:256px;height:100%;min-height:0;background:#172823;border-right:1px solid #284139}
.brand{font-size:15px;min-height:48px;height:auto;padding:0 11px}
.sidebar nav{padding-bottom:5px;border-bottom:1px solid #324941}
.nav-button{min-height:41px;font-size:13px}
.nav-button.active{background:#2c604e}
.side-heading{font-size:11px;letter-spacing:.04em}
.conversation-list{scrollbar-width:thin;scrollbar-color:#587367 transparent}
.conversation-button{min-height:40px;font-size:13px}
.conversation-button.active{background:#314d41;border-left:3px solid #8fceb0;padding-left:8px}
.sidebar-footer{background:#172823}
.main-content{height:100%;min-height:0;overflow:hidden;background:#fff}
.topbar{min-height:72px;padding:12px 28px;background:#fff;border-bottom-color:#e1e9e5}
.topbar h1{font-size:20px;line-height:1.2}
.eyebrow{color:#55786b;font-size:10px;letter-spacing:.04em}
.view{min-height:0}
.chat-view{overflow:hidden;background:#fff}
.chat-active{min-height:0;overflow:hidden;background:#fff}
.chat-context{height:56px;flex:0 0 56px;background:#f8faf9;border-bottom-color:#e1e9e5}
.chat-context strong{font-size:14px}
.chat-context .muted{font-size:12px}
.cluster-report{flex:0 0 auto;border-bottom-color:#e1e9e5}
.report-inner{width:min(calc(100% - 48px),900px);padding:15px 0 13px}
.report-status strong{font-size:15px}
.report-metric strong{font-size:19px}
.report-headline{font-size:12px}
.conversation-stream{position:relative;display:flex;flex:1;min-height:0;overflow:hidden}
.messages{flex:1;min-height:0;overflow-y:scroll;overscroll-behavior:contain;scrollbar-gutter:stable;padding:28px max(28px,calc((100% - 900px)/2)) 34px;gap:17px;background:#fff;scrollbar-width:thin;scrollbar-color:#b6c9c0 #f4f7f5}
.messages::-webkit-scrollbar{width:10px}
.messages::-webkit-scrollbar-track{background:#f4f7f5}
.messages::-webkit-scrollbar-thumb{background:#b6c9c0;border:2px solid #f4f7f5;border-radius:8px}
.message{font-size:14px;line-height:1.58}
.message.user{max-width:78%;background:#e6f3ec;border:1px solid #d5e8dc;padding:11px 15px;border-radius:6px}
.message.assistant{max-width:82%;padding:2px 0;color:#223630}
.message.notice{max-width:82%;background:#f2f7f2;border-left:3px solid #9dbfa8;padding:10px 13px}
.evidence-group{font-size:11px;color:#5c7b70}
.evidence-group>summary{padding:2px 0}
.composer{flex:0 0 auto;width:min(calc(100% - 48px),900px);min-height:64px;margin:0 auto 18px;padding:7px 8px 7px 9px;border-color:#c3d5ca;box-shadow:0 5px 20px #1b443112}
.composer:focus-within{border-color:#178467;box-shadow:0 0 0 3px #17846718,0 5px 20px #1b443112}
.composer textarea{min-height:48px;line-height:1.45}
.send-button{height:38px;width:38px;flex-basis:38px}
.chat-actions{display:flex;align-items:center;gap:8px}
.jump-latest{width:33px;height:33px;display:flex;align-items:center;justify-content:center;border:1px solid #c3d7cb;border-radius:5px;background:#fff;color:#1c7058}
.jump-latest:hover{background:#edf7f1}
.jump-latest .lucide{width:18px;height:18px}
@media(max-width:720px){.sidebar{height:100vh;height:100dvh}.topbar{min-height:66px;padding:10px 16px}.chat-context{padding:0 16px}.report-inner{width:calc(100% - 34px)}.messages{padding:20px 18px 30px}.message.user{max-width:90%}.message.assistant,.message.notice{max-width:94%}.composer{width:calc(100% - 24px);margin-bottom:12px}}
.approval{align-self:flex-start;width:min(100%,700px);margin:2px 0 6px;padding:17px 19px;border:1px solid #c5d8cc;border-left:4px solid #168364;background:#f7fbf8;border-radius:6px;box-shadow:0 5px 18px #194b2910}
.approval strong{font-size:15px;color:#1b4535}
.approval p{font-size:13px;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}
.approval .muted{color:#61746a}
.approval-actions{flex-wrap:wrap;margin-top:15px}
.approval.expired{border-color:#e4d4ac;border-left-color:#b7882d;background:#fffaf0}
.approval.expired strong{color:#77551b}
.approval.destructive{border-color:#eac3c0;border-left-color:#b73333;background:#fff7f6}
.approval.destructive strong{color:#922929}
.approval.destructive .primary{background:#b73333;border-color:#b73333}
.approval.destructive .primary:hover{background:#982626}
.approval.high-risk{border-color:#d4b36a;border-left-color:#ba7618;background:#fffaf0}
.approval .manifest-resource{padding:5px 0;border-bottom:1px solid #dce6e1;font-size:12px}
.manifest-details{margin:10px 0 2px;max-width:100%}
.manifest-details summary{cursor:pointer;font-weight:600;color:#245349}
.manifest-details pre{max-height:300px;overflow:auto;padding:12px;background:#e9f0ed;border:1px solid #d4e1da;border-radius:4px;font:12px/1.45 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.conversation-row{display:flex;align-items:center;gap:2px;min-width:0;border-radius:5px}
.conversation-row .conversation-button{flex:1;min-width:0}
.conversation-delete{flex:0 0 30px;width:30px;height:30px;color:#a9c4b6;opacity:.68}
.conversation-row:hover .conversation-delete,.conversation-row:focus-within .conversation-delete{opacity:1}
.conversation-delete:hover{color:#ffaaa2!important;background:#50302c!important}
.chat-identity{min-width:0;flex-wrap:wrap;column-gap:11px!important;row-gap:3px}
.chat-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.chat-route{font-size:11px;font-weight:650;padding:4px 7px;border:1px solid #cbd9d2;border-radius:4px;color:#526a5f;white-space:nowrap}
.chat-route.windows{border-color:#9fcbb5;background:#e6f5ec;color:#176b4e}
.backup-status{margin:14px 0 6px;font-weight:600}
.backup-status.failed{color:#b2332b}.backup-status.complete{color:#167050}
.backup-points{max-width:750px;border-top:1px solid #dce6e1}
.backup-point{display:flex;flex-wrap:wrap;gap:5px 16px;padding:9px 0;border-bottom:1px solid #dce6e1}
.backup-point time{min-width:155px;color:#61746a}
.backup-point code{overflow-wrap:anywhere;font-size:12px}
@media(max-width:720px){.conversation-delete{opacity:1}.chat-context{height:auto;min-height:56px;flex-basis:auto;padding-block:8px}.chat-identity{align-items:flex-start!important}.chat-route{font-size:10px}}
