.pc-characters{box-sizing:border-box;width:min(1150px,96vw);max-width:96vw;height:min(850px,94dvh);max-height:94dvh;padding:18px;background:#23190f url('assets/pc-v124/ui/panel.webp') center/cover;color:#f1e0bc;border:12px solid #a6834b;border-image:url('assets/pc-v124/ui/frame.webp') 32 fill/12px;font:16px/1.35 Georgia;box-shadow:0 15px 70px #000}.pc-characters::backdrop{background:#070605dd}.pc-characters[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px}.pc-characters header,.pc-characters footer,.pc-character-steps{display:flex;align-items:center;justify-content:space-between;gap:10px}.pc-characters h2{margin:0;color:#f0d6a0}.pc-characters button,.pc-character-launch button{font:15px Georgia;background:#402b17;border:1px solid #af884e;color:#f1dfb4;padding:9px 14px;min-height:42px;cursor:pointer}.pc-characters button:disabled{opacity:.5;cursor:default}.pc-characters button.selected{outline:2px solid #f3cd79;outline-offset:2px;background:#624921}.pc-characters button:focus-visible,.pc-characters select:focus-visible,.pc-characters input:focus-visible{outline:2px solid #ffe3a0;outline-offset:3px}.pc-character-steps span{flex:1;text-align:center;padding:7px;border-bottom:2px solid #594327;color:#b5a081}.pc-character-steps span.active{border-color:#e2bd6e;color:#f6dea8}.pc-character-content{min-height:0;overflow:auto}.pc-character-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;height:100%;min-height:0;padding:4px;box-sizing:border-box}.pc-character-choice-grid button{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;gap:8px}.pc-character-choice-grid img{width:100%;height:calc(100% - 105px);min-height:100px;object-fit:contain;object-position:center bottom}.pc-character-choice-grid strong{font-size:22px;color:#f0d8a1}.pc-character-choice-grid p{font-size:14px;margin:0}.pc-character-appearance{display:grid;grid-template-columns:minmax(180px,1fr) minmax(280px,1fr);gap:18px;height:100%;min-height:0}.pc-character-appearance>img{width:100%;height:100%;min-height:0;object-fit:contain}.pc-character-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-content:center}.pc-characters label{display:flex;flex-direction:column;gap:6px;color:#ddc79d}.pc-characters input,.pc-characters select{padding:10px;background:#120e0a;border:1px solid #a17d43;color:#f1e0bd;font:16px Georgia;min-width:0}.pc-character-fields small{grid-column:1/-1;color:#c3b08e;font-size:13px}.pc-character-error{color:#ffd0a4}.pc-character-launch{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
@media(max-width:700px){.pc-characters{width:calc(100vw - 10px);max-width:calc(100vw - 10px);height:calc(100dvh - 10px);max-height:calc(100dvh - 10px);padding:calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));border-width:6px;font-size:14px;gap:8px}.pc-characters h2{font-size:20px}.pc-character-steps{gap:3px}.pc-character-steps span{font-size:11px;padding:6px 2px}.pc-character-choice-grid{gap:6px}.pc-character-choice-grid button{padding:7px 3px;gap:5px}.pc-character-choice-grid img{height:calc(100% - 130px);min-height:70px}.pc-character-choice-grid strong{font-size:15px}.pc-character-choice-grid p{font-size:11px}.pc-character-appearance{grid-template-columns:minmax(70px,.65fr) minmax(170px,1.35fr);gap:8px}.pc-character-fields{gap:7px}.pc-character-fields small{font-size:11px}.pc-characters label{font-size:12px}.pc-characters select{padding:7px 3px;max-width:100%;font-size:16px}.pc-characters button{padding:7px;font-size:13px;min-height:44px}}
.pc-character-presets{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.pc-character-draft-portrait{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;background:#0f0d0a88;border:1px solid #8e6b3e}.pc-character-draft-portrait svg{width:100%;height:100%;max-height:100%;object-fit:contain}.pc-character-preset-choices{display:flex;flex-direction:column;gap:10px;min-height:0}.pc-character-preset-choices h3{margin:0;font-size:20px}.pc-character-preset-choices>small{font-size:12px}.pc-character-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;flex:1;min-height:0;padding:3px}.pc-character-preset-grid button{display:flex;flex-direction:column;align-items:center;min-height:0;min-width:0;padding:7px;gap:5px}.pc-character-preset-grid img{width:100%;min-height:0;flex:1;object-fit:contain}.pc-character-preset-grid strong{font-size:13px;flex:none}.pc-character-presets small{color:#cdbb99}
@media(max-width:700px) and (min-height:600px){.pc-character-presets{grid-template-columns:1fr;grid-template-rows:minmax(100px,.9fr) minmax(190px,1.1fr);gap:9px}.pc-character-preset-choices{gap:5px}.pc-character-preset-grid{gap:6px}.pc-character-preset-grid strong{font-size:10px}.pc-character-preset-grid button{padding:4px;min-height:0}.pc-character-preset-choices h3{font-size:16px}.pc-character-preset-choices>small{font-size:10px}}
@media(max-height:599px){.pc-character-presets{grid-template-columns:minmax(120px,.8fr) minmax(250px,1.2fr)}.pc-character-preset-grid{gap:6px}.pc-character-preset-grid strong{font-size:10px}.pc-character-preset-grid button{padding:3px;min-height:0}.pc-character-preset-choices h3{font-size:15px}.pc-character-preset-choices>small{font-size:10px}}
.pc-characters .pc-character-content:has(.pc-character-presets){display:flex;min-height:0}.pc-characters .pc-character-presets{height:100%!important;width:100%;flex:1;min-height:0;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important}.pc-characters .pc-character-draft-portrait{height:100%;min-height:0}.pc-characters .pc-character-preset-choices{min-height:0;height:100%}.pc-characters .pc-character-draft-portrait svg{height:100%!important;width:100%!important;min-height:0!important}.pc-characters .pc-character-preset-grid img{min-height:0!important;max-height:none!important;height:0;flex:1}
@media(max-width:700px) and (min-height:600px){.pc-characters .pc-character-presets{grid-template-columns:1fr!important;grid-template-rows:minmax(0,.9fr) minmax(0,1.1fr)!important}}
body.pc-redesign dialog.pc-characters .pc-character-presets{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;height:100%!important}
@media(max-width:700px) and (min-height:600px){body.pc-redesign dialog.pc-characters .pc-character-presets{grid-template-columns:1fr!important;grid-template-rows:minmax(0,.9fr) minmax(0,1.1fr)!important}}
