/* Private profile editor UI: readable controls independent of player colors/art. */
#profile-layout-row,.profile-wish-popup,.profile-wish-confirm,.profile-custom-dialog,.profile-showcase-dialog {
 --profile-ui-bg:#f3f7fc;--profile-ui-card:#fff;--profile-ui-field:#fff;--profile-ui-ink:#172d48;
 --profile-ui-muted:#415875;--profile-ui-border:#849bb7;--profile-ui-accent:#17647e;--profile-ui-button:#305e91;
}
body.dark-mode :is(#profile-layout-row,.profile-wish-popup,.profile-wish-confirm,.profile-custom-dialog,.profile-showcase-dialog),
html[data-theme="dark"] :is(#profile-layout-row,.profile-wish-popup,.profile-wish-confirm,.profile-custom-dialog,.profile-showcase-dialog),
html[data-bs-theme="dark"] :is(#profile-layout-row,.profile-wish-popup,.profile-wish-confirm,.profile-custom-dialog,.profile-showcase-dialog) {
 --profile-ui-bg:#102238;--profile-ui-card:#172e49;--profile-ui-field:#0c1c30;--profile-ui-ink:#f2f7ff;
 --profile-ui-muted:#c2d2e6;--profile-ui-border:#607f9f;--profile-ui-accent:#91e7f2;--profile-ui-button:#245b87;
}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options {
 display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px!important;
 padding:16px!important;margin:0 0 16px!important;border:1px solid var(--profile-ui-border)!important;border-radius:12px!important;
 background:var(--profile-ui-bg)!important;background-image:none!important;color:var(--profile-ui-ink)!important;
 font:15px/1.5 'National Park',Arial,sans-serif!important;text-align:left!important;opacity:1!important;filter:none!important;
 box-shadow:0 3px 12px #0002!important;isolation:isolate;
}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options[hidden] {display:none!important;}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options :is(label,span) {
 color:var(--profile-ui-ink)!important;font:14px/1.5 'National Park',Arial,sans-serif!important;opacity:1!important;text-shadow:none!important;
}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options .profile-panel-title {
 flex:0 0 100%;font:20px/1.2 'Bangers',sans-serif!important;letter-spacing:.4px!important;margin:0!important;
}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options label {
 display:flex!important;flex:1 1 150px;flex-direction:column;align-items:flex-start;gap:6px!important;min-width:0;margin:0!important;
}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options select {
 width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:42px!important;
 padding:8px 30px 8px 10px!important;margin:0!important;border:1px solid var(--profile-ui-border)!important;border-radius:7px!important;
 background-color:var(--profile-ui-field)!important;color:var(--profile-ui-ink)!important;font:16px/1.3 'National Park',Arial,sans-serif!important;opacity:1!important;
 color-scheme:normal;
}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options option {background:var(--profile-ui-field)!important;color:var(--profile-ui-ink)!important;}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-move-buttons {display:flex!important;flex:0 0 100%;flex-wrap:wrap;gap:8px!important;}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options button {
 min-height:42px!important;padding:9px 12px!important;border:1px solid var(--profile-ui-border)!important;border-radius:7px!important;
 background:var(--profile-ui-card)!important;color:var(--profile-ui-ink)!important;font:16px/1.2 'Bangers',sans-serif!important;font-weight:400!important;
 text-shadow:none!important;opacity:1!important;white-space:normal!important;box-shadow:none!important;cursor:pointer;
}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-move-buttons button {flex:1 1 110px;}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options button:hover {border-color:var(--profile-ui-accent)!important;box-shadow:inset 0 0 0 1px var(--profile-ui-accent)!important;}
html body .forumcontainer #profile-layout-row [data-profile-section] :is(.profile-section-handle,.profile-custom-trigger) {
 color:var(--profile-ui-ink)!important;background:var(--profile-ui-bg)!important;border:1px solid var(--profile-ui-border)!important;border-radius:8px!important;opacity:1!important;
}
html body .forumcontainer #profile-layout-row [data-profile-section] :is(.profile-section-handle,.profile-custom-trigger) :is(i,span) {color:var(--profile-ui-ink)!important;opacity:1!important;}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-section-bars > span {background:var(--profile-ui-ink)!important;}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options :is(button,select):disabled {
 opacity:1!important;color:var(--profile-ui-muted)!important;background:var(--profile-ui-bg)!important;cursor:not-allowed;
}
html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options :is(button,select):focus-visible {
 outline:3px solid var(--profile-ui-accent)!important;outline-offset:2px!important;
}
/* Keep all editor dialogs legible even when the displayed container has custom fonts or images. */
html body :is(.profile-custom-dialog,.profile-showcase-dialog) {
 color:var(--profile-ui-ink);background:var(--profile-ui-bg);font:16px/1.5 'National Park',Arial,sans-serif;
}
html body :is(.profile-custom-dialog,.profile-showcase-dialog) label {color:var(--profile-ui-ink);font-size:15px;}
html body :is(.profile-custom-dialog,.profile-showcase-dialog) :is(select,input:not([type=color]):not([type=range]):not([type=checkbox]),.profile-custom-select-trigger,.profile-custom-choice-list,.profile-custom-choice-list button) {
 color:var(--profile-ui-ink);background-color:var(--profile-ui-field);border-color:var(--profile-ui-border);min-height:42px;
}
html body :is(.profile-custom-dialog,.profile-showcase-dialog) option {color:var(--profile-ui-ink);background:var(--profile-ui-field);}
html body :is(.profile-custom-dialog,.profile-showcase-dialog) .profile-custom-choice-list > button:is(:hover,[aria-selected=true]) {background:var(--profile-ui-card);outline:1px solid var(--profile-ui-accent);}
/* A contained checkout, with one clear item hero and labeled shop cards. */
html body dialog.profile-wish-popup {
 box-sizing:border-box;width:680px;max-width:calc(100vw - 24px);max-height:88dvh;max-height:min(88dvh,850px);padding:0;
 border:1px solid var(--profile-ui-border);border-radius:20px;box-shadow:0 24px 90px #0008;overflow:auto;
 color:var(--profile-ui-ink);background:var(--profile-ui-bg);text-align:left;
}
html body dialog.profile-wish-popup::backdrop,html body dialog.profile-wish-confirm::backdrop {background:#030b18bd;}
html body .profile-wish-popup .profile-wish-header {
 position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;
 padding:17px 22px;border-bottom:1px solid var(--profile-ui-border);background:var(--profile-ui-bg);
}
html body .profile-wish-popup .profile-wish-header h3 {margin:0;font:25px/1.15 'Bangers',sans-serif;color:var(--profile-ui-ink);letter-spacing:.5px;}
html body .profile-wish-popup .profile-wish-header button {min-width:68px;min-height:42px;padding:8px 12px;color:var(--profile-ui-ink);background:var(--profile-ui-card);border-color:var(--profile-ui-border);font:17px 'Bangers',sans-serif;}
html body .profile-wish-popup .wishlist-app {margin:0;padding:0 22px 22px;background:transparent;border:0;color:var(--profile-ui-ink);font:16px/1.5 'National Park',Arial,sans-serif;}
html body .profile-wish-popup .wishlist-main {padding:0;margin:0;background:transparent;border:0;}
html body .profile-wish-popup .wishlist-wish-checkout {
 display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:20px;padding:22px 0;margin:0 0 18px;border:0;border-bottom:1px solid var(--profile-ui-border);background:none;box-shadow:none;
}
html body .profile-wish-popup .wishlist-wish-checkout > img {width:112px;height:112px;max-width:100%;object-fit:contain;padding:8px;background:var(--profile-ui-card);border:1px solid var(--profile-ui-border);border-radius:18px;}
html body .profile-wish-popup .wishlist-eyebrow {color:var(--profile-ui-accent);font:12px/1.4 'National Park',Arial,sans-serif;letter-spacing:1.2px;margin-bottom:6px;}
html body .profile-wish-popup .wishlist-wish-checkout h2 {font:32px/1.1 'Bangers',sans-serif;color:var(--profile-ui-ink);margin:0 0 10px;overflow-wrap:anywhere;}
html body .profile-wish-popup .wishlist-app p {font:15px/1.6 'National Park',Arial,sans-serif;color:var(--profile-ui-muted);margin:6px 0;}
html body .profile-wish-popup .wishlist-main > h2,html body .profile-wish-popup .wishlist-inventory-gift > h2 {font:24px/1.2 'Bangers',sans-serif;color:var(--profile-ui-ink);margin:22px 0 12px;}
html body .profile-wish-popup .wishlist-inventory-gift {background:var(--profile-ui-card);border:1px solid var(--profile-ui-border);border-radius:14px;padding:18px;margin:16px 0 22px;}
html body .profile-wish-popup .wishlist-inventory-gift > h2 {margin-top:0;}
html body .profile-wish-popup .wishlist-inventory-gift form {margin-top:16px;gap:14px;}
html body .profile-wish-popup .wishlist-gift-note {padding:12px 14px;border-left:3px solid var(--profile-ui-accent);background:var(--profile-ui-card);border-radius:0 8px 8px 0;}
html body .profile-wish-popup .wishlist-offers {display:grid;gap:12px;}
html body .profile-wish-popup .wishlist-offer-head {display:none!important;}
html body .profile-wish-popup .wishlist-offer:not(.wishlist-offer-head) {
 display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,auto);gap:14px 20px;align-items:start;
 padding:18px;margin:0;border:1px solid var(--profile-ui-border);border-radius:14px;background:var(--profile-ui-card);box-shadow:none;
}
html body .profile-wish-popup .profile-wish-field-label {display:block;margin:0 0 5px;color:var(--profile-ui-muted);font:12px/1.3 'National Park',Arial,sans-serif;letter-spacing:.5px;text-transform:uppercase;}
html body .profile-wish-popup .profile-wish-field-value {display:block;color:var(--profile-ui-ink);font:16px/1.4 'National Park',Arial,sans-serif;overflow-wrap:anywhere;}
html body .profile-wish-popup .profile-wish-field-value small {display:block;margin-top:4px;font-size:13px;color:var(--profile-ui-muted);}
html body .profile-wish-popup .profile-wish-price {display:block;text-align:right;}
html body .profile-wish-popup .profile-wish-price .profile-wish-field-value {font-size:23px;color:var(--profile-ui-accent);}
html body .profile-wish-popup .profile-wish-price img {width:22px;height:22px;vertical-align:middle;object-fit:contain;}
html body .profile-wish-popup .profile-wish-delivery {align-self:center;}
html body .profile-wish-popup .wishlist-offer > form {display:flex;flex-direction:column;align-items:stretch;gap:10px;justify-self:stretch;min-width:0;margin:0;}
html body .profile-wish-popup .wishlist-app .wishlist-gift-choice {display:block;margin:0;max-width:none;color:var(--profile-ui-ink);font-size:14px;}
html body .profile-wish-popup .wishlist-app select {width:100%;min-height:44px;font:16px 'National Park',Arial,sans-serif;background:var(--profile-ui-field);color:var(--profile-ui-ink);border:1px solid var(--profile-ui-border);border-radius:8px;}
html body .profile-wish-popup .wishlist-app .wishlist-primary,html body .profile-wish-confirm .profile-showcase-button:last-child {
 min-height:46px;padding:11px 18px;border:1px solid #7fb9db;border-radius:9px;color:#fff;background:linear-gradient(135deg,#30678e,#244b7e);box-shadow:0 3px 8px #0002;font:20px/1.15 'Bangers',sans-serif;
}
html body .profile-wish-popup .wishlist-app button:disabled {opacity:1;color:var(--profile-ui-muted);background:var(--profile-ui-bg);border-color:var(--profile-ui-border);cursor:wait;}
html body .profile-wish-popup .wishlist-empty {padding:20px;background:var(--profile-ui-card);border:1px dashed var(--profile-ui-border);border-radius:12px;}
html body .profile-wish-popup .wishlist-empty h3 {font:22px 'Bangers',sans-serif;color:var(--profile-ui-ink);}
html body .profile-wish-popup .profile-wish-message:not(:empty) {padding:12px 16px;margin:16px 22px 0;border:1px solid var(--profile-ui-border);border-radius:10px;background:var(--profile-ui-card);color:var(--profile-ui-ink);font:15px/1.5 'National Park',Arial,sans-serif;}
html body .profile-wish-confirm {padding:24px;width:460px;border:1px solid var(--profile-ui-border);border-radius:18px;}
html body .profile-wish-confirm h3 {font:28px 'Bangers',sans-serif;margin:0 0 18px;}
html body .profile-wish-confirm p {font:16px/1.6 'National Park',Arial,sans-serif;color:var(--profile-ui-ink);}
html body .profile-wish-confirm .profile-showcase-dialog-actions {display:flex;gap:10px;margin-top:22px;}
html body .profile-wish-confirm button {flex:1;min-height:44px;color:var(--profile-ui-ink);background:var(--profile-ui-card);border-color:var(--profile-ui-border);font:18px 'Bangers',sans-serif;}
html body :is(.profile-wish-popup,.profile-wish-confirm) :is(button,select,a):focus-visible {outline:3px solid var(--profile-ui-accent);outline-offset:3px;}
@media(max-width:520px){
 html body .profile-wish-popup .profile-wish-header {padding:14px 16px;}
 html body .profile-wish-popup .wishlist-app {padding:0 16px 16px;}
 html body .profile-wish-popup .wishlist-wish-checkout {grid-template-columns:88px minmax(0,1fr);gap:14px;padding:18px 0;}
 html body .profile-wish-popup .wishlist-wish-checkout > img {width:88px;height:88px;padding:6px;border-radius:14px;}
 html body .profile-wish-popup .wishlist-wish-checkout h2 {font-size:27px;}
 html body .profile-wish-popup .wishlist-offer:not(.wishlist-offer-head) {grid-template-columns:minmax(0,1fr) minmax(105px,auto);padding:14px;gap:14px 10px;}
 html body .profile-wish-popup .wishlist-offer > form {grid-column:1/-1;width:100%;}
 html body .profile-wish-popup .profile-wish-delivery {grid-column:1/-1;}
 html body .profile-wish-popup .profile-wish-price .profile-wish-field-value {font-size:20px;}
 html body .profile-wish-popup .profile-wish-message:not(:empty) {margin:14px 16px 0;}
 html body .forumcontainer #profile-layout-row [data-profile-section] .profile-panel-options {padding:12px!important;gap:10px!important;}
}
