/* Flipa · panel lateral. Claro, amable y con aire: referencia dust.tt, no la marca de Tres Puntos. */
:root {
  /* Los valores salen de marca/tokens.css (copiado en extension/marca/): aquí solo se les da el nombre que usa este fichero. */
  --bg: var(--crema);
  --surface: var(--blanco);
  --ink: var(--tinta);
  --ink-2: var(--tinta-2);
  --muted: var(--tinta-3);
  --line: var(--linea);
  --line-strong: var(--linea-fuerte);
  --blue: var(--enlace);
  --blue-soft: var(--azul-suave);
  --sky: var(--azul-suave);
  --mint: var(--menta-suave);
  --rose: var(--rosa-suave);
  --amber: var(--amarillo-suave);
  --green-ink: var(--bien);
  --amber-ink: var(--aviso);
  --red: var(--error);
  --red-soft: var(--error-fondo);
  --radius: var(--radio-l);
  --shadow: 0 1px 2px rgba(23, 23, 26, .04), 0 6px 20px rgba(23, 23, 26, .06);
  --c-blue: var(--azul);
  --c-pink: var(--rosa);
  --c-yellow: var(--amarillo);
  --hard: var(--sombra-m);
  --display: var(--letra-titulos);
  font-family: var(--letra-texto);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--bg); }
button, input, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }

/* Marca: el icono de Flipa en la barra y el logo completo en las pantallas de acceso */
.mark { display: block; flex: none; width: 28px; height: 28px; }
.mark-lg { width: auto; height: 48px; align-self: flex-start; }
.mark-word { display: none; }

/* Botones */
.btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-weight: 550; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: #f4f2ec; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--blanco); }
.btn-primary:hover { background: #2b2b31; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-block { width: 100%; padding: 11px 14px; }
.icon-btn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: #f1eee7; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Acceso */
.login { min-height: 100%; padding: 56px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.login h1 { font-size: 28px; letter-spacing: -.02em; margin: 22px 0 0; }
.login form { margin-top: 22px; display: grid; gap: 14px; }
.login label { display: grid; gap: 6px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.login input { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 10px 12px; width: 100%; }
.login input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.advanced { font-size: 12px; color: var(--muted); }
.advanced summary { cursor: pointer; }
.advanced input { margin-top: 8px; font-size: 12px; }
.error { color: var(--red); background: var(--red-soft); border-radius: 10px; padding: 8px 10px; margin: 0; font-size: 13px; }

/* Estructura */
/* minmax(0, …): sin esto una fila con texto largo sin partir (el título de la página) ensancha todo el panel y se corta por la derecha */
.app { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 16px; }
.top-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.top-title strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-title span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }

/* Bienvenida */
.welcome { margin: auto 0; padding: 12px 0; }
.welcome h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 4px; }
.welcome p { margin: 0 0 16px; color: var(--ink-2); }
.ideas { display: grid; gap: 8px; }
.idea { text-align: left; border: 0; border-radius: var(--radius); padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; transition: transform .12s, box-shadow .15s; }
.idea:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.idea b { font-weight: 600; }
.idea span { font-size: 12.5px; color: var(--ink-2); }
.idea:nth-child(4n+1) { background: var(--sky); }
.idea:nth-child(4n+2) { background: var(--mint); }
.idea:nth-child(4n+3) { background: var(--rose); }
.idea:nth-child(4n+4) { background: var(--amber); }

/* Mensajes */
.msg { max-width: 100%; animation: rise .22s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.msg-user { align-self: flex-end; max-width: 88%; background: #f0ede6; border-radius: 18px 18px 6px 18px; padding: 9px 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-tag { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.msg-ai { align-self: stretch; overflow-wrap: anywhere; }
.msg-ai > :first-child { margin-top: 0; }
.msg-ai > :last-child { margin-bottom: 0; }
.msg-ai p { margin: 0 0 10px; }
.msg-ai h3, .msg-ai h4 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 16px 0 6px; }
.msg-ai blockquote { margin: 12px 0 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: 15px; font-weight: 550; line-height: 1.4; }
.msg-ai blockquote + p { color: var(--ink-2); font-size: 13px; margin: 0 2px 14px; }
.quote-actions { display: flex; gap: 6px; margin-top: 10px; }
.btn-small { padding: 4px 11px; font-size: 12px; font-weight: 550; }
.msg-ai ul, .msg-ai ol { margin: 0 0 10px; padding-left: 20px; }
.msg-ai li { margin: 2px 0; }
.msg-ai code { background: #f1eee7; border-radius: 6px; padding: 1px 5px; font-size: 12.5px; }
.msg-ai pre { background: #f1eee7; border-radius: 12px; padding: 10px 12px; overflow-x: auto; }
.msg-ai pre code { background: none; padding: 0; }
.msg-ai a { color: var(--blue); }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.sources::before { content: "Consultado"; font-size: 12px; color: var(--muted); margin-right: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--ink-2); }
.chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); animation: blink 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .35; transform: scale(.85); } 40% { opacity: 1; transform: scale(1); } }

/* Propuesta de cambio en WordPress */
.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: grid; gap: 10px; margin-top: 10px; }
.card-title { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.change { display: grid; gap: 4px; }
.change-label { font-size: 12px; color: var(--muted); }
.before { color: var(--muted); text-decoration: line-through; text-decoration-color: #cfcabd; overflow-wrap: anywhere; }
.after { background: var(--mint); border-radius: 10px; padding: 6px 9px; overflow-wrap: anywhere; }
.before mark, .after mark { background: none; color: #d6402b; font-weight: 650; }
.before mark { color: inherit; font-weight: inherit; text-decoration: underline line-through; }
.note { border-radius: 10px; padding: 7px 10px; font-size: 13px; }
.note b { font-weight: 600; }
.note-warn { background: var(--amber); color: var(--amber-ink); }
.note-block { background: var(--red-soft); color: var(--red); }
.note-ok { background: var(--mint); color: var(--green-ink); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.options { display: flex; flex-wrap: wrap; gap: 6px; }
.usage { font-size: 12px; margin-top: 10px; }

/* Novedades, propuestas y corrección */
.icon-btn { position: relative; }
.icon-btn.has-dot::after { content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; border: 2px solid var(--bg); }
.news-item { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; display: grid; gap: 4px; }
.news-item.unread { border-color: #c9d8ff; background: #f6f9ff; }
.news-item b { font-weight: 600; font-size: 13.5px; }
.news-item a { color: var(--blue); font-size: 12.5px; }
.news-item > .btn { justify-self: start; }
.news-item .muted { font-size: 12px; }
.news-body { font-size: 13px; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.tag { justify-self: start; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 550; background: #f0ede6; color: var(--ink-2); }
.tag-mejora { background: var(--mint); color: var(--green-ink); }
.tag-empeora { background: var(--red-soft); color: var(--red); }
.tag-midiendo { background: var(--blue-soft); color: #1f47b8; }
details summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.proposal-text { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); white-space: pre-line; background: #f7f5f0; border-radius: 10px; padding: 9px 11px; }
.feedback-open { display: grid; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px; }
.feedback-open input, .feedback-open textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 7px 10px; font-size: 13px; background: var(--bg); resize: vertical; }
.feedback-open .btn { justify-self: start; }

.nudge { width: 100%; text-align: left; border: 1px dashed #c9d8ff; background: #f6f9ff; border-radius: var(--radius); padding: 11px 14px; margin-bottom: 12px; cursor: pointer; display: grid; gap: 2px; }
.nudge:hover { background: var(--blue-soft); }
.nudge b { font-weight: 600; color: #1f47b8; }
.nudge span { font-size: 12.5px; color: var(--ink-2); }
.note-preview { white-space: normal; max-height: 260px; overflow-y: auto; }
.note-preview > :first-child { margin-top: 0; }
.note-preview h3, .note-preview h4 { font-size: 13px; margin: 10px 0 4px; }
.note-preview p, .note-preview ul { margin: 0 0 8px; }
.setup-item .btn { grid-column: 1 / -1; justify-self: start; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.catalog-item { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px; display: grid; gap: 4px; align-content: start; }
.catalog-item b { font-weight: 600; }
.catalog-item .muted { font-size: 12px; }
.catalog-item .tag, .catalog-item .btn { justify-self: start; margin-top: 4px; }
.catalog-group { margin-top: -4px; }
.catalog-head { margin-top: 14px; }
.request-form input[type="url"], .request-form input[type="password"] { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 11px; background: var(--bg); }
.proposal-line { font-size: 13px; color: var(--ink-2); }
.proposal-line b { font-weight: 600; color: var(--ink); }
.setup-section { display: grid; gap: 6px; margin-top: 10px; }
.setup-intro { margin: -4px 0 2px; font-size: 12.5px; }
.setup-item { grid-template-columns: 1fr auto; }
.setup-item .news-body, .setup-item .muted { grid-column: 1 / -1; }
.setup-section > .btn { justify-self: start; }

/* Historial y encargo */
.history { display: grid; gap: 6px; }
.history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.history-item { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.history-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.history-item .muted { font-size: 12px; }
.history-title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 11px; resize: vertical; background: var(--bg); }
.request-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* Barra inferior: una sola caja. Arriba lo adjunto, en medio el texto, abajo las herramientas. */
.dock { position: relative; min-width: 0; padding: 8px 12px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

.modebar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.segmented { display: inline-flex; flex: none; background: #f0ede6; border-radius: 999px; padding: 3px; }
.segmented button { border: 0; background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.site { min-width: 0; margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.site::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #2fb37a; }
.site.limited::before { background: #e0a100; }
.site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.composer { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 2px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 10px 10px 8px 14px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft), var(--shadow); }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; background: transparent; padding: 4px 0 6px; max-height: 160px; line-height: 1.45; scrollbar-width: none; }
.composer textarea::-webkit-scrollbar { display: none; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px -4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; background: #f4f2ec; border-radius: 10px; padding: 4px 6px 4px 8px; font-size: 12px; color: var(--ink-2); }
.pill svg { flex: none; color: var(--muted); }
.pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-x { flex: none; border: 0; background: transparent; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.pill-x:hover { background: #e7e3d9; color: var(--ink); }
.pill-active { background: var(--blue-soft); color: #1f47b8; }
.pill-active svg { color: #1f47b8; }
.pill-link { border: 0; background: transparent; color: inherit; font-weight: 600; cursor: pointer; padding: 0 4px; }

.toolbar { display: flex; align-items: center; gap: 8px; }
.tools { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; margin-left: -6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; min-width: 0; border: 0; background: transparent; border-radius: 10px; padding: 6px 8px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.tool:hover, .tool[aria-expanded="true"] { background: #f1eee7; color: var(--ink); }
.tool svg { flex: none; }
.tool span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-on { color: #1f47b8; background: var(--blue-soft); }
.tool-on:hover, .tool-on[aria-expanded="true"] { background: #dbe6ff; color: #1f47b8; }
.tool-push { margin-left: auto; }
.send { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ink); color: var(--blanco); display: grid; place-items: center; cursor: pointer; transition: transform .1s, opacity .15s; }
.send:active { transform: scale(.94); }
.send:disabled { opacity: .3; cursor: default; }

/* Menú que sale hacia arriba desde la barra de herramientas */
.menu { position: absolute; left: 12px; right: 12px; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 6px rgba(23, 23, 26, .06), 0 16px 40px rgba(23, 23, 26, .14); padding: 6px; max-height: 60vh; overflow-y: auto; animation: rise .14s ease-out both; }
.menu-title { padding: 8px 10px 6px; font-size: 12px; color: var(--muted); }
.menu-item { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; text-align: left; border: 0; background: transparent; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: #f4f2ec; outline: none; }
.menu-item b { font-weight: 550; font-size: 13.5px; }
.menu-item small { grid-column: 1; font-size: 12px; color: var(--muted); line-height: 1.35; }
.menu-check { grid-row: 1 / span 2; grid-column: 2; color: var(--blue); visibility: hidden; }
.menu-item[aria-checked="true"] .menu-check { visibility: visible; }

.nav-label { display: none; }
.nav-only { display: none; }

/* Plataforma web: a partir de 900 px la cabecera pasa a ser barra lateral */
/* ---------- preguntas con opciones ---------- */
.ask { display: grid; gap: 6px; margin-top: 10px; }
.ask-option { display: grid; gap: 1px; text-align: left; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 9px 12px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s; }
.ask-option:hover { border-color: var(--blue); background: #f6f9ff; }
.ask-option:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.ask-option[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.ask-text { font-size: 13.5px; font-weight: 550; }
.ask-detail { font-size: 12px; color: var(--muted); }
.ask .card-actions { margin-top: 2px; }

/* ---------- probar antes de guardar ---------- */
.assumptions { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; font-size: 13px; }
.spent-line { font-size: 12px; margin-top: 6px; }
.tryout:empty { display: none; }
.tryout { margin-top: 10px; }
.tryout-report { display: grid; gap: 8px; }
.tryout-case { border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; display: grid; gap: 4px; font-size: 13px; background: var(--bg); }
.tryout-case > .btn { justify-self: start; }
.tryout-head { display: flex; gap: 6px; }
.tryout-prompt { font-weight: 550; }
.tryout-answer { border-left: 2px solid var(--line-strong); padding-left: 10px; margin-top: 6px; font-size: 13px; }
.tryout-answer > :first-child { margin-top: 0; }
.tryout-banner { border: 1px dashed var(--blue); background: #f6f9ff; border-radius: 14px; padding: 11px 13px; display: grid; gap: 6px; font-size: 13px; }
.tryout-banner .chip-btn { text-transform: none; text-align: left; border-radius: 12px; }

/* ---------- confirmar dentro de la página ---------- */
.sure { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }

/* ---------- ficha de un agente ---------- */
.sheet { display: grid; gap: 12px; }
.sheet-field { display: grid; gap: 4px; }
.sheet-field b { font-size: 13px; font-weight: 600; }
.sheet-field .muted { font-size: 12.5px; }
.sheet-field .field-wide { width: 100%; }
.sheet-votes { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; }
.sheet-votes ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 3px; }
.sheet-votes > .btn { justify-self: start; }
.agent-used { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------- guardar lo aprendido ---------- */
.keep-offer { margin-top: -8px; }

/* ---------- dar permiso ---------- */
.grant { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 12.5px; }
.grant a { color: var(--blue); }

/* ---------- empezar por la web ---------- */
.gaps-head { margin-top: 10px; }
.gap-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.starter { display: grid; gap: 6px; border: 1px solid #c9d8ff; background: #f6f9ff; border-radius: 14px; padding: 12px; }
.starter b { font-weight: 600; font-size: 14px; }
.welcome .starter { margin-bottom: 12px; }
.starter .muted { font-size: 12.5px; }
.starter-compact { border-color: var(--line); background: var(--surface); }
.starter-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.starter-card { display: grid; gap: 8px; }
.starter-keep { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; cursor: pointer; }
.starter-keep input { margin: 0; align-self: center; }
.starter-keep .muted { font-size: 12.5px; }
.starter-text { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; background: var(--bg); font-size: 13px; line-height: 1.5; resize: vertical; }
.starter-text:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.starter-changes { background: var(--mint); color: var(--green-ink); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.starter-changes b { font-weight: 600; }
.starter-changes ul { margin: 4px 0 0; padding-left: 18px; }
.starter-doubts { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.starter-doubts > b { font-size: 13px; font-weight: 600; }
.starter-doubt { display: grid; gap: 4px; font-size: 13px; }
.starter-doubt .field-wide { width: 100%; }
.starter-sources { font-size: 12.5px; color: var(--ink-2); }
.starter-sources ul { margin: 6px 0 0; padding-left: 18px; }
.starter-sources a { color: var(--blue); overflow-wrap: anywhere; }

/* ---------- cambios: antes y después ---------- */
.diff { margin: 4px 0; padding: 7px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.diff del { background: var(--red-soft); color: var(--red); text-decoration: line-through; border-radius: 3px; padding: 0 2px; }
.diff ins { background: var(--mint); color: var(--green-ink); text-decoration: none; border-radius: 3px; padding: 0 2px; }

/* ---------- consumo y costes ---------- */
.consumo { gap: 4px; }
.big-number { font-size: 14px; color: var(--muted); margin: 2px 0 4px; }
.big-number b { font-size: 30px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 6px 0; }
.stat { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; align-content: start; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 18px; font-weight: 620; font-variant-numeric: tabular-nums; }
.stat .muted { font-size: 12px; }
.meter { height: 8px; border-radius: 999px; background: #efece4; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--blue); min-width: 2px; }
.meter-soft { height: 6px; }
.meter-soft i { background: #9db8ff; }
.meter-warn i { background: #d99a00; }
.meter-full i { background: var(--red); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1.1fr) 2fr auto; gap: 4px 10px; align-items: center; font-size: 13px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-value { font-variant-numeric: tabular-nums; font-weight: 550; text-align: right; white-space: nowrap; }
.bar-hint { grid-column: 1 / -1; font-size: 12px; margin-top: -2px; }
.columns { display: flex; align-items: flex-end; gap: 3px; height: 72px; padding: 6px 0 0; border-bottom: 1px solid var(--line-strong); }
.column { flex: 1; max-width: 22px; background: #9db8ff; border-radius: 4px 4px 0 0; }
.limit-field { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; margin: 2px 0; }
.limit-field > .muted { flex: 1 1 160px; font-size: 12.5px; }
.field-small { width: 110px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 6px 9px; font: inherit; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.field-small:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chip-btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; text-transform: capitalize; }
.chip-btn.current { background: var(--ink); border-color: var(--ink); color: var(--blanco); }
.field-wide { flex: 1 1 180px; width: auto; }
select.field-small { width: auto; }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 6px 0; cursor: pointer; }
.check-line input { margin-top: 2px; accent-color: var(--blue); }
.link-line { word-break: break-all; font-size: 12px; margin: 4px 0; }
.audit-day { margin-top: 10px; }
.audit-day .muted::first-letter { text-transform: uppercase; }
.audit-day .muted { display: inline-block; }
.audit-row { display: grid; grid-template-columns: 46px 1fr; gap: 8px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.audit-row b { font-weight: 600; }
.audit-time { font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .bar-row { grid-template-columns: 1fr auto; } .bar-row .meter { grid-column: 1 / -1; grid-row: 2; } }

@media (min-width: 900px) {
  .app { grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .top { grid-column: 1; grid-row: 1 / -1; flex-direction: column; align-items: stretch; gap: 2px; padding: 20px 12px 14px; background: #f5f3ec; border-right: 1px solid var(--line); }
  .top .mark { margin: 0 10px 10px; align-self: flex-start; }
  .top-title { flex: none; padding: 0 10px 16px; }
  .top-title strong { font-size: 15px; }
  .icon-btn { width: 100%; height: 36px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 10px; font-size: 13.5px; font-weight: 550; }
  .icon-btn:hover { background: #ebe7dc; }
  .nav-label { display: inline; }
  #new-chat { order: 1; background: var(--surface); border: 1px solid var(--line-strong); margin-bottom: 10px; box-shadow: var(--shadow); }
  #history { order: 2; }
  #news { order: 3; }
  #setup { display: none; }
  .nav-only { display: flex; order: 4; }
  .nav-heading { order: 4; display: block; margin: 16px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .icon-btn.current { background: #e6e1d4; color: var(--ink); }
  .wide-hidden { display: none; }
  #logout { order: 5; margin-top: auto; color: var(--muted); }
  .icon-btn.has-dot::after { top: 13px; right: 12px; border-color: #f5f3ec; }
  .thread, .dock { grid-column: 2; justify-self: center; width: min(100%, 800px); }
  .thread { padding: 36px 28px 16px; }
  .dock { padding: 8px 28px 26px; }
  .welcome h2 { font-size: 28px; }
  .welcome p { font-size: 15px; margin-bottom: 20px; }
  .ideas { grid-template-columns: 1fr 1fr; gap: 10px; }
  .msg-user { max-width: 70%; }
  .menu { left: 28px; right: auto; width: 380px; }
  .login { max-width: 420px; margin: 0 auto; padding-top: 14vh; }
  .history, .setup-section { max-width: 100%; }
}

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

/* Contador de conocimiento */
.know-page { gap: 0; }
.know-title h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.know-title p { margin: 2px 0 16px; font-size: 13px; }
.know-label { margin: 28px 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.know-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.know-label-row .muted { font-size: 12.5px; }

.know-meter { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr); }
.know-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.know-dial { position: relative; width: 148px; height: 148px; flex: none; }
.know-ring { display: block; }
.know-ring-bg { fill: none; stroke: #efece4; }
.know-ring-fg { fill: none; stroke: var(--green-ink); stroke-linecap: round; transition: stroke-dasharray .7s cubic-bezier(.2, .8, .2, 1); }
.know-dial-in { position: absolute; inset: 0; display: grid; place-items: center; }
.know-dial-in strong { font-size: 44px; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.know-dial-in small { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.know-say { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.know-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.know-say strong { font-size: 24px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.know-say p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); max-width: 46ch; }
.know-sum { font-size: 12.5px !important; color: var(--ink) !important; font-weight: 550; margin-top: 8px !important; font-variant-numeric: tabular-nums; }
.know-how { font-size: 12.5px; color: var(--ink-2); }
.know-how summary { cursor: pointer; color: var(--muted); width: fit-content; }
.know-how summary:hover { color: var(--ink); }
.know-how p { margin: 6px 0 0 !important; font-size: 12.5px !important; max-width: 60ch !important; }
.know-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 9px 36px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.know-mini { display: grid; grid-template-columns: minmax(0, 1fr) 84px 26px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.know-mini span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.know-bar { display: block; height: 5px; border-radius: 3px; background: #efece4; overflow: hidden; }
.know-bar i { display: block; height: 100%; background: var(--green-ink); border-radius: 3px; }
.know-meter .know-label { margin-top: 24px; }
.know-nexts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.know-next { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; align-content: start; background: var(--bg); }
.know-next:first-child { border-color: #bfe6d0; background: #f3fbf6; }
.know-gain { font-size: 20px; font-weight: 650; letter-spacing: -.01em; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.know-gain small { font-size: 12px; font-weight: 550; }
.know-next b { font-weight: 600; font-size: 14px; }
.know-next .news-body { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.know-next .btn { justify-self: start; margin-top: 8px; }

.know-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 10px; }
.know-way { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px; display: grid; gap: 2px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.know-way:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.know-way:active { transform: scale(.985); }
.know-way svg { color: var(--ink-2); margin-bottom: 8px; }
.know-way b { font-weight: 600; font-size: 13.5px; }
.know-way span { font-size: 12px; color: var(--muted); }
.know-slot:not(:empty) { margin-top: 10px; }

.know-list { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; overflow: hidden; }
.know-list + .know-list { margin-top: 12px; }
.know-block + .know-block { border-top: 1px solid var(--line); }
.know-block > summary { display: grid; grid-template-columns: minmax(0, 1fr) 110px 64px 14px; gap: 14px; align-items: center; padding: 13px 16px; cursor: pointer; list-style: none; font-size: 14px; }
.know-block > summary::-webkit-details-marker { display: none; }
.know-block > summary:hover { background: #faf8f3; }
.know-block > summary b { font-weight: 600; }
.know-count { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.know-chevron { width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .15s; justify-self: center; margin-top: -3px; }
.know-block[open] > summary .know-chevron { transform: rotate(-135deg); margin-top: 3px; }
.know-topic { display: grid; gap: 6px; padding: 12px 16px 14px 16px; border-top: 1px solid var(--line); background: #fdfcfa; }
.know-topic-head { display: flex; align-items: center; gap: 8px; }
.know-topic-head b { font-weight: 600; font-size: 13.5px; }
.know-topic-head .tag { margin-left: auto; }
.know-must { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--amber-ink); background: var(--amber); border-radius: 999px; padding: 1px 8px; }
.know-topic .news-body { max-width: 68ch; }
.know-note { font-size: 12px; margin: 16px 0 8px; }

.know-chip { display: none; }
@media (min-width: 900px) {
  .know-chip.nav-only { order: 0; display: flex; align-items: center; gap: 10px; width: auto; margin: 0 0 14px; padding: 10px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 14px; cursor: pointer; text-align: left; transition: box-shadow .15s, border-color .15s; }
  .know-chip.nav-only:hover { box-shadow: var(--shadow); }
  .know-chip.nav-only.current { border-color: var(--green-ink); }
  .know-chip-ring { flex: none; display: grid; }
  .know-chip-text { display: grid; line-height: 1.25; min-width: 0; }
  .know-chip-text b { font-size: 13px; font-weight: 600; }
  .know-chip-text span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 520px) {
  .know-meter { padding: 16px; border-radius: 16px; }
  .know-hero { gap: 16px; }
  .know-dial { width: 112px; height: 112px; }
  .know-dial .know-ring { width: 112px; height: 112px; }
  .know-dial-in strong { font-size: 34px; }
  .know-say strong { font-size: 20px; }
  .know-block > summary { grid-template-columns: minmax(0, 1fr) 56px 14px; }
  .know-block > summary .know-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .know-ring-fg, .know-way, .know-chevron { transition: none; } }

.know-used { border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left; font: inherit; font-size: 12px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.know-used:hover { color: var(--ink); }

/* Fuentes que se pueden abrir */
button.chip { font: inherit; font-size: 12px; cursor: default; }
button.chip-open { cursor: pointer; transition: border-color .15s, background .15s; }
button.chip-open:hover { border-color: var(--line-strong); background: #faf8f3; }
.source-view { margin-top: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px; display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.source-view p { margin: 0; font-size: 12.5px; }
.source-view a { color: var(--blue); }
.source-text { max-height: 340px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }

/* Cara de los agentes */
.agent-face { display: inline-grid; flex: none; }
.agent-face svg { display: block; }
.setup-item.with-face { grid-template-columns: auto 1fr auto; column-gap: 12px; }
.setup-item.with-face .agent-face { grid-row: 1 / span 2; align-self: start; }
.setup-item.with-face .news-body { grid-column: 2 / -1; }
.setup-item.with-face .card-actions, .setup-item.with-face .muted { grid-column: 2 / -1; }
.agent-used .agent-face { vertical-align: -4px; margin-right: 6px; }
.know-topic .know-mini { margin-top: 4px; }

/* Registro */
.login-alt { font-size: 13px; text-align: center; margin: 4px 0 0; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.login .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.login .check input { width: auto; margin-top: 3px; }
.login .check a { color: var(--blue); }

/* Mi contraseña */
.pw-form { max-width: 420px; gap: 12px; }
.pw-form .sheet-field { display: grid; gap: 4px; }
@media (min-width: 900px) { .nav-foot.nav-only { order: 5; margin-top: auto; } .nav-foot.nav-only + #logout { margin-top: 0; } }

/* =====================================================================================================
   BURBUJAS · dirección visual elegida por Jordi el 11-nov-2026.
   El logo hecho interfaz: tres colores (azul, rosa, amarillo), formas redondas, tinta oscura, sombras duras
   y movimiento suave. Esta capa va al final y manda sobre lo anterior.
   ===================================================================================================== */
:root {
  --shadow: 0 1px 2px rgba(29, 27, 47, .05), 0 8px 24px rgba(29, 27, 47, .07);
  font-family: var(--letra-texto);
  font-size: 14.5px;
}
html, body { background: var(--bg); }
h1, h2, h3, .top-title strong, .history-head strong, .stat-value, .know-say strong, .know-dial-in strong, .know-gain { font-family: var(--display); letter-spacing: -.015em; }
.history-head strong { font-size: 19px; font-weight: 700; }
::selection { background: var(--c-yellow); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

/* Botones */
.btn { border: 2px solid var(--ink); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .15s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn-small { padding: 5px 13px; font-size: 12.5px; border-width: 1.5px; }
.btn-primary { background: var(--ink); color: var(--blanco); }
.btn-primary:hover { background: var(--ink); box-shadow: 3px 3px 0 var(--c-yellow); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); font-weight: 600; }
.btn-ghost:hover { box-shadow: none; transform: none; background: var(--arena); color: var(--ink); }
.btn:disabled { opacity: .45; transform: none; box-shadow: none; cursor: default; }
.link-btn { color: var(--blue); font-weight: 600; }

/* Entrar, registrarse, recuperar */
.login { position: relative; }
.login h1 { font-size: 34px; line-height: 1.08; }
.login input:not([type="checkbox"]) { border: 2px solid var(--ink); border-radius: 16px; padding: 11px 14px; }
.login input:not([type="checkbox"]):focus { border-color: var(--ink); box-shadow: 4px 4px 0 var(--c-yellow); }

/* Etiquetas y avisos */
.tag { border-radius: 999px; padding: 3px 10px; font-weight: 700; background: #f1e8d3; color: var(--ink); }
.tag-mejora { background: var(--mint); color: #0b5a3a; }
.tag-midiendo { background: var(--sky); color: var(--enlace); }
.tag-empeora { background: var(--rose); color: #8f1f3a; }
.note-ok { background: var(--mint); color: #0b5a3a; border-radius: 16px; }

/* Tarjetas y listas */
.news-item, .catalog-item, .card, .stat { border: 1.5px solid var(--line); border-radius: 20px; background: var(--surface); }
.news-item b, .catalog-item b { font-weight: 700; }
.setup-section { gap: 10px; }
.msg-ai blockquote { border: 2px solid var(--ink); border-radius: 20px; box-shadow: var(--hard); }
.chip { border: 1.5px solid var(--line-strong); background: var(--surface); }
button.chip-open:hover { border-color: var(--ink); background: var(--amber); }
.source-view { border: 2px solid var(--ink); border-radius: 20px; }

/* Portada */
.welcome { position: relative; }
.welcome h2 { font-size: 30px; line-height: 1.05; letter-spacing: -.025em; margin-bottom: 8px; }
.welcome p { font-size: 15px; }
.ideas { gap: 10px; }
.idea { border-radius: 22px; padding: 16px; color: var(--ink); transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s; }
.idea:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: var(--hard); }
.idea b { font-weight: 700; font-size: 15px; }
.idea span { font-size: 13px; color: var(--ink); opacity: .78; }
.idea:nth-child(3n+1) { background: var(--c-yellow); }
.idea:nth-child(3n+2) { background: var(--c-pink); }
.idea:nth-child(3n+3) { background: var(--c-blue); }
.nudge { border: 2px solid var(--ink); background: var(--surface); border-radius: 22px; padding: 14px 16px; box-shadow: var(--hard); transition: transform .12s, box-shadow .12s; }
.nudge:hover { background: var(--surface); transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--ink); }
.nudge b { color: var(--ink); font-weight: 700; }

/* Caja de escribir */
.composer { border: 2px solid var(--ink); border-radius: 26px; padding: 14px 12px 10px 18px; box-shadow: var(--hard); transition: box-shadow .15s, transform .15s; }
.composer:focus-within { border-color: var(--ink); box-shadow: 7px 7px 0 var(--ink); transform: translate(-1px, -1px); }
.composer.dropping { background: var(--amber); }
.composer textarea { font-size: 15.5px; }
.composer textarea::placeholder { color: var(--muted); }
.round-tool { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .12s, background .15s; }
.round-tool:hover { background: var(--amber); transform: translateY(-1px); }
#mic { background: var(--c-pink); }
#mic.recording { background: var(--ink); color: var(--c-pink); animation: rec 1.1s ease-in-out infinite; }
@keyframes rec { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 179, 193, .9); } 50% { box-shadow: 0 0 0 9px rgba(255, 179, 193, 0); } }
.tools { margin-left: 2px; }
.tool { border-radius: 999px; padding: 7px 12px; font-weight: 600; }
.tool:hover, .tool[aria-expanded="true"] { background: var(--arena); }
.tool-on { background: var(--c-blue); color: var(--ink); }
.tool-on:hover, .tool-on[aria-expanded="true"] { background: var(--c-blue); color: var(--ink); }
.send { width: 42px; height: 42px; background: var(--ink); color: var(--c-yellow); transition: transform .12s; }
.send:hover:not(:disabled) { transform: translateY(-2px) rotate(-6deg); }
.pill { background: var(--arena); border-radius: 999px; padding: 4px 8px 4px 10px; color: var(--ink); }
.pill-active { background: var(--c-blue); color: var(--ink); }
.pill-active svg { color: var(--ink); }
.attached { margin-bottom: 6px; }
.composer-note { margin: 0 0 6px; }
.menu { border: 2px solid var(--ink); border-radius: 20px; box-shadow: var(--hard); }

/* Mensajes */
.msg-user { background: var(--ink); color: var(--blanco); border-radius: 22px 22px 6px 22px; }
.agent-used { color: var(--ink-2); }

/* Contador */
.know-title h2 { font-size: 30px; }
.know-label { font-family: var(--display); font-size: 17px; font-weight: 700; }
.know-meter { border: 2px solid var(--ink); border-radius: 28px; box-shadow: 7px 7px 0 var(--ink); }
.know-ring-bg { stroke: #f1e8d3; }
.know-ring-fg { stroke: var(--c-yellow); }
.know-dial::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px solid var(--ink); pointer-events: none; }
.know-dial-in small { color: var(--ink-2); }
.know-eyebrow { color: var(--ink-2); }
.know-bar { background: #f1e8d3; height: 7px; border-radius: 4px; }
.know-bar i { background: var(--ink); border-radius: 4px; }
.know-blocks { border-top: 1.5px solid var(--line); }
.know-next { border: 0; border-radius: 22px; background: var(--c-pink); padding: 16px; transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s; }
.know-next:first-child { background: var(--c-yellow); border: 0; }
.know-next:nth-child(3) { background: var(--c-blue); }
.know-next:hover { transform: translate(-2px, -3px); box-shadow: var(--hard); }
.know-next .news-body { color: var(--ink); opacity: .8; }
.know-gain { font-size: 28px; color: var(--ink); }
.know-ways { gap: 12px; }
.know-way { border: 1.5px solid var(--line-strong); border-radius: 22px; padding: 16px; transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s, border-color .16s; }
.know-way:hover { border-color: var(--ink); box-shadow: var(--hard); transform: translate(-2px, -2px); }
.know-way svg { color: var(--ink); width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--c-blue); }
.know-way:nth-child(3n+2) svg { background: var(--c-pink); }
.know-way:nth-child(3n+3) svg { background: var(--c-yellow); }
.know-way b { font-weight: 700; }
.know-list { border: 1.5px solid var(--line-strong); border-radius: 22px; }
.know-block > summary:hover { background: #fff3da; }
.know-block > summary b { font-weight: 700; }
.know-topic { background: #fffcf5; }
.know-must { background: var(--c-yellow); color: var(--ink); }
.know-how summary { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* Barra lateral */
@media (min-width: 900px) {
  .app { grid-template-columns: 276px minmax(0, 1fr); position: relative; overflow: hidden; overflow: clip; }
  .top { background: transparent; border-right: 0; padding: 26px 16px 18px 20px; gap: 3px; position: relative; z-index: 1; }
  .top .mark-icon { display: none; }
  .top .mark-word { display: block; width: auto; height: 36px; margin-bottom: 14px; }
  .top-title strong { font-size: 21px; font-weight: 700; }
  .top-title span { font-size: 13px; color: var(--ink-2); }
  .icon-btn { height: 40px; border-radius: 16px; font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 0 12px; transition: background .15s, transform .12s; }
  .icon-btn:hover { background: var(--arena); transform: translateX(2px); }
  .icon-btn.current { background: var(--c-yellow); color: var(--ink); }
  #new-chat { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-weight: 700; height: 44px; margin-bottom: 12px; }
  #new-chat:hover { background: var(--surface); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
  .nav-heading { font-family: var(--display); font-size: 12px; letter-spacing: .06em; color: var(--ink-2); margin-top: 18px; }
  .icon-btn.has-dot::after { background: #ff5c7a; border-color: var(--bg); top: 15px; right: 14px; }
  #logout { color: var(--ink-2); }

  .know-chip.nav-only { border: 0; background: var(--ink); color: var(--blanco); border-radius: 24px; padding: 14px; gap: 14px; margin-bottom: 16px; transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s; }
  .know-chip.nav-only:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--c-yellow); }
  .know-chip.nav-only.current { border: 0; box-shadow: 5px 5px 0 var(--c-yellow); }
  .know-chip .know-ring-bg { stroke: #3a375a; }
  .know-chip-text b { font-size: 14px; font-weight: 700; color: var(--blanco); }
  .know-chip-text span { color: #c9c6e6; font-size: 12.5px; }

  .thread, .dock { width: min(100%, 860px); position: relative; z-index: 1; }
  .thread { padding: 44px 32px 20px; }
  .dock { padding: 8px 32px 30px; }
  .welcome h2 { font-size: 54px; line-height: 1.02; margin-bottom: 14px; }
  .welcome p { font-size: 17.5px; max-width: 34em; margin-bottom: 24px; }
  .ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .idea { padding: 20px; min-height: 118px; align-content: end; }

  /* Las burbujas del fondo: solo adorno, quietas si el sistema pide menos movimiento */
  .app::before, .app::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; animation: flotar 14s ease-in-out infinite; }
  .app::before { width: 420px; height: 420px; background: var(--c-yellow); right: -150px; top: -190px; }
  .app::after { width: 300px; height: 300px; background: var(--c-blue); left: 190px; bottom: -220px; animation-delay: -5s; }
  .thread::before { content: ""; position: fixed; width: 230px; height: 230px; border-radius: 50%; background: var(--c-pink); right: 190px; top: -150px; pointer-events: none; z-index: -1; animation: flotar 17s ease-in-out infinite; animation-delay: -9s; }
}
@keyframes flotar { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 18px); } }

/* Entradas suaves */
.welcome > *, .know-meter, .know-way, .know-list, .setup-section > .news-item { animation: subir .28s cubic-bezier(.2, .8, .2, 1) both; }
.welcome > *:nth-child(2) { animation-delay: .03s; } .welcome > *:nth-child(3) { animation-delay: .06s; } .welcome > *:nth-child(4) { animation-delay: .09s; }
.know-way:nth-child(2) { animation-delay: .02s; } .know-way:nth-child(3) { animation-delay: .04s; } .know-way:nth-child(4) { animation-delay: .06s; } .know-way:nth-child(5) { animation-delay: .08s; }
@keyframes subir { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .app::before, .app::after, .thread::before, .welcome > *, .know-meter, .know-way, .know-list, .setup-section > .news-item, #mic.recording { animation: none; }
  .btn, .idea, .know-way, .know-next, .nudge, .composer, .icon-btn, .send, .round-tool { transition: none; }
}

/* Burbujas · cajas de arranque, campos y fichas */
.starter { border: 2px solid var(--ink); background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: var(--hard); gap: 8px; }
.starter b { font-family: var(--display); font-size: 18px; font-weight: 700; }
.starter .muted { font-size: 13.5px; color: var(--ink-2); }
.starter-compact { border: 1.5px solid var(--line-strong); box-shadow: none; }
.field-small, .starter-text, .request-form textarea, .feedback-open input, .feedback-open textarea { border: 1.5px solid var(--ink); border-radius: 14px; padding: 8px 12px; background: var(--surface); }
.field-small:focus-visible, .starter-text:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--c-yellow); }
.sheet-field b { font-weight: 700; }
.meter, .meter-soft { background: #f1e8d3; }
.meter i { background: var(--ink); }
.bar-value { font-weight: 700; }
.stat { padding: 16px; }
.stat-value { font-size: 26px; }
.agent-face svg rect { stroke: var(--ink); stroke-width: 1.5px; }
.note { border-radius: 16px; }
.error { color: #a1173a; }

/* Burbujas · conexiones */
.conn-page { gap: 0; }
.tool-logo { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line-strong); padding: 9px; object-fit: contain; box-sizing: border-box; }
.tool-logo-letter { display: grid; place-items: center; padding: 0; border-color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); }
.conn-text { display: grid; min-width: 0; line-height: 1.3; }
.conn-text b { font-weight: 700; font-size: 15px; }
.conn-text span { font-size: 12.5px; color: var(--ink-2); }
.conn-active { border: 1.5px solid var(--line-strong); border-radius: 22px; background: var(--surface); overflow: hidden; }
.conn-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 16px; }
.conn-row + .conn-row { border-top: 1.5px solid var(--line); }
.conn-on { font-size: 12.5px; font-weight: 700; color: #0b5a3a; background: var(--mint); border-radius: 999px; padding: 3px 11px; }
.conn-tools { display: grid; gap: 12px; margin-bottom: 14px; }
.conn-search { width: 100%; border: 2px solid var(--ink); border-radius: 999px; padding: 11px 18px; font: inherit; font-size: 15px; background: var(--surface); color: var(--ink); }
.conn-search:focus { outline: none; box-shadow: 4px 4px 0 var(--c-yellow); }
.conn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.conn-chip { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 5px 13px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.conn-chip:hover { border-color: var(--ink); }
.conn-chip.current { background: var(--ink); border-color: var(--ink); color: var(--blanco); }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.conn-card { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 22px; padding: 16px; display: grid; gap: 10px; align-content: start; grid-template-rows: auto 1fr auto; transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s, border-color .16s; }
.conn-card:hover { border-color: var(--ink); box-shadow: var(--hard); transform: translate(-2px, -2px); }
.conn-head { display: flex; gap: 12px; align-items: center; }
.conn-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.conn-note { font-size: 12px !important; }
.conn-action { display: flex; align-items: center; min-height: 32px; }
.conn-custom { margin-top: 14px; text-align: left; border: 2px dashed var(--ink); background: transparent; border-radius: 22px; padding: 16px; display: grid; gap: 2px; cursor: pointer; font: inherit; color: var(--ink); transition: background .15s; }
.conn-custom:hover { background: var(--amber); }
.conn-custom b { font-weight: 700; }
.conn-custom span { font-size: 13px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .conn-card, .conn-chip { transition: none; } }

/* Burbujas · caras de los agentes, selector y ayuda */
.agent-face svg rect { stroke: none; }
.setup-item.with-face { column-gap: 14px; }
.face-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.face-option { border: 0; background: transparent; padding: 3px; border-radius: 50%; cursor: pointer; transition: transform .14s cubic-bezier(.2, .8, .2, 1); }
.face-option:hover { transform: translateY(-3px) rotate(-6deg); }
.face-option[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink); }
.conn-row { display: flex; flex-wrap: wrap; }
.conn-row .conn-text { flex: 1 1 130px; }

.help-btn { float: right; margin: 2px 0 8px 12px; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: var(--surface); border-radius: 999px; padding: 5px 13px 5px 6px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s; position: relative; z-index: 2; }
.help-btn span { width: 22px; height: 22px; border-radius: 50%; background: var(--c-yellow); display: grid; place-items: center; font-family: var(--display); font-size: 14px; }
.help-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.help-panel { position: fixed; top: 16px; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 2px solid var(--ink); border-radius: 28px; box-shadow: -8px 8px 0 var(--ink); padding: 22px 24px; overflow-y: auto; z-index: 30; animation: ayuda .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ayuda { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.help-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.help-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--c-yellow); border-radius: 999px; padding: 3px 11px; }
.help-panel h2 { margin: 8px 0 8px; font-size: 28px; line-height: 1.1; }
.help-panel h3 { margin: 20px 0 6px; font-size: 15px; }
.help-what { margin: 0 0 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.help-panel ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.help-can { list-style: none; padding-left: 0 !important; }
.help-can li { background: #fff3da; border-radius: 12px; padding: 7px 12px; color: var(--ink); font-weight: 500; }
.help-example { width: 100%; text-align: left; border: 2px dashed var(--ink); background: transparent; border-radius: 18px; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; transition: background .15s; }
.help-example:hover { background: var(--amber); }
@media (max-width: 899px) { .help-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 78vh; box-shadow: 0 -6px 0 var(--ink); } }
@media (prefers-reduced-motion: reduce) { .help-panel { animation: none; } .face-option, .help-btn { transition: none; } }
.help-btn { float: none; justify-self: end; width: fit-content; margin: 0 0 -38px; }
@media (max-width: 899px) { .help-btn { margin-bottom: 0; } }

/* Burbujas · recorrido guiado */
.onb { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); animation: subir .28s cubic-bezier(.2, .8, .2, 1) both; }
.onb h2 { margin: 6px 0 0; font-size: 34px; line-height: 1.05; letter-spacing: -.025em; }
.onb-lead { margin: 0; font-size: 16.5px; color: var(--ink-2); max-width: 36em; }
.onb-hint { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.onb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.onb-steps button { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 5px 13px 5px 5px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.onb-steps i { width: 24px; height: 24px; border-radius: 50%; background: #f1e8d3; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--ink); }
.onb-steps .done button { border-color: var(--ink); color: var(--ink); }
.onb-steps .done i { background: var(--ink); color: var(--c-yellow); }
.onb-steps .current button { background: var(--c-yellow); border-color: var(--ink); color: var(--ink); font-weight: 700; }
.onb-steps .current i { background: var(--surface); }
.onb-row { display: flex; flex-wrap: wrap; gap: 10px; }
.onb-input { flex: 1 1 240px; border: 2px solid var(--ink); border-radius: 999px; padding: 13px 20px; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--hard); }
.onb-input:focus { outline: none; box-shadow: 7px 7px 0 var(--c-yellow); }
.onb-row .btn { padding: 12px 22px; font-size: 15px; }
.onb-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.onb-nav-right { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.onb-drop { border: 2px dashed var(--ink); background: var(--surface); border-radius: 28px; padding: 34px 24px; display: grid; gap: 6px; justify-items: center; text-align: center; cursor: pointer; font: inherit; color: var(--ink); transition: background .15s, transform .15s; }
.onb-drop:hover, .onb-drop.dropping { background: var(--amber); transform: translateY(-2px); }
.onb-drop svg { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--c-blue); margin-bottom: 6px; }
.onb-drop b { font-family: var(--display); font-size: 19px; }
.onb-drop span { font-size: 13.5px; color: var(--ink-2); max-width: 34em; }
.onb-files { display: grid; gap: 6px; }
.onb-file { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 16px; padding: 9px 14px; font-size: 13.5px; }
.onb-file b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.onb-file span { flex: none; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: #f1e8d3; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onb-file-ok span { background: var(--mint); color: #0b5a3a; }
.onb-file-leyendo span { background: var(--c-blue); }
.onb-file-fallo { flex-wrap: wrap; }
.onb-file-fallo span { background: var(--rose); color: #8f1f3a; white-space: normal; max-width: 100%; }
.onb-work { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.onb-line { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.onb-line i { width: 26px; height: 26px; flex: none; border-radius: 50%; box-sizing: border-box; }
.onb-line-done i { background: var(--ink); position: relative; }
.onb-line-done i::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid var(--c-yellow); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.onb-line-doing i { border: 3px solid var(--ink); border-top-color: var(--c-pink); animation: girar .8s linear infinite; }
.onb-line-wait { color: var(--muted); }
.onb-line-wait i { border: 2px dashed var(--line-strong); }
@keyframes girar { to { transform: rotate(360deg); } }
.onb-known { display: grid; gap: 8px; }
.onb-known b { font-family: var(--display); font-size: 17px; }
.onb-chip { border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 700; background: var(--c-blue); }
.onb-chip:nth-child(3n+2) { background: var(--c-pink); }
.onb-chip:nth-child(3n+3) { background: var(--c-yellow); }
.onb-start { width: 100%; text-align: left; border: 2px solid var(--ink); background: var(--surface); border-radius: 26px; padding: 20px; display: grid; gap: 4px; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--hard); margin-bottom: 14px; transition: transform .14s, box-shadow .14s; }
.onb-start:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.onb-start b { font-family: var(--display); font-size: 22px; }
.onb-start > span:last-child { font-size: 14.5px; color: var(--ink-2); }
.onb-start-steps { display: flex; gap: 6px; margin-bottom: 8px; }
.onb-start-steps i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 700; background: var(--c-yellow); }
.onb-start-steps i:nth-child(2) { background: var(--c-pink); } .onb-start-steps i:nth-child(3) { background: var(--c-blue); } .onb-start-steps i:nth-child(4) { background: var(--ink); color: var(--c-yellow); }
@media (max-width: 899px) { .onb h2 { font-size: 26px; } .onb-steps button { padding-right: 9px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .onb, .onb-line-doing i { animation: none; } .onb-drop, .onb-start { transition: none; } }

/* Burbujas · pestañas de Conocimiento */
.know-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; position: sticky; top: -44px; z-index: 3; padding: 8px 0; background: var(--bg); }
.know-tab { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.know-tab:hover { border-color: var(--ink); transform: translateY(-1px); }
.know-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--blanco); }
.know-panel { display: grid; grid-template-columns: minmax(0, 1fr); animation: subir .22s cubic-bezier(.2, .8, .2, 1) both; }
.know-panel > .know-label:first-child, .know-panel > .know-label-row:first-child .know-label { margin-top: 0; }
@media (max-width: 899px) { .know-tabs { top: -8px; } .know-tab { padding: 6px 12px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .know-panel { animation: none; } .know-tab { transition: none; } }

/* Burbujas · fuentes plegadas, valorar y avisos del copiloto de la web */
.sources::before { content: none; }
.sources-box { margin-top: 12px; }
.sources-box > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; background: var(--surface); transition: border-color .15s; }
.sources-box > summary::-webkit-details-marker { display: none; }
.sources-box > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin: -3px 2px 0 2px; transition: transform .15s; }
.sources-box[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.sources-box > summary:hover { border-color: var(--ink); color: var(--ink); }
.sources-box .sources { margin-top: 8px; }
.thumb { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; padding: 0; margin-right: 6px; transition: transform .12s, background .15s, border-color .15s; }
.thumb:hover { border-color: var(--ink); color: var(--ink); background: var(--mint); transform: translateY(-1px); }
.thumb-down svg { transform: rotate(180deg); }
.thumb-down:hover { background: var(--rose); }
.thumb[disabled], .thumb.on { border-color: var(--ink); color: var(--ink); background: var(--c-yellow); }
.wp-note { font-size: 13px; line-height: 1.5; background: var(--amber); border-radius: 16px; padding: 10px 14px; color: var(--ink); }
.wp-mismatch { margin: 0 0 6px; width: 100%; }

/* El aviso de cuentas cruzadas ocupa su propia línea, encima de los modos */
.modebar { flex-wrap: wrap; }
.wp-mismatch { flex: 1 0 100%; order: -1; margin: 0 0 2px; }
@media (min-width: 900px) { #nav-opinion.nav-foot { margin-top: auto; } #nav-opinion.nav-foot + .nav-foot { margin-top: 0; } }
/* Ejemplos de tareas automáticas cuando todavía no hay ninguna */
.auto-ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.setup-section > .know-label { margin-top: 18px; }
/* Cuentas (solo Tres Puntos) */
.chip-plain { text-transform: none; }
.account b .muted { font-weight: 400; }
.guide-link { justify-self: start; align-self: flex-start; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.guide-link:hover { color: var(--ink); }
/* Google: elegir qué web o propiedad mira Flipa */
.google-pick { display: grid; gap: 8px; width: 100%; }
.conn-active > .google-pick { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.google-options { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.google-option { display: grid; gap: 1px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 8px 12px; cursor: pointer; }
.google-option:hover:not(:disabled) { border-color: var(--ink); }
.google-option.current { border-color: var(--ink); box-shadow: 3px 3px 0 var(--c-yellow); }
.google-option span { font-size: 12.5px; color: var(--muted); }
.google-option:disabled { opacity: .5; cursor: default; }
.conn-mode { font-size: 12px; color: var(--muted); }
