:root{--chat-sidebar:244px}
.app-body{background:#fff;color:#242626;font-family:Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.sidebar{position:fixed;top:0;bottom:0;display:flex;flex-direction:column;width:var(--chat-sidebar);background:#f7f7f6;border-right:1px solid #ececeb;padding:26px 15px 16px;gap:0}
.sidebar .brand{font-size:29px;padding:0 9px;margin-bottom:26px}.sidebar .brand img{width:30px;height:30px}.workspace-label{display:none}
.new-chat{border:1px solid #dddfdc;background:white;border-radius:11px;padding:12px 14px;margin:0 0 17px;text-align:left;font:inherit;font-weight:600;cursor:pointer}
.sidebar #side-nav{display:flex;flex-direction:column;gap:3px}.sidebar .nav-item{padding:10px 12px;border-radius:8px;font-size:13px;min-height:41px;color:#525652}.sidebar .nav-item.active{background:#e9ece8;color:#1d352b}.sidebar .nav-item>span:first-child{font-size:17px}
.history-label{font-size:11px;color:#858984;margin:25px 12px 8px}.conversation-list{min-height:0;overflow:auto;flex:1}.history-item{display:block;width:100%;border:0;border-radius:7px;padding:10px 12px;background:transparent;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#656963;font:inherit;font-size:12px;cursor:pointer}.history-item:hover{background:#eee}.sidebar-bottom{margin-top:16px;display:block}.connected-status{font-size:10px}.user-profile{gap:9px}.user-profile b{font-size:12px}.user-profile small{font-size:10px}.user-profile .avatar{width:31px;height:31px}
.app-shell{margin-left:var(--chat-sidebar)}.app-topbar{height:67px;padding:0 28px;border-bottom:0;background:#fff}.topbar-title{display:flex;align-items:center;gap:10px}.app-topbar #breadcrumb{font-size:13px;color:#626760}.app-topbar #sync-label{font-size:11px}#menu-toggle{display:none}.app-footer{border-top:0}
.chat-active{height:100dvh;overflow:hidden}.chat-active .app-shell{height:100dvh;display:flex;flex-direction:column;min-width:0}.chat-active .app-topbar{flex-shrink:0}.chat-active #main-content{flex:1;min-height:0;display:flex;padding:0 28px;width:100%;max-width:none;margin:0}.chat-active #view{flex:1;min-width:0;min-height:0;display:flex}.chat-active .app-footer{display:none}.mode-banner{flex-shrink:0;font-size:12px}
.conversation{display:flex;flex-direction:column;flex:1;min-height:0;max-width:820px;margin:0 auto;width:100%}.conversation .chat-messages{flex:1;min-height:0;max-height:none;overflow-y:auto;padding:22px 12px 28px;display:flex;flex-direction:column;gap:27px;border:0}.is-empty .chat-messages{justify-content:flex-end;padding-bottom:34px}.chat-welcome{text-align:center}.chat-welcome img{margin-bottom:12px}.chat-welcome p{font-size:13px;color:#737970;margin:0 0 12px}.chat-welcome h1{font-size:clamp(22px,2.7vw,32px);font-weight:550;line-height:1.6;letter-spacing:-.035em;margin:0}
.conversation .chat-bubble{margin-left:0;margin-bottom:0;align-self:flex-start;max-width:94%;background:transparent;padding:0 4px;border:0;border-radius:0;font-size:14px;line-height:1.9;white-space:normal;overflow-wrap:anywhere;color:#303530}.chat-bubble small{display:block;font-size:11px;font-weight:650;color:#777d76;margin-bottom:7px}.chat-bubble .message-text{white-space:pre-wrap}.chat-bubble .btn{margin-top:14px}.conversation .chat-bubble.user{align-self:flex-end;background:#f0f2ee;border-radius:18px;padding:12px 19px;max-width:85%;color:#303530}.chat-bubble.user small{display:none}.conversation .thinking{color:#8a9088;font-size:13px}
.composer-wrap{flex-shrink:0;padding:0 8px 17px}.is-empty .composer-wrap{padding-bottom:clamp(30px,14vh,150px)}.conversation .chat-form{display:block;background:#f5f6f3;border:1px solid #e3e6df;border-radius:22px;padding:16px 16px 10px;box-shadow:0 2px 8px #14220d04;gap:0}.conversation .chat-form:focus-within{border-color:#a6b3a2}.conversation .chat-form textarea{display:block;min-height:54px;width:100%;height:65px;max-height:180px;border:0;outline:0;background:transparent;resize:vertical;box-shadow:none;padding:0 3px;font:inherit;font-size:14px;line-height:1.6;color:#252925}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.composer-bottom>div{display:flex;gap:3px}.composer-tool{border:0;background:transparent;padding:7px 8px;border-radius:7px;font:inherit;font-size:12px;color:#6a7466;cursor:pointer}.composer-tool:hover{background:#e7ebe3}.send-button{border:0;border-radius:50%;width:35px;height:35px;background:#293e32;color:white;font-size:22px;cursor:pointer;flex-shrink:0}.send-button:disabled{opacity:.4;cursor:default}.chat-disclaimer{font-size:10px;text-align:center;line-height:1.6;color:#969c92;margin:12px 0 0}.suggestions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:20px}.suggestions button{border:1px solid #e4e7e0;border-radius:20px;padding:9px 14px;background:white;color:#687163;font:inherit;font-size:12px;cursor:pointer}.suggestions button:hover{background:#f6f8f3}.chat-connect{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px;line-height:1.8;margin:8px 0 18px}
#mail-editor{width:min(650px,calc(100vw - 28px));max-height:90dvh;overflow:auto}#mail-editor .form-field{display:block;margin-bottom:13px}#mail-editor input,#mail-editor textarea{display:block;width:100%;margin-top:6px}.mail-body{min-height:190px;resize:vertical;font:inherit;line-height:1.7}.mail-preview{display:grid;grid-template-columns:50px 1fr;gap:8px 14px;font-size:13px}.mail-preview dt{color:#7b8276}.mail-preview dd{margin:0;overflow-wrap:anywhere}.mail-preview-body{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;line-height:1.8;background:#f6f7f4;padding:18px;border-radius:10px;max-height:40vh;overflow:auto}#mail-search-form{flex-wrap:wrap}#mail-search-form input{flex:1;min-width:220px;padding:11px 14px;border:1px solid #dce2d7;border-radius:9px}
@media(max-width:900px){:root{--chat-sidebar:210px}.app-topbar{padding:0 17px}.chat-active #main-content{padding:0 16px}.app-topbar #sync-label{display:none}.conversation .chat-messages{padding-left:2px;padding-right:2px}}
@media(max-width:760px){.sidebar{position:fixed;inset:0 auto 0 0;height:100dvh;z-index:60;width:244px;display:flex;flex-direction:column;transform:translateX(-100%);box-shadow:8px 0 30px #0001}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open .app-shell{margin-left:244px;width:100vw}.app-shell{margin-left:0}.app-topbar{height:59px;padding:0 12px}.topbar-title{gap:5px}.app-topbar #breadcrumb{font-size:11px}#menu-toggle{display:block}#notification-button{display:none}.chat-active #main-content{padding:0 10px}.chat-welcome h1{font-size:22px}.conversation .chat-messages{gap:22px}.composer-wrap{padding:0 0 12px}.is-empty .composer-wrap{padding-bottom:35px}.chat-connect{font-size:11px}.conversation .chat-form{border-radius:18px;padding:13px 12px 9px}.composer-tool{font-size:11px;padding:7px 6px}.suggestions{gap:6px}.suggestions button{padding:8px 10px;font-size:11px}.conversation .chat-bubble{font-size:13px;max-width:100%}.conversation .chat-bubble.user{max-width:90%}.mode-banner{font-size:10px;padding:7px 12px}}
