*{box-sizing:border-box}body{margin:0;background:#0b131c;color:#e8eff4;font:15px/1.55 system-ui,sans-serif}header{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid #263a49;gap:12px}strong{letter-spacing:.13em;font-size:20px}strong span,small{color:#70dcca}small{font-size:11px;letter-spacing:.12em}button,select,input{font:inherit;color:inherit;background:#182936;border:1px solid #35505e;border-radius:9px;padding:9px 12px}button{cursor:pointer}button:hover,button.active{border-color:#70dcca;background:#254c50}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #70dcca}main{display:grid;grid-template-columns:260px minmax(0,1fr) 280px;height:calc(100dvh - 78px)}aside{padding:20px;overflow:auto;background:#101e29}h1,h2{line-height:1.15;letter-spacing:-.04em}h1{font-size:30px}h2{font-size:32px}h3{font-size:13px;margin:20px 0 8px}p{color:#a9bdca}#layers{display:grid;grid-template-columns:1fr 1fr;gap:6px}#layers button{font-size:12px;padding:8px}label{display:block;margin-top:14px;color:#a9bdca}input[type=range]{width:100%;accent-color:#70dcca}#search{width:100%}#parts{display:grid;gap:5px;margin-top:10px}#parts button{text-align:left;font-size:13px}.details button{display:block;width:100%;margin:8px 0}a{color:#70dcca}hr{border:0;border-top:1px solid #304654;margin:24px 0}#stage{position:relative;min-height:0;background:radial-gradient(ellipse,#293e4b,#0b131c);overflow:hidden}#canvas{position:absolute;inset:0}canvas{display:block;touch-action:none}.stage-top,.stage-bottom{position:absolute;z-index:1;left:16px;right:16px;pointer-events:none}.stage-top{top:16px}.stage-bottom{bottom:16px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}.stage-bottom button{pointer-events:auto}.stage-bottom span,#status{font-size:12px;color:#b4c6cf}.tools{display:flex;gap:8px;flex-wrap:wrap}dialog{background:#142633;color:#e8eff4;border:1px solid #35505e;border-radius:16px;max-width:480px;width:90%}dialog::backdrop{background:#0009}#question button{display:block;width:100%;margin:8px 0}#meta{color:#a9bdca;margin:18px 0}@media(max-width:900px){main{height:auto;grid-template-columns:1fr 1fr}#stage{grid-column:1/-1;grid-row:1;height:65dvh;min-height:380px}aside{max-height:65dvh}header{flex-wrap:wrap;padding:12px}}@media(max-width:550px){main{display:flex;flex-direction:column}#stage{order:-1;height:65dvh}aside{max-height:480px}.details{max-height:none}header strong{font-size:17px}.tools button,.tools select{font-size:12px}.stage-bottom button{font-size:12px;padding:7px}.stage-bottom span{width:100%}}:root{color-scheme:dark;--accent:#5eead4;--panel:#111a27;--line:#273447}body{background:#090f19;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:14px}header{height:72px;background:#101925;padding:12px 24px}header strong{letter-spacing:-.045em;font-size:24px}header small{margin-left:8px;color:#8395ab}main{height:calc(100dvh - 72px);grid-template-columns:270px minmax(0,1fr) 300px;gap:1px;background:var(--line)}aside{background:var(--panel);padding:22px 18px;scrollbar-width:thin;scrollbar-color:#35465b transparent}h1{font-size:26px;margin:12px 0 8px}h2{font-size:28px;margin:14px 0}h3{color:#dbe7f4;font-size:12px;letter-spacing:.04em}p{font-size:13px;color:#9bacc1}small{color:var(--accent);font-weight:600}button,select,input,textarea{background:#192536;border:1px solid #304057;border-radius:8px;color:#e5eef9;font:inherit;padding:10px 12px}button{transition:background .18s,border-color .18s}button.active,button:hover{background:#163d40;border-color:#4ac9b8}#quiz,#focus{background:#5eead4;color:#082a2a;border-color:#5eead4;font-weight:700}#filter{width:100%;margin-bottom:8px}#parts button{background:#141f2e;border-color:transparent;padding:11px 12px}#parts button.active{background:#183d40;border-color:#5eead4}#stage{background:radial-gradient(ellipse at 50% 40%,#293c51,#141e2d 48%,#0b111d)}.stage-top{top:22px;left:22px}.stage-bottom{bottom:20px;left:20px;right:20px;justify-content:center}.stage-bottom button,.view-tools button{background:#101b2be8;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.stage-bottom span{width:100%;text-align:center}.view-tools{position:absolute;right:16px;top:80px;display:grid;gap:8px;z-index:2}.view-tools button{width:44px;height:44px;padding:0;font-size:21px}.study-note{margin-top:22px}.study-note textarea{width:100%;resize:vertical;min-height:90px}.study-note small{font-size:10px;color:#92a4b9}#meta{background:#192536;border:1px solid #29394e;padding:12px;border-radius:10px;font-size:12px}#saved-list{display:grid;gap:8px;margin:18px 0}.expanded main{grid-template-columns:1fr}.expanded aside{display:none}.expanded #stage{grid-column:1/-1;height:100%}dialog{background:#141f2e;border-color:#35465b;padding:24px}button:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:1050px){main{grid-template-columns:220px minmax(0,1fr) 250px}aside{padding:16px}}@media(max-width:900px){header{height:auto}main{height:auto;grid-template-columns:1fr 1fr}#stage{height:65dvh}.expanded #stage{height:85dvh}}@media(max-width:550px){header{padding:12px;gap:8px}header strong{font-size:21px}header small{display:none}.tools{width:100%;gap:5px}.tools button,.tools select{min-height:44px;padding:7px;font-size:11px}main{display:flex}#stage{height:66dvh;min-height:390px}.stage-bottom button{min-height:44px}.stage-top{left:12px;top:12px}.view-tools{right:10px;top:65px}aside{max-height:420px}.details{max-height:none}#parts button{min-height:44px}}.mobile-nav,.panel-close{display:none}main,aside,#stage{min-width:0}dialog{max-height:85dvh;overflow:auto}button,select{touch-action:manipulation}@media(max-width:900px){body{height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{flex:none;padding:10px 12px;gap:8px;display:flex;flex-wrap:wrap}header strong{font-size:21px}header small{display:none}.tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:5px}.tools button,.tools select{min-width:0;min-height:44px;font-size:12px;padding:5px 3px;white-space:normal}main{position:relative;display:block;flex:1;min-height:0;height:auto;overflow:hidden}#stage,.expanded #stage{height:100%;min-height:0;width:100%}aside,.details{display:none;position:absolute;z-index:5;left:0;right:0;bottom:0;max-height:88%;overflow:auto;overscroll-behavior:contain;border-radius:20px 20px 0 0;border:1px solid var(--line);box-shadow:0 -12px 40px #0008;padding:18px 16px 24px}body[data-panel=explore] #explore-panel,body[data-panel=details] #details-panel{display:block}.panel-close{display:block;float:right;width:44px;height:44px;font-size:24px;padding:0}.mobile-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 10px max(8px,env(safe-area-inset-bottom));background:#101925;border-top:1px solid var(--line);flex:none}.mobile-nav button{min-height:48px;padding:6px;font-size:13px}.mobile-nav button[aria-pressed=true],.mobile-nav button[aria-expanded=true]{background:#163d40;border-color:var(--accent);color:var(--accent)}#parts button,#layers button,.details button:not(.panel-close){min-height:44px}#search,#filter,textarea{font-size:16px;min-height:44px}.stage-top{top:10px;left:12px;right:64px}.view-tools{top:62px;right:10px}.stage-bottom{left:8px;right:8px;bottom:8px;gap:5px}.stage-bottom button{min-height:44px;padding:7px 10px;font-size:12px}.stage-bottom span{font-size:11px}.expanded header,.expanded .mobile-nav{display:none}.expanded aside{display:none!important}#meta:empty{display:none}}@media(max-width:380px){.tools{grid-template-columns:repeat(2,minmax(0,1fr))}.tools button,.tools select{min-height:40px}.stage-bottom button{padding:5px 7px}.mobile-nav button{font-size:12px}}@media(max-width:900px)and (orientation:landscape)and (max-height:500px){header{flex-wrap:nowrap}header strong{font-size:16px}.tools{width:auto;flex:1}.mobile-nav{padding:3px 8px}.mobile-nav button{min-height:40px}.view-tools{top:40px;gap:4px}.view-tools button{width:40px;height:40px}.stage-bottom span{display:none}aside,.details{max-height:100%;width:min(420px,100%);right:auto;border-radius:0 12px 0 0}.details{left:auto;right:0}}
