#heads-open { position:fixed;left:16px;bottom:16px;z-index:20;background:#126c37;color:white;border:2px solid #df3544;border-radius:9px;padding:12px 18px;font:800 14px 'Fira Sans Condensed',sans-serif;cursor:pointer;box-shadow:0 3px 12px #0008; }
#heads-open[hidden] {display:none}
#heads-dialog {box-sizing:border-box;width:min(900px,94vw);max-width:none;max-height:86dvh;overflow:auto;touch-action:pan-y;color:#fff;background:#092f20;border:3px solid #d93e47;border-radius:16px;padding:24px;font:18px 'Fira Sans Condensed',sans-serif;box-shadow:0 12px 80px #000b}
#heads-dialog::backdrop {background:#000b}
#heads-dialog * {box-sizing:border-box}
#heads-dialog .heads-heading {display:flex;gap:12px;justify-content:space-between;align-items:center}
#heads-dialog h2 {font-size:24px;margin:0}
#heads-dialog h3 {margin-bottom:10px}
#heads-dialog button {background:#c83343;color:#fff;border:1px solid #ffb4ba;border-radius:7px;padding:11px 14px;font:800 16px inherit;cursor:pointer}
#heads-dialog button:disabled {opacity:.5;cursor:wait}
#heads-dialog select,#heads-dialog input {color:#fff;background:#114b32;border:1px solid #9cc9a7;border-radius:6px;padding:10px;font:inherit;max-width:100%;touch-action:auto}
#heads-dialog form {display:grid;gap:10px}
#heads-dialog form p {font-size:15px;margin:3px 0;line-height:1.4}
#heads-dialog [role=status] {min-height:2.5em;color:#fff}
#heads-dialog .heads-choice {display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;margin-bottom:16px}
#heads-dialog .head-preview {grid-column:1 / -1;height:160px;width:100%;object-fit:contain;background:repeating-conic-gradient(#315343 0 25%,#3d6653 0 50%) 0/20px 20px;border-radius:8px;padding:8px}
#heads-dialog details {border:1px solid #72a283;padding:10px;border-radius:8px}
#heads-dialog label {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}
#heads-dialog input[type=range] {width:65%}
@media(max-width:600px){#heads-open{left:8px;bottom:8px;font-size:11px;padding:9px}#heads-dialog{padding:15px;font-size:16px}#heads-dialog h2{font-size:20px}#heads-dialog .heads-choice{grid-template-columns:1fr}#heads-dialog .heads-heading button{font-size:13px;padding:8px}}
#heads-open[data-scene=select] {left:auto;right:12px;bottom:auto;top:48px}
@media(max-width:600px){#heads-open[data-scene=select]{right:8px;top:52px;font-size:10px;padding:7px}}
#heads-open[data-scene=select][data-portrait=true] {box-sizing:border-box;left:var(--heads-select-left,8px);right:auto;top:var(--heads-select-top,90px);bottom:auto;width:var(--heads-select-width,112px);min-width:44px;min-height:44px;padding:7px 8px;font-size:11px;line-height:1.2;white-space:normal}
/* Editor θέσης κεφαλιού: πλήρης οθόνη, μόνο ο editor */
#heads-dialog.heads-full{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;inset:0;border-radius:0;border:0;padding:14px 18px}
#heads-dialog.heads-full > :not(.heads-editor):not(.heads-heading){display:none}
#heads-dialog.heads-full .heads-editor{border:0}
