/* Herramienta Simplex — hoja propia de la página simplex.php.
   ==========================================================
   La herramienta trae mucha pieza suya (la rejilla del modelo, las tablas del
   simplex, el dibujo del método gráfico), así que en lugar de repintarlas una
   por una con los colores a mano, todo lo de aquí cuelga de `.simplex` y los
   colores salen de las variables del sitio (site.css): azul y blanco, bordes
   suaves y radios grandes, igual que las demás páginas.

   Colgar de `.simplex` no es un capricho: la herramienta usa nombres tan
   corrientes como .card, .btn, .chip, .panel o .grid, que también existen en el
   sitio. Con el envoltorio delante, lo de aquí no se sale de la herramienta y
   la barra de navegación, el pie y las demás páginas no se enteran de nada.

   Se carga después de tools.css, de la que se aprovecha .aviso-caja (el aviso
   que sale si el navegador no admite BigInt). */

.simplex {
  /* Los nombres son los que usan las reglas de abajo; los valores, los del
     sitio. Se declaran aquí y no en :root para no tocar nada de fuera. */
  --primary-ink: #fff;
  --primary-soft: var(--surface-2);
  --border-strong: rgba(20, 60, 110, .28);
  /* Verde, ámbar y rojo en la misma clave apagada que usa .aviso-caja. */
  --ok: #1f6b4c;         --ok-soft: rgba(43, 143, 101, .10);
  --warn: #8a5a10;       --warn-soft: rgba(196, 140, 20, .13);
  --err: #8d2020;        --err-soft: rgba(198, 40, 40, .07);
  /* Pivote, columna que entra y fila que sale: los tres resaltes de las tablas. */
  --pivot: #ffe9a8;
  --colin: rgba(43, 95, 217, .07);
  --rowout: rgba(196, 140, 20, .09);
  --shadow-lg: 0 10px 30px rgba(20, 60, 110, .16);
  --sans: 'Inter', sans-serif;
  --mono: 'SFMono-Regular', ui-monospace, 'Menlo', 'Consolas', monospace;
}

/* Las reglas de abajo dan display a label y a section, que ganan a la hoja del
   navegador: el atributo hidden necesita reafirmarse. */
.simplex [hidden] { display: none !important; }
.simplex p { margin: 0 0 .7em; }
.simplex a { color: var(--accent); }
.simplex .muted { color: var(--muted); }
.simplex .small { font-size: .84rem; }
.simplex .lead { font-size: 1rem; }
/* Dentro de la herramienta los títulos son rótulos de interfaz, no titulares:
   van en Inter como los de las tarjetas del sitio, no en la serif. */
.simplex h2, .simplex h3, .simplex h4 {
  font-family: 'Inter', sans-serif; font-weight: 600; margin: 0 0 .4em; line-height: 1.3;
}
.simplex h2 { font-size: 1.05rem; }
.simplex h3 { font-size: .98rem; }
.simplex h4 { font-size: .9rem; }

/* ---------- Tarjeta y cabecera ---------- */
.simplex .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin: 0 0 18px;
}
.simplex .card-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.simplex .dims { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.simplex .dims label,
.simplex .options label { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); }

/* ---------- Controles ---------- */
.simplex input, .simplex select, .simplex button { font: inherit; color: inherit; }
.simplex .mini, .simplex .num {
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  padding: 5px 9px; font-size: .86rem; color: var(--text); font-family: 'Inter', sans-serif;
}
.simplex .num { width: 64px; text-align: center; }
.simplex select.mini { padding-right: 24px; }
.simplex .mini:focus, .simplex .num:focus,
.simplex .cellinput:focus, .simplex .varname:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; }

/* Los botones son los del sitio: pastilla de borde suave, y la acción
   principal en azul (lo mismo que .btn-more y .btn-more.primary). */
.simplex .btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--border); color: var(--accent);
  border-radius: 999px; padding: 10px 20px; font-size: .9rem; font-weight: 600;
  font-family: 'Inter', sans-serif; transition: .2s;
}
.simplex .btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 60, 110, .1); }
.simplex .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--primary-ink); }
.simplex .btn-primary:hover { background: #2450b8; }
.simplex .btn-ghost { background: var(--bg); color: var(--muted); }
.simplex .btn-ghost:hover { color: var(--accent); }
.simplex .btn-sm { padding: 6px 14px; font-size: .8rem; }
.simplex .chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--bg);
  border: 1px solid var(--border); color: var(--muted); border-radius: 999px;
  padding: 5px 13px; font-size: .82rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: .15s;
}
.simplex .chip:hover { color: var(--accent); border-color: var(--accent-soft); background: var(--surface-2); }
.simplex .file-label { display: inline-flex; align-items: center; cursor: pointer; }
.simplex .grid-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.simplex .hint { font-size: .8rem; color: var(--muted); margin-left: auto; }
.simplex .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; }
.simplex .actions .spacer { flex: 1 1 auto; }
.simplex .options {
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 16px 0 6px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.simplex .chk { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); }
.simplex .chk input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ---------- Rejilla del modelo ---------- */
.simplex .model-table-host { overflow-x: auto; margin: 0 -4px; padding: 4px; }
.simplex .model-grid { border-collapse: separate; border-spacing: 4px; }
.simplex .model-grid th, .simplex .model-grid td { padding: 0; }
.simplex .model-grid thead th { text-align: center; font-weight: 600; font-size: .82rem; color: var(--muted); }
.simplex .model-grid .corner { width: auto; }
.simplex .varname {
  width: 72px; text-align: center; background: transparent; border: 1px solid transparent;
  border-radius: 7px; padding: 3px 4px; font-weight: 600; color: var(--accent); font-size: .84rem;
}
.simplex .varname:hover { border-color: var(--border); }
.simplex .cellinput {
  width: 78px; text-align: center; padding: 7px 6px; border: 1px solid var(--border);
  border-radius: 9px; background: var(--bg); font-family: var(--mono); font-size: .88rem; color: var(--text);
}
.simplex .cellinput:hover { border-color: var(--accent-soft); }
.simplex .cellinput.bad { border-color: rgba(198, 40, 40, .45); background: var(--err-soft); }
.simplex .rowhead {
  white-space: nowrap; padding-right: 8px !important; font-size: .85rem;
  color: var(--muted); text-align: right; font-weight: 600;
}
.simplex .obj-row .rowhead { color: var(--text); }
.simplex .zeq { font-weight: 700; }
.simplex select.sense { border: 1px solid var(--border); border-radius: 9px; padding: 4px 6px; font-size: .84rem; background: var(--bg); }
.simplex select.op { border: 1px solid var(--border); border-radius: 9px; padding: 6px 4px; font-size: .95rem; text-align: center; background: var(--surface-2); }
.simplex .opcell { text-align: center; }
.simplex .plus { color: var(--muted); }
.simplex .types-row td { text-align: center; }
.simplex select.vtype {
  width: 100%; max-width: 150px; border: 1px solid var(--border); border-radius: 8px;
  padding: 3px 4px; font-size: .74rem; background: var(--surface-2); color: var(--muted);
}
.simplex .types-row .rowhead { font-size: .76rem; }

/* ---------- Vista previa del modelo ---------- */
.simplex .preview-host { margin-top: 16px; }
.simplex .model-preview {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; font-size: .95rem;
}
.simplex .mp-line { margin-bottom: 4px; }
.simplex .mp-key { font-weight: 600; color: var(--accent); }
.simplex .mp-z { font-weight: 700; }
.simplex .mp-sub { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.simplex .mp-cons { list-style: none; margin: 2px 0 0; padding: 0; }
.simplex .mp-cons li { padding: 1px 0 1px 8px; border-left: 2px solid var(--border); margin-bottom: 2px; }
.simplex .mp-rn { display: inline-block; min-width: 34px; color: var(--muted); font-size: .8rem; }
.simplex .mp-sign { border-left-color: transparent !important; color: var(--muted); font-size: .86rem; margin-top: 4px; }

/* Fracciones apiladas: numerador sobre denominador, como en un libro. */
.simplex .fr {
  display: inline-flex; flex-direction: column; vertical-align: middle; line-height: 1.05;
  font-size: .78em; text-align: center; margin: 0 .08em;
}
.simplex .fr-n { border-bottom: 1px solid currentColor; padding: 0 .18em; }
.simplex .fr-d { padding: 0 .18em; }

/* ---------- Avisos de entrada ---------- */
.simplex .error-box {
  margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: .85rem;
  background: rgba(198, 40, 40, .06); border: 1px solid rgba(198, 40, 40, .35); color: var(--err);
}
.simplex .error-box p { margin: 2px 0 0; font-size: .88rem; }

/* ---------- Resultados ---------- */
/* El margen de arriba es para el salto: la barra de navegación es pegajosa y
   sin él el rótulo del resultado se queda debajo. */
.simplex .results { margin: 24px 0 8px; padding: 0; scroll-margin-top: 76px; }
.simplex .status-banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); flex-wrap: wrap;
}
.simplex .status-banner.ok { border-left: 4px solid var(--ok); }
.simplex .status-banner.warn { border-left: 4px solid var(--warn); }
.simplex .status-banner.err { border-left: 4px solid var(--err); }
.simplex .sb-icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 700; flex: none;
}
.simplex .status-banner.ok .sb-icon { background: var(--ok-soft); color: var(--ok); }
.simplex .status-banner.warn .sb-icon { background: var(--warn-soft); color: var(--warn); }
.simplex .status-banner.err .sb-icon { background: var(--err-soft); color: var(--err); }
.simplex .sb-text { flex: 1 1 260px; }
.simplex .sb-text h2 { margin: 0; }
.simplex .sb-z { margin: 2px 0 0; font-size: .95rem; color: var(--muted); }
.simplex .sb-z b { color: var(--text); font-size: 1.05rem; }
.simplex .sb-badge {
  font-size: .78rem; padding: 5px 12px; border-radius: 999px; background: var(--ok-soft);
  color: var(--ok); font-weight: 600; white-space: nowrap;
}
.simplex .sb-badge.bad { background: var(--warn-soft); color: var(--warn); }

/* Las pestañas son las mismas que en la otra herramienta (.pestanas de
   tools.css), sólo que aquí las escribe el javascript con sus nombres. */
.simplex .tabbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; border-bottom: 1px solid var(--border); }
.simplex .tab {
  border: 0; background: none; cursor: pointer; font-family: 'Inter', sans-serif;
  font-size: .9rem; font-weight: 600; color: var(--muted); padding: 10px 16px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s;
}
.simplex .tab:hover { color: var(--accent); }
.simplex .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.simplex .panels {
  background: var(--surface); border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); padding: 22px;
}
.simplex .panel { display: none; }
.simplex .panel.active { display: block; }
.simplex .panel-print-title { display: none; }
.simplex .result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

/* ---------- Solución ---------- */
.simplex .zbox {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 16px 18px;
  background: var(--primary-soft); border-radius: 14px; margin-bottom: 18px;
}
.simplex .zlabel { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.simplex .zval { font-size: 1.45rem; font-weight: 700; }
.simplex .zdec { color: var(--muted); font-size: .9rem; }

.simplex table.grid { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: .9rem; }
.simplex table.grid th, .simplex table.grid td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: right; }
.simplex table.grid th:first-child, .simplex table.grid td:first-child { text-align: left; }
.simplex table.grid thead th {
  background: var(--surface-2); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--border);
}
.simplex table.grid tbody tr:hover { background: var(--surface-2); }
.simplex table.grid .vname { font-weight: 600; }
.simplex table.grid .op { text-align: center; color: var(--muted); }
.simplex table.grid tr.binding { background: var(--ok-soft); }
.simplex table.grid.compact th, .simplex table.grid.compact td { padding: 5px 8px; font-size: .84rem; }
.simplex .vval { font-family: var(--mono); }
.simplex .tag {
  display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.simplex .tag-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }

.simplex .block { margin-top: 20px; }
.simplex .diagnostics { margin-top: 20px; display: grid; gap: 10px; }
.simplex .note {
  padding: 12px 16px; border-radius: 12px; font-size: .88rem;
  border: 1px solid var(--border); background: var(--surface-2); color: #3a4f68;
}
.simplex .note h4 { margin: 0 0 4px; }
.simplex .note p { margin: 0 0 4px; }
.simplex .note-info { background: rgba(43, 95, 217, .07); border-color: transparent; }
.simplex .note-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.simplex .note-warn h4 { color: var(--warn); }
.simplex .note-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.simplex .note-plain { color: var(--muted); }
.simplex .points { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.simplex .points li {
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  padding: 4px 11px; font-family: var(--mono); font-size: .86rem;
}
.simplex .general { font-size: .88rem; }
.simplex .ray-box { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.simplex .ray-box h4 { margin-top: 0; }
.simplex .ray { font-family: var(--mono); font-size: 1rem; }
.simplex .farkas { list-style: none; margin: 4px 0 0; padding: 0; font-family: var(--mono); font-size: .88rem; }

/* ---------- Iteraciones ---------- */
.simplex .phase { margin-bottom: 28px; }
.simplex .phase-title { padding-bottom: 6px; border-bottom: 2px solid var(--accent); display: inline-block; margin-bottom: 16px; }
.simplex .phase-note { font-size: .9rem; background: var(--surface-2); padding: 10px 14px; border-radius: 12px; }
.simplex .tableau-block { margin-bottom: 22px; }
.simplex .tableau-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.simplex .tnum { font-weight: 600; font-size: .88rem; }
.simplex .tmsg { font-size: .85rem; color: var(--muted); }
.simplex .tmsg.ok { color: var(--ok); font-weight: 600; }
.simplex .tmsg.warn { color: var(--warn); font-weight: 600; }
.simplex .tscroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.simplex table.tableau { border-collapse: collapse; font-size: .86rem; width: 100%; font-family: var(--mono); }
.simplex table.tableau th, .simplex table.tableau td {
  padding: 6px 10px; text-align: center; border-right: 1px solid var(--border); white-space: nowrap;
}
.simplex table.tableau th:last-child, .simplex table.tableau td:last-child { border-right: 0; }
.simplex table.tableau thead .row-cj th {
  background: var(--surface-2); color: var(--muted); font-size: .8rem; border-bottom: 0; padding-bottom: 2px;
}
.simplex table.tableau thead .row-head th { background: var(--surface-2); border-bottom: 2px solid var(--border-strong); font-weight: 600; }
.simplex table.tableau .cj-tag { font-weight: 600; }
.simplex table.tableau th.corner[colspan] { text-align: right; padding-right: 14px; }
.simplex table.tableau th.theta { font-family: var(--sans); font-style: italic; font-size: .95rem; }
.simplex table.tableau .corner { background: transparent !important; }
.simplex table.tableau tbody td { border-bottom: 1px solid var(--border); }
.simplex table.tableau tbody tr:last-child td { border-bottom: 0; }
.simplex table.tableau .cb, .simplex table.tableau .base { background: var(--surface-2); font-weight: 600; }
.simplex table.tableau .p0 { font-weight: 600; }
.simplex table.tableau .col-in { background: var(--colin); }
.simplex table.tableau .row-out td { background: var(--rowout); }
.simplex table.tableau .row-out td.col-in,
.simplex table.tableau td.pivot { background: var(--pivot); font-weight: 700; box-shadow: inset 0 0 0 2px var(--warn); }
.simplex table.tableau tfoot .row-z td { background: var(--surface-2); border-top: 2px solid var(--border-strong); font-weight: 600; }
.simplex table.tableau tfoot .row-z td.col-in { background: var(--colin); }
.simplex table.tableau .ratio { color: var(--muted); }
.simplex table.tableau .ratio.best { color: var(--warn); font-weight: 700; }
.simplex table.tableau .kind-slack { color: var(--ok); }
.simplex table.tableau .kind-surplus { color: var(--warn); }
.simplex table.tableau .kind-artificial { color: var(--err); }
.simplex .legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .8rem; color: var(--muted); margin: 12px 0; }
.simplex .legend-title { font-weight: 600; }
.simplex .legend-item { display: inline-flex; align-items: center; gap: 6px; }
.simplex .legend-item .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; }
.simplex .legend-item.kind-decision { color: var(--accent); }
.simplex .legend-item.kind-slack { color: var(--ok); }
.simplex .legend-item.kind-surplus { color: var(--warn); }
.simplex .legend-item.kind-artificial { color: var(--err); }
/* El sitio quita las viñetas a todas las listas; aquí se recuperan. */
.simplex .notes-list { font-size: .86rem; color: var(--muted); padding-left: 18px; list-style: disc; }
.simplex .notes-list li { margin-top: 3px; }

/* ---------- Método gráfico ---------- */
.simplex .graph-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.simplex .graph-help { margin-left: auto; }
.simplex .graph-holder {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--surface); touch-action: none;
}
.simplex .graph-svg { display: block; width: 100%; height: auto; cursor: grab; user-select: none; }
.simplex .graph-svg:active { cursor: grabbing; }
.simplex .plot-bg { fill: var(--surface-2); }
.simplex .plot-frame { fill: none; stroke: var(--border-strong); }
.simplex .grid-lines line { stroke: var(--border); stroke-width: 1; }
.simplex .grid-lines line.axis { stroke: var(--border-strong); stroke-width: 1.8; }
.simplex .grid-lines text.tick, .simplex text.tick { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.simplex text.axis-label { fill: var(--text); font-size: 12px; font-weight: 600; font-family: var(--sans); }
.simplex .region { fill: var(--accent); fill-opacity: .14; stroke: var(--accent); stroke-width: 1.5; stroke-opacity: .5; }
.simplex .region-seg { stroke: var(--accent); stroke-width: 4; stroke-opacity: .6; }
.simplex .cons-line { stroke-width: 2; fill: none; }
.simplex text.cons-label {
  font-size: 11px; font-weight: 600; font-family: var(--sans);
  paint-order: stroke; stroke: var(--surface-2); stroke-width: 3px;
}
.simplex .level { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; opacity: .45; }
.simplex .level-opt { stroke: #c62828; stroke-width: 2.4; stroke-dasharray: 7 4; }
.simplex .ray-line { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 6 5; opacity: .8; }
.simplex circle.vertex { fill: var(--surface); stroke: var(--accent); stroke-width: 2.4; }
.simplex circle.vertex.opt { fill: #c62828; stroke: var(--surface); stroke-width: 3; }
.simplex text.vlabel {
  font-size: 11px; fill: var(--text); font-family: var(--mono);
  paint-order: stroke; stroke: var(--surface-2); stroke-width: 3px;
}
.simplex text.vlabel.opt { fill: #c62828; font-weight: 700; }
.simplex .graph-info { margin-top: 14px; }

/* ---------- Aviso flotante ---------- */
.simplex .toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px);
  background: #10233c; color: #eaf2fb; padding: 10px 20px; border-radius: 999px;
  font-size: .86rem; opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity .2s, transform .2s; box-shadow: var(--shadow-lg);
}
.simplex .toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .simplex .card { padding: 16px; }
  .simplex .panels { padding: 16px; }
  .simplex .cellinput { width: 66px; }
  .simplex .hint { margin-left: 0; flex-basis: 100%; }
  .simplex .zval { font-size: 1.2rem; }
  .simplex .tab { padding: 9px 11px; font-size: .84rem; }
}

/* ---------- Impresión ---------- */
/* Para llevarse la resolución en PDF: fuera lo que no se puede pulsar en papel
   (la navegación del sitio, los botones, las pestañas) y todos los paneles
   abiertos, cada uno con su rótulo. */
@media print {
  /* El sitio no tiene hoja de impresión propia y esta página sí se imprime, así
     que la navegación, el pie de contacto y los textos de ayuda se quedan
     fuera: en el papel sólo va el problema y su resolución. */
  .site-nav, .site-foot, .page-head { display: none !important; }
  .simplex .grid-tools, .simplex .options, .simplex .actions, .simplex .result-actions,
  .simplex .tabbar, .simplex .toast, .simplex .graph-tools, .simplex .error-box { display: none !important; }
  .simplex .card, .simplex .panels, .simplex .status-banner { border-color: #bbb; break-inside: avoid; }
  .simplex .panels { border-top: 1px solid #bbb; border-radius: 14px; }
  .simplex .panel { display: block !important; break-inside: auto; }
  .simplex .panel-print-title { display: block; margin: 14pt 0 6pt; border-bottom: 1px solid #999; }
  .simplex .tableau-block, .simplex .status-banner, .simplex table.grid { break-inside: avoid; }
  .simplex .tscroll { overflow: visible; }
  .simplex a { text-decoration: none; color: #000; }
}
