#content.hx-page {
  --hx-paper: #fff;
  --hx-tint: #edf6f3;
  --hx-ink: #172c33;
  --hx-muted: #46606b;
  --hx-line: #c8dcd7;
  --hx-accent: #076b62;
  --hx-button: #086b61;
  color: var(--hx-ink);
  background: var(--hx-paper);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

@media (prefers-color-scheme: dark) {
  #content.hx-page {
    --hx-paper: #15232a;
    --hx-tint: #1d3339;
    --hx-ink: #edf6f4;
    --hx-muted: #bdd2d3;
    --hx-line: #466369;
    --hx-accent: #92dfd0;
    color-scheme: dark;
  }
}

#content.hx-page [hidden] { display: none !important; }
#content.hx-page :is(h1, h2, h3, h4, strong, dt, label, summary) { color: var(--hx-ink); }
#content.hx-page :is(p, li, dd) { line-height: 1.65; }
#content.hx-page a { color: var(--hx-accent); text-decoration: underline; text-underline-offset: .18em; }
#content.hx-page p { margin: 0 0 .8rem; }
#content.hx-page :is(h2, h3, h4) { margin: 0 0 .65rem; line-height: 1.35; font-weight: 750; }
#content.hx-page h2 { font-size: clamp(1.23rem, 3vw, 1.6rem); }
#content.hx-page h3 { font-size: 1.08rem; }
#content.hx-page h4 { font-size: 1rem; }
#content.hx-page .hx-header h1 { line-height: 1.2; margin: 0 0 .8rem; font-size: clamp(1.8rem, 4.4vw, 2.75rem); }
#content.hx-page .hx-header > p:not(.hx-note) { padding: 0; }
#content.hx-page .hx-header > p:not(.hx-kicker, .hx-note, .hx-small) { color: var(--hx-muted); font-size: 1.05rem; }
#content.hx-page :is(.hx-kicker, .hx-small, caption) { color: var(--hx-muted); font-size: .87rem; }
#content.hx-page .hx-kicker { color: var(--hx-accent); font-weight: 750; margin-bottom: .6rem; }
#content.hx-page .hx-panel { margin: 1.2rem 0; padding: clamp(.8rem, 3vw, 1.5rem); border: 1px solid var(--hx-line); border-radius: 14px; background: var(--hx-paper); }
#content.hx-page .hx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
#content.hx-page .hx-subpanel { margin: .75rem 0; padding: .85rem; border: 1px solid var(--hx-line); border-radius: 9px; }
#content.hx-page .hx-note { color: var(--hx-ink); border-inline-start: 4px solid var(--hx-accent); padding: .75rem .85rem; background: var(--hx-tint); margin: .9rem 0; font-size: .91rem; }
#content.hx-page .hx-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: 1rem 0; }
#content.hx-page .hx-type { display: grid; gap: .15rem; padding: .6rem .75rem; border: 1px solid var(--hx-line); border-top: 3px solid var(--hx-type); border-radius: 9px; color: var(--hx-ink); background: var(--hx-tile); text-decoration: none; }
#content.hx-page .hx-modes { margin: 1rem 0; }
#content.hx-page .hx-modes > section { padding: .9rem; margin: 0; border: 1px solid var(--hx-line); border-radius: 10px; background: var(--hx-tint); }
#content.hx-page .hx-modes p { color: var(--hx-muted); font-size: .9rem; }
#content.hx-page .hx-modes button { width: 100%; }
#content.hx-page .hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: .75rem 0; }
#content.hx-page button {
  min-height: 44px; max-width: 100%; width: auto; height: auto;
  padding: .55rem .85rem; background: var(--hx-button); color: #fff;
  border: 1px solid transparent; border-radius: 8px; box-shadow: none;
  font: inherit; font-size: .91rem; font-weight: 700; line-height: 1.4; white-space: normal;
  letter-spacing: normal; text-transform: none;
}
#content.hx-page button:not(:disabled):hover { filter: brightness(.93); }
#content.hx-page button.hx-secondary { background: var(--hx-paper); color: var(--hx-ink); border-color: var(--hx-line); }
#content.hx-page button:disabled { opacity: .55; cursor: not-allowed; }
#content.hx-page :focus-visible { outline: 3px solid var(--hx-accent); outline-offset: 3px; }
#content.hx-page .hx-field { display: grid; gap: .25rem; margin: .65rem 0; font-size: .89rem; font-weight: 700; }
body.hx-body #content.hx-page :is(select, textarea) {
  display: block; appearance: auto; min-height: 44px; width: 100%; min-width: 0; padding: .55rem .65rem;
  background: var(--hx-paper); color: var(--hx-ink); border: 1px solid var(--hx-line); border-radius: 8px;
  font: inherit; transition: none;
}
#content.hx-page .hx-progress-label, #content.hx-page .hx-score-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem; font-size: .88rem; font-weight: 700; }
#content.hx-page progress { display: block; width: 100%; height: .8rem; margin: .35rem 0 1.2rem; accent-color: var(--hx-button); }
#content.hx-page #hx-question { min-height: 3.5rem; }
#content.hx-page .hx-options { display: grid; gap: .5rem; margin: .75rem 0; }
#content.hx-page .hx-option { width: 100%; min-height: 48px; background: var(--hx-paper); color: var(--hx-ink); border-color: var(--hx-line); text-align: left; }
#content.hx-page .hx-option[aria-pressed="true"] { color: var(--hx-accent); background: var(--hx-tint); border-color: var(--hx-accent); outline: 1px solid var(--hx-accent); }
#content.hx-page #hx-feedback { min-height: 1.5em; }
#content.hx-page .hx-exit { border-top: 1px solid var(--hx-line); padding-top: .8rem; }
#content.hx-page .hx-result-hero > p { padding: 0; }
#content.hx-page .hx-result-hero > p:not(.hx-kicker) { color: var(--hx-ink); }
#content.hx-page .hx-result-hero { padding: 1rem; border: 1px solid var(--hx-line); border-radius: 11px; background: var(--hx-tint); margin-bottom: 1.2rem; }
#content.hx-page #hx-result-title { font-size: clamp(1.55rem, 4vw, 2.2rem); }
#content.hx-page .hx-score-row { margin: .65rem 0; }
#content.hx-page meter { appearance: none; display: block; width: 100%; height: .8rem; margin: .3rem 0; border: 0; background: var(--hx-tint); border-radius: 5px; }
#content.hx-page meter::-webkit-meter-bar { background: var(--hx-tint); border: 0; border-radius: 5px; }
#content.hx-page meter::-webkit-meter-optimum-value { background: var(--hx-type); border-radius: 5px; }
#content.hx-page meter::-moz-meter-bar { background: var(--hx-type); border-radius: 5px; }
#content.hx-page .hx-details { padding: .45rem .75rem; margin: .75rem 0; border: 1px solid var(--hx-line); border-radius: 8px; }
#content.hx-page .hx-details summary { min-height: 44px; padding: .55rem 0; font-weight: 750; cursor: pointer; }
#content.hx-page .hx-details[open] summary { margin-bottom: .4rem; }
#content.hx-page .hx-guide > section { margin: 0 0 1.25rem; padding-bottom: .7rem; border-bottom: 1px solid var(--hx-line); }
#content.hx-page .hx-guide > section:last-child { margin-bottom: 0; border: 0; }
#content.hx-page .hx-status:empty { display: none; }
#content.hx-page .hx-status { position: sticky; bottom: .6rem; z-index: 2; padding: .65rem .85rem; background: var(--hx-tint); border: 1px solid var(--hx-line); border-radius: 8px; }

@media (max-width: 760px) {
  .hx-body #sidebar .modern-sidebar-toggle { position: static; }
}
@media (max-width: 470px) {
  #content.hx-page .hx-grid { grid-template-columns: 1fr; }
  #content.hx-page .hx-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #content.hx-page .hx-actions button { flex: 1 1 auto; }
}

#content.hx-page .hx-type { align-content: center; min-height: 44px; font-size: .87rem; font-weight: 750; }
#content.hx-page .hx-score-row { padding: .75rem .85rem; border: 1px solid var(--hx-line); border-radius: 9px; }
#content.hx-page .hx-score-row > p { margin-top: .5rem; }
#content.hx-page .hx-practice { padding: .8rem; border-radius: 9px; background: var(--hx-tint); margin: 0; }
#content.hx-page .hx-feature-list { margin: .55rem 0; }
#content.hx-page .hx-feature-list dt { font-weight: 750; margin-top: .6rem; }
#content.hx-page .hx-feature-list dd { margin: 0; }
#content.hx-page .hx-link-list { margin: .6rem 0; padding-inline-start: 1.15rem; }
#content.hx-page .hx-link-list li + li { margin-top: .3rem; }
@media (prefers-reduced-motion: reduce) { #content.hx-page * { transition: none !important; } }

#content.hx-page .hx-calc-row { margin: .85rem 0; padding-top: .65rem; border-top: 1px solid var(--hx-line); }
#content.hx-page #hx-result-meta { color: var(--hx-muted); }

#content.hx-page [id^="hx-type-"], #content.hx-page [tabindex="-1"] { scroll-margin-top: 85px; }
#content.hx-page .hx-type strong { color: var(--hx-type); font-size: 1.15rem; }
#content.hx-page .hx-type span { color: var(--hx-muted); font-size: .83rem; }
#content.hx-page .hx-check { display: flex; gap: .65rem; align-items: center; min-height: 44px; padding: .25rem 0; font-size: .92rem; cursor: pointer; }
body.hx-body #content.hx-page .hx-check input { appearance: auto; position: static; opacity: 1; width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--hx-button); }
#content.hx-page > [data-site-title-ad] { margin-block-end: 36px; }
#content.hx-page .hx-modes > section { display: flex; flex-direction: column; }
#content.hx-page .hx-modes button { margin-top: auto; }

#content.hx-page [data-type="H"] { --hx-type: #457447; --hx-tile: #eaf4e9; }
#content.hx-page [data-type="E"] { --hx-type: #9b5069; --hx-tile: #faedf2; }
#content.hx-page [data-type="X"] { --hx-type: #a05822; --hx-tile: #fff1e1; }
#content.hx-page [data-type="A"] { --hx-type: #3a6098; --hx-tile: #edf2fa; }
#content.hx-page [data-type="C"] { --hx-type: #675499; --hx-tile: #f2eefb; }
#content.hx-page [data-type="O"] { --hx-type: #087568; --hx-tile: #e7f5ef; }
@media (prefers-color-scheme: dark) {
  #content.hx-page [data-type="H"] { --hx-type: #a6d69e; --hx-tile: #2a3d2c; }
  #content.hx-page [data-type="E"] { --hx-type: #f1b8cb; --hx-tile: #44313b; }
  #content.hx-page [data-type="X"] { --hx-type: #f8c894; --hx-tile: #493528; }
  #content.hx-page [data-type="A"] { --hx-type: #b2cef4; --hx-tile: #283b54; }
  #content.hx-page [data-type="C"] { --hx-type: #d2c0f3; --hx-tile: #383148; }
  #content.hx-page [data-type="O"] { --hx-type: #a7e2d3; --hx-tile: #223b35; }
}
#content.hx-page .hx-type strong { font-size: 1rem; }
#content.hx-page .hx-score-row details { margin-bottom: 0; }
