
:root{--ink:#142c3f;--m:#506774;--teal:#09647d;--line:#d6e2e6;--bg:#f8faf8;--sun:#fff1de}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:system-ui,Arial,sans-serif;color:var(--ink);line-height:1.55}header{background:#102b40;color:white}header .wrap{display:flex;align-items:center;justify-content:space-between;padding:18px 22px}a{color:#096b86}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #efa958;outline-offset:2px}.wrap{max-width:1100px;margin:auto;padding:0 22px}.logo{font-weight:900}.sublogo{color:#b8d2da;font-size:.78rem}.private{font-size:.75rem;border:1px solid #86a8b5;border-radius:40px;padding:5px 10px}.hero{padding:35px 0 25px;background:linear-gradient(120deg,#faf3e9,#e7f5f4)}.eyebrow{font-size:.77rem;font-weight:850;text-transform:uppercase;letter-spacing:1px;color:#336f7c}.hero h1{font:700 clamp(2rem,5vw,3.6rem)/1.08 Georgia,serif;margin:12px 0}.hero p{max-width:860px;color:#49616e}.tags{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.tag{padding:5px 11px;border-radius:50px;background:white;border:1px solid #d3e0e5;font-size:.8rem;color:#295e6e}.tag.level{background:#fff0dd;color:#71451f}.steps{display:flex;gap:5px;margin:20px 0 30px}.steps i{height:7px;flex:1;background:#d6e2e5;border-radius:10px}.steps i.done{background:#58a69f}.steps i.now{background:#e8ad52}.columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.86fr);gap:19px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:20px;padding:25px 27px;box-shadow:0 8px 24px #24435a0a}.panel h2{font:700 1.7rem Georgia,serif;margin:4px 0 15px}.panel h3{font:700 1.25rem Georgia,serif}.micro{color:var(--m);font-size:.85rem}.context{border-left:4px solid #6f9aaa;background:#f5f8f9;padding:11px 15px;border-radius:8px;margin:14px 0}.primary{background:#096983;color:white;border:0;border-radius:12px;padding:12px 16px;font-weight:750;min-height:45px}.primary:hover{background:#064c62}.secondary{background:#edf6f7;color:#10546a;border:1px solid #b3d0d8;border-radius:12px;padding:11px 15px;font-weight:700}.primary:disabled,.secondary:disabled{opacity:.5;cursor:not-allowed}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.feedback{margin-top:14px;border-radius:12px;padding:12px 15px;background:#eef6fa;border-left:4px solid #508baa}.feedback.good{background:#e6f5ef;border-color:#349f79}.feedback.bad{background:#fff0eb;border-color:#df836e}.answers{display:grid;gap:9px;margin:15px 0}.choice{border:1px solid #c8dbe1;border-radius:11px;background:white;color:#16374a;padding:12px;text-align:left}.choice.selected{background:#e6f5f6;border:2px solid #096983}.choice:disabled{cursor:default}.help{border-top:1px solid #dce7ea;margin-top:22px;padding-top:14px}.help button{font-size:.85rem}.helpmsg{font-size:.9rem;color:#4a5e69;padding:10px 0}.figure{background:#f2f8f9;border:1px solid #d9e6e7;padding:13px;border-radius:14px;text-align:center;overflow:auto}.figure svg{max-width:100%;height:auto}.edit{border:1px solid #aebfc9;border-radius:10px;background:white;padding:11px;font-size:1rem;max-width:100%;width:100%}.machine{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}.rotor{background:#e1eff2;border:2px solid #a6c7d0;border-radius:12px;padding:15px 6px;text-align:center;font-weight:850;font-size:1.6rem}.rotor small{display:block;color:#547280;font-size:.72rem;font-weight:500}.info{padding:13px;border:1px dashed #b5c9d0;border-radius:12px;margin-top:14px;background:#fbfdfc}.scientist{display:flex;gap:15px;align-items:flex-start;flex-wrap:wrap}.scientist img{width:145px;height:170px;object-fit:cover;border-radius:10px}.result{display:inline-block;letter-spacing:.14em;padding:10px;background:#e9eff1;border-radius:10px;font-family:ui-monospace,monospace;font-size:1.13rem;overflow-wrap:anywhere}.sources{margin:26px 0 44px;padding:20px;border:1px solid #dbe5e8;border-radius:16px;background:white}.sources a{display:inline-block;margin-right:15px}.footer{padding:26px 0;color:#5c717d;font-size:.83rem}.bridges{display:grid;gap:8px;margin-top:12px}.bridge-btn{text-align:left;background:white;border:1px solid #c7d7dc;border-radius:9px;padding:10px}.bridge-btn:hover{border-color:#347f91}.selects{display:flex;gap:7px;flex-wrap:wrap}.selects select{padding:8px;border:1px solid #abc3ca;border-radius:7px}.sieve{display:grid;grid-template-columns:repeat(10,1fr);gap:4px}.sieve span{display:block;text-align:center;border-radius:7px;padding:5px 2px;background:#e4eef2;font-size:.82rem}.sieve .prime{background:#b9e7db}.sieve .composite{background:#f5e0d9}.highlight{color:#a25e15;font-weight:750}.divider{border:0;border-top:1px solid #dce5e8;margin:20px 0}small{font-size:.8rem}code{background:#eaf1f2;padding:2px 5px;border-radius:5px}@media(max-width:800px){.columns{grid-template-columns:1fr}.panel{padding:20px}.hero{padding-top:25px}.wrap{padding-left:15px;padding-right:15px}.scientist img{width:100px;height:115px}}@media(max-width:430px){.machine .rotor{font-size:1.3rem}.sieve{grid-template-columns:repeat(7,1fr)}}
