:root{font-family:"Noto Sans KR","Malgun Gothic",system-ui,sans-serif;color:#18263a;background:#f2f5f9;font-size:13px;line-height:1.5;--navy:#151a35;--muted:#738196;--cobalt:#3557f7;--purple:#7b3ff2;--purple-hover:#6830d7;--purple-text:#4f3dc8;--purple-light:#eeeafe;--purple-line:#c8b9ff;--green:var(--purple-text);--mint:var(--purple)}*{box-sizing:border-box}body{margin:0;background:#f2f5f9}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button,a{cursor:pointer}button{border:0;border-radius:10px;padding:10px 12px;background:var(--navy);color:white;font-weight:700;min-height:38px}button:disabled{opacity:.55;cursor:not-allowed}button.busy{cursor:progress}button.busy::after{content:"";display:inline-block;width:11px;height:11px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-1px;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}button:hover:not(:disabled){filter:brightness(.96)}button:active:not(:disabled){transform:translateY(1px);filter:brightness(.9)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--purple-line);outline-offset:2px}a{color:var(--purple-text);text-decoration:none}h1,h2,h3,p{margin:0}h2{font-size:17px}h3{font-size:14px}p{color:var(--muted);margin:8px 0;font-size:12px}
header{background:#fff;display:flex;gap:16px;align-items:center;padding:16px max(24px,calc((100% - 1232px)/2));flex-wrap:wrap}.logo{width:30px;height:30px;flex:none;margin-right:-6px}.brand{font-size:19px}.wordmark{font-size:11px;font-weight:700;color:var(--muted)}.status-strip{display:flex;align-items:center;gap:10px;margin-left:auto;flex-wrap:wrap}.chip{display:inline-flex;background:var(--purple-light);color:var(--purple-text);border-radius:15px;padding:5px 11px;font-size:11px;font-weight:700;align-items:center;margin-right:6px}.warning{background:#fff4e2;color:#996319}
main{padding:20px 24px;display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:18px;align-items:start;max-width:1280px;margin:0 auto}.left,.middle{display:flex;flex-direction:column;gap:16px;min-width:0}.card{background:#fff;border-radius:16px;padding:18px;min-width:0}.heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.heading>*{min-width:0}.stack{display:flex;flex-direction:column;gap:10px}
.task{padding:12px;background:#f8fafc;border-radius:11px;color:#18263a;word-break:break-word}.task.pending{background:#fff8ec}.task strong{margin-right:8px}
.device-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.device-count{font-size:11px;font-weight:600;color:var(--muted);background:#f0f3f7;border-radius:6px;padding:2px 6px}.device-count.warning{background:#fff4e2;color:#996319}.device-count:empty{display:none}.device-item{border:1px solid #e1e7f0;border-radius:14px;overflow:hidden;background:#fff;min-width:0}.device-item.is-selected{border-color:#bdcaff;background:#f8faff}.device{width:100%;text-align:left;background:transparent;color:#18263a;padding:16px;border-radius:0;min-width:0}.device:focus-visible{outline-offset:-4px}.device-head{display:flex;align-items:center;gap:10px}.device-identity{min-width:0;flex:1}.device-name{display:block;font-size:15px;line-height:1.45;overflow-wrap:anywhere}.device-platform{display:block;margin-top:4px;font-size:11px;font-weight:400;color:var(--muted)}.device-icon{display:block;position:relative;width:40px;height:40px;flex:none;border-radius:11px;background:#eef2f9;color:#738196}.is-selected .device-icon{background:#e8edff;color:#3557f7}.device-icon::before{content:"";position:absolute;width:22px;height:15px;left:9px;top:9px;border:2px solid currentColor;border-radius:3px}.device-icon::after{content:"";position:absolute;width:12px;height:5px;left:14px;top:24px;border-bottom:2px solid currentColor;background:linear-gradient(currentColor,currentColor) center top/2px 4px no-repeat}.device-status{flex:none;font-size:10px;font-weight:700;background:var(--purple-light);color:var(--purple-text);padding:4px 7px;border-radius:20px}.device-status::before{content:"";display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:currentColor;vertical-align:1px}.device-status.offline{background:#f0f3f7;color:#738196}.device-choice{display:block;margin:12px 0 0 50px;color:#3557f7;font-size:11px;font-weight:600}.device.selected .device-choice::before{content:"✓ ";font-weight:700}.device-roots{border-top:1px solid #e6ebf3;margin:0 16px;padding:12px 0 0;font-size:11px;color:var(--muted)}.device-roots summary{cursor:pointer;min-height:28px;color:#526278;font-weight:600}.device-roots summary:focus-visible{outline:2px solid var(--purple);outline-offset:3px;border-radius:3px}.device-root-list{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:8px;max-height:180px;overflow:auto}.device-root-list code,.device-root-preview{font:11px/1.65 Consolas,monospace;color:#526278;overflow-wrap:anywhere;word-break:break-word}.device-root-list li{padding:8px 10px;background:#f0f3f7;border-radius:6px}.device-root-preview{display:block;margin:0 16px 14px}.device-roots[open]+.device-root-preview{display:none}.device-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 12px 16px;border:1px dashed #d9e1eb;border-radius:14px}.device-empty .device-icon{margin-bottom:12px}.device-empty p{max-width:230px;font-size:11px;line-height:1.7}
pre{font:12px/1.6 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#090d14;border:1px solid #1c2637;border-radius:10px;padding:12px;max-height:320px;overflow:auto;margin:8px 0;color:#78a8ff}.task pre{background:#080b11;border:1px solid #1a2333;color:#8fe5cd}input,textarea,select{border:1px solid #243247;border-radius:8px;padding:9px;width:100%;background:#090d14;color:#f0f4fc;min-width:0}label{display:block;color:var(--muted);font-size:12px;margin:12px 0;line-height:1.5}label>input:not([type=checkbox]),label>textarea,label>select{display:block;margin-top:6px}input[type=checkbox]{width:auto;margin-right:6px}
.secondary{background:#161d2b;border:1px solid #263449;color:#c5d4ec}.primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);border:1px solid #3b82f6;color:#fff;width:100%;margin-top:8px;box-shadow:0 4px 14px rgba(37,99,235,0.4)}.primary:hover:not(:disabled){background:#3474fa}.link{background:none;color:#78a8ff;padding:0;min-height:30px;font-size:12px}.row{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.task .row{margin-top:8px}footer{padding:4px 24px 24px;color:var(--muted);font-size:11px;max-width:1280px;margin:0 auto}
dialog{border:1px solid #2b3b52;border-radius:18px;padding:26px;width:min(640px,calc(100% - 32px));max-height:90vh;overflow:auto;box-shadow:0 24px 90px rgba(0,0,0,0.8);background:#131824;color:#f0f4fc}dialog::backdrop{background:rgba(5,8,14,0.75);backdrop-filter:blur(4px)}#notice{max-width:1280px;margin:14px auto 0;padding:0 24px;overflow-wrap:anywhere;color:#fbbf24}#notice:empty{display:none}#notice.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:20;margin:0;width:max-content;max-width:min(560px,calc(100% - 32px));padding:12px 18px;border-radius:12px;background:#182234;border:1px solid #2f4363;color:#fff;font-size:13px;font-weight:700;box-shadow:0 12px 40px rgba(0,0,0,0.6);display:none}#notice.toast.show{display:block}#notice.toast.error{background:#361519;border-color:#6e252e;color:#f87171}#work-notice{margin:12px 0 0;font-size:13px;font-weight:700;color:#f0f4fc}#work-notice:empty{display:none}#work-notice.error{color:#f87171}#auth-error{color:#f87171}#work-body textarea{min-height:120px;font-family:Consolas,monospace;background:#090d14;border:1px solid #1f2b3e;color:#fff}#work-body .command-scope{background:#1e1810;border:1px solid #4a3418;color:#fbbf24;border-radius:10px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:min(38vh,320px);overflow:auto}#work-body .acknowledge{display:flex;gap:8px;align-items:flex-start;background:#0f1420;border:2px solid #223046;border-radius:10px;padding:10px 12px;color:#f0f4fc;font-weight:700;cursor:pointer}#work-body .acknowledge.attention{border-color:#f59e0b;background:#261d10}#work-body .acknowledge input{margin:3px 0 0}.dialog-actions{position:sticky;bottom:-26px;background:#131824;border-top:1px solid #1c2637;padding:12px 0 4px}
@media(max-width:760px){header{padding:14px 16px;gap:10px}.status-strip{margin-left:0;width:100%}.status-strip button{padding:8px;font-size:12px}main{grid-template-columns:minmax(0,1fr);padding:14px 16px;gap:14px}#notice{margin:12px auto 0;padding:0 16px}footer{padding:4px 16px 20px}button{min-height:42px}pre{max-height:none}}
.agent-card{grid-column:1/-1}.agent-now{padding:14px;border-radius:12px;background:#eef2ff;color:#18263a;border-left:4px solid #3557f7}.agent-now strong{display:block;font-size:15px;line-height:1.5}.agent-now p{margin:6px 0 0;color:#405066}.agent-now .agent-task{color:#18263a;font-weight:700;overflow-wrap:anywhere}.agent-now small{display:block;margin-top:6px;color:var(--muted);overflow-wrap:anywhere}.agent-now .agent-detail{background:#fff;border-radius:8px;padding:8px 10px;white-space:pre-wrap;overflow-wrap:anywhere}.agent-now .agent-detail.warning,.agent-past .agent-detail.warning{background:#fff4e2;color:#996319}.agent-now.working{background:var(--purple-light);border-left-color:var(--purple)}.agent-now.approval,.agent-now.question{background:#fff4e2;border-left-color:#e0a030}.agent-now.error,.agent-now.offline{background:#fdecec;border-left-color:#a93636}.agent-now.done,.agent-now.stopped,.agent-now.recovered{background:#f0f3f7;border-left-color:#9aa6b8}.agent-past{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:10px;background:#f8fafc;font-size:12px}.agent-past small{color:var(--muted);overflow-wrap:anywhere}
.billing-home{display:flex;align-items:center;gap:16px;color:inherit}.billing-page{display:flex;flex-direction:column;gap:16px;max-width:720px}.billing-page .card h2{margin-bottom:8px}.consent{display:block;font-size:12.5px;color:#18263a;line-height:1.7;background:#f8fafc;border-radius:10px;padding:12px}.consent input{width:auto;margin:0 8px 0 0;vertical-align:-2px}.billing-page .primary,.billing-page .secondary{align-self:flex-start}
#auth-form [hidden]{display:none}#auth-form label{padding:4px 0}#auth-form label>span{display:block}#auth-form label>input{margin-top:10px;padding:12px 14px}.auth-actions{display:flex;align-items:stretch;gap:10px;padding-top:8px}.auth-actions .primary,.auth-actions .secondary{flex:1;min-width:0;width:auto;min-height:42px;margin-top:0;padding:10px 8px;white-space:nowrap;font-size:13px}
.mode-group{border:0;margin:0 0 4px;padding:0;display:flex;flex-direction:column;gap:8px}.mode-group legend{padding:0 0 8px;font-size:12px;font-weight:700;color:var(--muted)}.mode-option{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:11px;background:#f8fafc;border:1px solid #e6ebf3;cursor:pointer}.mode-option.is-selected{background:var(--purple-light);border-color:var(--purple-line)}.mode-option input{width:auto;margin:3px 0 0;flex:none}.mode-option-copy{min-width:0}.mode-option-copy strong{display:block;font-size:13px;color:#18263a}.mode-option-description{display:block;margin-top:2px;color:var(--muted);font-size:11px;line-height:1.6}
.setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0}.toggle-copy{min-width:0;flex:1}.toggle-heading{display:flex;align-items:center;gap:4px}.toggle-copy strong{display:block;font-size:14px;color:#18263a;min-width:0}.toggle-summary{display:block;margin-top:2px;color:var(--muted);font-size:11px}.toggle-side{display:flex;align-items:center;gap:8px;flex:none}
.setting-info{display:inline-flex;flex:none}.info-trigger{display:flex;align-items:center;justify-content:center;width:24px;height:28px;min-height:28px;padding:0;border-radius:5px;background:transparent;color:var(--muted)}.info-trigger:hover,.info-trigger[aria-expanded=true]{color:var(--purple-text);background:transparent}.info-trigger:focus-visible{outline:2px solid var(--purple-line);outline-offset:1px}.info-glyph{display:flex;align-items:center;justify-content:center;width:14px;height:14px;border:1px solid currentColor;border-radius:50%;font:600 10px Georgia,serif}.setting-tooltip{position:fixed;z-index:30;width:min(320px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:12px 14px;border-radius:10px;background:var(--navy);color:#fff;font-size:12px;line-height:1.75;font-weight:400;white-space:normal;overflow-wrap:anywhere;box-shadow:0 8px 24px #12223833}.setting-tooltip[hidden]{display:none}.setting-tooltip::before{content:"";position:fixed;left:var(--tip-left);top:var(--tip-top);width:8px;height:8px;transform:rotate(45deg);background:var(--navy)}@media(max-width:760px){.info-trigger{width:44px;height:44px;min-height:44px}}
.switch-control{display:flex;align-items:center;justify-content:center;width:54px;height:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;cursor:pointer;vertical-align:middle}.switch-track{display:block;width:46px;height:26px;padding:2px;border-radius:13px;background:#d8e0ea;transition:background .2s ease}.switch-control[aria-checked="true"] .switch-track{background:var(--purple)}.switch-control:disabled{opacity:.45;cursor:not-allowed}.switch-thumb{display:block;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(18,34,56,.28);transition:transform .2s ease}.switch-control[aria-checked="true"] .switch-thumb{transform:translateX(20px)}.switch-control.busy{opacity:.7;cursor:progress}.switch-control.busy::after{display:none}.switch-caption{font-size:11px;font-weight:700;color:var(--muted);min-width:26px}.switch-control:focus-visible{outline:3px solid var(--purple-line);outline-offset:2px}
.account-mode-row{padding:12px;margin:8px 0;border-radius:12px;background:#f8fafc;border:1px solid #e6ebf3}.account-mode-origin{margin:0 0 8px;font-weight:700;color:#18263a;font-size:12px;overflow-wrap:anywhere}
.task-skeleton{padding:14px;background:#f8fafc;border-radius:11px;display:flex;flex-direction:column;gap:10px}.skeleton-line{display:block;border-radius:6px;background:linear-gradient(90deg,#edf1f7 25%,#e2e8f0 50%,#edf1f7 75%);background-size:200% 100%;animation:skeleton-pulse 1.6s ease-in-out infinite}@keyframes skeleton-pulse{0%{background-position:200% 0}100%{background-position:-200% 0}}.skeleton-title{width:42%;height:15px}.skeleton-meta{width:28%;height:11px}.skeleton-body{width:88%;height:32px;border-radius:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
@media(prefers-reduced-motion:reduce){.skeleton-line{animation:none}.switch-track,.switch-thumb{transition:none}}
.folder-editor{margin:12px 0}.folder-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;margin-bottom:8px}.folder-add,.folder-remove{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;padding:0;font-size:21px;line-height:1}.folder-list{display:flex;flex-direction:column;gap:8px}.folder-row{display:flex;align-items:center;gap:8px}.folder-row label{flex:1;min-width:0;margin:0}#work-body .folder-row textarea{margin-top:0;resize:none;min-height:42px;height:42px;font:inherit;white-space:pre;overflow:hidden}
.emergency-stop{display:flex;align-items:center;gap:4px;margin-top:24px}.emergency-stop>.danger{flex:1;min-width:0}.danger{background:#a93636;color:#fff}.emergency-confirm-row{display:flex;flex:1;min-width:0;align-items:center;gap:10px}.emergency-confirm-row[hidden]{display:none}.emergency-confirm-row input{flex:1;min-width:0}.emergency-confirm-row button{flex:none;min-width:72px}
.thinking-orb{position:relative;width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;margin-right:8px;vertical-align:middle}.thinking-orb-core{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,#3557f7,#7b3ff2);box-shadow:0 0 8px rgba(123,63,242,.55);animation:orb-breathe 2.2s ease-in-out infinite}.thinking-orb-ring{position:absolute;inset:2px;border-radius:50%;border:2px solid transparent;border-top-color:#3557f7;border-right-color:#7b3ff2;animation:orb-spin 1.8s cubic-bezier(.45,.05,.55,.95) infinite}.thinking-orb-ring2{position:absolute;inset:0;border-radius:50%;border:1.5px solid transparent;border-bottom-color:#7b3ff2;border-left-color:#3557f7;animation:orb-spin-reverse 2.4s linear infinite;opacity:.75}@keyframes orb-spin{to{transform:rotate(360deg)}}@keyframes orb-spin-reverse{to{transform:rotate(-360deg)}}@keyframes orb-breathe{0%,100%{transform:scale(0.85);opacity:.75}50%{transform:scale(1.15);opacity:1}}@media(prefers-reduced-motion:reduce){.thinking-orb-core,.thinking-orb-ring,.thinking-orb-ring2{animation:none}}
#approval-mode-choices{min-width:0}
