/* Layout refinements for the designer's components. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { margin-inline: auto; }
body > header { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
main p, main li, main a, main code { overflow-wrap: anywhere; }
.panel-top > *, .presets > *, .vars > *, .galley-head > * { max-width: 100%; }
.galleys, .example-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.example-files figure { min-width: 0; }
.prompt, textarea.code { text-align: start; }
.prompt { unicode-bidi: plaintext; }
.verdict-head svg, .why svg, .empty-state svg, .local-note svg { flex: none; }
.verdict-title, .why > :last-child { min-width: 0; overflow-wrap: anywhere; }
#status.verdict :where(.meter-rest)[hidden] { display: none; }
#status.verdict[data-example="true"],
#status[data-example="true"] .meter-shared,
#status[data-example="true"] ~ #output .galleys { animation: none; }
#status.verdict[data-state="loading"] { flex-direction: column; align-items: stretch; }
#status[data-state="loading"] p { display: flex; align-items: center; gap: var(--s2); margin: 0; }
#status.verdict[data-state="loading"] .meter { display: block; margin-block: 0; }
.vars .check input { width: 24px; height: 24px; }
.ad-slot { height: 250px; overflow: hidden; contain: strict; }
.consent { position: fixed; z-index: 10; }

@media (max-width: 52rem) {
  main .galleys, main .example-files { grid-template-columns: minmax(0, 1fr); }
  .vars .check { width: 100%; overflow-wrap: anywhere; }
  .vars .check input { flex: none; }
  .presets .chip-btn { min-width: 0; overflow-wrap: anywhere; }
  .field textarea.code-short { min-height: 8rem; }
}

#status[data-example="true"] .meter { --shared: 0.29965156794425085; --end-a: 0.7700348432055749; }
