/* Central IA — painel flutuante e isolado */
.ai-assistant-launcher {
  position: fixed; right: 20px; bottom: 78px; z-index: 312;
  display: grid; width: 52px; height: 52px; padding: 0; place-items: center;
  border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 30% 22%,#7ee8ff 0 7%,transparent 8%),linear-gradient(145deg,#3759e8,#6e42d9 72%);
  box-shadow: 0 18px 38px rgba(69,66,210,.35),inset 0 1px rgba(255,255,255,.34);
  cursor: pointer; transition: transform .22s ease,box-shadow .22s ease,filter .22s ease;
  animation: ai-assistant-arrive .42s .08s cubic-bezier(.2,.8,.2,1) both;
}
.ai-assistant-launcher:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 23px 46px rgba(69,66,210,.43),inset 0 1px rgba(255,255,255,.34); }
.ai-assistant-launcher:focus-visible { outline: 3px solid rgba(74,145,255,.42); outline-offset: 4px; }
.ai-assistant-launcher > svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: opacity .18s ease,transform .22s ease; }
.ai-assistant-launcher > b {
  position: absolute; right: -2px; top: -3px; display: grid; min-width: 25px; height: 23px; padding: 0 5px; place-items: center;
  border: 3px solid #f5f7fb; border-radius: 20px; color: #4051c7; background: #fff;
  font-size: .52rem; font-weight: 950; letter-spacing: .03em; box-shadow: 0 5px 14px rgba(28,36,99,.17);
}
.ai-assistant-launcher > span { position: absolute; opacity: 0; font-size: 2rem; font-weight: 300; line-height: 1; transform: rotate(-70deg) scale(.65); transition: transform .22s ease,opacity .18s ease; }
.ai-assistant-launcher.is-open { filter: saturate(.75); background: linear-gradient(145deg,#172952,#263463); }
.ai-assistant-launcher.is-open > svg,.ai-assistant-launcher.is-open > b { opacity: 0; transform: rotate(60deg) scale(.65); }
.ai-assistant-launcher.is-open > span { opacity: 1; transform: rotate(0) scale(1); }

.ai-assistant-layer { position: fixed; inset: 0; z-index: 311; pointer-events: none; }
.ai-assistant-panel {
  position: absolute; right: 101px; bottom: 22px; display: flex;
  width: min(460px,calc(100vw - 140px)); height: min(720px,calc(100vh - 44px)); flex-direction: column; overflow: hidden;
  border: 1px solid rgba(207,216,234,.96); border-radius: 24px; color: #17243b; background: #fff;
  box-shadow: 0 32px 85px rgba(13,32,73,.28),0 4px 15px rgba(13,32,63,.08);
  pointer-events: auto; animation: ai-assistant-pop .28s cubic-bezier(.2,.8,.2,1) both;
}
.ai-assistant-header {
  position: relative; display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 17px 17px 20px; overflow: hidden;
  color: #fff; background: radial-gradient(circle at 95% -55%,rgba(111,213,255,.46),transparent 46%),radial-gradient(circle at 10% 145%,rgba(154,91,255,.35),transparent 48%),linear-gradient(128deg,#112951,#343f9f 61%,#5d3fb3);
}
.ai-assistant-header::after { content:""; position:absolute; right:62px; top:-48px; width:110px; height:110px; border:1px solid rgba(255,255,255,.11); border-radius:50%; }
.ai-assistant-brand { position: relative; z-index: 1; display: flex; min-width: 0; align-items: center; gap: 12px; }
.ai-assistant-logo { position: relative; display: grid; width: 47px; height: 47px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.19); border-radius: 15px; background: rgba(255,255,255,.1); box-shadow: inset 0 1px rgba(255,255,255,.12); }
.ai-assistant-logo svg { width: 27px; height: 27px; fill: none; stroke: #a8e9ff; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.ai-assistant-logo i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border: 3px solid #263878; border-radius: 50%; background: #37d5a1; }
.ai-assistant-brand > div { display: grid; gap: 3px; }
.ai-assistant-brand small { color: #9ee7ff; font-size: .54rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ai-assistant-brand h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.025em; }
.ai-assistant-brand span { color: #ced8ff; font-size: .57rem; }
.ai-assistant-close { position: relative; z-index: 2; display: grid; width: 37px; height: 37px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: #fff; background: rgba(255,255,255,.08); font: inherit; font-size: 1.4rem; cursor: pointer; transition: background .18s ease,transform .18s ease; }
.ai-assistant-close:hover { background: rgba(255,255,255,.16); transform: rotate(4deg); }

.ai-assistant-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding: 9px 12px; border-bottom: 1px solid #e5eaf2; background: #f8fafc; }
.ai-assistant-tabs button { display: flex; height: 38px; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; color: #748198; background: transparent; font: inherit; font-size: .64rem; font-weight: 850; cursor: pointer; transition: color .18s ease,background .18s ease,box-shadow .18s ease; }
.ai-assistant-tabs button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.ai-assistant-tabs button.active { color: #3049bb; background: #fff; box-shadow: 0 4px 15px rgba(35,55,106,.1),inset 0 0 0 1px #e0e6f0; }

.ai-assistant-view { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.ai-chat-messages { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 14px; overflow-y: auto; overscroll-behavior: contain; padding: 17px; scrollbar-width: thin; }
.ai-welcome { display: grid; gap: 13px; padding: 15px; border: 1px solid #dee7f3; border-radius: 17px; background: radial-gradient(circle at 105% -20%,rgba(98,101,231,.13),transparent 42%),linear-gradient(145deg,#f6f9ff,#fbfcff); }
.ai-welcome-heading { display: flex; align-items: flex-start; gap: 11px; }
.ai-welcome-heading > i { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg,#4c6ae8,#7547d8); font-size: .7rem; font-style: normal; font-weight: 950; box-shadow: 0 7px 16px rgba(79,72,204,.24); }
.ai-welcome-heading > div { display: grid; gap: 4px; }
.ai-welcome-heading strong { color: #17243b; font-size: .76rem; }
.ai-welcome-heading p { margin: 0; color: #697991; font-size: .62rem; line-height: 1.55; }
.ai-quick-prompts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.ai-quick-prompts button { min-height: 47px; padding: 9px 10px; border: 1px solid #dce4f0; border-radius: 11px; color: #31435f; background: rgba(255,255,255,.86); text-align: left; font: inherit; font-size: .58rem; font-weight: 750; line-height: 1.35; cursor: pointer; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.ai-quick-prompts button:hover { transform: translateY(-1px); border-color: #aebdeb; box-shadow: 0 7px 15px rgba(55,71,124,.09); }
.ai-readonly-note { display: flex; align-items: center; gap: 7px; color: #6d7c90; font-size: .52rem; }
.ai-readonly-note i { width: 7px; height: 7px; border-radius: 50%; background: #2dc999; box-shadow: 0 0 0 4px rgba(45,201,153,.1); }

.ai-message { display: flex; align-items: flex-start; gap: 8px; animation: ai-message-in .22s ease both; }
.ai-message.user { justify-content: flex-end; }
.ai-message-avatar { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(145deg,#4c68df,#6c47cf); font-size: .51rem; font-weight: 950; }
.ai-message-body { max-width: 84%; }
.ai-message-content { padding: 11px 13px; border: 1px solid #dde5ef; border-radius: 5px 15px 15px 15px; color: #304057; background: #f7f9fc; font-size: .65rem; line-height: 1.6; overflow-wrap: anywhere; }
.ai-message.user .ai-message-content { border-color: #465bd3; border-radius: 15px 5px 15px 15px; color: #fff; background: linear-gradient(135deg,#4058ca,#5945c2); box-shadow: 0 8px 20px rgba(67,70,190,.18); }
.ai-message-content p { margin: 0 0 7px; }
.ai-message-content p:last-child { margin-bottom: 0; }
.ai-message-content ul { margin: 6px 0; padding-left: 18px; }
.ai-message-content li { margin: 3px 0; }
.ai-message-content strong { font-weight: 900; }
.ai-message-content a { color: #405bc7; font-weight: 850; text-decoration: underline; text-underline-offset: 2px; }
.ai-message-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ai-message-meta span { padding: 3px 7px; border-radius: 20px; color: #61748b; background: #eef3f8; font-size: .46rem; font-weight: 750; }
.ai-message-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.ai-message-actions { gap: 10px; }
.ai-message-actions button { padding: 3px 1px; border: 0; color: #697b95; background: transparent; font: inherit; font-size: .48rem; font-weight: 800; cursor: pointer; }
.ai-answer-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ai-answer-tools button { min-height: 25px; padding: 0 8px; border: 1px solid #d6e0ee; border-radius: 8px; color: #4d61b9; background: #fff; font: inherit; font-size: .46rem; font-weight: 900; cursor: pointer; transition: transform .16s ease,background .16s ease,border-color .16s ease; }
.ai-answer-tools button:hover { transform: translateY(-1px); border-color: #7186df; background: #f0f4ff; }
.ai-result-actions { display: grid; gap: 6px; margin-top: 7px; padding: 9px; border: 1px solid #dbe5f2; border-radius: 11px; background: #f5f8ff; }
.ai-result-actions > strong { color: #344d83; font-size: .49rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.ai-result-actions > div { display: grid; gap: 6px; }
.ai-result-actions a { display: grid; gap: 2px; padding: 8px 9px; border: 1px solid #d4dfef; border-radius: 8px; color: #33466a; background: #fff; text-decoration: none; transition: transform .16s ease,box-shadow .16s ease; }
.ai-result-actions a:hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(48,77,133,.12); }
.ai-result-actions a.primary { color: #fff; border-color: #4163d9; background: linear-gradient(135deg,#4164db,#5e4ac8); }
.ai-result-actions a span { font-size: .54rem; font-weight: 900; }.ai-result-actions a small { font-size: .45rem; line-height: 1.35; opacity: .82; }
.ai-typing { display: flex; align-items: center; gap: 5px; padding: 13px 15px; border: 1px solid #e0e6ef; border-radius: 5px 15px 15px 15px; background: #f7f9fc; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: #6474d9; animation: ai-dot 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }.ai-typing i:nth-child(3) { animation-delay: .3s; }

.ai-chat-composer { padding: 11px 13px 13px; border-top: 1px solid #e5eaf2; background: #fff; }
.ai-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 7px 7px 7px 12px; border: 1px solid #d8e1ed; border-radius: 15px; background: #f8fafc; transition: border-color .18s ease,box-shadow .18s ease; }
.ai-chat-form:focus-within { border-color: #8ea2ec; box-shadow: 0 0 0 3px rgba(75,96,210,.09); }
.ai-chat-form textarea { min-height: 38px; max-height: 112px; flex: 1; resize: none; border: 0; outline: 0; color: #17243b; background: transparent; font: inherit; font-size: .65rem; line-height: 1.45; }
.ai-chat-form textarea::placeholder { color: #8c98aa; }
.ai-chat-form button { display: grid; width: 39px; height: 39px; flex: 0 0 auto; padding: 0; place-items: center; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#445fdb,#6b45cb); box-shadow: 0 7px 14px rgba(76,70,194,.22); cursor: pointer; }
.ai-chat-form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-chat-form button:disabled { cursor: wait; opacity: .58; }
.ai-chat-form .ai-voice-button { color: #5266d5; border: 1px solid #d5dded; background: #fff; box-shadow: none; transition: color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease; }
.ai-chat-form .ai-voice-button:hover { transform: translateY(-1px); color: #fff; border-color: #697ce0; background: #697ce0; box-shadow: 0 7px 15px rgba(82,102,213,.2); }
.ai-chat-form .ai-voice-button.is-listening { color: #fff; border-color: #e05263; background: #e05263; box-shadow: 0 0 0 5px rgba(224,82,99,.13); animation: ai-microphone-pulse 1.15s ease-in-out infinite; }
.ai-product-suggestions { display: grid; max-height: 190px; margin-top: 6px; overflow-y: auto; border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(30,49,90,.13); }
.ai-product-suggestions button { display: grid; gap: 2px; padding: 9px 11px; border: 0; border-bottom: 1px solid #edf1f6; color: #273750; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.ai-product-suggestions button:last-child { border-bottom: 0; }
.ai-product-suggestions button:hover,.ai-product-suggestions button:focus-visible { outline: 0; background: #f1f5ff; }
.ai-product-suggestions strong { overflow: hidden; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.ai-product-suggestions span { color: #77869a; font-size: .48rem; }
.ai-composer-help { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; color: #8a97a9; font-size: .47rem; }
.ai-composer-help button { padding: 0; border: 0; color: #5c6fc8; background: transparent; font: inherit; font-size: inherit; font-weight: 800; cursor: pointer; }

.ai-command-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 17px; scrollbar-width: thin; }
.ai-command-hero { display: grid; gap: 5px; padding: 15px; border: 1px solid #d8e3f4; border-radius: 16px; color: #fff; background: radial-gradient(circle at 100% -30%,rgba(136,226,255,.35),transparent 46%),linear-gradient(135deg,#173362,#4149a7); }
.ai-command-hero span,.ai-command-form header > span,.ai-favorites header span { color: #a9e7ff; font-size: .48rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }.ai-command-hero h3 { margin: 0; font-size: .95rem; }.ai-command-hero p { margin: 0; color: #dae4ff; font-size: .58rem; line-height: 1.5; }
.ai-command-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0; }.ai-command-grid button { display: grid; min-height: 100px; align-content: start; gap: 5px; padding: 11px; border: 1px solid #dce5f1; border-radius: 13px; color: #243856; background: #fff; text-align: left; font: inherit; cursor: pointer; transition: transform .16s ease,box-shadow .16s ease,border-color .16s ease; }.ai-command-grid button:hover { transform: translateY(-2px); border-color: #9cafec; box-shadow: 0 10px 20px rgba(45,66,133,.1); }.ai-command-grid strong { font-size: .61rem; }.ai-command-grid span { color: #718097; font-size: .49rem; line-height: 1.38; }.ai-command-grid b { margin-top: auto; color: #536bd4; font-size: .47rem; }
.ai-command-search { display: grid; gap: 5px; margin-top: 12px; padding: 9px 10px; border: 1px solid #d9e4f2; border-radius: 12px; background: #f7faff; }
.ai-command-search > span { color: #5b6f8d; font-size: .47rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.ai-command-search input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #cfdcec; border-radius: 8px; color: #243957; background: #fff; font: inherit; font-size: .56rem; outline: none; }
.ai-command-search input:focus { border-color: #8296e8; box-shadow: 0 0 0 3px rgba(80,101,213,.1); }
.ai-command-empty { margin: 11px 0 0; padding: 10px; border: 1px dashed #c8d5eb; border-radius: 10px; color: #708099; background: #f8fbff; font-size: .54rem; line-height: 1.45; }
.ai-command-form { display: grid; gap: 9px; padding: 13px; border: 1px solid #dbe3ef; border-radius: 15px; background: #f8fafc; }.ai-command-form header,.ai-favorites header { display: grid; gap: 3px; }.ai-command-form header > span,.ai-favorites header span { color: #586bd0; }.ai-command-form header strong,.ai-favorites header strong { color: #243650; font-size: .67rem; }.ai-command-form textarea { min-height: 70px; padding: 9px; border: 1px solid #d5dfec; border-radius: 9px; color: #20324d; background: #fff; font: inherit; font-size: .56rem; line-height: 1.45; resize: vertical; }.ai-command-form textarea:focus,.ai-command-period input:focus { outline: 0; border-color: #8296e8; box-shadow: 0 0 0 3px rgba(80,101,213,.1); }.ai-command-period { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.ai-command-period label { display: grid; gap: 4px; color: #748298; font-size: .47rem; font-weight: 800; }.ai-command-period input { height: 34px; padding: 0 7px; border: 1px solid #d5dfec; border-radius: 8px; color: #2b3d59; background: #fff; font: inherit; font-size: .53rem; }.ai-command-form > button { height: 39px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(135deg,#415fda,#6747ce); font: inherit; font-size: .57rem; font-weight: 900; cursor: pointer; box-shadow: 0 8px 18px rgba(70,75,190,.2); }
.ai-favorites { display: grid; gap: 8px; margin-top: 12px; padding: 13px; border: 1px solid #dbe3ef; border-radius: 15px; background: #fff; }.ai-favorites > p { margin: 0; color: #738198; font-size: .52rem; line-height: 1.45; }.ai-favorites > div { display: grid; gap: 6px; }.ai-favorites article { display: grid; grid-template-columns: 1fr 25px; gap: 5px; align-items: stretch; }.ai-favorites article button { border: 1px solid #e0e6ee; border-radius: 8px; color: #3e5070; background: #f8fafc; font: inherit; font-size: .49rem; cursor: pointer; }.ai-favorites article button:first-child { padding: 8px; text-align: left; }.ai-favorites article button:last-child { color: #a65d69; font-size: .9rem; }

.ai-generator-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 17px; scrollbar-width: thin; }
.ai-generator-intro { display: grid; gap: 5px; margin-bottom: 13px; }
.ai-generator-intro span { color: #5a55ce; font-size: .52rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ai-generator-intro h3 { margin: 0; color: #17243b; font-size: .92rem; letter-spacing: -.02em; }
.ai-generator-intro p { margin: 0; color: #738197; font-size: .59rem; line-height: 1.5; }
.ai-generator-form { display: grid; gap: 11px; padding: 14px; border: 1px solid #e0e7f0; border-radius: 16px; background: #f8fafc; }
.ai-generator-form label { display: grid; gap: 6px; }
.ai-generator-form label > span { color: #65758b; font-size: .55rem; font-weight: 850; }
.ai-generator-form input,.ai-generator-form select,.ai-generator-form textarea { width: 100%; border: 1px solid #d6dfeb; border-radius: 10px; outline: 0; color: #17243b; background: #fff; font: inherit; font-size: .64rem; transition: border-color .18s ease,box-shadow .18s ease; }
.ai-generator-form input,.ai-generator-form select { height: 42px; padding: 0 10px; }
.ai-generator-form textarea { min-height: 72px; padding: 10px; resize: vertical; }
.ai-generator-form :is(input,select,textarea):focus { border-color: #8499e7; box-shadow: 0 0 0 3px rgba(75,96,210,.08); }
.ai-generator-form > button { height: 43px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(120deg,#405bd4,#7246cf); box-shadow: 0 9px 18px rgba(72,67,191,.18); font: inherit; font-size: .65rem; font-weight: 900; cursor: pointer; }
.ai-generator-form > button:disabled { cursor: wait; opacity: .65; }
.ai-generator-result { display: grid; gap: 9px; margin-top: 13px; padding: 14px; border: 1px solid #dbe4f0; border-radius: 16px; background: #fff; box-shadow: 0 9px 24px rgba(30,50,88,.07); }
.ai-generator-result > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-generator-result > header div { display: grid; gap: 3px; }
.ai-generator-result > header span { color: #2c9c7a; font-size: .49rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ai-generator-result > header strong { color: #17243b; font-size: .67rem; }
.ai-generator-result > header button { padding: 6px 9px; border: 1px solid #d8e1ed; border-radius: 8px; color: #52637a; background: #f8fafc; font: inherit; font-size: .5rem; font-weight: 850; cursor: pointer; }
.ai-generator-content { white-space: pre-wrap; color: #35455b; font-size: .62rem; line-height: 1.62; }
.ai-generator-source { color: #8390a1; font-size: .47rem; }
.ai-assistant-error { padding: 11px 12px; border: 1px solid #f0c7cc; border-radius: 11px; color: #a53b49; background: #fff4f5; font-size: .57rem; line-height: 1.45; }

html[data-theme="black"] .ai-assistant-launcher > b { border-color: #080c13; color: #d7dcff; background: #172130; }
html[data-theme="black"] .ai-assistant-panel { color: #e9eef7; background: #0e151f; border-color: #253246; box-shadow: 0 32px 85px rgba(0,0,0,.62); }
html[data-theme="black"] .ai-assistant-tabs { border-color: #253143; background: #0a1018; }
html[data-theme="black"] .ai-assistant-tabs button { color: #8390a3; }
html[data-theme="black"] .ai-assistant-tabs button.active { color: #dce2ff; background: #192238; box-shadow: inset 0 0 0 1px #32405d; }
html[data-theme="black"] .ai-welcome { border-color: #29364a; background: radial-gradient(circle at 105% -20%,rgba(98,101,231,.14),transparent 42%),#111a27; }
html[data-theme="black"] .ai-welcome-heading strong,html[data-theme="black"] .ai-generator-intro h3 { color: #edf3fb; }
html[data-theme="black"] .ai-welcome-heading p,html[data-theme="black"] .ai-readonly-note,html[data-theme="black"] .ai-generator-intro p { color: #94a2b5; }
html[data-theme="black"] .ai-quick-prompts button { color: #dbe4f1; border-color: #2b384c; background: #151f2d; }
html[data-theme="black"] .ai-quick-prompts button:hover { border-color: #52639a; }
html[data-theme="black"] .ai-message-content,html[data-theme="black"] .ai-typing { color: #dbe4f1; border-color: #293649; background: #131c29; }
html[data-theme="black"] .ai-message-content a { color: #aebaff; }
html[data-theme="black"] .ai-message-meta span { color: #9facbd; background: #1b2635; }
html[data-theme="black"] .ai-result-actions { border-color: #2c3a51; background: #121d2d; }html[data-theme="black"] .ai-result-actions > strong { color: #afc2f7; }html[data-theme="black"] .ai-result-actions a { color: #c7d3e8; border-color: #33435c; background: #182331; }
html[data-theme="black"] .ai-chat-composer { border-color: #273345; background: #0e151f; }
html[data-theme="black"] .ai-chat-form { border-color: #2b384b; background: #111a26; }
html[data-theme="black"] .ai-chat-form textarea { color: #e8eef7; }
html[data-theme="black"] .ai-chat-form .ai-voice-button { color: #aebaff; border-color: #34445c; background: #182231; box-shadow: none; }
html[data-theme="black"] .ai-chat-form .ai-voice-button:hover { color: #fff; border-color: #697ce0; background: #596bd0; }
html[data-theme="black"] .ai-chat-form .ai-voice-button.is-listening { color: #fff; border-color: #e05263; background: #c93f51; box-shadow: 0 0 0 5px rgba(224,82,99,.15); }
html[data-theme="black"] .ai-product-suggestions { border-color: #2c394c; background: #111a26; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
html[data-theme="black"] .ai-product-suggestions button { color: #dbe4f1; border-color: #273446; }
html[data-theme="black"] .ai-product-suggestions button:hover,html[data-theme="black"] .ai-product-suggestions button:focus-visible { background: #1a2638; }
html[data-theme="black"] .ai-generator-form { border-color: #293649; background: #111a27; }
html[data-theme="black"] .ai-generator-form label > span { color: #9caabd; }
html[data-theme="black"] .ai-generator-form input,html[data-theme="black"] .ai-generator-form select,html[data-theme="black"] .ai-generator-form textarea { color: #e8eef7; border-color: #2c394c; background: #0d141e; }
html[data-theme="black"] .ai-generator-result { border-color: #293649; background: #111a27; box-shadow: 0 9px 24px rgba(0,0,0,.22); }
html[data-theme="black"] .ai-generator-result > header strong,html[data-theme="black"] .ai-generator-content { color: #dce5f1; }
html[data-theme="black"] .ai-generator-result > header button { color: #b9c5d5; border-color: #344156; background: #172130; }
html[data-theme="black"] .ai-assistant-error { color: #ff9ca8; border-color: #63303b; background: #251116; }
html[data-theme="black"] .ai-command-hero { border-color: #314260; background: radial-gradient(circle at 100% -30%,rgba(82,144,216,.25),transparent 46%),linear-gradient(135deg,#142943,#30347e); }html[data-theme="black"] .ai-command-grid button,html[data-theme="black"] .ai-favorites,html[data-theme="black"] .ai-command-search { color: #dce5f1; border-color: #2b394e; background: #111a27; }html[data-theme="black"] .ai-command-grid span,html[data-theme="black"] .ai-favorites > p,html[data-theme="black"] .ai-command-search > span { color: #9baabd; }html[data-theme="black"] .ai-command-form { border-color: #29374a; background: #111a27; }html[data-theme="black"] .ai-command-form header strong,html[data-theme="black"] .ai-favorites header strong { color: #e4ebf4; }html[data-theme="black"] .ai-command-form textarea,html[data-theme="black"] .ai-command-period input,html[data-theme="black"] .ai-command-search input { color: #e4ebf4; border-color: #304055; background: #0d141e; }html[data-theme="black"] .ai-favorites article button,html[data-theme="black"] .ai-answer-tools button { color: #c3d0e2; border-color: #2e3c50; background: #172130; }html[data-theme="black"] .ai-command-empty { color: #9baabd; border-color: #3a4a62; background: #111a27; }

.ai-proof { margin-top: 7px; border: 1px solid #cce5dc; border-radius: 11px; background: #f5fbf8; overflow: hidden; }
.ai-proof.limited { border-color: #ead7a2; background: #fffbef; }
.ai-proof-badge { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.ai-proof-badge > span { display: flex; align-items: center; gap: 6px; color: #187959; font-size: .49rem; font-weight: 900; }
.ai-proof-badge > span i { width: 7px; height: 7px; background: #24b788; border-radius: 50%; box-shadow: 0 0 0 3px rgba(36,183,136,.12); }
.ai-proof.limited .ai-proof-badge > span { color: #8a641c; }
.ai-proof.limited .ai-proof-badge > span i { background: #d89b29; box-shadow: 0 0 0 3px rgba(216,155,41,.12); }
.ai-proof-badge > strong { padding: 4px 6px; color: #53647b; background: rgba(255,255,255,.7); border-radius: 6px; font-size: .44rem; }
.ai-proof > details { border-top: 1px solid rgba(43,103,83,.12); }
.ai-proof > details > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; color: #526178; font-size: .49rem; font-weight: 750; cursor: pointer; list-style: none; }
.ai-proof > details > summary::-webkit-details-marker { display: none; }
.ai-proof > details > summary b { color: #4d62c9; font-size: .45rem; }
.ai-proof-content { display: grid; gap: 8px; padding: 9px 10px 11px; border-top: 1px solid rgba(43,103,83,.1); }
.ai-proof-content section { display: grid; gap: 4px; }
.ai-proof-content h5 { margin: 0; color: #27364c; font-size: .47rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.ai-proof-content p { display: grid; gap: 2px; margin: 0; color: #516279; font-size: .5rem; line-height: 1.45; }
.ai-proof-content p small { color: #8491a2; font-size: .45rem; }
.ai-proof-identifiers { display: flex; flex-wrap: wrap; gap: 4px; }
.ai-proof-identifiers span { padding: 4px 6px; color: #4a5c77; background: #fff; border: 1px solid #dfe7ee; border-radius: 6px; font-size: .45rem; font-weight: 750; }
.ai-proof-content ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ai-proof-content li { display: flex; gap: 6px; align-items: start; color: #526178; font-size: .49rem; }
.ai-proof-content li > i { display: grid; place-content: center; flex: 0 0 15px; width: 15px; height: 15px; color: #fff; background: #24aa7e; border-radius: 50%; font-size: .4rem; font-style: normal; }
.ai-proof-content li > span { display: grid; gap: 1px; }
.ai-proof-content li strong { color: #2d3d52; font-size: .48rem; }
.ai-proof-content li small { color: #7d8a9b; font-size: .44rem; }
.ai-proof-sync { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
.ai-proof-sync span { display: grid; gap: 2px; padding: 6px; color: #7c899a; background: rgba(255,255,255,.72); border-radius: 7px; font-size: .43rem; }
.ai-proof-sync b { color: #3e5068; font-size: .45rem; }
.ai-proof-limitations { padding: 7px; background: #fff5d9; border-radius: 7px; }
.ai-proof-limitations h5 { color: #8a641c; }
.ai-proof-limitations p { color: #785d29; }
.ai-proof-links { display: flex; flex-wrap: wrap; gap: 5px; }
.ai-proof-links a { padding: 5px 7px; color: #455dc3; background: #fff; border: 1px solid #dce4ed; border-radius: 7px; font-size: .46rem; font-weight: 800; text-decoration: none; }

html[data-theme="black"] .ai-proof { color: #dbe5ef; border-color: #235343; background: #0f2720; }
html[data-theme="black"] .ai-proof.limited { border-color: #59471f; background: #29210f; }
html[data-theme="black"] .ai-proof-badge > strong,
html[data-theme="black"] .ai-proof-identifiers span,
html[data-theme="black"] .ai-proof-sync span,
html[data-theme="black"] .ai-proof-links a { background: #131e2a; border-color: #2b3a4c; }
html[data-theme="black"] .ai-proof > details,
html[data-theme="black"] .ai-proof-content { border-color: rgba(145,177,165,.15); }
html[data-theme="black"] .ai-proof > details > summary,
html[data-theme="black"] .ai-proof-content p,
html[data-theme="black"] .ai-proof-content li { color: #a9b6c7; }
html[data-theme="black"] .ai-proof-content h5,
html[data-theme="black"] .ai-proof-content li strong { color: #e0e8f2; }
html[data-theme="black"] .ai-proof-limitations { background: #34280e; }
html[data-theme="black"] .ai-proof-limitations h5,
html[data-theme="black"] .ai-proof-limitations p { color: #efca75; }

@media (max-width:720px) {
  .ai-assistant-launcher { right: 14px; bottom: 84px; width: 58px; height: 58px; }
  .ai-assistant-panel { right: 10px; bottom: 150px; width: calc(100vw - 20px); height: min(680px,calc(100vh - 164px)); border-radius: 20px; }
  .ai-assistant-header { min-height: 82px; padding: 14px; }
  .ai-quick-prompts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) { .ai-assistant-launcher,.ai-assistant-panel,.ai-message,.ai-voice-button { animation: none!important; } }
@keyframes ai-assistant-arrive { from { opacity:0; transform:translateY(14px) scale(.82); } to { opacity:1; transform:none; } }
@keyframes ai-assistant-pop { from { opacity:0; transform:translate(18px,16px) scale(.94); } to { opacity:1; transform:none; } }
@keyframes ai-message-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@keyframes ai-dot { 0%,60%,100% { transform:translateY(0); opacity:.45; } 30% { transform:translateY(-4px); opacity:1; } }
@keyframes ai-microphone-pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.06); } }
