/* The design system's components/bundle.css, 1.1.0 (HANDOFF-DS-2 and HANDOFF-V9), without its import of the fonts: the page loads them once. */

/* Andino · App de soporte — componentes. Solo tokens: ningún color ni fuente literal. Prefijo an-. */

.an-root { background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; }
.an-root a { color: var(--accent); }
.an-root a:hover { color: var(--accent-lite); }
.an-mono { font-family: var(--font-mono); }
.an-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.an-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; }
.an-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.an-col { display: flex; flex-direction: column; gap: var(--space-3); }
:where(.an-root) :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Barra superior ---------- */
.an-topbar { display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-7); border-bottom: 1px solid var(--line); background: var(--bar); }
.an-brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; margin-right: var(--space-4); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.an-brand::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.an-brand-logo { display: block; flex-shrink: 0; height: 30px; width: auto; margin-right: var(--space-4); }
.an-navlinks { display: flex; gap: 4px; }
.an-navlink { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-muted); text-decoration: none; }
.an-root .an-navlink { color: var(--text-muted); }
.an-root .an-navlink[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--fill-hover); }
.an-live { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-mid); }
.an-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: var(--shadow-live); }
.an-meta { white-space: nowrap; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.an-sep { width: 1px; height: 24px; background: var(--line); }
.an-push { margin-left: auto; }

/* ---------- Botones ---------- */
.an-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-md); padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: transparent; color: var(--text); font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.an-btn:hover { background: var(--fill-hover); }
.an-btn--primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.an-btn--primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.an-btn--primary[disabled], .an-btn--primary.is-disabled { background: var(--fill-selected); border-color: transparent; color: var(--text-faint); cursor: default; }
.an-btn--tint { border-color: var(--accent-line); background: var(--accent-tint); color: var(--accent-soft); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.an-btn--lg { width: 100%; min-height: var(--control-lg); border-radius: var(--radius-lg); font-size: 15.5px; }
.an-btn--sm { min-height: var(--control-sm); padding: 0 12px; border-radius: var(--radius-sm); font-size: 13px; }
.an-btn--link { min-height: 0; padding: 0; border: none; background: none; color: var(--text-muted); font-size: 13.5px; }
.an-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: var(--control-md); height: var(--control-md); border-radius: var(--radius-md); border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.an-iconbtn--ghost { width: var(--control-sm); height: var(--control-sm); border-color: transparent; color: var(--text-mid); border-radius: 9px; }
.an-iconbtn:hover { border-color: var(--line-strong); background: var(--fill-hover); }
.an-spin { animation: an-spin .9s linear infinite; }
@keyframes an-spin { to { transform: rotate(360deg); } }
@keyframes an-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.an-pulse { animation: an-pulse 2.6s ease-in-out infinite; }

/* ---------- Pestañas ---------- */
.an-viewtabs { display: flex; gap: 22px; }
.an-viewtab { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; border: none; border-bottom: 2px solid transparent; background: transparent; color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.an-viewtab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.an-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line-soft); }
.an-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 4px; border: none; border-bottom: 2px solid transparent; background: transparent; color: var(--text-muted); font-family: var(--font-sans); font-size: 14px; font-weight: 500; cursor: pointer; }
.an-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.an-count { font-family: var(--font-mono); font-size: 11px; padding: 0 6px; border-radius: 5px; background: var(--fill-selected); color: var(--text); }

/* ---------- Segmentado, interruptor, casilla, toggle ---------- */
.an-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.an-seg button { min-height: 32px; padding: 0 14px; border: none; border-radius: 7px; background: transparent; color: var(--text-muted); font-family: var(--font-sans); font-size: 13.5px; cursor: pointer; }
.an-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.an-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-mid); cursor: pointer; }
.an-switch__track { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--line-card); }
.an-switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); }
.an-switch[aria-checked="true"] .an-switch__track { background: var(--accent); }
.an-switch[aria-checked="true"] .an-switch__track::after { left: 17px; background: var(--on-accent); }
.an-check { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-mid); }
.an-check__box { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); color: var(--on-accent); }
.an-check.is-on .an-check__box { background: var(--accent); border-color: var(--accent); }
.an-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.an-toggle button { min-height: var(--control-xs); padding: 0 10px; border: none; background: transparent; color: var(--text-muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; cursor: pointer; }
.an-toggle button[aria-pressed="true"] { background: var(--fill-selected); color: var(--text); }

/* ---------- Campo ---------- */
.an-field { display: flex; flex-direction: column; gap: 7px; }
.an-field__label { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.an-field__label a { font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.an-field__box { display: flex; align-items: center; gap: 6px; height: var(--control-lg); padding: 0 6px 0 16px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); }
.an-field__box input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; color: var(--text); font-family: var(--font-sans); font-size: 15.5px; }
.an-field__box input::placeholder { color: var(--text-faint); }
.an-field__box:focus-within, .an-field.is-focus .an-field__box { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus-ring); }
.an-field.is-invalid .an-field__box { border-style: dashed; border-color: var(--text-mid); }
.an-field.is-disabled .an-field__box { opacity: .5; }
.an-field__help { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-mid); }

/* ---------- Etiquetas, badges, chips ---------- */
.an-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--text); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.an-badge--ok { border-color: var(--status-ok-line); background: var(--status-ok-tint); }
.an-badge--ok svg { color: var(--status-ok); }
.an-badge--warn { border-color: var(--status-warn-line); background: var(--status-warn-tint); }
.an-badge--warn svg { color: var(--status-warn); }
.an-badge--late { border-color: var(--status-late-line); background: var(--status-late-tint); }
.an-badge--late svg { color: var(--status-late); }
.an-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 7px; background: var(--surface-2); color: var(--text-mid); font-size: 12px; white-space: nowrap; }
.an-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--radius-xs); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--text-muted); border: 1px dashed var(--line); }
.an-tag--assumption { border: 1px dashed var(--assumption-line); color: var(--text-mid); }
.an-tag--partial { border: 1px solid var(--line-strong); background: var(--fill-hover); color: var(--text); }
.an-tag--nodata { border: 1px dashed var(--line-strong); color: var(--text); }
.an-tag--scope { border: 1px solid var(--line-strong); color: var(--text-mid); }
.an-tag--refined { border: 1px solid var(--accent-line); color: var(--accent-soft); border-style: solid; }

/* ---------- Variación ---------- */
.an-delta { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
.an-delta--better { color: var(--delta-better); }
.an-delta--worse { color: var(--delta-worse); }
.an-delta--neutral { color: var(--delta-neutral); }

/* ---------- Tarjetas e indicadores ---------- */
.an-card { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; padding: 18px var(--space-6); border-radius: var(--radius-card); border: 1px solid var(--line-card); background: var(--surface); }
.an-card__head { display: flex; align-items: flex-start; gap: var(--space-3); }
.an-card__title { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.an-card__q { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.an-card__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.an-card__foot { font-size: 12.5px; color: var(--text-muted); }
.an-kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px var(--space-6); border-radius: var(--radius-card); border: 1px solid var(--line-card); background: var(--surface); }
.an-kpi__label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-mid); }
.an-kpi__value { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.an-kpi__unit { margin-left: 4px; font-size: 18px; font-weight: 500; color: var(--text-muted); }
.an-kpi__ctx { font-size: 12.5px; color: var(--text-muted); }
.an-cover { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.an-cover__bar { flex: 0 0 70px; height: 4px; border-radius: 2px; background: var(--fill-selected); overflow: hidden; }
.an-cover__bar i { display: block; height: 4px; background: var(--text-muted); }
.an-skel { border-radius: 6px; background: linear-gradient(90deg, var(--fill-hover) 0, var(--fill-selected) 50%, var(--fill-hover) 100%); background-size: 800px 100%; animation: an-shimmer 1.6s linear infinite; }
@keyframes an-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.an-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 0; text-align: center; color: var(--text-muted); font-size: 13px; }
.an-empty b { color: var(--text); font-size: 15px; font-weight: 600; }

/* ---------- Gráficos ---------- */
.an-axis { font-family: var(--font-mono); font-size: 11px; fill: var(--text-muted); }
.an-value { font-family: var(--font-mono); font-size: 12px; fill: var(--text); }
.an-grid { stroke: var(--chart-grid); }
.an-base { stroke: var(--line-card); }
.an-tooltip { padding: 10px 12px; border-radius: var(--radius-md); background: var(--tooltip-bg); color: var(--tooltip-text); box-shadow: var(--shadow-pop); font-size: 12.5px; line-height: 1.45; white-space: nowrap; }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-mid); }
.an-legend span { display: inline-flex; align-items: center; gap: 6px; }
.an-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.an-sid { background: repeating-linear-gradient(135deg, var(--data-rest) 0 3px, var(--fill-hover) 3px 7px); }

/* ---------- Tablas y filas ---------- */
.an-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.an-table th { padding: 8px 10px; border-bottom: 1px solid var(--line-card); text-align: left; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.an-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); }
.an-table .n { text-align: right; font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.an-table tr.is-total td { font-weight: 600; border-bottom: none; }
.an-qrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 170px 180px 70px; gap: var(--space-4); align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.an-qrow.is-back { background: var(--accent-tint); border-radius: var(--radius-sm); }
.an-qrow__id { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.an-qrow__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-qrow__age { font-family: var(--font-mono); font-size: 12.5px; text-align: right; }

/* ---------- Notas y franja ---------- */
.an-note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--fill-hover); font-size: 13.5px; line-height: 1.5; color: var(--text-mid); }
.an-note b { color: var(--text); font-weight: 600; }
.an-note--dashed { border-style: dashed; }
.an-origin { display: flex; align-items: center; gap: 14px; padding: 10px var(--space-7); border-bottom: 1px solid var(--line-soft); background: var(--surface-raised); font-size: 13.5px; }
.an-filter { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--accent-line-strong); background: var(--accent-tint); font-size: 12.5px; }

/* ---------- Tickets ---------- */
.an-titem { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.an-titem.is-selected { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 3px var(--focus-ring); }
.an-titem__head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); }
.an-titem__body { padding: 12px 14px; border-radius: var(--radius-md); background: var(--imp-bg-alt); color: var(--imp-text); }
.an-titem__num { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--imp-accent); }
.an-titem__date { font-family: var(--font-mono); font-size: 10.5px; color: var(--imp-text-muted); }
.an-titem__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.an-titem__sub { font-size: 12px; color: var(--imp-text-muted); }
.an-tlabel { padding: 2px 8px; border-radius: var(--radius-xs); font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--text-mid); }
.an-tlabel--ok { border-color: var(--accent-line); color: var(--accent-soft); }
.an-tlabel--dash { border-style: dashed; color: var(--text); }
.an-imp { overflow: hidden; border-radius: var(--radius-card); border: 1px solid var(--imp-line); background: var(--imp-bg); color: var(--imp-text); }
.an-imp__bar { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--imp-line); background: var(--imp-bg-alt); }
.an-imp__eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--imp-accent); }
.an-imp__meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--imp-text-muted); }
.an-imp__label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--imp-text-muted); }
.an-imp__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--imp-line); background: var(--imp-line); }
.an-imp__fact { display: flex; flex-direction: column; gap: 5px; min-height: 64px; padding: 14px 16px; background: var(--imp-bg); }
.an-imp__fact b { font-size: 16px; font-weight: 600; }
.an-imp__fact.is-missing { background: repeating-linear-gradient(135deg, var(--imp-bg-alt) 0 8px, var(--imp-missing) 8px 9px); }
.an-imp__fact.is-missing b { color: var(--imp-text-muted); font-size: 20px; }
.an-origin-mark { text-decoration: underline dotted var(--imp-text-muted); text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: help; }
.an-imp__note { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.an-imp__notetag { padding: 1px 6px; border-radius: 4px; background: var(--imp-missing); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--imp-text-muted); }

/* ---------- Chat ---------- */
.an-fab { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--fab); height: var(--fab); border: none; border-radius: var(--radius-panel); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-fab); cursor: pointer; }
.an-fab__count { position: absolute; top: -5px; right: -5px; display: flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; border: 2px solid var(--bg); background: var(--text); color: var(--on-accent); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.an-chat { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-panel); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-panel); }
.an-chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface-raised); }
.an-chat__mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--accent-line-strong); background: var(--accent-tint); color: var(--accent-lite); }
.an-chat__log { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-4); min-height: 0; flex: 1; padding: 16px; }
.an-msg-me { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 86%; }
.an-bubble { padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--surface-bubble); font-size: 14px; }
.an-msg-ag { align-self: flex-start; display: flex; flex-direction: column; gap: 6px; max-width: 92%; font-size: 14px; line-height: 1.55; color: var(--text); }
.an-msg-ag__who { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-lite); }
.an-time { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.an-read { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 9px 3px 7px; border-radius: 7px; border: 1px solid var(--line-card); font-size: 12px; color: var(--text-mid); }
.an-read svg { color: var(--accent-lite); }
.an-att { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 280px; padding: 8px 10px; border-radius: var(--radius-lg); border: 1px solid var(--line-card); background: var(--surface-2); }
.an-att__type { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 42px; border-radius: 7px; background: var(--imp-bg-alt); color: var(--imp-text); font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; }
.an-att__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 500; }
.an-att__meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); }
.an-photo { position: relative; overflow: hidden; width: 220px; height: 150px; border-radius: var(--radius-lg); border: 1px solid var(--line-card); background: linear-gradient(135deg, var(--accent-tint), var(--surface-2)); }
.an-photo__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 9px; background: linear-gradient(transparent, var(--bg)); font-family: var(--font-mono); font-size: 10.5px; color: var(--text); }
.an-pend { position: relative; display: flex; align-items: center; gap: 8px; max-width: 210px; padding: 6px 30px 6px 6px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-2); }
.an-pend.is-rejected { border-style: dashed; border-color: var(--text-faint); }
.an-pend__bar { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--fill-selected); overflow: hidden; }
.an-pend__bar i { display: block; height: 2px; background: var(--accent); }
.an-composer { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line-soft); }
.an-composer__box { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 6px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg); }
.an-composer__box input { flex: 1; min-width: 0; height: 36px; border: none; outline: none; background: transparent; color: var(--text); font-family: var(--font-sans); font-size: 14px; }
.an-composer__box input::placeholder { color: var(--text-faint); }
.an-send { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border: none; border-radius: var(--radius-md); background: var(--accent); color: var(--on-accent); cursor: pointer; }
.an-send[disabled] { background: var(--fill-selected); color: var(--text-faint); }
.an-hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.an-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px 16px; border-radius: 14px; border: 2px dashed var(--accent); background: var(--bg); color: var(--accent-lite); text-align: center; }
.an-typing span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--accent-lite); animation: an-blink 1.2s infinite; }
.an-typing span:nth-child(2) { animation-delay: .2s; }
.an-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes an-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .an-spin, .an-pulse, .an-skel, .an-typing span { animation: none; }
}


/* ---------- Desenlace (V9) ---------- */
.an-outcome { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--text); }
.an-outcome svg { flex-shrink: 0; }
.an-outcome--ok { border-color: var(--status-ok-line); background: var(--status-ok-tint); }
.an-outcome--ok svg { color: var(--status-ok); }
.an-outcome--partial { border-color: var(--line-strong); background: var(--fill-hover); }
.an-outcome--no { border: 1px dashed var(--line-strong); }
.an-outcome--quiet { border-color: var(--line-strong); color: var(--text-mid); }
.an-outcome--system { background: var(--fill-selected); color: var(--text-mid); }
.an-outcome--done { border-color: var(--accent-line); background: var(--accent-tint); color: var(--accent-soft); }

.an-org { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--radius-xs); border: 1px solid var(--line-strong); background: var(--surface-2); font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; }

.an-flag { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: var(--radius-xs); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.an-flag--untested { border: 1px dashed var(--line); color: var(--text-muted); }
.an-flag--assumption { border: 1px dashed var(--assumption-line); color: var(--text-mid); }
.an-flag--noperm { border: 1px solid var(--line-strong); color: var(--text); }
.an-flag--pending { border: 1px dashed var(--assumption-line); color: var(--text-mid); }

.an-change { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: var(--space-3); row-gap: 2px; align-items: center; padding: 5px 0; }
.an-change__text { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text); }
.an-change__state { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; text-align: right; }
.an-change__state.is-strong { color: var(--text); }
.an-change__state.is-live { color: var(--accent-lite); }
.an-change__why { grid-column: 2 / 4; font-size: 12.5px; color: var(--text-muted); }
.an-change.is-off .an-change__text { color: var(--text-faint); }
.an-change.is-dim { opacity: .45; }
.an-mark { width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
.an-mark--add { background: var(--accent-tint); border: 1px solid var(--accent-line-strong); color: var(--accent-lite); }
.an-mark--remove, .an-mark--change { border: 1px solid var(--line-strong); color: var(--text-mid); }
.an-mark--skip, .an-mark--waiting { border: 1px dashed var(--line-strong); color: var(--text-faint); }
.an-mark--same { color: var(--text-faint); }
.an-mark--done { background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent); }
.an-mark--running { color: var(--accent); }
.an-person { padding: 12px 0 6px; border-top: 1px solid var(--line-soft); }
.an-person:first-child { border-top: none; padding-top: 2px; }
.an-person__name { margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; }
.an-person__meta { font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; color: var(--text-muted); }

.an-dialog { width: 520px; max-width: 100%; box-sizing: border-box; border-radius: var(--radius-panel); border: 1px solid var(--line); background: var(--surface-raised); box-shadow: var(--shadow-panel); overflow: hidden; }
.an-dialog--sm { width: 460px; }
.an-dialog__head { padding: 20px 22px 12px; display: flex; flex-direction: column; gap: 6px; }
.an-dialog__title { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.an-dialog__body { padding: 0 22px 18px; display: flex; flex-direction: column; gap: var(--space-3); font-size: 14.5px; color: var(--text-mid); }
.an-dialog__body b { font-weight: 600; color: var(--text); }
.an-dialog__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line-card); background: var(--surface); }
.an-callout { padding: 11px 13px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--fill-hover); font-size: 13.5px; color: var(--text-mid); display: flex; flex-direction: column; gap: 4px; }

.an-progress { height: 4px; border-radius: 2px; background: var(--fill-selected); overflow: hidden; }
.an-progress__bar { display: block; height: 4px; background: var(--accent); }
.an-progress--indeterminate .an-progress__bar { width: 35%; animation: an-indeterminate 1.4s ease-in-out infinite; }
@keyframes an-indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

.an-result { display: flex; align-items: flex-start; gap: 20px; padding: 20px 26px; border-radius: var(--radius-card); border: 1px solid var(--line-card); background: var(--surface); }
.an-result__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.an-result__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.an-result__line { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.an-result__line b { font-weight: 400; color: var(--text-mid); }

@media (prefers-reduced-motion: reduce) {
  .an-progress--indeterminate .an-progress__bar { animation: none; }
}
