:root { color-scheme: dark; font: 15px system-ui, sans-serif; color: #eef3f2; background: #111715; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { max-width: 1280px; margin: 0 auto; padding: 28px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
h1 { margin: 0; font-size: 23px; }
header span, small { color: #b3c3bb; }
nav { margin-bottom: 18px; font-size: 14px; }
main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }
.preview, .controls { border: 1px solid #35433b; border-radius: 12px; overflow: hidden; background: #1b2420; }
.preview { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #080c0a; }
.preview p { color: #aab9b1; text-align: center; padding: 12px; }
canvas { width: 100%; height: 100%; object-fit: contain; }
.controls, form { display: grid; gap: 10px; }
.controls { padding: 18px; }
form { padding-bottom: 16px; border-bottom: 1px solid #35433b; margin-bottom: 6px; }
.profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profile-actions button { font-size: 13px; }
label { font-weight: 650; }
button, input, select { min-width: 0; font: inherit; padding: 8px 10px; border-radius: 6px; border: 1px solid #52655b; background: #121a16; color: inherit; }
button { background: #9fe7b9; color: #0e2516; font-weight: 650; border: none; cursor: pointer; }
button.secondary { background: #34463c; color: inherit; }
button:disabled { opacity: .5; cursor: default; }
a { color: #a7efc0; }
#status { margin: 4px 0; color: #b4d3c0; overflow-wrap: anywhere; }
#status.error { color: #ffc0aa; }
@media (max-width: 760px) { main { grid-template-columns: 1fr; } body { padding: 16px; } }
