.character-section{border-top:1px solid #e4d9df;margin-top:26px;padding-top:22px}.character-section h3{font-size:20px;margin:0 0 7px}.character-section>p{font-size:14px;line-height:1.6;color:#796971}.character-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:10px;margin:17px 0}.character-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:112px;background:#fff9fb;border:2px solid #ece2e7;border-radius:15px;padding:10px;font:inherit;cursor:pointer;text-align:center}.character-choice img{width:72px;height:69px;object-fit:contain}.character-choice strong{font-size:13px}.character-choice small{font-size:10px;color:#82717a}.character-choice.active{border-color:#b75782;background:#f9e7ef}.character-choice.unavailable{opacity:.5;cursor:default}.character-choice:focus-visible{outline:3px solid #7b4865;outline-offset:3px}.character-owner-card{margin-top:25px}.character-form{padding:20px 0;border-bottom:1px solid #eee0e6}.character-form input,.character-form select{width:100%;border:1px solid #e3d1db;border-radius:10px;background:white;color:#48343e;min-height:43px;padding:10px;font-size:16px}.character-form label{font-size:13px;font-weight:650;display:grid;gap:8px}.character-form small{font-size:11px;font-weight:400;color:#7d6d75;line-height:1.5}.character-form .color-parts label{display:flex;align-items:center;gap:7px}.character-form input[type=checkbox]{width:17px;height:17px;min-height:17px;padding:0}.character-form input[type=file]{font-size:12px;max-width:100%}.character-owner-list{display:grid;gap:12px;margin:20px 0}.character-owner-row{display:flex;align-items:center;gap:14px;border:1px solid #eadce4;border-radius:14px;padding:14px}.character-owner-row>img{width:66px;height:65px;object-fit:contain}.character-owner-row>div:not(.character-row-actions){display:grid;gap:5px;flex:1;min-width:0}.character-owner-row small{font-size:11px;line-height:1.5;color:#7d6d75}.character-owner-row a{font-size:12px;color:#9b4470}.character-row-actions{display:flex;gap:6px;flex-wrap:wrap}.character-row-actions .secondary{font-size:11px;padding:9px 12px;min-height:36px}.character-save-status{padding-top:5px}@media(max-width:600px){.character-owner-row{flex-wrap:wrap}.character-row-actions{flex-basis:100%;justify-content:flex-end}.character-options{grid-template-columns:repeat(3,minmax(0,1fr))}.character-form .color-form-grid{grid-template-columns:1fr}}

.character-picker-summary{display:flex;align-items:center;gap:12px;margin:16px 0;flex-wrap:wrap}.character-selected-thumb{width:68px;height:68px;background:#f0eaff;border-radius:18px;padding:6px}.character-selected-thumb img{width:100%;height:100%;object-fit:contain}.character-picker-summary .secondary{background:#ffe4f2;border-color:#efc3df;min-width:140px}.character-picker-summary .text-button{min-height:44px;font-size:14px}.character-dialog{position:fixed;inset:0;margin:auto;width:min(740px,calc(100% - 28px));max-height:calc(100svh - 40px);padding:24px;background:#fff7fc;color:var(--ink);border:2px solid #efcce4;border-radius:28px;overflow:auto;box-shadow:0 20px 70px #4a25574d}.character-dialog::backdrop{background:#39234480;backdrop-filter:blur(3px)}.character-dialog-head{display:flex;gap:16px;align-items:center;justify-content:space-between}.character-dialog-head h2{font:800 28px/1.2 'Trebuchet MS',Arial,sans-serif;margin:0}.character-dialog-head p{font-size:14px;color:var(--muted);margin:8px 0 0}.character-dialog-head button{min-width:44px;min-height:44px;padding:5px;font-size:26px;background:#fff}.character-filters{display:grid;grid-template-columns:1fr 210px;gap:12px;position:sticky;top:-24px;background:#fff7fc;padding:20px 0 12px;z-index:2}.character-filters label,.character-owner-search{display:grid;gap:7px;font-size:14px;font-weight:700}.character-filters input,.character-filters select,.character-owner-search input{width:100%;min-height:46px;border:1px solid #e6cbe1;border-radius:14px;background:#fff;color:var(--ink);padding:10px 12px;font-size:16px}.character-options{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}.character-choice{min-height:150px;justify-content:flex-start;border-radius:20px;background:#fff;padding:12px 8px}.character-choice img{width:82px;height:82px}.character-choice strong{font-size:14px;overflow-wrap:anywhere}.character-choice small{font-size:12px}.character-choice.active{background:#ffe4f2;border-color:#b02f72}.character-empty{text-align:center;padding:28px 16px;font-size:16px;line-height:1.5}.character-owner-search{margin-top:20px}
@media(max-width:600px){.character-dialog{width:calc(100% - 16px);max-height:calc(100svh - 20px);border-radius:24px;padding:18px}.character-filters{grid-template-columns:1fr;gap:10px;top:-18px;padding-top:16px}.character-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.character-choice{min-height:146px}.character-choice img{width:70px;height:74px}.character-dialog-head h2{font-size:24px}.character-choice small{font-size:12px}}

.collection-choice{background:linear-gradient(145deg,#fff,#ffe8f4);border-color:#efd3e7}.collection-choice:nth-child(3n){background:linear-gradient(145deg,#fff,#eeebff)}.collection-choice:nth-child(3n+1){background:linear-gradient(145deg,#fff,#e4f8ef)}.collection-choice:hover{border-color:#c271a9;transform:translateY(-2px)}

.character-owner-toolbar{display:flex;justify-content:flex-end;margin:18px 0}.character-owner-filters{display:grid;grid-template-columns:1fr 1fr;gap:14px}.character-owner-filters label{display:grid;gap:8px;font-size:14px;font-weight:700}.character-owner-select-label{grid-column:1/-1}.character-owner-filters input,.character-owner-filters select{width:100%;min-height:46px;border:1px solid #e6cbe1;border-radius:14px;padding:10px 12px;background:white;color:var(--ink);font-size:16px}.character-owner-list{margin:12px 0}.character-form[hidden]{display:none}@media(max-width:600px){.character-owner-filters{grid-template-columns:1fr}.character-owner-toolbar button{width:100%}}
