/* Identidad SmartFlow sobre fondo blanco. */
@font-face {
  font-family:"Inter";
  src:url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

@font-face {
  font-family:"Montserrat";
  src:url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

:root {
  --bg:#ffffff;
  --surface:#f7f9fc;
  --surface-hover:#f1f5f9;
  --text:#17245b;
  --text-2:#516078;
  --text-3:#64748b;
  --text-4:#94a3b8;
  --accent:#137abd;
  --blue:#137abd;
  --line:rgb(23 36 91 / .09);
  --line-strong:rgb(23 36 91 / .16);
  --tint:rgb(23 36 91 / .035);
  --heading:"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-family:var(--body);
  font-size:14px;
  color:var(--text);
  background:var(--bg);
  color-scheme:light;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
}

* { box-sizing:border-box; }
body { margin:0; }
button,a,textarea,summary { -webkit-tap-highlight-color:transparent; }
button,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; }
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:3px;
}
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; object-fit:contain; }
svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}
[hidden] { display:none!important; }
.icon-definitions { position:absolute; width:0; height:0; overflow:hidden; }

.app-shell {
  height:100dvh;
  overflow:hidden;
  background:var(--bg);
}

.workspace { height:100%; min-width:0; display:flex; flex-direction:column; }
.topbar {
  height:76px;
  flex-shrink:0;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.topbar-left,.topbar-right { display:flex; align-items:center; gap:18px; }
.topbar-right { gap:16px; }
.brand { display:flex; align-items:center; gap:11px; border-radius:5px; }
.brand img { width:24px; height:23px; }
.brand span {
  font-family:var(--heading);
  font-size:13px;
  font-weight:600;
  letter-spacing:.25em;
  text-transform:uppercase;
}
.icon-button {
  width:36px;
  height:36px;
  padding:0;
  border:0;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:transparent;
  color:var(--text-3);
  transition:color .18s,background .18s;
}
.icon-button:hover:enabled { background:var(--tint); color:var(--text); }
.icon-button:disabled { opacity:.3; }
.icon-button svg { width:17px; height:17px; }
.panel-toggle { width:40px; height:40px; }
.panel-toggle svg { width:19px; height:19px; }
.connection {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 2px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--text-3);
  font-size:11px;
  white-space:nowrap;
}
.connection:hover { color:var(--text); }
.connection-dot { width:5px; height:5px; border-radius:50%; background:var(--text-4); }
.connection[data-status=ready] .connection-dot { background:#2f855a; }
.connection[data-status=down] .connection-dot { background:#b7791f; }

.sidebar-overlay {
  position:fixed;
  inset:0;
  z-index:30;
  background:rgb(23 36 91 / .10);
}
.sidebar {
  position:fixed;
  inset:12px auto 12px 12px;
  z-index:40;
  width:300px;
  max-width:calc(100vw - 24px);
  padding:16px;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line-strong);
  border-radius:20px;
  background:var(--bg);
  box-shadow:8px 0 40px rgb(23 36 91 / .07);
  visibility:hidden;
  transform:translateX(calc(-100% - 16px));
  transition:transform .22s ease,visibility 0s linear .22s;
}
.sidebar.open { visibility:visible; transform:translateX(0); transition-delay:0s; }
.sidebar-header { display:flex; align-items:center; justify-content:space-between; padding:0 2px 18px 9px; }
.sidebar-title { font-family:var(--heading); font-size:14px; font-weight:500; }
.new-chat {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:11px 14px;
  margin-bottom:24px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:var(--tint);
  font-size:12px;
  text-align:left;
  transition:background .18s,border-color .18s;
}
.new-chat:hover:enabled { background:var(--surface-hover); border-color:rgb(19 122 189 / .35); }
.new-chat:disabled { color:var(--text-4); }
.new-chat svg { width:16px; height:16px; color:var(--accent); }
.sidebar-content { overflow:auto; flex:1; min-height:0; scrollbar-width:thin; }
.sidebar-section { margin-bottom:10px; }
.sidebar-section > summary {
  min-height:44px;
  padding:10px;
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:9px;
  font-size:12px;
  color:var(--text-2);
  list-style:none;
  cursor:pointer;
}
.sidebar-section > summary:hover { background:var(--tint); }
.sidebar-section > summary::-webkit-details-marker { display:none; }
.sidebar-section > summary > svg { width:16px; height:16px; color:var(--text-3); }
.section-count { font-size:10px; color:var(--text-3); font-variant-numeric:tabular-nums; }
.sidebar-section > summary .section-chevron { width:12px; height:12px; margin-left:auto; transition:transform .18s; }
.sidebar-section[open] > summary .section-chevron { transform:rotate(90deg); }
.history { padding:2px 0 8px; max-height:45dvh; overflow:auto; scrollbar-width:thin; }
.history-empty { font-size:12px; color:var(--text-3); line-height:1.8; padding:0 12px; }
.history-item {
  width:100%;
  min-height:42px;
  border:0;
  border-radius:9px;
  margin:2px 0;
  padding:10px 12px;
  display:flex;
  align-items:flex-start;
  gap:10px;
  text-align:left;
  color:var(--text-3);
  background:transparent;
  transition:color .18s,background .18s;
}
.history-item svg { display:none; }
.history-item:hover:enabled { background:var(--tint); color:var(--text); }
.history-item.active { background:rgb(19 122 189 / .06); color:var(--accent); }
.history-item:disabled { opacity:.5; }
.history-item span {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
  font-size:12px;
  line-height:1.7;
}
.workspace-info { margin:4px 10px 16px; padding:16px 0 0; border-top:1px solid var(--line); }
.account { display:flex; align-items:center; gap:12px; }
.account-avatar { width:34px; height:34px; flex-shrink:0; border-radius:10px; display:grid; place-items:center; color:var(--accent); background:rgb(19 122 189 / .06); font-size:11px; }
.account strong { display:block; font-size:12px; font-weight:500; line-height:1.7; overflow-wrap:anywhere; }
.info-label { display:block; color:var(--text-3); font-size:10px; margin-bottom:4px; }
.account-details { margin:22px 0 0; font-size:12px; line-height:1.7; color:var(--text-2); }
.account-details dd { margin:0; overflow-wrap:anywhere; }
.token-usage { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.usage-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.usage-day { font-size:10px; color:var(--text-3); }
.usage-total { display:flex; align-items:baseline; flex-wrap:wrap; gap:7px; margin:8px 0; }
.usage-total strong { font-size:25px; line-height:1.3; font-weight:450; letter-spacing:-.8px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.usage-total > span { font-size:11px; color:var(--text-3); }
.usage-breakdown,.usage-note { margin:0; font-size:10px; line-height:1.8; color:var(--text-3); }
.usage-note { margin-top:8px; }
.sidebar-footer { display:flex; align-items:center; gap:9px; padding:20px 10px 5px; font-size:10px; color:var(--text-3); }

.conversation-scroll { overflow:auto; flex:1; min-height:0; display:flex; flex-direction:column; scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; }
.welcome {
  width:100%;
  max-width:820px;
  flex:1;
  margin:0 auto;
  padding:48px 24px 52px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.welcome-logo { width:64px; height:64px; margin-bottom:32px; }
.eyebrow { margin:0 0 17px; color:var(--text-3); font-size:9px; letter-spacing:.25em; text-transform:uppercase; }
.welcome h1 { font-family:var(--heading); margin:0; font-size:clamp(28px,3.1vw,42px); font-weight:450; letter-spacing:-1.8px; line-height:1.3; }
.welcome-description { margin:16px 0 0; font-size:13px; line-height:1.8; color:var(--text-3); }

.composer-area { width:100%; max-width:820px; margin:0 auto; padding:0 24px max(24px,env(safe-area-inset-bottom)); flex-shrink:0; }
.suggestions-carousel { margin-bottom:16px; min-width:0; }
.suggestions-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 3px 6px; color:var(--text-3); font-size:10px; }
.carousel-controls { display:flex; gap:3px; }
.carousel-controls .icon-button { width:30px; height:30px; border-radius:50%; }
.carousel-controls svg { width:13px; height:13px; }
.carousel-previous svg { transform:rotate(180deg); }
.suggestions {
  display:flex;
  gap:8px;
  padding:5px 3px 7px;
  overflow-x:auto;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:3px;
  scroll-behavior:smooth;
  border-radius:6px;
}
.suggestions::-webkit-scrollbar { display:none; }
.suggestion-slide { flex:0 0 auto; scroll-snap-align:start; }
.suggestion {
  min-width:216px;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--bg);
  color:var(--text-2);
  font-size:11px;
  line-height:1.5;
  white-space:nowrap;
  transition:border-color .18s,background .18s,color .18s;
}
.suggestion svg { width:15px; height:15px; color:var(--text-3); }
.suggestion:hover:enabled { border-color:rgb(19 122 189 / .3); background:rgb(19 122 189 / .035); color:var(--text); }
.suggestion:hover:enabled svg { color:var(--accent); }
.suggestion:disabled { opacity:.45; }
.composer {
  display:flex;
  align-items:flex-end;
  gap:14px;
  min-height:82px;
  padding:17px 17px 17px 22px;
  border:1px solid var(--line-strong);
  border-radius:24px;
  background:var(--bg);
  transition:border-color .2s;
}
.composer:focus-within { border-color:rgb(19 122 189 / .55); }
textarea {
  display:block;
  flex:1;
  resize:none;
  width:100%;
  min-width:0;
  min-height:44px;
  max-height:160px;
  border:0;
  outline:0;
  padding:11px 0;
  background:transparent;
  color:var(--text);
  font-size:14px;
  line-height:1.6;
  field-sizing:content;
  scrollbar-width:thin;
}
textarea::placeholder { color:var(--text-3); }
textarea:disabled { opacity:.6; }
.composer-actions { display:flex; align-items:center; gap:10px; }
.reasoning-mode { max-width:85px; padding:7px 3px; border:0; background:transparent; color:var(--text-2); font:inherit; font-size:12px; cursor:pointer; }
.reasoning-mode:disabled { opacity:.5; cursor:default; }
.model-result { margin:12px 0 0; color:var(--text-3); font-size:11px; }
.character-count { color:var(--text-3); font-size:10px; font-variant-numeric:tabular-nums; }
.send { width:44px; height:44px; display:grid; place-items:center; flex-shrink:0; border:1px solid transparent; border-radius:50%; padding:0; color:#ffffff; background:var(--accent); transition:background .18s; }
.send:hover:enabled { background:#0f669e; }
.send:disabled { color:var(--text-4); border-color:var(--line); background:var(--tint); }
.send svg { width:20px; height:20px; }
.composer-disclaimer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:0 4px; margin:13px 0 0; color:var(--text-3); font-size:10px; line-height:1.7; }
.keyboard-hint { opacity:.8; }
.keyboard-hint > span { margin:0 5px; }

.messages { width:100%; max-width:820px; margin:0 auto; padding:40px 24px 28px; }
.message { display:flex; gap:14px; margin-bottom:36px; }
.message-avatar { position:relative; width:30px; height:30px; flex-shrink:0; display:grid; place-items:center; margin-top:1px; }
.message-avatar img { width:25px; height:24px; }
.logo-animation { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; }
.logo-animation svg { display:block; width:100%; height:100%; overflow:visible; }
.logo-animating > img { visibility:hidden; }
.message-content { min-width:0; flex:1; }
.message-author { font-size:11px; font-weight:500; color:var(--text-2); margin:6px 0 14px; }
.thinking-label { display:inline-flex; color:var(--accent); }
.thinking-dots { display:inline-block; width:1em; }
.thinking-dots::after { content:"..."; animation:thinking-dots 2s step-end infinite; }
@keyframes thinking-dots {
  0%,100% { content:"."; }
  25% { content:".."; }
  50% { content:"..."; }
  75% { content:""; }
}
.message-body { font-size:14px; line-height:1.85; overflow-wrap:anywhere; }
.message-body p { margin:0 0 12px; white-space:pre-wrap; }
.message-body p:last-child { margin-bottom:0; }
.message-body ul, .message-body ol { margin:10px 0; padding-left:20px; }
.message-body li > ul, .message-body li > ol { margin:4px 0; }
.message-body h3, .message-body h4, .message-body h5, .message-body h6 { font-family:var(--heading); font-weight:500; line-height:1.4; margin:18px 0 8px; }
.message-body h3 { font-size:17px; }
.message-body h4 { font-size:15px; }
.message-body h5, .message-body h6 { font-size:14px; }
.message-body hr { border:0; border-top:1px solid var(--line); margin:16px 0; }
.message-body pre { margin:10px 0; padding:12px 14px; overflow-x:auto; border-radius:8px; background:var(--tint); font-size:12px; line-height:1.6; }
.message-body pre code { padding:0; background:none; }
.table-scroll { max-width:100%; margin:12px 0; overflow-x:auto; border:1px solid var(--line); border-radius:8px; }
.message-body table { width:100%; border-collapse:collapse; font-size:13px; line-height:1.5; font-variant-numeric:tabular-nums; }
.message-body th, .message-body td { padding:8px 12px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.message-body th { background:var(--surface); font-weight:600; color:var(--text-2); }
.message-body tbody tr:last-child td { border-bottom:0; }
.message-body .align-center { text-align:center; }
.message-body .align-right { text-align:right; }
.message-body li { padding-left:3px; margin:5px 0; }
.message-body strong { font-weight:600; }
.message-body code { font-size:.9em; background:var(--tint); padding:2px 5px; border-radius:4px; }
.message.user { margin-left:44px; justify-content:flex-end; }
.message.user .message-avatar,.message.user .message-author { display:none; }
.message.user .message-content { flex:initial; max-width:94%; padding:13px 18px; border:1px solid var(--line); border-radius:18px 18px 5px 18px; background:var(--surface); }
.message[data-state=draft] .message-body { color:var(--text-2); }
.draft-label { display:block; margin-bottom:8px; color:var(--text-3); font-size:11px; }
.source-details { margin-top:18px; color:var(--text-2); font-size:11px; }
.source-details summary { display:flex; align-items:center; gap:7px; width:fit-content; min-height:32px; border-radius:5px; list-style:none; color:var(--accent); cursor:pointer; }
.source-details summary::-webkit-details-marker { display:none; }
.source-details summary::after { content:"+"; margin-left:3px; font-size:15px; }
.source-details[open] summary::after { content:"−"; }
.source-details summary svg { width:15px; height:15px; }
.source-list { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.source-chip { padding:8px 10px; border:1px solid var(--line); border-radius:9px; background:var(--surface); line-height:1.7; }
.answer-warning { margin-top:12px; padding:4px 12px; border-left:2px solid var(--line-strong); color:var(--text-2); font-size:12px; line-height:1.8; }
.answer-actions { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin-top:12px; color:var(--text-3); }
.icon-button.dislike svg { transform:rotate(180deg); }
.action-note { margin-left:6px; color:var(--text-2); font-size:11px; }
.banner { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-shrink:0; margin:0 24px 12px; padding:10px 14px; border:1px solid rgb(183 121 31 / .2); border-radius:12px; color:#865c20; background:#fffaf2; font-size:12px; line-height:1.7; }
.banner button { min-height:36px; padding:0 6px; border:0; border-radius:6px; background:transparent; color:var(--text); font-size:11px; white-space:nowrap; }
.banner button:hover { color:var(--accent); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

@media(max-width:600px) {
  .topbar { height:64px; padding:0 16px; }
  .topbar-left { gap:12px; }
  .topbar-right { gap:10px; }
  .brand { gap:9px; }
  .brand span { font-size:12px; }
  .brand img { width:21px; height:20px; }
  .connection { font-size:10px; gap:6px; }
  .welcome { padding:32px 20px; }
  .welcome-logo { width:56px; height:56px; margin-bottom:28px; }
  .eyebrow { font-size:8px; letter-spacing:.22em; }
  .welcome h1 { font-size:28px; letter-spacing:-1.2px; }
  .welcome-description { font-size:12px; max-width:270px; }
  .composer-area { padding:0 16px max(18px,env(safe-area-inset-bottom)); }
  .suggestions-carousel { margin-bottom:12px; }
  .suggestion { min-width:210px; min-height:42px; padding:10px 14px; }
  .carousel-controls .icon-button { width:40px; height:40px; }
  .composer { min-height:76px; padding:14px 13px 14px 18px; border-radius:22px; gap:10px; }
  textarea { font-size:16px; padding:9px 0; }
  .composer-actions { gap:5px; }
  .send { width:44px; height:44px; }
  .composer-disclaimer { justify-content:center; font-size:9px; margin-top:11px; }
  .keyboard-hint { display:none; }
  .messages { padding:28px 18px 16px; }
  .message { gap:11px; }
  .message-avatar { width:24px; }
  .message-avatar img { width:23px; height:22px; }
  .message-body { font-size:13px; }
  .message.user { margin-left:25px; }
  .message.user .message-content { max-width:100%; }
  .banner { margin:0 16px 8px; font-size:11px; }
}

@media(max-height:620px) {
  .welcome { padding-top:24px; padding-bottom:24px; }
  .welcome-logo { width:44px; height:44px; margin-bottom:18px; }
  .eyebrow { display:none; }
  .welcome h1 { font-size:26px; }
  .welcome-description { margin-top:10px; }
  .composer-area { padding-bottom:12px; }
}

@media(max-height:440px) {
  .topbar { height:56px; }
  .welcome { padding:16px 24px; }
  .welcome-logo,.welcome-description { display:none; }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Acceso y lectura de términos sobre el mismo fondo blanco. */
.access-page { min-height:100dvh; padding:40px 24px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:20px; }
.access-page .eyebrow { margin:8px 0 0; }
.access-page h1 { max-width:560px; margin:0; font-family:var(--heading); font-size:clamp(26px,4vw,36px); font-weight:450; letter-spacing:-1px; }
.access-page > p:not(.eyebrow) { max-width:470px; margin:0; font-size:13px; line-height:1.8; color:var(--text-2); }
.access-button { min-height:44px; padding:12px 20px; border:1px solid transparent; border-radius:12px; color:#fff; background:var(--accent); font-size:12px; line-height:1.5; text-decoration:none; }
.access-button:hover:enabled { background:#0f669e; }
.access-button:disabled { background:var(--surface-hover); color:var(--text-3); cursor:default; }
.text-button { min-height:44px; padding:10px 14px; border:0; border-radius:9px; background:transparent; color:var(--text-2); font-size:12px; }
.text-button:hover { background:var(--tint); }
.user-email { display:block; font-size:10px; color:var(--text-3); overflow-wrap:anywhere; }
.account-links { display:flex; flex-direction:column; align-items:flex-start; gap:4px; margin-top:18px; }
.account-links button { min-height:36px; border:0; border-radius:5px; padding:4px 0; color:var(--text-2); background:transparent; font-size:11px; text-align:left; }
.account-links button:hover { color:var(--accent); }
.terms-dialog { width:720px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); margin:auto; padding:0; color:var(--text); background:var(--bg); border:1px solid var(--line-strong); border-radius:18px; overflow:hidden; }
.terms-dialog[open] { display:flex; flex-direction:column; }
.terms-dialog::backdrop { background:rgb(23 36 91 / .16); }
.terms-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:20px 24px 16px; border-bottom:1px solid var(--line); flex-shrink:0; }
.terms-header h2 { margin:0; font-family:var(--heading); font-size:18px; font-weight:500; }
.terms-header p { margin:6px 0 0; font-size:10px; color:var(--text-3); }
.legal-content { min-height:80px; padding:8px 24px 20px; overflow:auto; font-size:12px; line-height:1.85; color:var(--text-2); }
.legal-content h1 { font-size:20px; line-height:1.5; color:var(--text); }
.legal-content h2 { font-size:15px; margin:24px 0 10px; color:var(--text); }
.legal-content h3 { font-size:13px; color:var(--text); }
.legal-content p { margin:10px 0; }
.legal-content blockquote { margin:14px 0; padding:0 14px; border-left:2px solid var(--line-strong); }
.legal-content table { width:100%; border-collapse:collapse; font-size:11px; text-align:left; }
.legal-content th,.legal-content td { padding:9px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.legal-content th { background:var(--surface); font-weight:500; }
.terms-actions { padding:18px 24px; border-top:1px solid var(--line); flex-shrink:0; }
.terms-acceptance { display:flex; align-items:flex-start; gap:10px; font-size:11px; line-height:1.7; color:var(--text-2); cursor:pointer; }
.terms-acceptance input { margin-top:3px; accent-color:var(--accent); flex-shrink:0; }
.terms-buttons { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:16px; }
.terms-error { margin:0; padding:8px 24px; font-size:11px; color:#865c20; }
@media(max-width:600px) {
  .terms-dialog { max-width:calc(100vw - 20px); max-height:calc(100dvh - 20px); }
  .terms-header,.terms-actions { padding:14px 16px; }
  .legal-content { padding:6px 16px 16px; }
  .terms-header h2 { font-size:16px; }
  .terms-acceptance { font-size:10px; }
}
.export-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.export-link { display:inline-flex; align-items:center; gap:8px; min-height:42px; max-width:100%; padding:9px 13px; border:1px solid var(--line-strong); border-radius:12px; color:var(--accent); background:var(--bg); font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.export-link:hover { border-color:var(--accent); background:var(--surface); }
.export-link svg { width:15px; height:15px; flex-shrink:0; transform:rotate(180deg); }
.chart { min-width: 0; margin: 24px 0; padding: 20px 0 12px; border-top: 1px solid var(--line, #e8edf0); }
.chart-caption { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.chart-note, .chart-unit { color: #6e7d87; font-size: 12px; }
.chart svg { display: block; width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.chart-grid { stroke: #edf1f4; stroke-width: 1; }
.chart-tick { fill: #74818c; font-size: 11px; font-family: inherit; }
.chart-line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart-inferred .chart-line { stroke-dasharray: 6 4; }
.chart-bar { fill: currentColor; }
.chart-inferred .chart-bar { fill-opacity: .45; stroke: currentColor; stroke-dasharray: 3 2; }
.chart-unit { margin: 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 12px 0; list-style: none; font-size: 12px; }
.chart-legend li { display: flex; align-items: center; gap: 7px; max-width: 100%; overflow-wrap: anywhere; }
.chart-swatch { display: inline-block; flex: 0 0 20px; width: 20px; border-top: 2px solid currentColor; }
.chart-inferred .chart-swatch { border-top-style: dashed; }
.series-0 { color: #176b9a; } .series-1 { color: #49a7b8; }
.series-2 { color: #334e8c; } .series-3 { color: #7c82bb; }
.series-4 { color: #246958; } .series-5 { color: #a47631; }
.series-6 { color: #7b587b; } .series-7 { color: #637484; }
.chart-data { margin-top: 14px; font-size: 12px; min-width: 0; }
.chart-data summary { cursor: pointer; color: #516a7c; width: fit-content; padding: 6px 0; }
.chart-data .table-wrap { max-width: 100%; overflow-x: auto; margin: 8px 0; }
.chart-data table { min-width: 100%; border-collapse: collapse; white-space: nowrap; }
.chart-data th, .chart-data td { padding: 7px 10px; text-align: left; border-bottom: 1px solid #edf1f4; font-weight: 400; }
.chart-data thead th { font-weight: 500; }
