:root{color-scheme:dark;--bg0:#0b0c0b;--bg1:#151613;--panel:rgba(242,239,231,0.035);--panel-border:rgba(242,239,231,0.12);--text:#f2efe7;--muted:#b8b1a3;--accent:#d7b56d;--accent-2:#f0cf7f;--button-text:#0a0a10}*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:"Segoe UI","Inter",system-ui,sans-serif;color:var(--text);background:var(--bg0)}.shell{max-width:980px;margin:0 auto;padding:32px 20px 56px}.topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:0}.brand-dot{width:10px;height:10px;border-radius:2px;background:var(--accent)}.brand-lign{color:#a8cbe6}nav{display:flex;flex-wrap:wrap;gap:10px}.nav-link{padding:8px 12px;border-radius:4px;color:var(--muted);text-decoration:none;border:1px solid transparent}.nav-link:hover,.nav-link.active{color:var(--text);border-color:rgba(242,239,231,0.18);background:rgba(242,239,231,0.045)}.hero{margin-bottom:22px}.eyebrow{margin:0 0 10px;color:var(--accent);text-transform:uppercase;letter-spacing:0.12em;font-size:0.82rem;font-weight:700}h1{margin:0 0 12px;font-size:clamp(2rem,5vw,3.2rem);line-height:1.02}.summary{max-width:760px;margin:0;color:var(--muted);font-size:1.02rem;line-height:1.65}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.card{padding:18px 18px 16px;border-radius:6px;background:var(--panel);border:1px solid var(--panel-border);box-shadow:none}.card h2{margin:0 0 10px;font-size:1rem}.card p{margin:0 0 10px;color:var(--muted);line-height:1.6}.card ul{margin:0;padding-left:18px;color:var(--text);line-height:1.55}.card li+li{margin-top:8px}.snippet{margin-top:12px;padding:14px 16px;border-radius:4px;background:rgba(242,239,231,0.035);border:1px solid var(--panel-border);color:var(--text);line-height:1.65;white-space:pre-wrap}a{color:var(--accent)}footer{margin-top:28px;padding-top:16px;border-top:1px solid var(--panel-border);color:var(--muted);line-height:1.6}.accent{color:var(--accent-2)}.topbar-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;margin-left:auto}.site-auth{position:relative;z-index:50;color:var(--text,#f2efe7);font:0.92rem/1.35 "Segoe UI","Inter",system-ui,sans-serif}.site-auth.is-floating{position:fixed;top:14px;right:14px;z-index:1200;color:#f2efe7}.site-auth[hidden]{display:none !important}.site-auth-trigger{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 12px;border:1px solid var(--panel-border,rgba(242,239,231,0.18));border-radius:4px;color:inherit;background:rgba(16,17,15,0.72);box-shadow:none;cursor:pointer;user-select:none;list-style:none}.site-auth-trigger::-webkit-details-marker{display:none}.site-auth-avatar{width:10px;height:10px;border-radius:2px;background:var(--muted,#94a3b8);box-shadow:0 0 0 3px rgba(242,239,231,0.08)}.site-auth.is-signed-in .site-auth-avatar{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,0.2)}.site-auth-panel{position:absolute;top:calc(100%+10px);right:0;display:grid;gap:12px;width:min(340px,calc(100vw - 28px));padding:14px;border:1px solid rgba(148,163,184,0.28);border-radius:4px;color:#0f172a;background:rgba(255,255,255,0.98);box-shadow:0 22px 60px rgba(15,23,42,0.22)}.site-auth:not([open]) .site-auth-panel{display:none}.site-auth-copy,.site-auth-user{color:#475569;font-size:0.88rem;line-height:1.45}.site-auth-user{color:#0f172a;font-weight:760}.site-auth-copy.error{color:#b91c1c}.site-auth-copy.success{color:#047857}.site-auth-form{display:grid;gap:10px;min-inline-size:0;margin:0;padding:0;border:0}.site-auth-form label{display:grid;gap:5px;color:#1e293b;font-size:0.86rem;font-weight:700}.site-auth-form input{min-height:40px;width:100%;border:1px solid #cbd5e1;border-radius:4px;padding:8px 10px;color:#0f172a;background:#ffffff;font:inherit;font-weight:500}.site-auth-actions,.site-auth-session-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.site-auth-actions button,.site-auth-session-actions button{min-height:40px;border:1px solid #cbd5e1;border-radius:4px;padding:8px 10px;color:#0f172a;background:#ffffff;font:inherit;font-weight:760;cursor:pointer}.site-auth-actions button:first-child{border-color:var(--accent,#d7b56d);color:#0a0a10;background:var(--accent,#d7b56d)}.site-auth-actions button:disabled,.site-auth-session-actions button:disabled{cursor:wait;opacity:0.66}@media (max-width:760px){.topbar-actions{width:100%;justify-content:space-between}.site-auth{margin-left:auto}.site-auth.is-floating{top:10px;right:10px}body.stem-trainer-public .site-auth.is-floating{top:112px;right:12px}}.shell{max-width:1180px;margin-inline:auto;padding:14px 24px 52px}.topbar{margin-bottom:18px}.hero{margin:0 0 18px;text-align:center}h1{margin:0;font-size:clamp(1.8rem,4vw,2.9rem);line-height:1.02}.summary{max-width:460px;margin:0 auto;font-size:0.95rem;line-height:1.55}.grid{grid-template-columns:minmax(0,1fr);gap:0}.text-gloss-workspace{grid-column:1 / -1;display:grid;justify-items:center;gap:38px;width:100%}.text-gloss-composer-wrap{display:flex;justify-content:center;width:100%}.text-gloss-composer{width:100%;max-width:860px;margin-inline:auto;padding:12px 18px 12px;border-radius:6px;border:1px solid rgba(242,239,231,0.12);background:rgba(16,17,15,0.88);backdrop-filter:blur(18px);box-shadow:none}.text-gloss-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}.text-gloss-language-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.text-gloss-select{min-width:150px;border-radius:4px;border:1px solid rgba(242,239,231,0.12);background:rgba(242,239,231,0.05);color:var(--text);padding:10px 34px 10px 12px;font:inherit;appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) calc(50% - 2px),calc(100% - 12px) calc(50% - 2px);background-size:6px 6px,6px 6px;background-repeat:no-repeat}.text-gloss-select:focus{outline:none;border-color:rgba(215,181,109,0.56);box-shadow:0 0 0 3px rgba(215,181,109,0.12)}.text-gloss-flow{color:var(--muted);font-size:0.92rem}.text-gloss-state{display:inline-flex;align-items:center;padding:7px 10px;border-radius:4px;border:1px solid rgba(242,239,231,0.1);background:rgba(242,239,231,0.04);color:var(--muted);font-size:0.82rem;font-weight:700;white-space:nowrap}.text-gloss-state--busy{color:var(--accent-2);border-color:rgba(240,207,127,0.24);background:rgba(240,207,127,0.08)}.text-gloss-state--working{color:var(--accent);border-color:rgba(215,181,109,0.26);background:rgba(215,181,109,0.08)}.text-gloss-state--ready{color:#98f0bf;border-color:rgba(152,240,191,0.22);background:rgba(152,240,191,0.08)}.text-gloss-state--error{color:#ffb1b1;border-color:rgba(255,177,177,0.22);background:rgba(255,177,177,0.08)}.text-gloss-input{width:100%;min-height:72px;max-height:220px;border:none;background:transparent;color:var(--text);font:inherit;font-size:1.08rem;line-height:1.68;resize:none;overflow-y:hidden;padding:6px 0 8px}.text-gloss-input::placeholder{color:rgba(238,244,255,0.34)}.text-gloss-input:focus{outline:none}.text-gloss-composer-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding-top:10px;border-top:1px solid rgba(242,239,231,0.1)}.text-gloss-actions,.text-gloss-output-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.text-gloss-button{border-radius:4px;font:inherit;font-weight:700;cursor:pointer}.text-gloss-button.primary{border:1px solid transparent;background:var(--accent);color:#0a0a10;padding:9px 14px}.text-gloss-button.linkish{border:none;background:transparent;color:var(--muted);padding:0}.text-gloss-button.linkish:hover{color:var(--text)}.text-gloss-button:disabled{cursor:progress;opacity:0.68}.text-gloss-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;color:var(--muted);font-size:0.78rem}.text-gloss-status{min-height:1.4em;margin-top:4px;color:var(--muted);text-align:center;font-size:0.9rem}.text-gloss-status.error{color:#ffb1b1}.text-gloss-status.success{color:#98f0bf}.text-gloss-stage{display:grid;gap:12px;justify-items:center;min-height:260px}.text-gloss-output{width:min(1080px,100%);display:grid;gap:26px;justify-items:center}.text-gloss-output-actions{justify-content:center;width:100%;margin-top:2px}.text-gloss-output-actions[hidden]{display:none}.text-gloss-empty-state{min-height:120px;display:grid;justify-items:center;align-content:center}.text-gloss-segment{width:100%;display:grid;gap:0;justify-items:center}.text-gloss-segment+.text-gloss-segment{padding-top:22px;border-top:1px solid rgba(242,239,231,0.1)}.text-gloss-source{display:none}.text-gloss-line{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:10px 16px;max-width:1080px;padding:8px 16px;direction:ltr}.text-gloss-pair{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;position:relative;text-align:center;padding:0 2px}.text-gloss-pair::before{content:'';position:absolute;left:50%;top:50%;width:calc(100%+18px);height:calc(100%+12px);transform:translate(-50%,-50%);background:transparent;pointer-events:none}.text-gloss-pair>*{position:relative;z-index:1}.text-gloss-pair-aligned{align-items:stretch}.text-gloss-original{color:#ffffff;font-size:var(--original-font-size,48px);font-weight:500;font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;text-shadow:none;user-select:text;line-height:1.2;white-space:nowrap}.text-gloss-gloss{color:rgba(255,255,255,0.72);font-size:var(--gloss-font-size,20px);font-weight:300;font-style:italic;font-family:'Inter','Segoe UI',system-ui,sans-serif;min-height:1.2em;letter-spacing:0.01em;line-height:1.3;text-align:center;text-shadow:none;white-space:nowrap}.text-gloss-gloss-aligned{display:flex;justify-content:center;gap:2px}.text-gloss-gloss-part{min-width:0;text-align:center}@media (max-width:760px){.shell{padding:20px 18px 44px}.text-gloss-toolbar,.text-gloss-composer-footer{flex-direction:column;align-items:stretch}.text-gloss-language-row,.text-gloss-actions,.text-gloss-output-actions,.text-gloss-meta{justify-content:center}.text-gloss-state{justify-content:center}}@media (max-width:560px){.text-gloss-composer{padding:12px 14px}.text-gloss-select{width:100%;min-width:0}.text-gloss-language-row{display:grid;grid-template-columns:1fr}.text-gloss-flow{text-align:center}}