html, body { margin: 0; height: 100%; overflow: hidden; background: #00ff00; }
body { font: 13px/1.35 system-ui, sans-serif; color: #e8e4d8; }
body.idle { cursor: none; }
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }

.panel {
  position: fixed; top: 12px; left: 12px; width: 290px; padding: 12px 14px;
  background: rgba(14, 16, 20, 0.92); border: 1px solid #5a4a26; border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: opacity .35s;
}
.panel.hidden, body.idle .panel { opacity: 0; pointer-events: none; }
.title { font-weight: 700; letter-spacing: .08em; color: #e9c46a; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.status { font-weight: 500; letter-spacing: 0; color: #9fb3c8; font-size: 12px; text-align: right; }
.status.ok { color: #8fd694; } .status.warn { color: #f4a259; } .status.err { color: #ef6f6c; }
label { display: grid; grid-template-columns: 105px 1fr; align-items: center; gap: 8px; margin: 5px 0; }
label.check { grid-template-columns: auto 1fr; justify-content: start; }
select, input[type=range] { width: 100%; min-width: 0; }
select { background: #1d2128; color: #e8e4d8; border: 1px solid #3a3f48; border-radius: 4px; padding: 3px; }
input[type=range] { accent-color: #e9c46a; }
.buttons { display: flex; gap: 6px; margin-top: 8px; }
button { flex: 1; background: #2a2f38; color: #e8e4d8; border: 1px solid #4a505c; border-radius: 4px; padding: 5px 4px; cursor: pointer; font-size: 12px; }
button:hover { background: #3a404c; }
.hint { margin-top: 8px; color: #8a8f99; font-size: 11px; }

.preview { position: fixed; right: 12px; bottom: 12px; width: 384px; height: 216px; border: 1px solid #5a4a26; border-radius: 6px; background: #111; }
.preview.hidden { display: none; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: rgba(14,16,20,.92); border: 1px solid #5a4a26; padding: 8px 14px; border-radius: 6px; color: #e9c46a; font-weight: 600; transition: opacity .3s; }
.toast.hidden { opacity: 0; pointer-events: none; }
html.transparent, html.transparent body { background: transparent; }
