/* =========================================================
   ALPHA AI — Chat de finanzas
   Hereda tokens de styles.css (--brand, --brand-2, Inter…)
   ========================================================= */

:root{
  --aai-bg:        rgb(255, 252, 255);
  --aai-panel:     #ffffff;
  --aai-border:    rgba(0,0,0,0.08);
  --aai-border-2:  rgba(0,0,0,0.14);
  --aai-text:      #1a1a1a;
  --aai-muted:     rgba(26,26,26,0.58);
  --aai-soft:      rgba(84,140,146,0.10);
  --aai-soft-2:    rgba(84,140,146,0.18);
  --aai-arena:     #AB9072;
  --aai-crema:     #E0D7CF;
  --aai-radius:    16px;
  --aai-shadow:    0 18px 44px rgba(0,0,0,0.10);
  --aai-sidebar-w: 272px;
}

/* La app ocupa el viewport; el scroll vive dentro del hilo */
body.af-ai-page{ overflow: hidden; background: var(--aai-bg); }

.aai-root{
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--aai-bg);
}

.aai-root .topbar{ flex: 0 0 auto; position: static; }

.aai-shell{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  width: 100%;
}

/* Texto de los mensajes sí se puede seleccionar */
.aai-msg__body, .aai-msg__body *,
.aai-art, .aai-art *{
  user-select: text;
  -webkit-user-select: text;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.aai-sidebar{
  flex: 0 0 var(--aai-sidebar-w);
  width: var(--aai-sidebar-w);
  border-right: 1px solid var(--aai-border);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.aai-side-head{
  padding: 16px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aai-newchat{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(84,140,146,0.35);
  background: var(--aai-soft);
  color: var(--brand-2, #285260);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.aai-newchat:hover{ background: var(--aai-soft-2); }
.aai-newchat:active{ transform: scale(0.985); }

.aai-side-search{
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--aai-border);
  background: #fff;
}
.aai-side-search i{ font-size: 12px; color: var(--aai-muted); }
.aai-side-search input{
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--aai-text);
  background: transparent;
}
.aai-side-search input::placeholder{ color: rgba(26,26,26,0.45); font-weight: 600; }

.aai-side-label{
  padding: 12px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.40);
}

.aai-chats{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 10px 10px;
  scrollbar-width: thin;
}
.aai-chats::-webkit-scrollbar{ width: 8px; }
.aai-chats::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.10); border-radius: 99px; }

.aai-chat-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
  color: rgba(26,26,26,0.78);
  transition: background .18s ease, color .18s ease;
}
.aai-chat-item:hover{ background: rgba(0,0,0,0.04); }
.aai-chat-item.is-active{
  background: var(--aai-soft);
  color: var(--brand-2, #285260);
}
.aai-chat-item__title{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aai-chat-item__del{
  flex: 0 0 auto;
  opacity: 0;
  border: none;
  background: transparent;
  color: rgba(26,26,26,0.45);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 8px;
  font-size: 12px;
  transition: opacity .15s ease, color .15s ease;
}
.aai-chat-item:hover .aai-chat-item__del{ opacity: 1; }
.aai-chat-item__del:hover{ color: var(--color-negativo, #d93025); background: rgba(217,48,37,0.08); }

.aai-side-foot{
  border-top: 1px solid var(--aai-border);
  padding: 12px 16px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(26,26,26,0.42);
}
.aai-side-foot b{ color: rgba(26,26,26,0.60); font-weight: 700; }

.aai-empty-list{
  padding: 18px 12px;
  font-size: 12.5px;
  color: rgba(26,26,26,0.42);
  text-align: center;
  line-height: 1.5;
}

/* =========================================================
   MAIN / THREAD
   ========================================================= */
.aai-main{
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.aai-thread{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 24px 8px;
  scroll-behavior: smooth;
}
.aai-thread::-webkit-scrollbar{ width: 10px; }
.aai-thread::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.10); border-radius: 99px; }

.aai-thread-inner{
  width: min(820px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- Estado vacío ---------- */
.aai-hero{
  padding: 6vh 0 24px;
  text-align: center;
}
.aai-hero__mark{
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 15px;
  background: rgba(84,140,146,0.08);
  border: 1px solid rgba(84,140,146,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aai-hero__mark img{
  width: 38px; height: 38px;
  object-fit: contain;
  display: block;
}
.aai-hero__title{
  font-family: 'Inter_Logo', 'Inter', sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  color: var(--brand, #548C92);
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Same eyebrow used on the AlphaAI cards across the platform */
.aai-hero__label{
  margin-top: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aabcc0;
}

/* Category pill, same as .aai-pill on the news card */
.aai-hero__pill{
  display: inline-flex; align-items: center;
  background: rgba(84,140,146,0.10);
  border: 1px solid rgba(84,140,146,0.25);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #548C92;
  vertical-align: middle;
  margin-left: 10px;
}

.aai-hero__sub{
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(26,26,26,0.55);
}

.aai-suggestions{
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  text-align: left;
}
.aai-sugg{
  border: 1px solid var(--aai-border);
  background: #fff;
  border-radius: var(--aai-radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}
.aai-sugg::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(84,140,146,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity .25s ease; pointer-events:none;
}
.aai-sugg:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  border-color: var(--aai-border-2);
}
.aai-sugg:hover::before{ opacity: 1; }
.aai-sugg__tag{
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand, #548C92);
}
.aai-sugg__text{
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(26,26,26,0.82);
}

/* ---------- Mensajes ---------- */
.aai-msg{ display: flex; gap: 14px; align-items: flex-start; }
.aai-msg.is-user{ justify-content: flex-end; }

.aai-avatar{
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(84,140,146,0.08);
  border: 1px solid rgba(84,140,146,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.aai-avatar img{
  width: 22px; height: 22px;
  object-fit: contain;
  display: block;
}

.aai-msg.is-user .aai-msg__body{
  max-width: 78%;
  background: var(--aai-soft);
  border: 1px solid rgba(84,140,146,0.22);
  border-radius: 18px 18px 6px 18px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.55;
  color: #16323a;
  font-weight: 500;
}

.aai-msg.is-ai .aai-msg__body{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--aai-text);
}

/* Markdown dentro de las respuestas */
.aai-msg__body p{ margin: 0 0 12px; }
.aai-msg__body p:last-child{ margin-bottom: 0; }
.aai-msg__body h3{
  font-size: 15.5px; font-weight: 800; margin: 20px 0 8px;
  color: var(--brand-2, #285260);
}
.aai-msg__body h4{ font-size: 14px; font-weight: 800; margin: 16px 0 6px; }
.aai-msg__body ul, .aai-msg__body ol{ margin: 0 0 12px; padding-left: 20px; }
.aai-msg__body li{ margin: 4px 0; }
.aai-msg__body strong{ font-weight: 800; color: #111; }
.aai-msg__body code{
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 6px;
}
.aai-msg__body a{ color: var(--brand-2, #285260); text-decoration: underline; }
.aai-msg__body hr{ border:none; border-top:1px solid var(--aai-border); margin:16px 0; }

/* Cursor de escritura */
.aai-caret{
  display:inline-block;
  width: 7px; height: 16px;
  background: var(--brand, #548C92);
  border-radius: 2px;
  vertical-align: -2px;
  margin-left: 2px;
  animation: aaiBlink 1s steps(2) infinite;
}
@keyframes aaiBlink{ 50%{ opacity: 0; } }

/* Estado "pensando" */
.aai-thinking{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--aai-muted);
}
.aai-dots{ display:inline-flex; gap:4px; }
.aai-dots span{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand, #548C92);
  animation: aaiPulse 1.2s ease-in-out infinite;
}
.aai-dots span:nth-child(2){ animation-delay: .18s; }
.aai-dots span:nth-child(3){ animation-delay: .36s; }
@keyframes aaiPulse{ 0%,100%{ opacity:.25; transform: translateY(0);} 50%{ opacity:1; transform: translateY(-3px);} }

/* Acciones bajo la respuesta */
.aai-msg__tools{
  display:flex; gap:6px; margin-top: 10px;
  opacity: 0; transition: opacity .2s ease;
}
.aai-msg.is-ai:hover .aai-msg__tools{ opacity: 1; }
.aai-tool-btn{
  border: 1px solid var(--aai-border);
  background: #fff;
  color: var(--aai-muted);
  border-radius: 9px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}
.aai-tool-btn:hover{ color: var(--brand-2,#285260); border-color: rgba(84,140,146,0.35); background: var(--aai-soft); }

/* =========================================================
   ARTEFACTOS (tarjetas de datos dentro del chat)
   ========================================================= */
.aai-art{
  margin: 14px 0;
  border: 1px solid var(--aai-border);
  border-radius: var(--aai-radius);
  background: #fff;
  overflow: hidden;
}
.aai-art__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--aai-border);
  background: linear-gradient(135deg, rgba(84,140,146,0.05) 0%, transparent 70%);
}
.aai-art__title{
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-2, #285260);
  display: flex; align-items: center; gap: 8px;
}
.aai-art__title i{ font-size: 12px; opacity: .8; }
.aai-art__meta{
  font-size: 11px;
  font-weight: 700;
  color: rgba(26,26,26,0.42);
  white-space: nowrap;
}
.aai-art__body{ padding: 16px; }

/* Company chip */
.aai-company{
  display:flex; align-items:center; gap:10px;
}
.aai-company img{
  width: 30px; height: 30px; border-radius: 9px;
  object-fit: contain; background:#fff; border:1px solid var(--aai-border);
}
.aai-company__name{ font-size: 13px; font-weight: 800; color:#1c1c1c; line-height:1.2; }
.aai-company__sub{ font-size: 11px; font-weight:600; color: var(--aai-muted); }

/* KPI grid */
.aai-kpis{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1px;
  background: var(--aai-border);
  border-radius: 12px;
  overflow: hidden;
}
.aai-kpi{ background:#fff; padding: 12px 14px; }
.aai-kpi__label{
  font-size: 10.5px; font-weight: 800; letter-spacing:.05em;
  text-transform: uppercase; color: rgba(26,26,26,0.45);
}
.aai-kpi__value{ margin-top: 4px; font-size: 17px; font-weight: 800; color:#141414; letter-spacing:-0.01em; }
.aai-kpi__sub{ margin-top: 2px; font-size: 11.5px; font-weight: 700; }

/* Chart */
.aai-chart{ position: relative; height: 260px; width: 100%; }
.aai-chart-legend{
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--aai-muted);
  font-weight: 600;
  text-align: center;
}

/* Tabla */
.aai-table-wrap{ overflow-x: auto; }
.aai-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.aai-table th{
  text-align: right;
  padding: 8px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.45);
  border-bottom: 1px solid var(--aai-border);
  white-space: nowrap;
}
.aai-table th:first-child, .aai-table td:first-child{ text-align: left; }
.aai-table td{
  padding: 9px 10px;
  text-align: right;
  border-bottom: 1px solid rgba(0,0,0,0.045);
  font-weight: 600;
  color: #232323;
  white-space: nowrap;
}
.aai-table tr:last-child td{ border-bottom: none; }
.aai-table td:first-child{ font-weight: 700; color:#111; }
.aai-table tbody tr:hover td{ background: rgba(84,140,146,0.04); }

/* Fórmula */
.aai-formula{
  background: rgba(84,140,146,0.05);
  border: 1px solid rgba(84,140,146,0.16);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--brand-2, #285260);
  font-weight: 700;
  text-align: center;
}
.aai-frac{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 2px;
}
.aai-frac__num{ padding: 0 8px 4px; }
.aai-frac__den{ padding: 4px 8px 0; border-top: 2px solid currentColor; }
.aai-formula__op{ font-size: 17px; font-weight: 800; opacity: .75; }

.aai-plug{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(171,144,114,0.45);
  background: rgba(224,215,207,0.22);
  font-size: 13px;
  line-height: 1.6;
  color: #4a4136;
  font-weight: 600;
}
.aai-plug b{ color: #2b2620; font-weight: 800; }

/* DCF */
.aai-dcf-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.aai-input{
  border: 1px solid var(--aai-border);
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
}
.aai-input label{
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.45);
  margin-bottom: 3px;
}
.aai-input__row{ display:flex; align-items:baseline; gap:4px; }
.aai-input input{
  border: none; outline: none;
  width: 100%;
  font-size: 16px;
  font-weight: 800;
  color: #141414;
  background: transparent;
  font-family: inherit;
}
.aai-input__unit{ font-size: 13px; font-weight: 800; color: rgba(26,26,26,0.40); }
.aai-input:focus-within{ border-color: rgba(84,140,146,0.45); box-shadow: 0 0 0 3px rgba(84,140,146,0.10); }

.aai-verdict{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(84,140,146,0.10), rgba(40,82,96,0.05));
  border: 1px solid rgba(84,140,146,0.22);
}
.aai-verdict__block{ min-width: 110px; }
.aai-verdict__label{
  font-size: 10.5px; font-weight: 800; letter-spacing:.05em;
  text-transform: uppercase; color: rgba(26,26,26,0.48);
}
.aai-verdict__value{ font-size: 24px; font-weight: 800; letter-spacing:-0.02em; color: var(--brand-2,#285260); margin-top:2px; }
.aai-verdict__pill{
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.aai-verdict__pill.up{ background: rgba(24,128,56,0.12); color: var(--color-positivo,#188038); }
.aai-verdict__pill.down{ background: rgba(217,48,37,0.10); color: var(--color-negativo,#d93025); }

.aai-steps{ margin-top: 14px; }
.aai-step{
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.07);
  font-size: 13px;
}
.aai-step:last-child{ border-bottom: none; }
.aai-step__k{ color: var(--aai-muted); font-weight: 600; }
.aai-step__v{ font-weight: 800; color: #1c1c1c; }

.aai-note{
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(26,26,26,0.45);
  font-weight: 600;
}

.positivo{ color: var(--color-positivo, #188038); }
.negativo{ color: var(--color-negativo, #d93025); }

/* Aviso de error */
.aai-alert{
  border: 1px solid rgba(217,48,37,0.25);
  background: rgba(217,48,37,0.05);
  color: #8f2019;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

/* =========================================================
   COMPOSER
   ========================================================= */
.aai-composer-wrap{
  flex: 0 0 auto;
  padding: 10px 24px 18px;
  background: linear-gradient(to top, var(--aai-bg) 62%, rgba(255,252,255,0));
}
.aai-composer-inner{ width: min(820px, 100%); margin: 0 auto; }

.aai-chipsrow{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.aai-chipsrow::-webkit-scrollbar{ display: none; }
.aai-chip{
  flex: 0 0 auto;
  border: 1px solid var(--aai-border);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(26,26,26,0.66);
  cursor: pointer;
  transition: all .18s ease;
}
.aai-chip:hover{
  border-color: rgba(84,140,146,0.35);
  background: var(--aai-soft);
  color: var(--brand-2, #285260);
}

.aai-composer{
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 10px 10px 18px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--aai-border);
  box-shadow: var(--aai-shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.aai-composer:focus-within{
  border-color: rgba(84,140,146,0.40);
  box-shadow: 0 18px 44px rgba(40,82,96,0.13);
}
.aai-composer textarea{
  flex: 1 1 auto;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #1c1c1c;
  background: transparent;
  max-height: 180px;
  min-height: 26px;
  padding: 6px 0;
}
.aai-composer textarea::placeholder{ color: rgba(26,26,26,0.42); font-weight: 600; }

.aai-send{
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--brand, #548C92);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 14px;
  transition: background .2s ease, transform .15s ease, opacity .2s ease;
}
.aai-send:hover{ background: var(--brand-2, #285260); }
.aai-send:active{ transform: scale(0.93); }
.aai-send:disabled{ opacity: .35; cursor: not-allowed; background: #9aa5a7; }

.aai-disclaimer{
  margin-top: 9px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(26,26,26,0.38);
}

/* Botón para abrir sidebar en móvil */
.aai-side-toggle{
  display: none;
  position: absolute;
  top: 12px; left: 14px;
  z-index: 20;
  width: 36px; height: 36px;
  border-radius: 11px;
  border: 1px solid var(--aai-border);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  cursor: pointer;
  color: rgba(26,26,26,0.7);
}
.aai-backdrop{
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 2500;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px){
  .aai-suggestions{ grid-template-columns: 1fr; }
  .aai-thread{ padding: 20px 14px 6px; }
  .aai-composer-wrap{ padding: 8px 14px 14px; }

  .aai-side-toggle{ display: grid; place-items: center; }
  .aai-thread{ padding-top: 58px; }

  .aai-sidebar{
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 3500;
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.22,.61,.36,1);
    box-shadow: 0 0 44px rgba(0,0,0,0.16);
  }
  body.aai-side-open .aai-sidebar{ transform: translateX(0); }
  body.aai-side-open .aai-backdrop{ display: block; }

  .aai-msg.is-user .aai-msg__body{ max-width: 88%; }
  .aai-chart{ height: 220px; }
  .aai-hero{ padding-top: 3vh; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .aai-thread{ scroll-behavior: auto; }
}

/* Foco visible accesible */
.aai-newchat:focus-visible,
.aai-send:focus-visible,
.aai-chip:focus-visible,
.aai-sugg:focus-visible,
.aai-chat-item:focus-visible{
  outline: 2px solid var(--brand, #548C92);
  outline-offset: 2px;
}