:root{--bg:#fafaf9;--fg:#1c1917;--muted:#78716c;--surface:#fff;--border:#e7e5e4;--accent:#2563eb;--accent-fg:#fff;--user:#e0e7ff;--danger:#b91c1c;--ok:#15803d;--tabs-h:calc(58px + env(safe-area-inset-bottom));--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0c0a09;--fg:#f5f5f4;--muted:#a8a29e;--surface:#1c1917;--border:#292524;--accent:#3b82f6;--user:#1e293b;--danger:#f87171;--ok:#4ade80}}*{box-sizing:border-box}body{background:var(--bg);color:var(--fg);margin:0;font:16px/1.5 system-ui,sans-serif}.shell{flex-direction:column;gap:16px;max-width:720px;min-height:100dvh;margin:0 auto;padding:16px;display:flex}header{justify-content:space-between;align-items:center;display:flex}h1{margin:0;font-size:1.5rem}.stack{flex-direction:column;gap:12px;display:flex}input{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--fg);border-radius:8px;min-width:0;padding:10px 12px}button{font:inherit;cursor:pointer}.primary{background:var(--accent);color:var(--accent-fg);border:0;border-radius:8px;padding:10px 16px}.primary:disabled{opacity:.5;cursor:default}.link{color:var(--muted);background:0 0;border:0}.muted{color:var(--muted)}.small{font-size:.85em}nav{gap:4px;display:flex}.link[aria-current]{color:var(--fg);font-weight:600}.view{flex-direction:column;flex:1;display:flex}.view[hidden]{display:none}h2{margin:0;font-size:1.15rem}.setting{border:1px solid var(--border);background:var(--surface);border-radius:12px;margin:0;padding:12px}.setting legend{padding:0 4px;font-weight:600}.setting p{margin:0 0 8px}.setting .row{flex-wrap:wrap;gap:12px;display:flex}.setting label{flex-direction:column;flex:160px;gap:4px;font-size:.9em;display:flex}select{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--fg);border-radius:8px;padding:8px 10px}select:disabled{opacity:.5}.error{color:var(--danger);margin:0}.chat{flex-direction:column;flex:1;gap:12px;display:flex}.messages{flex-direction:column;flex:1;gap:8px;margin:0;padding:0;list-style:none;display:flex}.msg{white-space:pre-wrap;background:var(--surface);border:1px solid var(--border);border-radius:12px;max-width:85%;padding:10px 12px}.msg.user{background:var(--user);border-color:#0000;align-self:flex-end}.msg[data-pending]{opacity:.8}.msg.atlas{white-space:normal;flex-direction:column;gap:8px;width:85%;display:flex}.md>:first-child{margin-top:0}.md>:last-child{margin-bottom:0}.md pre,.md code{white-space:pre-wrap;overflow-wrap:anywhere}.card{border:1px solid var(--border);background:var(--bg);border-radius:10px;flex-direction:column;gap:8px;min-width:0;padding:10px 12px;display:flex}.card[data-urgent]{border-color:var(--danger)}.card h3{margin:0;font-size:1rem}.card h4{color:var(--muted);margin:4px 0 2px;font-size:.9rem}.card ul{margin:0;padding-left:1.2em}.card-approval{border-color:var(--accent)}.checklist{list-style:none;padding-left:0!important}.checklist [data-done]{color:var(--muted);text-decoration:line-through}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9em}th,td{text-align:left;border-bottom:1px solid var(--border);padding:4px 8px}td[data-num]{text-align:right;font-variant-numeric:tabular-nums}.question{margin:0;font-weight:600}.options{flex-wrap:wrap;gap:8px;display:flex}.option{border:1px solid var(--border);background:var(--surface);color:var(--fg);border-radius:8px;padding:8px 14px}.option:disabled{opacity:.5;cursor:default}.args{border:1px solid var(--border);background:var(--surface);color:var(--fg);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;margin:0;padding:8px;font:.85em ui-monospace,monospace}textarea.args{box-sizing:border-box;resize:vertical;width:100%}.status{margin:0;font-weight:600}.status-executed{color:var(--ok)}.status-failed,.status-rejected{color:var(--danger)}.notes{color:var(--muted);white-space:normal;margin:8px 0 0;padding:0;font-size:.8em;list-style:none}.composer{bottom:var(--composer-bottom,0px);background:var(--bg);gap:8px;padding:8px 0 16px;display:flex;position:sticky}.composer input,.answer-form input{flex:1}.answer-form{gap:8px;display:flex}.app{max-width:720px;min-height:100dvh;padding:env(safe-area-inset-top) 16px var(--tabs-h);--composer-bottom:var(--tabs-h);flex-direction:column;margin:0 auto;display:flex}.topbar{z-index:2;background:var(--bg);justify-content:space-between;align-items:center;padding:12px 0;display:flex;position:sticky;top:0}.topbar .link{padding:4px 8px;font-size:1.3rem}.screen{flex-direction:column;flex:1;padding-bottom:16px;display:flex}.tabs{z-index:3;height:var(--tabs-h);padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);justify-content:center;display:flex;position:fixed;bottom:0;left:0;right:0}.tab{max-width:180px;color:var(--muted);background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.75rem;display:flex}.tab[aria-current=page]{color:var(--accent);font-weight:600}.tab-icon{font-size:1.25rem;line-height:1;position:relative}.badge{background:var(--danger);color:#fff;border-radius:9px;min-width:18px;padding:0 5px;font-size:.7rem;font-weight:700;line-height:18px;position:absolute;top:-6px;right:-14px}.empty{text-align:center;margin-top:30vh}.feed{flex-direction:column;gap:12px;display:flex}.feed h2{margin-top:8px}.feed-item .meta{margin:0 0 4px}.feed-item .card{background:var(--surface)}.runs{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.run{border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:10px 12px}.run-head{width:100%;color:var(--fg);text-align:left;background:0 0;border:0;grid-template-columns:auto 1fr;align-items:center;gap:2px 8px;padding:0;display:grid}.run-head .muted{grid-column:2}.run-summary{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pill{text-transform:uppercase;background:var(--border);border-radius:6px;padding:2px 6px;font-size:.7rem;font-weight:700}.pill-succeeded{color:var(--ok)}.pill-failed{color:var(--danger)}.pill-running,.pill-queued{color:var(--accent)}.events{overflow-wrap:anywhere;flex-direction:column;gap:4px;margin:10px 0 0;padding-left:1.4em;display:flex}.crash{text-align:center;margin-top:20vh}.job{flex-direction:column;gap:4px;display:flex}.job-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.run .error{overflow-wrap:anywhere;margin:6px 0 0}
