#content.jj-page {
  --jj-ink: #19172e;
  --jj-muted: #5c5972;
  --jj-surface: #fff;
  --jj-soft: #f4f1fb;
  --jj-line: #dcd5ed;
  --jj-action: #503193;
  --jj-focus: #6c46c3;
  --jj-good: #146956;
  --jj-bad: #94345b;
  color: var(--jj-ink);
  overflow-anchor: none;
}
@media (prefers-color-scheme: dark) {
  #content.jj-page {
    --jj-ink: #eeedf8;
    --jj-muted: #c1bdd4;
    --jj-surface: #17192c;
    --jj-soft: #25243e;
    --jj-line: #474362;
    --jj-action: #4e3190;
    --jj-focus: #c6b4ff;
    --jj-good: #8be1c8;
    --jj-bad: #ffadc8;
    color-scheme: dark;
    background: #101324;
    border-color: var(--jj-line);
  }
}
#content.jj-page [hidden] { display: none !important; }
#content.jj-page .jj-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2.6rem);
  border-radius: 1.25rem;
  margin: 0;
  background: linear-gradient(140deg, #1e1539, #14263b);
  color: #f4f0ff;
}
#content.jj-page .jj-hero::before {
  position: absolute;
  z-index: -1;
  inset: -30% -20% -35% 30%;
  content: "";
  opacity: .45;
  background: repeating-radial-gradient(ellipse at center, transparent 0 19px, #9166db88 20px 21px, transparent 22px 35px);
  transform: rotate(-24deg);
  mask-image: linear-gradient(95deg, transparent 0, #000 90%);
}
#content.jj-page .jj-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.6vw, 3.8rem);
  line-height: 1.14;
  word-break: keep-all;
  margin: .3rem 0 1rem;
}
#content.jj-page .jj-hero p {
  max-width: 52ch;
  color: inherit;
  padding: 0;
  margin: .55rem 0;
  font-size: clamp(1rem, 2vw, 1.16rem);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
#content.jj-page .jj-hero p:last-child { margin-bottom: 0; }
#content.jj-page .jj-kicker { font-weight: 750; font-size: .9rem; margin: .4rem 0 .55rem; color: var(--jj-muted); }
#content.jj-page .jj-hero .jj-kicker { color: #92ded8; font-size: .9rem; }
#content.jj-page .site-title-ad { min-height: 96px; }
#content.jj-page .jj-panel {
  color: var(--jj-ink);
  background: var(--jj-surface);
  border: 1px solid var(--jj-line);
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 1.8rem);
  margin: 1.25rem 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
#content.jj-page .jj-panel h2, #content.jj-page .jj-panel h3 {
  color: var(--jj-ink);
  line-height: 1.35;
  margin: 1.45rem 0 .65rem;
  word-break: keep-all;
}
#content.jj-page .jj-panel h2:first-child { margin-top: 0; }
#content.jj-page .jj-panel p { margin: .45rem 0 .85rem; }
#content.jj-page .jj-panel a { color: var(--jj-focus); text-decoration: underline; }
#content.jj-page .jj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
#content.jj-page .jj-grid label, #content.jj-page .jj-input-label { display: grid; gap: .3rem; color: var(--jj-ink); margin: 0; }
#content.jj-page form { margin: 0; }
#content.jj-page select, #content.jj-page input[type=text] {
  width: 100%;
  min-height: 48px;
  height: auto;
  appearance: auto;
  padding: .5rem;
  background: var(--jj-soft);
  border: 1px solid var(--jj-line);
  color: var(--jj-ink);
  border-radius: .5rem;
  font: inherit;
}
#content.jj-page input[type=radio], #content.jj-page input[type=checkbox] {
  width: 1.15rem;
  height: 1.15rem;
  appearance: auto;
  accent-color: var(--jj-focus);
  flex: none;
}
#content.jj-page .jj-check { display: flex; gap: .5rem; align-items: center; min-height: 44px; color: var(--jj-ink); }
#content.jj-page .jj-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .85rem 0 0; }
#content.jj-page button {
  min-height: 44px;
  height: auto;
  line-height: 1.4;
  padding: .6rem .85rem;
  white-space: normal;
  font: inherit;
  font-weight: 720;
  box-shadow: none;
  border: 1px solid var(--jj-line);
  border-radius: .55rem;
  background: var(--jj-soft);
  color: var(--jj-ink) !important;
}
#content.jj-page button.jj-primary {
  background: var(--jj-action);
  color: #fff !important;
  border-color: transparent;
}
#content.jj-page button:not(:disabled):hover { border-color: var(--jj-focus); }
#content.jj-page :focus-visible { outline: 2px solid var(--jj-focus); outline-offset: 3px; }
#content.jj-page button:disabled { cursor: wait; opacity: .55; }
#content.jj-page .jj-note { color: var(--jj-muted); font-size: .91rem; }
#content.jj-page .jj-warn, #content.jj-page .jj-explanation {
  padding: .75rem .9rem;
  background: var(--jj-soft);
  border-left: .25rem solid var(--jj-focus);
  border-radius: .45rem;
  margin: .85rem 0;
}
#content.jj-page .jj-explanation[data-status=correct] { border-color: var(--jj-good); }
#content.jj-page .jj-explanation[data-status=wrong] { border-color: var(--jj-bad); }
#content.jj-page .jj-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
#content.jj-page #jj-count { font-weight: 750; margin: 0; }
#content.jj-page .jj-timer { font-weight: 750; font-variant-numeric: tabular-nums; }
#content.jj-page progress, #content.jj-page meter { width: 100%; accent-color: var(--jj-focus); }
#content.jj-page #jj-progress { display: block; margin: .7rem 0; }
#content.jj-page fieldset { min-width: 0; }
#content.jj-page legend { margin-bottom: .4rem; color: var(--jj-muted); }
#content.jj-page .jj-option {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  margin: .35rem 0;
  cursor: pointer;
  color: var(--jj-ink);
  background: var(--jj-soft);
  border: 1px solid var(--jj-line);
  border-radius: .55rem;
}
#content.jj-page .jj-option:has(:checked) { border-color: var(--jj-focus); }
#content.jj-page #jj-input-error { color: var(--jj-bad); }
#content.jj-page #jj-input-error:empty, #content.jj-page .jj-status:empty { display: none; }
#content.jj-page .jj-score {
  display: grid;
  gap: .3rem;
  padding: 1rem;
  border-radius: .8rem;
  margin: .65rem 0;
  background: linear-gradient(135deg, #21153c, #183443);
  color: #f5f0ff;
}
#content.jj-page .jj-score strong { color: #d9ccff; font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1; }
#content.jj-page .jj-category-results, #content.jj-page .jj-grade-list { padding: 0; list-style: none; }
#content.jj-page .jj-category-results li {
  display: grid;
  padding: .55rem .7rem;
  border-radius: .45rem;
  background: var(--jj-soft);
  margin: .35rem 0;
}
#content.jj-page .jj-panel details { border-top: 1px solid var(--jj-line); }
#content.jj-page .jj-panel summary {
  cursor: pointer;
  min-height: 44px;
  padding: .6rem 0;
  font-weight: 700;
  color: var(--jj-ink);
}
@media (max-width: 500px) {
  #content.jj-page .jj-grid { grid-template-columns: minmax(0, 1fr); }
  .jj-body #sidebar .modern-sidebar-toggle { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  #content.jj-page * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
