/* Stampado · herramientas que corren en el navegador (/herramientas/<id>/). Se carga después de contenido.css.
   Solo variables de tokens.css; prefijo st-. Móvil primero. Los colores en línea del HTML son datos (telas, paleta). */
.st-hero-tool { padding-bottom: clamp(var(--sp-5), 3vw, var(--sp-8)); }
.st-hero-tool h1 { max-width: 20ch; font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
.st-private { display: inline-flex; align-items: center; justify-self: start; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); background: var(--s-selected); color: var(--s-primary); font-size: var(--t-sm); font-weight: 600; }
.st-prose { display: grid; gap: var(--sp-4); max-width: 42rem; font-size: var(--t-lg); line-height: 1.62; }
.st-doc h3 { margin: 0; font: 700 var(--t-xl)/1.15 var(--f-display); letter-spacing: -.025em; }
.st-section-head .st-more { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-touch); color: var(--s-primary); font-weight: 700; text-decoration: none; }
.st-section-head .st-more:hover { color: var(--s-focus); text-decoration: underline; }

/* ── Marco de la herramienta y sus estados (data-state: empty · loading · ready · error) ── */
.st-app { display: grid; gap: var(--sp-5); margin-bottom: clamp(var(--sp-8), 5vw, var(--sp-16)); padding: var(--sp-4); border: 1px solid var(--s-border); border-radius: var(--r-5); background: var(--s-surface); box-shadow: var(--e-2); }
.st-app[data-state="empty"] [data-show]:not([data-show~="empty"]),
.st-app[data-state="loading"] [data-show]:not([data-show~="loading"]),
.st-app[data-state="ready"] [data-show]:not([data-show~="ready"]),
.st-app[data-state="error"] [data-show]:not([data-show~="error"]) { display: none; }
.st-app :is(fieldset, dl, dd, ul, legend) { margin: 0; padding: 0; border: 0; }
.st-app ul { list-style: none; }
.st-app :is(button, input, textarea) { font-family: inherit; }
.st-app :is(button, input, textarea, canvas):focus-visible, .st-app :is(.st-segment label, .st-swatch):has(input:focus-visible) > span, .st-options label:has(input:focus-visible) { outline: 2px solid var(--s-focus); outline-offset: 2px; }
.st-app-grid, .st-app-stack, .st-app-side, .st-app-main { display: grid; align-content: start; gap: var(--sp-5); min-width: 0; }
.st-app-status { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); min-height: 12rem; color: var(--s-text-2); font-weight: 600; }
.st-app-status::before { content: ""; width: 1.25rem; height: 1.25rem; border: 2px solid var(--s-border); border-top-color: var(--s-primary); border-radius: 50%; animation: st-spin .8s linear infinite; }
@keyframes st-spin { to { transform: rotate(1turn); } }
.st-app-error { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-3); background: var(--s-danger-bg); color: var(--s-danger); font-weight: 600; }
.st-note { color: var(--s-text-2); font-size: var(--t-sm); line-height: var(--lh-snug); }
.st-note a { color: var(--s-primary); font-weight: 600; }
.st-result { color: var(--s-text); font-weight: 600; }
.st-result:empty { display: none; }
.st-checker { background: repeating-conic-gradient(var(--s-sunken) 0 25%, var(--s-surface) 0 50%) 0 0 / 20px 20px; }

/* Zona de carga */
.st-drop { position: relative; display: grid; justify-items: center; gap: var(--sp-3); padding: clamp(var(--sp-8), 9vw, 5rem) var(--sp-5); border: 2px dashed var(--s-border-strong); border-radius: var(--r-4); background: var(--s-surface-2); text-align: center; transition: border-color var(--m-fast) var(--m-ease), background-color var(--m-fast) var(--m-ease); }
.st-drop:hover, .st-app[data-dragging] .st-drop { border-color: var(--s-primary); background: var(--s-selected); }
.st-drop:has(input:focus-visible) { outline: 2px solid var(--s-focus); outline-offset: 3px; }
.st-drop label { display: grid; justify-items: center; gap: var(--sp-2); cursor: pointer; }
.st-drop label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.st-drop .st-icon { box-sizing: content-box; margin-bottom: var(--sp-2); padding: var(--sp-4); border-radius: 50%; background: var(--s-accent); color: var(--s-on-accent); }
.st-drop strong { font: 700 var(--t-xl)/1.15 var(--f-display); letter-spacing: -.025em; }
.st-drop span { max-width: 26rem; color: var(--s-text-2); font-size: var(--t-md); }
.st-textbutton { position: relative; z-index: 1; min-height: var(--h-touch); padding: 0 var(--sp-3); border: 0; border-radius: var(--r-2); background: none; color: var(--s-primary); font-size: var(--t-md); font-weight: 700; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.st-textbutton:hover { color: var(--s-focus); }

/* Archivo cargado */
.st-file { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-3) var(--sp-4); padding: var(--sp-3); border: 1px solid var(--s-border); border-radius: var(--r-3); background: var(--s-surface-2); }
.st-file-thumb { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; overflow: hidden; border: 1px solid var(--s-border); border-radius: var(--r-2); background-size: 12px 12px; }
.st-file-thumb img { max-width: 100%; max-height: 100%; }
.st-file p { display: grid; gap: 2px; min-width: 0; }
.st-file strong { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.st-file p span { color: var(--s-text-2); font-size: var(--t-sm); }
.st-file .st-button { grid-column: 1 / -1; }

/* Botones dentro de la herramienta */
.st-app .st-button { min-height: 3rem; cursor: pointer; }
.st-app .st-button-quiet { border-color: var(--s-border-strong); background: var(--s-surface); color: var(--s-text); }
.st-app .st-button-quiet:hover { border-color: var(--s-primary); background: var(--s-hover); color: var(--s-text); }
.st-app .st-button[disabled] { background: var(--s-disabled-bg); color: var(--s-disabled-text); cursor: progress; }
.st-app-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.st-app-actions .st-button { flex: 1 1 14rem; }

/* Controles */
.st-group { display: grid; gap: var(--sp-3); min-width: 0; }
.st-group legend, .st-field > span:first-child, .st-range > span { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); color: var(--s-text); font-size: var(--t-md); font-weight: 700; }
.st-group legend { float: left; width: 100%; margin-bottom: 0; }
.st-group legend + * { clear: both; }
.st-chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.st-chip { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-touch); padding: 0 var(--sp-4); border: 1px solid var(--s-border-strong); border-radius: var(--r-pill); background: var(--s-surface); color: var(--s-text); font-size: var(--t-md); font-weight: 600; cursor: pointer; transition: background-color var(--m-fast) var(--m-ease), border-color var(--m-fast) var(--m-ease), color var(--m-fast) var(--m-ease); }
.st-chip-row-even { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-chip-row-even .st-chip { justify-content: center; padding: 0 var(--sp-1); white-space: nowrap; }
.st-chip:hover { border-color: var(--s-primary); background: var(--s-hover); }
.st-chip[aria-pressed="true"] { border-color: var(--s-primary); background: var(--s-primary); color: var(--s-on-primary); }
.st-field { display: grid; }
.st-field :is(input, textarea) { width: 100%; min-height: 3rem; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--s-border-strong); border-radius: var(--r-2); background: var(--s-surface); color: var(--s-text); font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.st-field textarea { min-height: 5.5rem; resize: vertical; line-height: var(--lh-snug); }
.st-field :is(input, textarea):hover { border-color: var(--s-primary); }
.st-field ::placeholder { color: var(--s-text-3); }
.st-field em { padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--s-accent); color: var(--s-on-accent); font-size: var(--t-xs); font-style: normal; font-weight: 700; }
.st-field[data-calculated] input { border-color: var(--s-accent-border); background: var(--s-surface-2); }
.st-unit { position: relative; display: block; }
.st-unit input { padding-right: 4rem; }
.st-unit i { position: absolute; right: var(--sp-4); top: 50%; transform: translateY(-50%); color: var(--s-text-2); font-size: var(--t-md); font-style: normal; font-weight: 600; pointer-events: none; }
.st-range { display: grid; }
.st-range > span { margin-bottom: 0; }
.st-range output { color: var(--s-text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.st-range input { width: 100%; min-height: var(--h-touch); margin: 0; accent-color: var(--s-primary); cursor: pointer; }
.st-range + .st-note { margin-top: calc(var(--sp-4) * -1); }
.st-field + .st-note { margin-top: calc(var(--sp-3) * -1); }
.st-options { display: grid; gap: var(--sp-2); }
.st-options label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--s-border); border-radius: var(--r-3); cursor: pointer; transition: border-color var(--m-fast) var(--m-ease), background-color var(--m-fast) var(--m-ease); }
.st-options label:hover { border-color: var(--s-primary); }
.st-options label:has(input:checked) { border-color: var(--s-primary); background: var(--s-selected); }
.st-options input { width: 1.25rem; height: 1.25rem; margin: 2px 0 0; accent-color: var(--s-primary); }
.st-options span { display: grid; gap: 2px; }
.st-options small { color: var(--s-text-2); font-size: var(--t-sm); line-height: var(--lh-snug); }
.st-segment { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--s-border-strong); border-radius: var(--r-3); background: var(--s-surface); overflow: hidden; }
.st-segment label { position: relative; display: grid; cursor: pointer; }
.st-segment label + label { border-left: 1px solid var(--s-border); }
.st-segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.st-segment span { display: grid; place-content: center; justify-items: center; min-height: 3rem; padding: var(--sp-1) var(--sp-2); font-size: var(--t-md); font-weight: 600; text-align: center; transition: background-color var(--m-fast) var(--m-ease), color var(--m-fast) var(--m-ease); }
.st-segment small { color: var(--s-text-2); font-size: var(--t-xs); font-weight: 600; }
.st-segment label:hover span { background: var(--s-hover); }
.st-segment input:checked + span { background: var(--s-primary); color: var(--s-on-primary); }
.st-segment input:checked + span small { color: inherit; opacity: .8; }
.st-app .st-segment label:has(input:focus-visible) > span { outline-offset: -3px; }
.st-color-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.st-color-row .st-segment { flex: 1 1 14rem; }
.st-colorwell { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 3rem; padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-1); border: 1px solid var(--s-border-strong); border-radius: var(--r-pill); cursor: pointer; }
.st-colorwell input, .st-swatch-custom input { width: var(--h-touch); height: var(--h-touch); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.st-colorwell input::-webkit-color-swatch-wrapper { padding: 2px; }
.st-swatch-custom input::-webkit-color-swatch-wrapper { padding: 6px; }
.st-colorwell input::-webkit-color-swatch, .st-swatch-custom input::-webkit-color-swatch { border: 1px solid var(--s-border-strong); border-radius: 50%; }
.st-colorwell input::-moz-color-swatch, .st-swatch-custom input::-moz-color-swatch { border: 1px solid var(--s-border-strong); border-radius: 50%; }
.st-colorwell span, .st-hex { font-family: var(--f-mono); font-size: var(--t-md); font-weight: 600; }
.st-swatches { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.st-swatch { position: relative; display: grid; place-items: center; width: var(--h-touch); height: var(--h-touch); cursor: pointer; }
.st-swatch input[type="radio"] { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.st-swatch > span { width: 2rem; height: 2rem; border: 1px solid var(--s-border-strong); border-radius: 50%; background-size: 10px 10px; transition: box-shadow var(--m-fast) var(--m-ease); }
.st-swatch input:checked + span { box-shadow: 0 0 0 2px var(--s-surface), 0 0 0 4px var(--s-primary); }
.st-swatch-custom { width: auto; grid-auto-flow: column; gap: 0; padding-right: var(--sp-3); border-radius: var(--r-pill); color: var(--s-text-2); font-size: var(--t-sm); font-weight: 600; }
.st-swatch-custom[data-active] input::-webkit-color-swatch { box-shadow: 0 0 0 2px var(--s-surface), 0 0 0 4px var(--s-primary); }

/* Vista previa */
.st-stage { display: grid; place-items: center; min-height: 14rem; padding: var(--sp-4); overflow: hidden; border: 1px solid var(--s-border); border-radius: var(--r-4); transition: background-color var(--m-base) var(--m-ease); }
.st-stage canvas { display: block; max-width: 100%; max-height: min(62vh, 34rem); }
.st-stage[data-picking] { outline: 2px solid var(--s-focus); outline-offset: 2px; }
.st-stage[data-picking] canvas { cursor: crosshair; }
.st-stage-square { width: min(100%, 24rem); aspect-ratio: 1; min-height: 0; justify-self: center; background-color: var(--s-surface-2); }
.st-stage-empty { max-width: 14rem; color: var(--s-text-2); font-weight: 600; text-align: center; }
.st-qr { width: 100%; }
.st-qr svg { display: block; width: 100%; height: auto; }

/* Veredicto, datos y puntos revisados */
.st-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-4); background: var(--s-surface-2); }
.st-verdict[data-level="ready"] { background: var(--s-success-bg); }
.st-verdict[data-level="improvable"] { background: var(--s-warning-bg); }
.st-verdict[data-level="insufficient"] { background: var(--s-danger-bg); }
.st-verdict strong { display: block; text-wrap: balance; font: 800 var(--t-2xl)/1.1 var(--f-display); letter-spacing: -.035em; }
.st-verdict p { margin-top: var(--sp-1); color: var(--s-text); }
.st-mark { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: var(--s-surface); }
.st-mark[data-level="ok"] { background: var(--s-success); }
.st-mark[data-level="warn"] { background: var(--s-warning); }
.st-mark[data-level="bad"] { background: var(--s-danger); }
.st-verdict .st-mark { width: 3rem; height: 3rem; }
.st-verdict .st-mark .st-icon { width: 1.75rem; height: 1.75rem; }
.st-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
.st-facts div { display: grid; align-content: start; gap: 2px; padding: var(--sp-3) 0; border-top: 1px solid var(--s-border); }
.st-facts dt { color: var(--s-text-2); font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.st-facts dd { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; overflow-wrap: anywhere; }
.st-dot { flex: none; width: .875rem; height: .875rem; border: 1px solid var(--s-border-strong); border-radius: 50%; }
.st-checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-4) 0; border-top: 1px solid var(--s-border); }
.st-checks li:last-child { border-bottom: 1px solid var(--s-border); }
.st-checks div { display: grid; gap: var(--sp-1); }
.st-checks strong { font-weight: 700; line-height: 1.75rem; }
.st-checks p { color: var(--s-text-2); font-size: var(--t-md); }
.st-checks .st-more { justify-self: start; display: inline-flex; align-items: center; min-height: var(--h-touch); color: var(--s-primary); font-weight: 700; }
.st-checks-compact li { padding-block: var(--sp-3); }

/* Conversor */
.st-convert { display: grid; gap: var(--sp-4); }
.st-convert + .st-verdict strong { font-size: var(--t-xl); letter-spacing: -.025em; }
.st-table-wrap { overflow-x: auto; border: 1px solid var(--s-border); border-radius: var(--r-4); }
.st-size-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.st-size-table caption { padding: var(--sp-4) var(--sp-3); font: 700 var(--t-lg)/1.2 var(--f-display); letter-spacing: -.02em; text-align: left; }
.st-size-table :is(th, td) { padding: var(--sp-3); border-top: 1px solid var(--s-border); text-align: right; white-space: nowrap; }
.st-size-table :is(th, td):first-child { text-align: left; }
.st-size-table thead th { background: var(--s-surface-2); color: var(--s-text-2); font-size: var(--t-sm); font-weight: 700; }
.st-size-table thead small { display: block; font-size: var(--t-xs); font-weight: 600; }
.st-size-table tbody th { font-weight: 700; }
.st-size-table tbody tr:hover { background: var(--s-hover); }

/* Paleta */
.st-palette-head { display: grid; align-items: end; gap: var(--sp-4); }
.st-palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.st-color { display: grid; gap: var(--sp-1); width: 100%; padding: var(--sp-2) var(--sp-2) var(--sp-3); border: 1px solid var(--s-border); border-radius: var(--r-3); background: var(--s-surface); color: var(--s-text); text-align: left; cursor: pointer; transition: border-color var(--m-fast) var(--m-ease), box-shadow var(--m-fast) var(--m-ease); }
.st-color:hover { border-color: var(--s-primary); box-shadow: var(--e-2); }
.st-color-chip { height: 4.5rem; margin-bottom: var(--sp-2); border: 1px solid var(--s-border); border-radius: var(--r-2); }
.st-color :is(.st-hex, small) { padding-inline: var(--sp-1); }
.st-color small { color: var(--s-text-2); font-size: var(--t-sm); }
.st-contrast { display: grid; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--s-border); }
.st-fabrics { display: grid; gap: var(--sp-3); }
.st-fabric { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); overflow: hidden; border: 1px solid var(--s-border); border-radius: var(--r-3); }
.st-fabric-view { display: grid; align-items: center; padding: var(--sp-2); border-right: 1px solid var(--s-border); }
.st-fabric-bar { display: flex; height: 2rem; overflow: hidden; border-radius: var(--r-1); }
.st-fabric-bar i { flex: 1 1 0; }
.st-fabric-text { display: grid; align-content: center; gap: 2px; min-height: 4.5rem; padding: var(--sp-2) var(--sp-4); }
.st-fabric-text strong { font-weight: 700; }
.st-fabric-text p { display: flex; align-items: center; gap: var(--sp-2); color: var(--s-text); font-size: var(--t-md); }
.st-fabric-text .st-mark { width: 1.25rem; height: 1.25rem; }
.st-fabric-text .st-mark .st-icon { width: .875rem; height: .875rem; }
.st-fabric-text small { color: var(--s-text-2); font: 500 var(--t-sm)/var(--lh-snug) var(--f-mono); overflow-wrap: anywhere; }

/* En pantallas angostas las dos columnas se funden en una sola lista para reordenar: en el verificador el veredicto
   va antes que los datos; en las herramientas con vista previa, la vista queda fija arriba mientras se ajusta. */
@media (max-width: 59.99rem) {
  .st-app-grid-flat > *, .st-app-grid-live > * { display: contents; }
  .st-app-grid-flat .st-facts { order: 1; }
  .st-app-grid-flat .st-app-actions { order: 2; }
  .st-app-grid-live .st-stage { order: -1; position: sticky; top: var(--sp-2); z-index: var(--z-sticky); min-height: 0; padding: var(--sp-3); box-shadow: 0 0 0 var(--sp-4) var(--s-surface), var(--e-3); }
  .st-app-grid-live { --st-preview: 32vh; }
  .st-app-grid-live .st-stage canvas { max-height: var(--st-preview); }
  .st-app-grid-live .st-stage-square { width: 100%; height: calc(var(--st-preview) + 2 * var(--sp-3)); aspect-ratio: auto; }
  .st-app-grid-live .st-qr { width: var(--st-preview); height: var(--st-preview); }
}
@media (min-width: 36rem) {
  .st-app { padding: var(--sp-6); }
  .st-file { grid-template-columns: auto minmax(0, 1fr) auto; }
  .st-file .st-button { grid-column: auto; }
  .st-app-actions .st-button { flex: 0 1 auto; }
  .st-palette { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
  .st-palette-head { grid-template-columns: minmax(0, 20rem) auto; justify-content: space-between; }
  .st-fabrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-fabric { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .st-fabric-view { padding: var(--sp-3); }
  .st-size-table :is(th, td), .st-size-table caption { padding-inline: var(--sp-5); }
}
@media (min-width: 60rem) {
  .st-app { padding: var(--sp-8); }
  .st-app-grid { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: var(--sp-8) var(--sp-10); }
  .st-app-grid-wide { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); }
  .st-fabrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .st-app-status::before { animation-duration: 2.4s; }
  .st-app *, .st-app *::before { transition: none; }
}

/* ── r2-B · Índice /herramientas/: el verificador se usa en su tarjeta y la cabecera va compacta en celular ─────── */
.st-tool-live { display: grid; grid-template-rows: none; align-content: start; gap: var(--sp-4); }
.st-tool-live-head { display: grid; gap: var(--sp-2); color: inherit; text-decoration: none; }
.st-tool-live-head:hover strong { color: var(--s-primary); }
.st-tool-live-head:focus-visible, .st-tool-live-cta:focus-visible { outline: 2px solid var(--s-focus); outline-offset: 3px; border-radius: var(--r-2); }
.st-tool-live-cta { display: grid; gap: 2px; justify-self: start; min-height: var(--h-touch); align-content: center; text-decoration: none; }
.st-tool-live-cta b { margin-top: 0; }
.st-tool-live-cta span { color: var(--s-text-2); font-size: var(--t-sm); }
.st-tool-live-cta [hidden] { display: none; }
.st-app.st-app-mini { gap: var(--sp-3); margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.st-app-mini[hidden] { display: none; }
.st-app-mini .st-drop { padding: var(--sp-5) var(--sp-4); gap: var(--sp-2); }
.st-app-mini .st-drop .st-icon { padding: var(--sp-3); margin-bottom: 0; }
.st-app-mini .st-drop strong { font-size: var(--t-lg); }
.st-app-mini .st-drop span { font-size: var(--t-sm); }
.st-app-mini .st-app-status { min-height: 6rem; }
.st-app-mini .st-file { padding: var(--sp-2); }
.st-app-mini :is(.st-file, .st-mini-warn, .st-drop) strong:not(.st-drop > label > strong) { font: 700 var(--t-md)/1.3 var(--f-body); letter-spacing: 0; }
.st-app-mini .st-facts { grid-template-columns: minmax(0, 1fr); }
.st-app-mini .st-facts div { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--sp-3); padding: var(--sp-2) 0; }
.st-app-mini .st-facts dd { justify-content: flex-end; text-align: right; }
.st-mini-out { display: grid; gap: var(--sp-2); }
.st-mini-warn { display: grid; gap: var(--sp-2); }
.st-mini-warn:empty { display: none; }
.st-mini-warn li { padding: var(--sp-2) var(--sp-3); border-radius: var(--r-2); background: var(--s-warning-bg, var(--s-selected)); color: var(--s-text); font-size: var(--t-sm); line-height: 1.4; }
.st-mini-warn li span { color: var(--s-text); font-size: inherit; }
@media (min-width: 48rem) { .st-grid-tools .st-tool-live { grid-column: span 2; } }
@media (max-width: 40rem) {
  .sv-cab:has(+ .st-wrap .st-tool-live) .sv-hero .sv-hero-foot, .sv-cab:has(+ .st-wrap .st-tool-live) .sv-hero .sv-label.sv-num { display: none; }
  .sv-cab:has(+ .st-wrap .st-tool-live) .sv-hero::after { display: none; }
  .sv-cab:has(+ .st-wrap .st-tool-live) .sv-hero .sv-pan-inner { gap: var(--sp-3); padding-top: var(--sp-3); padding-bottom: var(--sp-5); }
  .sv-cab:has(+ .st-wrap .st-tool-live) .sv-hero .sv-crumb { padding-block: 0; }
  .sv-cab:has(+ .st-wrap .st-tool-live) .sv-hero .sv-title { font-size: 2.5rem; }
  .sv-cab:has(+ .st-wrap .st-tool-live) .sv-hero .sv-lede { font-size: var(--t-sm); line-height: 1.45; }
  .sv-cab + .st-wrap:has(.st-tool-live) { padding-top: var(--sp-5); }
}
