:root{color-scheme:light;--bg:#f3f5f2;--surface:#fff;--text:#20332d;--muted:#69796f;--line:#dce4dc;--green:#265c4b;--soft:#e7eee8}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 system-ui,-apple-system,sans-serif}body.dark{color-scheme:dark;--bg:#14211c;--surface:#1d2e26;--text:#e1ebe5;--muted:#a3b7aa;--line:#34473b;--green:#31785e;--soft:#30453a}header{display:flex;align-items:center;gap:10px;padding:18px max(calc((100vw - 760px)/2),20px);border-bottom:1px solid var(--line);background:var(--surface)}.brand{margin-right:auto}.brand b{font-size:24px;letter-spacing:-1px}.brand b span{font-weight:400;color:var(--muted);font-size:18px}.brand small{font-size:12px}main{max-width:800px;margin:auto;padding:20px 20px calc(100px + env(safe-area-inset-bottom))}h1{font-size:clamp(26px,5vw,36px);line-height:1.2;letter-spacing:-1px;margin:12px 0 24px}h2{font-size:18px;margin:0 0 12px}small,.hint{color:var(--muted);font-size:13px}small{display:block}.hint{margin-bottom:0}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;color:var(--muted)}section,.activity{background:var(--surface);padding:24px;border:1px solid var(--line);border-radius:20px;margin-bottom:16px}button{min-height:44px;border:0;border-radius:12px;padding:11px 16px;background:var(--green);color:#fff;cursor:pointer;font:inherit;font-size:14px}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6cb798;outline-offset:3px}.secondary,#theme{background:var(--soft);color:var(--text)}.danger{background:#a23832}input,textarea,select{width:100%;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:16px}textarea{min-height:190px;resize:vertical;line-height:1.6}.composer-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin:8px 0 18px}.composer-meta small{font-size:12px}.composer-meta span{white-space:nowrap}.primary{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:52px;font-size:16px}.primary span{font-size:24px}.suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.connection{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 14px;font-size:12px;color:var(--muted);margin:0 2px 20px}#connection{color:var(--green)}#notice{font-size:14px;background:var(--soft);padding:12px 16px;border-radius:12px;overflow-wrap:anywhere}#notice:empty{display:none}.bottom-nav{position:fixed;z-index:5;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:6px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}.bottom-nav button{background:none;color:var(--muted);flex:1;max-width:240px;padding:12px 8px;font-size:13px}.bottom-nav button[aria-current]{background:var(--soft);color:var(--text);font-weight:650}#active-count:not(:empty){display:inline-grid;place-items:center;background:var(--green);color:#fff;border-radius:50%;min-width:20px;height:20px;margin-left:4px;font-size:11px}#count{color:var(--muted);font-size:20px;font-weight:400}.filters{display:flex;gap:10px;margin-bottom:18px}.filters select{width:140px}.filters input{min-width:0}.task{background:var(--surface);border:1px solid var(--line);border-radius:16px;margin:0 0 12px;overflow:hidden}.task>summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px;list-style:none;padding:18px;cursor:pointer}.task>summary::-webkit-details-marker{display:none}.task>summary::after{content:'＋';color:var(--muted);margin-left:auto}.task[open]>summary::after{content:'−'}.task-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;order:3;width:100%;font-weight:550;overflow-wrap:anywhere}.task time{font-size:11px;color:var(--muted)}.status{display:inline-block;padding:4px 9px;border-radius:7px;background:var(--soft);font-size:11px}.status.running{background:#fff0cd;color:#825c09}.status.succeeded{background:#e2f1e7;color:#286d44}.status.failed{background:#fae2df;color:#9b342b}.task-body{padding:0 18px 20px;border-top:1px solid var(--line)}.task-prompt{font-size:14px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.task-body pre{font:15px/1.7 system-ui;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:16px;border-radius:12px}.task-body>button{margin:4px 8px 4px 0}.empty{padding:48px 20px;text-align:center;color:var(--muted)}.artifacts{margin-top:18px}.artifacts h3{font-size:14px}.artifact{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}.artifact span{overflow-wrap:anywhere;font-size:13px}.artifact button{flex-shrink:0}.event{font-size:12px;padding:8px 0;border-bottom:1px solid var(--line)}.activity summary{cursor:pointer}.activity #events{margin-top:14px}#settings-panel section button{margin:4px 8px 4px 0}
body.login-screen{min-height:100svh;display:grid;place-items:center}body.login-screen header,body.login-screen #workspace,body.login-screen #connect{display:none}body.login-screen main{width:100%;max-width:380px;margin:0;padding:24px}body.login-screen #login{display:flex;flex-direction:column;gap:20px;margin:0;padding:0;border:0;background:none}body.login-screen #login input{min-height:52px}body.login-screen #notice{margin:16px 0 0;text-align:center}
@media(max-width:500px){header{padding:14px 16px}header button{padding:10px;font-size:12px}.brand b{font-size:23px}.brand b span{font-size:16px}main{padding:18px 14px calc(100px + env(safe-area-inset-bottom))}section{padding:20px}.filters{flex-wrap:wrap}.filters select{width:100%}.task time{font-size:10px}.connection{font-size:11px}.composer-meta{flex-wrap:wrap}}

.followup{display:grid;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.followup label{font-weight:650}.followup textarea{min-height:110px}.followup button{justify-self:start}.previous-turn{border-bottom:1px solid var(--line);padding:12px 0}.previous-turn p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;color:var(--muted)}

.delete-task{display:block;margin-top:24px!important;background:transparent;color:#a23832;border:1px solid #e5b7b1}

dialog{width:min(90vw,420px);border:1px solid var(--line);border-radius:18px;padding:24px;background:var(--surface);color:var(--text)}dialog::backdrop{background:#14211c88}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}
