/* Account details, using the existing portal palettes and original character/item renderer. */
.portal-glyph{display:inline-block;vertical-align:middle;flex-shrink:0}
.account-icon-label{display:flex;align-items:center;gap:9px}
.account-icon-label>.portal-glyph{width:20px;height:20px;color:var(--gold-deep)}
.account-dashboard #dashboard-title{gap:13px}.account-dashboard #dashboard-title>.portal-glyph{width:30px;height:34px}
.account-dashboard .account-actions .portal-glyph{width:16px;height:16px}.account-dashboard .account-actions .button-gold .portal-glyph{color:currentColor}
.account-dashboard .realm-country{border:0;border-radius:0;width:28px;height:22px;overflow:hidden;box-shadow:0 0 0 1px var(--line)}
.account-dashboard .realm-country svg{width:28px;height:22px;display:block;object-fit:cover}
.account-dashboard .dashboard-toolbar{padding:16px 18px;background:linear-gradient(110deg,color-mix(in srgb,var(--gold) 4%,var(--surface)),var(--surface));border-radius:6px}
.account-dashboard #refresh-account>span:first-child{display:flex}
.account-dashboard #refresh-account .portal-glyph{width:16px;height:16px}
.account-dashboard #refresh-account:disabled .portal-glyph{animation:account-refresh-turn 1.5s linear infinite}
.account-dashboard .read-only-note{padding:12px 14px;margin-block:14px 24px;border:1px solid var(--line);border-left:2px solid var(--gold);border-radius:3px;background:var(--surface)}
.account-dashboard .read-only-note [data-icon]{display:flex;flex-shrink:0;color:var(--gold-deep)}
.account-dashboard .character-list-heading h2>.portal-glyph{width:17px;height:17px}
.account-empty-card{padding:28px;border:1px solid var(--line);border-top:2px solid var(--gold);border-radius:6px;background:var(--surface);margin-bottom:18px}
.account-empty-card>[data-icon]{display:block;width:32px;height:32px;color:var(--gold-deep);margin-bottom:13px}
.account-empty-card h2{font:500 23px/1.4 var(--serif);color:var(--ink);margin:0 0 10px}
.account-empty-card p{font-size:12px;color:var(--muted);line-height:1.8;max-width:460px}
.account-empty-card .button{margin-top:18px;min-height:42px;font-size:11px}
.account-dashboard .character-select{border-color:var(--line);background:color-mix(in srgb,var(--surface) 50%,transparent)}
.account-dashboard .character-select[aria-pressed=true]{border-color:var(--gold);background:var(--surface)}
.account-dashboard .hero-overview{border-radius:6px;background:linear-gradient(115deg,var(--surface),color-mix(in srgb,var(--gold) 4%,var(--surface)))}
.account-dashboard .hero-overview-content{padding-top:20px}
.account-dashboard #character-map{display:flex;align-items:flex-start;gap:5px;line-height:1.7}
.account-dashboard #character-map>.portal-glyph{width:13px;height:16px;color:var(--gold-deep)}
.account-dashboard .hero-stat-strip>div>span{display:flex;align-items:center;gap:5px}
.account-dashboard .hero-stat-strip .portal-glyph{width:13px;height:13px;color:var(--gold-deep)}
.account-dashboard .preview-expand>.portal-glyph{width:13px;height:13px}
.account-dashboard .account-section-nav{gap:7px;padding:8px;margin-block:18px 0;border:1px solid var(--line);border-radius:6px;background:var(--surface);overflow:visible}
.account-dashboard .account-section-nav button{position:relative;min-width:0;flex:1 1 0;min-height:74px;padding:10px 7px;flex-direction:column;flex-wrap:nowrap;gap:6px;border:1px solid transparent;border-radius:4px;text-align:center;transition:background-color .18s,border-color .18s,color .18s}
.account-dashboard .account-section-nav .portal-glyph{width:21px;height:21px;color:var(--gold-deep);opacity:.8}
.account-dashboard .account-tab-label{font-size:11px}
.account-dashboard .account-section-nav button[aria-selected=true]{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 11%,var(--paper));box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--gold) 7%,transparent)}
.account-dashboard .account-section-nav button[aria-selected=true] .portal-glyph{opacity:1}
.account-dashboard .account-section-nav button:hover:not(:disabled){border-color:var(--gold)}
.account-dashboard .account-tab-count{position:absolute;top:5px;right:5px;font-size:9px;min-width:18px;padding:1px 4px;border:1px solid var(--line);background:var(--paper)}
.account-dashboard .dashboard-card{padding-block:26px}
.account-dashboard .card-heading h3{font-size:16px;gap:8px}
.account-dashboard .card-heading h3>.portal-glyph{width:21px;height:21px}
.account-dashboard .point-row>label{display:grid;grid-template-columns:30px minmax(0,1fr);gap:0 8px;align-items:center}
.account-dashboard .point-row>label>.portal-glyph{grid-column:1;grid-row:1/4;width:26px;height:30px;padding:3px;color:var(--gold-deep);border:1px solid var(--line);border-radius:3px;background:var(--surface)}
.account-dashboard .point-row>label :is(strong,small,em){grid-column:2}
.account-dashboard .point-row>label small{font-size:10px;max-width:240px;margin-top:3px}
.account-dashboard .point-editor[data-has-points=false] :is(.point-input,.point-after,.point-step-row,.point-summary,.point-actions,.point-footnote){display:none}
.account-dashboard .point-editor[data-has-points=false] .point-columns{grid-template-columns:minmax(0,1fr) auto}
.account-dashboard .point-editor[data-has-points=false] .point-columns>span:nth-child(n+3){display:none}
.account-dashboard .point-editor[data-has-points=false] .point-row{grid-template-columns:minmax(0,1fr) auto;gap:18px}
.account-dashboard .point-editor[data-has-points=false] .point-base{text-align:right}
.account-dashboard .point-empty{display:flex;align-items:center;padding:12px 14px;margin-top:14px;background:var(--surface);border:1px solid var(--line);border-radius:4px;font-size:11px}
.account-dashboard .point-summary{border-left:2px solid var(--gold)}
.account-dashboard .wealth-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:18px;margin-top:24px;gap:4px 20px}
.account-dashboard .wealth-card .wallet-bound{padding-top:13px;margin-top:12px}
.account-dashboard .wealth-card .wallet-label{padding-left:29px;font-size:10px}
.account-dashboard .wallet-bound p{display:flex;align-items:center;gap:6px}
.account-dashboard .wallet-bound p>.portal-glyph{width:13px;height:13px;color:var(--gold-deep)}
.account-dashboard .collection-browser{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0 0 20px;padding:16px;border:1px solid var(--line);border-radius:5px;background:var(--surface)}
.collection-search-label{display:block;font-size:11px;font-weight:500;color:var(--muted);margin-bottom:7px}
.collection-search-field{display:flex;align-items:center;border:1px solid var(--line);border-radius:4px;background:var(--field);min-height:44px;max-width:440px;padding-left:12px;color:var(--gold-deep)}
.collection-search-field:focus-within{border-color:var(--gold);outline:1px solid var(--gold)}
.collection-search-field>.portal-glyph{width:18px;height:18px}
.account-dashboard .collection-search-field .item-search{border:0;outline:0!important;box-shadow:none;max-width:none;min-width:0;width:100%;background:transparent;padding:11px 10px;margin:0;font-size:12px;min-height:44px}
.collection-search-field input::-webkit-search-cancel-button{-webkit-appearance:none}
.collection-clear{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:40px;border:0;background:transparent;color:var(--muted);cursor:pointer}
.collection-clear>.portal-glyph{width:16px;height:16px}
.collection-filters{display:flex;flex-wrap:wrap;gap:6px}
.collection-filter{display:inline-flex;align-items:center;gap:6px;min-height:37px;padding:7px 10px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--muted);font:400 11px/1.5 var(--sans);cursor:pointer;transition:background-color .18s,border-color .18s}
.collection-filter .portal-glyph{width:15px;height:15px;color:var(--gold-deep)}
.collection-filter small{font-size:9px;min-width:15px;text-align:center;color:var(--muted);font-variant-numeric:tabular-nums}
.collection-filter:hover,.collection-filter[aria-pressed=true]{border-color:var(--gold);background:var(--soft);color:var(--ink)}
.collection-result{font-size:10px;color:var(--muted);line-height:1.5;margin:0;font-variant-numeric:tabular-nums}
.account-dashboard .item-grid{grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:12px}
.account-dashboard .item-card{min-height:132px;padding:15px;gap:15px;border-radius:5px;position:relative;align-items:center;box-shadow:inset 0 1px 0 #ffffff03}
.account-dashboard .item-card:hover{transform:none;box-shadow:0 4px 15px #0000000d}
.account-dashboard .item-card .item-name{font-size:12px;line-height:1.6}
.item-slot{display:block;font-size:9px;color:var(--gold-deep);letter-spacing:.05em;line-height:1.5;margin-bottom:5px}
.account-dashboard .item-card .item-state{display:flex;align-items:center;gap:4px;margin-top:8px;line-height:1.5;color:var(--muted)}
.item-state>.portal-glyph{width:11px;height:11px}
.account-dashboard .empty-items{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;min-height:180px;padding:30px 20px;color:var(--muted);border:1px dashed var(--line);border-radius:5px;background:var(--surface);font-size:12px;line-height:1.8}
.account-dashboard .empty-items>.portal-glyph{width:35px;height:35px;color:var(--gold-deep);opacity:.75}
.account-dashboard .vault-money{padding:0;margin:0 0 22px;display:grid;grid-template-columns:1fr 1fr;gap:18px}
.account-dashboard .vault-money>span{display:block;padding:15px 18px;border:1px solid var(--line);border-radius:5px;background:var(--surface)}
.account-dashboard .vault-money strong{display:block;margin-top:6px;font:500 25px/1.3 var(--serif);font-variant-numeric:tabular-nums}
.account-dashboard .account-skills-hint{padding:12px 15px;border-left:2px solid var(--gold);background:var(--surface);font-size:11px}
.account-skill-card{transition:border-color .18s}.account-skill-card:hover{border-color:var(--gold)}
.account-skill-icon{background:radial-gradient(circle,color-mix(in srgb,var(--gold) 10%,var(--paper)),var(--paper));border-color:color-mix(in srgb,var(--gold) 35%,var(--line))}
.account-skill-costs{gap:7px 14px}.account-skill-cost{display:inline-flex;align-items:center;gap:4px}
.account-skill-cost>.portal-glyph{width:12px;height:12px;color:var(--gold-deep)}
.account-dashboard .account-skill-cost>span{padding:0;border:0;background:transparent;font:inherit;color:inherit;line-height:inherit}
.login-panel #login-title{align-items:flex-start;gap:12px}.login-panel #login-title>.portal-glyph{margin-top:5px;width:24px;height:25px}
.auth-form label.account-icon-label{display:flex;align-items:center;gap:6px}.auth-form label>.portal-glyph{width:13px;height:13px}
.auth-tabs .portal-glyph{width:15px;height:15px}
.password-field{position:relative;display:flex;margin-bottom:15px;border:1px solid var(--line);border-radius:4px;background:var(--field)}
.password-field:focus-within{outline:1px solid var(--gold);border-color:var(--gold)}
.auth-form .password-field input{border:0;background:transparent;margin:0;outline:none;box-shadow:none;padding-right:46px;width:100%;border-radius:4px;min-height:46px}
.password-reveal{display:flex;align-items:center;justify-content:center;position:absolute;right:0;top:0;bottom:0;width:44px;border:0;background:transparent;color:var(--muted);cursor:pointer}
.password-reveal .portal-glyph{width:19px;height:19px}.password-reveal:hover{color:var(--gold-deep)}
@keyframes account-refresh-turn{to{transform:rotate(360deg)}}
@media(max-width:1150px){.account-dashboard .account-section-nav{gap:4px;padding:5px}.account-dashboard .account-section-nav button{padding-inline:4px;gap:5px}.account-dashboard .account-tab-label{font-size:10px}.account-dashboard .account-section-nav .portal-glyph{width:19px;height:19px}}
@media(max-width:700px){.account-dashboard .dashboard-toolbar{padding:15px}.account-dashboard .account-section-nav .portal-glyph{width:20px;height:20px}.account-dashboard .account-tab-label{font-size:11px}.account-dashboard .item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-dashboard .item-card{padding:13px;gap:12px}.account-dashboard .account-section-nav button{flex-direction:column;min-height:73px}.account-dashboard .account-tab-count{position:absolute;top:5px;right:5px;font-size:8px;display:block}.account-dashboard .point-row>label small{font-size:9px}}
@media(max-width:560px){.account-dashboard .account-section-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:4px;margin-top:15px}.account-dashboard .account-section-nav button{min-height:79px;gap:6px;padding:10px 2px 7px;justify-content:center;flex-wrap:nowrap}.account-dashboard .account-tab-label{font-size:8px;line-height:1.5;overflow-wrap:anywhere;letter-spacing:-.02em}.account-dashboard .account-section-nav .portal-glyph{width:20px;height:20px}.account-dashboard .account-tab-count{top:3px;right:3px;min-width:14px;padding:0 3px;line-height:1.4;font-size:7px}.account-dashboard .account-section-nav button:disabled .account-tab-count{display:none}.account-dashboard #dashboard-title>.portal-glyph{width:25px;height:29px}.account-dashboard .account-top h1{font-size:26px}.account-dashboard .account-actions .button{font-size:9px;padding:8px 10px;gap:6px}.account-dashboard .account-actions .portal-glyph{width:13px;height:13px}.account-dashboard .read-only-note{font-size:10px;line-height:1.8;padding:11px}.account-dashboard .hero-progress{padding:14px 13px}.account-dashboard .hero-stat-strip>div>span{gap:4px;font-size:8px}.account-dashboard .hero-stat-strip .portal-glyph{width:11px;height:12px}.account-dashboard .point-row>label{grid-template-columns:28px minmax(0,1fr);gap:0 7px}.account-dashboard .point-editor[data-has-points=false] .point-base{grid-column:2;grid-row:1}.account-dashboard .point-row>label small{font-size:9px}.account-dashboard .point-empty{font-size:10px;padding:11px}.account-dashboard .wealth-card{padding:16px;margin-top:22px}.account-dashboard .collection-browser{padding:12px;gap:12px}.collection-filter{font-size:10px;min-height:40px;padding:7px 9px;gap:5px}.collection-search-label{font-size:10px}.account-dashboard .item-grid{grid-template-columns:1fr}.account-dashboard .item-card{min-height:122px;padding:15px;gap:18px}.account-dashboard .item-icon{width:62px;height:78px;flex-basis:62px}.account-dashboard .item-card .item-name{font-size:12px}.account-dashboard .vault-money{gap:10px}.account-dashboard .vault-money>span{padding:13px}.account-dashboard .vault-money strong{font-size:23px}.account-dashboard .card-heading h3{font-size:15px}}
.portal-motion-paused :is(#refresh-account .portal-glyph,.account-skill-card,.collection-filter){animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){#refresh-account .portal-glyph{animation:none!important}.account-skill-card,.collection-filter{transition:none}}
/* Keep the music control clear of the account sheet while its panel is collapsed. */
body[data-page=account] .fairy-player:has(.fairy-music-panel[hidden]),body[data-page=account] .fairy-player:has(.fairy-music-panel[hidden]) .fairy-toggle{width:50px;height:58px}
body[data-page=account] .fairy-player:has(.fairy-music-panel[hidden]) .fairy-badge{min-width:50px;min-height:20px;padding:2px 5px;font-size:8px;gap:3px}
@media(max-width:560px){.account-dashboard .account-section-nav{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:5px}.account-dashboard .account-section-nav button{grid-column:span 2;min-height:54px;flex-direction:row;gap:5px;padding:11px 4px}.account-dashboard .account-section-nav button:nth-child(n+4){grid-column:span 3}.account-dashboard .account-section-nav .portal-glyph{width:18px;height:18px}.account-dashboard .account-tab-label{font-size:10px;letter-spacing:0;white-space:nowrap;overflow-wrap:normal}.account-empty-card{padding:22px}.account-empty-card h2{font-size:21px}}
