:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #141917; color: #f0eee7; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; justify-content: space-between; padding: 1rem max(1rem, calc((100% - 1280px) / 2)); border-bottom: 1px solid #37443d; }
a { color: #c0ddcb; }
main { max-width: 1312px; margin: auto; padding: 1.25rem 1rem 3rem; }
h1 { margin: 0 0 1rem; font-size: clamp(1.7rem, 4vw, 2.7rem); }
h2 { font-size: 1.1rem; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
select, button, textarea { font: inherit; color: inherit; background: #252f2a; border: 1px solid #65786e; border-radius: .35rem; padding: .5rem .7rem; }
select { margin-left: .4rem; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button[aria-pressed="true"] { background: #c0ddcb; color: #142019; }
#status, .reference, .feedback label { color: #c3cdc6; }
.views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.views section, .feedback { background: #1d2521; border: 1px solid #37443d; border-radius: .6rem; padding: .75rem; }
canvas { display: block; width: 100%; height: clamp(260px, 39vh, 440px); margin-top: .5rem; border-radius: .3rem; background: #adc0b5; }
.reference { display: grid; gap: .4rem; margin-top: .55rem; font-size: .86rem; }
.reference img { display: block; width: 100%; height: 235px; object-fit: contain; background: #f8f7f3; border-radius: .3rem; }
.reference .face-crop { height: 235px; overflow: hidden; background: #f8f7f3; border-radius: .3rem; }
.reference .face-crop img { width: min(410px, 100%); height: auto; margin: auto; border-radius: 0; }
.feedback { margin-top: 1rem; }
.feedback label { display: block; margin-top: .5rem; }
textarea { display: block; width: 100%; margin: .5rem 0; resize: vertical; }
@media (max-width: 660px) { .views { grid-template-columns: 1fr; } }
.personality-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 18px;margin:14px 0}
.personality-grid label{display:grid;gap:4px}
.personality-grid input[type=range]{width:100%;accent-color:#d6bb7e}
.personality-grid output{font-variant-numeric:tabular-nums;font-size:.85em}
#personality [role=status]{margin-left:12px}
