:root{--accent:#0073aa;--ink:#111;--muted:#555;--line:#ccd0d4;--err:#b32d2e;--bg:#f4f5f7}
*{box-sizing:border-box}
body{margin:0;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.top{padding:1.25rem 1.5rem .5rem;max-width:1500px;margin:0 auto}
.top h1{margin:0;font-size:1.6rem}
.lead{margin:.25rem 0;color:var(--muted)}
.demo{display:inline-block;margin:.5rem 0 0;padding:.4rem .75rem;background:#fff8e5;border-left:4px solid #dba617}
.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.25rem;padding:1rem 1.5rem 2rem;max-width:1500px;margin:0 auto}
.panel{background:#fff;border:1px solid var(--line);border-radius:6px;padding:1.25rem;min-width:0}
.field{margin-bottom:1.25rem}
label,.label{display:block;font-weight:600;margin-bottom:.35rem}
.req{color:var(--err)}
.req-note{margin:0 0 1rem;font-size:.875rem;color:var(--muted)}
.req-note span{color:var(--err)}
input[type=text]{width:100%;font:inherit;padding:.55rem .7rem;border:1px solid #8c8f94;border-radius:4px;color:var(--ink)}
.hint{margin:.35rem 0 0;font-size:.875rem;color:var(--muted)}
.error{margin:.35rem 0 0;color:var(--err);font-weight:600;font-size:.9rem}
[aria-invalid=true]{border-color:var(--err)!important;box-shadow:0 0 0 1px var(--err)}
.form-error{margin-bottom:1rem;padding:.6rem .8rem;border-left:4px solid var(--err);background:#fcf0f1;color:var(--err);font-weight:600}
.status:empty{display:none}
.status{margin-bottom:1rem;padding:.6rem .8rem;border-left:4px solid var(--accent);background:#f0f6fc}
.status.ok{border-color:#00a32a;background:#edfaef}
.toolbar{display:flex;flex-wrap:wrap;gap:.25rem;padding:.35rem;border:1px solid #8c8f94;border-bottom:0;border-radius:4px 4px 0 0;background:#f6f7f7}
.toolbar button,.devices button{font:inherit;font-size:.9rem;min-height:36px;padding:.25rem .6rem;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--ink);cursor:pointer}
.toolbar button:hover,.devices button:hover{border-color:var(--line);background:#fff}
.toolbar button[aria-pressed=true],.devices button[aria-pressed=true]{background:#fff;border-color:var(--accent);color:var(--accent)}
.sep{width:1px;background:var(--line);margin:.2rem .2rem}
.editor{min-height:320px;max-height:60vh;overflow:auto;padding:.75rem 1rem;border:1px solid #8c8f94;border-radius:0 0 4px 4px;background:#fff}
.editor h2{font-size:1.3rem;margin:.8em 0 .4em}.editor h3{font-size:1.1rem;margin:.8em 0 .4em}
.editor p{margin:0 0 .75em}.editor a{color:var(--accent)}
.editor .has-text-align-center{text-align:center}
.editor .announcement-accent{color:#ff0101}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.editor:focus{outline:2px solid var(--accent);outline-offset:-1px}
.actions{display:flex;justify-content:flex-end}
.primary{font:inherit;font-weight:600;padding:.65rem 1.4rem;border:0;border-radius:4px;background:var(--accent);color:#fff;cursor:pointer}
.primary:hover{background:#005a87}.primary:disabled{opacity:.6;cursor:wait}
.support{margin:1.25rem 0 0;font-size:.9rem;color:var(--muted)}
.support a{color:var(--accent)}
.preview-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.75rem}
.preview-head h2{margin:0;font-size:1.1rem}
.devices{display:flex;gap:.25rem}
.frame-wrap{border:1px solid var(--line);border-radius:4px;background:#e9ebee;overflow:hidden}
.frame-wrap iframe{display:block;width:100%;height:75vh;min-height:480px;border:0;background:#fff;margin:0 auto}
.frame-wrap.mobile iframe{width:390px;max-width:100%}
@media (max-width:960px){.layout{grid-template-columns:1fr;padding:1rem}.top{padding:1rem 1rem .25rem}.frame-wrap iframe{height:70vh}}
@media (max-width:480px){.panel{padding:1rem}.primary{width:100%}}
