/* EM-8: estilos de /app, /prop y /cuenta sobre design.css (archivo propio; la CSP style-src 'self' no deja style=""). */
.bajada { max-width: 46rem; }
main > .tarjeta, main > section { margin-bottom: var(--s5); }
.fila-clave { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.fila-clave input { flex: 1 1 14rem; min-width: 0; }
textarea.corto { min-height: 7rem; width: 100%; box-sizing: border-box; }
.pasos > li h3 { margin-top: 0; }
.pasos .campo input[type="file"] { max-width: 100%; }
.badge.grande { font-size: var(--fs-xl); padding: var(--s2) var(--s4); }
.estado-tarjeta { border-width: 2px; }
.deshabilitada { opacity: .65; }
.deshabilitada button[disabled] { cursor: not-allowed; }
svg.historial, svg.dist { width: 100%; height: auto; display: block; }
svg .franja-ok { fill: var(--c-ok-bg); }
svg .franja-watch { fill: var(--c-warn-bg); }
svg .franja-alert { fill: var(--c-bad-bg); }
svg .eje { fill: var(--c-muted); }
svg .linea { stroke: var(--c-primary); }
svg .punto { fill: var(--c-primary); }
svg .barra-pass { fill: var(--c-ok); }
svg .barra-diaria { fill: var(--c-bad); }
svg .barra-total { fill: var(--c-warn); }
svg .barra-timeout { fill: var(--c-muted); }
svg .rotulo { fill: var(--c-text); }
.presets { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.presets .btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c-primary); }
.reglas { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.reglas .campo { margin: 0; }
.reglas input, .reglas select { width: 100%; box-sizing: border-box; }
.resultados { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.resultados .tarjeta { margin: 0; }
.resultados .valor { font-size: var(--fs-2xl); font-weight: 700; margin: var(--s1) 0; }
.resultados small { color: var(--c-muted); }
.sintetico { font-weight: 700; color: var(--c-warn); }
.planes { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.planes .tarjeta { margin: 0; }
.uso-fila { margin-bottom: var(--s3); }
/* EM-10 Q3: barra de cuota visible (10 px, colores del design system; ≥ 80 % warn, 100 % bad). */
.uso-fila progress { display: block; width: 100%; height: 10px; min-height: 8px; margin-top: var(--s2);
  -webkit-appearance: none; appearance: none; border: 1px solid var(--c-border); border-radius: 999px;
  background: var(--c-surface-2); overflow: hidden; color: var(--c-primary); }
.uso-fila progress::-webkit-progress-bar { background: var(--c-surface-2); border-radius: 999px; }
.uso-fila progress::-webkit-progress-value { background: var(--c-primary); border-radius: 999px; }
.uso-fila progress::-moz-progress-bar { background: var(--c-primary); border-radius: 999px; }
.uso-fila progress.casi::-webkit-progress-value { background: var(--c-warn); }
.uso-fila progress.casi::-moz-progress-bar { background: var(--c-warn); }
.uso-fila progress.lleno::-webkit-progress-value { background: var(--c-bad); }
.uso-fila progress.lleno::-moz-progress-bar { background: var(--c-bad); }
.uso-fila p[title] { cursor: help; text-decoration: underline dotted var(--c-border); text-underline-offset: 3px; }
.key-fila { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.key-fila code { overflow-wrap: anywhere; }
.cuenta-plan { font-size: var(--fs-xl); font-weight: 700; margin: 0; }
.docs code { overflow-wrap: anywhere; }
.docs th { white-space: normal; }
#cuenta-eventos th, #cuenta-eventos td { white-space: nowrap; }
