:root{color:#17231f;font-synthesis:none;background:#e7efe9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 12% 0,#ffffffeb,#0000 32rem),linear-gradient(145deg,#edf4ef 0%,#dce8df 100%);min-width:320px;min-height:100vh;margin:0}button,a{font:inherit}button:focus-visible,a:focus-visible{outline-offset:3px;outline:3px solid #e97d43}.leaf-shell{min-height:100vh;padding:max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left))}.leaf-topbar{grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:22px;max-width:1480px;margin:0 auto 18px;display:grid}.leaf-back{color:#23483d;align-items:center;gap:8px;min-height:44px;font-weight:800;text-decoration:none;display:inline-flex}.leaf-heading small,.leaf-problem-detail small{color:#527267;letter-spacing:.12em;text-transform:uppercase;font-size:.72rem;font-weight:900}.leaf-heading h1{margin:3px 0 4px;font-family:Georgia,Times New Roman,serif;font-size:clamp(1.65rem,4vw,2.8rem);line-height:1}.leaf-heading p,.leaf-problem-detail p{color:#4d625b;max-width:68ch;margin:0;line-height:1.45}.leaf-status{color:#3f5b52;text-align:right;max-width:22ch;margin:4px 0 0;font-size:.85rem;font-weight:700}.leaf-workspace{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:16px;max-width:1480px;height:max(460px,100vh - 150px);margin:0 auto;display:grid}.leaf-stage,.leaf-browser{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fafcf9db;border:1px solid #33574b2e;border-radius:22px;box-shadow:0 18px 55px #314d441f}.leaf-stage{grid-area:1/1;min-width:0;min-height:0;position:relative;overflow:hidden}.leaf-scene-root,.leaf-scene-root canvas{width:100%;height:100%;display:block}.leaf-scene-root canvas{cursor:grab}.leaf-scene-root canvas:active{cursor:grabbing}.leaf-scene-label{color:#24483c;pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#f8fbf7e8;border:1px solid #24483c21;border-radius:13px;gap:2px;max-width:min(360px,100% - 32px);padding:10px 12px;display:grid;position:absolute;top:16px;left:16px;box-shadow:0 8px 24px #25463b1a}.leaf-scene-label small{color:#5d796f;letter-spacing:.1em;text-transform:uppercase;font-size:.66rem;font-weight:900}.leaf-scene-label strong{font-family:Georgia,Times New Roman,serif;font-size:1.15rem}.leaf-scene-label span{color:#5b7068;font-size:.7rem;font-weight:700}.leaf-scene-feedback{color:#31574b;pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#f8fbf7eb;border:1px solid #23483d24;border-radius:12px;max-width:min(420px,100% - 32px);margin:0;padding:9px 12px;font-size:.74rem;font-weight:800;position:absolute;bottom:16px;right:16px}.leaf-scene-loading{color:#31574b;text-align:center;background:linear-gradient(145deg,#dcece3,#cbded4);place-content:center;gap:12px;display:grid;position:absolute;inset:0}.leaf-scene-loading[hidden]{display:none}.leaf-scene-loading span{border:4px solid #2d71602e;border-top-color:#2d7160;border-radius:50%;width:32px;height:32px;margin:0 auto;animation:.9s linear infinite leaf-spin}@keyframes leaf-spin{to{transform:rotate(360deg)}}.leaf-scene-fallback{color:#24483c;background:radial-gradient(circle at 80% 20%,#ffffffb8,#0000 18rem),linear-gradient(145deg,#dcebe2,#cbded4);padding:clamp(24px,5vw,54px);position:absolute;inset:0;overflow:auto}.leaf-scene-fallback[hidden]{display:none}.leaf-scene-fallback small{color:#59776d;letter-spacing:.12em;text-transform:uppercase;font-size:.7rem;font-weight:900}.leaf-scene-fallback h2{margin:7px 0 8px;font-family:Georgia,Times New Roman,serif;font-size:clamp(1.45rem,3vw,2.2rem)}.leaf-scene-fallback p{color:#536a61;max-width:58ch;line-height:1.5}.leaf-scene-fallback ul{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;max-width:620px;margin:22px 0 0;padding:0;list-style:none;display:grid}.leaf-scene-fallback li{background:#f9fcf8b8;border:1px solid #2c5d4d29;border-radius:12px;padding:10px 12px;font-size:.78rem;font-weight:800}.leaf-stage[data-render-mode=fallback] .leaf-scene-label,.leaf-stage[data-render-mode=fallback] .leaf-scene-feedback{display:none}.leaf-browser{flex-direction:column;grid-area:1/2;min-width:0;min-height:0;padding:14px;display:flex;overflow:auto}.leaf-collections{gap:8px;margin-bottom:16px;display:grid}.leaf-collections button,.leaf-problem-card{color:#24483c;cursor:pointer;text-align:left;background:#f6faf7;border:1px solid #2b4e4229;border-radius:13px;width:100%;min-height:48px}.leaf-collections button{padding:10px 12px;font-size:.8rem;font-weight:850}.leaf-collections button[aria-current=true]{color:#f8fffb;background:#2d7160;border-color:#2d7160}.leaf-problems{gap:10px;display:grid}.leaf-problem-card{grid-template-columns:12px minmax(0,1fr);align-items:center;gap:10px;padding:12px;display:grid}.leaf-problem-card:before{content:"";background:#e97d43;border-radius:50%;width:10px;height:10px}.leaf-problem-card[data-status=completed]:before{background:#2d8061}.leaf-problem-card[data-status=locked]:before{background:#8b9994}.leaf-problem-card[aria-pressed=true]{border-color:#e97d43;box-shadow:inset 0 0 0 2px #e97d432e}.leaf-problem-card b{font-size:.9rem;line-height:1.25;display:block}.leaf-problem-card small{color:#667b74;text-transform:capitalize;font-size:.68rem;font-weight:750}.leaf-problem-detail{background:#edf5f0;border:1px solid #2d716038;border-radius:16px;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:16px;padding:16px;scroll-margin-block:14px;display:grid}.leaf-problem-detail[hidden]{display:none}.leaf-problem-detail h2{margin:4px 0 6px;font-family:Georgia,Times New Roman,serif;font-size:1.35rem}.leaf-problem-detail h3{margin:0 0 5px;font-size:.78rem}.leaf-problem-detail ul{color:#4d625b;margin:0;padding-left:18px;font-size:.78rem}#leaf-problem-launch{color:#fff;cursor:pointer;background:#d96732;border:0;border-radius:14px;width:100%;min-height:52px;padding:0 18px;font-weight:900;box-shadow:0 8px 20px #a04b233d}#leaf-problem-launch:disabled{cursor:wait;opacity:.58}.leaf-stale-dialog{color:#173d32;background:#f7faf5;border:1px solid #26544538;border-radius:20px;width:min(420px,100vw - 32px);padding:26px;box-shadow:0 24px 70px #15372d4d}.leaf-stale-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#122b238c}.leaf-stale-dialog h2{margin:6px 0 10px;font-family:Georgia,Times New Roman,serif}.leaf-stale-dialog p{color:#536961;line-height:1.5}.leaf-stale-dialog button{color:#fff;cursor:pointer;background:#2d7160;border:0;border-radius:13px;width:100%;min-height:48px;font-weight:850}@media (width<=820px){.leaf-shell{padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left))}.leaf-topbar{grid-template-columns:auto minmax(0,1fr);gap:12px}.leaf-status{text-align:left;grid-column:2;max-width:none;margin-top:-6px}.leaf-workspace{flex-direction:column;height:auto;min-height:0;display:flex}.leaf-stage,.leaf-scene-root{min-height:330px}.leaf-scene-label{max-width:calc(100% - 20px);top:10px;left:10px}.leaf-scene-label span{display:none}.leaf-scene-feedback{max-width:calc(100% - 20px);bottom:10px;right:10px}.leaf-browser{max-height:none;overflow:visible}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}
