:root{color-scheme:dark;--bg:#141821;--panel:#1b2230;--raised:#232d3d;--line:#364359;--text:#eef2f8;--muted:#a9b5c8;--accent:#a9f3da;--ink:#112923;--warn:#ffd398;--error:#ffb4bc;font:16px/1.5 system-ui,sans-serif}
:root[data-theme=light]{color-scheme:light;--bg:#f4f7fb;--panel:#ebf0f7;--raised:#fff;--line:#cbd5e3;--text:#192436;--muted:#495b74;--accent:#16624f;--ink:#fff;--warn:#824406;--error:#9b2335}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}[hidden]{display:none!important}
button,input,textarea,select{font:inherit;color:inherit}button,.attachment,select{cursor:pointer}button,.attachment,select,input:not([type=checkbox]){background:var(--raised);border:1px solid var(--line);border-radius:11px;padding:.55rem .75rem}button:hover,.attachment:hover{border-color:var(--accent)}button:disabled{opacity:.55;cursor:default}button.primary{background:var(--accent);color:var(--ink);font-weight:700;border-color:transparent}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.brand{display:flex;align-items:center;gap:.45rem;font-weight:800;letter-spacing:.045em;white-space:nowrap}.brand span{color:var(--accent);font-weight:600;letter-spacing:0}.brand img{width:37px;height:37px;margin-right:.25rem;border-radius:10px}
.shell{display:grid;grid-template-columns:264px minmax(0,1fr);height:100vh;height:100dvh}.shell aside{display:flex;flex-direction:column;gap:.7rem;padding:1.15rem;border-right:1px solid var(--line);background:var(--panel);overflow:auto}.shell aside .brand{margin-bottom:1rem}
.section{display:flex;align-items:center;justify-content:space-between;margin-top:.7rem}.section h2{font-size:.875rem;color:var(--muted);margin:0}.section button{padding:.1rem .5rem}.shell nav{display:grid;gap:.28rem}.nav-row{display:flex;min-width:0;gap:.25rem}.nav-row>button:first-child{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-row button{background:transparent;border-color:transparent;font-size:.92rem}.nav-row button[aria-current=true]{background:var(--raised);border-color:var(--line);font-weight:650}.logout{margin-top:auto}.archives{margin-top:1rem;font-size:.88rem;color:var(--muted)}
.conversation{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0}.top{min-height:71px;padding:.65rem clamp(.75rem,4vw,2.4rem);display:flex;gap:.5rem;align-items:center;border-bottom:1px solid var(--line)}.heading{flex:1;min-width:0}.heading span{font-size:.82rem;color:var(--muted)}h1,h2,p{margin:0}.heading h1{font-size:clamp(1rem,3vw,1.3rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top button{font-size:.86rem}#menu{display:none}
#transcript{overflow-y:auto;padding:1.6rem clamp(.8rem,5vw,3rem);scrollbar-gutter:stable}.empty{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:.65rem}.empty img{width:56px;border-radius:16px}.empty h2{font-size:clamp(1.3rem,4vw,2.2rem);letter-spacing:-.03em}.empty p{color:var(--muted)}#messages,#approvals{max-width:820px;margin:auto}.message{margin:0 0 1.15rem;overflow-wrap:anywhere}.message header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.3rem;color:var(--muted);font-size:.86rem}.message header button{font-size:.8rem;padding:.23rem .55rem}.message p{white-space:pre-wrap}.userMessage{margin-left:auto;background:var(--raised);border:1px solid var(--line);border-radius:15px;padding:.8rem 1rem;width:min(85%,650px)}.agentMessage,.plan{padding:.25rem .4rem}.commandExecution,.fileChange,.approval{background:var(--panel);border:1px solid var(--line);padding:.75rem;border-radius:12px}.approval{margin:0 0 1rem;color:var(--warn)}.approval button{margin:.5rem .4rem 0 0}.message pre{margin:.35rem 0;background:var(--raised);border:1px solid var(--line);padding:.65rem;border-radius:9px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:24rem;overflow:auto}.message details{margin:.4rem 0;color:var(--muted)}.code-copy{margin:.15rem 0 .45rem;font-size:.82rem}
footer{padding:.4rem clamp(.8rem,5vw,3rem) max(.85rem,env(safe-area-inset-bottom))}#composer,#notice{max-width:820px;margin:auto}#notice{min-height:1.45rem;color:var(--warn);font-size:.9rem}#composer{padding:.65rem;background:var(--panel);border:1px solid var(--line);border-radius:16px}textarea{width:100%;display:block;resize:vertical;min-height:3rem;max-height:28dvh;background:transparent;border:0;padding:.28rem .4rem}.actions{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-top:.45rem}.actions select{max-width:min(40%,14rem);font-size:.85rem}.actions button,.attachment{font-size:.88rem}#send{margin-left:auto}#attachment-list button{font-size:.8rem;margin:.2rem .25rem 0 0}
.login{min-height:100dvh;display:grid;place-items:center;padding:1rem}.login-card{display:grid;gap:.95rem;background:var(--panel);border:1px solid var(--line);border-radius:19px;width:min(100%,405px);padding:clamp(1rem,6vw,2rem)}.login-card label{display:grid;gap:.3rem}.error{color:var(--error);min-height:1.25rem}
dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:15px;padding:1.2rem;width:min(92vw,430px)}dialog::backdrop{background:#070b13b8}#dialog-content{margin:.8rem 0;white-space:pre-line}#dialog-content input{width:100%}#dialog-actions{display:flex;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:720px){.shell{grid-template-columns:minmax(0,1fr)}.shell aside{display:none;position:fixed;inset:0 auto 0 0;width:min(84vw,295px);z-index:3;box-shadow:0 0 0 100vmax #080c18a8}.shell aside.open{display:flex}#menu{display:block}.attachment span{display:none}.top{min-height:60px}.actions{gap:.3rem}.actions select{max-width:36%}}

#yowiloo-install {
  position: fixed;
  bottom: 110px;
  right: 16px;
  z-index: 9999;
  background: #087f70;
  color: white;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 4px 16px #0004;
}

#yowiloo-install[hidden] {
  display: none !important;
}
