* { box-sizing: border-box; }
html, body, main { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #fff; }
body { color: #141622; font: 16px/1.45 system-ui, sans-serif; overscroll-behavior: none; }
#surface { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: 0; background: #fff; cursor: none; touch-action: none; }
.on-focus:not(:focus) { position: fixed; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.on-focus:focus { position: fixed; top: max(1rem,env(safe-area-inset-top)); left: max(1rem,env(safe-area-inset-left)); }
dialog { width: min(94vw, 36rem); max-height: 88dvh; border: 1px solid #d5d9e3; border-radius: 16px; padding: 0; color: #141622; background: #f9f9fb; }
dialog::backdrop { background: #1c20366e; }
form { padding: clamp(1rem,4vw,2rem); }
header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
h1 { margin: 0; font-size: 1.15rem; letter-spacing: .16em; }
h2 { margin: 0 0 .45rem; font-size: 1rem; }
section { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid #d5d9e3; }
label { min-height: 2.45rem; display: flex; align-items: center; gap: .65rem; }
label select, label input[type=range] { margin-left: auto; max-width: 60%; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; }
button, select { font: inherit; background: #fff; color: inherit; min-height: 2.55rem; padding: .35rem .65rem; border-radius: 7px; border: 1px solid #9399af; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #3545b3; outline-offset: 3px; }
p { margin: .4rem 0 .65rem; color: #43475a; }
.actions { display: flex; gap: .45rem; flex-wrap: wrap; }
output { display: block; min-height: 1.45rem; }
