.ed{flex-direction:column;margin:20px 0 0;background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r);box-shadow:var(--shadow-2);overflow:hidden}.ed,.ed-bar{display:flex}.ed-bar{align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;background:var(--bg-2);border-bottom:1px solid var(--line)}.ed-barlab{font-family:var(--font-mono),monospace;font-size:11.5px;color:var(--muted)}.ed-baracts{display:flex;gap:6px;margin-left:auto}.ed-presel{position:relative;display:inline-flex;min-width:0}.ed-presel select{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;font-family:inherit;font-size:13.5px;font-weight:500;color:var(--ink);background:var(--surface);border:1px solid var(--line-2);border-radius:8px;padding:7px 34px 7px 11px;cursor:pointer;transition:border-color .2s var(--ease)}.ed-presel select:hover:not(:disabled){border-color:var(--accent)}.ed-presel select:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-color:var(--accent)}.ed-presel select:disabled{opacity:.6;cursor:progress}.ed-presel.is-loading select{border-color:var(--accent);cursor:progress}.ed-caret{position:absolute;right:11px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--accent);font-size:11px;display:flex;align-items:center}.ed-spin{width:12px;height:12px;border-radius:50%;display:block;border:2px solid var(--accent-line);border-top-color:var(--accent);animation:edspin .7s linear infinite}@keyframes edspin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){.ed-spin{animation:bfade 1.3s ease-in-out infinite}}.ed-copy,.ed-fold,.ed-goto{font-family:var(--font-mono),monospace;font-size:11px;min-height:24px;color:var(--accent);background:var(--surface);border:1px solid var(--line-2);border-radius:6px;padding:4px 9px;cursor:pointer;transition:border-color .2s var(--ease)}.ed-copy:hover,.ed-fold:hover,.ed-goto:hover{border-color:var(--accent)}.ed-copy:focus-visible,.ed-fold:focus-visible,.ed-goto:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.ed-panes{display:grid;grid-template-columns:minmax(320px,42%) 1fr;min-height:0}.ed-source{min-height:0;border-right:1px solid var(--line)}.ed-source,.ed-stage{display:flex;flex-direction:column;min-width:0}.ed-stage{background:var(--bg-2)}.ed-panehead{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:7px 12px;border-bottom:1px solid var(--line)}.ed-file{font-family:var(--font-mono),monospace;font-size:12px;color:var(--ink-2)}.ed-lines{font-family:var(--font-mono),monospace;font-size:11px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ed-kbd,.ed-lines{color:var(--muted)}.ed-kbd{font-family:var(--font-mono),monospace;font-size:10.5px;margin-left:auto}.ed-cm{flex:1 1;min-height:0;overflow:hidden;background:var(--surface)}.ed-cm .cm-editor{height:100%}.ed-cm:has(.cm-editor.cm-focused){box-shadow:inset 0 0 0 2px var(--accent)}.ed-stage .sp{border:0;border-radius:0;box-shadow:none;background:transparent}.ed-stage .sp-bar{background:var(--bg-2)}.ed-problem,.ed-stage .sp-bar{border-top:1px solid var(--line)}.ed-problem{background:var(--bad-bg)}.ed-probhead{display:flex;align-items:center;gap:10px;padding:8px 12px 0}.ed-probtitle{font-family:var(--font-mono),monospace;font-size:11.5px;font-weight:600;color:var(--bad)}.ed-goto{margin-left:auto}.ed-probbody{margin:0;padding:6px 12px 10px;line-height:1.6;color:var(--bad);white-space:pre-wrap;word-break:break-word;max-height:15rem;overflow:auto}.ed-probbody,.ed-status{font-family:var(--font-mono),monospace;font-size:11.5px}.ed-status{display:flex;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ed-dot{width:7px;height:7px;border-radius:50%;flex:none;background:currentColor}.ed-status.ok{color:var(--ok);background:var(--ok-bg)}.ed-status.bad{color:var(--bad);background:var(--bad-bg)}.ed-legend{margin:14px 0 80px;font-size:13px;line-height:1.6;color:var(--muted);max-width:66ch}.ed-legend a{color:var(--accent);font-weight:600}.ed-legend a:hover{text-decoration:underline}.ed-legend code{font-family:var(--font-mono),monospace;font-size:12px;color:var(--ink-2);background:var(--bg-2);border:1px solid var(--line-2);border-radius:5px;padding:1px 5px}.ed-stage .sp{display:flex;flex-direction:column;flex:1 1;min-height:0}.ed-stage .sp-stage{aspect-ratio:auto;flex:1 1;min-height:0;background:var(--field)}.sp-step{width:26px;height:26px;min-width:24px;flex:none;border-radius:6px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);font-size:13px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}.sp-step:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.sp-step:disabled{opacity:.4;cursor:default}.sp-step:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.edpage .phead{padding-top:26px}.edpage .phead h1{font-size:clamp(1.9rem,3.6vw,2.7rem);margin-bottom:4px}.edpage .phead p{font-size:1rem}@media (min-width:901px){.ed{height:clamp(480px,calc(100vh - 250px),760px)}.ed-panes{flex:1 1;min-height:0}}@media (max-width:900px){.ed-panes{grid-template-columns:1fr}.ed-source{order:2;border-right:0;border-top:1px solid var(--line)}.ed-stage{order:1}.ed-cm{height:46vh}.ed-stage .sp-stage{flex:none;aspect-ratio:var(--sp-ar,16/9)}}@media (max-width:640px){.ed-stage .sp-bar{flex-wrap:wrap}.ed-stage .sp-scrub{flex:1 0 100%;order:2}.ed-bar{gap:8px}.ed-presel{flex:1 1}.ed-baracts{margin-left:0;width:100%}.ed-kbd{display:none}}