:root{color-scheme:dark;--bg:#171916;--panel:#20221e;--panel-2:#262923;--line:#343830;--text:#f2f2ec;--muted:#999d92;--yellow:#f4d44d;--yellow-deep:#d5b52e;--green:#8eae65;--radius:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}.app-shell{display:flex;min-height:100vh}.sidebar{width:264px;background:#141512;border-right:1px solid #2a2c27;display:flex;flex-direction:column;padding:24px 18px 18px;flex-shrink:0}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--text);padding:5px 7px 30px}.brand-mark{height:38px;width:38px;background:var(--yellow);color:#202116;border-radius:11px;display:grid;place-items:center;font-size:22px;font-weight:850;letter-spacing:-2px}.brand-name{font-size:15px;font-weight:700;letter-spacing:.01em}.brand-name span{display:block;color:var(--muted);font-size:10px;font-weight:500;margin-top:4px;letter-spacing:.09em;text-transform:uppercase}.new-chat{height:44px;border:1px solid #393c34;border-radius:11px;background:#23251f;color:#f2f2ec;display:flex;align-items:center;gap:10px;padding:0 13px;font:inherit;font-size:13px;text-align:left;cursor:pointer}.new-chat:hover,.suggestion:hover{background:#2b2e27;border-color:#55594c}.new-chat>span:first-child{font-size:20px;color:var(--yellow)}.sidebar-note{padding:34px 9px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.16em;color:var(--muted)}.sidebar-note p{font-size:12px;color:#bdc0b7;line-height:1.6;margin-top:12px}.sidebar-footer{margin-top:auto;display:flex;align-items:center;gap:8px;color:#b4b8ae;font-size:11px;padding:13px 8px;border-top:1px solid #292b26}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#91b56c;box-shadow:0 0 10px #91b56c55}.model-tag{margin-left:auto;color:#d4d6cc;background:#272923;border:1px solid #383b33;border-radius:5px;padding:4px 6px;font-size:10px}.main-panel{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:68px;border-bottom:1px solid #292b26;display:flex;align-items:center;padding:0 34px;gap:15px}.topbar-spacer{flex:1}.connection{color:#b5b8af;font-size:11px;display:flex;align-items:center;gap:8px}.language-toggle{border:1px solid #3a3d35;background:#242620;color:#f2f2ec;border-radius:8px;padding:7px 11px;font-size:12px;cursor:pointer}.language-toggle:hover{border-color:var(--yellow-deep)}.mobile-brand{display:none}.chat-layout{width:min(850px,calc(100% - 48px));margin:0 auto;display:flex;flex:1;min-height:0;flex-direction:column}.conversation{flex:1;overflow-y:auto;display:flex;flex-direction:column;justify-content:center;padding:36px 0 18px}.welcome{text-align:center;margin:auto 0}.welcome-icon{height:55px;width:55px;margin:0 auto 23px;border-radius:17px;background:var(--yellow);color:#252417;display:grid;place-items:center;font-size:31px;font-weight:850;letter-spacing:-3px;box-shadow:0 8px 30px #d5b52e20}.welcome .eyebrow{color:#c7b144}.welcome h1{font-size:32px;letter-spacing:-.04em;margin:13px 0 10px;font-weight:620}.welcome-copy{margin:0 auto;color:#a9ada2;font-size:14px;line-height:1.55}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:36px 0 0}.suggestion{border:1px solid #363930;background:#20221e;color:#c7c9c0;border-radius:12px;padding:14px 13px;min-height:72px;text-align:left;font:inherit;font-size:12px;line-height:1.45;cursor:pointer;display:flex;align-items:flex-start;gap:10px}.suggestion-icon{color:var(--yellow);font-size:15px;line-height:1}.messages{display:flex;flex-direction:column;gap:23px;padding:16px 0 28px}.message{display:flex;gap:12px;align-items:flex-start;max-width:100%}.message.user{justify-content:flex-end}.avatar{width:29px;height:29px;flex:0 0 29px;border-radius:9px;background:#34372f;color:var(--yellow);display:grid;place-items:center;font-size:13px;font-weight:700}.message.user .avatar{order:2;background:#4e482b;color:#f8e47c}.bubble{max-width:min(690px,85%);font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.message.user .bubble{background:#292b25;border:1px solid #363930;border-radius:14px 4px 14px 14px;padding:11px 14px}.message.assistant .bubble{padding:2px 0;color:#e4e5dd}.message.error .bubble{color:#f0a29a}.composer{border:1px solid #41443a;background:#22241f;border-radius:16px;padding:15px 16px 11px;box-shadow:0 12px 40px #0002}.composer:focus-within{border-color:#777047}textarea{display:block;width:100%;resize:none;max-height:180px;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:14px;line-height:1.5;min-height:32px;padding:5px 2px}textarea::placeholder{color:#85897f}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.privacy-hint{font-size:10px;color:#8f9389;display:flex;gap:7px;align-items:center;margin:8px 0 0}.lock-icon{font-size:15px;color:#a8ad9e}.send-button{border:0;background:var(--yellow);color:#282518;border-radius:9px;padding:8px 11px;display:flex;gap:10px;align-items:center;font-weight:650;font-size:11px;cursor:pointer}.send-button:hover{background:#ffe36a}.send-button:disabled{opacity:.5;cursor:wait}.disclaimer{text-align:center;color:#767a71;font-size:10px;padding:12px 0 16px}.typing{display:flex;gap:5px;padding:9px 0}.typing i{width:5px;height:5px;background:#aeb19f;border-radius:50%;animation:pulse 1s infinite alternate}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes pulse{to{opacity:.25;transform:translateY(-3px)}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[dir=rtl] .sidebar{border-right:0;border-left:1px solid #2a2c27}[dir=rtl] .suggestion{text-align:right}[dir=rtl] .model-tag{margin-left:0;margin-right:auto}[dir=rtl] .message.user .bubble{border-radius:4px 14px 14px 14px}[dir=rtl] .message.user .avatar{order:0}[dir=rtl] .message.user{justify-content:flex-start}@media(max-width:760px){.sidebar{display:none}.topbar{height:58px;padding:0 17px}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:650}.mobile-brand .brand-mark{height:29px;width:29px;border-radius:8px;font-size:17px}.chat-layout{width:calc(100% - 32px)}.welcome h1{font-size:26px}.welcome-copy{font-size:13px;max-width:320px}.suggestions{grid-template-columns:1fr;gap:8px;margin-top:25px}.suggestion{min-height:48px;align-items:center}.connection{font-size:0;gap:0}.connection .status-dot{width:8px;height:8px}.conversation{padding-top:20px}.privacy-hint{max-width:70%;font-size:9px}}
.sheets-card{margin:0 0 20px;padding:14px 9px;border-top:1px solid #292b26;border-bottom:1px solid #292b26}.sheets-card p{font-size:11px;color:#bdc0b7;line-height:1.5;margin:9px 0}.sheets-button{width:100%;margin-top:8px;border:1px solid #514b2d;border-radius:8px;background:#343020;color:#f5df72;padding:8px 9px;font:inherit;font-size:11px;cursor:pointer}.sheets-button.secondary{border-color:#393c34;background:#23251f;color:#d6d8cf}.sheets-button:hover{border-color:var(--yellow)}.sheets-button:disabled{opacity:.6;cursor:wait}.sheets-result{max-height:160px;overflow:auto;font-size:10px;color:#d0d2c8;overflow-wrap:anywhere}.sheets-result p{margin:7px 0;color:#9fa397}.sheets-result strong{color:var(--yellow)}
.sidebar-toggle{width:36px;height:36px;flex:0 0 36px;border:1px solid #393c34;border-radius:9px;background:#23251f;color:var(--yellow);font-size:18px;cursor:pointer}.sidebar-toggle:hover{border-color:var(--yellow-deep)}.app-shell.sidebar-collapsed .sidebar{display:none}body.sidebar-open::after{content:"";position:fixed;inset:58px 0 0;background:#0008;z-index:18}.sidebar{z-index:20}.topbar{position:relative;z-index:21}@media(max-width:760px){.sidebar{display:none;position:fixed;left:0;top:58px;bottom:0;width:min(300px,85vw);overflow:auto;box-shadow:12px 0 34px #0006}.sidebar-open .sidebar{display:flex}body.sidebar-open .app-shell.sidebar-collapsed .sidebar{display:flex}[dir=rtl] .sidebar{left:auto;right:0}.sidebar-toggle{margin-right:2px}.topbar{gap:10px}}
body:not(.authenticated) .app-shell { display: none; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #171916; color: #f4f4ef; font-family: inherit; }
.auth-screen[hidden] { display: none; }
.auth-card { width: min(420px, 100%); display: grid; gap: 12px; padding: 32px; border: 1px solid #3b4039; border-radius: 18px; background: #20231f; }
.auth-card input { padding: 12px; border-radius: 8px; border: 1px solid #555; background: #171916; color: inherit; }
.auth-card h1 { margin: 0; }
dialog.auth-card:not([open]) { display:none; }
dialog.auth-card[open] { display:block; }
#password-form { display:grid; gap:12px; }
#password-form label { color:#c9ccc2; font-size:12px; }
#password-form input { width:100%; min-width:0; }
#password-form button:not(.send-button) { justify-self:start;border:1px solid #41443a;border-radius:8px;padding:8px 11px;color:#e4e5dd;background:#292c26;font:inherit;font-size:12px;cursor:pointer; }
#password-dialog::backdrop { background:#0009; backdrop-filter:blur(3px); }
.topbar button:not(.sidebar-toggle):not(.language-toggle) { border:1px solid #393c34; border-radius:8px; padding:7px 10px; color:var(--text); background:#23251f; cursor:pointer; font:inherit; font-size:11px; }
.topbar button:hover { border-color:var(--yellow-deep); }
.account-menu-wrap { position:relative; }
.account-menu-toggle { display:flex;align-items:center;gap:8px; }
.account-menu { position:absolute;z-index:40;right:0;top:calc(100% + 9px);width:184px;padding:6px;border:1px solid #3b4039;border-radius:11px;background:#20231f;box-shadow:0 12px 34px #0008; }
.account-menu[hidden] { display:none; }
.account-menu button { width:100%;text-align:left;border:0!important;background:transparent!important;padding:10px!important;border-radius:7px!important;color:var(--text)!important;font:inherit;font-size:12px!important;cursor:pointer; }
.account-menu button:hover { background:#2b2e27!important; }
.account-menu button + button { border-top:1px solid #343830!important;border-radius:0 0 7px 7px!important; }
.admin-dialog { width:min(540px,calc(100vw - 32px)); max-height:calc(100vh - 40px); overflow:auto; padding:24px; color:var(--text); background:#20231f; border:1px solid #3b4039; border-radius:18px; box-shadow:0 24px 80px #0009; }
.admin-dialog::backdrop { background:#0009; backdrop-filter:blur(3px); }
.admin-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.admin-dialog h2 { margin:4px 0 7px; font-size:24px; }
.admin-dialog h3 { margin:2px 0 8px; font-size:15px; }
.admin-help,.admin-message { color:#aeb2a8; font-size:12px; line-height:1.5; margin:5px 0 15px; }
.dialog-close { width:34px;height:34px;border:1px solid #41443a;border-radius:9px;color:var(--text);background:#292c26;font-size:22px;cursor:pointer; }
.employee-list { display:grid; gap:8px; margin:16px 0; }
.employee-row { display:flex; align-items:center; gap:12px; border:1px solid #363a32; border-radius:11px; padding:12px; background:#252822; }
.employee-identity { min-width:0; flex:1; overflow-wrap:anywhere; font-size:13px; }
.employee-state { display:block; margin-top:5px; color:#9da295; font-size:10px; }
.employee-state.disabled { color:#e0a29b; }
.employee-row button,.admin-form-actions button,.admin-dialog button:not(.admin-primary):not(.dialog-close) { border:1px solid #41443a;border-radius:8px;padding:7px 9px;color:#e4e5dd;background:#292c26;font:inherit;font-size:11px;cursor:pointer; }
.employee-row button:disabled { opacity:.45;cursor:default; }
.admin-primary { border:1px solid #ddc044;border-radius:9px;padding:9px 12px;color:#282518;background:var(--yellow);font:inherit;font-size:12px;font-weight:650;cursor:pointer; }
.admin-form { display:grid; gap:9px; margin-top:16px; padding:16px; border:1px solid #41443a; border-radius:12px; background:#1b1d19; }
.admin-form[hidden] { display:none; }
.admin-form label { font-size:11px;color:#c9ccc2; }
.admin-form input { width:100%;padding:10px;border:1px solid #4a4e44;border-radius:8px;background:#151713;color:var(--text);font:inherit;font-size:13px; }
.admin-form-actions { display:flex; gap:8px; margin-top:5px; }
.admin-message:empty { display:none; }
@media(max-width:760px) { .topbar { gap:7px; padding:0 10px; } #signed-in-user { max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; } .topbar button:not(.sidebar-toggle):not(.language-toggle) { padding:6px 7px; font-size:10px; } }
.stop-button{border:1px solid #594741;background:#392b28;color:#f2d5cf;border-radius:9px;padding:8px 13px;display:flex;align-items:center;gap:8px;font:inherit;font-size:11px;font-weight:650;cursor:pointer}.stop-button:hover{background:#4a322d;border-color:#8c5d50}.stop-button:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}.stop-button[hidden]{display:none!important}
.chat-history-panel{display:flex;flex-direction:column;min-height:0;margin-top:22px;flex:1}
.chat-history-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 3px 9px}
.chat-history-heading button{border:0;background:transparent;color:#92968b;font:inherit;font-size:10px;cursor:pointer;padding:4px}
.chat-history-heading button:hover:not(:disabled){color:var(--yellow)}
.chat-history-heading button:disabled{opacity:.4;cursor:default}
.chat-history-list{display:flex;flex-direction:column;gap:4px;overflow-y:auto;max-height:42vh;padding-right:2px}
.chat-history-row{display:flex;align-items:center;gap:3px;border-radius:8px;background:transparent;border:1px solid transparent}
.chat-history-row:hover,.chat-history-row.active{background:#22241f;border-color:#34372f}
.chat-history-open{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border:0;background:transparent;color:#c2c5bb;padding:9px 9px;font:inherit;font-size:11px;cursor:pointer}
.chat-history-row.active .chat-history-open{color:var(--yellow)}
.chat-history-delete{width:25px;height:25px;flex:0 0 25px;border:0;border-radius:6px;background:transparent;color:#8e9288;font-size:18px;line-height:1;cursor:pointer;opacity:.45}
.chat-history-row:hover .chat-history-delete{opacity:1}
.chat-history-delete:hover{background:#383a33;color:#f0a29a}
.chat-history-open:disabled,.chat-history-delete:disabled{cursor:wait;opacity:.4}
.chat-history-empty{margin:2px 4px;color:#777b72;font-size:11px;line-height:1.5}
[dir=rtl] .chat-history-open{text-align:right}
@media(max-width:760px){.chat-history-list{max-height:34vh}}
.zoho-send-status{color:#e2cb78!important;font-size:10px!important;line-height:1.45!important}
.zoho-message-row{padding:3px 0 8px;border-bottom:1px solid #2f322b}
.zoho-message-row p{overflow-wrap:anywhere}
.zoho-reply-button{margin:0 0 3px;padding:6px 8px!important;width:auto!important}
.email-compose-dialog{width:min(620px,calc(100vw - 32px))}
.email-compose-dialog .admin-form{max-height:62vh;overflow:auto}
.email-compose-dialog .admin-form input,.email-compose-dialog .admin-form textarea{width:100%;padding:10px;border:1px solid #4a4e44;border-radius:8px;background:#151713;color:var(--text);font:inherit;font-size:13px}
.email-compose-dialog .admin-form textarea{resize:vertical;line-height:1.55}
.email-review{margin-top:16px;padding:16px;border:1px solid #41443a;border-radius:12px;background:#1b1d19;overflow:auto;max-height:65vh}
.email-review[hidden]{display:none}
.email-review h3{margin:0 0 15px}
.email-review p{font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.email-review strong{color:#d7d9cf}
.email-review pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:38vh;overflow:auto;padding:12px;border:1px solid #383b33;border-radius:8px;background:#151713;font:inherit;font-size:12px;line-height:1.6}
.email-review .admin-message{color:#e2cb78}
