/* V0.24.71: refreshed dark workspace, legible equations, support and typing motion. */
body[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0a1020;--surface:#111a2c;--surface-2:#172238;--surface-3:#202e46;
  --text:#edf3ff;--text-soft:#b0bfd6;--text-faint:#8293ae;--border:#293852;--border-strong:#3a4b68;
  --violet:#9b8cff;--violet-2:#b3a7ff;--cyan:#69dccb;--cyan-soft:#142c34;
  --green:#52d4a2;--red:#ff788d;--shadow:0 24px 72px rgba(0,0,0,.42);--shadow-soft:0 10px 30px rgba(0,0,0,.27);
}
body[data-theme="dark"],body[data-theme="dark"] .app-shell{background:radial-gradient(ellipse at 48% -15%,rgba(70,90,153,.16),transparent 52%),#0a1020!important;color:var(--text)!important}
body[data-theme="dark"] .sidebar{background:#0e1728!important;border-color:#25334b!important;color:var(--text)!important}
body[data-theme="dark"] .main-panel,body[data-theme="dark"] .conversation{background:transparent!important;color:var(--text)!important}
body[data-theme="dark"] .topbar{background:rgba(14,23,40,.92)!important;border-color:#26344c!important;color:var(--text)!important}
body[data-theme="dark"] .topbar-button,body[data-theme="dark"] .soft-pill,body[data-theme="dark"] .status-pill,body[data-theme="dark"] .notification-button,
body[data-theme="dark"] .new-chat-button,body[data-theme="dark"] .account-row,body[data-theme="dark"] .chat-search-wrap input,
body[data-theme="dark"] .composer-card,body[data-theme="dark"] .tool-menu,body[data-theme="dark"] .effort-menu,
body[data-theme="dark"] .settings-input,body[data-theme="dark"] .settings-textarea,body[data-theme="dark"] select,
body[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),body[data-theme="dark"] textarea,
body[data-theme="dark"] .dropdown-menu,body[data-theme="dark"] .popover-menu{background:#121d30!important;color:#edf3ff!important;border-color:#30405b!important}
body[data-theme="dark"] .chat-item,body[data-theme="dark"] .nav-icon,body[data-theme="dark"] .icon-button,body[data-theme="dark"] .message-action{color:#bac7dd!important}
body[data-theme="dark"] .chat-item:hover,body[data-theme="dark"] .chat-item.active,body[data-theme="dark"] .sidebar-nav:hover,body[data-theme="dark"] .icon-button:hover{background:#1b2940!important;color:#f2f6ff!important}
body[data-theme="dark"] .message-user .message-bubble{background:linear-gradient(145deg,#283b68,#203452)!important;color:#f4f7ff!important;border-color:#415984!important}
body[data-theme="dark"] .assistant-content{color:#e9effa!important}
body[data-theme="dark"] .assistant-content code{background:#1d2a40!important;border-color:#31445f!important;color:#e5edff!important}
body[data-theme="dark"] .assistant-content blockquote{background:#171f37!important;border-color:#8c82ef!important;color:#d4dcef!important}
body[data-theme="dark"] .assistant-content a,body[data-theme="dark"] .inline-citation{color:#8bded3!important}
body[data-theme="dark"] .starter-card,body[data-theme="dark"] .workspace-card,body[data-theme="dark"] .settings-subsection,body[data-theme="dark"] .setting-row,
body[data-theme="dark"] .settings-action-tile-v223,body[data-theme="dark"] .settings-panel-v10,body[data-theme="dark"] .usage-window-card-v209,
body[data-theme="dark"] .usage-resource-list-v209>div,body[data-theme="dark"] .billing-info-grid-v209>div,
body[data-theme="dark"] .message-more-menu,body[data-theme="dark"] .source-card,body[data-theme="dark"] .sources-modal-card,
body[data-theme="dark"] .modal-card,body[data-theme="dark"] .wide-modal,body[data-theme="dark"] .card-list,
body[data-theme="dark"] .settings-center-v241,body[data-theme="dark"] .identity-beacon-v241,
body[data-theme="dark"] .senvo-create-studio-v241{background:#111b2d!important;color:#edf3ff!important;border-color:#2a3953!important}
body[data-theme="dark"] .modal{background:rgba(2,7,17,.72)!important}
body[data-theme="dark"] .modal-head,body[data-theme="dark"] .settings-panel-heading,body[data-theme="dark"] .tutorials-head-v243{color:#f0f5ff!important;border-color:#293954!important}
body[data-theme="dark"] .assistant-content .math-block{margin:.7rem 0;padding:.85rem 1rem!important;border:1px solid #314766;border-radius:14px;background:linear-gradient(120deg,rgba(45,74,109,.43),rgba(39,37,85,.35))!important;box-shadow:inset 3px 0 #73dcca}
body[data-theme="dark"] .assistant-content .math-block .katex-display{margin:.2em 0!important;color:#e9fbff!important}
body[data-theme="dark"] .assistant-content .math-inline{padding:.04em .2em;border-radius:5px;background:rgba(111,210,204,.1);color:#c3f4e9}
body[data-theme="dark"] .assistant-content .katex{color:inherit!important}
body[data-theme="dark"] .assistant-content .math-block .katex .mord,body[data-theme="dark"] .assistant-content .math-block .katex .mbin,body[data-theme="dark"] .assistant-content .math-block .katex .mrel{color:#e4efff}
body[data-theme="dark"] .assistant-content .katex-error{color:#ff9aab!important;background:rgba(194,51,82,.14);border-radius:5px}
body[data-theme="dark"] .assistant-content .code-block{background:#111a2a!important;border-color:#2e3b54!important}
body[data-theme="dark"] .assistant-content .code-head{background:#18243a!important;border-color:#2e3b54!important;color:#dce6f7!important}
body[data-theme="dark"] .assistant-content .code-block pre{background:#0b1220!important}
body[data-theme="dark"] .outline-panel,body[data-theme="dark"] .outline-rail .outline-panel{background:#111b2d!important;color:#edf3ff!important;border-color:#30405b!important;box-shadow:0 18px 56px rgba(0,0,0,.45)!important}
body[data-theme="dark"] .outline-list button,body[data-theme="dark"] .outline-list a{color:#c8d5e9!important}
body[data-theme="dark"] .thinking-spinner{display:none!important}
body[data-theme="dark"] .generation-status{color:#b9c8e2!important}
body[data-theme="dark"] .typing-dots-v271 i{background:#77e0cf!important}
body[data-theme="dark"] .support-hub-v271,body[data-theme="dark"] .support-ticket-room-v271{color:#edf3ff}
body[data-theme="dark"] .support-tabs-v271{background:#0d1728;border-color:#2d3d58}
body[data-theme="dark"] .support-tabs-v271 button{color:#aabbd4}
body[data-theme="dark"] .support-tabs-v271 button.active{background:#243557;color:#e7f8f5;box-shadow:inset 0 0 0 1px #476982}
body[data-theme="dark"] .support-request-note-v271,body[data-theme="dark"] .support-room-message-v271{background:#17243a;border-color:#30415c}
body[data-theme="dark"] .support-room-message-v271.own{background:#1b3150;border-color:#355577}
body[data-theme="dark"] .support-ticket-row-v271{background:#142137;border-color:#2b3c57;color:#edf3ff}
body[data-theme="dark"] .support-ticket-row-v271:hover{background:#1c2e49;border-color:#4a6685}
body[data-theme="dark"] .support-room-compose-v271{background:#101a2b;border-color:#2d3c56}
body[data-theme="dark"] .support-hub-footer-v271,body[data-theme="dark"] .support-empty-v271,body[data-theme="dark"] .support-panel-note-v271{color:#a9bad3}
body[data-theme="dark"] .support-status-v271.open{color:#81e0bd;background:#153c38}
body[data-theme="dark"] .support-status-v271.closed{color:#b2bdd0;background:#263147}
body[data-theme="dark"] .football-menu,body[data-theme="dark"] .football-options label,body[data-theme="dark"] .football-settings60 section{background:#101b2e!important;color:#edf3ff!important;border-color:#2a3b57!important}
body[data-theme="dark"] .football-options select,body[data-theme="dark"] .football-settings select{background:#1a2940!important;color:#f0f5ff!important;border-color:#3a4e6d!important}
body[data-theme="dark"] .toast,body[data-theme="dark"] .toast-message{background:#1b2940!important;color:#f0f5ff!important;border-color:#3a4d69!important}

/* Equations sit in their own visual layer and remain readable on either theme. */
.assistant-content .math-block{display:block;max-width:100%;margin:.7rem 0;padding:.7rem .95rem!important;overflow-x:auto;border:1px solid #dce5f2;border-radius:13px;background:linear-gradient(120deg,#f5f9ff,#f2fbfa);scrollbar-width:thin}
.assistant-content .math-display{display:block;min-width:max-content;text-align:center}
.assistant-content .math-block .katex-display{margin:.15em 0!important}
.assistant-content .math-inline{white-space:normal}
.assistant-content .math-block .katex-error{color:#9d2544!important;background:#fff0f3;padding:.15rem .25rem;border-radius:4px}

/* Quiet, visible typing indicator: no layout jump, with reduced-motion support. */
.typing-dots-v271{display:inline-flex;align-items:center;gap:4px;width:25px;height:16px;margin-right:3px}
.typing-dots-v271 i{display:block;width:5px;height:5px;border-radius:50%;background:#786bea;opacity:.45;animation:senvoTypingDotV271 1.08s ease-in-out infinite}
.typing-dots-v271 i:nth-child(2){animation-delay:.14s}.typing-dots-v271 i:nth-child(3){animation-delay:.28s}
@keyframes senvoTypingDotV271{0%,60%,100%{transform:translateY(0) scale(.82);opacity:.4}30%{transform:translateY(-4px) scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.typing-dots-v271 i{animation:none;opacity:.9}}

/* Feedback and private ticket room. */
#dynamicModal .wide-modal.support-modal-v271{width:min(740px,calc(100vw - 28px));max-width:740px;max-height:min(88dvh,900px);overflow:hidden;display:flex;flex-direction:column;border-radius:24px}
#dynamicModal .wide-modal.support-modal-v271>.modal-head{flex:0 0 auto;padding:18px 22px 14px;border-bottom:1px solid var(--border)}
#dynamicModal .wide-modal.support-modal-v271>.card-list{min-height:0;overflow:auto;padding:0 22px 20px;overscroll-behavior:contain}
.support-hub-v271,.support-ticket-room-v271{display:flex;flex-direction:column;gap:16px}
.support-hub-header-v271{display:flex;align-items:flex-start;gap:15px;padding:20px 20px 17px;border:1px solid #dfe6f0;border-radius:19px;background:radial-gradient(circle at 0 0,rgba(107,125,233,.12),transparent 47%),linear-gradient(135deg,#f7f9ff,#f5fbfb)}
.support-hub-mark-v271{width:44px;height:44px;flex:0 0 auto;display:grid;place-items:center;border-radius:14px;background:#e7eaff;color:#5857c7}
.support-kicker-v271{display:block;color:#6a7186;font-size:10px;font-weight:800;letter-spacing:.14em}
.support-hub-header-v271 h3,.support-room-heading-v271 h3{margin:4px 0 5px;font-size:21px;letter-spacing:-.03em}
.support-hub-header-v271 p,.support-request-note-v271 p{margin:0;color:#68758a;font-size:13px;line-height:1.55}
.support-tabs-v271{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;border:1px solid #dfe5ee;border-radius:14px;background:#f1f4f9}
.support-tabs-v271 button{min-height:41px;border:0;border-radius:10px;background:transparent;color:#677287;font-weight:650;cursor:pointer;touch-action:manipulation}
.support-tabs-v271 button.active{background:#fff;color:#303c5b;box-shadow:0 2px 8px rgba(31,46,76,.12)}
.support-panel-v271{display:flex;flex-direction:column;gap:14px;animation:supportPanelInV271 .18s ease-out both}
@keyframes supportPanelInV271{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.support-panel-v271>label{display:flex;flex-direction:column;gap:7px;color:#69758a;font-size:12px;font-weight:700}
.support-panel-v271 .settings-input,.support-panel-v271 .settings-textarea{width:100%;min-width:0}
.support-panel-v271 .settings-textarea{min-height:112px;resize:vertical;line-height:1.5}
.support-panel-note-v271{margin:0;color:#758198;font-size:13px;line-height:1.5}
.support-request-note-v271{padding:15px 16px;border:1px solid #dfe7f2;border-radius:14px;background:#f5f8fd}
.support-request-note-v271 strong{display:block;margin-bottom:5px;color:#34415c;font-size:13px}
.support-request-note-v271 p{font-size:12px}
.support-form-footer-v271,.suggestion-actions-v239{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.support-form-footer-v271 small,.support-hub-footer-v271{color:#7a879b;font-size:11px;line-height:1.5}
.support-hub-footer-v271{padding-top:3px;border-top:1px solid #e7ebf2}
.support-ticket-list-v271{display:flex;flex-direction:column;gap:8px}
.support-ticket-row-v271{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;border:1px solid #e0e6ef;border-radius:14px;background:#fff;text-align:left;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.support-ticket-row-v271:hover{background:#f7f9ff;border-color:#c7d1e4;transform:translateY(-1px)}
.support-ticket-icon-v271{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:11px;background:#eaf4f3;color:#328b80;font-size:16px}
.support-ticket-copy-v271{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.support-ticket-copy-v271 strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:13px}
.support-ticket-copy-v271 small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#778397;font-size:11px}
.support-status-v271{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:750;text-transform:capitalize}
.support-status-v271.open{color:#217864;background:#e5f5f0}.support-status-v271.closed{color:#647087;background:#edf0f5}
.support-empty-v271{padding:28px 18px;border:1px dashed #cbd5e3;border-radius:15px;color:#748198;text-align:center;font-size:13px;line-height:1.5}
.support-ticket-room-v271{min-height:430px;max-height:72dvh}
.support-room-heading-v271{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0 12px;border-bottom:1px solid #e5eaf2}
.support-room-heading-v271 p{margin:0;color:#7a8799;font-size:11px}
.support-room-actions-v271{display:flex;gap:7px}
.support-room-messages-v271{display:flex;flex:1;min-height:170px;flex-direction:column;gap:9px;overflow:auto;padding:14px 3px;overscroll-behavior:contain}
.support-room-message-v271{max-width:88%;padding:11px 13px;border:1px solid #e2e8f1;border-radius:15px 15px 15px 5px;background:#f4f7fb}
.support-room-message-v271.own{align-self:flex-end;border-radius:15px 15px 5px 15px;background:#eef1ff}
.support-room-message-v271 header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#65738b;font-size:10px}
.support-room-message-v271 p{margin:6px 0 0;line-height:1.5;font-size:13px;overflow-wrap:anywhere}
.support-room-compose-v271{display:flex;align-items:flex-end;gap:9px;padding:9px;border:1px solid #dbe3ee;border-radius:15px;background:#f8fafc}
.support-room-compose-v271 textarea{flex:1;min-width:0;min-height:46px;max-height:120px;resize:vertical;border:0!important;background:transparent!important;outline:0;padding:8px;color:inherit}
.support-room-private-v271{color:#78869b;text-align:center;font-size:10px}
.quota-request-button-v271,.humanizer-quota-link-v271,.support-request-link-v271{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin:10px 0 2px;padding:9px 13px;border:1px solid #c9d4fa;border-radius:11px;background:linear-gradient(135deg,#f2f3ff,#eaf8f6);color:#3e4d9a!important;font-size:12px;font-weight:750;text-decoration:none!important;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.quota-request-button-v271:hover,.humanizer-quota-link-v271:hover,.support-request-link-v271:hover{transform:translateY(-1px);border-color:#9eafea;box-shadow:0 7px 19px rgba(69,84,150,.14)}
body[data-theme="dark"] .quota-request-button-v271,body[data-theme="dark"] .humanizer-quota-link-v271,body[data-theme="dark"] .support-request-link-v271{border-color:#4d6185;background:linear-gradient(135deg,#263557,#1d3b43);color:#d5e2ff!important}
body[data-theme="dark"] .quota-request-button-v271:hover,body[data-theme="dark"] .humanizer-quota-link-v271:hover,body[data-theme="dark"] .support-request-link-v271:hover{border-color:#7a94c0;box-shadow:0 7px 20px rgba(0,0,0,.28)}

@media(max-width:700px){
 #dynamicModal .wide-modal.support-modal-v271{width:100%;max-width:none;max-height:calc(100dvh - 12px);height:auto;margin:auto 0 0;border-radius:23px 23px 0 0}
 #dynamicModal .wide-modal.support-modal-v271>.modal-head{padding:15px 17px 12px}
 #dynamicModal .wide-modal.support-modal-v271>.card-list{padding:0 15px calc(15px + env(safe-area-inset-bottom))}
 .support-hub-v271,.support-ticket-room-v271{gap:12px}
 .support-hub-header-v271{padding:15px;gap:11px;border-radius:16px}
 .support-hub-header-v271 h3{font-size:18px}
 .support-tabs-v271 button{font-size:11px;min-height:43px}
 .support-ticket-room-v271{max-height:calc(80dvh - 110px);min-height:340px}
 .support-room-heading-v271{align-items:flex-start;flex-direction:column}
 .support-room-compose-v271{position:sticky;bottom:0}
}
