
#kcha-workspace{--k-paper:#fff;--k-ink:#151515;--k-muted:#737373;--k-faint:#909090;--k-line:#e9e9e9;--k-surface:#f5f5f5;--k-orange:#ff5b00;--k-font:16px;position:relative;isolation:isolate;min-width:0;background:var(--k-paper);color:var(--k-ink);font:400 var(--k-font)/1.7 -apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;overflow:clip;color-scheme:light}
#kcha-workspace *{box-sizing:border-box}
#kcha-workspace [hidden]{display:none!important}
#kcha-workspace button,#kcha-workspace textarea{font:inherit;color:inherit}
#kcha-workspace button{border:0;background:none;cursor:pointer;padding:0;-webkit-tap-highlight-color:transparent}
#kcha-workspace button:focus-visible,#kcha-workspace summary:focus-visible{outline:2px solid var(--k-orange);outline-offset:4px}
#kcha-workspace textarea:focus,#kcha-workspace textarea:focus-visible{outline:none;box-shadow:none}
#kcha-workspace button:disabled{cursor:default}
#kcha-workspace svg,#kcha-workspace i[data-lucide]{width:16px!important;height:16px!important;min-width:16px;stroke-width:1.75!important;vector-effect:none;display:inline-block;vertical-align:middle;flex-shrink:0}
#kcha-workspace p,#kcha-workspace h1,#kcha-workspace h2{margin:0}
#kcha-workspace .k-main-shell{min-height:680px;display:flex;flex-direction:column}
#kcha-workspace .k-header{position:relative;display:flex;align-items:center;justify-content:space-between;padding:20px 28px;height:76px;gap:20px}
#kcha-workspace .k-brand{font-size:22px;font-weight:600;letter-spacing:-1px;white-space:nowrap;min-height:36px}
#kcha-workspace .k-header-actions{display:flex;gap:10px}
#kcha-workspace .k-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;flex-shrink:0;color:var(--k-muted)}
#kcha-workspace .k-icon-button:hover{background:var(--k-surface);color:var(--k-ink)}
#kcha-workspace .k-main{width:min(760px,calc(100% - 80px));margin:0 auto;flex:1;display:flex;flex-direction:column;min-width:0}
#kcha-workspace .k-welcome{padding-top:116px}
#kcha-workspace .k-welcome h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:88px;line-height:1.15;letter-spacing:-5px;margin-left:-4px}
#kcha-workspace .k-japanese{font-family:"Hiragino Mincho ProN","Yu Mincho","Songti SC",serif;font-size:.84em;letter-spacing:-7px}
#kcha-workspace .k-welcome p{font-size:21px;line-height:1.6;margin-top:23px;letter-spacing:.01em}
#kcha-workspace .k-composer-area{position:relative;padding-top:62px;min-width:0}
#kcha-workspace .k-composer{display:flex;align-items:center;gap:12px;min-height:64px;border:1px solid #dedede;border-radius:22px;padding:8px 9px 8px 15px;background:white;box-shadow:0 5px 24px #00000006;margin:0}
#kcha-workspace textarea{display:block;resize:none;flex:1;min-width:0;height:32px;max-height:128px;border:0;outline:0;background:transparent;padding:3px 0;font-size:15px;line-height:26px;border-radius:4px;overflow-y:auto}
#kcha-workspace textarea::placeholder{color:#818181}
#kcha-workspace .k-send{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;background:var(--k-orange);color:white;transition:background-color .15s ease}
#kcha-workspace .k-send:hover{background:#e85100}
#kcha-workspace .k-send.k-voice{background:transparent;color:var(--k-ink)}
#kcha-workspace .k-send.k-voice:hover{background:var(--k-surface)}
#kcha-workspace .k-send.k-stop{background:var(--k-ink)}
#kcha-workspace .k-composer-options{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:14px;padding:9px 7px 0;font-size:12px;line-height:1.6;color:var(--k-ink)}
#kcha-workspace .k-composer-options button{font-size:12px;white-space:nowrap;min-height:28px}
#kcha-workspace .k-context-button{display:flex;align-items:center;justify-content:center;color:var(--k-faint);min-width:24px}
#kcha-workspace .k-command-menu{position:absolute;bottom:calc(100% - 48px);left:0;width:min(300px,100%);padding:7px;border:1px solid var(--k-line);background:white;border-radius:14px;box-shadow:0 6px 22px #00000008;z-index:2}
#kcha-workspace .k-command-menu button{display:flex;gap:15px;align-items:center;padding:9px 11px;width:100%;font-size:12px;border-radius:7px;text-align:left}
#kcha-workspace .k-command-menu button:hover{background:var(--k-surface)}
#kcha-workspace .k-command-menu code{min-width:64px}
#kcha-workspace .k-command-menu span{color:var(--k-muted)}
#kcha-workspace .k-add-slot,#kcha-workspace .k-picker-slot{position:relative;flex-shrink:0}
#kcha-workspace .k-model-trigger{display:flex;align-items:center;gap:10px}
#kcha-workspace .k-effort-value{color:var(--k-muted)}
#kcha-workspace .k-popover{position:absolute;bottom:calc(100% + 10px);right:0;width:250px;padding:7px;background:white;border:1px solid #e5e5e5;border-radius:15px;box-shadow:0 5px 24px #0000000d;z-index:4;text-align:left;line-height:1.5}
#kcha-workspace .k-popover .k-option{display:flex;align-items:center;gap:11px;width:100%;min-height:42px;padding:10px 11px;border-radius:9px;text-align:left;font-size:14px;white-space:normal;color:var(--k-ink)}
#kcha-workspace .k-popover .k-option>span:first-of-type{flex:1;min-width:0}
#kcha-workspace .k-popover .k-option:hover,#kcha-workspace .k-popover .k-option[aria-pressed="true"]{background:#f2f2f2}
#kcha-workspace .k-popover .k-option>svg:last-child{color:var(--k-muted)}
#kcha-workspace .k-popover .k-option[aria-pressed="true"]>svg:last-child{color:var(--k-orange)}
#kcha-workspace .k-popover .k-option strong{display:block;font-size:14px;font-weight:500}
#kcha-workspace .k-popover .k-option small{font-size:11px;color:var(--k-muted)}
#kcha-workspace .k-rich-option span>small{display:block;font-size:12px!important;margin-top:3px;line-height:1.6}
#kcha-workspace .k-popover-rule{height:1px;background:var(--k-line);margin:5px 6px}
#kcha-workspace .k-add-menu{left:0;right:auto;width:222px}
#kcha-workspace .k-skills-menu{left:0;right:auto;width:274px;max-width:calc(100vw - 76px)}
#kcha-workspace .k-permission-menu{width:340px;max-width:calc(100vw - 70px)}
#kcha-workspace .k-popover .k-full-access,#kcha-workspace .k-popover .k-full-access small,#kcha-workspace .k-popover .k-full-access>svg:last-child{color:#a5451b}
#kcha-workspace .k-popover .k-picker-back{display:flex;align-items:center;gap:6px;padding:8px 10px;margin-bottom:4px;color:var(--k-muted);font-size:12px}
#kcha-workspace .k-model-menu{width:230px;padding:5px;border-radius:12px}
#kcha-workspace .k-model-menu.k-show-effort{right:32px}
#kcha-workspace .k-model-menu .k-option{min-height:32px;padding:6px 9px;gap:8px;border-radius:7px;font-size:13px;line-height:1.5}
#kcha-workspace .k-effort-menu{position:absolute;left:calc(100% + 4px);bottom:0;width:190px;padding:5px;background:white;border:1px solid #e5e5e5;border-radius:12px;box-shadow:0 5px 24px #0000000d}
#kcha-workspace .k-popover .k-effort-back{display:none}
#kcha-workspace .k-context-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
#kcha-workspace .k-context-chips>span{display:flex;align-items:center;gap:6px;padding:5px 9px;background:var(--k-surface);border-radius:8px;font-size:12px;color:var(--k-muted)}
#kcha-workspace .k-context-chips button{display:flex;align-items:center;justify-content:center;min-width:24px;min-height:24px}
@media(max-width:740px){#kcha-workspace .k-model-menu,#kcha-workspace .k-model-menu.k-show-effort{right:-80px;width:248px;max-width:calc(100vw - 64px)}#kcha-workspace .k-effort-menu{position:static;left:auto;width:auto;padding:0;border:0;box-shadow:none}#kcha-workspace .k-model-menu.k-show-effort .k-model-base{display:none}#kcha-workspace .k-popover .k-effort-back{display:flex}#kcha-workspace .k-permission-menu{right:-25px}#kcha-workspace .k-composer-options{gap:11px}#kcha-workspace .k-model-trigger{gap:7px}}
#kcha-workspace .k-example{display:flex;align-items:center;gap:5px;margin:17px 4px 0;font-size:12px;color:var(--k-muted);min-height:28px}
#kcha-workspace .k-example:hover{color:var(--k-ink)}
#kcha-workspace .k-starters{display:grid;gap:12px;margin:22px 4px 0;min-width:0}
#kcha-workspace .k-starters .k-example{margin:0}
#kcha-workspace .k-starter-group{display:flex;align-items:baseline;gap:14px;min-width:0}
#kcha-workspace .k-starter-title{flex:0 0 3.6em;font-size:12px;color:var(--k-faint);letter-spacing:.02em}
#kcha-workspace .k-starter-list{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
#kcha-workspace .k-starter{display:inline-flex;align-items:center;min-height:32px;padding:5px 12px;border:1px solid var(--k-line);border-radius:999px;background:var(--k-paper);font-size:13px;line-height:1.4;color:var(--k-ink);white-space:nowrap}
#kcha-workspace .k-starter:hover{background:var(--k-surface);border-color:#dcdcdc}
#kcha-workspace .k-starter[data-mode="fill"]::after{content:"…";margin-left:1px;color:var(--k-faint)}
#kcha-workspace .k-command-menu{max-height:min(40vh,360px);overflow:auto}
#kcha-workspace .k-command-group{margin:8px 11px 2px;font-size:11px;color:var(--k-faint)}
@media(max-width:740px){#kcha-workspace .k-starters{gap:6px;margin:16px 0 0}#kcha-workspace .k-starter-group{align-items:center;gap:10px}#kcha-workspace .k-starter-title{flex:0 0 auto}#kcha-workspace .k-starter-list{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin-right:-20px;padding:2px 20px 2px 0}#kcha-workspace .k-starter-list::-webkit-scrollbar{display:none}#kcha-workspace .k-starter{flex:0 0 auto}}
/* 矮屏（如 375×667）上首页多了三行入口，标题上方的留白收一些，免得欢迎语被输入区挤掉。 */
@media(max-height:720px){#kcha-workspace:not(.k-in-chat) .k-welcome{padding-top:64px}}
#kcha-workspace .k-footer{display:flex;justify-content:flex-end;padding:26px 28px 15px;color:var(--k-faint);font-size:11px;letter-spacing:.02em}
#kcha-workspace .k-followup{margin-top:32px}
#kcha-workspace .k-followup p{font-size:14px}
#kcha-workspace.k-in-chat .k-composer-area{padding-top:52px;margin-top:auto}
#kcha-workspace.k-in-chat .k-example{display:none}
#kcha-workspace .k-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;font-size:12px;color:var(--k-muted)}
#kcha-workspace .k-attachment{display:flex;gap:6px;align-items:center;background:var(--k-surface);border-radius:8px;padding:5px 9px;max-width:100%}
#kcha-workspace .k-attachment span{overflow-wrap:anywhere;min-width:0}
#kcha-workspace .k-attachment button{display:flex;align-items:center;justify-content:center;min-width:24px;min-height:24px}
#kcha-workspace .k-menu{position:absolute;right:26px;top:65px;z-index:3;background:white;border:1px solid var(--k-line);box-shadow:0 8px 24px #00000008;border-radius:12px;padding:6px;width:172px}
#kcha-workspace .k-menu button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:9px 10px;font-size:13px;border-radius:7px}
#kcha-workspace .k-menu button:hover{background:var(--k-surface)}
#kcha-workspace .k-backdrop{position:absolute;inset:0;z-index:5;background:#00000005}
#kcha-workspace .k-history{position:absolute;top:12px;right:12px;z-index:6;width:min(310px,calc(100% - 24px));height:min(420px,calc(100% - 24px));background:white;border:1px solid var(--k-line);border-radius:20px;padding:23px;display:flex;flex-direction:column}
#kcha-workspace .k-history-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
#kcha-workspace .k-history h2{font-size:17px;font-weight:500}
#kcha-workspace .k-new-chat{display:flex;gap:10px;align-items:center;font-size:14px;margin:25px 0 34px;min-height:36px}
#kcha-workspace .k-history-label{font-size:12px;color:var(--k-faint);margin-bottom:14px}
#kcha-workspace .k-history-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;min-height:48px;font-size:14px}
#kcha-workspace .k-history-item:hover{color:var(--k-orange)}
#kcha-workspace .k-history-item[aria-current="true"]{color:var(--k-ink);background:var(--k-surface);border-radius:8px}
#kcha-workspace .k-history-item>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#kcha-workspace .k-history-item small{flex-shrink:0;font-size:11px;color:var(--k-faint)}
#kcha-workspace .k-history-note{font-size:11px;color:var(--k-faint);margin-top:auto;padding-top:20px}
#kcha-workspace .k-notice{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);background:#252525;color:#fff;font-size:12px;border-radius:8px;padding:8px 13px;z-index:4}
@media(max-width:600px){#kcha-workspace .k-main{width:calc(100% - 40px)}#kcha-workspace .k-header{padding:15px 18px;height:68px}#kcha-workspace .k-main-shell{min-height:630px}#kcha-workspace .k-welcome{padding-top:110px}#kcha-workspace .k-welcome h1{font-size:70px}#kcha-workspace .k-welcome p{font-size:17px;margin-top:21px}#kcha-workspace .k-composer-area{padding-top:44px}#kcha-workspace .k-composer{gap:6px;padding-left:8px;border-radius:25px;min-height:58px}#kcha-workspace textarea{font-size:16px}#kcha-workspace .k-send{width:38px;height:38px}#kcha-workspace .k-thread{padding-top:27px}#kcha-workspace .k-user-message{font-size:14px;max-width:92%;padding:9px 13px}#kcha-workspace .k-lead,#kcha-workspace .k-conclusion{font-size:14px}#kcha-workspace .k-approval{padding:17px 15px}#kcha-workspace .k-approval-heading h2{font-size:15px}#kcha-workspace .k-approval-heading span{font-size:11px}#kcha-workspace .k-approval-bottom{gap:8px}#kcha-workspace .k-approval-bottom>div{gap:10px}#kcha-workspace .k-approval-bottom>span{font-size:11px}#kcha-workspace .k-confirm{padding:8px 13px}#kcha-workspace .k-footer{padding:24px 20px 12px;font-size:10px}#kcha-workspace.k-in-chat .k-composer-area{padding-top:35px}}
@media(pointer:coarse){#kcha-workspace .k-icon-button,#kcha-workspace .k-send{min-width:44px;min-height:44px}#kcha-workspace summary{min-height:44px}#kcha-workspace .k-text-button,#kcha-workspace .k-confirm{min-height:44px}}
@media(prefers-reduced-motion:reduce){#kcha-workspace *{animation:none!important;transition:none!important}}

html,body{margin:0;height:100%;min-width:0}
#kcha-workspace .k-main-shell{height:100dvh;min-height:0}
#kcha-workspace .k-scroll{overflow-y:auto;min-height:0;flex:1;overflow-anchor:none}
#kcha-workspace .k-scroll>.k-main{min-height:100%}
#kcha-workspace .k-composer-main{flex:0}
#kcha-workspace:not(.k-in-chat) .k-scroll{flex:0 1 auto}
#kcha-workspace:not(.k-in-chat) .k-footer{margin-top:auto}
#kcha-workspace .k-composer:focus-within{border-color:#dedede;box-shadow:0 5px 24px #00000006;outline:none}
#kcha-workspace .k-context-chips:empty,#kcha-workspace .k-attachments:empty{display:none}
#kcha-workspace .k-context-chips:not(:has(>:not([hidden]))),#kcha-workspace .k-attachments:not(:has(>:not([hidden]))){display:none}
#kcha-workspace .k-popover{position:fixed;bottom:auto;right:auto;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;z-index:10}
#kcha-workspace .k-backdrop{position:fixed}
#kcha-workspace .k-history{position:fixed;height:420px;min-height:min(420px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);flex-shrink:0}
#kcha-workspace #conversation-list{overflow-y:auto;min-height:0}
#kcha-workspace .k-history-header,#kcha-workspace .k-new-chat{flex-shrink:0}
#kcha-workspace .k-notice{position:fixed;z-index:20}
#kcha-workspace #connection{align-self:center;font-size:11px;color:var(--k-muted)}
#kcha-workspace .k-latest{position:absolute;right:0;top:0;font-size:12px;padding:4px 12px;background:var(--k-surface);border-radius:14px}
#kcha-workspace .k-login{min-height:100dvh;display:grid;place-items:center;padding:32px 24px}
#kcha-workspace .k-login-sheet{width:min(340px,100%)}
#kcha-workspace .k-login h1{font:64px Georgia,serif;letter-spacing:-3px}
#kcha-workspace .k-login-intro{color:var(--k-muted);margin:20px 0 32px}
#kcha-workspace .k-login label{display:block;font-size:13px;margin-top:18px}
#kcha-workspace .k-login input{width:100%;padding:12px 14px;border:1px solid var(--k-line);border-radius:12px;font:inherit;margin:8px 0}
#kcha-workspace #login-submit{background:var(--k-orange);color:white;border-radius:22px;padding:10px 20px;margin:20px 0}
#kcha-workspace #login-error{font-size:12px;color:#a5451b;min-height:20px}
#kcha-workspace button:disabled{opacity:.5}
#kcha-workspace .k-meta{font-size:11px;color:var(--k-muted)}
@media(max-width:600px){#kcha-workspace .k-main-shell{min-height:0}#kcha-workspace #connection{max-width:100px;line-height:1.4}}

#kcha-workspace .k-notice{display:flex;align-items:center;gap:10px}
#kcha-workspace .k-notice-close{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;color:inherit}
/* 后加载的各组样式不能缩小触屏操作区；图标本身仍为 16px。 */
@media(pointer:coarse){
  #kcha-workspace :is(button,summary,[role="button"],input,textarea,select,a){min-width:44px!important;min-height:44px!important}
  #kcha-workspace a{display:inline-block}
  #kcha-workspace [role="button"]{display:inline-flex;align-items:center}
  #kcha-workspace .k-code-block{padding-top:54px}
}
