/* ════════════════════════════════════════════════════════════════════════════════════════════════
   Luminous App — el lenguaje visual de las pantallas rediseñadas del área app (Crecimiento, Agentes
   IA y las que vayan llegando). UNA familia de piezas en Components/Ui (Lx*): lo que antes vivía
   copiado en cada página (gn-, gmd-, gm-, ai-…) se pinta aquí una sola vez.

   Reparto (lo fija LuminousCssScopeTests): TODA regla va bajo .app-shell y nombra una pieza lx-.
   Sólo tokens de base.css; los colores de canal salen de ChannelIcon. Unidades en rem salvo bordes.
   ════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── Fondo de las pantallas Luminous ─────────────────────────────────────────────────────────── */
.app-shell .lx-page { display: flex; flex-direction: column; gap: 1.6rem; max-width: 1180px; margin: 0 auto; padding-bottom: 2.5rem; min-width: 0; }
.app-shell .lx-page--narrow { max-width: 1080px; }
.app-shell .lx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-shell .lx-muted { margin: 0; color: var(--lx-ink-muted); font-size: .9rem; line-height: 1.5; }
.app-shell .lx-eyebrow { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-ink-muted); }

/* ── Cabecera de página: título grande, una frase y pastillas de acción ─────────────────────── */
.app-shell .lx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.app-shell .lx-head-text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.app-shell .lx-head-text h1 { margin: 0; font-size: 1.95rem; font-weight: 900; color: var(--brand-dark); letter-spacing: -.01em; text-wrap: balance; }
.app-shell .lx-head-text p { margin: 0; color: var(--lx-ink-muted); font-size: .98rem; }
.app-shell .lx-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.app-shell .lx-back {
    display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start;
    min-height: 44px; padding: 0; border: 0; background: none;
    color: var(--lx-ink-muted); font: inherit; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.app-shell .lx-back:hover { color: var(--primary); }
.app-shell .lx-back:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius); }

.app-shell .lx-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 44px; padding: 0 1rem; box-sizing: border-box;
    border-radius: var(--radius-full); border: 1px solid var(--lx-line); background: var(--bg-card);
    color: var(--brand-dark); font: inherit; font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer;
    transition: border-color var(--transition);
}
.app-shell .lx-pill:hover { border-color: var(--primary-mid); }
.app-shell .lx-pill:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-pill.is-warn { border-color: color-mix(in srgb, var(--warning) 45%, transparent); color: #92400e; }
.app-shell .lx-pill-count {
    display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 .4rem; box-sizing: border-box;
    border-radius: var(--radius-full); background: var(--primary); color: #fff; font-size: .75rem; font-variant-numeric: tabular-nums;
}
.app-shell .lx-icon-btn {
    width: 44px; height: 44px; flex: none; border-radius: var(--radius-full); border: 1px solid var(--lx-line);
    background: var(--bg-card); color: var(--brand-dark); display: inline-grid; place-items: center; cursor: pointer;
}
.app-shell .lx-icon-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-icon-btn--square { border-radius: var(--radius-lg); width: 48px; height: 48px; }

/* Menú «⋯» */
.app-shell .lx-more { position: relative; }
.app-shell .lx-more-scrim { position: fixed; inset: 0; z-index: 40; }
.app-shell .lx-more-menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 41; min-width: 240px;
    display: flex; flex-direction: column; padding: .35rem;
    border-radius: var(--radius-lg); border: 1px solid var(--lx-line); background: var(--bg-card); box-shadow: var(--shadow-lg);
}
.app-shell .lx-more-menu > a, .app-shell .lx-more-menu > button {
    display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .8rem; border: 0; border-radius: var(--radius);
    background: none; color: var(--text); font: inherit; font-size: .9rem; text-align: start; text-decoration: none; cursor: pointer;
}
.app-shell .lx-more-menu > a:hover, .app-shell .lx-more-menu > button:hover { background: var(--surface-hover); }
.app-shell .lx-more-menu > .is-danger { color: var(--danger); }

/* ── Botones de la familia ───────────────────────────────────────────────────────────────────── */
.app-shell .lx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 48px; padding: 0 1.25rem; box-sizing: border-box;
    border-radius: var(--radius-lg); border: 1px solid var(--lx-line); background: var(--bg-card);
    color: var(--brand-dark); font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.app-shell .lx-btn:hover:not(:disabled) { border-color: var(--primary-mid); }
.app-shell .lx-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-btn:disabled { opacity: .55; cursor: not-allowed; }
.app-shell .lx-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.app-shell .lx-btn--primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }
.app-shell .lx-btn--ai { background: var(--ai-action-gradient); border-color: transparent; color: #fff; box-shadow: var(--ai-action-shadow); }
.app-shell .lx-btn--ai:hover:not(:disabled) { filter: brightness(1.05); border-color: transparent; }
.app-shell .lx-btn--dark { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.app-shell .lx-btn--soft { background: var(--lx-tint); border-color: transparent; color: var(--brand-dark); }
.app-shell .lx-btn--warn { background: var(--warning-light); border-color: transparent; color: #7a3a0d; }
.app-shell .lx-btn--link { min-height: 40px; padding: 0 .75rem; border-color: transparent; background: transparent; color: var(--primary); }
.app-shell .lx-btn--link:hover:not(:disabled) { border-color: transparent; text-decoration: underline; }
.app-shell .lx-btn--lg { min-height: 58px; padding: 0 1.8rem; font-size: 1.05rem; border-radius: 18px; }
.app-shell .lx-btn--block { width: 100%; }
.app-shell .lx-btn-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem; }
.app-shell .lx-btn-row--between { justify-content: space-between; }
.app-shell .lx-spin {
    width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent;
    animation: lx-spin .8s linear infinite; flex: none;
}
@keyframes lx-spin { to { transform: rotate(360deg); } }

/* ── La pregunta grande (héroe navy) ─────────────────────────────────────────────────────────── */
.app-shell .lx-hero {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1.3rem;
    padding: 2.6rem 2.6rem 2.2rem; border-radius: var(--lx-radius-hero); background: var(--brand-dark); color: #fff;
}
.app-shell .lx-hero::after {
    content: ""; position: absolute; inset-inline-end: -110px; top: -130px; width: 420px; height: 420px; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--brand-indigo) 70%, transparent);
    box-shadow: 0 0 0 60px color-mix(in srgb, var(--brand-indigo) 6%, transparent), 0 0 0 120px color-mix(in srgb, var(--brand-indigo) 4%, transparent);
    pointer-events: none;
}
/* Los puntos de color del lienzo: canales «encendidos» alrededor de la pregunta. Decorativos. */
.app-shell .lx-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 93% 15%, var(--success) 0 6px, transparent 7px),
        radial-gradient(circle at 74% 64%, var(--accent) 0 5px, transparent 6px),
        radial-gradient(circle at 88% 84%, var(--brand-indigo) 0 4px, transparent 5px),
        radial-gradient(circle at 68% 20%, color-mix(in srgb, #fff 50%, transparent) 0 3px, transparent 4px);
}
.app-shell .lx-hero > * { position: relative; z-index: 1; }
.app-shell .lx-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-mid); }
.app-shell .lx-kicker-ic { color: var(--accent); display: inline-flex; }
/* El rótulo está pensado para los héroes oscuros (lavanda). Sobre una tarjeta clara se quedaba en ~1,5:1; ahí
   va en el azul de marca (~6:1), como el del Informe de valor. */
.app-shell .lx-card .lx-kicker { color: var(--primary); }
.app-shell .lx-hero h2 { margin: 0; max-width: 720px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; font-weight: 900; text-wrap: balance; color: #fff; }
.app-shell .lx-hero-sub { margin: 0; max-width: 720px; color: color-mix(in srgb, #fff 82%, var(--brand-indigo)); font-size: 1rem; line-height: 1.5; }
.app-shell .lx-hero-form { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 880px; }
.app-shell .lx-hero .lx-hero-form .lx-hero-input {
    flex: 1 1 420px; min-width: 0; height: 60px; box-sizing: border-box; padding: 0 1.3rem;
    border-radius: var(--radius-lg); border: 0; font: inherit; font-size: 1.05rem; color: var(--brand-dark); background: #fff;
}
.app-shell .lx-hero .lx-hero-form .lx-hero-input:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent); }
.app-shell .lx-hero-go {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 60px; padding: 0 1.7rem;
    border: 0; border-radius: var(--radius-lg); background: var(--ai-action-gradient); color: #fff;
    font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.app-shell .lx-hero-go:disabled { opacity: .7; cursor: progress; }
.app-shell .lx-hero-go:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent); }
.app-shell .lx-ideas { display: flex; flex-direction: column; gap: .55rem; }
.app-shell .lx-ideas-title { font-size: .86rem; color: var(--primary-mid); }
.app-shell .lx-ideas-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.app-shell .lx-idea {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1.1rem; box-sizing: border-box;
    border-radius: var(--radius-full); border: 1px solid var(--brand-indigo);
    background: color-mix(in srgb, var(--brand-indigo) 18%, var(--brand-dark));
    color: #fff; font: inherit; font-size: .92rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: background var(--transition);
}
.app-shell .lx-idea:hover { background: color-mix(in srgb, var(--brand-indigo) 32%, var(--brand-dark)); color: #fff; }
.app-shell .lx-idea:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent); }

/* ── Tarjeta base y secciones ────────────────────────────────────────────────────────────────── */
.app-shell .lx-card {
    display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1.6rem; min-width: 0;
    border-radius: var(--lx-radius); background: var(--bg-card); border: 1px solid var(--lx-line);
    box-shadow: none; transition: none;
}
/* landing-pages.css también define .lx-card / .lx-section (sitio público) y se carga en todo el producto: dentro de
   la app no pintan ni hover de tarjeta-enlace, ni párrafos que se estiran, ni el fondo y relleno de una sección. */
.app-shell .lx-card:hover { border-color: var(--lx-line); box-shadow: none; }
.app-shell .lx-card--dashed:hover { border-color: var(--lx-tint-line); }
.app-shell .lx-card--accent:hover { border-color: var(--primary); }
.app-shell .lx-card--soft:hover { border-color: transparent; }
.app-shell .lx-card p { flex: none; }
.app-shell .lx-card p:not([class]), .app-shell .lx-card li:not([class]) { font-size: inherit; line-height: inherit; color: inherit; }
.app-shell .lx-card ul:not([class]) { margin: 0; padding-left: 1.1rem; }
.app-shell .lx-card--dashed { border-style: dashed; border-color: var(--lx-tint-line); }
.app-shell .lx-card--accent { border: 2px solid var(--primary); }
.app-shell .lx-card--soft { background: var(--lx-tint-soft); border-color: transparent; }
.app-shell .lx-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.app-shell .lx-card-head h2, .app-shell .lx-card-head h3 { margin: 0; font-size: 1.12rem; font-weight: 700; color: var(--brand-dark); text-transform: none; letter-spacing: 0; }
.app-shell .lx-card-head p { margin: .2rem 0 0; color: var(--lx-ink-muted); font-size: .9rem; }
.app-shell .lx-section { display: flex; flex-direction: column; gap: .8rem; min-width: 0; padding: 0; background: none; }
.app-shell .lx-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; }
.app-shell .lx-section-head h2 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--brand-dark); }
.app-shell .lx-section-head span { font-size: .85rem; color: var(--lx-ink-muted); }
.app-shell .lx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.app-shell .lx-split { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: flex-start; }
.app-shell .lx-split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.app-shell .lx-split-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.app-shell .lx-skeleton {
    min-height: 200px; border-radius: var(--lx-radius);
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
    background-size: 200% 100%; animation: lx-shimmer 1.4s infinite;
}
@keyframes lx-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── «Te necesito para» ──────────────────────────────────────────────────────────────────────── */
.app-shell .lx-need { display: flex; flex-direction: column; gap: .75rem; }
.app-shell .lx-need-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .75rem; list-style: none; margin: 0; padding: 0; }
.app-shell .lx-need-item {
    display: flex; align-items: center; gap: 1rem; min-height: 76px; padding: 1.15rem 1.35rem; box-sizing: border-box;
    border-radius: var(--radius-xl); background: var(--bg-card); border: 1px solid var(--lx-line);
    color: var(--brand-dark); text-decoration: none; transition: transform var(--transition), box-shadow var(--transition);
}
.app-shell .lx-need-item:hover { box-shadow: var(--shadow); }
.app-shell .lx-need-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell button.lx-need-item { width: 100%; font: inherit; text-align: start; cursor: pointer; }
.app-shell .lx-need-item.is-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.app-shell .lx-need-item.is-warning { background: var(--warning-light); border-color: transparent; color: #7a3a0d; }
.app-shell .lx-need-count { font-size: 2.1rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; flex: none; }
.app-shell .lx-need-ic {
    flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
    background: var(--bg-card); color: var(--warning);
}
.app-shell .lx-need-item.is-primary .lx-need-ic { background: color-mix(in srgb, #fff 18%, transparent); color: #fff; }
.app-shell .lx-need-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.app-shell .lx-need-text strong { font-size: 1rem; }
.app-shell .lx-need-text span { font-size: .88rem; color: var(--lx-ink-muted); }
.app-shell .lx-need-item.is-primary .lx-need-text span { color: color-mix(in srgb, #fff 85%, var(--primary)); }
.app-shell .lx-need-item.is-warning .lx-need-text span { color: #7a3a0d; }
.app-shell .lx-need-go { margin-inline-start: auto; font-size: 1.2rem; flex: none; }
[dir="rtl"] .app-shell .lx-need-go, [dir="rtl"] .app-shell .lx-arrow { transform: scaleX(-1); }

/* ── Estado en una frase ─────────────────────────────────────────────────────────────────────── */
.app-shell .lx-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; color: var(--lx-ink-muted); }
.app-shell .lx-status-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: currentColor; flex: none; }
.app-shell .lx-status--success { color: #065f46; }
.app-shell .lx-status--warning { color: #92400e; }
.app-shell .lx-status--danger { color: #b91c1c; }
.app-shell .lx-status--info { color: var(--primary-dark); }
.app-shell .lx-status--neutral .lx-status-dot { background: transparent; border: 2px solid currentColor; box-sizing: border-box; }
.app-shell .lx-status.is-live .lx-status-dot { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); animation: lx-breathe 2.2s ease-in-out infinite; }
@keyframes lx-breathe { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 8%, transparent); } }

/* ── Tarjeta de entidad (misión, agente, campaña…) ───────────────────────────────────────────── */
.app-shell .lx-entity {
    display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; min-width: 0;
    border-radius: var(--lx-radius); background: var(--bg-card); border: 1px solid var(--lx-line);
}
.app-shell .lx-entity.is-draft { border-style: dashed; border-color: var(--lx-tint-line); }
.app-shell .lx-entity-head { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.app-shell .lx-entity-title { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; flex: 1; }
.app-shell .lx-entity-name {
    color: var(--brand-dark); font-weight: 700; font-size: 1.05rem; text-decoration: none;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.app-shell a.lx-entity-name:hover { color: var(--primary); }
.app-shell .lx-entity-sub { font-size: .86rem; color: var(--lx-ink-muted); }
.app-shell .lx-entity-actions { margin-inline-start: auto; align-self: flex-start; }
.app-shell .lx-entity-body { display: flex; flex-direction: column; gap: .75rem; font-size: .9rem; color: var(--lx-ink-muted); line-height: 1.5; }
.app-shell .lx-entity-body > p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app-shell .lx-next {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    min-height: 50px; padding: 0 1.1rem; box-sizing: border-box; border: 0; width: 100%;
    border-radius: var(--radius-lg); background: var(--lx-tint); color: var(--brand-dark);
    font: inherit; font-weight: 700; font-size: .93rem; text-align: start; text-decoration: none; cursor: pointer; transition: background var(--transition);
}
.app-shell .lx-next:hover { background: color-mix(in srgb, var(--primary) 14%, var(--bg-card)); }
.app-shell .lx-next:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-next--primary { background: var(--primary); color: #fff; justify-content: center; }
.app-shell .lx-next--primary:hover { background: var(--primary-dark); }
.app-shell .lx-next--warning { background: var(--warning-light); color: #7a3a0d; }
.app-shell .lx-next--warning:hover { background: color-mix(in srgb, var(--warning) 22%, var(--bg-card)); }
.app-shell .lx-next--ghost { background: var(--bg-card); border: 1px solid var(--lx-line); }
.app-shell .lx-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: .85rem 1rem; border-radius: var(--radius-lg); background: var(--lx-tint-soft); }
.app-shell .lx-metrics dt { font-size: .78rem; color: var(--lx-ink-muted); }
.app-shell .lx-metrics dd { margin: 0; font-size: 1.35rem; font-weight: 900; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.app-shell .lx-metrics dd.is-win { color: #065f46; }

/* ── Avatar del agente con sus canales en órbita ─────────────────────────────────────────────── */
.app-shell .lx-avatar { position: relative; flex: none; width: 76px; height: 76px; }
.app-shell .lx-avatar-orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--lx-tint-line); }
.app-shell .lx-avatar-core {
    position: absolute; inset: 12px; border-radius: 50%; background: var(--brand-dark); color: #fff;
    display: grid; place-items: center; font-weight: 900; font-size: 1.35rem; letter-spacing: .02em;
}
.app-shell .lx-avatar.is-muted .lx-avatar-core { background: var(--border); color: var(--lx-ink-muted); }
.app-shell .lx-avatar.is-muted .lx-avatar-orbit { border-color: var(--border-strong); }
.app-shell .lx-avatar.is-warn .lx-avatar-orbit { border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.app-shell .lx-avatar-badge {
    position: absolute; width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--bg-card);
    background: var(--bg-card); display: grid; place-items: center; box-shadow: var(--shadow-xs); font-size: .65rem; font-weight: 800; color: var(--brand-dark);
}
.app-shell .lx-avatar-badge--0 { inset-inline-end: -3px; top: 4px; }
.app-shell .lx-avatar-badge--1 { inset-inline-start: -3px; bottom: 8px; }
.app-shell .lx-avatar-badge--2 { inset-inline-end: 0; bottom: -3px; }
.app-shell .lx-avatar-live {
    position: absolute; inset-inline-end: 4px; bottom: 6px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--success); border: 3px solid var(--bg-card); box-sizing: border-box;
}
.app-shell .lx-avatar--sm { width: 44px; height: 44px; }
.app-shell .lx-avatar--sm .lx-avatar-orbit { display: none; }
.app-shell .lx-avatar--sm .lx-avatar-core { inset: 0; font-size: .95rem; }
.app-shell .lx-avatar--sm .lx-avatar-badge { display: none; }
.app-shell .lx-avatar--sm .lx-avatar-live { inset-inline-end: -2px; bottom: -2px; width: 14px; height: 14px; }
.app-shell .lx-avatar--lg { width: 92px; height: 92px; }
.app-shell .lx-avatar--lg .lx-avatar-core { inset: 14px; font-size: 1.6rem; }
.app-shell .lx-avatar.is-ondark .lx-avatar-core { background: #fff; color: var(--brand-dark); }
.app-shell .lx-avatar.is-ondark .lx-avatar-orbit { border-color: var(--brand-indigo); }
.app-shell .lx-avatar.is-ondark .lx-avatar-badge { border-color: var(--brand-dark); }
.app-shell .lx-avatar--xl { width: 150px; height: 150px; }
.app-shell .lx-avatar--xl .lx-avatar-core { inset: 14px; background: #fff; color: var(--brand-dark); font-size: 3rem; }
.app-shell .lx-avatar--xl .lx-avatar-orbit { border-color: var(--brand-indigo); }

/* ── Pasos del asistente ─────────────────────────────────────────────────────────────────────── */
.app-shell .lx-steps { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; font-weight: 700; color: var(--lx-ink-muted); }
.app-shell .lx-step { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: var(--radius-full); }
.app-shell .lx-step-n { display: inline-grid; place-items: center; min-width: 18px; }
.app-shell .lx-step.is-on { background: var(--brand-dark); color: #fff; }
.app-shell .lx-step.is-done { color: var(--success); }
.app-shell .lx-step-line { width: 28px; height: 2px; background: var(--border-strong); border-radius: 2px; }
.app-shell .lx-step-line.is-done { background: var(--primary); }
.app-shell .lx-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

/* ── Frase con huecos ────────────────────────────────────────────────────────────────────────── */
.app-shell .lx-sentence {
    margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.9; font-weight: 500; color: var(--brand-dark);
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem;
}
.app-shell .lx-sentence :is(button, select, input).lx-blank {
    font: inherit; font-weight: 800; color: var(--primary); background: var(--lx-tint); border: 0;
    border-bottom: 3px solid var(--primary); border-radius: 10px 10px 4px 4px; padding: 0 .7rem; cursor: pointer; max-width: 100%;
}
.app-shell .lx-sentence select.lx-blank { appearance: none; -webkit-appearance: none; padding-inline-end: .9rem; }
.app-shell .lx-sentence :is(button, select, input).lx-blank:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── Campos grandes ──────────────────────────────────────────────────────────────────────────── */
.app-shell .lx-field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.app-shell .lx-field > label, .app-shell .lx-field-label { font-size: .88rem; font-weight: 700; color: var(--lx-ink-muted); }
.app-shell .lx-field input.lx-input, .app-shell .lx-field textarea.lx-textarea {
    box-sizing: border-box; width: 100%; padding: .85rem 1.1rem; border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
    background: var(--bg-card); font: inherit; font-size: 1rem; color: var(--brand-dark);
}
.app-shell .lx-field textarea.lx-textarea { resize: vertical; line-height: 1.5; min-height: 96px; }
.app-shell .lx-field input.lx-input:focus, .app-shell .lx-field textarea.lx-textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }

/* ── Opciones como baldosas (radio) ──────────────────────────────────────────────────────────── */
.app-shell .lx-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.app-shell .lx-choice {
    display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-height: 64px; padding: .85rem 1rem; box-sizing: border-box;
    border-radius: var(--radius-lg); border: 1px solid var(--lx-line); background: var(--bg-card);
    font: inherit; text-align: start; cursor: pointer; transition: border-color var(--transition), background var(--transition);
}
.app-shell .lx-choice:hover { border-color: var(--primary-mid); }
.app-shell .lx-choice:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-choice[aria-checked="true"] { border: 2px solid var(--primary); background: var(--lx-tint); padding: calc(.85rem - 1px) calc(1rem - 1px); }
.app-shell .lx-choice-title { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 700; color: var(--brand-dark); }
.app-shell .lx-choice-hint { font-size: .82rem; color: var(--lx-ink-muted); line-height: 1.4; }
.app-shell .lx-choice[aria-checked="true"] .lx-choice-hint { color: var(--primary-dark); }

/* ── Pastillas (chips) ───────────────────────────────────────────────────────────────────────── */
.app-shell .lx-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.app-shell .lx-chip {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: 0 .85rem; box-sizing: border-box;
    border-radius: var(--radius-full); background: var(--lx-ground); border: 1px solid var(--lx-line);
    color: var(--brand-dark); font: inherit; font-size: .86rem; font-weight: 700;
}
.app-shell button.lx-chip { cursor: pointer; }
.app-shell button.lx-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-chip.is-on, .app-shell .lx-chip[aria-pressed="true"] { background: var(--lx-tint); border-color: var(--primary); color: var(--primary-dark); }
.app-shell .lx-chip--ok { background: var(--success-light); border-color: transparent; color: #065f46; }
.app-shell .lx-chip--warn { background: var(--warning-light); border-color: transparent; color: #92400e; }
.app-shell .lx-chip--add { background: var(--bg-card); border-style: dashed; border-color: var(--lx-tint-line); color: var(--primary); }

/* ── Frases resumen con «Cambiar» (pestañas de ajustes) ─────────────────────────────────────── */
.app-shell .lx-sum { padding: .4rem 1.6rem; border-radius: var(--lx-radius); background: var(--bg-card); border: 1px solid var(--lx-line); }
.app-shell .lx-sum-title { margin: 1rem 0 .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-ink-muted); }
.app-shell .lx-sum-list { margin: 0; }
.app-shell .lx-sum-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--lx-line); }
.app-shell .lx-sum-row:last-child { border-bottom: 0; }
.app-shell .lx-sum-row.is-editing { margin: 0 -1.6rem; padding-inline: 1.6rem; background: var(--lx-tint-soft); box-shadow: inset 3px 0 0 var(--primary); }
.app-shell .lx-sum-label { flex: 0 0 210px; margin: 0; font-size: .93rem; color: var(--lx-ink-muted); }
.app-shell .lx-sum-value { flex: 1 1 240px; margin: 0; min-width: 0; font-size: 1rem; font-weight: 700; color: var(--brand-dark); line-height: 1.45; }
.app-shell .lx-sum-value .lx-chips { font-weight: 700; }
.app-shell .lx-sum-hint { display: block; margin-top: .2rem; font-size: .84rem; font-weight: 500; color: var(--lx-ink-muted); }
.app-shell .lx-sum-change { flex: none; }

/* ── Embudo de cifras ────────────────────────────────────────────────────────────────────────── */
.app-shell .lx-funnel { display: grid; grid-template-columns: repeat(var(--lx-funnel-n, 5), minmax(0, 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.app-shell .lx-funnel-step { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.app-shell .lx-funnel-value { font-size: 1.85rem; font-weight: 900; color: var(--brand-dark); font-variant-numeric: tabular-nums; line-height: 1.1; }
.app-shell .lx-funnel-bar { display: block; height: 10px; border-radius: var(--radius-full); background: var(--primary); min-width: 10px; }
.app-shell .lx-funnel-track { display: block; height: 10px; border-radius: var(--radius-full); background: var(--border-light); }
.app-shell .lx-funnel-label { font-size: .86rem; color: var(--lx-ink-muted); line-height: 1.35; }
.app-shell .lx-funnel-step.is-indigo .lx-funnel-bar { background: var(--brand-indigo); }
.app-shell .lx-funnel-step.is-success .lx-funnel-bar { background: var(--success); }
.app-shell .lx-funnel-step.is-success .lx-funnel-value { color: #065f46; }
.app-shell .lx-funnel-step.is-warning .lx-funnel-bar { background: var(--warning); }
.app-shell .lx-funnel-step.is-warning .lx-funnel-value { color: #92400e; }
.app-shell .lx-funnel-step.is-empty .lx-funnel-bar { background: var(--border); }
.app-shell .lx-funnel--compact { --lx-funnel-n: 4; gap: .4rem; }
.app-shell .lx-funnel--compact .lx-funnel-value { display: none; }
.app-shell .lx-funnel--compact .lx-funnel-bar { height: 6px; width: 100% !important; }
.app-shell .lx-funnel--compact .lx-funnel-label { font-size: .76rem; }
.app-shell .lx-funnel--compact .lx-funnel-step:not(.is-on) .lx-funnel-bar { background: var(--border); }
.app-shell .lx-funnel--compact .lx-funnel-step.is-on .lx-funnel-label { color: var(--text); }

/* ── Feed (hoy / actividad / ahora mismo) ────────────────────────────────────────────────────── */
.app-shell .lx-feed { display: flex; flex-direction: column; gap: .9rem; list-style: none; margin: 0; padding: 0; }
.app-shell .lx-feed-item { display: flex; gap: .85rem; align-items: flex-start; min-width: 0; }
.app-shell a.lx-feed-item { text-decoration: none; color: inherit; border-radius: var(--radius-lg); }
.app-shell a.lx-feed-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-feed-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--lx-tint); color: var(--primary); }
.app-shell .lx-feed-ic.is-success { background: var(--success-light); color: #065f46; }
.app-shell .lx-feed-ic.is-warning { background: var(--warning-light); color: #92400e; }
.app-shell .lx-feed-ic.is-danger { background: var(--danger-light); color: #b91c1c; }
.app-shell .lx-feed-text { display: flex; flex-direction: column; gap: .12rem; min-width: 0; flex: 1; }
.app-shell .lx-feed-text strong { font-size: .95rem; color: var(--brand-dark); overflow-wrap: anywhere; }
.app-shell .lx-feed-text span { font-size: .86rem; color: var(--lx-ink-muted); overflow-wrap: anywhere; }
.app-shell .lx-feed-at { flex: none; font-size: .8rem; color: var(--lx-ink-muted); white-space: nowrap; }
.app-shell .lx-feed--rows { gap: .5rem; }
.app-shell .lx-feed--rows .lx-feed-item { padding: .75rem .85rem; border-radius: var(--radius-lg); background: var(--lx-tint-soft); align-items: center; }

/* ── Serie corta en columnas ─────────────────────────────────────────────────────────────────── */
.app-shell .lx-spark { display: flex; flex-direction: column; gap: .4rem; }
.app-shell .lx-spark-cols { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: .4rem; }
.app-shell .lx-spark-col { flex: 1; min-width: 2px; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--primary) 30%, var(--bg-card)); transition: background var(--transition); }
.app-shell .lx-spark-col:hover { background: var(--primary); }
.app-shell .lx-spark-col.is-last { background: var(--primary); }
.app-shell .lx-spark-axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--lx-ink-muted); }

/* ── Presupuesto ─────────────────────────────────────────────────────────────────────────────── */
.app-shell .lx-budget { display: flex; flex-direction: column; gap: .75rem; }
.app-shell .lx-budget-n { font-size: 1.6rem; font-weight: 900; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.app-shell .lx-budget-n small { font-size: .9rem; font-weight: 700; color: var(--lx-ink-muted); }
.app-shell .lx-meter { display: block; height: 8px; border-radius: var(--radius-full); background: var(--border-light); overflow: hidden; }
.app-shell .lx-meter-fill { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.app-shell .lx-meter.is-warn .lx-meter-fill { background: var(--warning); }
.app-shell .lx-meter.is-bad .lx-meter-fill { background: var(--danger); }
.app-shell .lx-budget-rows { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.app-shell .lx-budget-rows dt { font-size: .8rem; color: var(--lx-ink-muted); }
.app-shell .lx-budget-rows dd { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.app-shell .lx-budget--strip { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: 1.1rem 1.4rem; border-radius: var(--radius-xl); background: var(--bg-card); border: 1px solid var(--lx-line); }
.app-shell .lx-budget--strip .lx-budget-main { display: flex; flex-direction: column; gap: .4rem; flex: 1 1 320px; min-width: 0; }
.app-shell .lx-budget--strip .lx-budget-line { font-size: .92rem; color: var(--lx-ink-muted); }
.app-shell .lx-budget--strip .lx-budget-line strong { color: var(--brand-dark); }

/* ── Pestañas ────────────────────────────────────────────────────────────────────────────────── */
.app-shell .lx-tabs { display: flex; flex-wrap: nowrap; gap: .3rem; border-bottom: 1px solid var(--lx-line); overflow-x: auto; scrollbar-width: none; }
.app-shell .lx-tab {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: 0 1rem; box-sizing: border-box;
    border: 0; border-bottom: 3px solid transparent; background: none; margin-bottom: -1px;
    color: var(--lx-ink-muted); font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.app-shell .lx-tab:hover { color: var(--brand-dark); }
.app-shell .lx-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius); }
.app-shell .lx-tab[aria-selected="true"], .app-shell .lx-tab[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--primary); }
.app-shell .lx-tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .35rem; box-sizing: border-box; border-radius: var(--radius-full); background: var(--lx-tint); color: var(--primary-dark); font-size: .72rem; font-variant-numeric: tabular-nums; }
.app-shell .lx-tab-count.is-urgent { background: var(--primary); color: #fff; }

/* ── Lo que falta antes de activar ───────────────────────────────────────────────────────────── */
.app-shell .lx-ready-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.app-shell .lx-ready-head h1, .app-shell .lx-ready-head h2 { margin: 0; font-size: 1.85rem; font-weight: 900; color: var(--brand-dark); letter-spacing: -.01em; }
.app-shell .lx-ready-head p { margin: .3rem 0 0; font-size: 1.02rem; color: var(--text); }
.app-shell .lx-fix { display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem 1.5rem; border-radius: var(--lx-radius); background: var(--bg-card); border: 2px solid var(--primary); }
.app-shell .lx-fix-head { display: flex; align-items: flex-start; gap: .85rem; }
.app-shell .lx-fix-n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lx-tint); color: var(--primary); font-weight: 900; }
.app-shell .lx-fix-head h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--brand-dark); text-transform: none; letter-spacing: 0; }
.app-shell .lx-fix-head p { margin: .2rem 0 0; font-size: .92rem; color: var(--lx-ink-muted); }
.app-shell .lx-fix-body { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.app-shell .lx-fix.is-info { border: 1px solid var(--lx-line); }
.app-shell .lx-done-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.app-shell .lx-done { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--lx-line); font-size: .93rem; color: var(--brand-dark); }
.app-shell .lx-done-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--success-light); color: #065f46; }
.app-shell .lx-done small { display: block; color: var(--lx-ink-muted); font-size: .8rem; }
.app-shell .lx-bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.app-shell .lx-bullets li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; line-height: 1.45; color: var(--text); }
.app-shell .lx-bullets li::before { content: ""; flex: none; margin-top: .5rem; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ── Chat de ensayo ──────────────────────────────────────────────────────────────────────────── */
.app-shell .lx-try { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border-radius: var(--lx-radius); background: var(--bg-card); border: 1px solid var(--lx-line); }
.app-shell .lx-try-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--lx-line); display: flex; flex-direction: column; gap: .15rem; }
.app-shell .lx-try-head h2 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--brand-dark); }
.app-shell .lx-try-head span { font-size: .82rem; color: var(--lx-ink-muted); }
.app-shell .lx-try-log { list-style: none; margin: 0; padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; background: var(--lx-tint-soft); min-height: 320px; max-height: 520px; overflow-y: auto; }
.app-shell .lx-try-empty { margin: auto; text-align: center; color: var(--lx-ink-muted); font-size: .9rem; max-width: 280px; }
.app-shell .lx-msg { display: flex; flex-direction: column; gap: .45rem; max-width: 88%; }
.app-shell .lx-msg-text { padding: .7rem .9rem; font-size: .94rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-shell .lx-msg.is-customer { align-self: flex-end; align-items: flex-end; }
.app-shell .lx-msg.is-customer .lx-msg-text { border-radius: 16px 16px 4px 16px; background: var(--primary); color: #fff; }
.app-shell .lx-msg.is-agent { align-self: flex-start; }
.app-shell .lx-msg.is-agent .lx-msg-text { border-radius: 16px 16px 16px 4px; background: var(--bg-card); border: 1px solid var(--lx-line); color: var(--text); }
.app-shell .lx-msg.is-held .lx-msg-text { border-style: dashed; color: var(--lx-ink-muted); }
.app-shell .lx-msg-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.app-shell .lx-msg-chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 24px; padding: 0 .6rem; border-radius: var(--radius-full); background: var(--lx-tint); color: var(--primary-dark); font-size: .74rem; font-weight: 700; }
.app-shell .lx-msg-chip.is-rule, .app-shell .lx-msg-chip.is-warn { background: var(--warning-light); color: #7a3a0d; }
.app-shell .lx-msg-chip.is-action { background: var(--success-light); color: #065f46; }
.app-shell .lx-try-typing { display: inline-flex; gap: 4px; padding: .7rem .9rem; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--lx-line); align-self: flex-start; }
.app-shell .lx-try-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-light); animation: lx-bounce 1.2s infinite ease-in-out; }
.app-shell .lx-try-typing span:nth-child(2) { animation-delay: .15s; }
.app-shell .lx-try-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes lx-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.app-shell .lx-try-foot { padding: .8rem .9rem; border-top: 1px solid var(--lx-line); display: flex; flex-direction: column; gap: .6rem; }
.app-shell .lx-try-form { display: flex; gap: .5rem; }
.app-shell .lx-try .lx-try-form .lx-try-input { flex: 1; min-width: 0; height: 48px; box-sizing: border-box; padding: 0 1rem; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); font: inherit; font-size: .95rem; }
.app-shell .lx-try .lx-try-form .lx-try-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.app-shell .lx-try-send { flex: none; width: 48px; height: 48px; border-radius: var(--radius-lg); border: 0; background: var(--brand-dark); color: #fff; display: grid; place-items: center; cursor: pointer; }
.app-shell .lx-try-send:disabled { opacity: .5; cursor: not-allowed; }
.app-shell .lx-try-send:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-try-error { margin: 0; font-size: .85rem; color: #b91c1c; }
.app-shell .lx-try-cost { font-size: .78rem; color: var(--lx-ink-muted); }
/* El veredicto del ensayo, al pie del cajón «Probar»: la pregunta a la izquierda, los dos botones a la derecha. */
.app-shell .lx-try-verdict { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; }
.app-shell .lx-try-verdict > span { color: var(--lx-ink-muted); font-size: .9rem; }
.app-shell .lx-try-verdict-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 560px) { .app-shell .lx-try-verdict-acts { width: 100%; } .app-shell .lx-try-verdict-acts .lx-btn { flex: 1 1 0; } }

/* ── El momento en vivo (encendido / despegue) ───────────────────────────────────────────────── */
.app-shell .lx-stage {
    position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 2.4rem;
    padding: 3rem 2.6rem; border-radius: 32px; background: var(--brand-dark); color: #fff;
}
.app-shell .lx-stage-visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.app-shell .lx-stage-orbit { position: relative; width: min(400px, 100%); aspect-ratio: 1 / 1; }
.app-shell .lx-stage-ring { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand-indigo) 55%, transparent); }
.app-shell .lx-stage-ring--1 { inset: 4%; }
.app-shell .lx-stage-ring--2 { inset: 18%; border-style: dashed; }
.app-shell .lx-stage-ring--3 { inset: 32%; border: 2px solid var(--brand-indigo); animation: lx-pulse 2.4s ease-out infinite; }
@keyframes lx-pulse { 0% { transform: scale(.92); opacity: .8; } 100% { transform: scale(1.3); opacity: 0; } }
.app-shell .lx-stage-core { position: absolute; inset: 36%; display: grid; place-items: center; }
.app-shell .lx-stage-node {
    position: absolute; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: var(--radius-full);
    background: #fff; color: var(--brand-dark); font-size: .85rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-lg);
}
.app-shell .lx-stage-node.is-off { background: color-mix(in srgb, var(--brand-indigo) 22%, var(--brand-dark)); color: var(--primary-mid); box-shadow: none; border: 1px solid color-mix(in srgb, var(--brand-indigo) 50%, transparent); }
.app-shell .lx-stage-node-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); }
.app-shell .lx-stage-node.is-off .lx-stage-node-dot { background: transparent; border: 2px solid currentColor; box-sizing: border-box; }
.app-shell .lx-stage-node--0 { inset-inline-start: 62%; top: 10%; }
.app-shell .lx-stage-node--1 { inset-inline-start: -2%; top: 72%; }
.app-shell .lx-stage-node--2 { inset-inline-start: 64%; top: 70%; }
.app-shell .lx-stage-node--3 { inset-inline-start: -4%; top: 14%; }
.app-shell .lx-stage-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.app-shell .lx-stage-copy h1, .app-shell .lx-stage-copy h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.06; font-weight: 900; text-wrap: balance; color: #fff; }
.app-shell .lx-stage-copy > p { margin: 0; font-size: 1.08rem; line-height: 1.5; color: color-mix(in srgb, #fff 82%, var(--brand-indigo)); }
.app-shell .lx-stage-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.app-shell .lx-stage-event { display: flex; gap: .85rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 18px; background: #fff; color: var(--brand-dark); }
.app-shell .lx-stage-event span { display: flex; flex-direction: column; gap: .1rem; min-width: 0; font-size: .86rem; color: var(--lx-ink-muted); }
.app-shell .lx-stage-event strong { font-size: .95rem; color: var(--brand-dark); }
.app-shell .lx-stage-event.is-waiting { background: color-mix(in srgb, var(--brand-indigo) 20%, var(--brand-dark)); border: 1px dashed color-mix(in srgb, var(--brand-indigo) 60%, transparent); color: var(--primary-mid); align-items: center; }
.app-shell .lx-stage-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.app-shell .lx-stage .lx-btn--onDark { border-color: var(--brand-indigo); background: transparent; color: #fff; }
.app-shell .lx-stage .lx-btn--light { background: #fff; border-color: #fff; color: var(--brand-dark); }

/* ── Barra de guardado (variante Luminous de Ui/SaveBar) ─────────────────────────────────────── */
.app-shell .ui-savebar.lx-savebar { position: sticky; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 20; background: var(--brand-dark); color: #fff; border: 0; border-radius: var(--radius-xl); box-shadow: 0 18px 40px rgba(15, 23, 42, .22); padding: .9rem 1.1rem; }
.app-shell .ui-savebar.lx-savebar .ui-savebar-ghost { color: #fff; border-color: var(--brand-indigo); background: transparent; }
.app-shell .ui-savebar.lx-savebar .btn-primary { background: #fff; border-color: #fff; color: var(--brand-dark); }

/* ── Panel lateral: cuerpo cómodo para editar una frase ─────────────────────────────────────── */
.app-shell .lx-drawer-body { display: flex; flex-direction: column; gap: 1.1rem; }
.app-shell .lx-toggles { display: flex; flex-direction: column; gap: .5rem; }
.app-shell .lx-toggle { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 52px; padding: 0 1rem; border-radius: var(--radius-lg); border: 1px solid var(--lx-line); font-size: .95rem; color: var(--brand-dark); cursor: pointer; }
.app-shell .lx-toggle.is-on { border-color: var(--primary); background: var(--lx-tint-soft); }

/* ── Vacío ───────────────────────────────────────────────────────────────────────────────────── */
.app-shell .lx-empty { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.4rem 1.4rem; text-align: center; border-radius: var(--lx-radius); border: 1px dashed var(--lx-tint-line); background: var(--bg-card); color: var(--lx-ink-muted); }
.app-shell .lx-empty strong { font-size: 1.05rem; color: var(--brand-dark); }
.app-shell .lx-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.app-shell .lx-how li { display: flex; align-items: flex-start; gap: .75rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-xl); background: var(--bg-card); border: 1px solid var(--lx-line); font-size: .92rem; line-height: 1.5; color: var(--text); }
.app-shell .lx-how-n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--primary-light); color: var(--primary-dark); font-weight: 800; font-size: .85rem; }

/* ── Referencia a un registro: píldora en el texto y tarjeta (LxRecordRef) ─────────────────── */
.app-shell .lx-ref {
    display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; vertical-align: baseline;
    padding: .05rem .5rem .05rem .3rem; border-radius: 8px; border: 1px solid var(--lx-tint-line); background: var(--bg-card);
    color: var(--brand-dark); font-weight: 700; font-size: .88em; line-height: 1.5; text-decoration: none; white-space: nowrap;
}
.app-shell .lx-ref:hover { border-color: var(--primary); background: var(--lx-tint-soft); }
.app-shell .lx-ref:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-ref-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--lx-tint); color: var(--primary); flex: none; }
.app-shell .lx-ref-title { overflow: hidden; text-overflow: ellipsis; }
.app-shell .lx-ref-meta { color: var(--lx-ink-muted); font-weight: 600; }
.app-shell .lx-ref.is-private, .app-shell .lx-refcard.is-private { color: var(--lx-ink-muted); border-style: dashed; cursor: default; }
.app-shell .lx-ref.is-private .lx-ref-ic, .app-shell .lx-refcard.is-private .lx-ref-ic { background: var(--bg-subtle); color: var(--lx-ink-muted); }

.app-shell .lx-refcard { position: relative; display: flex; align-items: stretch; border-radius: var(--radius-lg); border: 1px solid var(--lx-line); background: var(--bg-card); transition: border-color var(--transition); }
.app-shell .lx-refcard:hover { border-color: var(--lx-tint-line); }
.app-shell .lx-refcard.is-private { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem .85rem; font-size: .88rem; }
.app-shell .lx-refcard-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; color: inherit; text-decoration: none; border-radius: inherit; }
.app-shell .lx-refcard-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-refcard-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--lx-tint); color: var(--primary); }
.app-shell .lx-refcard-ic--ticket { background: var(--warning-light); color: #92400e; }
.app-shell .lx-refcard-ic--quote { background: var(--success-light); color: #065f46; }
.app-shell .lx-refcard-ic--conversation { background: var(--bg-subtle); color: var(--brand-dark); }
.app-shell .lx-refcard-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.app-shell .lx-refcard-kind { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-ink-muted); }
.app-shell .lx-refcard-title { font-size: .92rem; color: var(--brand-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .lx-refcard-meta { font-size: .8rem; color: var(--lx-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .lx-refcard-activity { font-size: .78rem; color: var(--lx-ink-muted); }
.app-shell .lx-refcard.is-fresh .lx-refcard-activity { color: #065f46; font-weight: 700; }
.app-shell .lx-refcard-x { flex: none; align-self: center; margin-inline-end: .35rem; width: 32px; height: 32px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--lx-ink-muted); display: inline-grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity var(--transition); }
.app-shell .lx-refcard:hover .lx-refcard-x, .app-shell .lx-refcard-x:focus-visible { opacity: 1; }
.app-shell .lx-refcard-x:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── Presencia: quién está aquí ahora (LxPresenceStack) ─────────────────────────────────────── */
.app-shell .lx-presence { display: inline-flex; align-items: center; gap: .55rem; }
.app-shell .lx-presence-faces { display: inline-flex; }
.app-shell .lx-presence-face {
    width: 28px; height: 28px; border-radius: var(--radius-full); overflow: hidden; display: inline-grid; place-items: center;
    background: var(--lx-tint); color: var(--brand-dark); font-size: .62rem; font-weight: 900;
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px color-mix(in srgb, var(--success) 45%, transparent);
}
.app-shell .lx-presence-face + .lx-presence-face { margin-inline-start: -4px; }
.app-shell .lx-presence-face img { width: 100%; height: 100%; object-fit: cover; }
.app-shell .lx-presence-more { background: var(--bg-subtle); color: var(--lx-ink-muted); }
.app-shell .lx-presence-label { font-size: .82rem; font-weight: 700; color: #065f46; }

/* ── Plazo en una frase (LxSlaClock) ─────────────────────────────────────────────────────────── */
.app-shell .lx-sla { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--lx-ink-muted); white-space: nowrap; }
.app-shell .lx-sla-dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: currentColor; flex: none; }
.app-shell .lx-sla.is-late { color: #92400e; }
.app-shell .lx-sla.is-soon { color: var(--primary-dark); }
.app-shell .lx-sla-ring { width: 16px; height: 16px; flex: none; }
.app-shell .lx-sla-ring-bg { fill: none; stroke: var(--lx-line); stroke-width: 5; }
.app-shell .lx-sla-ring-fg { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.app-shell .lx-sla.is-late .lx-sla-ring-bg { stroke: color-mix(in srgb, var(--warning) 30%, transparent); }
.app-shell .lx-sla--lg { font-size: .95rem; gap: .65rem; }
.app-shell .lx-sla--lg .lx-sla-ring { width: 38px; height: 38px; }
.app-shell .lx-sla--lg .lx-sla-ring-bg, .app-shell .lx-sla--lg .lx-sla-ring-fg { stroke-width: 4; }

/* ── Acciones sugeridas (LxSmartActions) ─────────────────────────────────────────────────────── */
.app-shell .lx-smart { display: flex; flex-wrap: wrap; gap: .4rem; }
.app-shell .lx-smart-btn {
    min-height: 34px; padding: 0 .85rem; border-radius: var(--radius-full); border: 1px solid var(--lx-line); background: var(--bg-card);
    color: var(--brand-dark); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.app-shell .lx-smart-btn:hover { border-color: var(--primary-mid); }
.app-shell .lx-smart-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-smart-btn.is-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.app-shell .lx-smart-btn.is-primary:hover { background: var(--primary-dark); }

/* ── «Ponme al día» (LxCatchUp) ──────────────────────────────────────────────────────────────── */
.app-shell .lx-catchup { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: .4rem 0 .2rem; }
.app-shell .lx-catchup-stack { position: relative; width: min(100%, 520px); height: 1.5rem; margin-bottom: -2.4rem; }
.app-shell .lx-catchup-sheet { position: absolute; top: 0; height: 2.6rem; border-radius: 18px; border: 1px solid var(--lx-line); }
.app-shell .lx-catchup-sheet--3 { inset-inline: 2.2rem; background: var(--bg-subtle); }
.app-shell .lx-catchup-sheet--2 { inset-inline: 1.1rem; top: .5rem; background: var(--lx-tint-soft); }
.app-shell .lx-catchup-fold {
    position: relative; width: min(100%, 520px); box-sizing: border-box; display: flex; align-items: center; gap: .9rem;
    padding: 1rem 1.2rem; border-radius: 18px; border: 1px solid var(--lx-line); background: var(--bg-card); box-shadow: var(--shadow);
}
.app-shell .lx-catchup-faces { display: inline-flex; flex: none; }
.app-shell .lx-catchup-face { width: 30px; height: 30px; border-radius: var(--radius-full); overflow: hidden; display: inline-grid; place-items: center; background: var(--lx-tint); color: var(--brand-dark); font-size: .62rem; font-weight: 900; box-shadow: 0 0 0 2px var(--bg-card); }
.app-shell .lx-catchup-face + .lx-catchup-face { margin-inline-start: -9px; }
.app-shell .lx-catchup-face img { width: 100%; height: 100%; object-fit: cover; }
.app-shell .lx-catchup-fold-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.app-shell .lx-catchup-fold-text strong { font-size: 1rem; color: var(--brand-dark); }
.app-shell .lx-catchup-fold-text span { font-size: .84rem; color: var(--lx-ink-muted); }
.app-shell .lx-catchup-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.app-shell .lx-catchup-go { border-radius: var(--radius-full); background-size: 200% 100%; animation: lx-glow 5s linear infinite; }
.app-shell .lx-catchup-actions .lx-btn { border-radius: var(--radius-full); min-height: 46px; }
.app-shell .lx-catchup-error { margin: 0; font-size: .85rem; color: #92400e; }

.app-shell .lx-catchup.is-open {
    align-items: stretch; gap: .2rem; padding: 1.3rem 1.4rem; border-radius: var(--lx-radius);
    border: 1px solid var(--lx-tint-line); background: var(--bg-card); box-shadow: var(--shadow-lg);
}
.app-shell .lx-catchup-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; color: var(--primary-dark); animation: lx-rise .35s ease-out both; }
.app-shell .lx-catchup-headline { margin: .3rem 0 .7rem; font-size: 1.3rem; line-height: 1.25; font-weight: 900; color: var(--brand-dark); text-wrap: balance; text-transform: none; letter-spacing: 0; animation: lx-rise .35s .06s ease-out both; }
.app-shell .lx-catchup-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.app-shell .lx-catchup-line { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--lx-line); animation: lx-rise .35s ease-out both; animation-delay: calc(.12s + var(--lx-i, 0) * .07s); }
.app-shell .lx-catchup-dot { flex: none; margin-top: .45rem; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--primary); }
.app-shell .lx-catchup-line--foryou .lx-catchup-dot { background: var(--warning); }
.app-shell .lx-catchup-line--pending .lx-catchup-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--success); }
.app-shell .lx-catchup-line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.app-shell .lx-catchup-line-text { font-size: .95rem; line-height: 1.45; color: var(--text); }
.app-shell .lx-catchup-line--foryou .lx-catchup-line-text { color: var(--brand-dark); font-weight: 700; }
.app-shell .lx-catchup-source { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: .76rem; color: var(--lx-ink-muted); cursor: pointer; }
.app-shell .lx-catchup-source:hover { color: var(--primary); text-decoration: underline; }
.app-shell .lx-catchup-source:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.app-shell .lx-catchup-act { flex: none; min-height: 34px; padding: 0 .85rem; border-radius: var(--radius-full); border: 1px solid var(--lx-line); background: var(--bg-card); color: var(--brand-dark); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.app-shell .lx-catchup-act.is-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.app-shell .lx-catchup-act:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-catchup-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--lx-line); animation: lx-rise .35s .5s ease-out both; }
.app-shell .lx-catchup-note { flex: 1 1 220px; font-size: .78rem; color: var(--lx-ink-muted); }
.app-shell .lx-catchup-foot .lx-btn { min-height: 42px; border-radius: var(--radius-full); }

@keyframes lx-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lx-glow { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

/* ── Tablero (LxBoard) ───────────────────────────────────────────────────────────────────────── */
.app-shell .lx-board { display: grid; grid-template-columns: repeat(var(--lx-board-cols, 4), minmax(240px, 1fr)); gap: 1rem; min-width: calc(var(--lx-board-cols, 4) * 252px); }
.app-shell .lx-board-col { display: flex; flex-direction: column; gap: .6rem; min-width: 0; padding: .4rem; border-radius: var(--lx-radius); transition: background var(--transition); }
.app-shell .lx-board-col.is-over { background: var(--lx-tint); box-shadow: inset 0 0 0 2px var(--lx-tint-line); }
.app-shell .lx-board-col-head { margin: 0 .3rem; font-size: .82rem; font-weight: 700; color: var(--lx-ink-muted); text-transform: none; letter-spacing: 0; display: flex; gap: .35rem; }
.app-shell .lx-board-count { font-variant-numeric: tabular-nums; }
.app-shell .lx-board-cards { display: flex; flex-direction: column; gap: .6rem; min-height: 64px; }
.app-shell .lx-board-card { position: relative; border-radius: 18px; }
.app-shell .lx-board-card[draggable="true"] { cursor: grab; }
.app-shell .lx-board-card.is-dragging { opacity: .45; }
.app-shell .lx-board-move { position: absolute; top: .35rem; inset-inline-end: .35rem; opacity: 0; transition: opacity var(--transition); }
.app-shell .lx-board-card:hover .lx-board-move, .app-shell .lx-board-move:focus-within { opacity: 1; }
.app-shell .lx-board-move .lx-icon-btn { width: 32px; height: 32px; border-color: transparent; background: var(--bg-card); }
.app-shell .lx-board-empty { margin: 0; padding: 1rem .6rem; border-radius: 16px; border: 1px dashed var(--lx-line); font-size: .82rem; color: var(--lx-ink-muted); text-align: center; }

/* ── Nota de voz (LxVoiceNote) ───────────────────────────────────────────────────────────────── */
.app-shell .lx-voice { display: flex; align-items: center; gap: .65rem; min-width: 200px; max-width: 360px; }
.app-shell .lx-voice audio { display: none; }
.app-shell .lx-voice-play { flex: none; width: 38px; height: 38px; border: 0; border-radius: var(--radius-full); background: var(--brand-dark); color: #fff; display: inline-grid; place-items: center; cursor: pointer; }
.app-shell .lx-voice-play:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-voice-ic-play, .app-shell .lx-voice-ic-pause { display: inline-flex; }
.app-shell .lx-voice.is-playing .lx-voice-ic-play { display: none; }
.app-shell .lx-voice:not(.is-playing) .lx-voice-ic-pause { display: none; }
.app-shell .lx-voice-track { flex: 1; height: 4px; border-radius: var(--radius-full); background: var(--lx-tint-line); overflow: hidden; }
.app-shell .lx-voice-progress { display: block; width: 0; height: 100%; background: var(--primary); transition: width .2s linear; }
.app-shell .lx-voice-time { font-size: .76rem; color: var(--lx-ink-muted); font-variant-numeric: tabular-nums; }
.app-shell .lx-voice.is-mine .lx-voice-play { background: #fff; color: var(--primary); }
.app-shell .lx-voice.is-mine .lx-voice-track { background: color-mix(in srgb, #fff 35%, transparent); }
.app-shell .lx-voice.is-mine .lx-voice-progress { background: #fff; }
.app-shell .lx-voice.is-mine .lx-voice-time { color: color-mix(in srgb, #fff 85%, transparent); }
.app-shell .lx-voice-quote {
    display: block; max-width: 100%; margin-top: .35rem; padding: 0; border: 0; background: none; text-align: start;
    font: inherit; font-size: .88rem; line-height: 1.45; color: var(--lx-ink-muted); cursor: pointer;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-shell .lx-voice-quote.is-open { white-space: normal; }
.app-shell .lx-voice-quote:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.app-shell .lx-voice-status { display: block; margin-top: .3rem; font-size: .8rem; color: var(--lx-ink-muted); }

/* ── «Hablarlo con el equipo» (LxAskTeam) ────────────────────────────────────────────────────── */
/* La ventana flota en la esquina, por encima de fichas y modales: se abre desde una cabecera, un modal de
   contacto o el menú de la Bandeja, y en ninguno de esos sitios cabe anclada al botón. */
.app-shell .lx-ask-trigger { min-height: 40px; }
.app-shell .lx-ask-scrim { position: fixed; inset: 0; z-index: 1190; background: color-mix(in srgb, var(--brand-dark) 12%, transparent); }
.app-shell .lx-ask-pop {
    position: fixed; inset-inline-end: 1.5rem; bottom: 1.5rem; z-index: 1200; width: min(440px, calc(100vw - 2rem));
    max-height: calc(100vh - 3rem); overflow-y: auto; box-sizing: border-box;
    display: flex; flex-direction: column; gap: .85rem; padding: 1.1rem 1.2rem 1.2rem;
    border-radius: var(--lx-radius); border: 1px solid var(--lx-line); background: var(--bg-card); box-shadow: var(--shadow-lg);
    text-align: start; color: var(--text); animation: lx-pop .18s ease-out;
}
.app-shell .lx-ask-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.app-shell .lx-ask-top h2 { margin: 0; font-size: 1.02rem; font-weight: 900; color: var(--brand-dark); text-transform: none; letter-spacing: 0; }
.app-shell .lx-ask-x { width: 36px; height: 36px; }
.app-shell .lx-ask-continue { display: flex; align-items: center; gap: .75rem; padding: .75rem .85rem; border-radius: 16px; border: 1px solid var(--lx-tint-line); background: var(--lx-tint-soft); color: inherit; text-decoration: none; }
.app-shell .lx-ask-continue:hover { border-color: var(--primary); }
.app-shell .lx-ask-continue:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-ask-continue-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--lx-tint); color: var(--primary); }
.app-shell .lx-ask-continue-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.app-shell .lx-ask-continue-body span { font-size: .76rem; color: var(--lx-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .lx-ask-continue-body strong { font-size: .9rem; color: var(--brand-dark); }
.app-shell .lx-ask-continue-go { flex: none; font-size: .82rem; font-weight: 700; color: var(--primary); }
.app-shell .lx-ask-more { margin-top: -.5rem; font-size: .76rem; color: var(--lx-ink-muted); }
.app-shell .lx-ask-or { display: flex; align-items: center; gap: .6rem; font-size: .76rem; color: var(--lx-ink-muted); }
.app-shell .lx-ask-or::before, .app-shell .lx-ask-or::after { content: ""; flex: 1; height: 1px; background: var(--lx-line); }
.app-shell .lx-ask-people { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.app-shell .lx-ask-people-label { font-size: .82rem; color: var(--lx-ink-muted); margin-inline-end: .15rem; }
.app-shell .lx-ask-person {
    display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: 0 .65rem 0 .25rem; border-radius: var(--radius-full);
    border: 1px solid var(--lx-line); background: var(--bg-card); color: var(--text); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.app-shell .lx-ask-person.is-on { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.app-shell .lx-ask-person:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-ask-person-face { width: 26px; height: 26px; border-radius: var(--radius-full); overflow: hidden; display: inline-grid; place-items: center; background: var(--lx-tint); color: var(--brand-dark); font-size: .6rem; font-weight: 900; }
.app-shell .lx-ask-person-face img { width: 100%; height: 100%; object-fit: cover; }
.app-shell .lx-ask-person-why { font-weight: 500; opacity: .75; }
.app-shell .lx-ask-find { position: relative; flex: 1 1 140px; min-width: 120px; }
.app-shell .lx-ask-pop input.lx-ask-find-input { width: 100%; min-height: 34px; box-sizing: border-box; padding: 0 .7rem; border-radius: var(--radius-full); border: 1px dashed var(--lx-tint-line); background: var(--bg-card); font: inherit; font-size: .82rem; color: var(--brand-dark); }
.app-shell .lx-ask-results { position: absolute; inset-inline: 0; top: calc(100% + .3rem); z-index: 2; display: flex; flex-direction: column; padding: .3rem; border-radius: var(--radius-lg); border: 1px solid var(--lx-line); background: var(--bg-card); box-shadow: var(--shadow); }
.app-shell .lx-ask-results button { display: flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 .6rem; border: 0; border-radius: var(--radius); background: none; font: inherit; font-size: .86rem; color: var(--text); cursor: pointer; text-align: start; }
.app-shell .lx-ask-results button small { color: var(--lx-ink-muted); }
.app-shell .lx-ask-results button:hover { background: var(--surface-hover); }
.app-shell .lx-ask-box { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: .7rem .8rem; border-radius: 16px; border: 1px solid var(--lx-line); }
.app-shell .lx-ask-box:focus-within { border-color: var(--primary-mid); box-shadow: var(--focus-ring); }
.app-shell .lx-ask-box textarea.lx-ask-text, .app-shell .lx-ask-box textarea.lx-ask-text:focus {
    width: 100%; min-height: 72px; border: 0; padding: 0; box-shadow: none; resize: vertical; font: inherit; font-size: .95rem; line-height: 1.5; color: var(--brand-dark); background: transparent;
}
.app-shell .lx-ask-ticket { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--brand-dark); }
.app-shell .lx-ask-foot { display: flex; align-items: center; gap: .6rem; }
.app-shell .lx-seg { display: inline-flex; padding: 3px; border-radius: var(--radius-full); background: var(--bg-subtle); }
/* También como enlaces: un periodo o una vista que va en la URL (Informe de valor) no necesita circuito para cambiar. */
.app-shell .lx-seg :is(button, a) { display: inline-flex; align-items: center; min-height: 34px; padding: 0 .85rem; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--lx-ink-muted); font: inherit; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.app-shell .lx-seg button[aria-checked="true"], .app-shell .lx-seg :is(button, a)[aria-pressed="true"] { background: var(--bg-card); color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.app-shell .lx-seg :is(button, a):focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-ask-foot .lx-btn { margin-inline-start: auto; min-height: 44px; border-radius: var(--radius-full); }
.app-shell .lx-ask-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem .9rem; border-radius: 16px; background: var(--success-light); font-size: .9rem; color: #065f46; }
.app-shell .lx-ask-error { margin: 0; font-size: .82rem; color: #92400e; }

@keyframes lx-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Movimiento reducido ─────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .app-shell .lx-skeleton, .app-shell .lx-status.is-live .lx-status-dot, .app-shell .lx-stage-ring--3,
    .app-shell .lx-try-typing span, .app-shell .lx-spin, .app-shell .lx-catchup-go, .app-shell .lx-catchup-eyebrow,
    .app-shell .lx-catchup-headline, .app-shell .lx-catchup-line, .app-shell .lx-catchup-foot, .app-shell .lx-ask-pop { animation: none; }
}

/* ── Responsivo: AL FINAL (una media query no añade especificidad) ───────────────────────────── */
@media (max-width: 760px) {
    .app-shell .lx-step { padding: .4rem .6rem; }
    .app-shell .lx-step-line { width: 14px; }
    .app-shell .lx-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-shell .lx-funnel.lx-funnel--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .app-shell .lx-sum-label { flex-basis: 100%; }
    .app-shell .lx-sum { padding: .3rem 1.1rem; }
    .app-shell .lx-sum-row.is-editing { margin: 0 -1.1rem; padding-inline: 1.1rem; }
}
@media (max-width: 640px) {
    .app-shell .lx-hero { padding: 1.6rem 1.25rem; border-radius: var(--radius-xl); }
    .app-shell .lx-hero-go { width: 100%; }
    .app-shell .lx-grid { grid-template-columns: 1fr; }
    .app-shell .lx-stage { padding: 1.8rem 1.25rem; border-radius: var(--radius-xl); }
    .app-shell .lx-card { padding: 1.2rem; }
    .app-shell .lx-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .7rem; }
    .app-shell .lx-btn-row > .lx-btn { flex: 1 1 auto; }
}

/* Filtros de una pantalla Luminous: el segmento elegido va en tinta de marca, como en el lienzo. */
.app-shell .lx-page .ui-segs .lw-chip.set { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.app-shell .lx-page .ui-segs .lw-chip.set .ui-seg-count { color: inherit; opacity: .8; }

/* Colaboración: en el teléfono la ventana de «Hablarlo» se ancla al borde y el tablero se desliza. */
@media (max-width: 640px) {
    .app-shell .lx-ask-pop { inset-inline: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); width: auto; }
    .app-shell .lx-catchup.is-open { padding: 1.1rem 1rem; }
    .app-shell .lx-catchup-headline { font-size: 1.12rem; }
    .app-shell .lx-catchup-line { flex-wrap: wrap; }
    .app-shell .lx-catchup-act { margin-inline-start: 1.4rem; }
}

/* ── Analítica (/app/analytics): una sola pantalla con «Tu Agente IA», Resumen y Crecimiento. El informe
   trae su propio estilo (AgentValueReport.razor.css); aquí, la piel Luminous para los bloques de siempre y
   el aviso de plan. Los márgenes en línea de los bloques viejos sobran: la página ya separa con gap. ── */
.app-shell .lx-analytics .analytics-widget {
    border-radius: var(--lx-radius); border: 1px solid var(--lx-line); box-shadow: none; padding: 1.4rem 1.5rem; margin-bottom: 0 !important;
}
.app-shell .lx-analytics .analytics-widget h3 { font-size: 1.02rem; font-weight: 800; color: var(--brand-dark); text-transform: none; letter-spacing: 0; }
.app-shell .lx-analytics :is(.stats-grid, .analytics-grid) { margin-bottom: 0 !important; }
.app-shell .lx-analytics .dash-kpi { border-radius: var(--lx-radius); border-color: var(--lx-line); box-shadow: none; }
.app-shell .lx-analytics .stat-card { border-radius: var(--lx-radius); }
.app-shell .lx-analytics .loading-state { padding: 2rem 0; color: var(--lx-ink-muted); }
.app-shell .lx-analytics-locked { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding: 2rem 2.2rem; }
.app-shell .lx-analytics-locked h2 { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--brand-dark); }
.app-shell .lx-analytics-locked .lx-btn-row { justify-content: flex-start; }
.app-shell .lx-analytics-locked-ic {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-full);
    background: var(--lx-tint); color: var(--primary);
}
@media (max-width: 640px) {
    .app-shell .lx-analytics .analytics-widget { padding: 1.1rem; }
    .app-shell .lx-analytics-locked { padding: 1.4rem 1.2rem; }
}

/* ── Atención (/app/flows): el centro de cómo atiende el negocio. Mapa de entradas, cifras de hoy, la piel
   Luminous del constructor de flujos y las reglas. Las piezas viejas del constructor (flow-*) conservan su
   comportamiento; aquí sólo se les cambia el cromo, siempre colgando de .lx-flows. ── */
.app-shell .lx-page.lx-cc--builder { max-width: none; }
.app-shell .lx-cc-ground {
    display: flex; flex-direction: column; gap: 1.4rem; min-width: 0;
    padding: 1.4rem; border-radius: var(--lx-radius-hero); background: var(--lx-ground);
}
.app-shell .lx-cc-sub { font-size: .8rem; color: var(--lx-ink-muted); }
.app-shell .lx-cc-ai { display: inline-grid; place-items: center; color: var(--primary); }
.app-shell .lx-cc-person { display: inline-grid; place-items: center; color: var(--lx-ink-muted); }
.app-shell .lx-cc-glyph {
    display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px;
    border-radius: var(--radius-full); background: var(--bg-card); border: 1px solid var(--lx-line);
}
.app-shell .lx-card-head h3 .lx-cc-glyph { width: 30px; height: 30px; margin-inline-end: .55rem; vertical-align: middle; }

/* Cifras de hoy: planas, el tono va en el número. */
.app-shell .lx-cc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.app-shell .lx-cc-kpi {
    display: flex; flex-direction: column; gap: .25rem; min-width: 0; padding: 1rem 1.15rem;
    border-radius: var(--lx-radius); background: var(--bg-card); border: 1px solid var(--lx-line);
}
.app-shell .lx-cc-kpi-label { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--lx-ink-muted); }
.app-shell .lx-cc-kpi-value { font-size: 1.75rem; font-weight: 900; line-height: 1.1; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.app-shell .lx-cc-kpi-hint { font-size: .78rem; color: var(--lx-ink-muted); }
.app-shell .lx-cc-kpi.is-warn .lx-cc-kpi-value { color: #92400e; }

/* El mapa: una fila por puerta de entrada; en el teléfono cada fila es una tarjeta. */
.app-shell .lx-cc-map { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.app-shell .lx-cc-row {
    display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(190px, 1.3fr) minmax(150px, .9fr);
    align-items: center; gap: 1rem; min-width: 0; padding: 1rem 1.15rem;
    border-radius: var(--lx-radius); background: var(--bg-card); border: 1px solid var(--lx-line);
    box-shadow: inset 4px 0 0 transparent;
}
.app-shell .lx-cc-row.is-bad { box-shadow: inset 4px 0 0 var(--danger); }
.app-shell .lx-cc-row.is-warn { box-shadow: inset 4px 0 0 var(--warning); }
.app-shell .lx-cc-row.is-ok { box-shadow: inset 4px 0 0 var(--success); }
.app-shell .lx-cc-row.lx-cc-row--head {
    padding-block: .2rem; border: 0; background: none; box-shadow: none;
    font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-ink-muted);
}
.app-shell .lx-cc-cell { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; font-size: .9rem; color: var(--text); }
.app-shell .lx-cc-cell-label { display: none; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-ink-muted); }
.app-shell .lx-cc-entry { flex-direction: row; align-items: center; gap: .75rem; }
.app-shell .lx-cc-entry-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.app-shell .lx-cc-entry-text strong { font-size: .98rem; font-weight: 800; color: var(--brand-dark); overflow-wrap: anywhere; }
.app-shell .lx-cc-entry-text span { font-size: .8rem; color: var(--lx-ink-muted); overflow-wrap: anywhere; }
.app-shell .lx-cc-hours {
    display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: var(--radius-full);
    font-size: .82rem; font-weight: 700; background: var(--lx-tint-soft); color: var(--lx-ink-muted);
}
.app-shell .lx-cc-hours.is-open { background: var(--success-light); color: #065f46; }
.app-shell .lx-cc-hours-dot { width: 8px; height: 8px; flex: none; border-radius: var(--radius-full); background: currentColor; }
.app-shell .lx-cc-flow { gap: .2rem; }
.app-shell .lx-cc-flow-link { font-weight: 700; color: var(--primary); text-decoration: none; overflow-wrap: anywhere; }
.app-shell .lx-cc-flow-link:hover { text-decoration: underline; }
.app-shell .lx-cc-flow-link:focus-visible, .app-shell .lx-cc-chain a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius); }
.app-shell .lx-cc-more {
    display: inline-flex; padding: .05rem .45rem; border-radius: var(--radius-full);
    background: var(--lx-tint); color: var(--primary-dark); font-size: .75rem; font-weight: 700;
}
.app-shell .lx-cc-none { font-size: .88rem; color: var(--lx-ink-muted); font-style: italic; }
.app-shell .lx-cc-none.is-bad { font-style: normal; font-weight: 700; color: #b91c1c; }
.app-shell .lx-cc-chain { display: flex; flex-direction: column; gap: .3rem; margin: 0; padding: 0; list-style: none; counter-reset: lxcc; }
.app-shell .lx-cc-chain li { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; min-width: 0; counter-increment: lxcc; }
.app-shell .lx-cc-chain li::before {
    content: counter(lxcc); display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px;
    border-radius: var(--radius-full); background: var(--lx-tint); color: var(--primary-dark); font-size: .68rem; font-weight: 800;
}
.app-shell .lx-cc-chain a { font-weight: 700; color: var(--brand-dark); text-decoration: none; }
.app-shell .lx-cc-chain a:hover { color: var(--primary); }
.app-shell .lx-cc-chain li.is-paused a { color: var(--lx-ink-muted); text-decoration: line-through; }
.app-shell .lx-cc-paused {
    padding: .05rem .45rem; border-radius: var(--radius-full); background: var(--warning-light); color: #92400e; font-size: .72rem; font-weight: 700;
}

/* Estados vacíos e introducciones de pestaña. */
.app-shell .lx-cc-empty, .app-shell .lx-cc-intro { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; }
.app-shell .lx-cc-empty > div, .app-shell .lx-cc-intro > div { flex: 1 1 260px; min-width: 0; }
.app-shell .lx-cc-empty strong, .app-shell .lx-cc-intro strong { display: block; margin-bottom: .2rem; font-size: 1rem; color: var(--brand-dark); }
.app-shell .lx-cc-empty-ic {
    display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--radius-full);
    background: var(--lx-tint); color: var(--primary);
}
.app-shell .lx-cc-channel { gap: .8rem; }
.app-shell .lx-cc-channel .lx-card-head h3 { display: inline-flex; align-items: center; }

/* Reglas: los bloques de Ajustes dentro de tarjetas Luminous; quién lleva cada canal, en frases. */
.app-shell .lx-cc-rules .lx-card-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--brand-dark); }
.app-shell .lx-cc-rules .lx-card .wsp-group:first-child { border-top: 0; }
.app-shell .lx-cc-sentences { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.app-shell .lx-cc-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--lx-line); }
.app-shell .lx-cc-sentence:last-child { border-bottom: 0; }
.app-shell .lx-cc-sentence p { flex: 1 1 260px; margin: 0; font-size: .95rem; color: var(--text); line-height: 1.45; }
.app-shell .lx-cc-sentence .lx-cc-sentence-pick { flex: 0 0 auto; width: auto; min-width: 190px; }

/* Constructor de flujos: barra propia y cromo Luminous alrededor del lienzo. */
.app-shell .lx-flowbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
    margin-bottom: 1rem; padding: .85rem 1.15rem; border-radius: var(--lx-radius); background: var(--bg-card); border: 1px solid var(--lx-line);
}
.app-shell .lx-flowbar-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.app-shell .lx-flowbar-text strong { font-size: 1.08rem; font-weight: 800; color: var(--brand-dark); overflow-wrap: anywhere; }
.app-shell .lx-flowbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.app-shell .lx-flows .flow-readonly-banner { border-radius: var(--lx-radius); }
.app-shell .lx-flows :is(.flow-sidebar, .flow-canvas-wrap, .flow-inspector).settings-card {
    border-radius: var(--lx-radius); border-color: var(--lx-line); box-shadow: none;
}
.app-shell .lx-flows .flow-sidebar-section { border-bottom-color: var(--lx-line); }
.app-shell .lx-flows .flow-section-header h3 { font-size: .75rem; color: var(--lx-ink-muted); }
.app-shell .lx-flows .flow-count-badge { border-radius: var(--radius-full); background: var(--lx-tint); color: var(--primary-dark); }
.app-shell .lx-flows .flow-canvas { border-color: var(--lx-line); border-radius: var(--radius-lg); background-color: var(--lx-tint-soft); }
.app-shell .lx-flows .flow-list-item-row.active { background: var(--lx-tint); }
.app-shell .lx-flows .flow-palette-btn { border-color: var(--lx-line); border-radius: var(--radius); background: var(--bg-card); }
.app-shell .lx-flows .flow-palette-btn:focus-visible, .app-shell .lx-flows .flow-list-item-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-flows .flow-inspector-placeholder h3 { color: var(--brand-dark); }

@media (max-width: 1100px) {
    .app-shell .lx-cc-row { grid-template-columns: minmax(200px, 1.4fr) minmax(140px, 1fr) minmax(170px, 1.2fr) minmax(140px, .9fr); }
    .app-shell .lx-cc-row > .lx-cc-flow { display: none; }
    .app-shell .lx-cc-row.lx-cc-row--head > :nth-child(3) { display: none; }
}
@media (max-width: 860px) {
    .app-shell .lx-cc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-shell .lx-cc-ground { padding: 1rem; border-radius: var(--lx-radius); }
    .app-shell .lx-cc-row.lx-cc-row--head { display: none; }
    .app-shell .lx-cc-row { grid-template-columns: 1fr 1fr; gap: .85rem 1rem; }
    .app-shell .lx-cc-row > .lx-cc-flow { display: flex; }
    .app-shell .lx-cc-row > .lx-cc-entry { grid-column: 1 / -1; }
    .app-shell .lx-cc-cell-label { display: block; }
}
@media (max-width: 520px) {
    .app-shell .lx-cc-ground { padding: .75rem; gap: 1rem; }
    .app-shell .lx-cc-row { grid-template-columns: 1fr; }
    .app-shell .lx-cc-kpi { padding: .85rem; }
    .app-shell .lx-cc-kpi-value { font-size: 1.45rem; }
    .app-shell .lx-cc-sentence .lx-cc-sentence-pick { flex: 1 1 100%; min-width: 0; }
    .app-shell .lx-flowbar-actions, .app-shell .lx-flowbar-actions .lx-btn { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════════════════════════════════
   Ajustes (lienzo «Ajustes — rediseño Luminous», 2026-10-26): el marco con su menú agrupado, el buscador,
   las filas en frase con sus estados, las tarjetas de lo conectado, la cabecera de ficha y el cajón.
   ════════════════════════════════════════════════════════════════════════════════════════════════ */
.app-shell .lx-set { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.4rem; max-width: 1280px; margin: 0 auto; padding-bottom: 2.5rem; min-width: 0; }
.app-shell .lx-set-rail {
    flex: 0 0 272px; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: .2rem;
    padding: .85rem .6rem; border-radius: var(--lx-radius); background: var(--bg-card); border: 1px solid var(--lx-line);
    position: sticky; top: 1rem;
}
.app-shell .lx-set-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.app-shell .lx-set-group { margin: .9rem .75rem .25rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-ink-muted); }
.app-shell .lx-set-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.app-shell .lx-set-item {
    display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .35rem .75rem; box-sizing: border-box;
    border-radius: var(--radius-lg); color: var(--text); font-size: .95rem; font-weight: 500; text-decoration: none;
}
.app-shell .lx-set-item:hover { background: var(--lx-tint-soft); color: var(--brand-dark); }
.app-shell .lx-set-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-set-item.is-on { background: var(--lx-tint); color: var(--brand-dark); font-weight: 700; }
.app-shell .lx-set-item.is-on .lx-set-ic { color: var(--primary); }
.app-shell .lx-set-ic { flex: none; display: inline-flex; color: var(--lx-ink-muted); }
.app-shell .lx-set-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-shell .lx-set-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .lx-set-sum { display: none; font-size: .82rem; font-weight: 500; color: var(--lx-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .lx-set-badge {
    flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .4rem; box-sizing: border-box;
    border-radius: var(--radius-full); background: var(--lx-tint); color: var(--primary); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.app-shell .lx-set-badge.is-warn { background: var(--warning-light); color: #7a3a0d; }
.app-shell .lx-set-chev { display: none; color: var(--lx-ink-muted); }
[dir="rtl"] .app-shell .lx-set-chev { transform: scaleX(-1); }
.app-shell .lx-set-back { display: none; }

/* Buscador (Ctrl K) */
.app-shell .lx-set-search { position: relative; margin-bottom: .35rem; }
.app-shell .lx-set-search-box {
    display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .5rem 0 .8rem; box-sizing: border-box;
    border-radius: var(--radius-full); border: 1px solid var(--lx-line); background: var(--lx-tint-soft); color: var(--lx-ink-muted); cursor: text;
}
.app-shell .lx-set-search-box:focus-within { border-color: var(--primary-mid); box-shadow: var(--focus-ring); background: var(--bg-card); }
.app-shell .lx-set-search-ic { display: inline-flex; flex: none; }
.app-shell .lx-set-search .lx-set-search-box input.lx-set-search-input {
    flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; outline: none; background: transparent; box-shadow: none;
    font: inherit; font-size: .9rem; color: var(--brand-dark);
}
.app-shell .lx-set-kbd {
    flex: none; display: inline-flex; align-items: center; min-height: 24px; padding: 0 .45rem; border-radius: var(--radius-xs);
    border: 1px solid var(--lx-line); background: var(--bg-card); font: inherit; font-size: .7rem; font-weight: 700; color: var(--lx-ink-muted);
}
.app-shell .lx-set-results {
    position: absolute; inset-inline: 0; top: calc(100% + .35rem); z-index: 60; max-height: 380px; overflow: auto;
    padding: .35rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--lx-line); box-shadow: var(--shadow-lg);
}
.app-shell .lx-set-results ul { list-style: none; margin: 0; padding: 0; }
.app-shell .lx-set-hit {
    display: flex; flex-direction: column; gap: .1rem; padding: .55rem .7rem; border-radius: var(--radius);
    color: var(--brand-dark); text-decoration: none;
}
.app-shell .lx-set-hit strong { font-size: .92rem; }
.app-shell .lx-set-hit span { font-size: .8rem; color: var(--lx-ink-muted); }
.app-shell .lx-set-hit:hover, .app-shell .lx-set-hit:focus-visible { outline: none; background: var(--lx-tint); }
.app-shell .lx-set-none { margin: 0; padding: .7rem; font-size: .88rem; color: var(--lx-ink-muted); }

/* Filas en frase: los estados nuevos (te falta, sin permiso, interruptor, encontrada por el buscador) */
.app-shell .lx-sum-act { min-height: 40px; padding: 0 .9rem; border-radius: var(--radius); font-size: .88rem; }
.app-shell .lx-sum-lock { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--lx-ink-muted); }
.app-shell .lx-sum-trailing { flex: none; display: inline-flex; align-items: center; min-height: 40px; }
.app-shell .lx-sum-row.is-found { animation: lx-found 2.4s ease-out 1; border-radius: var(--radius); }
@keyframes lx-found { 0%, 35% { background: var(--lx-tint); box-shadow: 0 0 0 6px var(--lx-tint); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.app-shell .lx-sum-value .lx-pillset { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.app-shell .lx-sum-value .lx-pill-mini {
    display: inline-flex; align-items: center; min-height: 28px; padding: 0 .65rem; border-radius: var(--radius-full);
    background: var(--lx-tint); color: var(--primary-dark); font-size: .84rem; font-weight: 700;
}

/* Estado de lo conectado */
.app-shell .lx-health {
    display: inline-flex; align-items: center; gap: .4rem; flex: none; min-height: 26px; padding: 0 .65rem; box-sizing: border-box;
    border-radius: var(--radius-full); font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.app-shell .lx-health-dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: currentColor; flex: none; }
.app-shell .lx-health--ok { background: var(--success-light); color: #065f46; }
.app-shell .lx-health--needsstep { background: var(--warning-light); color: #7a3a0d; }
.app-shell .lx-health--broken { background: var(--danger-light); color: #b91c1c; }
.app-shell .lx-health--checking { background: var(--lx-tint); color: var(--primary-dark); }
.app-shell .lx-health--checking .lx-health-dot { animation: lx-breathe 1.6s ease-in-out infinite; }
.app-shell .lx-health--off { background: var(--lx-ground); color: var(--lx-ink-muted); }

/* Tarjetas de lo conectado y de lo que se puede sumar */
.app-shell .lx-conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .75rem; }
.app-shell .lx-conn {
    display: flex; flex-direction: column; gap: .8rem; padding: 1.15rem 1.3rem; min-width: 0; box-sizing: border-box;
    border-radius: var(--radius-xl); background: var(--bg-card); border: 1px solid var(--lx-line); color: var(--text); text-decoration: none;
    transition: border-color var(--transition);
}
.app-shell .lx-conn:hover { border-color: var(--primary-mid); }
.app-shell .lx-conn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-conn.is-attention { border: 2px solid color-mix(in srgb, var(--warning) 55%, transparent); }
.app-shell .lx-conn-head { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.app-shell .lx-conn-glyph, .app-shell .lx-add-glyph, .app-shell .lx-ehead-glyph {
    flex: none; width: 44px; height: 44px; border-radius: var(--radius-lg); display: inline-grid; place-items: center;
    background: var(--lx-tint); color: var(--primary);
}
.app-shell .lx-conn-title { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; }
.app-shell .lx-conn-title strong { font-size: 1rem; color: var(--brand-dark); }
.app-shell .lx-conn-title span { font-size: .86rem; color: var(--lx-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .lx-conn-body { font-size: .93rem; line-height: 1.45; color: var(--text); }
.app-shell .lx-conn-body strong { color: var(--brand-dark); }
.app-shell .lx-conn-meta { font-size: .82rem; color: var(--lx-ink-muted); }
.app-shell .lx-add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.app-shell .lx-add {
    display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: .5rem 1rem; box-sizing: border-box; width: 100%;
    border-radius: var(--radius-lg); border: 1px dashed var(--lx-tint-line); background: var(--bg-card); color: var(--brand-dark);
    font: inherit; text-align: start; text-decoration: none; cursor: pointer;
}
.app-shell .lx-add:hover:not(:disabled) { border-color: var(--primary); }
.app-shell .lx-add:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-add:disabled { opacity: .55; cursor: not-allowed; }
.app-shell .lx-add .lx-add-glyph { width: 36px; height: 36px; border-radius: var(--radius); }
.app-shell .lx-add-text { display: flex; flex-direction: column; min-width: 0; }
.app-shell .lx-add-text strong { font-size: .95rem; }
.app-shell .lx-add-text span { font-size: .82rem; color: var(--lx-ink-muted); }

/* Cabecera de ficha */
.app-shell .lx-ehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.app-shell .lx-ehead-id { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.app-shell .lx-ehead .lx-ehead-glyph { width: 56px; height: 56px; border-radius: 18px; }
.app-shell .lx-ehead-text { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.app-shell .lx-ehead-text h1 { margin: 0; font-size: 1.75rem; font-weight: 900; color: var(--brand-dark); letter-spacing: -.01em; }
.app-shell .lx-ehead-text p { margin: 0; font-size: .95rem; color: var(--lx-ink-muted); }

/* Cifras pequeñas de una ficha (calidad, tope, acceso) */
.app-shell .lx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.app-shell .lx-kpi { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem; border-radius: var(--radius-xl); background: var(--bg-card); border: 1px solid var(--lx-line); min-width: 0; }
.app-shell .lx-kpi-label { font-size: .86rem; color: var(--lx-ink-muted); }
.app-shell .lx-kpi-value { font-size: 1.3rem; font-weight: 900; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.app-shell .lx-kpi-hint { font-size: .82rem; color: var(--lx-ink-muted); }
.app-shell .lx-kpi.is-ok .lx-kpi-value { color: #065f46; }
.app-shell .lx-kpi.is-warn { background: var(--warning-light); border-color: transparent; }
.app-shell .lx-kpi.is-warn :is(.lx-kpi-label, .lx-kpi-value, .lx-kpi-hint) { color: #7a3a0d; }

/* Resumen de Ajustes: héroe con el anillo, avisos y una tarjeta por sección */
.app-shell .lx-set-hero { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.8rem; padding: 2.2rem 2.4rem; }
.app-shell .lx-set-hero-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: .8rem; }
.app-shell .lx-set-hero h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.app-shell .lx-set-checks { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.app-shell .lx-set-check {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0 .85rem; box-sizing: border-box;
    border-radius: var(--radius-full); font-size: .88rem; text-decoration: none;
    background: color-mix(in srgb, var(--brand-indigo) 30%, var(--brand-dark)); border: 1px solid color-mix(in srgb, var(--brand-indigo) 45%, transparent); color: #fff;
}
.app-shell .lx-set-check .lx-set-check-ic { display: inline-flex; color: var(--success); }
.app-shell a.lx-set-check { background: #fff; border-color: #fff; color: var(--brand-dark); font-weight: 700; }
.app-shell a.lx-set-check:hover { background: var(--lx-tint); }
.app-shell a.lx-set-check:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent); }
.app-shell .lx-set-check-todo { width: 10px; height: 10px; border-radius: var(--radius-full); border: 2px solid var(--primary); box-sizing: border-box; flex: none; }
.app-shell .lx-set-ring { flex: none; position: relative; width: 156px; height: 156px; }
.app-shell .lx-set-ring svg { display: block; width: 100%; height: 100%; }
.app-shell .lx-set-ring-track { stroke: color-mix(in srgb, var(--brand-indigo) 45%, var(--brand-dark)); }
.app-shell .lx-set-ring-bar { stroke: var(--accent); transition: stroke-dasharray .9s ease-out; }
.app-shell .lx-set-ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.app-shell .lx-set-ring-val strong { font-size: 2.4rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.app-shell .lx-set-ring-val span { font-size: .8rem; color: var(--primary-mid); }
.app-shell .lx-set-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.app-shell .lx-tile {
    display: flex; flex-direction: column; gap: .6rem; padding: 1.15rem 1.3rem; border-radius: var(--radius-xl); min-width: 0;
    background: var(--bg-card); border: 1px solid var(--lx-line); color: var(--text); text-decoration: none; transition: border-color var(--transition);
}
.app-shell .lx-tile:hover { border-color: var(--primary-mid); }
.app-shell .lx-tile:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-tile-head { display: flex; align-items: center; gap: .75rem; }
.app-shell .lx-tile-ic { flex: none; width: 40px; height: 40px; border-radius: var(--radius-lg); display: inline-grid; place-items: center; background: var(--lx-tint); color: var(--primary); }
.app-shell .lx-tile-head strong { font-size: 1rem; color: var(--brand-dark); }
.app-shell .lx-tile-text { font-size: .93rem; line-height: 1.45; }
.app-shell .lx-tile-status { font-size: .82rem; font-weight: 700; color: var(--lx-ink-muted); }
.app-shell .lx-tile-status.is-success { color: #065f46; }
.app-shell .lx-tile-status.is-warning { color: #92400e; }
.app-shell .lx-tile-status.is-info { color: var(--primary-dark); }
.app-shell .lx-tile-glyphs { display: flex; flex-wrap: wrap; gap: .3rem; }
.app-shell .lx-set-foot { margin: 0; font-size: .9rem; color: var(--lx-ink-muted); }

/* La cadena de quién contesta (Agente IA → equipo → persona) */
.app-shell .lx-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.app-shell .lx-chain-step {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1rem 0 .4rem; box-sizing: border-box;
    border-radius: var(--radius-full); background: var(--lx-ground); color: var(--brand-dark);
}
.app-shell .lx-chain-step.is-ai { background: var(--lx-tint); }
.app-shell .lx-chain-av { width: 34px; height: 34px; border-radius: var(--radius-full); display: inline-grid; place-items: center; background: var(--bg-card); border: 1px solid var(--lx-line); font-size: .8rem; font-weight: 900; flex: none; }
.app-shell .lx-chain-step.is-ai .lx-chain-av { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.app-shell .lx-chain-text { display: flex; flex-direction: column; line-height: 1.2; }
.app-shell .lx-chain-text strong { font-size: .92rem; }
.app-shell .lx-chain-text span { font-size: .76rem; color: var(--lx-ink-muted); }
.app-shell .lx-chain-arrow { color: var(--lx-ink-muted); }
[dir="rtl"] .app-shell .lx-chain-arrow { transform: scaleX(-1); display: inline-block; }

/* Cajón de ajustes: una línea de efecto y, si hace falta, la vista previa */
.app-shell .lx-dform { display: flex; flex-direction: column; gap: 1.1rem; }
.app-shell .lx-dform-effect { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--lx-ink-muted); }
.app-shell .lx-dform-preview { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: var(--lx-ground); }
.app-shell .lx-dform-preview > span { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-ink-muted); }
.app-shell .lx-dform-preview > p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--brand-dark); }

/* El momento en que un canal se enciende */
.app-shell .lx-lit { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2rem; }
.app-shell .lx-lit-glyph { flex: none; width: 120px; height: 120px; border-radius: 36px; display: inline-grid; place-items: center; background: #fff; box-shadow: 0 0 0 14px color-mix(in srgb, #fff 14%, transparent), 0 0 0 30px color-mix(in srgb, #fff 6%, transparent); }
.app-shell .lx-lit-body { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.app-shell .lx-lit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.app-shell .lx-lit-list li { display: flex; align-items: center; gap: .7rem; font-size: 1rem; }
.app-shell .lx-lit-list .lx-lit-ok { color: var(--success); display: inline-flex; }
.app-shell .lx-lit-list .is-waiting { color: var(--primary-mid); }
.app-shell .lx-lit-msg { display: flex; flex-direction: column; gap: .4rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--lx-ground); }
.app-shell .lx-lit-msg-in { align-self: flex-start; max-width: 85%; padding: .6rem .9rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--lx-line); color: var(--brand-dark); }
.app-shell .lx-lit-msg-meta { font-size: .78rem; color: var(--lx-ink-muted); }

@media (max-width: 1100px) {
    .app-shell .lx-set-rail { flex-basis: 236px; }
}
@media (max-width: 860px) {
    /* En el teléfono el inicio de Ajustes es una lista; dentro de una sección sólo queda «← Ajustes». */
    .app-shell .lx-set { flex-direction: column; gap: 1rem; }
    .app-shell .lx-set-rail { display: none; position: static; flex-basis: auto; width: 100%; }
    .app-shell .lx-set.is-home .lx-set-rail { display: flex; order: 2; padding: .5rem; }
    .app-shell .lx-set.is-home .lx-set-main { order: 1; flex-basis: auto; width: 100%; }
    .app-shell .lx-set.is-home .lx-set-tiles { display: none; }
    .app-shell .lx-set.is-home .lx-set-item { min-height: 56px; }
    .app-shell .lx-set.is-home .lx-set-sum { display: block; }
    .app-shell .lx-set.is-home .lx-set-chev { display: inline-flex; }
    .app-shell .lx-set.is-home .lx-set-kbd { display: none; }
    .app-shell .lx-set-main { flex-basis: auto; width: 100%; }
    .app-shell .lx-set-back { display: inline-flex; }
    .app-shell .lx-set-hero { padding: 1.6rem 1.25rem; border-radius: var(--radius-xl); }
    .app-shell .lx-set-ring { width: 120px; height: 120px; }
    .app-shell .lx-conn-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .app-shell .lx-sum-row.is-found, .app-shell .lx-health--checking .lx-health-dot { animation: none; }
    .app-shell .lx-set-ring-bar { transition: none; }
}

/* ── Ajustes: lo heredado dentro del marco habla Luminous ─────────────────────────────────────────
   Las secciones de cada canal e integración conservan su lógica y su marcado; dentro de .lx-set sus
   tarjetas, pestañas y selectores toman la forma de las piezas lx- (tarjeta de 22 px, pestañas con
   subrayado de marca, selector como tarjeta de conexión). En el cajón (.lx-dform) las tarjetas de dos
   columnas pasan a una sola y su pie de guardado queda fijo al final. */
.app-shell .lx-set .settings-section { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.app-shell .lx-set .settings-card { border-radius: var(--lx-radius); border-color: var(--lx-line); box-shadow: none; }
.app-shell .lx-set .em-tabs { gap: .35rem; padding: 0 .6rem; border-bottom-color: var(--lx-line); }
.app-shell .lx-set .em-tab {
    min-height: 44px; padding: 0 1rem; border-bottom-width: 3px;
    font-size: .95rem; font-weight: 700; color: var(--lx-ink-muted);
}
.app-shell .lx-set .em-tab:hover { color: var(--brand-dark); }
.app-shell .lx-set .em-tab.on { color: var(--brand-dark); border-bottom-color: var(--primary); }
.app-shell .lx-set .em-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius); }
.app-shell .lx-set .ch-picker { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.app-shell .lx-set .ch-pick-card { min-height: 64px; padding: .75rem 1rem; border-radius: var(--radius-xl); border-color: var(--lx-line); box-shadow: none; }
.app-shell .lx-set .ch-pick-card:hover { transform: none; box-shadow: none; border-color: var(--primary-mid); }
.app-shell .lx-set .ch-pick-card.active { background: var(--lx-tint); border-color: var(--primary); box-shadow: none; }
.app-shell .lx-set .ch-pick-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-shell .lx-set .ch-pick-name { color: var(--brand-dark); }
.app-shell .lx-set .ch-sec-head h3, .app-shell .lx-set .settings-section-header h3 { color: var(--brand-dark); font-weight: 900; }
.app-shell .lx-chfile { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.app-shell .lx-chfile-body { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.app-shell .lx-chfile-body > .settings-section:first-child { margin-top: 0; }

/* El cajón de ajustes: una sola columna, títulos de bloque como frases, pie fijo al final */
.app-shell .lx-dform .settings-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.app-shell .lx-dform .wsp-group { grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: 1.1rem 0; border-bottom-color: var(--lx-line); }
.app-shell .lx-dform .wsp-group-ic { display: none; }
.app-shell .lx-dform .wsp-group-copy h4 { font-size: 1rem; font-weight: 700; color: var(--brand-dark); }
.app-shell .lx-dform .wsp-group-copy p { font-size: .86rem; color: var(--lx-ink-muted); }
.app-shell .lx-dform .wsp-footer {
    position: sticky; bottom: -1rem; z-index: 2; margin: .5rem -1.15rem -1rem; padding: .9rem 1.15rem;
    background: var(--bg-card); border-top: 1px solid var(--lx-line); box-shadow: 0 -8px 20px color-mix(in srgb, var(--brand-dark) 6%, transparent);
}
.app-shell .lx-dform .wsp-footer-ic { border-color: var(--lx-line); }
.app-shell .lx-dform > * + * { margin-top: 0; }

@media (max-width: 860px) {
    .app-shell .lx-set .ch-picker { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Un rótulo de sección (lx-eyebrow) dentro de la cabecera de sección no hereda el tamaño del título. */
.app-shell .lx-section-head h2.lx-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-ink-muted); }

/* El cajón de ajustes titula como las fichas Luminous: una pregunta grande en tinta de marca. */
.app-shell .ui-drawer:has(.lx-dform) .ui-drawer-head h2 { font-size: 1.35rem; font-weight: 900; color: var(--brand-dark); line-height: 1.25; }
@media (max-width: 860px) {
    .app-shell .lx-set.is-home .lx-set-today { display: none; }
}
@media (max-width: 760px) {
    /* En el teléfono la etiqueta va arriba y la frase comparte línea con su «Cambiar». */
    .app-shell .lx-sum-value { flex: 1 1 0; }
    .app-shell .lx-sum-change.lx-btn--link { padding: 0 .4rem; }
}
