:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--page-background:#f7f7f5;--surface-background:#fff;--text-color:#1f2428;--muted-text:#59656d;--primary-background:#2f4f67;--primary-text:#fff;--border-color:#d8dadd;--disabled-background:#dfe3e6;--disabled-border:#c7cdd1;--disabled-text:#69747c;--focus-color:#e3a008;--answer-border:#6b8797;--error-background:#fff0ef;--error-border:#b4433c;--error-text:#7d201b;--blank-border:#69747c;--molecule-name:#3f4c55;--molecule-background:#fff;--correct-background:#237a3b;--correct-text:#17642d;--incorrect-background:#b53b34;--incorrect-text:#9b2f2a;color:var(--text-color);background:var(--page-background);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:18px;line-height:1.45}@media (prefers-color-scheme:dark){:root:not([data-theme]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--page-background:#11161b;--surface-background:#1b2228;--text-color:#edf2f5;--muted-text:#aeb9c0;--primary-background:#8db6d1;--primary-text:#10171c;--border-color:#3d4850;--disabled-background:#2a3238;--disabled-border:#465159;--disabled-text:#929da4;--focus-color:#f4bf4f;--answer-border:#77a7c2;--error-background:#351c1d;--error-border:#e07a73;--error-text:#ffb8b3;--blank-border:#91a0aa;--molecule-name:#c8d2d8;--molecule-background:#1a2128;--correct-background:#237a3b;--correct-text:#62d27f;--incorrect-background:#b53b34;--incorrect-text:#ff837b}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--page-background:#11161b;--surface-background:#1b2228;--text-color:#edf2f5;--muted-text:#aeb9c0;--primary-background:#8db6d1;--primary-text:#10171c;--border-color:#3d4850;--disabled-background:#2a3238;--disabled-border:#465159;--disabled-text:#929da4;--focus-color:#f4bf4f;--answer-border:#77a7c2;--error-background:#351c1d;--error-border:#e07a73;--error-text:#ffb8b3;--blank-border:#91a0aa;--molecule-name:#c8d2d8;--molecule-background:#1a2128;--correct-background:#237a3b;--correct-text:#62d27f;--incorrect-background:#b53b34;--incorrect-text:#ff837b}:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--page-background);overflow-x:hidden}button,input{font:inherit}button,.file-picker{min-height:44px}button{border:1px solid var(--primary-background);color:var(--primary-text);background:var(--primary-background);cursor:pointer;touch-action:manipulation;border-radius:8px;padding:.55rem .9rem}button:disabled{color:var(--disabled-text);background:var(--disabled-background);border-color:var(--disabled-border);cursor:not-allowed}button:focus-visible,input:focus-visible,.file-picker:focus-within{outline:3px solid var(--focus-color);outline-offset:2px}.app-shell{width:min(2400px,100%);padding:max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));margin:0 auto}.theme-toolbar{justify-content:flex-end;margin-bottom:.75rem;display:flex}.theme-toggle{min-width:8rem;color:var(--primary-background);background:var(--surface-background)}.screen{width:100%}#import-screen{border:1px solid var(--border-color);background:var(--surface-background);text-align:center;border-radius:12px;max-width:680px;margin:10vh auto 0;padding:2rem}h1,h2,p{margin-top:0}h1{margin-bottom:.75rem;font-size:clamp(1.65rem,5vw,2.25rem);line-height:1.15}.intro{margin-bottom:1.5rem}.file-picker{border:1px solid var(--primary-background);width:100%;color:var(--primary-text);background:var(--primary-background);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;padding:.65rem 1rem;display:inline-flex}.file-picker input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.status{min-height:1.5rem;color:var(--muted-text);margin:1rem 0 0;font-size:.9rem}.error-message{border:1px solid var(--error-border);color:var(--error-text);background:var(--error-background);text-align:left;white-space:pre-wrap;border-radius:8px;margin:1rem 0 0;padding:.8rem}.study-header{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;display:flex}.app-name{color:var(--muted-text);letter-spacing:.08em;margin-bottom:.35rem;font-size:.8rem;font-weight:700}.study-header h1{margin-bottom:0}.progress{color:var(--muted-text);white-space:nowrap;flex:none;margin:.3rem 0 0;font-weight:700}.question-card,.answer-section{background:var(--surface-background);border-radius:10px;padding:1rem}.question-card{border:1px solid var(--border-color)}.question-label{white-space:pre-wrap;margin-bottom:1.25rem;font-size:clamp(1.25rem,4vw,1.65rem);line-height:1.25}.answer-section{border:2px solid var(--answer-border);margin-top:1rem}.answer-section h2{margin-bottom:1rem;font-size:1.3rem}.tracking-panel{border:1px solid var(--border-color);background:var(--surface-background);border-radius:10px;margin-top:1rem;padding:1rem}.tracking-heading-row,.dialog-heading-row{justify-content:space-between;align-items:center;gap:1rem;display:flex}.tracking-heading-row h2,.dialog-heading-row h2{margin-bottom:0;font-size:1.2rem}.tracking-heading-row .secondary-button,.dialog-heading-row .secondary-button{color:var(--primary-background);background:var(--surface-background)}.rating-controls{border-top:1px solid var(--border-color);margin-top:1rem;padding-top:1rem}.rating-controls p{margin-bottom:.65rem}.rating-buttons{flex-wrap:wrap;gap:.75rem;display:flex}.rating-button{color:#fff;border-color:#0000;flex:180px}.correct-button{background:var(--correct-background)}.incorrect-button{background:var(--incorrect-background)}.rating-button.selected{box-shadow:0 0 0 3px var(--focus-color);border-color:#fff;font-weight:700}.rating-status{min-height:1.4rem;color:var(--muted-text);margin:.65rem 0 0;font-size:.9rem}.progress-dialog{border:1px solid var(--border-color);width:min(720px,100% - 2rem);max-height:calc(100vh - 2rem);color:var(--text-color);background:var(--surface-background);border-radius:12px;padding:1.25rem;overflow:auto}.progress-dialog::backdrop{background:#0000008c}.progress-list{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:.5rem;margin:1rem 0 0;padding:0;list-style:none;display:grid}.progress-list li{border:1px solid var(--border-color);background:var(--page-background);border-radius:7px;justify-content:center;align-items:center;gap:.4rem;min-height:44px;padding:.45rem .55rem;display:inline-flex}.progress-question-number{text-align:right;min-width:1.5rem;font-weight:700}.progress-status{text-align:center;min-width:1.2rem;font-size:1.1rem;font-weight:700}.progress-status.correct{color:var(--correct-text)}.progress-status.incorrect{color:var(--incorrect-text)}.progress-status.unattempted{color:var(--muted-text)}.content-rows{gap:1.25rem;display:grid}.reaction-row-scroll{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;width:100%;max-width:100%;overflow:auto hidden}.reaction-row{vertical-align:top;align-items:center;gap:clamp(1rem,4vw,2.5rem);min-width:100%;min-height:120px;padding:.5rem .25rem;display:inline-flex}.text-item{white-space:pre-wrap;flex:none;max-width:42rem;display:inline-block}.molecule-item,.blank-item,.arrow-item{flex:none}.molecule-item{flex-direction:column;justify-content:center;align-items:center;display:flex}.molecule-art{width:min(var(--molecule-width), calc(100vw - 3rem));background:var(--molecule-background);min-width:0}.molecule-art svg{width:100%;height:auto;display:block}.molecule-name{max-width:min(var(--molecule-width), calc(100vw - 3rem));color:var(--molecule-name);text-align:center;overflow-wrap:anywhere;margin-top:.25rem;font-size:.9rem}.molecule-error{width:min(var(--molecule-width), calc(100vw - 3rem));border:2px solid var(--error-border);min-height:120px;color:var(--error-text);background:var(--error-background);text-align:center;overflow-wrap:anywhere;border-radius:8px;flex-direction:column;justify-content:center;padding:.75rem;display:flex}.molecule-error strong{margin-bottom:.35rem}.molecule-error-detail{margin-top:.25rem;font-size:.82rem}.blank-item{border:3px dashed var(--blank-border);border-radius:8px;justify-content:center;align-items:center;min-height:84px;display:flex}.blank-short{width:130px}.blank-medium{width:190px}.blank-large{width:min(300px,100vw - 3rem);min-height:150px}.arrow-item{flex-direction:column;justify-content:center;align-items:stretch;gap:.3rem;width:260px;min-width:220px;display:flex}.arrow-annotations{flex-direction:column;align-items:center;gap:.3rem;min-height:1.5rem;display:flex}.arrow-glyph{color:var(--text-color);text-align:center;font-size:2.7rem;line-height:1;display:block}.annotation-text{white-space:pre-wrap;text-align:center;width:100%}.annotation-blank{white-space:pre-wrap;justify-content:center;align-items:flex-end;gap:.35rem;width:100%;display:inline-flex}.blank-line{border-bottom:2px solid var(--text-color);height:1.3rem;display:inline-block}.line-short{width:90px}.line-medium{width:150px}.line-large{width:230px}.controls{flex-wrap:wrap;gap:.75rem;max-width:1100px;margin:1.25rem auto 0;display:flex}.controls button{flex:140px}.controls .secondary-button{color:var(--primary-background);background:var(--surface-background);flex-basis:100%}@media (width>=1400px){.app-shell{padding-right:max(clamp(2rem, 3vw, 4rem), env(safe-area-inset-right));padding-left:max(clamp(2rem, 3vw, 4rem), env(safe-area-inset-left))}}@media (width<=540px){#import-screen{margin-top:4vh;padding:1.25rem}.study-header{display:block}.progress{margin-top:.6rem}.reaction-row{gap:1rem}.arrow-item{width:220px;min-width:220px}}
