:root{--hako-bg: #fefefe;--hako-bg-sub: #f7f7f5;--hako-text: #1a1a1a;--hako-text-sub: #6b6b6b;--hako-border: #e8e8e6;--hako-accent: #0f6b4f;--hako-accent-hover: #0d5a43;--hako-accent-soft: rgba(15, 107, 79, .08);--hako-error: #8b3a3a;--hako-error-soft: rgba(139, 58, 58, .07);--hako-radius: 8px;--hako-space-1: 4px;--hako-space-2: 8px;--hako-space-3: 12px;--hako-space-4: 16px;--hako-space-5: 24px;--hako-space-6: 32px;--hako-font: system-ui, -apple-system, "Segoe UI", sans-serif;--hako-font-mono: ui-monospace, "Cascadia Code", monospace;--hako-sidebar-w: 240px;--hako-panel-w: 380px;--hako-chat-max: 720px;--hako-header-h: 52px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--hako-bg);color:var(--hako-text);font-family:var(--hako-font);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased;color-scheme:light}button{font-family:inherit;font-size:inherit;color:inherit;background:none;border:none;padding:0;cursor:pointer}input,textarea,select{font-family:inherit;font-size:inherit;color:inherit}textarea{resize:none}:focus-visible{outline:2px solid var(--hako-accent);outline-offset:1px}::placeholder{color:var(--hako-text-sub);opacity:.7}.hako{display:flex;height:100%;overflow:hidden}.hako__main{flex:1;min-width:0;display:flex;flex-direction:column}.hako-header{height:var(--hako-header-h);flex-shrink:0;display:flex;align-items:center;gap:var(--hako-space-2);padding:0 var(--hako-space-4);border-bottom:1px solid var(--hako-border)}.hako-header__icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:var(--hako-radius);color:var(--hako-text-sub);flex-shrink:0}.hako-header__icon-btn:hover{color:var(--hako-text);background:var(--hako-bg-sub)}.hako-header__toggle{display:none}@media(max-width:767px){.hako-header__toggle{display:inline-flex}}.hako-header__ws-title{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hako-header__ws-title--empty{color:var(--hako-text-sub)}.hako-header__model{font-size:12px;color:var(--hako-text-sub);max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hako-sidebar{width:var(--hako-sidebar-w);flex-shrink:0;display:flex;flex-direction:column;border-right:1px solid var(--hako-border);background:var(--hako-bg-sub);height:100%}.hako-sidebar__head{display:flex;align-items:center;gap:var(--hako-space-2);padding:var(--hako-space-4) var(--hako-space-4) var(--hako-space-3)}.hako-sidebar__logo{font-size:15px;font-weight:600;letter-spacing:.02em}.hako-sidebar__add{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:var(--hako-radius);color:var(--hako-text-sub)}.hako-sidebar__add:hover{color:var(--hako-text);background:var(--hako-bg-sub)}.hako-sidebar__label{padding:var(--hako-space-3) var(--hako-space-5) var(--hako-space-1);font-size:11px;letter-spacing:.05em;color:#565654}.hako-sidebar__list{flex:1;overflow-y:auto;padding:0 var(--hako-space-2) var(--hako-space-2)}.hako-ws-row{display:flex;align-items:center}.hako-ws-row .hako-ws-item{flex:1;min-width:0}.hako-ws-item{display:flex;align-items:center;gap:var(--hako-space-2);width:100%;padding:var(--hako-space-2) var(--hako-space-2);border-radius:var(--hako-radius);text-align:left;font-size:13px;color:#4a4a48}.hako-ws-item:hover{background:#0f6b4f0f;color:var(--hako-text)}.hako-ws-item--active{background:var(--hako-accent-soft);color:var(--hako-text);font-weight:500}.hako-ws-item__name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hako-ws-item__del{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex-shrink:0;border-radius:var(--hako-radius);color:var(--hako-text-sub);opacity:0}.hako-ws-item:hover .hako-ws-item__del,.hako-ws-item__del:focus-visible{opacity:1}.hako-ws-item__del:hover{color:var(--hako-error);background:var(--hako-error-soft)}.hako-sidebar__empty{padding:var(--hako-space-3) var(--hako-space-5);font-size:12px;color:#565654}.hako-chat__welcome{padding-top:var(--hako-space-6)}.hako-chat__hint{margin:0;text-align:center;font-size:13px;color:var(--hako-text-sub)}.hako-chat{flex:1;min-height:0;display:flex;flex-direction:column}.hako-chat__scroll{flex:1;overflow-y:auto;min-height:0}.hako-chat__inner{max-width:var(--hako-chat-max);margin:0 auto;padding:var(--hako-space-6) var(--hako-space-4);display:flex;flex-direction:column;gap:var(--hako-space-4)}.hako-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--hako-space-3);padding:var(--hako-space-6);padding-bottom:calc(var(--hako-space-6) + var(--hako-header-h));text-align:center}.hako-empty__logo{font-size:40px;font-weight:300;letter-spacing:.04em;color:var(--hako-text)}.hako-empty__desc{margin:0 0 var(--hako-space-2);max-width:42ch;font-size:13px;color:#3d3d3b}.hako-empty__actions{display:flex;align-items:center;gap:var(--hako-space-5);margin-top:var(--hako-space-1)}.hako-empty__primary{display:inline-flex;align-items:center;gap:var(--hako-space-2);padding:var(--hako-space-2) var(--hako-space-5);background:var(--hako-accent);color:#fefefe;border-radius:var(--hako-radius);font-size:13px;font-weight:500}.hako-empty__primary:hover{background:var(--hako-accent-hover)}.hako-empty__primary:active{transform:translateY(1px)}.hako-empty__link{font-size:13px;color:#4a4a48;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#9a9a96}.hako-empty__link:hover{color:var(--hako-accent);text-decoration-color:var(--hako-accent)}.hako-msg{display:flex;flex-direction:column;gap:var(--hako-space-1)}.hako-msg__body{max-width:85%;padding:var(--hako-space-2) var(--hako-space-4);border-radius:var(--hako-radius);white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.hako-msg--user{align-items:flex-end}.hako-msg--user .hako-msg__body{background:var(--hako-bg-sub);border:1px solid var(--hako-border)}.hako-msg--assistant .hako-msg__body{background:transparent}.hako-msg--error .hako-msg__body{color:var(--hako-error);font-size:13px}.hako-cursor{display:inline-block;width:7px;height:15px;margin-left:2px;vertical-align:-2px;background:var(--hako-text-sub);animation:hako-blink 1s steps(2,start) infinite}@keyframes hako-blink{to{visibility:hidden}}.hako-tool{width:100%;display:flex;align-items:center;gap:var(--hako-space-2);padding:2px var(--hako-space-2);border-radius:var(--hako-radius);font-family:var(--hako-font-mono);font-size:12px;color:var(--hako-text-sub);text-align:left}.hako-tool:hover{background:var(--hako-bg-sub);color:var(--hako-text)}.hako-tool__caret{display:inline-flex;transition:transform .15s ease}.hako-tool__caret--open{transform:rotate(90deg)}.hako-tool__name{font-weight:600}.hako-tool__detail{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hako-tool__body{margin:0 0 var(--hako-space-2) var(--hako-space-5);padding:var(--hako-space-2) var(--hako-space-3);border-left:2px solid var(--hako-border);font-family:var(--hako-font-mono);font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--hako-text-sub);max-height:240px;overflow-y:auto}.hako-approval{margin:var(--hako-space-2) 0;padding:var(--hako-space-3);border:1px solid var(--hako-border);border-radius:var(--hako-radius);background:var(--hako-bg-sub);max-width:560px}.hako-approval__head{display:flex;align-items:center;gap:var(--hako-space-2);min-width:0}.hako-approval__icon{flex:none;color:var(--hako-accent)}.hako-approval__tool{font-family:var(--hako-font-mono);font-size:12px;font-weight:600;color:var(--hako-text)}.hako-approval__summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--hako-text-sub)}.hako-approval__detail{margin:var(--hako-space-2) 0 0;padding:var(--hako-space-2) var(--hako-space-3);border-left:2px solid var(--hako-border);font-family:var(--hako-font-mono);font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--hako-text-sub);max-height:160px;overflow-y:auto}.hako-approval__actions{display:flex;gap:var(--hako-space-2);margin-top:var(--hako-space-3);flex-wrap:wrap}.hako-approval__deny{color:#b3261e}.hako-files__io{display:flex;gap:var(--hako-space-2);padding:0 var(--hako-space-2) var(--hako-space-2);flex-wrap:wrap}.hako-files__status{padding:0 var(--hako-space-2) var(--hako-space-2);font-size:11px;color:var(--hako-text-sub)}.hako-skeleton{position:relative;height:1px;overflow:hidden;background:var(--hako-border);margin:var(--hako-space-2) 0}.hako-skeleton:after{content:"";position:absolute;top:0;left:0;height:100%;width:40%;background:var(--hako-text-sub);opacity:.6;animation:hako-skeleton-flow 1.4s linear infinite}@keyframes hako-skeleton-flow{0%{transform:translate(-100%)}to{transform:translate(350%)}}.hako-composer{flex-shrink:0;padding:var(--hako-space-3) var(--hako-space-4) var(--hako-space-4)}.hako-composer__box{max-width:var(--hako-chat-max);margin:0 auto;display:flex;align-items:flex-end;gap:var(--hako-space-2);padding:var(--hako-space-2) var(--hako-space-2) var(--hako-space-2) var(--hako-space-4);border:1px solid var(--hako-border);border-radius:var(--hako-radius);background:var(--hako-bg)}.hako-composer__box:focus-within{border-color:var(--hako-accent)}.hako-composer__input{flex:1;min-width:0;border:none;background:transparent;padding:0;line-height:1.6;max-height:calc(8em + 4px);overflow-y:auto}.hako-composer__input:focus{outline:none}.hako-composer__input:focus-visible{outline:none}.hako-composer__send{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border-radius:var(--hako-radius);background:var(--hako-accent);color:#fefefe}.hako-composer__send:hover{background:var(--hako-accent-hover)}.hako-composer__send:disabled{background:var(--hako-border);color:var(--hako-text-sub);cursor:default}.hako-keygate{max-width:var(--hako-chat-max);margin:0 auto;width:100%;display:flex;justify-content:center;padding:var(--hako-space-2) 0}.hako-keygate__btn{display:inline-flex;align-items:center;gap:var(--hako-space-2);padding:var(--hako-space-2) var(--hako-space-4);border:1px solid var(--hako-border);border-radius:var(--hako-radius);font-size:13px;color:var(--hako-text-sub)}.hako-keygate__btn:hover{border-color:var(--hako-accent);color:var(--hako-accent)}.hako-panel{width:var(--hako-panel-w);flex-shrink:0;display:flex;flex-direction:column;border-left:1px solid var(--hako-border);height:100%}.hako-panel__head{display:flex;align-items:center;gap:var(--hako-space-1);padding:var(--hako-space-2) var(--hako-space-3);border-bottom:1px solid var(--hako-border)}.hako-panel__tab{padding:var(--hako-space-1) var(--hako-space-3);border-radius:var(--hako-radius);font-size:13px;color:var(--hako-text-sub)}.hako-panel__tab:hover,.hako-panel__tab--active{color:var(--hako-text);background:var(--hako-bg-sub)}.hako-panel__close{margin-left:auto}.hako-panel__body{flex:1;min-height:0;overflow-y:auto;padding:var(--hako-space-3)}.hako-files{display:flex;flex-direction:column;gap:var(--hako-space-1)}.hako-files__bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--hako-space-2)}.hako-files__title{font-size:12px;color:var(--hako-text-sub)}.hako-file-item{width:100%;display:flex;align-items:center;gap:var(--hako-space-2);padding:var(--hako-space-1) var(--hako-space-2);border-radius:var(--hako-radius);font-family:var(--hako-font-mono);font-size:12px;text-align:left;color:var(--hako-text)}.hako-file-item:hover{background:var(--hako-bg-sub)}.hako-file-item__size{margin-left:auto;flex-shrink:0;font-size:11px;color:var(--hako-text-sub)}.hako-files__empty{font-size:12px;color:var(--hako-text-sub);padding:var(--hako-space-2)}.hako-editor{height:100%;display:flex;flex-direction:column;gap:var(--hako-space-2)}.hako-editor__path{font-family:var(--hako-font-mono);font-size:12px;color:var(--hako-text-sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hako-editor__textarea{width:100%;height:100%;min-height:200px;border:1px solid var(--hako-border);border-radius:var(--hako-radius);background:var(--hako-bg);padding:var(--hako-space-3);font-family:var(--hako-font-mono);font-size:12.5px;line-height:1.6;white-space:pre;overflow-wrap:normal;overflow-x:auto;overflow-y:auto;tab-size:2}.hako-editor__textarea:focus{outline:none;border-color:var(--hako-accent)}.hako-editor__textarea:focus-visible{outline:none}.hako-editor__footer{display:flex;align-items:center;gap:var(--hako-space-2);padding-top:var(--hako-space-2)}.hako-editor__hint{font-size:11px;color:var(--hako-text-sub);margin-right:auto}.hako-btn{display:inline-flex;align-items:center;gap:var(--hako-space-1);padding:5px var(--hako-space-3);border:1px solid var(--hako-border);border-radius:var(--hako-radius);font-size:12px;background:var(--hako-bg);color:var(--hako-text)}.hako-btn:hover:not(:disabled){border-color:var(--hako-text-sub)}.hako-btn:disabled{opacity:.45;cursor:default}.hako-btn--accent{background:var(--hako-accent);border-color:var(--hako-accent);color:#fefefe}.hako-btn--accent:hover:not(:disabled){background:var(--hako-accent-hover);border-color:var(--hako-accent-hover)}.hako-run{height:100%;display:flex;flex-direction:column;gap:var(--hako-space-2)}.hako-run__textarea{width:100%;height:120px;flex-shrink:0;border:1px solid var(--hako-border);border-radius:var(--hako-radius);background:var(--hako-bg);padding:var(--hako-space-3);font-family:var(--hako-font-mono);font-size:12.5px;line-height:1.6;tab-size:2}.hako-run__textarea:focus{outline:none;border-color:var(--hako-accent)}.hako-run__textarea:focus-visible{outline:none}.hako-run__bar{display:flex;align-items:center;gap:var(--hako-space-3)}.hako-run__time{font-size:11px;color:var(--hako-text-sub);font-family:var(--hako-font-mono)}.hako-run__out{flex:1;min-height:60px;overflow-y:auto;padding:var(--hako-space-3);border:1px solid var(--hako-border);border-radius:var(--hako-radius);font-family:var(--hako-font-mono);font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--hako-text)}.hako-run__out--error{color:var(--hako-error)}.hako-run__label{font-size:11px;color:var(--hako-text-sub);margin-bottom:2px}.hako-modal-overlay{position:fixed;inset:0;background:#1a1a1a52;display:flex;align-items:center;justify-content:center;padding:var(--hako-space-5);z-index:100}.hako-modal{width:560px;max-width:100%;max-height:min(640px,calc(100vh - 48px));display:flex;flex-direction:column;background:var(--hako-bg);border:1px solid var(--hako-border);border-radius:var(--hako-radius);opacity:1;transition:opacity .15s ease}.hako-modal__head{display:flex;align-items:center;padding:var(--hako-space-4) var(--hako-space-5);border-bottom:1px solid var(--hako-border)}.hako-modal__title{font-size:15px;font-weight:600}.hako-modal__close{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--hako-radius);color:var(--hako-text-sub)}.hako-modal__close:hover{background:var(--hako-bg-sub);color:var(--hako-text)}.hako-modal__body{flex:1;min-height:0;overflow-y:auto;padding:var(--hako-space-5)}.hako-modal__section+.hako-modal__section{margin-top:var(--hako-space-6)}.hako-modal__section-title{font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--hako-text-sub);margin-bottom:var(--hako-space-3)}.hako-field{display:flex;flex-direction:column;gap:var(--hako-space-1);margin-bottom:var(--hako-space-3)}.hako-field__label{font-size:12px;color:var(--hako-text-sub)}.hako-input,.hako-select{width:100%;height:34px;padding:0 var(--hako-space-3);border:1px solid var(--hako-border);border-radius:var(--hako-radius);background:var(--hako-bg);font-size:13px}.hako-input:focus,.hako-select:focus{outline:none;border-color:var(--hako-accent)}.hako-input:focus-visible,.hako-select:focus-visible{outline:none}.hako-textarea{width:100%;border:1px solid var(--hako-border);border-radius:var(--hako-radius);background:var(--hako-bg);padding:var(--hako-space-2) var(--hako-space-3);font-size:12px;line-height:1.5}.hako-textarea:focus{outline:none;border-color:var(--hako-accent)}.hako-textarea:focus-visible{outline:none}.hako-textarea--mono{font-family:var(--hako-font-mono);font-size:12px}.hako-keyinput{display:flex;align-items:center;gap:var(--hako-space-1)}.hako-keyinput .hako-input{flex:1;min-width:0;font-family:var(--hako-font-mono)}.hako-keyinput__eye{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;border-radius:var(--hako-radius);color:var(--hako-text-sub)}.hako-keyinput__eye:hover{background:var(--hako-bg-sub);color:var(--hako-text)}.hako-keylist{display:flex;flex-direction:column;gap:var(--hako-space-1);margin-top:var(--hako-space-3)}.hako-keyrow{display:flex;align-items:center;gap:var(--hako-space-2);padding:var(--hako-space-2) var(--hako-space-3);border:1px solid var(--hako-border);border-radius:var(--hako-radius);font-size:13px}.hako-keyrow__radio{accent-color:var(--hako-accent);width:14px;height:14px;flex-shrink:0}.hako-keyrow__label{flex:1;min-width:0;display:flex;align-items:baseline;gap:var(--hako-space-2);cursor:pointer;flex-wrap:wrap}.hako-keyrow__preset{font-weight:600}.hako-keyrow__masked{font-family:var(--hako-font-mono);font-size:12px;color:var(--hako-text-sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hako-keyrow__model{font-size:11px;color:var(--hako-text-sub);font-family:var(--hako-font-mono)}.hako-keyrow__del{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:var(--hako-radius);color:var(--hako-text-sub);flex-shrink:0}.hako-keyrow__del:hover{color:var(--hako-error);background:var(--hako-error-soft)}.hako-inline{font-size:12px;color:var(--hako-text-sub);margin:0 0 var(--hako-space-3)}.hako-empty-note{font-size:12px;color:var(--hako-text-sub)}.hako-proxylist{display:flex;flex-direction:column;gap:var(--hako-space-1);font-family:var(--hako-font-mono);font-size:12px;color:var(--hako-text-sub);overflow-wrap:anywhere}.hako-proxylist__item{padding:var(--hako-space-1) 0;border-bottom:1px solid var(--hako-border)}.hako-plugin-row{display:flex;align-items:center;gap:var(--hako-space-2);padding:var(--hako-space-1) 0;font-size:13px}.hako-plugin-row__name{font-weight:600}.hako-plugin-row__desc{font-size:12px;color:var(--hako-text-sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.hako-plugin-row__check{accent-color:var(--hako-accent);width:14px;height:14px;flex-shrink:0}.hako-check{display:flex;align-items:flex-start;gap:var(--hako-space-2);font-size:13px;cursor:pointer}.hako-check__box{accent-color:var(--hako-accent);width:14px;height:14px;margin-top:3px;flex-shrink:0}.hako-ssh__grid{display:flex;flex-direction:column;gap:var(--hako-space-3)}.hako-backdrop{position:fixed;inset:0;background:#1a1a1a52;z-index:40;opacity:1;transition:opacity .15s ease}@media(max-width:767px){.hako-sidebar{position:fixed;left:0;top:0;bottom:0;z-index:50;background:var(--hako-bg);transform:translate(-100%);transition:transform .15s ease}.hako-sidebar--open{transform:translate(0)}.hako-panel{position:fixed;inset:0;width:100%;z-index:60;background:var(--hako-bg)}.hako-chat__inner,.hako-composer__box,.hako-keygate{padding-left:var(--hako-space-3);padding-right:var(--hako-space-3)}.hako-header__model{display:none}}
