html, body.animalCreator { height: 100%; margin: 0; }
.animalCreator { display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
.animalCreator [hidden] { display: none !important; }
.acActions button:disabled { opacity: .45; cursor: not-allowed; }
.acHeader { display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.acBrand { font-size: 21px; font-weight: 800; color: var(--ink); text-decoration: none; }
.acDivider { height: 22px; width: 1px; background: var(--line); }
.acHeader h1 { font-size: 17px; margin: 0; }
.acBack { margin-left: auto; }
.acMain { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.acViewport { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 20px; }
.acModel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.acModel label, .acSaved { font-size: 12px; color: var(--muted); }
.acModel select { max-width: 100%; font: inherit; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.acSaved { margin-left: auto; }
.acViewport .stageWrap { flex: 1; width: 100%; max-width: none; min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #eceae6; }
.acViewport #stage { width: 100% !important; height: 100% !important; max-width: none; border: 0; border-radius: 0; display: block; }
.acActions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.acNotice { color: var(--muted); min-height: 20px; font-size: 12px; margin: 8px 0 0; }
.acPanel { overflow-y: auto; background: var(--card); border-left: 1px solid var(--line); padding: 22px; }
.acPanel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.acPanel legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.acPanel h2 { font-size: 14px; margin: 0 0 18px; }
.acPanel section + section { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.acControl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 18px; font-size: 12px; }
.acControl output { color: var(--muted); font-variant-numeric: tabular-nums; }
.acControl input[type=range], .acControl select { grid-column: 1 / -1; width: 100%; min-width: 0; margin: 0; accent-color: var(--accent); }
.acControl select { padding: 7px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.acColors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.acColor { display: flex; gap: 8px; align-items: center; font-size: 12px; min-width: 0; }
.acColor input { width: 30px; height: 30px; flex: 0 0 30px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; }
.acReference { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; font-size: 12px; }
.acReference summary { cursor: pointer; font-weight: 600; }
.acReference img { display: block; width: 100%; border-radius: 10px; margin: 12px 0; }
.acGate { padding: 14px; margin-bottom: 22px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.acGate p { color: var(--muted); line-height: 1.5; }
.acPanel fieldset:disabled { opacity: .55; }
@media (max-width: 760px) {
 html, body.animalCreator { height: auto; min-height: 100%; }
 .acHeader { padding: 12px; gap: 10px; flex-wrap: wrap; }
 .acHeader h1 { font-size: 15px; }
 .acBrand { font-size: 18px; }
 .acMain { display: block; }
 .acViewport { padding: 12px; }
 .acViewport .stageWrap { height: 48vh; min-height: 300px; flex: none; }
 .acPanel { border-left: 0; border-top: 1px solid var(--line); padding: 20px; }
 .acSaved { width: 100%; margin-left: 0; }
 .acModel select { width: 100%; }
}
