:root{--cheom-ai-width:360px}
.cheom-ai-work-mode-bar{display:flex;align-items:center;gap:8px;padding:9px 17px;border-bottom:1px solid #e4ebe6;background:#f4f8f5;flex-shrink:0}.cheom-ai-work-mode{flex:1;min-width:0;padding:7px 9px;border:1px solid #ccdcd1;border-radius:7px;background:#fff;color:#35694d;font-size:11px;font-weight:600}.cheom-ai-skill-box{display:grid;gap:6px}.cheom-ai-skill-label{font-size:10px;font-weight:650;color:#476c55}.cheom-ai-skill-select{width:100%;min-width:0;border:1px solid #cfded4;border-radius:7px;padding:9px;background:#f7fbf8;font-size:11px;color:#426b51}.cheom-ai-skill-description{margin:1px 0 7px;font-size:10px;color:#708a79;line-height:1.75}.cheom-ai-skill-fields{display:grid;gap:10px}.cheom-ai-skill-field{display:grid;gap:4px;color:#567660;font-size:10px}.cheom-ai-skill-field>span{font-weight:600}.cheom-ai-skill-field>small{font-size:9px;color:#809587;line-height:1.65;overflow-wrap:anywhere}.cheom-ai-skill-field input,.cheom-ai-skill-field select,.cheom-ai-skill-field textarea{width:100%;min-width:0;padding:8px 9px;border:1px solid #d6e2d9;border-radius:6px;background:#fff;color:#375c44;font-size:11px}.cheom-ai-skill-field textarea{resize:vertical;min-height:68px;font-family:ui-monospace,monospace}.cheom-ai-skill-checks{margin:5px 0 0;color:#7c9384;font-size:9px;line-height:1.75;overflow-wrap:anywhere}.is-mcp .cheom-ai-composer{max-height:55dvh;overflow-y:auto;scrollbar-width:thin}.is-mcp .cheom-ai-context-help{margin-left:0}.cheom-ai-receipt{margin-top:10px;padding-top:8px;border-top:1px solid #dce8df;font-size:10px;color:#698471;overflow-wrap:anywhere}.cheom-ai-receipt summary{cursor:pointer}.cheom-ai-receipt p{margin:5px 0}.cheom-ai-message a.cheom-ai-apply{display:inline-block}@media(max-width:600px){.cheom-ai-skill-field input,.cheom-ai-skill-field select,.cheom-ai-skill-field textarea{font-size:16px}.is-mcp .cheom-ai-composer{max-height:52dvh}}
.cheom-ai-model-bar{display:flex;gap:8px;padding:10px 17px;border-bottom:1px solid #e8eee9;background:#fff;flex-shrink:0}.cheom-ai-model-select{min-width:0;flex:1;border:1px solid #dfe8e2;border-radius:6px;padding:7px 8px;background:#fafcfb;font-size:10px;color:#63816e}.cheom-ai-settings-button{flex-shrink:0;border:1px solid #dce7df;border-radius:6px;background:#f3f8f4;padding:6px 9px;color:#638570;font-size:9px}.cheom-ai-settings-button:hover{background:#e9f3ec}.cheom-ai-model-select:disabled{color:#9aac9f;background:#f6f8f6}
.cheom-ai-root{font-family:inherit;color:var(--ink,#1d313d);font-size:12px;line-height:1.65}
.cheom-ai-panel{position:fixed;inset:0 0 0 auto;width:var(--cheom-ai-width);height:100vh;height:100dvh;display:flex;flex-direction:column;background:#fcfdfc;border-left:1px solid #dce5e1;box-shadow:-6px 0 25px #102b3605;z-index:35;overflow:hidden}
.cheom-ai-header{min-height:72px;padding:16px 19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5ece8;background:#fff;gap:12px;flex-shrink:0}
.cheom-ai-identity{display:flex;align-items:center;gap:11px;min-width:0}.cheom-ai-mark{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:10px;background:#e5f0eb;color:#387d6b;font-size:12px;font-weight:750;letter-spacing:.1px}.cheom-ai-header h2{font-size:13px;font-weight:650;margin:0;letter-spacing:-.3px}.cheom-ai-model{font-size:9px;color:#8ba096;margin:2px 0 0;max-width:240px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cheom-ai-model::before{content:'';display:inline-block;width:4px;height:4px;margin-right:5px;margin-bottom:1px;border-radius:50%;background:#66a68d}.cheom-ai-icon{display:grid;place-items:center;flex-shrink:0;border:0;background:transparent;border-radius:6px;width:29px;height:29px;color:#8b9c94;font-size:24px;line-height:1}.cheom-ai-icon:hover{background:#edf3ef;color:#406c58}
.cheom-ai-context{margin:16px 17px 0;padding:13px 14px;background:#f0f5f1;border:1px solid #e1ebe4;border-radius:9px;flex-shrink:0}.cheom-ai-context-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.cheom-ai-context-kicker{font-size:9px;color:#7b9989}.cheom-ai-context-view{font-size:8px;color:#729080;white-space:nowrap;max-width:155px;overflow:hidden;text-overflow:ellipsis}.cheom-ai-context-title{font-size:11px;font-weight:600;color:#476857;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cheom-ai-context-option{margin-top:10px;display:flex;align-items:center;gap:7px;font-size:10px;color:#637d6c;cursor:pointer}.cheom-ai-context-option input{width:12px;height:12px;accent-color:#287b60;margin:0;flex-shrink:0}.cheom-ai-context-help{font-size:9px;line-height:1.7;margin:5px 0 0 19px;color:#91a297}
.cheom-ai-conversation{flex:1;min-height:90px;overflow-y:auto;overscroll-behavior:contain;padding:20px 18px 12px;scrollbar-width:thin;scrollbar-color:#d2ded6 transparent;outline-offset:-3px!important}.cheom-ai-messages{display:flex;flex-direction:column;gap:22px;min-height:100%}.cheom-ai-empty{text-align:center;padding:30px 1px 16px;margin:auto 0}.cheom-ai-empty-symbol{display:inline-grid;place-items:center;width:46px;height:46px;border:1px solid #e2ece5;background:#f1f7f3;border-radius:15px;color:#6a9b83;font-size:27px;margin-bottom:18px}.cheom-ai-empty h3{font-size:15px;font-weight:600;letter-spacing:-.4px;color:#426351;margin:0 0 9px}.cheom-ai-empty p{font-size:11px;line-height:1.9;white-space:pre-line;color:#8a9e91;margin:0 0 22px}.cheom-ai-suggestions{display:grid;gap:9px}.cheom-ai-suggestion{border:1px solid #e0e9e3;background:#fff;border-radius:8px;color:#6a8374;padding:12px 14px;font-size:10px;text-align:left;transition:background .15s,border-color .15s}.cheom-ai-suggestion:hover{background:#f0f6f2;border-color:#b9d0c1}
.cheom-ai-message{min-width:0}.cheom-ai-message-meta{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:9px;color:#99a99f}.cheom-ai-message-meta strong{font-size:10px;font-weight:600;color:#647e6d}.cheom-ai-message-meta time{font-size:8px}.cheom-ai-message-content{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font-size:12px;line-height:1.9;color:#4b6557}.cheom-ai-message.from-user{margin-left:23px}.from-user .cheom-ai-message-meta{justify-content:flex-end}.from-user .cheom-ai-message-content{background:#edf4ef;border:1px solid #e2ece5;border-radius:11px 3px 11px 11px;padding:12px 14px;color:#516c5c;font-size:11px}.from-assistant .cheom-ai-message-content{padding:0 2px}.cheom-ai-message-context{font-size:8px;line-height:1.65;color:#95a59b;margin:8px 0 0;overflow-wrap:anywhere}.cheom-ai-apply{border:1px solid #c6dbce;background:#f0f7f2;border-radius:6px;color:#458264;font-size:10px;font-weight:550;padding:7px 10px;margin-top:12px}.cheom-ai-apply:hover{background:#e2f0e7;border-color:#a7c7b2}
.cheom-ai-status{margin:0 18px 10px;padding:10px 12px;background:#f0f5f2;border:1px solid #e0e9e3;border-radius:7px;color:#80958a;font-size:10px;line-height:1.75;display:flex;align-items:center;gap:10px;flex-shrink:0}.cheom-ai-status>span{flex:1;overflow-wrap:anywhere}.cheom-ai-status.is-error{background:#fff7f2;border-color:#f0e1d6;color:#a07860}.cheom-ai-retry{border:0;background:transparent;padding:3px 0;color:#487e64;font-size:10px;font-weight:650;white-space:nowrap}
.cheom-ai-message.is-error .cheom-ai-message-content{color:#9a735e;background:#fff8f3;border:1px solid #f0e3d9;border-radius:8px;padding:11px 12px;font-size:11px}
.cheom-ai-capture{padding:0 0 10px}.cheom-ai-capture-button{width:100%;border:1px dashed #bfd3c6;background:#f6faf7;color:#4b8164;font-size:10px;font-weight:550;min-height:34px;border-radius:7px;padding:8px 12px}.cheom-ai-capture-button:hover{background:#edf6ef;border-color:#8fb79e}.cheom-ai-capture-hint{font-size:9px;color:#92a397;line-height:1.7;margin:7px 0 0}.cheom-ai-capture-preview{display:flex;gap:11px;align-items:center;padding:10px;margin-top:8px;border:1px solid #dce8df;border-radius:8px;background:#f5f9f6}.cheom-ai-capture-image{display:block;width:96px;height:68px;object-fit:contain;object-position:top left;background:white;border:1px solid #e1e8e3;border-radius:3px;flex-shrink:0}.cheom-ai-capture-info{min-width:0}.cheom-ai-capture-info strong{font-size:10px;font-weight:600;color:#587a64}.cheom-ai-capture-info p{font-size:8px;line-height:1.7;color:#91a297;margin:3px 0}.cheom-ai-capture-remove{border:0;background:transparent;padding:0;color:#859d8c;text-decoration:underline;text-underline-offset:3px;font-size:8px}
.cheom-ai-proposal{padding:13px;margin-top:13px;border:1px solid #d5e5da;border-radius:9px;background:#f6faf7}.cheom-ai-proposal-heading{display:block;font-size:11px;font-weight:650;color:#4c765c}.cheom-ai-proposal-summary{font-size:10px;line-height:1.85;color:#799180;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 10px}.cheom-ai-proposal-details{border-top:1px solid #e1ebe4;padding-top:8px;margin-top:9px}.cheom-ai-proposal-details summary{cursor:pointer;color:#6b8975;font-size:10px;font-weight:500;padding:3px 0}.cheom-ai-proposal-title{display:block;margin:11px 0 7px;font-size:11px;overflow-wrap:anywhere;color:#4f705a}.cheom-ai-proposal-content{font-size:10px;line-height:1.9;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:white;border:1px solid #e3ebe5;border-radius:5px;scrollbar-width:thin}.cheom-ai-proposal-changes{max-height:220px;overflow:auto;scrollbar-width:thin;margin-top:7px}.cheom-ai-proposal-change{display:flex;gap:9px;padding:9px 0;border-bottom:1px solid #e3ece6;align-items:flex-start}.cheom-ai-proposal-change>strong{flex-shrink:0;font-size:9px;color:#6d8c76;min-width:26px}.cheom-ai-proposal-change>div{display:grid;gap:4px;min-width:0;font-size:10px;line-height:1.7;overflow-wrap:anywhere}.cheom-ai-before{color:#a68f80;text-decoration:line-through;white-space:pre-wrap}.cheom-ai-after{color:#4d8964;white-space:pre-wrap}.cheom-ai-proposal-note{font-size:8px;line-height:1.8;color:#91a296;margin:8px 0 0}.cheom-ai-proposal .cheom-ai-apply{background:white;margin-top:10px}.cheom-ai-proposal .cheom-ai-apply:disabled{opacity:.6}
.cheom-ai-composer{padding:15px 18px 12px;border-top:1px solid #e4ebe6;background:#fff;flex-shrink:0}.cheom-ai-modes{display:flex;gap:7px;margin-bottom:12px}.cheom-ai-mode{border:1px solid transparent;background:transparent;color:#91a197;font-size:10px;padding:5px 10px;border-radius:6px}.cheom-ai-mode[aria-pressed=true]{background:#ecf5ef;border-color:#d9e8df;color:#408263;font-weight:600}.cheom-ai-mode:hover{background:#f3f7f4}.cheom-ai-input{display:block;width:100%;min-height:76px;max-height:150px;resize:none;border:1px solid #dce6df;border-radius:8px;padding:11px 12px;background:#fcfdfc;color:#486653;font-size:11px;line-height:1.85;outline-offset:2px!important;scrollbar-width:thin}.cheom-ai-input::placeholder{color:#a0afa5}.cheom-ai-input:disabled{background:#f7faf8;color:#9aaba0}.cheom-ai-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px}.cheom-ai-input-hint{font-size:8px;color:#a0afa5}.cheom-ai-send{border:0;background:#367c61;color:#fff;border-radius:7px;padding:8px 12px;font-size:10px;font-weight:600;white-space:nowrap;min-height:33px}.cheom-ai-send:hover{background:#2b6d53}.cheom-ai-send:disabled{background:#c2d4c8;opacity:1;color:#f8fbf9}.cheom-ai-save-note{font-size:8px;color:#a0afa5;margin:8px 0 0;text-align:center}
.cheom-ai-launcher{position:fixed;right:22px;bottom:22px;z-index:35;border:1px solid #366d56;border-radius:12px;background:#285d48;color:#f3faf5;padding:12px 17px;font-size:11px;font-weight:600;box-shadow:0 6px 22px #163f3029;display:flex;align-items:center;gap:8px}.cheom-ai-launcher::before{content:'✦';font-size:17px;line-height:1;color:#b7dec5}.cheom-ai-launcher:hover{background:#1e513d}.cheom-ai-backdrop{position:fixed;inset:0;border:0;border-radius:0;background:#102b366b;z-index:45;padding:0;backdrop-filter:blur(1px)}
@media(max-width:1024px){body.cheom-ai-overlay-open{overflow:hidden}.cheom-ai-panel{width:min(var(--cheom-ai-width),100%);z-index:46;box-shadow:-12px 0 45px #102b3626}.cheom-ai-launcher{right:16px;bottom:18px}.cheom-ai-header{min-height:66px}.cheom-ai-context{margin-top:13px}.cheom-ai-input{font-size:16px;min-height:83px;line-height:1.55}.cheom-ai-message-content{font-size:13px}.from-user .cheom-ai-message-content{font-size:12px}.cheom-ai-input-hint{font-size:7px}.cheom-ai-composer{padding-bottom:max(13px,env(safe-area-inset-bottom))}}
@media(max-height:650px){.cheom-ai-context{padding:9px 12px;margin-top:10px}.cheom-ai-context-help{display:none}.cheom-ai-context-option{margin-top:6px}.cheom-ai-header{min-height:60px;padding-top:11px;padding-bottom:11px}.cheom-ai-empty{padding-top:12px}.cheom-ai-empty-symbol{display:none}.cheom-ai-composer{padding-top:10px}.cheom-ai-modes{margin-bottom:8px}.cheom-ai-save-note{display:none}.cheom-ai-capture-preview{padding:7px}.cheom-ai-capture-image{height:46px;width:75px}.cheom-ai-capture-hint{font-size:8px;margin-top:4px}.cheom-ai-capture-button{min-height:29px;padding:5px 10px}}
