:root{--brand:#2563eb;--brand2:#0891b2}
.tool .sel{font:inherit;color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:10px;padding:.5rem .7rem;min-height:40px;max-width:100%}
.live{white-space:pre-wrap;font:inherit;font-size:.92rem;color:var(--muted);max-height:9rem;overflow:auto;margin:.6rem 0 0;padding:0;background:none}
.live:empty{display:none}
.live:not(:empty){padding:.6rem .8rem;border:1px dashed var(--line);border-radius:10px}
.okline{margin:.2rem 0 .7rem;color:var(--ok);font-weight:600}
.ed{display:flex;flex-direction:column;gap:.6rem;text-align:start}
.edtabs .seg{margin:0}
.edt{width:100%;min-height:340px;resize:vertical;font:inherit;font-size:1rem;line-height:1.6;color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:12px;padding:.9rem 1rem}
.edt:focus{outline:2px solid var(--brand);outline-offset:1px}
.edinfo{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.4rem;font-size:.85rem;color:var(--muted)}
.edbtns{display:flex;flex-wrap:wrap;gap:.5rem}
.edbtns .btn{flex:1 1 110px}
.rec{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;margin:.6rem 0 1rem}
.rect{font-size:1.8rem;font-variant-numeric:tabular-nums}
.recb.on{background:#dc2626;border-color:#dc2626;animation:pulse 1.4s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 8px #dc262633}}
