:root{
  --yellow:#fec639;
  --yellow-deep:#f1b900;
  --black:#111111;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --soft:#f7f7f8;
  --surface:#ffffff;
  --green:#2f9e44;
  --danger:#b42318;
  --shadow:0 20px 60px rgba(17,17,17,.14);
  --header-height:72px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--surface);overflow:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
img{display:block}
[hidden]{display:none!important}
.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}

.site-header{height:var(--header-height);background:var(--yellow);border-bottom:1px solid rgba(17,17,17,.12);position:relative;z-index:50}
.header-inner{height:100%;max-width:1600px;margin:0 auto;padding:0 26px;display:flex;align-items:center;gap:24px}
.brand{display:inline-flex;align-items:center;gap:11px;color:var(--black);min-width:max-content}
.brand img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.86)}
.brand strong{font-size:24px;line-height:1;letter-spacing:-.035em}
.header-actions{margin-left:auto;display:flex;align-items:center}
.theme-toggle{height:42px;min-width:104px;border:1px solid rgba(17,17,17,.24);background:rgba(255,255,255,.34);color:var(--black);border-radius:12px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800}
.theme-toggle:hover{background:rgba(255,255,255,.55)}
.theme-symbol{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-moon{display:none}
:root[data-theme="dark"] .theme-sun{display:none}
:root[data-theme="dark"] .theme-moon{display:block}
.mobile-menu{display:none;width:42px;height:42px;padding:10px;border:0;background:transparent;border-radius:9px}
.mobile-menu span{display:block;height:2px;background:var(--black);margin:5px 0;border-radius:2px}

.app-shell{height:calc(100% - var(--header-height));display:grid;grid-template-columns:292px minmax(0,1fr)}
.sidebar{border-right:1px solid var(--line);background:#fff;padding:28px 22px 20px;display:flex;flex-direction:column;min-width:0;z-index:40}
.sidebar-primary{display:grid;gap:12px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.sidebar-name{width:max-content;max-width:100%;border:0;background:transparent;padding:2px 0;color:#52525b;text-align:left;font-weight:650;font-size:15px;position:relative}
.sidebar-name:hover,.sidebar-name:focus-visible{color:var(--black)}
.sidebar-name-primary{color:var(--black);font-size:16px;font-weight:800}
.history-section{min-height:0;display:flex;flex-direction:column;flex:1;padding-top:24px}
.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.history-heading h2{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:#777;margin:0;font-weight:800}
.history-refresh{border:0;background:transparent;color:#777;padding:0;font-size:12px;font-weight:650}
.history-refresh:hover{color:var(--black)}
.history-search{display:block;margin-bottom:14px}
.history-search input{width:100%;height:38px;border:1px solid #dedee2;border-radius:10px;padding:0 11px;outline:0;color:#2d2d32;background:#fff;font-size:13px}
.history-search input:focus{border-color:#b9b9bf;box-shadow:0 0 0 3px rgba(254,198,57,.2)}
.history-search input::placeholder{color:#9a9aa1}
.history-list{overflow:auto;display:grid;align-content:start;gap:12px;padding-right:5px}
.history-empty{color:#8b8b93;font-size:13px;line-height:1.55;margin:0}
.history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:0 0 9px;border-bottom:1px solid #f0f0f1}
.history-open,.history-delete{border:0;background:transparent;padding:0;text-align:left}
.history-open{color:#52525b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.4}
.history-item.active .history-open{color:var(--black);font-weight:800}
.history-item.active{border-bottom-color:var(--yellow-deep)}
.history-item.pending .history-open{color:#777;font-style:italic}
.history-delete{color:#a0a0a6;font-size:19px;line-height:1}
.history-delete:hover{color:var(--danger)}
.sidebar-bottom{padding-top:18px;border-top:1px solid var(--line);display:grid;gap:12px}
.connection-status{font-size:12px;color:#7b7b83;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-scrim{display:none}

.chat-main{min-width:0;height:100%;overflow:auto;position:relative;scroll-behavior:smooth;background:#fff;padding-bottom:172px}
.welcome{width:min(860px,calc(100% - 40px));margin:0 auto;min-height:calc(100vh - var(--header-height) - 150px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:46px 0 30px}
.welcome-logo{width:94px;height:94px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 0 0 2px var(--yellow),0 12px 28px rgba(17,17,17,.14);margin-bottom:24px}
.welcome h1{font-size:clamp(32px,5vw,52px);line-height:1.08;letter-spacing:-.05em;color:var(--black);margin:0 0 12px}
.welcome>p{font-size:17px;line-height:1.65;color:var(--muted);max-width:650px;margin:0}
.quick-prompts{display:flex;flex-wrap:wrap;justify-content:center;gap:13px 24px;margin-top:32px}
.quick-prompts button{border:0;background:transparent;padding:0 0 5px;color:#46464d;font-weight:750;font-size:14px;border-bottom:2px solid transparent}
.quick-prompts button:hover,.quick-prompts button:focus-visible{color:var(--black);border-bottom-color:var(--yellow-deep)}
.welcome-history{display:none!important}
.welcome-history-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:13px}
.welcome-history-heading h2{font-size:16px;letter-spacing:-.01em;color:#222;margin:0}
.welcome-history-heading span{font-size:12px;color:#85858c}
.welcome-history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.welcome-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid #eeeeef;padding:12px 0}
.welcome-history-open,.welcome-history-delete{border:0;background:transparent;padding:0}
.welcome-history-open{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#4a4a50;font-size:14px}
.welcome-history-open:hover{color:#111;font-weight:700}
.welcome-history-delete{font-size:18px;color:#aaa}
.welcome-history-delete:hover{color:var(--danger)}
.messages{display:none;width:min(900px,calc(100% - 42px));margin:0 auto;padding:42px 0 30px}
.messages.active{display:block}
.message-row{display:grid;grid-template-columns:1fr;margin-bottom:28px}
.message-content{min-width:0;max-width:100%}
.message-row.user .message-content{justify-self:end;max-width:min(750px,90%)}
.message-name{font-size:13px;font-weight:850;color:#34343a;margin-bottom:8px}
.message-row.user .message-name{text-align:right}
.message-text{font-size:15.5px;line-height:1.72;color:#26262b}
.message-row.user .message-text{background:#f3f3f4;border:1px solid #e8e8ea;border-radius:16px 16px 4px 16px;padding:13px 16px;white-space:pre-wrap}
.message-row.assistant .message-text{padding:0 2px}
.message-text:empty{display:none}
.message-text p{margin:0 0 12px}.message-text p:last-child{margin-bottom:0}
.message-text h1,.message-text h2,.message-text h3{color:var(--black);line-height:1.25;margin:20px 0 9px}
.message-text h1{font-size:22px}.message-text h2{font-size:19px}.message-text h3{font-size:17px}
.message-text ul,.message-text ol{padding-left:22px}.message-text li{margin:6px 0}
.message-text blockquote{margin:14px 0;padding:9px 14px;border-left:4px solid var(--yellow);background:#fafafa;color:#555}
.code-block{border:1px solid #27272a;background:#171717;border-radius:12px;overflow:hidden;margin:15px 0;color:#f5f5f5}
.code-block-header{padding:8px 12px;background:#242424;display:flex;justify-content:space-between;font-size:12px;color:#d4d4d8}
.code-copy{border:0;background:transparent;color:#fff;font-weight:700}.code-block pre{margin:0;padding:16px;overflow:auto}.code-block code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
.message-attachments{display:grid;gap:10px;margin-bottom:10px}
.message-images{display:flex;gap:10px;flex-wrap:wrap}.message-images img{width:min(270px,100%);max-height:250px;object-fit:cover;border-radius:12px;border:1px solid var(--line)}
.message-audio{width:min(420px,100%);display:grid;gap:6px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fafafa}
.message-audio strong,.message-file strong{font-size:12px;color:#4f4f56;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.message-audio audio{width:100%;height:38px}
.message-file{width:min(420px,100%);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fafafa}
.message-file a{flex:0 0 auto;font-size:12px;font-weight:800;color:#222;text-decoration:underline;text-decoration-color:var(--yellow-deep);text-underline-offset:3px}
.stored-attachment{font-size:13px;color:var(--muted)}
.message-actions{display:flex;gap:18px;margin-top:12px}
.message-action{border:0;background:transparent;color:#686870;padding:0;font-size:12px;font-weight:700}
.message-action:hover,.message-action.active{color:var(--black);text-decoration:underline;text-decoration-color:var(--yellow-deep);text-decoration-thickness:2px;text-underline-offset:4px}
.typing{display:flex;gap:6px;padding:8px 0}.typing span{width:7px;height:7px;border-radius:50%;background:#777;animation:pulse 1.1s infinite}.typing span:nth-child(2){animation-delay:.16s}.typing span:nth-child(3){animation-delay:.32s}@keyframes pulse{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}

.composer-zone{position:fixed;left:292px;right:0;bottom:0;padding:18px 24px 14px;background:linear-gradient(to top,#fff 76%,rgba(255,255,255,0));z-index:25}
.composer{width:min(900px,100%);margin:0 auto;min-height:58px;border:1px solid #d8d8dc;background:#fff;border-radius:22px;display:flex;align-items:flex-end;gap:8px;padding:8px;box-shadow:0 8px 30px rgba(17,17,17,.08)}
.composer:focus-within{border-color:#bebec4;box-shadow:0 0 0 3px rgba(254,198,57,.24),0 8px 30px rgba(17,17,17,.08)}
.composer textarea{flex:1;min-height:40px;max-height:170px;resize:none;border:0;outline:0;padding:9px 4px;background:transparent;color:var(--text);line-height:1.5}
.composer textarea::placeholder{color:#96969d}
.attachment-control{position:relative;flex:0 0 auto}
.composer-plus,.voice-button,.send-button{height:40px;border:0;border-radius:10px;display:grid;place-items:center;font-weight:800}
.composer-plus{width:40px;border:1px solid #d8d8dc;background:#fff;color:#222;border-radius:50%;font-size:25px;font-weight:400;line-height:1;transition:background .16s,border-color .16s,transform .16s}
.composer-plus span{display:block;transform:translateY(-1px)}
.composer-plus:hover,.composer-plus[aria-expanded="true"]{background:#f3f3f4;border-color:#bdbdc4}
.composer-plus[aria-expanded="true"]{transform:rotate(45deg)}
.attachment-menu{position:absolute;left:0;bottom:calc(100% + 12px);width:196px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 44px rgba(17,17,17,.18);display:grid;z-index:70}
.attachment-menu button{min-height:40px;border:0;background:transparent;text-align:left;padding:10px 11px;border-radius:9px;color:#37373d;font-size:13px;font-weight:750}
.attachment-menu button:hover{background:#f5f5f6;color:#111}
.voice-button{background:transparent;color:#555;padding:0 8px;font-size:12px}
.voice-button:hover{color:#111;text-decoration:underline;text-decoration-color:var(--yellow-deep);text-underline-offset:4px}
.send-button{background:var(--black);color:#fff;padding:0 17px}.send-button:disabled{background:#d2d2d6;color:#86868d;cursor:not-allowed}
.composer-note{text-align:center;color:#898990;font-size:11px;margin:8px 0 0}
.attachment-preview{width:min(900px,100%);margin:0 auto 8px;display:flex;gap:9px;flex-wrap:wrap}
.attachment-chip{position:relative;min-width:72px;max-width:280px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:7px 31px 7px 7px;display:flex;align-items:center;gap:8px}
.attachment-chip img{width:52px;height:52px;object-fit:cover;border-radius:8px}
.attachment-chip audio{width:205px;height:34px}
.attachment-chip-name{font-size:12px;color:#4b4b52;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.attachment-chip-type{font-size:10px;color:#8b8b92;text-transform:uppercase;letter-spacing:.04em}
.attachment-chip-copy{min-width:0;display:grid;gap:2px}
.attachment-remove{position:absolute;right:6px;top:6px;width:21px;height:21px;border-radius:50%;border:0;background:#111;color:#fff;line-height:1}
.recording-panel{width:min(900px,100%);margin:0 auto 9px;border:1px solid #dddde1;background:#fff;border-radius:14px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 8px 24px rgba(17,17,17,.08)}
.recording-status,.recording-actions{display:flex;align-items:center;gap:10px}
.recording-status strong{font-size:13px;color:#303036}.recording-status span:last-child{font-variant-numeric:tabular-nums;font-size:12px;color:#6f6f76}
.recording-dot{width:9px;height:9px;border-radius:50%;background:#d92d20;animation:recordingPulse 1.2s infinite}
.recording-panel.paused .recording-dot{animation:none;background:#8d8d95}
@keyframes recordingPulse{0%,100%{opacity:1}50%{opacity:.28}}
.recording-actions button{border:0;background:transparent;color:#555;font-size:12px;font-weight:800;padding:7px 5px}
.recording-actions button:hover{color:#111}.recording-actions .recording-send{background:#111;color:#fff;border-radius:9px;padding:8px 13px}.recording-actions .recording-send:hover{color:#fff;background:#292929}

.modal{border:0;padding:0;background:transparent;max-width:none;max-height:none}.modal::backdrop{background:rgba(17,17,17,.48);backdrop-filter:blur(3px)}
.modal-card{position:relative;width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto;background:#fff;border-radius:22px;padding:30px;box-shadow:var(--shadow)}
.plans-card{width:min(620px,calc(100vw - 28px))}
.modal-close{position:absolute;right:18px;top:14px;width:36px;height:36px;border:0;background:transparent;border-radius:50%;font-size:27px;line-height:1;color:#626269}.modal-close:hover{background:#f2f2f3;color:#111}
.modal-brand{display:flex;align-items:center;gap:9px;margin-bottom:22px}.modal-brand img{width:38px;height:38px;border-radius:50%;object-fit:cover}.modal-brand strong{font-size:21px;color:#111;letter-spacing:-.03em}
.modal-card h2{font-size:27px;letter-spacing:-.035em;color:#111;margin:0 0 7px}.modal-subtitle{margin:0 0 24px;color:var(--muted);line-height:1.55}
.plan-list{display:grid;gap:8px;margin:18px 0 24px}
.plan-row{min-height:52px;border:2px solid #e1e6ef;background:#fff;border-radius:15px;padding:8px 15px;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;color:#172033}
.plan-row:hover,.plan-row.selected{border-color:var(--yellow-deep);box-shadow:0 0 0 3px rgba(254,198,57,.15)}
.plan-name{font-weight:850;font-size:15px}.plan-price{font-weight:850;color:var(--green);font-size:15px;white-space:nowrap}.plan-price-wrap{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1}.plan-badge{background:var(--yellow);color:#111;border-radius:7px;padding:3px 7px;font-size:11px;font-weight:900;margin-bottom:1px}
.primary-button{width:100%;min-height:48px;border:0;background:var(--black);color:#fff;border-radius:12px;font-weight:850;padding:12px 16px}.primary-button:hover{background:#292929}.primary-button:disabled{opacity:.55;cursor:wait}
.account-card{width:min(500px,calc(100vw - 28px))}.account-card label{display:grid;gap:7px;margin-bottom:15px;color:#36363d;font-size:13px;font-weight:750}.account-card input,.account-card select{width:100%;height:48px;border:1px solid #d8d8dd;border-radius:11px;padding:0 13px;background:#fff;outline:0;color:#222}.account-card input:focus,.account-card select:focus{border-color:#b7a23f;box-shadow:0 0 0 3px rgba(254,198,57,.2)}
.consent-row{grid-template-columns:20px 1fr!important;align-items:start!important;font-weight:500!important;line-height:1.45}.consent-row input{width:18px!important;height:18px!important;margin:1px 0 0!important;box-shadow:none!important}
.form-message{min-height:20px;margin:13px 0 0;text-align:center;font-size:13px;line-height:1.5;color:#56565d}.form-message.success{color:var(--green)}.form-message.error{color:var(--danger)}
.text-link-button{display:block;margin:14px auto 0;border:0;background:transparent;color:#34343a;font-weight:750;text-decoration:underline;text-decoration-color:var(--yellow-deep);text-underline-offset:4px}
.toast{position:fixed;left:50%;bottom:128px;transform:translate(-50%,20px);background:#111;color:#fff;border-radius:10px;padding:11px 15px;font-size:13px;font-weight:650;opacity:0;pointer-events:none;transition:.2s;z-index:100;box-shadow:0 10px 30px rgba(0,0,0,.22)}.toast.show{opacity:1;transform:translate(-50%,0)}

@media(max-width:860px){
  :root{--header-height:64px}
  .header-inner{padding:0 13px;gap:7px}.mobile-menu{display:block}.brand img{width:38px;height:38px}.brand strong{font-size:21px}.theme-toggle{height:40px;min-width:94px;padding-inline:11px}
  .app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:var(--header-height);bottom:0;width:min(315px,88vw);transform:translateX(-103%);transition:transform .22s ease;box-shadow:0 20px 45px rgba(0,0,0,.18)}.sidebar.open{transform:translateX(0)}
  .sidebar-scrim{display:block;position:fixed;inset:var(--header-height) 0 0;border:0;background:rgba(0,0,0,.34);opacity:0;pointer-events:none;transition:.22s;z-index:35}.sidebar-scrim.open{opacity:1;pointer-events:auto}
  .composer-zone{left:0;padding:12px 12px 9px}.composer{border-radius:15px;padding-left:8px}.voice-button{display:grid}.send-button{padding-inline:14px}
  .welcome{width:min(100% - 28px,700px);min-height:calc(100vh - var(--header-height) - 140px);padding:38px 0 24px}.welcome-logo{width:82px;height:82px}.welcome h1{font-size:36px}.welcome>p{font-size:15px}.quick-prompts{gap:12px 18px;margin-top:27px}.quick-prompts button{font-size:13px}.welcome-history{margin-top:32px}.welcome-history-list{grid-template-columns:1fr}
  .messages{width:calc(100% - 28px);padding-top:28px}.message-row.user .message-content{max-width:94%}.message-actions{gap:14px}
  .recording-panel{align-items:flex-start;flex-direction:column}.recording-actions{width:100%;justify-content:flex-end}
}
@media(max-width:520px){
  .brand strong{font-size:20px}.theme-toggle{min-width:42px;width:42px;padding:0}.theme-toggle span{display:none}.welcome h1{font-size:31px}.quick-prompts{display:grid;justify-items:center}.modal-card{padding:26px 19px}.plan-row{padding-inline:12px}.plan-name,.plan-price{font-size:13px}.plan-badge{font-size:10px}
  .composer{gap:4px}.voice-button{padding:0 5px}.send-button{padding-inline:11px}.attachment-menu{width:164px}.attachment-chip audio{width:170px}.message-row.user .message-content{max-width:98%}
  .recording-actions{gap:6px;justify-content:space-between}.recording-actions button{padding-inline:3px}
}


:root[data-theme="dark"]{
  --black:#111111;
  --text:#ededf0;
  --muted:#a7a7af;
  --line:#33333a;
  --soft:#202024;
  --surface:#171719;
  --shadow:0 20px 60px rgba(0,0,0,.42);
}
:root[data-theme="dark"] body{background:#171719;color:var(--text)}
:root[data-theme="dark"] .site-header{border-bottom-color:rgba(0,0,0,.3)}
:root[data-theme="dark"] .sidebar,:root[data-theme="dark"] .chat-main{background:#171719}
:root[data-theme="dark"] .sidebar{border-right-color:#303036}
:root[data-theme="dark"] .sidebar-name,:root[data-theme="dark"] .history-open{color:#b9b9c0}
:root[data-theme="dark"] .sidebar-name:hover,:root[data-theme="dark"] .sidebar-name:focus-visible,:root[data-theme="dark"] .sidebar-name-primary,:root[data-theme="dark"] .history-item.active .history-open{color:#fff}
:root[data-theme="dark"] .history-heading h2,:root[data-theme="dark"] .history-refresh,:root[data-theme="dark"] .connection-status,:root[data-theme="dark"] .history-empty{color:#92929a}
:root[data-theme="dark"] .history-search input{background:#202024;border-color:#38383f;color:#f4f4f5}
:root[data-theme="dark"] .history-item{border-bottom-color:#29292e}
:root[data-theme="dark"] .composer-zone{background:linear-gradient(to top,#171719 76%,rgba(23,23,25,0))}
:root[data-theme="dark"] .composer,:root[data-theme="dark"] .attachment-menu,:root[data-theme="dark"] .attachment-chip,:root[data-theme="dark"] .recording-panel{background:#222226;border-color:#3a3a41}
:root[data-theme="dark"] .composer textarea{color:#f4f4f5}
:root[data-theme="dark"] .composer-plus{background:#242429;border-color:#46464d;color:#f3f3f4}
:root[data-theme="dark"] .composer-plus:hover,:root[data-theme="dark"] .composer-plus[aria-expanded="true"]{background:#303036;border-color:#5a5a63}
:root[data-theme="dark"] .attachment-menu button{color:#dedee3}
:root[data-theme="dark"] .attachment-menu button:hover{background:#303036;color:#fff}
:root[data-theme="dark"] .voice-button{color:#b5b5bc}
:root[data-theme="dark"] .send-button{background:#f2f2f3;color:#111}
:root[data-theme="dark"] .send-button:disabled{background:#3a3a40;color:#85858c}
:root[data-theme="dark"] .message-name,:root[data-theme="dark"] .message-text,:root[data-theme="dark"] .message-text h1,:root[data-theme="dark"] .message-text h2,:root[data-theme="dark"] .message-text h3{color:#ededf0}
:root[data-theme="dark"] .message-row.user .message-text{background:#2a2a2f;border-color:#3a3a41}
:root[data-theme="dark"] .message-text blockquote,:root[data-theme="dark"] .message-audio,:root[data-theme="dark"] .message-file{background:#222226;border-color:#3a3a41;color:#d6d6dc}
:root[data-theme="dark"] .message-audio strong,:root[data-theme="dark"] .message-file strong,:root[data-theme="dark"] .attachment-chip-name{color:#d7d7dc}
:root[data-theme="dark"] .message-action{color:#aaaab2}
:root[data-theme="dark"] .welcome h1{color:#fff}
:root[data-theme="dark"] .quick-prompts button{color:#c6c6cc}
:root[data-theme="dark"] .quick-prompts button:hover,:root[data-theme="dark"] .quick-prompts button:focus-visible{color:#fff}
:root[data-theme="dark"] .composer-note{color:#85858e}
:root[data-theme="dark"] .modal-card{background:#202024;color:#ededf0}
:root[data-theme="dark"] .modal-card h2,:root[data-theme="dark"] .modal-brand strong{color:#fff}
:root[data-theme="dark"] .account-card input,:root[data-theme="dark"] .account-card select,:root[data-theme="dark"] .plan-row{background:#29292e;border-color:#414148;color:#f2f2f3}

/* Orbito V5: tema por ícone, histórico e ações de conversa */
.theme-toggle{
  width:34px;
  min-width:34px;
  height:34px;
  padding:4px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  gap:0;
}
.theme-toggle:hover,.theme-toggle:focus-visible{background:transparent;opacity:.72;outline:0}
.theme-symbol{width:23px;height:23px;stroke-width:1.9}
.theme-sun{display:none}
.theme-moon{display:block}
:root[data-theme="dark"] .theme-sun{display:block}
:root[data-theme="dark"] .theme-moon{display:none}

.sidebar-account-actions{display:grid;gap:3px}
.sidebar-bottom-link{
  width:max-content;
  max-width:100%;
  border:0;
  background:transparent;
  color:#55555d;
  padding:4px 0;
  text-align:left;
  font-size:14px;
  font-weight:720;
}
.sidebar-bottom-link:hover,.sidebar-bottom-link:focus-visible{color:var(--black)}
.sidebar-bottom-link-primary{color:var(--black);font-weight:850}

.history-list{overflow:visible auto;padding-right:3px}
.history-item{
  position:relative;
  grid-template-columns:minmax(0,1fr) 30px;
  gap:6px;
  padding:3px 0 8px;
}
.history-item.pinned .history-open{font-weight:820;color:var(--black)}
.history-item.pinned::before{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:28px;
  height:2px;
  border-radius:4px;
  background:var(--yellow-deep);
}
.history-more{
  width:30px;
  height:28px;
  padding:0;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  color:#77777f;
  border-radius:7px;
}
.history-more:hover,.history-more:focus-visible,.history-more[aria-expanded="true"]{background:#f1f1f3;color:#111;outline:0}
.history-more span{display:block;width:3px;height:3px;border-radius:50%;background:currentColor}
.history-context-menu{
  position:fixed;
  left:0;
  top:0;
  width:184px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:0 20px 52px rgba(17,17,17,.24);
  z-index:10050;
  display:grid;
  overflow:visible;
  max-height:none;
  isolation:isolate;
  transform-origin:var(--menu-origin-x,100%) var(--menu-origin-y,0%);
  opacity:1;
}
.history-context-menu button{
  min-height:37px;
  border:0;
  border-radius:8px;
  background:transparent;
  padding:8px 10px;
  text-align:left;
  color:#36363d;
  font-size:13px;
  font-weight:700;
}
.history-context-menu button:hover,.history-context-menu button:focus-visible{background:#f3f3f4;color:#111;outline:0}
.history-context-menu .history-action-delete{color:var(--danger)}
.history-context-menu .history-action-delete:hover{background:#fff1f0;color:#9f1c13}

.compact-modal-card{width:min(440px,calc(100vw - 28px))}
.dialog-field{display:grid;gap:8px;color:#36363d;font-size:13px;font-weight:750}
.dialog-field input{width:100%;height:48px;border:1px solid #d8d8dd;border-radius:11px;padding:0 13px;background:#fff;outline:0;color:#222}
.dialog-field input:focus{border-color:#b7a23f;box-shadow:0 0 0 3px rgba(254,198,57,.2)}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.dialog-actions button{width:auto;min-width:105px;min-height:43px;border-radius:10px;padding:10px 16px;font-weight:820}
.secondary-button{border:1px solid #d8d8dd;background:#fff;color:#34343a}
.secondary-button:hover{background:#f5f5f6}
.dialog-primary{width:auto}
.danger-button{border:0;background:#b42318;color:#fff}
.danger-button:hover{background:#941d14}
.danger-button:disabled{opacity:.6;cursor:wait}

@media(max-width:860px){
  .theme-toggle{width:34px;min-width:34px;height:34px;padding:4px}
}
@media(max-width:520px){
  .theme-toggle{width:34px;min-width:34px;height:34px;padding:4px}
  .dialog-actions{display:grid;grid-template-columns:1fr 1fr}
  .dialog-actions button{width:100%;min-width:0}
}

:root[data-theme="dark"] .sidebar-bottom-link{color:#b9b9c0}
:root[data-theme="dark"] .sidebar-bottom-link:hover,
:root[data-theme="dark"] .sidebar-bottom-link:focus-visible,
:root[data-theme="dark"] .sidebar-bottom-link-primary,
:root[data-theme="dark"] .history-item.pinned .history-open{color:#fff}
:root[data-theme="dark"] .history-more{color:#a4a4ac}
:root[data-theme="dark"] .history-more:hover,
:root[data-theme="dark"] .history-more:focus-visible,
:root[data-theme="dark"] .history-more[aria-expanded="true"]{background:#2b2b30;color:#fff}
:root[data-theme="dark"] .history-context-menu{background:#232327;border-color:#3b3b42;box-shadow:0 18px 45px rgba(0,0,0,.45)}
:root[data-theme="dark"] .history-context-menu button{color:#dedee3}
:root[data-theme="dark"] .history-context-menu button:hover,
:root[data-theme="dark"] .history-context-menu button:focus-visible{background:#303036;color:#fff}
:root[data-theme="dark"] .history-context-menu .history-action-delete{color:#ffaaa3}
:root[data-theme="dark"] .history-context-menu .history-action-delete:hover{background:#3a2424;color:#ffc2bd}
:root[data-theme="dark"] .dialog-field{color:#dedee3}
:root[data-theme="dark"] .dialog-field input{background:#29292e;border-color:#414148;color:#f2f2f3}
:root[data-theme="dark"] .secondary-button{background:#29292e;border-color:#45454c;color:#f0f0f2}
:root[data-theme="dark"] .secondary-button:hover{background:#333339}


/* Orbito V7: tema, novo chat e conta lateral */
.theme-toggle{width:36px;min-width:36px;height:36px;padding:5px;border:0;border-radius:0;background:transparent;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;color:var(--black)}
.theme-toggle span{display:none!important}
.theme-toggle:hover,.theme-toggle:focus-visible{background:transparent;opacity:.72;outline:0}
.theme-toggle .theme-symbol{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}
.theme-toggle .theme-moon{display:block}
:root[data-theme="dark"] .theme-toggle .theme-sun{display:block}
:root[data-theme="dark"] .theme-toggle .theme-moon{display:none}
.sidebar-primary{padding-bottom:18px}
.sidebar-name-primary{width:100%;max-width:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 0}
.sidebar-name-primary::after{display:none!important;content:none!important}
.new-chat-icon{width:19px;height:19px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}
.sidebar-name-primary:hover .new-chat-icon,.sidebar-name-primary:focus-visible .new-chat-icon{transform:translateY(-1px)}
.sidebar-account-actions{display:grid;gap:5px}
.sidebar-bottom-link{width:100%;max-width:none;min-height:38px;display:flex;align-items:center;gap:11px;border:0;background:transparent;color:#55555d;padding:6px 0;text-align:left;font-size:14px;font-weight:720}
.sidebar-bottom-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-bottom-icon{width:19px;height:19px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-bottom-link:hover,.sidebar-bottom-link:focus-visible{color:var(--black);outline:0}
.sidebar-bottom-link-primary{color:var(--black);font-weight:850}
:root[data-theme="dark"] .sidebar-bottom-link{color:#b9b9c0}
:root[data-theme="dark"] .sidebar-bottom-link:hover,:root[data-theme="dark"] .sidebar-bottom-link:focus-visible,:root[data-theme="dark"] .sidebar-bottom-link-primary{color:#fff}
