*,:before,:after{box-sizing:border-box}:root{--bg:#f6f8fb;--surface:#fff;--surface-muted:#eef3f7;--surface-subtle:#f9fbfd;--text:#17212b;--text-muted:#5f6f80;--border:#d7e0e9;--blue:#1f5fbf;--blue-dark:#184a96;--teal:#0f766e;--amber:#9a5b10;--green:#15803d;--red:#b42318;--ink:#111827;--code-bg:#0f172a;--code-panel:#111827;--code-text:#e5edf6;--radius:8px;--shadow:0 12px 28px #14212d1a;--font-sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono:"JetBrains Mono", "Fira Code", monospace;--max-width:1160px}html{scroll-behavior:smooth}body{background:var(--bg);color:var(--text);font-family:var(--font-sans);-webkit-font-smoothing:antialiased;margin:0;line-height:1.6}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}code{font-family:var(--font-mono);color:var(--ink);background:#e8eef5;border-radius:5px;padding:2px 6px;font-size:.92em}pre{margin:0;overflow-x:auto}pre code{color:inherit;background:0 0;border-radius:0;padding:0;font-size:.88rem;line-height:1.62;display:block}.container{max-width:var(--max-width);margin:0 auto;padding:0 24px}.nav{z-index:20;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#f6f8fbf5;position:fixed;inset:0 0 auto}.nav-inner{max-width:var(--max-width);justify-content:space-between;align-items:center;gap:24px;height:64px;margin:0 auto;padding:0 24px;display:flex}.nav-logo{color:var(--text);font-family:var(--font-mono);align-items:center;gap:10px;font-weight:800;display:inline-flex}.logo-img{border-radius:var(--radius);width:32px;height:32px}.nav-links{align-items:center;gap:18px;display:flex}.nav-links a{color:var(--text-muted);font-size:.94rem;font-weight:700}.nav-links a:hover{color:var(--text);text-decoration:none}.nav-actions,.playground-top-actions,.hero-actions,.link-row,.editor-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.lang-toggle{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex:none;display:inline-flex;overflow:hidden}.lang-btn{min-width:42px;height:34px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;font-weight:800}.lang-btn.active{background:var(--ink);color:#fff}.nav-mobile-toggle{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);flex-direction:column;justify-content:center;align-items:center;gap:5px;width:38px;height:38px;display:none}.nav-mobile-toggle span{background:var(--text);border-radius:2px;width:18px;height:2px}.btn{border-radius:var(--radius);cursor:pointer;min-height:40px;font-weight:800;font:inherit;border:1px solid #0000;justify-content:center;align-items:center;padding:0 14px;display:inline-flex}.btn:hover{text-decoration:none}.btn-primary{background:var(--blue);color:#fff}.btn-primary:hover{background:var(--blue-dark)}.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border)}.official-hero{background:var(--surface-muted);border-bottom:1px solid var(--border);padding:112px 0 42px}.official-grid{grid-template-columns:minmax(0,1fr) minmax(360px,.78fr);align-items:center;gap:38px;display:grid}.official-copy,.command-panel,.task-card,.definition-list,.gate-item,.problem-pane,.editor-pane,.result-pane,.panel{min-width:0}.product-mark{width:66px;height:66px;box-shadow:var(--shadow);border-radius:16px;margin-bottom:22px}.eyebrow{color:var(--teal);text-transform:uppercase;letter-spacing:0;margin:0 0 10px;font-size:.77rem;font-weight:800}h1,h2,h3,p{letter-spacing:0}h1{margin:0;font-size:3.4rem;font-weight:800;line-height:1.02}h2{margin:0;font-size:1.95rem;font-weight:800;line-height:1.2}h3{margin:0 0 10px;font-size:1.02rem;line-height:1.3}.lead{max-width:700px;color:var(--text-muted);margin:18px 0 0;font-size:1.08rem}.hero-actions,.link-row{margin-top:24px}.command-panel,.terminal{border-radius:var(--radius);background:var(--code-bg);color:var(--code-text);box-shadow:var(--shadow);border:1px solid #1f2d40;position:relative}.command-panel{padding:18px}.panel-topline,.output-topline,.pane-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.panel-topline{color:#c7d7ea;border-bottom:1px solid #e5edf629;padding-bottom:12px;font-size:.82rem;font-weight:800}.command-panel pre{padding-top:16px;padding-right:72px}.copy-btn{min-width:64px;height:32px;color:var(--code-text);cursor:pointer;background:#ffffff14;border:1px solid #e5edf638;border-radius:6px;font-weight:700;position:absolute;top:58px;right:16px}.status-band{background:var(--surface);border-bottom:1px solid var(--border)}.status-grid{grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.status-grid div{border-left:1px solid var(--border);padding:18px 20px}.status-grid div:last-child{border-right:1px solid var(--border)}.status-grid span,.definition-list span,.task-card span,.gate-item span,.problem-meta dt,.local-command span,.pane-header span{color:var(--text-muted);text-transform:uppercase;font-size:.76rem;font-weight:800;display:block}.status-grid strong,.definition-list strong{overflow-wrap:anywhere;margin-top:4px;display:block}.band{background:var(--surface);padding:66px 0}.band-muted{background:var(--surface-muted)}.section-head{max-width:790px;margin-bottom:28px}.section-head p,.split-section p,.task-card p,.footer p,.problem-content p,.problem-notes,.shortcut-hint{color:var(--text-muted)}.task-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.task-card,.definition-list,.gate-item,.panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:20px}.task-card pre,.panel pre{border-radius:var(--radius);background:var(--code-bg);color:var(--code-text);margin-top:12px;padding:14px}.task-card a{margin-top:8px;font-weight:800;display:inline-flex}.split-section{grid-template-columns:minmax(0,.95fr) minmax(340px,1.05fr);align-items:start;gap:34px;display:grid}.definition-list{gap:0;padding:0;display:grid;overflow:hidden}.definition-list div{border-bottom:1px solid var(--border);grid-template-columns:150px minmax(0,1fr);gap:18px;padding:16px 18px;display:grid}.definition-list div:last-child{border-bottom:0}.gate-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;display:grid}.gate-item{background:var(--surface-subtle)}.gate-item strong{overflow-wrap:anywhere;font-family:var(--font-mono);font-size:.84rem;display:block}.footer{background:var(--ink);color:#fff;padding:34px 0}.footer-inner{justify-content:space-between;align-items:center;gap:24px;display:flex}.footer-logo{border-radius:var(--radius);width:34px;height:34px}.footer p{color:#b9c4d0;margin:8px 0 0}.footer-links{flex-wrap:wrap;gap:18px;display:flex}.footer-links a{color:#d7e5ff;font-weight:700}.simple-page{min-height:calc(100vh - 64px);padding-top:132px}.simple-page .panel{max-width:760px}.note-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.playground-body{background:#eef3f7;min-height:100vh;overflow:hidden}.playground-topbar{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:16px;height:58px;padding:0 18px;display:flex}.playground-top-actions{flex-wrap:nowrap;justify-content:flex-end}.playground-top-actions .btn{white-space:nowrap}.sample-select{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:min(260px,100%);min-height:38px;color:var(--text);font:inherit;flex:none;padding:0 12px;font-weight:700}.playground-top-actions .sample-select{width:180px}.playground-workspace{grid-template-columns:310px minmax(420px,1fr) 340px;gap:12px;height:calc(100vh - 58px);padding:12px;display:grid}.problem-pane,.editor-pane,.result-pane{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-direction:column;min-height:0;display:flex;overflow:hidden}.pane-header{border-bottom:1px solid var(--border);background:var(--surface-subtle);min-height:48px;padding:12px 14px}.pane-header strong{text-align:right}.problem-content{padding:18px;overflow:auto}.problem-content p{margin:0}.problem-meta{gap:10px;margin:18px 0 0;display:grid}.problem-meta div{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-subtle);padding:12px}.problem-meta dd{overflow-wrap:anywhere;font-family:var(--font-mono);margin:3px 0 0;font-size:.86rem;font-weight:800}.problem-notes{border-top:1px solid var(--border);background:var(--surface-subtle);margin-top:auto;padding:18px;font-size:.92rem}.problem-notes h2{margin-bottom:10px;font-size:1rem}.problem-notes ul{margin:0;padding-left:18px}.editor-pane{background:var(--code-panel)}.editor-pane .pane-header{color:var(--code-text);background:#172033;border-bottom-color:#283448}.editor-pane .pane-header span{color:#9fb3c8}.playground-editor{resize:none;background:var(--code-panel);width:100%;min-height:0;color:var(--code-text);font-family:var(--font-mono);border:0;outline:none;flex:1;padding:20px;font-size:.94rem;line-height:1.65}.editor-actions{background:#172033;border-top:1px solid #283448;min-height:58px;padding:10px 12px}.shortcut-hint{font-family:var(--font-mono);color:#9fb3c8;margin-left:auto;font-size:.8rem}.result-pane{background:var(--surface)}#pg-status[data-state=pass]{color:var(--green)}#pg-status[data-state=fail]{color:var(--red)}.test-list{gap:8px;padding:14px;display:grid}.test-row{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-subtle);justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.test-row span{color:var(--text-muted);font-weight:700}.output-panel{border-radius:var(--radius);background:var(--code-bg);color:var(--code-text);margin:0 14px;overflow:hidden}.output-topline{color:#c7d7ea;border-bottom:1px solid #e9f1fb29;padding:10px 14px;font-size:.82rem;font-weight:800}.output-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px}.playground-output{flex:1;min-height:0}.playground-output pre{height:100%;overflow:auto}.local-command{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-subtle);gap:8px;margin:14px;padding:12px;display:grid}.local-command code{overflow-wrap:anywhere}@media (width<=1120px){.official-grid,.split-section{grid-template-columns:1fr}.gate-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.playground-body{overflow:auto}.playground-workspace{grid-template-columns:1fr;height:auto;min-height:calc(100vh - 58px)}.problem-pane,.editor-pane,.result-pane{min-height:360px}.editor-pane{min-height:560px}}@media (width<=900px){.nav-links{background:var(--surface);border-bottom:1px solid var(--border);flex-direction:column;align-items:flex-start;gap:0;padding:14px 24px 22px;display:none;position:absolute;top:64px;left:0;right:0}.nav-links.open{display:flex}.nav-links a{width:100%;padding:12px 0}.nav-mobile-toggle{display:inline-flex}.status-grid,.task-grid,.note-grid{grid-template-columns:1fr}.status-grid div,.status-grid div:last-child{border-right:1px solid var(--border);border-bottom:1px solid var(--border)}h1{font-size:2.7rem}h2{font-size:1.65rem}}@media (width<=680px){.container,.nav-inner{padding-left:18px;padding-right:18px}.official-hero{padding-top:96px}.command-panel pre,.task-card pre,.terminal pre,.terminal code{white-space:pre-wrap;overflow-wrap:anywhere}.definition-list div{grid-template-columns:1fr;gap:4px}.gate-grid{grid-template-columns:1fr}.footer-inner,.playground-topbar,.playground-top-actions{flex-direction:column;align-items:stretch}.playground-top-actions{flex-wrap:wrap}.playground-topbar{height:auto;padding:12px}.playground-workspace{min-height:0}.sample-select,.playground-top-actions .btn{width:100%}.shortcut-hint{width:100%;margin-left:0}h1{font-size:2.35rem}.lead{font-size:1rem}}
