:root { color-scheme: dark; --study-bg: #10121a; --study-panel: #1a1f2d; --study-line: #424b62; --study-text: #edf1fb; --study-muted: #c0cadb; --study-accent: #ffd19d; }
body { margin: 0; background: var(--study-bg); color: var(--study-text); font-family: system-ui, sans-serif; line-height: 1.55; }
.study { box-sizing: border-box; width: min(100%, 70rem); padding: clamp(1rem, 4vw, 3rem); margin-inline: auto; }
.study *, .study *::before, .study *::after { box-sizing: border-box; }
.study-heading { margin-bottom: 1.25rem; }
.study h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; margin: 0 0 .6rem; overflow-wrap: anywhere; }
.study h2 { line-height: 1.2; margin: 0 0 .65rem; }
.study p { max-width: 74ch; }
.study a { color: var(--study-accent); text-underline-offset: .2em; }
.study [hidden] { display: none !important; }
.study-section { border: 1px solid var(--study-line); border-radius: 16px; background: var(--study-panel); padding: clamp(.8rem, 3vw, 1.35rem); margin-block: 1rem; min-width: 0; }
.study input, .study select, .study button, .study-action, .study summary { min-height: 44px; font: inherit; }
.study button, .study input, .study select, .study-action { border: 1px solid #626d88; border-radius: 8px; background: #232c41; color: var(--study-text); padding: .55rem .75rem; max-width: 100%; }
.study button, .study summary { cursor: pointer; }
.study :focus-visible { outline: 2px solid var(--study-accent); outline-offset: 2px; }
.study form { margin-block: .6rem; }
.study label { display: block; }
.study input, .study select { width: 100%; font-size: 1rem; }
.study table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
.study th, .study td { border-bottom: 1px solid var(--study-line); padding: .48em .38em; vertical-align: top; }
.study tbody th { font-weight: 550; }
.study caption { font-weight: 750; padding: .6rem 0; text-align: left; }
.study .table-wrap { overflow-x: auto; }
.study-toolbar, .study-buttons { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.study-toolbar label { flex: 1 1 12rem; min-width: 0; }
.study-buttons > a, .study-actions > a { display: inline-flex; align-items: center; }
.study .study-card { width: 100%; min-height: 9rem; font-size: 1.45rem; background: #26324b; padding: 1rem; }
.study-output { min-height: 2rem; color: #b8f3e5; }
.study summary { display: flex; align-items: center; gap: .5em; }
.study summary::before { content: "+"; color: var(--study-accent); }
.study details[open] > summary::before { content: "−"; }
.activity-ladder { display: grid; grid-template-columns: repeat(auto-fit,minmax(9rem,1fr)); gap: .5rem; padding: 0; list-style-position: inside; }
.activity-ladder li { padding: .55rem; border: 1px solid var(--study-line); border-inline-start: .35rem solid var(--study-accent); border-radius: 6px; }
.activity-ladder small { display: block; color: var(--study-muted); }
@media print {
  body { background: #fff; color: #000; }
  .study-section { background: #fff; border-color: #999; break-inside: avoid; }
  .study form, .study button, .study-buttons { display: none; }
}
.compound-answer { font-size: 1.2rem; }
#compound-model { overflow: hidden; border-radius: 12px; background: #141b2c; max-width: 37.5rem; }
#compound-model img { display: block; width: 100%; height: auto; }
.compound-model-stage { position: relative; width: 100%; aspect-ratio: 600 / 315; }
.compound-model-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.compound-structure label { margin-top: .75rem; max-width: 37.5rem; }
