:root{color-scheme:dark;font-family:Inter,Segoe UI,sans-serif;background:#0b1017;color:#e6edf6;font-size:15px}*{box-sizing:border-box}body{margin:0}header{height:82px;border-bottom:1px solid #25303f;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:#101721}header>div{display:flex;align-items:center;gap:14px}header strong{font-size:21px;letter-spacing:-.7px}header strong span{font-weight:400;color:#a2b0c1}.mark{display:grid;place-items:center;width:34px;height:34px;background:#97f1cd;color:#0b3024;font-weight:900;border-radius:9px}main{max-width:1230px;margin:auto;padding:48px 5vw;min-height:calc(100vh - 145px)}h1{font-size:clamp(29px,4vw,42px);letter-spacing:-1.3px;margin:12px 0}h2{font-size:21px}.eyebrow{font-size:11px;letter-spacing:2px;color:#97f1cd;font-weight:700}.muted{color:#91a0b3;line-height:1.65}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.badge{font-size:12px;color:#97f1cd;border:1px solid #2f534a;padding:8px 12px;border-radius:30px;white-space:nowrap}.workspace{display:grid;grid-template-columns:200px 1fr;gap:25px;margin-top:28px}nav{display:flex;flex-direction:column;gap:8px}nav button{text-align:left}button,a.action{font:inherit;border:1px solid #344257;border-radius:8px;background:#1a2534;color:#e6edf6;padding:11px 16px;cursor:pointer;text-decoration:none;display:inline-block}button:hover,a.action:hover{background:#28364a;border-color:#7a94ad}button:disabled{opacity:.5;cursor:wait}.primary{background:#97f1cd;color:#123b2c;border-color:#97f1cd;font-weight:650}.primary:hover{background:#b8f8df}.panel{background:#121b27;border:1px solid #2a3646;border-radius:14px;padding:26px}.project{margin-bottom:18px}.project-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.project-top h2{margin:0}.type{font-size:11px;text-transform:uppercase;padding:5px 8px;background:#263346;border-radius:5px;color:#b7c6d9}.facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:26px 0}.facts dt{color:#8e9eb2;font-size:12px;margin-bottom:7px}.facts dd{margin:0;font-family:Consolas,monospace;overflow-wrap:anywhere;font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap}.state{font-size:12px;color:#a7b9ce}.state.working{color:#f5ce7b}.state.finished,.state.idle{color:#97f1cd}.state.error{color:#ffa6a6}.login{max-width:460px;margin:30px auto}label{display:block;font-size:13px;color:#bdc9d8;margin:18px 0}input,textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #3d4d63;background:#0c1420;color:white;border-radius:7px;font:inherit}textarea{min-height:95px;resize:vertical}form button{width:100%}#notice{color:#f5ce7b;overflow-wrap:anywhere}dialog{width:min(800px,94vw);max-height:90vh;background:#121b27;color:#e6edf6;border:1px solid #3b4c63;border-radius:15px;padding:24px}dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:0 0 16px}.modal-head button{padding:6px 10px}#modal-body{max-height:55vh;overflow:auto;overflow-wrap:anywhere}.reply{white-space:pre-wrap;background:#0b1421;border:1px solid #293951;border-radius:9px;padding:16px}.file{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #293951}.file span{overflow-wrap:anywhere}iframe{width:100%;height:52vh;border:1px solid #354359;background:white}footer{border-top:1px solid #25303f;color:#78899f;padding:21px 5vw;font-size:12px;display:flex;justify-content:space-between}[hidden]{display:none!important}:focus-visible{outline:2px solid #97f1cd;outline-offset:3px}@media(max-width:650px){main{padding:28px 5vw}.workspace{grid-template-columns:1fr}nav{flex-direction:row;overflow:auto}nav button{white-space:nowrap}.heading{align-items:flex-start;flex-direction:column}.panel{padding:20px}.facts{grid-template-columns:1fr}.actions button{flex:1 1 40%}footer span{display:none}.file{align-items:flex-start;flex-direction:column}}

dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:94dvh;padding:0}.modal-head{flex-shrink:0;gap:8px;padding:12px 16px;border-bottom:1px solid #293951}.modal-head h2{flex:1;min-width:0;overflow-wrap:anywhere;font-size:18px;margin:0}.modal-head button{min-height:44px}#modal-body{padding:16px;min-height:0;overscroll-behavior:contain;max-height:none;overflow:auto;flex:1}.chat-modal{height:min(850px,94dvh)}.chat-modal #modal-body{display:flex;flex-direction:column;gap:12px;background:#0c1420}.bubble{flex-shrink:0;max-width:85%;padding:12px 14px;border-radius:16px;overflow-wrap:anywhere;background:#1c2a3b;align-self:flex-start;border-bottom-left-radius:4px}.bubble.user{align-self:flex-end;background:#214b40;border-radius:16px 16px 4px 16px}.bubble-text{white-space:pre-wrap;line-height:1.5}.bubble-author{font-size:11px;color:#a9cdbf;margin-bottom:5px}.bubble time{display:block;text-align:right;font-size:11px;color:#afbac7;margin-top:6px}.pending{color:#f5ce7b}#chat-form{flex-shrink:0;display:flex;align-items:flex-end;gap:10px;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #293951}#chat-form label{flex:1;margin:0;font-size:12px}#chat-form textarea{font-size:16px;min-height:80px;max-height:24dvh;margin-top:4px;resize:none}#chat-form button{width:auto;min-height:48px}#clear-confirm{padding:12px 16px;background:#39272b;flex-shrink:0}.breadcrumbs{flex-direction:row;flex-wrap:wrap;gap:4px;margin:16px 0}.file{flex-direction:row;align-items:center}.file span{min-width:0;flex:1}.file a{flex-shrink:0}.files-modal #modal-body>button{display:block;margin:8px 0;width:100%;text-align:left}@media(max-width:650px){dialog[open]{width:100%;height:100dvh;max-width:100%;max-height:100dvh;margin:0;border:0;border-radius:0}.modal-head{padding:8px}.modal-head h2{font-size:16px}.modal-head button{font-size:12px;padding:8px}#chat-form{padding-left:10px;padding-right:10px;gap:8px}.bubble{max-width:90%}#modal-body{padding:12px}body:has(dialog[open]){overflow:hidden}}

.totp-qr{display:block;width:min(100%,320px);height:auto;background:white;margin:1rem auto}.totp-key,.recovery-codes{display:block;overflow-wrap:anywhere;white-space:pre-wrap;user-select:all;font-size:1rem}#factor input[type=checkbox]{width:auto;min-height:auto;margin-right:.5rem}
