/* Tokens visuales movidos a css/tokens.css en la versión 2.0. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.45;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: 0 0 auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(16px, 3vw, 36px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand h1 { margin: 0; font-size: clamp(1.05rem, 1.9vw, 1.35rem); letter-spacing: -.02em; color: var(--brand-blue); }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.quick-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.quick-links a {
  color: var(--brand-blue);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .84rem;
  background: var(--white);
}
.quick-links a:hover { border-color: var(--brand-cyan); color: var(--brand-cyan-strong); }

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, .9fr);
  gap: 22px;
  align-items: start;
  max-width: 1520px;
  margin: 0 auto;
  padding: 22px clamp(14px, 2.5vw, 32px) 32px;
}
.builder { min-width: 0; }
.result { position: sticky; top: 88px; min-width: 0; }

.title-strip,
.block,
.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.title-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-left: 5px solid var(--brand-cyan);
}
.title-strip h2, .block h3, .result-card h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.title-strip h2 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
.eyebrow { margin: 0 0 2px; color: var(--brand-cyan-strong); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.status-pill {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid #c7ebf8;
  background: #edfaff;
  color: var(--brand-cyan-strong);
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 700;
}

.block { padding: 18px; margin-bottom: 16px; }
.block-main { border-top: 4px solid var(--level-color); }
.block h3 { color: var(--brand-blue); font-size: 1rem; margin-bottom: 12px; }
.microcopy { margin: -4px 0 14px; color: var(--muted); font-size: .9rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > span, .block h4 { font-size: .82rem; color: #344054; font-weight: 800; }
.field input, .field select, .field textarea, .search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}
.field select { border-color: color-mix(in srgb, var(--level-color) 35%, var(--line)); }
textarea { resize: vertical; min-height: 76px; }
.span-2 { grid-column: 1 / -1; }
.level-help { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--muted); font-size: .86rem; }
#levelColorDot { width: 12px; height: 12px; border-radius: 999px; background: var(--level-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--level-color) 18%, transparent); }

.section-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 14px;
  scrollbar-width: thin;
}
.section-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #475467;
  padding: 9px 12px;
  font-weight: 800;
  font-size: .88rem;
}
.section-tabs button[aria-selected="true"] {
  color: var(--brand-cyan-strong);
  border-color: #99ddf2;
  background: #ecfaff;
}

.dropbox {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0;
  background: #fbfdff;
}
.dropbox summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 900;
  color: #344054;
}
.dropbox summary::-webkit-details-marker { display: none; }
.dropbox summary::after { content: "+"; color: var(--brand-cyan-strong); font-size: 1.1rem; }
.dropbox[open] summary::after { content: "–"; }
.dropbox summary b { font-size: .76rem; color: var(--muted); background: var(--white); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
.search { margin: 0 12px 10px; width: calc(100% - 24px); }
.option-list { display: grid; gap: 8px; padding: 0 12px 12px; max-height: 440px; overflow: auto; }
.option-row {
  display: grid;
  grid-template-columns: auto 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  background: var(--white);
  border: 1px solid #e6edf4;
  border-radius: 13px;
  padding: 10px;
}
.option-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-cyan); }
.option-label { min-width: 0; cursor: pointer; }
.option-label strong { display: block; color: #243042; font-size: .9rem; }
.option-label small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.color-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 999px; background: var(--dot, var(--brand-cyan)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--brand-cyan)) 20%, transparent); }
.info-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d5e8ef;
  border-radius: 999px;
  color: var(--brand-cyan-strong);
  background: #f3fbfe;
  padding: 0;
}
.info-btn svg { width: 15px; height: 15px; }
.empty-note { color: var(--muted); font-size: .9rem; padding: 12px; }
.selected-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0 12px; min-height: 4px; }
.chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dot, var(--brand-cyan)) 13%, white);
  border: 1px solid color-mix(in srgb, var(--dot, var(--brand-cyan)) 38%, #dbe7ef);
  color: #243042;
  font-size: .78rem;
  font-weight: 750;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--dot, var(--brand-cyan)); }

/* Combos múltiples movidos a css/components/multi-combo.css en la versión 2.0. */

.check-line { display: flex; gap: 9px; align-items: flex-start; font-weight: 750; color: #344054; margin: 10px 0; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-cyan); }
.nested-card, .choice-card {
  border: 1px solid #dceaf1;
  background: #fbfdff;
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
}
.nested-card h4, .choice-card h4 { margin: 10px 0 8px; color: var(--brand-blue); }
.nested-card h4:first-child { margin-top: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 12px; margin: 8px 0 14px; }
.check-grid label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 9px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid #e5eef4;
  color: #344054;
  font-size: .88rem;
}
.check-grid input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--brand-cyan); }

.result-card { padding: 16px; }
.result-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.result-head h2 { font-size: 1.05rem; color: var(--brand-blue); }
#wordCount { color: var(--muted); font-size: .78rem; font-weight: 800; white-space: nowrap; border: 1px solid var(--line); padding: 5px 8px; border-radius: 999px; }
.result-actions { display: grid; grid-template-columns: 1fr .72fr; gap: 8px; margin: 12px 0; }
.result-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--brand-blue);
  padding: 10px 12px;
  font-weight: 850;
}
.result-actions .primary { background: var(--brand-cyan); border-color: var(--brand-cyan); color: white; }
.result-actions button:hover { transform: translateY(-1px); }
.prompt-output {
  height: calc(100vh - 240px);
  min-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid #dce8f0;
  border-radius: 16px;
  background: #fbfdff;
  padding: 15px;
  font: 0.88rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.prompt-output mark {
  background: #c7efff;
  color: #004c72;
  border-radius: 6px;
  padding: 1px 4px;
  font-weight: 900;
}
.prompt-output mark.empty { background: #fff2bf; color: #6b4b00; }
.prompt-output strong { color: var(--brand-blue); }

.info-popover {
  position: fixed;
  z-index: 100;
  max-width: 340px;
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  padding: 12px 13px;
  box-shadow: 0 16px 44px rgba(15,23,42,.24);
  font-size: .88rem;
}
.info-popover h4 { margin: 0 0 6px; color: #bdefff; font-size: .92rem; }
.info-popover p { margin: 0; color: #e5edf6; }

.level-inicial { --level-color: #f2bd2b; }
.level-primaria { --level-color: #39b873; }
.level-secundaria { --level-color: #2f80ed; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 1fr; }
  .result { position: static; }
  .prompt-output { height: 520px; }
}
@media (max-width: 720px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .quick-links { justify-content: flex-start; }
  .app-shell { padding-inline: 12px; }
  .form-grid, .check-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .title-strip { align-items: flex-start; flex-direction: column; }
  .result-actions { grid-template-columns: 1fr; }
  .option-row { grid-template-columns: auto 10px minmax(0, 1fr); }
  .info-btn { grid-column: 3; justify-self: start; }
}

/* === SESIONES REGULARES 0.4 === */
.icon-links { gap: 8px; }
.icon-links a { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; }
.icon-links a svg { width: 20px; height: 20px; }
.module-tabs { display: grid; grid-template-columns: repeat(7, minmax(86px, 1fr)); gap: 8px; margin: 14px 0 18px; padding: 8px; background: #f7fafc; border: 1px solid #e6edf2; border-radius: 18px; }
.module-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 1px solid transparent; background: transparent; color: #415466; border-radius: 13px; cursor: pointer; font-weight: 700; font-size: 12px; }
.module-tabs button svg { width: 18px; height: 18px; }
.module-tabs button[aria-selected="true"] { background: #ffffff; color: #087aa9; border-color: #a8e3f8; box-shadow: 0 6px 18px rgba(0, 157, 215, .12); }
.module-panel[hidden] { display: none !important; }
.ai-toolbar { display: flex; gap: 8px; padding: 8px; border: 1px solid #e7eef4; background: #f8fbfd; border-radius: 16px; margin: 8px 0 10px; }
.ai-toolbar button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #d8e5ee; background: #fff; cursor: pointer; color: #51606d; }
.ai-toolbar button svg { width: 20px; height: 20px; }
.ai-toolbar button[aria-selected="true"] { background: #0ea5d7; color: #fff; border-color: #0ea5d7; box-shadow: 0 8px 18px rgba(14, 165, 215, .28); }
.summary-box { margin: 12px 0; padding: 14px 16px; background: #fff8e8; border: 1px solid #ffd792; border-left: 5px solid #f2a31b; border-radius: 16px; color: #5e4a1e; font-size: 13px; line-height: 1.55; }
.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.small-checks { margin-top: 14px; }
.small-checks label { font-size: 13px; }
.dynamic { background: #ffe066; color: #1e293b; border-radius: 7px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-weight: 700; }
.info-popover p { white-space: normal; }
@media (max-width: 1180px) { .module-tabs { grid-template-columns: repeat(4, minmax(90px, 1fr)); } }
@media (max-width: 760px) { .module-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .module-tabs button { justify-content: flex-start; padding-left: 12px; } .compact-grid { grid-template-columns: 1fr; } .icon-links { justify-content: flex-start; } }


/* === SESIONES REGULARES 0.6: módulos e IA === */
.ai-icon { width: 21px; height: 21px; display: block; object-fit: contain; }
.quick-links.icon-links a .ai-icon { width: 22px; height: 22px; }
.ai-toolbar button .ai-icon { width: 22px; height: 22px; }
.ai-toolbar button[aria-selected="true"] .ai-icon { filter: none; }
.ai-toolbar button[aria-selected="true"][data-ai="chatgpt"] { background:#16a34a; border-color:#16a34a; }
.ai-toolbar button[aria-selected="true"][data-ai="gemini"] { background:#2563eb; border-color:#2563eb; }
.ai-toolbar button[aria-selected="true"][data-ai="deepseek"] { background:#4D6BFE; border-color:#4D6BFE; }
.ai-toolbar button[aria-selected="true"][data-ai="qwen"] { background:#7c3aed; border-color:#7c3aed; }
.ai-toolbar button[aria-selected="true"][data-ai="general"] { background:#0ea5d7; border-color:#0ea5d7; }
.info-popover { max-width: 420px; }
.info-popover p { line-height: 1.55; }


/* === SESIONES REGULARES 0.6: ayudas y exámenes === */
.label-with-info { display: inline-flex; align-items: center; gap: 6px; }
.info-btn.mini { width: 22px; height: 22px; }
.info-btn.mini svg { width: 13px; height: 13px; }
.mini-tabs { display:flex; gap:8px; flex-wrap:wrap; margin: 12px 0; padding: 7px; background:#f8fbfd; border:1px solid #e7eef4; border-radius:16px; }
.mini-tabs button { border:1px solid transparent; background:transparent; color:#415466; border-radius:12px; padding:8px 12px; font-weight:850; }
.mini-tabs button[aria-selected="true"] { background:#fff; color:#087aa9; border-color:#a8e3f8; box-shadow: 0 5px 16px rgba(0,157,215,.12); }
.mix-rows { display:grid; gap:10px; margin-bottom:12px; }
.mix-row { display:grid; grid-template-columns: minmax(150px,1fr) 90px 90px auto; gap:8px; align-items:end; padding:10px; border:1px solid #e5eef4; border-radius:14px; background:#fff; }
.soft-button { border:1px solid #bde7f7; background:#effbff; color:#087aa9; border-radius:12px; padding:9px 12px; font-weight:850; }
.remove-mix { border:1px solid #ffd4d4; background:#fff7f7; color:#b42318; border-radius:10px; padding:8px 10px; font-weight:850; }
body[data-ai-target="chatgpt"] { --ai-color:#16a34a; }
body[data-ai-target="gemini"] { --ai-color:#2563eb; }
body[data-ai-target="deepseek"] { --ai-color:#4D6BFE; }
body[data-ai-target="qwen"] { --ai-color:#7c3aed; }
body[data-ai-target="general"] { --ai-color:#0ea5d7; }
.result-card { border-top: 4px solid var(--ai-color, var(--brand-cyan)); }
@media (max-width: 760px) { .mix-row { grid-template-columns: 1fr; } }


[hidden] { display: none !important; }
.block-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.soft-button.tiny { min-height:30px; padding:6px 10px; font-size:12px; border-radius:999px; }
.info-popover { max-width: 520px; background:#0f2537; border:1px solid rgba(125,211,252,.35); box-shadow:0 18px 46px rgba(15, 23, 42, .38); }
.info-popover h4 { color:#d9f5ff; margin-bottom:10px; }
.info-body p { margin:8px 0; padding:8px 10px; border-radius:12px; background:rgba(255,255,255,.055); color:#e8f3fb; line-height:1.55; }
.info-body strong { color:#7dd3fc; }
.info-bullet { display:inline-block; margin-left:4px; color:#dbeafe; }
.small-checks label { align-items:flex-start; }
.small-checks .info-btn { margin-left:4px; flex:0 0 auto; }
.static-field { min-height: 58px; padding: 8px 10px; border: 1px solid #e1ebf2; border-radius: 12px; background:#f8fbfd; display:flex; flex-direction:column; justify-content:center; }
.static-field span { font-size:12px; font-weight:700; color:#6b7b88; }
.static-field strong { color:#102a43; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 9999; display:flex; align-items:center; gap:10px; padding:12px 16px; border-radius:999px; background:#052e1a; color:#ecfdf5; box-shadow:0 14px 34px rgba(0,0,0,.25); opacity:0; transition: opacity .22s ease, transform .22s ease; font-weight:800; }
.toast.show { opacity:1; transform: translate(-50%, 0); }
.toast-check { width:22px; height:22px; border-radius:50%; background:#22c55e; display:inline-flex; align-items:center; justify-content:center; color:white; font-size:15px; }
.ai-toolbar button .ai-icon, .icon-links .ai-icon { object-fit: contain; }
@media (max-width: 760px) { .info-popover { max-width: calc(100vw - 24px); } .toast { width:max-content; max-width:calc(100vw - 32px); } }
.ai-toolbar button[aria-selected="true"][data-ai="chatgpt"] { background:#dcfce7; border-color:#16a34a; box-shadow:0 8px 18px rgba(22,163,74,.18); }
.ai-toolbar button[aria-selected="true"][data-ai="gemini"] { background:#dbeafe; border-color:#2563eb; box-shadow:0 8px 18px rgba(37,99,235,.18); }
.ai-toolbar button[aria-selected="true"][data-ai="deepseek"] { background:#e0e7ff; border-color:#4D6BFE; box-shadow:0 8px 18px rgba(77,107,254,.18); }
.ai-toolbar button[aria-selected="true"][data-ai="qwen"] { background:#ede9fe; border-color:#7c3aed; box-shadow:0 8px 18px rgba(124,58,237,.18); }
.ai-toolbar button[aria-selected="true"][data-ai="general"] { background:#e0f7ff; border-color:#0ea5d7; box-shadow:0 8px 18px rgba(14,165,215,.18); }


/* v0.8 refinements */
.inline-badge { display:inline-flex; align-items:center; margin-left:8px; padding:3px 8px; border-radius:999px; background:#e0f7ff; color:#087aa9; border:1px solid #a8e3f8; font-size:.68rem; font-weight:800; vertical-align:middle; }
.prompt-output .dynamic { background: color-mix(in srgb, var(--ai-color, #0ea5d7) 22%, white); color:#0f172a; border:1px solid color-mix(in srgb, var(--ai-color, #0ea5d7) 48%, white); border-left:4px solid var(--ai-color, #0ea5d7); padding:1px 5px; border-radius:8px; font-weight:800; }
.info-popover .info-body p { margin:0 0 12px; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.06); border:1px solid rgba(186,230,253,.12); }
.info-popover .info-body p:last-child { margin-bottom:0; }
.info-popover .info-body strong { color:#7dd3fc; }
.info-popover .info-bullet { display:block; padding:4px 0; color:#e0f2fe; }
.mix-row { grid-template-columns: minmax(170px, 1.2fr) 85px 85px 115px auto; }
.mix-row .static-field { min-height:54px; justify-content:center; }
@media (max-width: 980px) { .mix-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .mix-row { grid-template-columns: 1fr; } }


/* v0.9: ayudas dinámicas y resaltado por IA */
.prompt-output .ai-config {
  display: block;
  white-space: pre-wrap;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ai-color, #0ea5d7) 18%, white);
  border: 1px solid color-mix(in srgb, var(--ai-color, #0ea5d7) 55%, white);
  border-left: 5px solid var(--ai-color, #0ea5d7);
  color: #0f172a;
}
.info-popover .info-section {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(186,230,253,.16);
  background: rgba(255,255,255,.06);
}
.info-popover .info-section-0 { border-left: 4px solid #38bdf8; }
.info-popover .info-section-1 { border-left: 4px solid #22c55e; }
.info-popover .info-section-2 { border-left: 4px solid #f59e0b; }
.info-popover .info-section-3 { border-left: 4px solid #a78bfa; }
.info-popover .info-line { color: #f8fafc; font-weight: 800; }


/* SESIONES REGULARES 1.1 */
.content-mode-tabs { margin-top: 14px; }
#contentTextPanel[hidden], #contentGraphicPanel[hidden] { display: none !important; }
.info-popover { z-index: 9999; }
.info-popover[hidden] { display: none !important; }


/* === SESIONES REGULARES 1.6: Tooltip dinámico exacto por opción seleccionada === */
.field-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.js-tooltip-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.js-tooltip-select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  vertical-align: middle;
}

.tooltip-container .info-btn,
.tooltip-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #0ea5e9;
  background: #ffffff;
  color: #0284c7;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  padding: 0;
}

.tooltip-container .info-btn svg {
  width: 14px;
  height: 14px;
}

.tooltip-box {
  visibility: hidden;
  width: 320px;
  max-width: min(320px, calc(100vw - 32px));
  background: #0f172a;
  color: #f8fafc;
  text-align: left;
  border-radius: 14px;
  padding: .92rem;
  position: absolute;
  z-index: 99999;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  font-size: 0.84rem;
  line-height: 1.45;
  pointer-events: none;
  white-space: normal;
  overflow-wrap: break-word;
  overflow: visible;
}

.tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border-width: 7px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.tooltip-container:hover .tooltip-box,
.tooltip-container:focus-within .tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.tooltip-header {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  color: #7dd3fc;
  margin-bottom: .45rem;
}

.tooltip-main,
.tooltip-when,
.tooltip-off {
  margin: .42rem 0;
  color: #f8fafc;
}

.tooltip-when,
.tooltip-off {
  padding: .52rem .62rem;
  border-radius: .7rem;
  background: rgba(14, 165, 233, .10);
  border-left: 3px solid #38bdf8;
}

.tooltip-off {
  background: rgba(148, 163, 184, .12);
  border-left-color: #94a3b8;
}

.tooltip-label {
  color: #7dd3fc;
  font-weight: 600;
}

.tooltip-note {
  display: block;
  margin-top: .62rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-style: italic;
}

.info-popover {
  display: none !important;
}

@media (max-width: 760px) {
  .tooltip-box {
    width: min(300px, calc(100vw - 24px));
  }
}



/* Responsive de combos múltiples movido a css/components/multi-combo.css. */
