/* Panel de Fanibot (panel v3, plan 10). Superficies blancas sobre gris claro y un solo color
   de marca, frambuesa, para la acción principal y lo marcado. Verde, ámbar, rojo y azul solo
   dicen estados, y siempre con icono y palabra (`.pill`). Todos los pares de texto cumplen
   AA (4,5:1), en claro y en oscuro. Cuatro tamaños de letra: 12, 14, 16 y 20 px.
   · Equipo: ordenador primero. Barra lateral de 200 px; por debajo de 900 px, barra abajo
     con «Más».
   · Creadora (y el equipo cuando abre su bóveda o su perfil): columna central de móvil; la
     creadora, con sus secciones arriba en el ordenador y abajo en el móvil.
   · Por debajo de 900 px, cada control mide `--hit` (44 px) de alto como mínimo. */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #161a22;
  --muted: #5b6472;
  --line: #e4e7ec;
  --line-soft: #eef0f3;
  --accent: #b3245f;
  --accent-ink: #9d1d52;
  --accent-soft: #fbe8f0;
  --on-accent: #ffffff;
  --ok: #18794e;
  --ok-soft: #e6f4ec;
  --warn: #b07a00;
  --warn-ink: #8a5a00;
  --warn-soft: #fdf1d8;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --info: #1a5fb4;
  --info-soft: #e8f0fb;
  --bubble: #ffffff;
  --bubble-out: #e9f5df;
  --bubble-creator: #fbe8f0;
  --code: #f7f8fa;
  --shadow: 0 1px 2px rgba(22, 26, 34, .05);
  --overlay: rgba(22, 26, 34, .38);
  --radius: 12px;
  --radius-s: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-s: 12px;
  --text-m: 14px;
  --text-l: 16px;
  --text-xl: 20px;
  --hit: 44px;
  --top-h: 56px;
  --tabs-h: 58px;
  --side-w: 200px;
  --list-w: 340px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1318; --card: #181d24; --ink: #e8ebf0; --muted: #9aa3b0; --line: #2a313b; --line-soft: #20262e;
    --accent: #f0709f; --accent-ink: #f6a8c6; --accent-soft: #3a1f2b; --on-accent: #1a0b12;
    --ok: #5fd39a; --ok-soft: #14301f; --warn: #f2c25c; --warn-ink: #f2c25c; --warn-soft: #3a2e12;
    --bad: #ff8f84; --bad-soft: #3d1d1a; --info: #8fb8f5; --info-soft: #17263d;
    --bubble: #181d24; --bubble-out: #1f3a26; --bubble-creator: #3a1f2b;
    --code: #12161b; --shadow: none; --overlay: rgba(0, 0, 0, .55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1318; --card: #181d24; --ink: #e8ebf0; --muted: #9aa3b0; --line: #2a313b; --line-soft: #20262e;
  --accent: #f0709f; --accent-ink: #f6a8c6; --accent-soft: #3a1f2b; --on-accent: #1a0b12;
  --ok: #5fd39a; --ok-soft: #14301f; --warn: #f2c25c; --warn-ink: #f2c25c; --warn-soft: #3a2e12;
  --bad: #ff8f84; --bad-soft: #3d1d1a; --info: #8fb8f5; --info-soft: #17263d;
  --bubble: #181d24; --bubble-out: #1f3a26; --bubble-creator: #3a1f2b;
  --code: #12161b; --shadow: none; --overlay: rgba(0, 0, 0, .55); color-scheme: dark;
}

* { box-sizing: border-box; }
/* `hidden` manda siempre, aunque la clase ponga display:flex (p. ej. .copybox). */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
           clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--text-m)/1.45 var(--font);
       font-variant-numeric: tabular-nums; }
body.has-tabs { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); }
a { color: var(--accent); }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- cabecera */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--card);
       border-bottom: 1px solid var(--line); }
.top-in { max-width: 760px; margin: 0 auto; min-height: var(--top-h); padding: 8px 16px;
          display: flex; align-items: center; gap: 10px; }
.top h1 { font-size: var(--text-l); margin: 0; font-weight: 700; text-wrap: balance; min-width: 0;
          overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { color: var(--accent); text-decoration: none; font-size: 26px; line-height: 1; padding: 0 4px 2px 0; }
.sp { flex: 1; }

/* ---- barra de abajo de la creadora en el móvil (Contenido · Perfil) */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card);
        border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
/* Una columna por sección, en una sola fila. */
.tabs-in { max-width: 760px; margin: 0 auto; height: var(--tabs-h); display: grid; grid-auto-flow: column;
           grid-auto-columns: minmax(52px, 1fr); overflow-x: auto; scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
          text-decoration: none; color: var(--muted); font-size: var(--text-s); font-weight: 600; white-space: nowrap;
          padding: 0 2px; }
.tabs a.on { color: var(--accent); }

/* ---- contenido */
main { max-width: 760px; margin: 0 auto; padding: 12px 16px 32px; display: grid; gap: 10px; }
main.wide { max-width: 1100px; }
main.full { max-width: none; }
/* «Revisar la visión» (equipo): tarjetas grandes, foto a la izquierda y las preguntas a la derecha. */
.vision-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.vision-head h2 { margin: 0 0 4px; }
.vision-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vision-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 16px; margin-top: 16px; }
.vision-card { display: grid; grid-template-columns: minmax(200px, 42%) 1fr; }
.vision-card.done { box-shadow: 0 0 0 2px var(--ok-soft), var(--shadow); }
.vision-media { background: #000; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.vision-media img, .vision-media video { width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.vision-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vision-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vision-said { margin: 0; }
.vision-q { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.vision-q legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.vision-fix { display: flex; flex-direction: column; gap: 4px; }
.vision-acts { display: flex; justify-content: flex-end; gap: 8px; }
.vision-rules { padding: 12px 16px; margin: 0 0 12px; }
.vision-rules summary { cursor: pointer; }
.vision-rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; margin-top: 8px; }
.vision-rules-grid p { margin: 4px 0; }
.vision-rules-grid ul { margin: 0; padding-left: 18px; }
@media (max-width: 700px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-card { grid-template-columns: 1fr; }
}
.sec { font-size: var(--text-s); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
       margin: 10px 4px 0; }
.lead { color: var(--muted); margin: 0 4px; font-size: var(--text-m); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.card.pad { padding: 14px 16px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
       color: inherit; text-decoration: none; min-width: 0; }
.row:last-child { border-bottom: 0; }
a.row:hover { background: var(--line-soft); }
.row > div { min-width: 0; }
.row b { display: block; font-size: var(--text-l); }
.row small, .muted { color: var(--muted); font-size: var(--text-s); }
.row small { display: block; overflow-wrap: anywhere; }
.row .chev { color: var(--muted); font-size: var(--text-l); }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
      display: grid; place-items: center; font-weight: 700; flex: none; text-transform: uppercase; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 12px; padding: 14px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: var(--text-s); }
.kv dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ---- etiquetas */
.chip, .pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px;
              font-size: var(--text-s); font-weight: 600; background: var(--line-soft); color: var(--ink);
              white-space: nowrap; line-height: 1.6; }
.chip.ok, .chip.approved, .pill.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn, .chip.pending, .pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.chip.bad, .chip.rejected, .pill.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info, .pill.info { background: var(--info-soft); color: var(--info); }
.chip.her, .pill.her { background: var(--accent-soft); color: var(--accent-ink); }
.pill i { font-style: normal; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---- botones y formularios */
.btn, button { font: inherit; font-size: var(--text-m); font-weight: 600; border: 1px solid var(--line);
               border-radius: var(--radius-s); padding: 0 14px; min-height: 36px; cursor: pointer;
               background: var(--card); color: var(--ink); text-decoration: none; display: inline-flex;
               align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:hover, button:hover { background: var(--line-soft); }
.btn.pri, button.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.pri:hover, button.pri:hover { filter: brightness(.94); }
.btn.dan, button.dan { background: var(--card); border-color: var(--bad-soft); color: var(--bad); }
.btn.dan.solid, button.dan.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost, button.ghost { background: transparent; border-color: transparent; color: var(--accent-ink); padding-inline: 8px; }
.btn.small, button.small { min-height: 32px; padding: 0 10px; font-size: var(--text-s); }
button:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
form.stack, .stack { display: grid; gap: 10px; padding: 14px 16px; }
label { font-size: var(--text-s); color: var(--muted); display: grid; gap: 4px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
                          border-radius: var(--radius-s); padding: 9px 10px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: var(--text-m); padding: 10px 16px;
         border-bottom: 1px solid var(--line-soft); }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.flash { padding: 10px 14px; border-radius: var(--radius-s); background: var(--warn-soft); color: var(--warn-ink); }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.copybox { display: flex; gap: 8px; align-items: center; padding: 12px 16px; }
.copybox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: var(--text-s)/1.4 var(--mono); }
.row .copybox { padding: 6px 0 0; }
.lead-note { margin: 6px 0 0; font-size: var(--text-m); white-space: pre-line; overflow-wrap: anywhere; }

/* ---- prompt por tramos */
details.fold { border-bottom: 1px solid var(--line-soft); }
details.fold:last-child { border-bottom: 0; }
details.fold summary { padding: 12px 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; gap: 8px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "▸"; margin-left: auto; color: var(--muted); }
details.fold[open] summary::after { content: "▾"; }
pre { margin: 0; padding: 12px 16px; font: var(--text-s)/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
      background: var(--code); color: var(--ink); }

/* ---- chat */
.chat { display: grid; gap: 4px; padding: 12px; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; background: var(--bubble); box-shadow: var(--shadow);
       overflow-wrap: anywhere; justify-self: start; }
/* Solo el texto del mensaje respeta sus saltos de línea; la sangría de la plantilla, no. */
.msg .txt { white-space: pre-wrap; }
.msg.user { justify-self: end; background: var(--bubble-out); }
.msg.creadora { background: var(--bubble-creator); }
.msg .who { display: block; font-size: var(--text-s); font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.msg .when { display: block; font-size: var(--text-s); color: var(--muted); text-align: right; margin-top: 2px; font-variant-numeric: tabular-nums; }
.jev { font-size: var(--text-s); color: var(--muted); padding: 0 6px 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.jev b { color: var(--ink); font-weight: 600; }

/* ---- bóveda de la creadora */
.drop { display: grid; gap: 4px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius);
        padding: 18px 16px; cursor: pointer; background: var(--card); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { display: none; }
.uploads { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.uploads li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: var(--text-s); }
.uploads li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uploads progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--accent); }
.uploads li.bad .state { color: var(--bad); white-space: normal; }
.uploads li.bad { grid-template-columns: 1fr; }
.uploads li button { justify-self: start; }
/* En el móvil no se arrastra: «Elegir de mi galería»; con ratón, «o arrastrarlos aquí». */
.drop .on-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .drop .on-touch { display: none; } .drop .on-mouse { display: inline; } }
.upload-done { display: grid; gap: 6px; padding: 12px; border-radius: var(--radius-s); background: var(--ok-soft); }
.upload-done p { margin: 0; }
.upload-done button { justify-self: start; }
.first-steps { padding: 16px; }
.first-steps h3 { margin: 0 0 8px; }
.first-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.outfit-head { display: flex; gap: 6px; align-items: center; padding: 10px 12px 0; }
.outfit-head input { font-weight: 700; background: transparent; border-color: transparent; padding-inline: 4px; }
.outfit-head input:focus { background: var(--bg); border-color: var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 10px 12px 12px;
        min-height: 70px; border-radius: var(--radius); }
.grid.over { background: var(--accent-soft); }
.empty { color: var(--muted); font-size: var(--text-s); padding: 12px; grid-column: 1 / -1; }
.item { background: var(--bg); border-radius: var(--radius-s); overflow: hidden; display: grid; min-width: 0; }
.item.dragging { opacity: .4; }
.thumb { aspect-ratio: 3 / 4; max-width: 100%; background: var(--line-soft); display: flex; align-items: center; justify-content: center; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb audio { width: 92%; }
.thumb .gone { color: var(--muted); font-size: var(--text-s); padding: 8px; text-align: center; }
.meta { padding: 8px; display: grid; gap: 6px; }
.line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.line select { width: auto; flex: 1; padding: 5px 6px; font-size: var(--text-s); }
.item details summary { cursor: pointer; font-size: var(--text-s); color: var(--accent); font-weight: 600; }
.item details[open] { display: grid; gap: 6px; }
.note { font-size: var(--text-s); color: var(--bad); }
.queue { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.queue .reason { display: none; gap: 6px; }
.queue .reason.open { display: grid; }

/* ---- equipo (panel v2): barra lateral, barra de abajo en el móvil y ancho completo */
.side { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card);
          border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
          display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); }
.tabbar > a, .tabbar summary { display: flex; align-items: center; justify-content: center; height: var(--tabs-h);
                               text-decoration: none; color: var(--muted); font-size: var(--text-s); font-weight: 600;
                               cursor: pointer; list-style: none; }
.tabbar summary::-webkit-details-marker { display: none; }
.tabbar > a.on, .tabbar .more.on summary, .tabbar .more[open] summary { color: var(--accent); }
.tabbar .more { position: relative; }
.more-menu { position: absolute; right: 8px; bottom: calc(var(--tabs-h) + 4px); min-width: 180px; background: var(--card);
             border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(20, 28, 38, .14);
             display: grid; padding: 6px; }
.more-menu a { padding: 10px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.more-menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.more-menu form { padding: 4px 6px 2px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
body.has-side { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); }
body.has-side .toast { bottom: calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom, 0px)); }
.team-top .top-in { max-width: none; padding-inline: 16px; }
main.team { max-width: none; padding: 16px 16px 32px; }
@media (min-width: 900px) {
  body.has-side { padding-bottom: 0; padding-left: var(--side-w); }
  body.has-side .toast { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: calc(50% + var(--side-w) / 2); }
  .tabbar { display: none; }
  .side { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 11;
          width: var(--side-w); background: var(--card); border-right: 1px solid var(--line);
          padding: calc(14px + env(safe-area-inset-top, 0px)) 12px 14px; gap: 12px; }
  .team-top .top-in { padding-inline: 24px; }
  main.team { padding: 20px 24px 40px; }
}
.side-brand { font-weight: 700; font-size: var(--text-l); color: var(--ink); text-decoration: none; padding: 4px 10px 8px;
              display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); flex: none; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--radius-s);
              color: var(--ink); text-decoration: none; font-weight: 500; }
.side-nav a:hover { background: var(--line-soft); }
.side-nav a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--warn-soft);
         color: var(--warn-ink); font-size: var(--text-s); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; display: grid; gap: 6px; padding: 10px; border-top: 1px solid var(--line-soft); }
.side-foot small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot button { justify-self: start; padding-inline: 0; }

/* ---- creadora: secciones arriba en el ordenador y abajo en el móvil */
.cnav { display: none; gap: 4px; }
.cnav a { padding: 6px 10px; border-radius: var(--radius-s); color: var(--muted); text-decoration: none; font-weight: 600; }
.cnav a.on { color: var(--accent-ink); background: var(--accent-soft); }
@media (min-width: 900px) {
  .cnav { display: flex; }
  .cnav-bottom { display: none; }
  body.has-tabs:has(.cnav-bottom) { padding-bottom: 0; }
}

/* ---- regiones que se cargan como fragmentos (panel.js) */
.region { min-width: 0; transition: opacity .15s; }
.region[aria-busy="true"] { opacity: .45; pointer-events: none; }
.region:focus { outline: none; }
.region > .empty { padding: 32px 16px; text-align: center; font-size: var(--text-m); }

/* ---- listas del equipo: lista + detalle, filtros, tablas y páginas */
.split { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: var(--list-w) minmax(0, 1fr); }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.toolbar label { min-width: 140px; }
.toolbar input[type="search"] { min-width: 200px; flex: 1; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-m); }
.tbl th { text-align: left; font-size: var(--text-s); color: var(--muted); font-weight: 600; text-transform: uppercase;
          letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.on td { background: var(--accent-soft); }
.tbl a { color: inherit; text-decoration: none; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px;
         font-size: var(--text-s); color: var(--muted); }

/* ---- pasos (alta) */
.steps { list-style: none; margin: 0; padding: 4px 0; }
.steps li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 16px; border-bottom: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: "?"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
                    font-size: var(--text-s); font-weight: 700; background: var(--line-soft); color: var(--muted); }
.steps li.ok::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.steps li[data-n]:not(.ok)::before { content: attr(data-n); }
.steps li.step-current::before, .steps li.step-waiting::before { background: var(--accent); color: var(--on-accent); }
.steps li b, .steps li small { display: block; }
.steps li small { color: var(--muted); font-size: var(--text-s); margin-top: 2px; overflow-wrap: anywhere; }
.steps li.no::before { content: "✗"; background: var(--bad-soft); color: var(--bad); }

/* ---- Hoy: grupos de tareas (revisión con «Una a una») */
.group { border-bottom: 1px solid var(--line-soft); }
.group:last-child { border-bottom: 0; }
.group > .row { border-bottom: 0; flex-wrap: wrap; }
.thumbs { display: flex; gap: 4px; align-items: center; flex: none; }
.thumbs .mini { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--line-soft); flex: none;
                display: grid; place-items: center; font-size: var(--text-s); color: var(--muted); }
.thumbs .mini img, .thumbs .mini video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .plus { font-size: var(--text-s); font-weight: 700; color: var(--muted); padding-left: 2px; font-variant-numeric: tabular-nums; }
details.one { padding: 0 16px 12px; }
details.one > summary { cursor: pointer; color: var(--accent); font-size: var(--text-s); font-weight: 600; list-style: none; width: max-content; }
details.one > summary::-webkit-details-marker { display: none; }
details.one > summary::after { content: " ▸"; }
details.one[open] > summary::after { content: " ▾"; }
details.one .queue { margin-top: 10px; }
.done-line { color: var(--muted); font-size: var(--text-s); margin: 4px; }

/* ---- Chats: bandejas y lista (región chats-lista); chat y ficha (región chats-detalle).
   Móvil: lista y chat son dos pantallas. Ordenador: lista y chat; desde 1440 px, también la ficha
   y el porqué en una columna a la derecha (por debajo, el porqué sale en una hoja). */
.inbox { display: grid; gap: 16px; align-items: start; }
.inbox-list, .list-col, .chat-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.list-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.list-head b:focus { outline: none; }
.list-head small { color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
a.row.on { background: var(--accent-soft); }
.row .chips { margin-top: 4px; }
.chat-detail { display: grid; gap: 16px; align-items: start; }
.chat-head { border-bottom: 1px solid var(--line-soft); }
.chat-head b:focus { outline: none; }
.note-line { margin: 0; padding: 8px 16px 0; font-size: var(--text-s); color: var(--muted); }
.mthumb { display: block; margin: 2px 0 4px; }
.mthumb img, .mthumb video { display: block; max-width: min(220px, 100%); max-height: 260px; border-radius: 10px; object-fit: cover; }
.mthumb audio { max-width: 100%; }
.ficha .kv { grid-template-columns: minmax(96px, 40%) 1fr; }
.ficha .acts:empty { display: none; }
details.remove > summary { cursor: pointer; list-style: none; }
details.remove > summary::-webkit-details-marker { display: none; }
details.remove { display: grid; justify-items: end; gap: 8px; max-width: 60%; }
.back-list { text-decoration: none; font-weight: 600; }
@media (max-width: 899px) {
  .inbox.has-chat > #chats-lista, .inbox:not(.has-chat) > #chats-detalle { display: none; }
}
@media (min-width: 900px) {
  .only-phone { display: none !important; }
  .inbox { grid-template-columns: var(--list-w) minmax(0, 1fr); }
}

/* ---- Sistema */
.sys-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .sys-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---- piezas sueltas de las fichas del equipo (Creadoras, S2) */
.pile { display: grid; gap: 12px; min-width: 0; }
.chips.pad { padding: 0 16px 12px; }
.card > .flash { margin: 0 16px 12px; }

/* ---- aviso flotante */
.toast { position: fixed; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--ink); color: var(--card);
         padding: 10px 14px; border-radius: var(--radius-s); font-size: var(--text-m); max-width: calc(100% - 32px);
         bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
body.has-tabs .toast { bottom: calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 700px) {
  main { padding-top: 16px; }
}
@media (max-width: 400px) {
  .tabs a { font-size: var(--text-s); letter-spacing: -.01em; }
}
/* ---- Sistema: el Telegram de cada persona del equipo */
.row small.telegram-state { display: flex; align-items: center; gap: 6px; }
.lead.in-card { padding: 12px 16px; margin: 0; }
.row > button, .row > .btn { flex: none; white-space: nowrap; }
.row small.bot-line { display: flex; align-items: center; gap: 6px; }
.help-link { display: inline-block; padding: 12px 0; }

/* ---- «Tu alta» (creadora, desde el móvil): el paso que toca abierto y con su botón a todo
   lo ancho; los hechos, en una línea; los que aún no se pueden hacer, apagados. */
.alta { padding: 4px 0; }
.alta-kicker { margin: 12px 16px 2px; font-size: var(--text-s); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
               color: var(--muted); }
.alta-steps { list-style: none; margin: 0; padding: 0; }
.alta-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.alta-step:last-child { border-bottom: 0; }
.alta-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
            font-size: var(--text-m); font-weight: 700; background: var(--line-soft); color: var(--muted); }
.alta-body { display: grid; gap: 8px; min-width: 0; flex: 1; padding-top: 3px; }
.alta-body b { font-size: var(--text-l); }
.alta-body p { margin: 0; font-size: var(--text-m); line-height: 1.45; }
.alta-step.current .alta-num, .alta-step.waiting .alta-num { background: var(--accent); color: var(--on-accent); }
.alta-step.done .alta-num { background: var(--ok-soft); color: var(--ok); }
.alta-step.done b { font-weight: 600; color: var(--muted); }
.alta-step.locked { opacity: .55; }
.alta-cta { width: 100%; min-height: 46px; display: grid; place-items: center; font-size: var(--text-l); text-decoration: none; }
.alta-copy { padding: 0; }
.alta-form .check { padding: 4px 0; }
.alta-email { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .alta-cta { width: auto; justify-self: start; padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ==== Piezas del panel v3 (plan 10, claim 1) ============================================ */

/* ---- títulos de página y de bloque */
.page-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 4px 2px; }
.page-h h2 { margin: 0; font-size: var(--text-xl); font-weight: 650; letter-spacing: -.01em; }
.page-h small { color: var(--muted); font-size: var(--text-m); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.card-h h3 { margin: 0; font-size: var(--text-l); font-weight: 600; }

/* ---- control segmentado: pestañas, filtros y bandejas cortas (enlaces o botones) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--line-soft); max-width: 100%; }
.seg > a, .seg > button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px;
                          border: 0; border-radius: 7px; background: transparent; color: var(--muted);
                          font-size: var(--text-m); font-weight: 600; text-decoration: none; white-space: nowrap; }
.seg > a:hover, .seg > button:hover { color: var(--ink); background: transparent; }
.seg > .on, .seg > [aria-current], .seg > [aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg .n { font-size: var(--text-s); color: var(--muted); font-weight: 700; }

/* ---- menú «⋯»: lo que pausa, cambia o borra (details.menu > summary + .menu-list) */
details.menu { position: relative; flex: none; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; display: grid;
             padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
             box-shadow: 0 8px 28px rgba(22, 26, 34, .16); }
.menu-list > a, .menu-list > button { justify-content: flex-start; min-height: 40px; padding: 0 12px; border: 0;
                                      border-radius: var(--radius-s); background: transparent; color: var(--ink);
                                      font-weight: 500; text-decoration: none; text-align: left; }
.menu-list > a:hover, .menu-list > button:hover { background: var(--line-soft); }
.menu-list > .dan { color: var(--bad); }
.menu-list hr { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 0; }

/* ---- diálogo (confirmación) y hoja (abajo en el móvil, a la derecha en el ordenador) */
dialog.dlg, dialog.sheet { border: 0; padding: 0; color: var(--ink); background: var(--card); max-width: 100vw; }
dialog.dlg::backdrop, dialog.sheet::backdrop { background: var(--overlay); }
dialog.dlg { width: min(440px, calc(100vw - 32px)); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .2); }
.dlg-in, .sheet-in { display: grid; gap: 12px; padding: 18px; }
.dlg-in h3, .sheet-in h3 { margin: 0; font-size: var(--text-l); }
.dlg-in p { margin: 0; }
.dlg-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
dialog.sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-height: 88vh; overflow: auto;
               border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
dialog.sheet .grab { width: 36px; height: 4px; border-radius: 4px; background: var(--line); justify-self: center; margin-top: -6px; }
.sheet-close { justify-self: end; }
@media (min-width: 900px) {
  dialog.sheet { inset: 0 0 0 auto; height: 100vh; max-height: none; width: 420px; border-radius: 0; }
  dialog.sheet .grab { display: none; }
}

/* ---- Hoy: una tarea por fila, con su botón */
.task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center;
        padding: 12px 16px; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.task:first-child { border-top: 0; }
.task b { font-weight: 600; }
.task .why { grid-column: 1; color: var(--muted); font-size: var(--text-m); overflow-wrap: anywhere; }
.task .go { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 8px; }

/* ---- pasos de un chat (Charla › Directo pedido › La atiende ella) */
.phase-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: var(--text-s); font-weight: 600;
               color: var(--muted); list-style: none; margin: 0; padding: 0; }
.phase-steps li { padding: 3px 9px; border-radius: 99px; }
.phase-steps li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.phase-steps li.on { background: var(--accent-soft); color: var(--accent-ink); }
.phase-steps li.off { padding-inline: 0; }

/* ---- franja del asistente (creadora): una línea en la cabecera; al tocarla, los números */
details.strip { position: relative; }
details.strip > summary { list-style: none; cursor: pointer; }
details.strip > summary::-webkit-details-marker { display: none; }
details.strip .strip-nums { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px;
                            background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
                            box-shadow: 0 8px 28px rgba(22, 26, 34, .16); }

/* ---- filas de fotos (bóveda): la foto y su estado; lo demás, en la hoja */
.rail { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.th { position: relative; flex: none; width: 104px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
      background: var(--line-soft); border: 0; padding: 0; scroll-snap-align: start; cursor: pointer; }
.th img, .th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.th .pill { position: absolute; left: 6px; bottom: 6px; }
.th .gone { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: var(--text-s); }
@media (min-width: 900px) { .th { width: 132px; } }
/* Falta información (la visión no pudo): alerta arriba a la derecha; en su hoja, el aviso y el campo marcado. */
.th .alert { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px;
             border-radius: 50%; background: var(--warn-soft); color: var(--warn-ink); font-size: 14px; font-style: normal;
             box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.warn-note { color: var(--warn-ink); background: var(--warn-soft); padding: 10px 12px; border-radius: var(--radius-s); margin: 0; }
.need { outline: 2px solid var(--warn); outline-offset: 2px; }
/* «Borrar contenido…»: barra de selección y miniaturas marcables. */
.select-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bad-soft); }
.th .tick { display: none; position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%;
            place-items: center; background: var(--card); color: var(--card); border: 2px solid var(--line); font-size: 13px; }
.outfit.selecting .th .tick { display: grid; }
.outfit.selecting .th.picked .tick { background: var(--bad); border-color: var(--bad); color: #fff; }
.outfit.selecting .th.picked { outline: 3px solid var(--bad); outline-offset: -3px; }

/* ---- apartados plegables (perfil por apartados) */
details.acc { border-top: 1px solid var(--line-soft); }
details.acc:first-of-type { border-top: 0; }
details.acc > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 16px; cursor: pointer; list-style: none; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary > div { min-width: 0; flex: 1; }
details.acc > summary b { display: block; font-weight: 600; }
details.acc > summary small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.acc > summary::after { content: "›"; color: var(--muted); font-size: var(--text-l); transition: transform .15s; }
details.acc[open] > summary::after { transform: rotate(90deg); }
details.acc > .stack { padding-top: 0; }

/* ---- vista previa: burbujas como las ve el fan */
.preview { display: grid; gap: 6px; padding: 12px 16px 14px; }
.preview .msg { max-width: 100%; }

/* ---- en el móvil, cada control mide 44 px de alto como mínimo */
@media (max-width: 899px) {
  a.row, .row { min-height: 56px; }
  .btn, button, .seg > a, .seg > button, .menu-list > a, .menu-list > button { min-height: var(--hit); }
  .btn.small, button.small { min-height: var(--hit); padding: 0 12px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: var(--text-l); min-height: var(--hit); }
  .check { min-height: var(--hit); align-items: center; }       /* la fila entera es la zona de toque */
  .tabbar > a, .tabbar summary, .tabs a { min-height: var(--hit); }
}

/* ---- Chats (panel v3): barra en una línea, cabecera con «⋯», porqué en columna o en hoja */
.toolbar.nowrap { flex-wrap: nowrap; align-items: center; }
.toolbar.nowrap select { width: auto; flex: none; max-width: 45%; }
.row small.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head { flex-wrap: wrap; }
.card.chat-card { overflow: visible; }
.why-act { justify-self: start; padding: 0 6px 4px; }
.msg.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
.side-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 1440px) {
  .chat-detail { grid-template-columns: minmax(0, 1fr) 320px; }
  .side-col { position: sticky; top: calc(var(--top-h) + 12px); }
  .ficha { position: static; }
}
@media (max-width: 1439px) { .ficha { display: none; } }
.toolbar.nowrap input[type="search"] { min-width: 0; }

/* ---- Creadora (panel v3): franja y bóveda por filas */
.card.outfit { overflow: visible; }                 /* el menú «⋯» no se corta en outfits cortos */
.card-h h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-in .check + .muted { margin-top: -4px; }
.upload-cta { min-height: 48px; font-size: var(--text-l); }
@media (min-width: 900px) { .upload-cta { justify-self: start; padding-inline: 22px; } }
@media (max-width: 899px) { details.strip > summary { min-height: var(--hit); } }

/* ---- Equipo (panel v3): menús que no se recortan y barras en una línea */
.card:has(details.menu[open]) { overflow: visible; }
.toolbar.one { flex-wrap: nowrap; align-items: center; }
.toolbar.one select { width: auto; flex: 0 1 auto; max-width: 38%; }
.toolbar.one input[type="search"] { min-width: 0; flex: 1 1 120px; }
@media (max-width: 899px) {
  /* Chats en el móvil: la barra se parte en dos líneas y las bandejas se deslizan en una sola,
     con el borde derecho difuminado para que se vea que hay más. */
  .toolbar.nowrap { flex-wrap: wrap; }
  .toolbar.nowrap select { max-width: none; flex: 1 1 100%; }
  .inbox-list .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
                     -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
                     mask-image: linear-gradient(to right, #000 82%, transparent); }
  .inbox-list .seg::-webkit-scrollbar { display: none; }
}
@media (max-width: 899px) {
  .back, .back-list { display: inline-flex; align-items: center; min-height: var(--hit); min-width: var(--hit); }
}

/* ---- Laboratorio */
.tbl td.cell-text { min-width: 200px; overflow-wrap: anywhere; }
.row > .chips { justify-content: flex-end; }
@media (max-width: 899px) { a.chip { min-height: var(--hit); padding-inline: 12px; } }

/* ---- Laboratorio: textos, prompt, batería y probador */
.field { display: grid; gap: 4px; min-width: 0; }
.field-l { font-size: var(--text-s); color: var(--muted); }
.field .seg { justify-self: start; }
/* Control segmentado de radios: el radio queda oculto pero sigue siendo el control (teclado y lectores). */
.seg > label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px;
               border-radius: 7px; background: transparent; color: var(--muted); font-size: var(--text-m);
               font-weight: 600; white-space: nowrap; cursor: pointer; }
.seg > label:hover { color: var(--ink); }
.seg > label > input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0; }
.seg > label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg > label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.line .pill { flex: none; }
.send { display: flex; gap: 8px; padding: 10px 12px; }
.send input { flex: 1; }
.probador { display: grid; gap: 12px; align-items: start; }
.probador-col { display: grid; gap: 10px; min-width: 0; }
#probador-hilo { max-height: min(60vh, 560px); overflow-y: auto; }
details.ajustes > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; cursor: pointer; list-style: none; }
details.ajustes > summary::-webkit-details-marker { display: none; }
details.ajustes > summary small { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.ajustes > summary::after { content: "›"; color: var(--muted); font-size: var(--text-l); transition: transform .15s; }
details.ajustes[open] > summary::after { transform: rotate(90deg); }
details.why-in { justify-self: start; padding: 0 6px 4px; }
details.why-in > summary { display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; cursor: pointer; list-style: none;
                           color: var(--accent-ink); font-size: var(--text-s); font-weight: 600; }
details.why-in > summary::-webkit-details-marker { display: none; }
details.why-in[open] { justify-self: stretch; background: var(--code); border-radius: var(--radius-s); }
@media (min-width: 900px) {
  .probador { grid-template-columns: minmax(0, 1fr) 300px; }
  .probador > .ajustes { grid-column: 2; grid-row: 1; }
  .probador > .probador-col { grid-column: 1; grid-row: 1; }
  details.ajustes > summary { display: none; }
}
@media (max-width: 899px) {
  .seg > label { min-height: var(--hit); }
  details.why-in > summary { min-height: var(--hit); }
}

/* ---- La ficha de la creadora (`ficha_panel.py`, `ficha.js`): una pregunta por pantalla, chips grandes,
   sí/no por elemento, precios por servicio, el ratito de Inicio y el medidor de Mi perfil. */
.fq { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fq-chip, .fq-seg button { white-space: normal; }
.fq-sec { margin: 0; color: var(--muted); font-size: var(--text-s); }
.fq-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fq-bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.fq-auto { display: inline-block; font-size: var(--text-s); font-weight: 700; border-radius: 99px; padding: 2px 8px;
  background: var(--ok-soft); color: var(--ok); }
.fq-campos { display: flex; flex-direction: column; gap: 22px; }
.fq-lab { margin: 0 0 8px; font-weight: 600; font-size: var(--text-m); }
.fq-lab.fq-mas { margin-top: 14px; }
.fq-chips, .fq-sugs { display: flex; flex-wrap: wrap; gap: 8px; }
.fq-sugs { margin-top: 10px; }
.fq-sugs small { width: 100%; color: var(--muted); font-size: var(--text-s); }
.fq-chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 14px;
  min-height: var(--hit, 44px); font-weight: 500; }
.fq-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.fq-chip.sug { border-style: dashed; font-size: var(--text-s); min-height: 36px; padding: 6px 12px; }
.fq-opts { display: flex; flex-direction: column; gap: 10px; }
.fq-opt { display: block; width: 100%; box-sizing: border-box; white-space: normal; border: 1.5px solid var(--line);
  background: var(--card); border-radius: var(--radius); padding: 12px 14px; text-align: left; font-weight: 400; }
.fq-opt b { display: block; font-size: var(--text-l); }
.fq-opt span { display: block; color: var(--muted); font-size: var(--text-s); margin-top: 2px; }
.fq-opt em { display: block; font-style: normal; font-size: var(--text-s); margin-top: 8px; padding: 8px 10px;
  border-radius: var(--radius-s); background: var(--bg); }
.fq-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.fq-txt { width: 100%; box-sizing: border-box; }
/* Enlaces: la ficha activa y las que ya tienen enlace (marca verde), y la tarjeta del enlace abierto. */
.fq-chip.ok { border-color: var(--ok); }
.fq-chip.on.ok { border-color: var(--accent); }
.fq-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  max-width: 620px; margin-top: 16px; display: flex; flex-direction: column; gap: 18px; }
.fq-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fq-card-top b { font-size: var(--text-l); }
.fq-sp { flex: 1; }
.fq-tag { font-size: var(--text-s); background: var(--bg); color: var(--muted); border-radius: 99px; padding: 3px 10px; }
.fq-campo { display: block; }
.fq-campo .fq-lab { display: block; margin-bottom: 6px; font-size: var(--text-s); }
.fq-opc { font-weight: 400; color: var(--muted); }
.fq-ayuda { display: block; margin-top: 5px; color: var(--muted); font-size: var(--text-s); }
.fq-enlace { font-size: var(--text-l); padding-top: 11px; padding-bottom: 11px; }
.fq-two { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; }
.fq-add { align-self: flex-start; margin-top: 16px; }
@media (max-width: 520px) { .fq-two { grid-template-columns: minmax(0, 1fr); } }
.fq-compacto { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.fq-yn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line-soft); }
.fq-yn:last-child { border-bottom: 0; }
.fq-yn.tres { flex-wrap: wrap; }
.fq-yn.tres .fq-seg { width: 100%; }
.fq-yn.tres .fq-seg button { flex: 1; }
.fq-seg { display: flex; gap: 6px; flex-shrink: 0; }
.fq-seg button { border: 1.5px solid var(--line); background: var(--card); padding: 6px 12px; font-size: var(--text-s); }
.fq-seg button.on.si { background: var(--ok); border-color: var(--ok); color: #fff; }
.fq-seg button.on.no { background: var(--ink); border-color: var(--ink); color: var(--card); }
.fq-seg button.on.extra { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fq-pgroup { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  margin-bottom: 12px; }
.fq-prow { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.fq-prow .fq-q { flex: 1; min-width: 0; }
.fq-pin { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.fq-pin input { width: 90px; text-align: right; }
.fq-extras { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.fq-xlab { margin: 0 0 4px; font-weight: 600; font-size: var(--text-s); }
.fq-xlab small { font-weight: 400; color: var(--muted); }
.fq-note { font-size: var(--text-s); color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 10px 12px; }
.fq-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.fq-big { width: 100%; min-height: 48px; justify-content: center; text-align: center; box-sizing: border-box; }
a.fq-big { display: flex; align-items: center; margin: 8px 0; }
.fq-ratito { background: var(--accent-soft); border-radius: var(--radius); padding: 16px; margin: 16px 0 8px; }
.fq-ratito h2 { margin: 4px 0; font-size: var(--text-l); }
.fq-kicker { margin: 0; font-size: var(--text-s); font-weight: 700; color: var(--accent-ink); text-transform: uppercase;
  letter-spacing: .04em; }
.fq-puntos { display: flex; gap: 6px; margin: 10px 0; }
.fq-puntos i { flex: 1; height: 6px; border-radius: 9px; background: var(--line); }
.fq-puntos i.h { background: var(--accent); }
.fq-h2 { font-size: var(--text-l); margin: 20px 0 8px; }
section.card .fq-h2 { margin-top: 0; }
.fq-ico { font-size: 22px; }
.fq-num { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.fq-meter { margin: 12px 0; }
.fq-meter .fq-bar { height: 12px; }
.fq-sinr { font-style: italic; }
.fq-hero { text-align: center; }
.fq-emo { font-size: 44px; margin: 0; }
.fq-pre { white-space: pre-wrap; font: inherit; font-size: var(--text-s); margin: 8px 0 0; }
.line > .fq-txt { flex: 1; width: auto; min-width: 0; }

/* Chats de la creadora (`creator/chats.html`): una fila por chat, con su motivo y sus botones. */
#control .line + .line { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.chat-list { list-style: none; margin: 8px 0 0; padding: 0; }
.chat { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
        padding: 10px 0; border-top: 1px solid var(--line-soft); }
.chat:first-child { border-top: 0; }
.chat-btns { display: flex; gap: 6px; flex-wrap: wrap; }
