* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; font-family: system-ui, sans-serif; background: #1b6fd6; color: #eee; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#panel { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; background: rgba(20, 24, 34, .94); padding: 12px; overflow-y: auto; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
#panel h1 { font-size: 18px; margin: 0; }
#panel h2 { font-size: 13px; margin: 8px 0 4px; text-transform: uppercase; opacity: .7; letter-spacing: .05em; }
.row { display: flex; gap: 6px; align-items: center; }
.row label { width: 60px; opacity: .8; }
.row input, .row select { flex: 1; min-width: 0; background: #0f1218; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 5px 6px; font-size: 13px; }
.row input[type=color] { padding: 0; height: 28px; }
.row input[type=number] { width: 60px; flex: none; }
button { background: #2f6fe0; color: #fff; border: 0; border-radius: 7px; padding: 7px 10px; cursor: pointer; font-weight: 700; font-size: 13px; }
button:hover { background: #3f80f5; }
button.warn { background: #b33; } button.ok { background: #2a9d4a; } button.sec { background: #444; }
.btns { display: flex; flex-wrap: wrap; gap: 6px; }
#help { position: fixed; left: 12px; bottom: 12px; background: rgba(0,0,0,.6); padding: 10px 12px; border-radius: 10px; font-size: 12px; line-height: 1.5; max-width: 420px; }
#status { position: fixed; left: 12px; top: 12px; background: rgba(0,0,0,.6); padding: 8px 12px; border-radius: 10px; font-size: 13px; }
#sel { border-top: 1px solid #333; padding-top: 8px; }
#sel.hidden { display: none; }
.xyz { display: grid; grid-template-columns: 60px 1fr 1fr 1fr; gap: 4px; align-items: center; }
.xyz input { width: 100%; min-width: 0; background: #0f1218; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 5px 4px; font-size: 13px; }
.xyz span { opacity: .8; }
#list { max-height: 160px; overflow-y: auto; border: 1px solid #333; border-radius: 6px; font-size: 12px; }
#list div { padding: 3px 6px; cursor: pointer; display: flex; justify-content: space-between; }
#list div:hover { background: #2a3140; } #list div.sel { background: #2f6fe0; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }
