:root{--ink:#172033;--muted:#667085;--line:#dbe3ef;--panel:#fff;--soft:#f6f9fc;--accent:#315efb;--mint:#ecfdf3;--warn:#fff4e5}*{box-sizing:border-box}body{margin:0;background:#f4f7fb;color:var(--ink);font-family:Inter,system-ui,Segoe UI,Arial,sans-serif}.nom-top{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:0 24px;position:sticky;top:0;z-index:20}.nom-top>a{text-decoration:none;color:#344054;font-weight:800}.nom-top>div{display:flex;flex-direction:column;flex:1}.nom-top>div span{font-size:12px;color:var(--muted)}.pill{background:#eef2ff;padding:7px 10px;border-radius:999px;color:#3446b8;font-weight:900}.nom-shell{max-width:1500px;margin:0 auto;padding:24px}.hero{display:grid;grid-template-columns:1.5fr .8fr;gap:18px;background:linear-gradient(135deg,#f3f6ff,#f3fbf7);border:1px solid var(--line);border-radius:24px;padding:28px}.hero h1{font-size:38px;margin:6px 0 8px}.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:900;color:#516078}.hero-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:18px}.hero-actions button,.panel button,.actions button,.choice-row button,.question-tools button{border:1px solid #cdd6e4;background:#fff;color:var(--ink);padding:10px 14px;border-radius:11px;font-weight:800;cursor:pointer}.primary{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}.mastery{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;flex-direction:column;justify-content:center}.mastery strong{font-size:25px;margin:6px 0}.tabs{display:flex;gap:8px;overflow:auto;margin:20px 0}.tabs button{padding:12px 16px;border:1px solid var(--line);background:#fff;border-radius:12px;font-weight:800;white-space:nowrap}.tabs button.active{background:#172033;color:#fff}.tab{display:none}.tab.active{display:block}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:0 4px 20px rgba(35,55,90,.04)}.practice-grid{display:grid;grid-template-columns:330px 1fr;gap:18px}.skill{display:grid;grid-template-columns:1fr auto;gap:5px;padding:10px 0;border-bottom:1px solid #edf1f6}.skill i{grid-column:1/-1;height:6px;background:#edf1f6;border-radius:999px;overflow:hidden}.skill b{display:block;height:100%;background:var(--accent)}.filters{display:grid;gap:10px}.filters label,.inline-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:800}.filters select,.inline-controls select,.inline-controls input,.sub-adder select,.sub-adder input{padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.question-panel{min-height:520px}.empty-icon{font-size:48px}.qmeta{display:flex;gap:8px;flex-wrap:wrap}.qmeta span{background:#eef2ff;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:800}.prompt{font-size:18px;line-height:1.55}.molecule-card,.large-molecule{background:#fbfcff;border:1px solid #e1e7f0;border-radius:16px;padding:10px;margin:14px 0;overflow:auto}.large-molecule{min-height:300px;display:flex;align-items:center;justify-content:center}.mol-svg{display:block;width:100%;min-width:540px;max-width:760px;height:auto}.mol-bond{stroke:#182230;stroke-width:3;stroke-linecap:round}.mol-carbon{fill:#fff;stroke:#cbd5e1;stroke-width:1.5}.mol-carbon-text{font-weight:800;fill:#172033;text-anchor:middle;dominant-baseline:middle}.mol-group{font-weight:800;fill:#334155;text-anchor:middle}.mol-chiral{fill:#fff7ed;stroke:#f79009;stroke-width:3;cursor:pointer}.answer-input{width:100%;padding:13px;border:1px solid #b9c4d3;border-radius:11px;font-size:16px}.mcq-grid{display:grid;gap:10px}.mcq-grid button{text-align:left}.mcq-grid button.selected{border-color:var(--accent);background:#eef4ff}.question-tools{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.actions{display:flex;gap:10px;margin-top:16px}.feedback{margin-top:16px;padding:14px;border-radius:12px;background:var(--mint)}.feedback.warn{background:var(--warn)}.builder-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.builder-section{padding:16px 0;border-top:1px solid #edf1f6}.builder-section:first-of-type{border-top:0}.choice-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.choice-row button.active{background:#172033;color:#fff}.inline-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.sub-adder{display:grid;grid-template-columns:1fr 90px auto;gap:8px;margin-top:10px}.chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.chip{background:#eef2ff;padding:7px 9px;border-radius:999px;font-size:12px;font-weight:800}.chip button{padding:0 0 0 6px;border:0;background:none}.readout{display:grid;grid-template-columns:1fr 1fr;gap:10px}.readout div{background:var(--soft);padding:12px;border-radius:12px}.readout small{display:block;color:var(--muted)}.challenge-box{margin-top:14px;background:#eef4ff;border:1px solid #c7d2fe;border-radius:14px;padding:14px}.guide-grid,.isomer-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.guide-step{display:grid;grid-template-columns:42px 1fr;gap:12px;padding:15px 0;border-top:1px solid #edf1f6}.guide-step>b{width:34px;height:34px;border-radius:50%;background:#172033;color:#fff;display:grid;place-items:center}.guide-step p{margin:4px 0;color:#475467;line-height:1.5}.root-table{display:grid;grid-template-columns:40px 1fr;gap:8px;padding:8px 0}.suffixes{display:grid;gap:8px}.suffixes span{background:var(--soft);padding:9px;border-radius:9px}.guide-warning{background:#fff7ed;border-left:4px solid #f79009;border-radius:10px;padding:12px;margin-top:16px}.iso-card{background:var(--soft);border-radius:14px;padding:14px;margin-top:12px}.hint{color:var(--muted);line-height:1.5}.builder-answer{background:#f8f9ff;border:1px solid #d7def4;border-radius:14px;padding:14px;margin-top:12px}.chiral-prompt{font-weight:800;margin:10px 0}.stereo-badge{font-size:28px;font-weight:900;fill:#7c3aed}.inline-build-head{display:flex;justify-content:space-between;gap:12px;align-items:end;margin:16px 0 8px}.inline-build-head strong{font-size:17px}.inline-build-head span{color:var(--muted);font-size:13px}.sketch-builder{border:1px solid #d8e0ec;border-radius:16px;background:#fff;overflow:hidden}.sketch-toolbar,.view-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:10px;background:#f8fafc;border-bottom:1px solid #e5eaf1}.view-toolbar{background:#fff}.view-toolbar button,.sketch-toolbar button{min-width:42px;padding:8px 10px;border:1px solid #cbd5e1;background:#fff;border-radius:9px;font-weight:900;cursor:pointer}.view-toolbar button.active,.sketch-toolbar button.active{background:#172033;color:#fff;border-color:#172033}.sketch-spacer{flex:1}.sketch-help{padding:9px 12px;color:#667085;font-size:13px;border-bottom:1px solid #eef2f6}.sketch-canvas{min-height:290px;display:flex;align-items:center;justify-content:center;overflow:auto;background-image:radial-gradient(#dbe3ef 1px,transparent 1px);background-size:18px 18px;background-position:0 0}.sketch-svg{display:block;width:100%;min-width:620px;height:auto}.sketch-atom circle{fill:#fff;stroke:#172033;stroke-width:2}.sketch-atom text,.sketch-add text,.branch-add text{font-weight:900;fill:#172033;text-anchor:middle;dominant-baseline:middle;pointer-events:none}.sketch-atom,.sketch-node{cursor:pointer}.sketch-atom:hover circle{fill:#eef4ff;stroke:#315efb}.sketch-bond-hit,.skeletal-hit{fill:transparent;cursor:pointer}.sketch-node>circle:last-child{fill:#172033}.sketch-add,.branch-add{cursor:pointer}.sketch-add circle{fill:#eef4ff;stroke:#315efb;stroke-width:2;stroke-dasharray:5 4}.sketch-add text{fill:#315efb;font-size:12px}.sketch-add:hover circle{fill:#dfe8ff}.branch-add circle{fill:#fff;stroke:#a5b4fc;stroke-width:1.5;stroke-dasharray:3 3}.branch-add text{fill:#4f46e5;font-size:10px}.branch-add:hover circle{fill:#eef2ff;stroke:#4f46e5}.hydrogen-label{font-size:13px;font-weight:800;fill:#475467;text-anchor:middle}.sketch-builder.compact .sketch-canvas{min-height:260px}.sketch-builder.compact{margin-top:8px}@media(max-width:900px){.nom-shell{padding:12px}.hero,.practice-grid,.builder-layout,.guide-grid,.isomer-grid{grid-template-columns:1fr}.hero h1{font-size:30px}.nom-top{height:auto;min-height:64px;padding:10px 14px;gap:10px}.nom-top>div span{display:none}.pill{font-size:12px}.readout{grid-template-columns:1fr}.sub-adder{grid-template-columns:1fr 80px auto}.mol-svg{min-width:470px}.actions{flex-wrap:wrap}.inline-build-head{align-items:flex-start;flex-direction:column}.sketch-toolbar,.view-toolbar{position:sticky;left:0}.sketch-svg{min-width:580px}}