.university-exam {
  color-scheme: light;
  --ue-paper:#f6f7fa;
  --ue-panel:#fff;
  --ue-text:#212437;
  --ue-muted:#51596d;
  --ue-line:#d8dce6;
  --ue-link:#2849a0;
  --ue-accent:#e9eeff;
  font-family: system-ui,sans-serif;
  background:var(--ue-paper);
  color:var(--ue-text);
}
.university-exam[data-theme="dark"] {
  color-scheme:dark;
  --ue-paper:#181a23;
  --ue-panel:#222532;
  --ue-text:#f2f3f8;
  --ue-muted:#bac0d1;
  --ue-line:#414759;
  --ue-link:#b8c5ff;
  --ue-accent:#313956;
}
.university-exam * {box-sizing:border-box}
.university-exam body {margin:0}
.university-exam [hidden] {display:none!important}
.university-exam a {color:var(--ue-link);text-underline-offset:.2em}
.university-exam :focus-visible {outline:2px solid var(--ue-link);outline-offset:3px}
.university-exam button,.university-exam input,.university-exam select {font:inherit}
.university-exam button,.university-exam select,.university-exam input[type="search"] {
  min-height:2.6rem;
  border:1px solid var(--ue-line);
  border-radius:.6rem;
  color:inherit;
  background:var(--ue-panel);
  padding:.42rem .65rem;
}
.university-exam button {cursor:pointer}
.university-exam form,.university-exam fieldset {margin:0;padding:0;border:0}
.ue-frame {width:min(100% - 2rem,56rem);margin-inline:auto}
.ue-header {border-bottom:1px solid var(--ue-line);background:var(--ue-panel)}
.ue-header .ue-frame {display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.65rem 0}
.ue-header a {font-weight:650}
.university-exam main {padding:2rem 0 4rem}
.ue-kicker {margin:0;color:var(--ue-muted);font-size:.875rem}
.university-exam h1 {font-size:clamp(1.7rem,5vw,2.7rem);line-height:1.13;margin:.45rem 0 .75rem;letter-spacing:-.03em}
.ue-lead {max-width:48rem;color:var(--ue-muted);line-height:1.5}
.ue-picker,.ue-tools {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1.2rem 0}
.ue-tools {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.ue-picker > label,.ue-tools > label {display:grid;align-content:start;gap:.35rem}
.ue-picker select,.ue-tools input[type="search"] {min-width:0;width:100%}
.ue-source,.ue-card {border:1px solid var(--ue-line);border-radius:.8rem;background:var(--ue-panel)}
.ue-source {padding:1rem}
.ue-source p {margin:.3rem 0 .7rem;line-height:1.45}
.ue-source dl {display:grid;grid-template-columns:max-content 1fr;gap:.35rem .7rem;margin:.75rem 0}
.ue-source dt {font-weight:600}
.ue-source dd {margin:0;min-width:0;overflow-wrap:anywhere}
.ue-source summary {cursor:pointer;color:var(--ue-link)}
.ue-list-head {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.25rem .8rem;margin:1.5rem 0 .5rem}
.ue-list-head h2,.ue-list-head p {margin:0}
.ue-list-head p,.ue-status,.ue-gap,.ue-tag {color:var(--ue-muted)}
.ue-status:empty {display:none}
.ue-tools fieldset {display:flex;align-items:center;flex-wrap:wrap;gap:.3rem}
.ue-tools legend {margin-bottom:.35rem}
.ue-tools fieldset label {position:relative}
.ue-tools fieldset :checked + span,.university-exam button[aria-pressed="true"] {background:var(--ue-accent)}
.ue-tools fieldset input {position:absolute;opacity:0}
.ue-tools fieldset input:focus-visible + span {outline:2px solid var(--ue-link);outline-offset:2px}
.ue-tools fieldset span {display:block;border:1px solid var(--ue-line);border-radius:1rem;padding:.36rem .7rem;cursor:pointer}
.ue-questions {display:grid;gap:.55rem;list-style:none;padding:0;margin:0}
.ue-card summary {display:grid;grid-template-columns:1.7rem minmax(0,1fr) auto;align-items:center;gap:.6rem;list-style:none;min-height:3.2rem;padding:.68rem .85rem;cursor:pointer}
.ue-card summary::-webkit-details-marker {display:none}
.ue-card summary::after {content:"";width:.44rem;height:.44rem;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 .2rem .2rem 0}
.ue-card[open] summary::after {transform:rotate(225deg);margin-block:.22rem 0}
.ue-number {color:var(--ue-muted);font-variant-numeric:tabular-nums}
.ue-tag {display:block;font-size:.81rem;font-weight:450;margin-top:.18rem}
.ue-answer {border-top:1px solid var(--ue-line);padding:.8rem 1rem 1rem;line-height:1.55}
.ue-answer p {margin:.25rem 0 .65rem}
.ue-answer ul {padding-inline-start:1.25rem}
.ue-marks {display:flex;flex-wrap:wrap;gap:.5rem}
.ue-quote {margin:.8rem 0;padding:.6rem .8rem;border-inline-start:2px solid var(--ue-link);background:var(--ue-paper)}
.ue-exhibits {margin:.8rem 0 1rem}
.ue-exhibits .structure-grid {display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;align-items:stretch}
.ue-exhibits figure {margin:.5rem 0;text-align:center}
.ue-exhibits .chemical-figure {display:grid;align-content:space-between;flex:1 1 8rem;min-width:0}
.ue-exhibits figcaption {color:var(--ue-muted);font-size:.875rem}
.ue-exhibits .drawing svg,.ue-plot svg {max-width:100%;height:auto}
.ue-exhibits .drawing .ring .rb {fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.ue-exhibits .drawing .ring .rt {fill:currentColor;font:600 15px system-ui,sans-serif}
.ue-exhibits table {border-collapse:collapse;font-size:.92em}
.ue-exhibits td,.ue-exhibits th {padding:.35rem .5rem;border:1px solid var(--ue-line);text-align:left}
.ue-exhibits .equation,.ue-equation {text-align:center;overflow-wrap:anywhere}
.ue-exhibits .frac {display:inline-grid;vertical-align:middle;line-height:1.2;text-align:center;margin-inline:.12rem}
.ue-exhibits .frac > :first-child {border-bottom:1px solid currentColor}
.ue-plot {max-width:29rem;margin:auto}
.ue-plot .diagram {display:block;width:100%;background:var(--ue-paper);border-radius:.5rem;color:var(--ue-text)}
.ue-plot text {fill:currentColor;font:13px system-ui,sans-serif}
.ue-plot .axis,.ue-plot .tangent,.ue-plot .grid {fill:none;stroke:currentColor}
.ue-plot .grid {stroke-opacity:.15}
.ue-plot .curve {fill:none;stroke:var(--ue-link);stroke-width:2.5}
.ue-plot .curve-1 {stroke:#d17842}
.ue-plot .curve-2 {stroke:#399d80}
.ue-plot .liquid,.ue-plot .head {fill:var(--ue-accent);stroke:var(--ue-link);stroke-width:2}
.ue-plot .bubble {fill:var(--ue-paper);stroke:var(--ue-link);stroke-width:1.5}
.ue-plot .solid {fill:#a78452}
.ue-plot .matrix {fill:var(--ue-accent);stroke:var(--ue-line)}
.ue-plot .angle {fill:none;stroke:#a78452;stroke-width:2}
.ue-plot .legend {list-style:none;display:flex;justify-content:center;flex-wrap:wrap;gap:.25rem .8rem;margin:.28rem 0;padding:0;color:var(--ue-muted);font-size:.82rem}
.ue-plot .legend li {display:flex;align-items:center;gap:.35rem}
.ue-plot .legend .key {width:1.15rem;border-top:2px solid var(--ue-link)}
.ue-plot .legend .key-1 {border-color:#d17842}
.ue-plot .legend .key-2 {border-color:#399d80}
.ue-book-return {
  position:fixed;z-index:20;inset:auto 1rem .75rem auto;
  display:block;max-width:calc(100% - 2rem);padding:.6rem .8rem;
  border:1px solid currentColor;border-radius:.6rem;
  background:var(--paper,var(--bg,#f9f8f2));color:var(--text,var(--ink,#202638));
  box-shadow:0 3px 14px #0002;font:600 .85rem/1.35 system-ui,sans-serif;
}
[data-theme="dark"] .ue-book-return {background:#232534;color:#eef0fa}
.ue-book-highlight {--ue-mark:#f9dd7080;animation:ue-highlight 3.8s ease both;border-radius:.4rem}
[data-theme="dark"] .ue-book-highlight {--ue-mark:#a77cf073}
@keyframes ue-highlight {
  0%,100% {background-color:transparent}
  14%,70% {background-color:var(--ue-mark)}
}
@media (max-width:43rem) {
  .ue-picker {grid-template-columns:repeat(2,minmax(0,1fr))}
  .ue-picker > label:last-child,.ue-tools > * {grid-column:1/-1}
  .ue-source dl {grid-template-columns:1fr}
  .ue-source dd {margin-bottom:.35rem}
}
@media (max-width:24rem) {.ue-picker > label {grid-column:1/-1}}
@media (prefers-reduced-motion:reduce) {.ue-book-highlight {animation:none;background-color:var(--ue-mark)}}
[data-motion="off"] .ue-book-highlight,[data-motion="false"] .ue-book-highlight {animation:none;background-color:var(--ue-mark)}
