/* character maker inside the profile dialog */
.makerDialog { width: min(980px, calc(100% - 24px)) !important; }
.amMaker { display: grid; grid-template-columns: minmax(220px, 330px) minmax(0, 1fr); gap: 22px; align-items: start; }
.amStage { position: sticky; top: 0; display: grid; gap: 12px; justify-items: center; padding: 16px; background: #f6ead6; border: 2px solid #4d3828; border-radius: 16px; box-shadow: inset 0 0 0 4px #fbf3e4, 0 5px 0 #b48f63; }
.amPortrait { width: 100%; max-width: 300px; aspect-ratio: 1; display: block; }
.amTools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.amSmall { padding: 8px 14px; border: 2px solid #4d3828; border-radius: 10px; background: #fff8ea; color: #3b2a20; font: 800 13px Nunito, sans-serif; box-shadow: 0 3px 0 #4d3828; cursor: pointer; }
.amSmall:hover { background: #ffe9b8; }
.amSmall:active { transform: translateY(2px); box-shadow: 0 1px 0 #4d3828; }
.amSide { min-width: 0; }
.amTabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.amTab { padding: 8px 15px; border: 2px solid #4d3828; border-radius: 999px; background: #fff8ea; color: #3b2a20; font: 900 13px Nunito, sans-serif; cursor: pointer; }
.amTab.isOn { background: #ffcf6b; box-shadow: 0 3px 0 #4d3828; }
.amPanel { max-height: min(56vh, 520px); overflow-y: auto; padding: 2px 6px 6px 2px; }
.amGroup + .amGroup { margin-top: 16px; }
.amGroup h3 { margin: 0 0 8px; font: 900 12px Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8b6a47; }
.amOptions { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.amOption { display: grid; gap: 4px; justify-items: center; padding: 6px 4px 7px; border: 2px solid #e1cba6; border-radius: 12px; background: #fffaf0; cursor: pointer; color: #5b4532; font: 800 11.5px Nunito, sans-serif; }
.amOption img { width: 100%; aspect-ratio: 1; border-radius: 9px; background: #f3e6cf; object-fit: cover; }
.amOption:hover { border-color: #b48f63; }
.amOption.isOn { border-color: #4d3828; background: #ffe7ad; box-shadow: 0 3px 0 #4d3828; }
.amSwatches { display: flex; flex-wrap: wrap; gap: 8px; }
.amSwatch { width: 38px; height: 38px; border: 2px solid #4d3828; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35); }
.amSwatch.isOn { outline: 3px solid #e89243; outline-offset: 2px; }
@media (max-width: 720px) { .amMaker { grid-template-columns: 1fr; } .amStage { position: static; } .amPortrait { max-width: 220px; } .amPanel { max-height: none; } }
/* v8 Stardew-style maker: arrow pickers and color sliders */
.sdSide { display: grid; gap: 16px; align-content: start; }
.sdLoading { margin: 8px 0; color: #8b6a47; font: 800 14px Nunito, sans-serif; }
.sdPickers { display: grid; gap: 8px; }
.sdPick { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: 6px; background: #fffaf0; border: 2px solid #e1cba6; border-radius: 12px; }
.sdArrow { height: 40px; border: 2px solid #4d3828; border-radius: 10px; background: #ffcf6b; color: #3b2a20; font: 900 15px Nunito, sans-serif; box-shadow: 0 3px 0 #4d3828; cursor: pointer; }
.sdArrow:hover { background: #ffe19b; }
.sdArrow:active { transform: translateY(2px); box-shadow: 0 1px 0 #4d3828; }
.sdPickMid { display: grid; justify-items: center; line-height: 1.15; min-width: 0; }
.sdPickLabel { font: 900 11px Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8b6a47; }
.sdPickValue { font: 900 16px Nunito, sans-serif; color: #3b2a20; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sdPickCount { font: 800 11px Nunito, sans-serif; color: #b0916d; }
.sdSliders { display: grid; gap: 6px; }
.sdGroup { margin: 8px 0 0; font: 900 12px Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8b6a47; }
.sdSlide { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; }
.sdSlide:not(:has(.sdSlideLabel)) { grid-template-columns: 1fr; }
.sdSlideLabel { font: 800 12.5px Nunito, sans-serif; color: #5b4532; }
.sdRange { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; border: 2px solid #4d3828; border-radius: 999px; outline: none; cursor: pointer; }
.sdRange:focus-visible { box-shadow: 0 0 0 3px #e89243; }
.sdRange::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff8ea; border: 3px solid #4d3828; box-shadow: 0 2px 0 #4d3828; }
.sdRange::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff8ea; border: 3px solid #4d3828; box-shadow: 0 2px 0 #4d3828; }
@media (max-width: 720px) { .sdSlide { grid-template-columns: 72px 1fr; } }
