/*
 * S500 AI Analyzer — estilos de la ficha de empresa (maqueta v0.1)
 * Este fichero se reutilizará tal cual en el plugin (wp_enqueue_style).
 * Todos los colores son tokens: modo claro en :root, modo oscuro más abajo.
 */
:root {
  color-scheme: light;
  --page: #f3f3f0;
  --surface: #fcfcfb;
  --surface-2: #f0efeb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #74726c;
  --grid: #e6e5df;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, .10);
  --border-strong: rgba(11, 11, 11, .18);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-1-est: #86b6ef;
  --buy: #0ca30c;
  --hold: #b9b7ae;
  --sell: #d03b3b;
  --up: #006300;
  --down: #d03b3b;
  --pill: #0b0b0b;
  --pill-ink: #fcfcfb;
  --focus: #2a78d6;
  --demo-bg: #fff4d6;
  --demo-ink: #5a4300;
  --demo-border: #efd58f;
  --agent-1: #2a78d6; --agent-2: #eb6834; --agent-3: #1baf7a; --agent-4: #eda100; --agent-5: #e87ba4; --agent-6: #008300; --agent-7: #6250d6; --agent-8: #e34948; --agent-9: #6b4f1d; --agent-10: #0f6f7a; --agent-11: #5b3fa0; --agent-12: #8e2f2f; --agent-13: #1f7a4d; --agent-14: #a3175a; --agent-15: #44566c; --agent-16: #b05a00;
  --gutter: 24px;
  --ai: #5546e0;
  --ai-ink: #ffffff;
  --ai-soft: rgba(85, 70, 224, .09);
  --ai-line: rgba(85, 70, 224, .28);
  --up-soft: rgba(0, 120, 0, .09);
  --down-soft: rgba(208, 59, 59, .09);
  --stage: #0d0e14;
  --stage-2: #171922;
  --stage-edge: transparent;
  --shadow: 0 1px 2px rgba(11, 11, 11, .04), 0 10px 28px -18px rgba(11, 11, 11, .22);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #252523;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #9a988f;
    --grid: #2c2c2a;
    --axis: #45443f;
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .18);
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-1-est: #1c5cab;
    --buy: #0ca30c;
    --hold: #6b6a65;
    --sell: #d03b3b;
    --up: #0ca30c;
    --down: #e66767;
    --pill: #f0efec;
    --pill-ink: #1a1a19;
    --focus: #3987e5;
    --demo-bg: #2b2410;
    --demo-ink: #f3d98b;
    --demo-border: #5a4a1a;
    --ai: #9a8cff;
    --ai-ink: #0d0e14;
    --ai-soft: rgba(154, 140, 255, .13);
    --ai-line: rgba(154, 140, 255, .34);
    --up-soft: rgba(12, 163, 12, .14);
    --down-soft: rgba(230, 103, 103, .14);
    --stage: #14151c;
    --stage-2: #1d1f2a;
    --stage-edge: rgba(255, 255, 255, .10);
    --shadow: none;
    --agent-1: #3987e5; --agent-2: #d95926; --agent-3: #199e70; --agent-4: #c98500; --agent-5: #d55181; --agent-6: #008300; --agent-7: #9085e9; --agent-8: #e66767; --agent-9: #8a6a2f; --agent-10: #1a8494; --agent-11: #7a5fc4; --agent-12: #a84a3a; --agent-13: #2f9160; --agent-14: #c22f6f; --agent-15: #5d7189; --agent-16: #c98400;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #252523;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --muted: #9a988f;
  --grid: #2c2c2a;
  --axis: #45443f;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-1-est: #1c5cab;
  --buy: #0ca30c;
  --hold: #6b6a65;
  --sell: #d03b3b;
  --up: #0ca30c;
  --down: #e66767;
  --pill: #f0efec;
  --pill-ink: #1a1a19;
  --focus: #3987e5;
  --demo-bg: #2b2410;
  --demo-ink: #f3d98b;
  --demo-border: #5a4a1a;
  --ai: #9a8cff;
  --ai-ink: #0d0e14;
  --ai-soft: rgba(154, 140, 255, .13);
  --ai-line: rgba(154, 140, 255, .34);
  --up-soft: rgba(12, 163, 12, .14);
  --down-soft: rgba(230, 103, 103, .14);
  --stage: #14151c;
  --stage-2: #1d1f2a;
  --stage-edge: rgba(255, 255, 255, .10);
  --shadow: none;
  --agent-1: #3987e5; --agent-2: #d95926; --agent-3: #199e70; --agent-4: #c98500; --agent-5: #d55181; --agent-6: #008300; --agent-7: #9085e9; --agent-8: #e66767; --agent-9: #8a6a2f; --agent-10: #1a8494; --agent-11: #7a5fc4; --agent-12: #a84a3a; --agent-13: #2f9160; --agent-14: #c22f6f; --agent-15: #5d7189; --agent-16: #c98400;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.s5-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s5-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Cabecera del sitio ---------- */
.s5-site { background: var(--surface); border-bottom: 1px solid var(--border); }
.s5-site-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.s5-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-decoration: none; flex: none; }
.s5-logo-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--ink); color: var(--surface); display: grid; place-items: center; }
.s5-mainnav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.s5-mainnav::-webkit-scrollbar { display: none; }
.s5-mainnav a { text-decoration: none; padding: 19px 0 17px; border-bottom: 2px solid transparent; white-space: nowrap; }
.s5-mainnav a:hover { color: var(--ink); }
.s5-mainnav a.on { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.s5-icon-btn { flex: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.s5-icon-btn:hover { background: var(--surface-2); }

/* ---------- Barra de maqueta ---------- */
.s5-demo { background: var(--demo-bg); color: var(--demo-ink); border-bottom: 1px solid var(--demo-border); font-size: 13px; }
.s5-demo .s5-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 8px; padding-bottom: 8px; }
.s5-demo strong { font-weight: 700; }
.s5-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s5-chip { border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; background: transparent; color: inherit; font: 600 12.5px var(--font); cursor: pointer; }
.s5-chip[aria-pressed="true"] { background: var(--demo-ink); color: var(--demo-bg); border-color: var(--demo-ink); }

/* ---------- Tarjetas ---------- */
.s5-crumbs { font-size: 13px; color: var(--ink-2); margin: 20px 0 12px; }
.s5-crumbs a { text-decoration: none; }
.s5-crumbs a:hover { text-decoration: underline; }
.s5-crumbs span { margin: 0 6px; color: var(--muted); }
.s5-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; margin: 0 0 24px; scroll-margin-top: 60px; box-shadow: var(--shadow); }
.s5-card h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 22px; }
.s5-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 22px; }
.s5-card-head h2 { margin: 0; }
.s5-h3 { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 14px; }
@media (max-width: 640px) {
  .s5-card { padding: 20px 16px; border-radius: 12px; margin-bottom: 16px; }
  .s5-card h2 { font-size: 19px; }
}

.s5-grid-3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.s5-grid-comp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1100px) { .s5-grid-comp { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); } }
@media (max-width: 1100px) {
  .s5-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .s5-grid-3 > .s5-insights { grid-column: 1 / -1; }
  .s5-grid-comp { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .s5-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---------- Cabecera de la empresa ---------- */
.s5-quote-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px 32px; }
.s5-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.s5-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }
.s5-quote h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; margin: 6px 0 2px; }
.s5-sector { color: var(--ink-2); font-size: 14px; }
.s5-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 20px 0 6px; }
.s5-price { font-size: 48px; font-weight: 650; letter-spacing: -.025em; line-height: 1; }
.s5-price-delta { font-size: 17px; font-weight: 600; }
.s5-asof { font-size: 13px; color: var(--ink-2); margin: 0 0 22px; }
.s5-target { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; min-width: 250px; }
.s5-target-k { font-size: 12.5px; color: var(--ink-2); }
.s5-target-v { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; margin: 2px 0 6px; }
.s5-target-v i { width: 10px; height: 10px; border-radius: 50%; }
.s5-target-sub { font-size: 13.5px; color: var(--ink-2); }
.s5-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border); }
.s5-stat { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.s5-stat dt { font-size: 12.5px; color: var(--ink-2); }
.s5-stat dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .s5-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .s5-quote h1 { font-size: 24px; }
  .s5-price { font-size: 40px; }
  .s5-target { width: 100%; }
}

/* ---------- Navegación de secciones ---------- */
.s5-tabs { position: sticky; top: 0; z-index: 10; margin: 0 calc(var(--gutter) * -1) 20px; padding: 0 var(--gutter); background: var(--page); border-bottom: 1px solid var(--border); }
.s5-tabs-in { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.s5-tabs-in::-webkit-scrollbar { display: none; }
.s5-tabs a { white-space: nowrap; text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 13px 0 11px; border-bottom: 2px solid transparent; }
.s5-tabs a:hover { color: var(--ink); }
.s5-tabs a.on { color: var(--ink); font-weight: 600; border-color: var(--ink); }

/* ---------- Texto IA ---------- */
.s5-ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.s5-prose { font-size: 15px; line-height: 1.62; }
.s5-prose p { margin: 0 0 12px; }
.s5-prose p:last-child { margin-bottom: 0; }
.s5-lead { font-size: 16.5px; line-height: 1.6; }
.s5-summary { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .s5-summary { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.s5-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.s5-keys li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14.5px; line-height: 1.45; }
.s5-keys .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--pill); color: var(--pill-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }

/* Panel lateral «Análisis IA / Glosario» */
.s5-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.s5-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 14px; font: 600 13.5px var(--font); cursor: pointer; }
.s5-pill[aria-selected="true"] { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
.s5-clamp { position: relative; max-height: 330px; overflow: hidden; }
.s5-clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(0, 0, 0, 0), var(--surface)); pointer-events: none; }
.s5-clamp.open { max-height: none; }
.s5-clamp.open::after, .s5-clamp.fits::after { display: none; }
.s5-more { background: none; border: 0; padding: 0; margin-top: 8px; font: 600 13px var(--font); color: var(--ink); text-decoration: underline; cursor: pointer; }
.s5-ai-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.s5-gloss { margin: 0; }
.s5-gloss dt { font-weight: 650; font-size: 14px; }
.s5-gloss dd { margin: 2px 0 12px; color: var(--ink-2); font-size: 14px; }

/* ---------- Tablas ---------- */
.s5-kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.s5-kv th { font-size: 13px; font-weight: 600; text-align: right; padding: 0 0 8px 12px; white-space: nowrap; }
.s5-kv th:first-child { text-align: left; padding-left: 0; }
.s5-kv td { padding: 9px 0; vertical-align: top; }
.s5-kv td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.s5-kv .sub { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 400; }
.s5-kv.lined td { border-bottom: 1px solid var(--border); }
.s5-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; flex: none; }
.s5-note { font-size: 12.5px; color: var(--ink-2); margin: 12px 0 0; }

.s5-d { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s5-d.good { color: var(--up); }
.s5-d.bad { color: var(--down); }
.s5-d.flat { color: var(--ink-2); }
.s5-d.na { color: var(--muted); font-weight: 500; }
.s5-arr { width: 9px; height: 9px; margin-left: 4px; vertical-align: 0; }

.s5-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.s5-comp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.s5-comp th { font-size: 13px; font-weight: 600; text-align: right; padding: 8px 8px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; vertical-align: bottom; }
.s5-comp td { padding: 12px 8px; text-align: right; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s5-comp td .sub { display: block; font-size: 12px; color: var(--ink-2); font-weight: 400; }
.s5-comp th:nth-child(-n+2), .s5-comp td:nth-child(-n+2) { text-align: left; }
.s5-comp td:nth-child(2) { white-space: normal; min-width: 150px; }
.s5-comp tr.self td { background: var(--surface-2); font-weight: 600; }
.s5-comp a { font-weight: 600; }
.s5-comp th .s5-sort { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.s5-comp th .s5-sort:hover { color: var(--ink); text-decoration: underline; }
.s5-comp th .s5-sort:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.s5-sort-arrow { font-size: 9px; line-height: 1; color: var(--muted); }
.s5-sort-arrow::before { content: "↕"; }
.s5-comp th[aria-sort="ascending"] .s5-sort-arrow::before { content: "↑"; color: var(--ink); }
.s5-comp th[aria-sort="descending"] .s5-sort-arrow::before { content: "↓"; color: var(--ink); }
.s5-range { display: inline-block; width: 110px; font-size: 11.5px; text-align: left; vertical-align: middle; }
.s5-range-lbl { display: flex; justify-content: space-between; color: var(--ink-2); }
.s5-range-track { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); margin-top: 4px; }
.s5-range-track i { position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--surface); }

.s5-tv { width: 100%; border-collapse: collapse; font-size: 13px; }
.s5-tv caption { text-align: left; font-weight: 600; padding: 8px 0 4px; }
.s5-tv th, .s5-tv td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; }
.s5-tv th:first-child, .s5-tv td:first-child { text-align: left; padding-left: 0; }
.s5-tv-wrap { max-height: 300px; overflow: auto; }

/* ---------- Gráficos ---------- */
.s5-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.s5-link { background: none; border: 0; padding: 0; color: var(--ink-2); font: 500 12.5px var(--font); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.s5-link:hover { color: var(--ink); }
.s5-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin: -4px 0 10px; }
.s5-li { display: inline-flex; align-items: center; gap: 0; }
.s5-li svg { margin-right: 8px; }
.s5-chart { position: relative; min-height: 120px; }
.s5-chart svg { display: block; overflow: visible; }
.s5-grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.s5-axis { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.s5-tick { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.s5-vlabel { fill: var(--ink); font-size: 12px; font-weight: 600; }
.s5-wash { fill: var(--ink); opacity: .05; }
.s5-hit { fill: transparent; cursor: crosshair; outline: none; }
.s5-hit:focus-visible { stroke: var(--focus); stroke-width: 2; }
.s5-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.s5-area { fill: var(--series-1); opacity: .08; }
.s5-proj { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0 6; }
.s5-cross { stroke: var(--ink-2); stroke-width: 1; shape-rendering: crispEdges; }
.s5-now { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.s5-hover-dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.s5-callout { fill: var(--surface); stroke: var(--border-strong); }
.s5-callout-k { fill: var(--ink); font-size: 12px; font-weight: 700; }
.s5-callout-v { fill: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.s5-tlabel { fill: var(--ink); font-size: 12px; font-weight: 700; }
.s5-tvalue { fill: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.s5-tdelta { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.s5-tdelta.good { fill: var(--up); }
.s5-tdelta.bad { fill: var(--down); }
.s5-seg { cursor: pointer; transition: opacity .15s; outline: none; }
.s5-seg.dim { opacity: .35; }
.s5-donut-n { fill: var(--ink); font-size: 30px; font-weight: 700; }
.s5-donut-k { fill: var(--ink-2); font-size: 13px; }

.s5-tip { position: absolute; z-index: 5; display: none; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); white-space: nowrap; }
.s5-tip strong { display: block; margin-bottom: 2px; }
.s5-tip-row { display: flex; align-items: center; gap: 8px; }
.s5-tip-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.s5-tip-row b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }

/* Valoraciones */
.s5-rating-legend { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px 16px; font-size: 14.5px; margin-bottom: 18px; }
.s5-rating-legend span { display: inline-flex; align-items: center; }
.s5-rating-legend b { font-weight: 400; color: var(--ink-2); margin-left: 10px; font-variant-numeric: tabular-nums; }
.s5-donut { position: relative; width: 220px; margin: 0 auto; }
.s5-consensus-line { text-align: center; margin: 16px 0 0; font-size: 14.5px; color: var(--ink-2); }
.s5-consensus-line strong { color: var(--ink); }

/* ---------- Riesgos y conclusión ---------- */
.s5-rc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; }
@media (max-width: 760px) { .s5-rc { grid-template-columns: minmax(0, 1fr); } }
.s5-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.s5-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.s5-list svg { flex: none; margin-top: 3px; }
.s5-list.risk svg { color: var(--down); }
.s5-list.cat svg { color: var(--up); }
.s5-conclusion { margin-top: 28px; padding: 20px 22px; border-radius: 10px; background: var(--surface-2); }
.s5-gen { font-size: 13px; color: var(--ink-2); margin: 20px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.s5-gen svg { flex: none; margin-top: 3px; }
.s5-disclaimer { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }

/* ---------- Pie ---------- */
.s5-foot { padding: 12px var(--gutter) 48px; color: var(--ink-2); font-size: 13px; }
.s5-foot p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .s5-seg { transition: none; }
}

/* ---------- Huecos de publicidad (AdSense) ---------- */
/* Alto reservado para que el anuncio no desplace el contenido (CLS = 0). */
.s5-ad { display: grid; place-items: center; margin: 0 0 24px; border: 1px dashed var(--border-strong); border-radius: 10px; background: repeating-linear-gradient(45deg, transparent 0 10px, var(--surface-2) 10px 11px); color: var(--muted); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.s5-ad-wide { min-height: 120px; }
@media (max-width: 640px) { .s5-ad-wide { min-height: 280px; } }
.s5-asof-inline { font-size: 13px; font-weight: 400; color: var(--ink-2); }

/* ===================== Web (además de la maqueta) ===================== */
.s5-skip:focus { position: fixed; left: 8px; top: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
.s5-site-in { gap: 20px; }
.s5-mainnav { flex: 0 1 auto; }

/* Buscador con autocompletado */
.s5-search { position: relative; margin-left: auto; flex: 0 1 300px; min-width: 0; }
.s5-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--page); color: var(--ink); font: 14px var(--font); }
.s5-search input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.s5-search-ico { position: absolute; left: 10px; top: 10px; color: var(--muted); pointer-events: none; }
.s5-sugg { position: absolute; top: 44px; left: 0; right: 0; min-width: 280px; z-index: 30; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); }
.s5-sugg li a { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 10px; border-radius: 6px; text-decoration: none; }
.s5-sugg li a strong { font-size: 14px; }
.s5-sugg li a small { grid-column: 1; color: var(--ink-2); font-size: 12px; }
.s5-sugg li a .p { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.s5-sugg li[aria-selected="true"] a, .s5-sugg li a:hover { background: var(--surface-2); }
.s5-sugg .s5-sugg-empty { padding: 10px; color: var(--ink-2); font-size: 13px; }
@media (max-width: 760px) {
  .s5-site-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 16px; }
  .s5-mainnav { order: 3; flex: 1 0 100%; }
  .s5-mainnav a { padding: 8px 0 6px; }
  .s5-search { order: 2; flex: 1 1 auto; margin-left: 0; }
  .s5-logo { order: 1; }
  #s5-theme { order: 2; }
}
.s5-search-big { display: flex; gap: 8px; margin: 0 0 20px; max-width: 520px; }
.s5-search-big input { flex: 1; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--page); color: var(--ink); font: 15px var(--font); }
.s5-search-big button { width: 44px; border-radius: 8px; border: 0; background: var(--pill); color: var(--pill-ink); cursor: pointer; display: grid; place-items: center; }

/* Textos y estados */
.s5-h1 { font-size: 26px; line-height: 1.25; letter-spacing: -.015em; margin: 0; }
.s5-intro { color: var(--ink-2); margin: 0 0 20px; max-width: 760px; }
.s5-empty { color: var(--ink-2); margin: 0; }
.s5-sector a { color: inherit; }
.s5-pending { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 14px; margin: 0 0 24px; }
.s5-demo-note { background: var(--demo-bg); color: var(--demo-ink); border: 1px solid var(--demo-border); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 0 0 12px; }
.s5-plain { text-decoration: none; font-weight: 400 !important; }
.s5-plain:hover { text-decoration: underline; }

/* Listados */
.s5-list-table { min-width: 720px; }
.s5-list-table.compact { min-width: 0; }
.s5-co { display: flex; flex-direction: column; text-decoration: none; }
.s5-co strong { font-weight: 600; }
.s5-co:hover strong { text-decoration: underline; }
.s5-co span { font-size: 12px; color: var(--ink-2); }
.s5-cons { display: inline-flex; align-items: center; }

/* Portada */
.s5-hero { padding: 36px 0 28px; }
.s5-hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 10px; max-width: 760px; }
.s5-hero p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 24px; max-width: 720px; }
.s5-market-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.s5-market-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.s5-market-card:hover { border-color: var(--border-strong); }
.s5-market-card strong { font-size: 18px; }
.s5-market-card span { color: var(--ink-2); font-size: 13.5px; }
.s5-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) {
  .s5-hero h1 { font-size: 26px; }
  .s5-market-cards, .s5-home-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .s5-home-grid { gap: 0; }
}

/* Enlazado interno */
.s5-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 40px; }
.s5-links h2 a { text-decoration: none; }
.s5-links h2 a:hover { text-decoration: underline; }
.s5-linklist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.s5-linklist a { display: inline-block; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; text-decoration: none; }
.s5-linklist a:hover { border-color: var(--border-strong); background: var(--surface-2); }

/* Pie */
.s5-foot { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0 40px; margin-top: 16px; }
.s5-foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 40px; padding-bottom: 20px; }
.s5-foot-h { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 10px; }
.s5-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.s5-foot-cols { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.s5-foot a { text-decoration: none; }
.s5-foot a:hover { text-decoration: underline; }
.s5-foot-legal { border-top: 1px solid var(--border); padding-top: 16px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .s5-foot-grid { grid-template-columns: 1fr; } }
.s5-error { text-align: center; padding: 64px 24px; }

/* ===================== Foro de agentes IA ===================== */
.s5-mt { margin-top: 24px; }
.s5-avatar { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--av); color: #fff; font-weight: 700; font-size: 15px; }
.s5-avatar[style*="--agent-4"] { color: #0b0b0b; }
.s5-avatar i { position: absolute; right: -7px; bottom: -4px; font-style: normal; font-size: 8px; line-height: 1.3; font-weight: 800; letter-spacing: .02em; padding: 1px 4px; border-radius: 6px; background: var(--pill); color: var(--pill-ink); box-shadow: 0 0 0 2px var(--surface); }
.s5-ai-chip { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.s5-forum-notice { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--demo-ink); background: var(--demo-bg); border: 1px solid var(--demo-border); border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.s5-forum-notice svg { flex: none; margin-top: 2px; }
.s5-forum-hero .s5-intro { font-size: 16px; }
.s5-posts { display: grid; gap: 12px; }
.s5-post { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--surface); scroll-margin-top: 70px; }
.s5-post:target { border-color: var(--focus); }
.s5-post-head { display: flex; align-items: center; gap: 12px; }
.s5-post-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; flex: 1; }
.s5-post-who a { text-decoration: none; }
.s5-post-who a:hover { text-decoration: underline; }
.s5-post-date { font-size: 12.5px; color: var(--muted); }
.s5-stance { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; }
.s5-stance.good { color: var(--up); }
.s5-stance.bad { color: var(--down); }
.s5-stance.flat { color: var(--ink-2); }
.s5-post-ctx { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; }
.s5-post-body { margin-top: 10px; font-size: 15px; line-height: 1.6; }
.s5-post-body p { margin: 0 0 10px; }
.s5-post-body p:last-child { margin: 0; }
.s5-post-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.s5-trade { font-weight: 700; font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }
.s5-trade.buy { color: var(--up); }
.s5-trade.sell { color: var(--down); }
.s5-readonly { text-align: center; color: var(--muted); font-size: 13px; margin: 20px 0 0; }
.s5-forum-thread { padding: 4px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.s5-forum-thread:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.s5-forum-thread h3 a { text-decoration: none; }
.s5-forum-thread h3 a:hover { text-decoration: underline; }
.s5-forum-thread > .s5-link { display: inline-block; margin-top: 10px; }
.s5-thread-n { font-size: 12.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.s5-threads { list-style: none; margin: 0; padding: 0; }
.s5-threads li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.s5-threads li:last-child { border-bottom: 0; }
.s5-threads li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s5-thread-title { font-weight: 600; text-decoration: none; }
.s5-thread-title:hover { text-decoration: underline; }
.s5-threads small { color: var(--ink-2); font-size: 12.5px; }
.s5-board td:nth-child(2) { white-space: normal; min-width: 260px; }
.s5-board code, .s5-comp code { font-size: 12px; }
.s5-agent-cell { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.s5-agent-cell span { display: flex; flex-direction: column; }
.s5-agent-cell small { font-size: 12px; color: var(--ink-2); font-weight: 400; }
.s5-agent-cell:hover strong { text-decoration: underline; }
.s5-agent-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.s5-agent-head > div:nth-child(2) { flex: 1; min-width: 220px; }
.s5-agent-head .s5-sector { margin-top: 6px; }
.s5-persona { margin: 0; padding: 14px 18px; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.s5-wrap-cell { white-space: normal !important; min-width: 220px; text-align: left !important; }
.s5-page h2 { font-size: 18px; margin: 28px 0 10px; }
.s5-page ul { padding-left: 20px; }
.s5-page li { margin-bottom: 6px; }
.s5-page { max-width: 860px; }
.s5-todo { background: var(--demo-bg); color: var(--demo-ink); border: 1px solid var(--demo-border); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }

/* Foro: opinión + respuestas anidadas */
.s5-feed { display: grid; gap: 28px; }
.s5-op-head { margin: 0 0 10px; }
.s5-op-company { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; }
.s5-op-company span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.s5-op-title { font-size: 18px; line-height: 1.3; margin: 4px 0 0; }
.s5-op-title a { color: var(--ink); text-decoration: none; }
.s5-op-title a:hover { text-decoration: underline; }
.s5-replies { display: grid; gap: 10px; margin: 10px 0 0 22px; padding-left: 16px; border-left: 2px solid var(--border-strong); }
.s5-replies-more { font-size: 13.5px; }
.s5-post.is-reply { background: var(--surface-2); }
.s5-post-reply { margin: 8px 0 0; font-size: 13px; }
.s5-post-reply a { color: var(--ink-2); text-decoration: none; }
.s5-post-reply a:hover { text-decoration: underline; }
.s5-trade.none { color: var(--ink-2); border: 1px solid var(--border-strong); background: transparent; font-weight: 600; }
@media (max-width: 600px) { .s5-replies { margin-left: 6px; padding-left: 10px; } }


/* =====================================================================
   Rediseño «IA primero»: cabecera, cinta de actividad, portada, foro,
   clasificación, decisiones y perfiles de agente. Pensado primero para móvil.
   ===================================================================== */
body { font-size: 15.5px; }
.s5-mt-s { margin-top: 12px; }
.s5-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.s5-card-head > div > h2 { margin: 0; }
.s5-model, .s5-kpis dd, .s5-pod-ret, .s5-rank .c-n { font-family: var(--mono); }
.s5-more-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--ai); text-decoration: none; white-space: nowrap; }
.s5-more-link:hover { text-decoration: underline; }
.s5-tagline { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }

/* Punto «en directo» */
.s5-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #35d06a; box-shadow: 0 0 0 0 rgba(53, 208, 106, .6); animation: s5-pulse 2s infinite; flex: none; }
@keyframes s5-pulse { 70% { box-shadow: 0 0 0 7px rgba(53, 208, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 208, 106, 0); } }

/* Cabecera */
.s5-logo-mark { background: linear-gradient(135deg, var(--ai), #1b1642); color: #fff; }
.s5-mainnav { align-items: center; }
.s5-mainnav .s5-nav-ai { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--ink); }
.s5-nav-sep { width: 1px; height: 18px; background: var(--border-strong); flex: none; }

/* Cinta de actividad */
.s5-tape { display: flex; align-items: stretch; height: 36px; background: var(--stage); color: #f3f2ee; border-bottom: 1px solid var(--stage-edge); font-size: 12.5px; overflow: hidden; }
.s5-tape-tag { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px 0 var(--gutter); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; text-decoration: none; white-space: nowrap; background: var(--stage); position: relative; z-index: 1; box-shadow: 10px 0 12px -4px var(--stage); }
.s5-tape-view { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; display: flex; }
.s5-tape-view::-webkit-scrollbar { display: none; }
.s5-tape-track { display: flex; align-items: center; flex: none; }
.s5-tape-track.run { animation: s5-tape calc(var(--n, 10) * 7s) linear infinite; }
.s5-tape:hover .s5-tape-track.run, .s5-tape:focus-within .s5-tape-track.run { animation-play-state: paused; }
@keyframes s5-tape { to { transform: translateX(-50%); } }
.s5-tape-item { display: inline-flex; align-items: center; gap: 5px; padding: 0 18px; white-space: nowrap; text-decoration: none; color: #c9c8d2; border-right: 1px solid rgba(255, 255, 255, .08); height: 100%; }
.s5-tape-item:hover { color: #fff; }
.s5-tape-item b { color: #f3f2ee; font-weight: 600; }
.s5-tape-item time { color: #84838f; margin-left: 4px; }
.s5-v { font-weight: 700; }
.s5-v.buy { color: var(--up); }
.s5-v.sell { color: var(--down); }
.s5-v.flat { color: var(--ink-2); }
.s5-tape .s5-v.buy, .s5-stage .s5-v.buy { color: #4ad66d; }
.s5-tape .s5-v.sell, .s5-stage .s5-v.sell { color: #ff8585; }
.s5-tape .s5-v.flat, .s5-stage .s5-v.flat { color: #b6b5c0; }

/* Escenario oscuro (portada, foro y perfil): oscuro también en modo claro */
.s5-stage {
  --ink: #f3f2ee; --ink-2: #b6b5c0; --muted: #84838f; --surface: var(--stage-2); --surface-2: #232633;
  --border: rgba(255, 255, 255, .09); --border-strong: rgba(255, 255, 255, .18); --up: #4ad66d; --down: #ff8585;
  --pill: #f3f2ee; --pill-ink: #0d0e14; --ai: #a99dff;
  position: relative; overflow: hidden; color: var(--ink); border: 1px solid var(--stage-edge); border-radius: 18px; margin: 20px 0 24px; padding: 40px;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(110, 92, 255, .30), transparent 62%),
    radial-gradient(600px 320px at -5% 110%, rgba(53, 208, 106, .12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--stage);
}
.s5-crumbs + .s5-stage { margin-top: 0; }
.s5-stage h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; text-wrap: balance; }
.s5-hero-p { color: var(--ink-2); font-size: 17px; line-height: 1.55; margin: 0; max-width: 60ch; }
.s5-eyebrow-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ai); }
.s5-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.s5-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.s5-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--ink); font: 600 15px var(--font); text-decoration: none; cursor: pointer; }
.s5-btn:hover { background: var(--surface-2); }
.s5-btn.primary { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
.s5-btn.primary:hover { opacity: .9; }
.s5-btn.ghost { width: 100%; margin-top: 14px; }
.s5-kpis { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--border); }
.s5-kpis div { min-width: 0; }
.s5-kpis dd { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.s5-kpis dd .s5-d { font-weight: 650; }
.s5-kpis dt { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }

/* Lista «Qué están haciendo» */
.s5-term { background: rgba(10, 11, 16, .72); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; backdrop-filter: blur(6px); }
.s5-term-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.s5-term-head > span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.s5-next { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.s5-next b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.s5-pulses { list-style: none; margin: 0; padding: 4px 0; }
.s5-pulse { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.s5-pulse + .s5-pulse { border-top: 1px solid var(--border); }
.s5-pulse-main { display: flex; flex-direction: column; min-width: 0; text-decoration: none; flex: 1; }
.s5-pulse-line { font-size: 14px; line-height: 1.35; }
.s5-pulse-line b { font-weight: 600; }
.s5-pulse-main:hover .s5-pulse-line { text-decoration: underline; }
.s5-pulse-sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Rejillas de dos columnas */
.s5-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.s5-split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.s5-split > .s5-card:only-child { grid-column: 1 / -1; }
.s5-stack { display: grid; gap: 24px; min-width: 0; }
.s5-stack > .s5-card, .s5-split > .s5-card { margin-bottom: 0; }
.s5-split { margin-bottom: 24px; }
.s5-sechead { margin: 36px 0 16px; }
.s5-sechead h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; }
.s5-sechead p { margin: 0; color: var(--ink-2); max-width: 70ch; }

/* Avatares */
.s5-avatar { border-radius: 30%; background: linear-gradient(145deg, color-mix(in srgb, var(--av) 82%, #fff), var(--av) 55%, color-mix(in srgb, var(--av) 70%, #000)); letter-spacing: -.02em; line-height: 1; }
.s5-avatar i { right: -6px; bottom: -4px; }

/* Decisiones (compras y ventas con su motivo) */
.s5-decs { display: grid; gap: 12px; }
.s5-decs.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.s5-dec { border: 1px solid var(--border); border-left: 3px solid var(--up); border-radius: 10px; padding: 12px 14px; background: var(--surface); min-width: 0; }
.s5-dec.sell { border-left-color: var(--down); }
.s5-dec-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14.5px; }
.s5-dec-who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.s5-dec-who:hover b, .s5-dec-what a:hover { text-decoration: underline; }
.s5-dec-what a { text-decoration: none; }
.s5-dec-what small { color: var(--muted); font-size: 12px; }
.s5-dec-when { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.s5-verb { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }
.s5-verb.buy { background: var(--up-soft); color: var(--up); }
.s5-verb.sell { background: var(--down-soft); color: var(--down); }
.s5-dec-why { margin: 10px 0; padding: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.s5-dec-why::before { content: "«"; color: var(--muted); }
.s5-dec-why::after { content: "»"; color: var(--muted); }
.s5-dec-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.s5-dec-nums b { color: var(--ink); }
.s5-dec-nums .s5-more-link { margin-left: auto; font-size: 12.5px; }

/* Podio */
.s5-podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.s5-pod a { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "rank av id ret" "rank av foot foot"; align-items: center; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; }
.s5-pod a:hover { border-color: var(--ai-line); background: var(--ai-soft); }
.s5-pod.p1 a { border-color: var(--ai-line); background: var(--ai-soft); }
.s5-pod-rank { grid-area: rank; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); background: var(--surface-2); color: var(--ink-2); }
.s5-pod.p1 .s5-pod-rank { background: var(--ai); color: var(--ai-ink); }
.s5-pod .s5-avatar { grid-area: av; }
.s5-pod-id { grid-area: id; display: flex; flex-direction: column; min-width: 0; }
.s5-pod-id strong { font-size: 15px; }
.s5-pod-id small { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s5-pod-ret { grid-area: ret; font-size: 17px; }
.s5-pod-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.s5-card > .s5-podium + .s5-rank { margin-top: 20px; }
#clasificacion .s5-podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s5-spark { flex: none; overflow: visible; }
.s5-spark polyline { fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.s5-spark.good polyline { stroke: var(--up); }
.s5-spark.bad polyline { stroke: var(--down); }
.s5-spark line { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }

/* Barra de posturas y ánimo */
.s5-sbar { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); width: 100%; }
.s5-sbar i { display: block; min-width: 4px; }
.s5-sbar .b, .s5-mood-legend .b { background: var(--buy); }
.s5-sbar .n, .s5-mood-legend .n { background: var(--hold); }
.s5-sbar .r, .s5-mood-legend .r { background: var(--sell); }
.s5-mood-lead { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; }
.s5-mood-lead.bullish { color: var(--up); }
.s5-mood-lead.bearish { color: var(--down); }
.s5-mood-k { font-size: 12.5px; color: var(--ink-2); margin: 16px 0 6px; }
.s5-mood-lead + .s5-mood-k { margin-top: 0; }
.s5-mood .s5-sbar { height: 14px; }
.s5-mood-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); }
.s5-mood-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.s5-mood-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Así razonan */
.s5-thoughts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.s5-thought { display: flex; flex-direction: column; border: 1px solid var(--border); border-top: 3px solid var(--hold); border-radius: 12px; padding: 16px; min-width: 0; }
.s5-thought.st-good { border-top-color: var(--buy); }
.s5-thought.st-bad { border-top-color: var(--sell); }
.s5-thought .s5-op-company, .s5-debate .s5-op-company { margin: 0; }
.s5-thought .s5-op-title { font-size: 17px; }
.s5-thought-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.s5-thought-who a { text-decoration: none; }
.s5-thought-who a:hover { text-decoration: underline; }
.s5-thought-body { margin: 10px 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.s5-thought footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; color: var(--muted); }
.s5-thought-n { display: inline-flex; align-items: center; gap: 5px; }
.s5-thought footer .s5-more-link { flex-basis: 100%; }

/* Debate */
.s5-versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; margin: 16px 0; }
.s5-vs { align-self: center; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--mono); text-transform: uppercase; background: var(--pill); color: var(--pill-ink); }
.s5-side { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; background: var(--surface-2); min-width: 0; }
.s5-side:hover { border-color: var(--border-strong); }
.s5-side.st-good { background: var(--up-soft); }
.s5-side.st-bad { background: var(--down-soft); }
.s5-side-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.s5-side-body { font-size: 14px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* De qué hablan */
.s5-hot { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.s5-hot a { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; height: 100%; }
.s5-hot a:hover { border-color: var(--border-strong); background: var(--surface-2); }
.s5-hot-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.s5-hot-top strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s5-hot-top .s5-d { font-size: 12.5px; }
.s5-hot-meta { font-size: 12px; color: var(--ink-2); }
.s5-hot-meta b { color: var(--ink); font-weight: 600; }

/* Clasificación en filas (sin tabla) */
.s5-rank { --cols: 28px minmax(0, 1fr) 72px 104px 92px 64px 64px; }
.s5-rank-head, .s5-rank-row a { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 12px; }
.s5-rank-head { padding: 0 8px 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--border-strong); }
.s5-rank-head span:nth-child(n+4), .s5-rank-row .c-ret, .s5-rank-row .c-eq, .s5-rank-row .c-inv, .s5-rank-row .c-ops { text-align: right; font-variant-numeric: tabular-nums; }
.s5-rank-list { list-style: none; margin: 0; padding: 0; }
.s5-rank-row a { padding: 10px 8px; border-bottom: 1px solid var(--border); text-decoration: none; font-size: 14px; }
.s5-rank-row a:hover { background: var(--surface-2); }
.s5-rank-row .c-n { font-size: 13px; color: var(--muted); }
.s5-rank-row .c-agent { display: flex; align-items: center; gap: 10px; min-width: 0; }
.s5-rank-row .c-agent > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.s5-rank-row .c-agent small { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s5-rank-row .c-ret { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.s5-retbar { display: block; height: 3px; width: var(--w); min-width: 2px; border-radius: 2px; background: var(--up); }
.s5-retbar.bad { background: var(--down); }
.s5-rank-row.idle .c-eq, .s5-rank-row.idle .c-inv, .s5-rank-row.idle .c-ops { color: var(--muted); }
.s5-rank.is-collapsed .s5-rank-row.x { display: none; }
.s5-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 18px; }
.s5-toolbar .s5-pills { margin: 0; }
.s5-input { flex: 1 1 220px; max-width: 320px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--page); color: var(--ink); font: 15px var(--font); }
.s5-pill[aria-pressed="true"] { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
.s5-card-head .s5-pills { margin: 0; }

/* Mensajes */
.s5-forum-notice { color: var(--ink-2); background: var(--ai-soft); border-color: var(--ai-line); }
.s5-forum-notice svg { color: var(--ai); }
.s5-post { border-left: 3px solid var(--hold); border-radius: 12px; }
.s5-post.st-good { border-left-color: var(--buy); }
.s5-post.st-bad { border-left-color: var(--sell); }
.s5-post-who { flex-direction: column; align-items: flex-start; gap: 0; }
.s5-post-meta { font-size: 12.5px; color: var(--muted); }
.s5-model { font-size: 11.5px; }
.s5-stance { border: 0; padding: 4px 10px; }
.s5-stance.good { background: var(--up-soft); }
.s5-stance.bad { background: var(--down-soft); }
.s5-stance.flat { background: var(--surface-2); }
.s5-post.is-reply .s5-stance.flat { background: var(--surface); }
.s5-fold { max-height: 11.2em; overflow: hidden; position: relative; }
.s5-fold.is-long::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3.2em; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.s5-post.is-reply .s5-fold.is-long::after { background: linear-gradient(transparent, var(--surface-2)); }
.s5-fold.open { max-height: none; }
.s5-fold.open::after { display: none; }
.s5-fold-btn { background: none; border: 0; padding: 6px 0 0; font: 600 13px var(--font); color: var(--ai); cursor: pointer; }
.s5-fold-btn:hover { text-decoration: underline; }
.s5-trade.buy { background: var(--up-soft); }
.s5-trade.sell { background: var(--down-soft); }
.s5-verdict { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.s5-verdict.hit { color: var(--up); background: var(--up-soft); }
.s5-verdict.miss { color: var(--down); background: var(--down-soft); }
.s5-op[hidden], .s5-dec[hidden] { display: none; }

/* Perfil de agente */
.s5-agent-id { display: flex; align-items: center; gap: 20px; }
.s5-agent-id .s5-eyebrow-ai { margin-bottom: 8px; }
.s5-agent-hero h1 { margin-bottom: 8px; }
.s5-prompt h2 { display: flex; align-items: center; gap: 8px; }
.s5-prompt-body { margin: 0; padding: 16px 18px; border-radius: 10px; background: var(--stage); color: #dcdbe6; font: 13.5px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--stage-edge); }
.s5-prompt-body::before { content: "system ▸ "; color: #a99dff; font-weight: 700; }
.s5-acc-ret { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.s5-alloc { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; }
.s5-alloc i { display: block; background: var(--c); min-width: 3px; }
.s5-alloc i.cash { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.s5-pos .s5-co strong { display: flex; align-items: center; }
.s5-comp.s5-pos td:nth-child(2) { white-space: nowrap; min-width: 0; text-align: right; }
.s5-comp.s5-pos th:nth-child(2) { text-align: right; }

/* Ficha de empresa: qué opinan las IA */
.s5-side-boxes { display: grid; gap: 12px; min-width: 250px; }
.s5-ai-box { display: grid; gap: 8px; text-decoration: none; border-color: var(--ai-line); background: var(--ai-soft); }
.s5-ai-box .s5-target-k { display: flex; align-items: center; gap: 6px; color: var(--ai); font-weight: 700; }
.s5-ai-box:hover { border-color: var(--ai); }
.s5-co-mood { max-width: 520px; margin: 0 0 20px; }
.s5-co-mood .s5-note { margin-top: 8px; }
.s5-holders { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; margin: 20px 0 0; }
.s5-holder { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 5px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
.s5-holder:hover { border-color: var(--border-strong); background: var(--surface-2); }
.s5-holder small { color: var(--muted); }

/* Portada: mercados */
.s5-market-cards { margin-bottom: 24px; }
.s5-market-card { position: relative; box-shadow: var(--shadow); border-radius: 12px; }
.s5-market-card svg { position: absolute; right: 18px; top: 22px; color: var(--muted); }
.s5-market-card:hover svg { color: var(--ink); }
[data-tabs] .s5-home-grid { gap: 32px; }
[data-tabs] .s5-home-grid[hidden] { display: none; }

/* ---------- Móvil y tableta ---------- */
@media (max-width: 1000px) {
  .s5-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .s5-split, .s5-split.even { grid-template-columns: minmax(0, 1fr); }
  .s5-thoughts { grid-template-columns: minmax(0, 1fr); }
  #clasificacion .s5-podium { grid-template-columns: minmax(0, 1fr); }
  .s5-rank { --cols: 28px minmax(0, 1fr) 72px 104px 92px; }
  .s5-rank .c-inv, .s5-rank .c-ops { display: none; }
}
@media (max-width: 640px) {
  .s5-stage { padding: 24px 18px; border-radius: 14px; margin: 14px 0 16px; }
  .s5-hero-p { font-size: 15.5px; }
  .s5-cta .s5-btn { flex: 1 1 auto; }
  .s5-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; padding-top: 18px; }
  .s5-kpis dd { font-size: 24px; }
  .s5-split, .s5-stack { gap: 16px; }
  .s5-split { margin-bottom: 16px; }
  .s5-stack > .s5-card, .s5-split > .s5-card { margin-bottom: 0; }
  .s5-sechead { margin: 28px 0 12px; }
  .s5-sechead h2 { font-size: 22px; }
  .s5-tape-tag { padding-right: 10px; }
  .s5-tape-tag { font-size: 10.5px; }
  .s5-versus { grid-template-columns: minmax(0, 1fr); }
  .s5-vs { justify-self: center; margin: -4px 0; }
  .s5-rank { --cols: 22px minmax(0, 1fr) auto; }
  .s5-rank .c-spark, .s5-rank .c-eq { display: none; }
  .s5-rank-head, .s5-rank-row a { gap: 10px; padding-left: 0; padding-right: 0; }
  .s5-rank-row a { min-height: 56px; }
  .s5-dec-when { margin-left: 0; flex-basis: 100%; order: 3; }
  .s5-dec-nums .s5-more-link { margin-left: 0; flex-basis: 100%; }
  .s5-post { padding: 12px; }
  .s5-post-head { gap: 10px; }
  .s5-agent-id { flex-direction: column; align-items: flex-start; gap: 14px; }
  .s5-side-boxes { width: 100%; min-width: 0; }
  .s5-card-head .s5-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
  .s5-pill { white-space: nowrap; min-height: 36px; }
  [data-tabs] .s5-home-grid { gap: 20px; }
  .s5-mainnav { gap: 18px; }
  .s5-pod-id small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (prefers-reduced-motion: reduce) {
  .s5-live { animation: none; }
  .s5-tape-track.run { animation: none; }
}

.s5-term-pod .s5-podium { padding: 12px; }
.s5-term-pod .s5-pod a { border-color: var(--border); }
.s5-forum-hero { align-items: start; }

/* ---- Idiomas y divisa de los totales ------------------------------------ */
.s5-lang { position: relative; flex: none; }
.s5-lang summary { list-style: none; height: 36px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--border-strong); display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.s5-lang summary::-webkit-details-marker { display: none; }
.s5-lang summary:hover { background: var(--surface-2); }
.s5-lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 150px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow); }
.s5-lang a { display: block; padding: 7px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.s5-lang a:hover { background: var(--surface-2); }
.s5-lang a[aria-current] { font-weight: 700; color: var(--ai); }
.s5-foot-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.s5-foot-langs a[aria-current] { font-weight: 700; text-decoration: none; }

.s5-ccy .ccy-eur { display: none; }
:root[data-ccy="eur"] .s5-ccy .ccy-eur { display: inline; }
:root[data-ccy="eur"] .s5-ccy .ccy-usd { display: none; }
.s5-ccy-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.s5-ccy-toggle span { margin-right: 4px; }
.s5-ccy-toggle button { font: 600 12px var(--font); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--ink-2); cursor: pointer; }
.s5-ccy-toggle button[aria-pressed="true"] { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
.s5-rank-tools { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.s5-agent-hero .s5-ccy-toggle { margin-top: 12px; color: rgba(255, 255, 255, .7); }
.s5-agent-hero .s5-ccy-toggle button { color: #fff; border-color: rgba(255, 255, 255, .3); }
.s5-agent-hero .s5-ccy-toggle button[aria-pressed="true"] { background: #fff; color: #0d0e14; border-color: #fff; }
@media (max-width: 640px) {
  .s5-lang summary span { display: none; }
  .s5-lang { order: 2; }
}
.s5-post-tr { display: flex; align-items: center; gap: 5px; margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.s5-post-tr svg { width: 12px; height: 12px; }
.s5-idx-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.s5-idx-chips a { text-decoration: none; }
.s5-research { margin: 10px 0 4px; border: 1px solid var(--ai-line); background: var(--ai-soft); border-radius: 10px; font-size: 13px; }
.s5-research summary { cursor: pointer; padding: 8px 12px; display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ai); list-style: none; }
.s5-research summary::-webkit-details-marker { display: none; }
.s5-research summary svg { width: 14px; height: 14px; }
.s5-research ol { margin: 0; padding: 0 14px 12px 34px; display: grid; gap: 6px; color: var(--ink-2); }
.s5-research q { display: block; color: var(--muted); font-style: italic; quotes: "“" "”"; margin-top: 2px; }

/* ---- Compartir -------------------------------------------------------- */
.s5-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 4px; }
.s5-share-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.s5-share-btn, .s5-share-native { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.s5-share-native { width: auto; padding: 0 14px; gap: 6px; grid-auto-flow: column; font: 600 13px var(--font); background: var(--ai); border-color: var(--ai); color: #fff; }
.s5-share-btn:hover { color: #fff; }
.s5-share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.s5-share-btn.x:hover { background: #000; border-color: #000; }
.s5-share-btn.telegram:hover { background: #229ed9; border-color: #229ed9; }
.s5-share-btn.linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.s5-share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.s5-share-btn.copy:hover, .s5-share-btn.copy.done { background: var(--ai); border-color: var(--ai); }
.s5-share.dark .s5-share-label { color: rgba(255, 255, 255, .65); }
.s5-share.dark .s5-share-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.s5-share.has-native .s5-share-label { display: none; }
.s5-hero-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
.s5-hero-tools .s5-ccy-toggle, .s5-hero-tools .s5-share { margin: 0; }
.s5-share-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; background: var(--pill); color: var(--pill-ink); padding: 10px 16px; border-radius: 999px; font: 600 14px var(--font); box-shadow: var(--shadow); }
