.character-profile__dialog{--cp-line:#145378;--cp-text:#d6ddff;--cp-muted:#a9c9e4;color:var(--cp-text);font:15px/1.3 "Segoe UI",Arial,sans-serif;box-sizing:border-box;width:min(980px,calc(100vw - 28px));height:min(560px,calc(100dvh - 28px));max-width:none;max-height:none;padding:0;overflow:hidden;background:linear-gradient(125deg,#04273b,#001321 70%);border:2px solid #1b668e;border-radius:12px 4px 12px 4px;box-shadow:0 0 0 3px #00101e,0 0 0 4px #163f55,0 20px 70px #000c,inset 0 0 28px #063858;outline:none}
.character-profile__dialog::backdrop{background:#0008}
.character-profile__dialog{clip-path:polygon(0 12px,12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px));border-radius:0}
.character-profile__dialog *{box-sizing:border-box}
.character-profile__dialog button{font:inherit;color:inherit;cursor:pointer}
.character-profile__dialog button:disabled{cursor:default;opacity:.38}
.character-profile__dialog button:focus-visible,.character-profile__content:focus-visible{outline:2px solid #7ae5ff;outline-offset:3px}
.character-profile__dialog h2,.character-profile__dialog h3,.character-profile__dialog h4,.character-profile__dialog p,.character-profile__dialog dl,.character-profile__dialog dd{margin:0}
.character-profile__header{height:68px;display:flex;align-items:center;gap:12px;padding:8px 20px;border-bottom:1px solid var(--cp-line);background:linear-gradient(#062b42,#041d30);box-shadow:0 2px 6px #00101b}
.character-profile__header h2{font:bold 28px Georgia,"Times New Roman",serif;color:#dce3ff;text-shadow:1px 2px #000;flex:1}
.character-profile__mascot{width:43px;height:43px;object-fit:contain;image-rendering:pixelated}
.character-profile__close{width:38px;height:38px;flex:none;padding:0;border:1px solid #155879;background:#021b2b;border-radius:4px;font-size:30px!important;line-height:1;color:#a7c8ff!important;text-shadow:0 0 6px #398cdd}
.character-profile__body{height:calc(100% - 68px);display:grid;grid-template-columns:13fr 36fr 51fr;gap:14px;padding:18px}
.character-profile__tabs{display:grid;grid-template-rows:repeat(4,1fr);gap:12px;min-width:0}
.character-profile__tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:0;min-width:0;border:1px solid #12537a;border-radius:7px 2px;background:linear-gradient(#04243a,#021623);box-shadow:inset 0 0 8px #082e43;font-size:14px!important;font-weight:600!important;color:#c9d9f0!important}
.character-profile__tab>.character-profile__icon{width:39px;height:39px;filter:drop-shadow(0 0 3px #1684ba);color:#91bedf}
.character-profile__tab[aria-selected="true"]{border-color:#ffce2d;background:linear-gradient(#332709,#10120e);box-shadow:0 0 8px #edb91288,inset 0 0 9px #e5a00033;color:#fff0b8!important}
.character-profile__tab[aria-selected="true"]>.character-profile__icon{color:#ffd653;filter:drop-shadow(0 0 4px #ffa400)}
.character-profile__tab:hover:not([aria-selected="true"]){background:#0a354d;border-color:#47a2c5}
.character-profile__portrait{position:relative;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px solid #0e3e5c;background:radial-gradient(ellipse at 50% 58%,#06374b55,transparent 68%),linear-gradient(#021b2a,#00101b);border-radius:5px;overflow:hidden;padding:10px 5px}
.character-profile__stage{position:relative;width:100%;height:74%;max-height:324px;min-height:80px;isolation:isolate}
.character-profile__trainer{position:absolute;inset:8% 7% 4%;width:86%;height:88%;object-fit:contain;image-rendering:pixelated;z-index:2}
.character-profile__aura{position:absolute;inset:11% 7% 5%;border-radius:50%;pointer-events:none;opacity:0;border:3px solid #ffd24a;box-shadow:0 0 9px #ffb300,inset 0 0 18px #ffd332,0 0 22px #e98c0066;background:radial-gradient(ellipse,transparent 55%,#b96c0022 65%,#ffd83b66 68%,transparent 70%);transform:rotate(-12deg)}
.character-profile__aura::after{content:"";position:absolute;inset:-5%;border:1px dashed #ffd657;border-radius:50%;box-shadow:0 0 7px #ffd44a}
.character-profile__aura[data-aura]:not([data-aura=""]){opacity:.9}
.character-profile__aura[data-aura="prestige"]{filter:hue-rotate(265deg)}
.character-profile__aura[data-aura="one-month"]{filter:hue-rotate(135deg)}
.character-profile__aura[data-aura="prismatic"]{filter:hue-rotate(165deg)}
.character-profile__base{position:absolute;bottom:4%;left:12%;width:76%;height:15%;border-radius:50%;background:radial-gradient(ellipse,#13c3df33,transparent 68%);pointer-events:none}
.character-profile__base[data-aura]:not([data-aura=""]){box-shadow:0 1px 8px #e8b52988;border-bottom:2px solid #dbb72c88}
.character-profile__portrait-status{position:absolute;bottom:1%;left:5%;width:90%;text-align:center;font-size:12px;color:var(--cp-muted);z-index:3}
.character-profile__name{font:bold 27px Georgia,serif;max-width:100%;padding:4px 8px 0;text-align:center;overflow-wrap:anywhere;line-height:1.1;color:#eee8ff;text-shadow:0 2px #000}
.character-profile__level{font:19px Georgia,serif;padding-top:5px}
.character-profile__balls{display:flex;gap:9px;color:#abc8ed;padding-top:10px}
.character-profile__balls .character-profile__icon{width:21px;height:21px;background:linear-gradient(#e5483c 45%,#0b2134 46%,#0b2134 54%,#d1ddea 55%);border-radius:50%;stroke:#253d56}
.character-profile__icon{width:26px;height:26px;flex:none;vertical-align:middle}
.character-profile__content{min-width:0;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#276381 #031723}
.character-profile__card{border:1px solid var(--cp-line);border-radius:5px;background:linear-gradient(#06273d,#011522);padding:13px 13px 10px;min-width:0;box-shadow:inset 0 0 12px #001420}
.character-profile__card h3{font:bold 22px Georgia,serif;color:#dce2ff;margin:0 0 11px;text-shadow:0 1px #000}
.character-profile__general{height:100%}
.character-profile__general dl{height:calc(100% - 42px);display:grid;grid-template-rows:repeat(7,1fr);background:#00132177;padding:0 7px}
.character-profile__info-row{display:grid;grid-template-columns:26px minmax(75px,.82fr) minmax(0,1.3fr);gap:9px;align-items:center;border-bottom:1px solid #10456277;min-height:36px}
.character-profile__info-row:last-child{border:0}
.character-profile__info-row dt{color:var(--cp-muted);font-size:14px}
.character-profile__info-row dd{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.character-profile__info-row:nth-child(1)>.character-profile__icon,.character-profile__info-row:nth-child(4)>.character-profile__icon,.character-profile__info-row:nth-child(5)>.character-profile__icon{color:#efc445}
.character-profile__info-row:nth-child(2)>.character-profile__icon{color:#a19bf5}
.character-profile__info-row:nth-child(3)>.character-profile__icon,.character-profile__info-row:nth-child(6)>.character-profile__icon{color:#8ac7e5}
.character-profile__pokemon{min-height:100%}
.character-profile__pokemon-hero{display:grid;grid-template-columns:54% 46%;align-items:center;min-height:205px}
.character-profile__pokemon-hero canvas{width:100%;max-height:210px;object-fit:contain;image-rendering:pixelated}
.character-profile__pokemon-hero h4{font:bold 26px Georgia,serif;overflow-wrap:anywhere;margin:6px 0 10px}
.character-profile__pokemon-level{font:18px Georgia,serif}
.character-profile__types{display:flex;flex-wrap:wrap;gap:5px}
.character-profile__types span{padding:3px 7px;border:1px solid #577f98;border-radius:4px;font-size:11px;letter-spacing:.5px;background:#354a68;color:#ecedff}
.character-profile__types [data-type="psychic"]{background:#b62073;border-color:#e852ad}
.character-profile__helds{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.character-profile__held{display:flex;gap:9px;align-items:center;border:1px solid #144767;background:#021826;padding:10px 8px;border-radius:4px;min-width:0}
.character-profile__held>div{min-width:0}.character-profile__held span{display:block;font-size:11px;color:var(--cp-muted)}
.character-profile__held strong{display:block;font-size:14px;overflow-wrap:anywhere}
.character-profile__held:first-child>.character-profile__icon{color:#fc7742}.character-profile__held:last-child>.character-profile__icon{color:#83df72}
.character-profile__boost{margin-top:10px;padding:10px;display:flex;align-items:center;gap:10px;border:1px solid #164969;background:#031a2c;border-radius:4px}
.character-profile__boost>.character-profile__icon{color:#ff623d}.character-profile__boost strong{margin-left:auto;font-size:28px;color:#72e82b}
.character-profile__achievements{min-height:100%}
.character-profile__achievement{display:flex;align-items:center;gap:10px;min-height:57px;border-bottom:1px solid #12415d;padding:6px 0}
.character-profile__achievement>.character-profile__icon{width:29px;height:29px;color:#d9ba67}
.character-profile__achievement:nth-child(1)>.character-profile__icon{color:#87cf79}.character-profile__achievement:nth-child(2)>.character-profile__icon,.character-profile__achievement:nth-child(4)>.character-profile__icon{color:#f17765}
.character-profile__achievement-data{flex:1;min-width:0}
.character-profile__achievement-data>div:first-child{display:flex;gap:8px;justify-content:space-between;align-items:center;font-size:14px;margin-bottom:5px}
.character-profile__achievement-data strong{font-size:12px;white-space:nowrap;color:#9dcefa;font-weight:500}
.character-profile__track{height:9px;border:1px solid #0c4978;background:#00101f;border-radius:3px;overflow:hidden}
.character-profile__track i{display:block;height:100%;background:linear-gradient(#00b7ff,#006dd7);box-shadow:0 0 7px #008cff}
.character-profile__chevron{width:30px;height:32px;padding:6px;border:1px solid #25536e;background:#052136;border-radius:4px;flex:none}
.character-profile__chevron .character-profile__icon{width:16px;height:18px}
.character-profile__note{font-size:11px;color:var(--cp-muted);padding-top:10px}
.character-profile__season-stack{display:grid;gap:12px;min-height:100%;align-content:start}
.character-profile__history,.character-profile__other-seasons{padding:10px}
.character-profile__history h3,.character-profile__other-seasons h3{font-size:21px;margin-bottom:8px}
.character-profile__season-banner{display:flex;align-items:center;gap:12px;padding:9px 12px;border:1px solid #665325;background:radial-gradient(ellipse at 20% 75%,#b9843277,transparent 55%),linear-gradient(140deg,#302b27,#594e2c 60%,#302b24);border-radius:4px}
.character-profile__season-banner>.character-profile__icon{width:55px;height:55px;color:#ffdc6e;filter:drop-shadow(0 0 5px #d39c2f)}
.character-profile__season-banner span{font:13px Georgia,serif;color:#e0cb9e}.character-profile__season-banner h4{font:bold 19px Georgia,serif;color:#ffe29a;overflow-wrap:anywhere;margin:2px 0}.character-profile__season-banner small{font-size:11px;color:#e4d8bc}
.character-profile__ranking{display:flex;align-items:center;gap:10px;border-bottom:1px solid #133c54;min-height:33px;font-size:13px}
.character-profile__ranking>.character-profile__icon{width:24px;height:24px;color:#d6b74b}.character-profile__ranking:first-child>.character-profile__icon{color:#80d268}
.character-profile__ranking>span{flex:1}.character-profile__ranking strong{display:flex;align-items:center;gap:5px;min-width:54px;justify-content:flex-end;color:#c4d1f2}.character-profile__ranking strong>.character-profile__icon{width:20px;height:20px;color:#e3c254}
.character-profile__ranking .character-profile__chevron{height:25px;width:26px;padding:3px}
.character-profile__ranking:nth-child(2) strong>.character-profile__icon{color:#c8d6e9}
.character-profile__ranking:nth-child(n+3) strong>.character-profile__icon{color:#6dafed}
.character-profile__season-banner{background-image:linear-gradient(90deg,#30291fa8,#22180c44),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 130'%3E%3Cdefs%3E%3ClinearGradient id='s' x2='0' y2='1'%3E%3Cstop stop-color='%236a492a'/%3E%3Cstop offset='1' stop-color='%23dfab58'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23s)' d='M0 0h500v130H0z'/%3E%3Ccircle fill='%23ffdf89' cx='360' cy='58' r='24'/%3E%3Cpath fill='%235b512f' d='M0 100 60 65 135 95 205 54 270 100 350 74 430 101 500 70v60H0z'/%3E%3Cpath fill='%23363324' d='m0 123 80-28 120 25 100-20 105 18 95-17v29H0z'/%3E%3C/svg%3E");background-size:cover;background-position:center}
.character-profile__other-season{display:flex;align-items:center;gap:10px;min-height:36px;border-top:1px solid #123b55;font-size:13px}.character-profile__other-season>span{flex:1}.character-profile__other-season small{font-size:11px;color:var(--cp-muted)}.character-profile__other-season>.character-profile__icon{color:#96dfff;width:24px;height:24px}
.character-profile__other-season .character-profile__chevron{height:27px;width:27px;padding:4px}
.character-profile__empty{padding:30px 13px;color:var(--cp-muted);line-height:1.6;text-align:center;font-size:14px}.character-profile__empty strong{color:#d8e3f9;display:block;font-size:16px;margin-bottom:10px}.character-profile__other-seasons .character-profile__empty{padding:12px 5px}
.character-profile__loading{display:grid;place-items:center;min-height:260px;color:var(--cp-muted)}
.character-profile__retry,.character-profile__back{padding:9px 13px;border:1px solid #397f9d;background:#07354c;border-radius:4px;margin:8px 0}
.character-profile__ranking-detail{list-style:none;margin:0;padding:0}.character-profile__ranking-detail li{display:flex;gap:10px;padding:8px 0;border-bottom:1px solid #17445d}.character-profile__ranking-detail span{flex:1;overflow-wrap:anywhere}
@media(max-width:800px){.character-profile__body{gap:9px;padding:12px;grid-template-columns:14fr 32fr 54fr}.character-profile__tab{font-size:12px!important}.character-profile__card{padding:10px}.character-profile__card h3{font-size:19px}.character-profile__info-row{gap:5px;grid-template-columns:21px minmax(65px,.8fr) minmax(0,1.1fr);font-size:13px}.character-profile__info-row dt{font-size:12px}.character-profile__info-row>.character-profile__icon{width:21px}.character-profile__name{font-size:24px}.character-profile__header h2{font-size:25px}.character-profile__pokemon-hero{min-height:180px}.character-profile__pokemon-hero h4{font-size:20px}.character-profile__held{padding:7px 4px;gap:4px}.character-profile__held strong{font-size:12px}.character-profile__boost{font-size:12px}.character-profile__achievement{gap:7px}.character-profile__achievement-data>div:first-child{font-size:12px}}
@media(max-width:600px){.character-profile__dialog{width:calc(100vw - 16px);height:calc(100dvh - 20px);border-radius:9px 3px}.character-profile__header{height:60px;padding:8px 12px;gap:8px}.character-profile__header h2{font-size:21px}.character-profile__mascot{width:32px;height:32px}.character-profile__body{height:calc(100% - 60px);display:grid;grid-template-columns:74px minmax(0,1fr);grid-template-rows:220px minmax(0,1fr);gap:10px;padding:10px;overflow:auto}.character-profile__tabs{grid-column:1;grid-row:1 / 3;display:flex;flex-direction:column;gap:10px}.character-profile__tab{flex:none;min-height:84px;font-size:11px!important}.character-profile__tab>.character-profile__icon{width:29px;height:29px}.character-profile__portrait{grid-column:2;grid-row:1;min-height:0;padding:6px}.character-profile__stage{height:145px;width:160px;flex:none}.character-profile__name{font-size:20px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.character-profile__level{font-size:15px;padding-top:2px}.character-profile__balls{padding-top:5px;gap:5px}.character-profile__balls .character-profile__icon{width:14px;height:14px}.character-profile__content{grid-row:2;grid-column:2;min-height:210px}.character-profile__general{height:auto;min-height:100%}.character-profile__general dl{height:auto;padding:0}.character-profile__info-row{grid-template-columns:18px minmax(0,1fr);padding:8px 0;gap:3px 7px}.character-profile__info-row>.character-profile__icon{grid-row:span 2;width:18px;height:18px}.character-profile__info-row dd{grid-column:2;white-space:normal;overflow-wrap:anywhere}.character-profile__card h3{font-size:18px}.character-profile__achievement{min-height:62px;gap:5px}.character-profile__achievement>.character-profile__icon{width:20px;height:20px}.character-profile__achievement-data>div:first-child{flex-direction:column;align-items:flex-start;gap:1px}.character-profile__chevron{width:25px;height:30px;padding:4px}.character-profile__pokemon-hero{display:flex;flex-direction:column;text-align:center}.character-profile__pokemon-hero canvas{height:140px;max-width:180px}.character-profile__types{justify-content:center}.character-profile__helds{grid-template-columns:1fr}.character-profile__boost{flex-wrap:wrap}.character-profile__season-banner{padding:7px;gap:5px}.character-profile__season-banner>.character-profile__icon{width:25px;height:25px}.character-profile__season-banner h4{font-size:16px}.character-profile__ranking{gap:5px;font-size:12px}.character-profile__ranking>.character-profile__icon{width:16px;height:16px}.character-profile__ranking strong{min-width:24px}.character-profile__ranking strong>.character-profile__icon{display:none}.character-profile__other-season{flex-wrap:wrap;padding:6px 0;gap:5px}.character-profile__other-season small{width:100%;order:2;margin-left:25px}}
@media(max-height:530px) and (min-width:601px){.character-profile__header{height:50px}.character-profile__body{height:calc(100% - 50px);padding:10px}.character-profile__header h2{font-size:23px}.character-profile__tab>.character-profile__icon{width:25px;height:25px}.character-profile__portrait{padding:4px}.character-profile__stage{height:67%}.character-profile__name{font-size:20px}.character-profile__balls{padding-top:5px}.character-profile__info-row{min-height:35px}.character-profile__general{min-height:316px}.character-profile__portrait-status{font-size:10px}}

/* Teamboard selection stays in the profile; it never changes the active combat Pokémon. */
.character-profile__team{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.character-profile__team button{flex:1 1 65px;min-width:0;max-width:108px;display:flex;flex-direction:column;align-items:center;gap:3px;background:#082434;border:1px solid #22617c;color:#c9e4f2;border-radius:5px;padding:5px;cursor:pointer;font:600 10px Arial,sans-serif}
.character-profile__team button[aria-pressed="true"]{border-color:#ffe178;background:#302a11;box-shadow:0 0 7px #facb3355;color:#ffe8a3}
.character-profile__team button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.character-profile__team canvas{width:44px;height:44px;image-rendering:pixelated}
.character-profile__team span{overflow-wrap:anywhere;text-align:center}
.character-profile__team small{font-size:9px;color:#78eed4}
.character-profile__pokemon .character-profile__pokemon-hero{min-height:120px}
.character-profile__pokemon .character-profile__pokemon-hero canvas{max-height:130px}
.character-profile__pokemon>.character-profile__note{margin:5px 0;font-size:11px}

.character-profile__collections{display:grid;gap:10px;margin-top:12px}
.character-profile__collection{width:100%;display:flex;align-items:center;gap:10px;padding:13px 10px;background:linear-gradient(120deg,#123449,#071c29);border:1px solid #2b637a;border-radius:6px;color:#c7e7f6;text-align:left;cursor:pointer;font:inherit}
.character-profile__collection:hover,.character-profile__collection:focus-visible{border-color:#ffe178;outline:1px solid #ffe178}
.character-profile__collection>span{flex:1;min-width:0;display:grid;gap:6px}
.character-profile__collection strong{font-size:14px;color:#ffe7a1}
.character-profile__collection small{display:block;color:#a1c5d8;font-size:11px;line-height:1.45}
.character-profile__collection>b{font-size:24px;text-align:center;color:#ffe178}
.character-profile__collection>.character-profile__icon{flex:none;width:24px;height:24px}
.character-profile__collection>.character-profile__icon:last-child{width:14px;height:14px}
.character-profile__collection .character-profile__track{display:block;height:5px}
.character-profile__subheading{font-size:14px;color:#c4e6f3;margin:18px 0 8px}
.character-profile__metrics{display:flex;gap:8px;margin:0}.character-profile__metrics>div{flex:1;min-width:0;background:#061923;padding:8px;border-radius:4px}.character-profile__metrics dt{font-size:11px;color:#a1c5d8}.character-profile__metrics dd{margin:6px 0 0;font-size:17px;color:#ffe178;overflow-wrap:anywhere}
.character-profile__collection-items{list-style:none;margin:12px 0;padding:0}.character-profile__collection-items li{border-bottom:1px solid #245065;padding:12px 0;display:grid;gap:6px;overflow-wrap:anywhere}.character-profile__collection-items strong{font-size:14px;color:#ffe7a1}.character-profile__collection-items span{font-size:12px;line-height:1.5;color:#b0cedc}
.character-profile__pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:14px}.character-profile__pagination button{background:#123449;border:1px solid #39738d;border-radius:4px;color:#d5edf7;font-size:20px;min-width:36px;min-height:36px;cursor:pointer}.character-profile__pagination button:disabled{opacity:.4;cursor:default}
.character-profile__rank-metric{display:block;font-size:10px;color:#a1c5d8;margin-top:3px}.character-profile__standing{padding:12px;background:#163644;border:1px solid #43838e;border-radius:5px;color:#ffe7a1;line-height:1.7}
@media(max-width:600px){.character-profile__collection{padding:10px 7px;gap:5px;flex-wrap:wrap}.character-profile__collection>.character-profile__icon:first-child{display:none}.character-profile__collection strong{font-size:12px}.character-profile__collection>b{font-size:19px}.character-profile__collection small{font-size:10px}.character-profile__metrics{flex-direction:column}.character-profile__metrics>div{display:flex;justify-content:space-between;align-items:center}.character-profile__metrics dd{margin:0}.character-profile__rankings .character-profile__ranking{flex-wrap:wrap}.character-profile__rankings .character-profile__ranking>span{min-width:60px;overflow-wrap:anywhere}.character-profile__chevron{min-height:36px;min-width:30px}}

/* A fifth profile tab without increasing the dialog height. */
.character-profile__tabs{grid-template-rows:repeat(5,minmax(0,1fr));gap:8px}
.character-profile__tab{min-height:0;padding:8px 4px}
.character-profile__tab .character-profile__icon{width:32px;height:32px}
.character-profile__bonus-heading,.character-profile__bonus-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.character-profile__bonus-heading>.character-profile__icon{color:#ffcf55;width:38px;height:38px;flex:none}
.character-profile__bonus-heading h3{margin-bottom:6px}
.character-profile__bonus-toolbar{font-size:11px;color:#a8c7d9;border-block:1px solid #1a485e;padding:10px 0;margin-bottom:12px}
.character-profile__bonus-toolbar button{border:1px solid #34708d;border-radius:5px;background:#123146;color:#d9f5ff;padding:7px 10px;cursor:pointer;font:inherit;min-height:36px}
.character-profile__bonus-toolbar button:disabled{opacity:.65;cursor:default}
.character-profile__bonus-list{display:grid;gap:9px}
.character-profile__bonus-effect{background:linear-gradient(110deg,#103247,#0a2232);border:1px solid #245569;border-radius:6px;overflow:hidden}
.character-profile__bonus-effect summary{display:flex;align-items:center;gap:10px;padding:13px 12px;cursor:pointer;list-style:none;min-height:58px}
.character-profile__bonus-effect summary::-webkit-details-marker{display:none}
.character-profile__bonus-effect summary>span{flex:1;min-width:0}
.character-profile__bonus-effect summary strong{color:#d4ebfa;font-size:13px;overflow-wrap:anywhere}
.character-profile__bonus-effect summary small{display:block;color:#95b7c9;font-size:10px;margin-top:5px}
.character-profile__bonus-effect summary>b{color:#ffda65;font-size:20px;white-space:nowrap}
.character-profile__bonus-effect summary>.character-profile__icon{width:15px;height:15px;flex:none;color:#76cae6}
.character-profile__bonus-effect[open] summary>.character-profile__icon{transform:rotate(90deg)}
.character-profile__bonus-effect ul{margin:0;padding:0 12px 8px;list-style:none;background:#061c29}
.character-profile__bonus-effect li{padding:11px 0;border-top:1px solid #173b4b}
.character-profile__bonus-effect li>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}
.character-profile__bonus-effect li b{color:#8ee2f4;white-space:nowrap}
.character-profile__bonus-effect li strong{font-weight:500;overflow-wrap:anywhere}
.character-profile__bonus-effect li p,.character-profile__bonus-effect li small{font-size:10px;color:#9bb9c8;line-height:1.5;margin:5px 0 0}
.character-profile__bonus-effect>.character-profile__note{padding:0 12px}
.character-profile__bonus-rules{font-size:11px;color:#a7c5d6;margin-top:16px;line-height:1.6}
.character-profile__bonus-rules summary{cursor:pointer;color:#8edbec;min-height:32px}
.character-profile__bonus-rules ul{padding-left:17px}
.character-profile__bonus-rules li{margin-bottom:8px}
@media(max-width:600px){.character-profile__tabs{gap:5px}.character-profile__tab{padding:4px 2px}.character-profile__tab .character-profile__icon{width:24px;height:24px}.character-profile__tab span{font-size:9px}.character-profile__bonus-effect summary{padding:12px 9px}.character-profile__bonus-effect summary>b{font-size:18px}}
@media(prefers-reduced-motion:reduce){.character-profile__bonus-effect *{transition:none}}

/* Compact totals reuse the loaded projection and its existing formatting. */
.character-profile__buff-summary{margin:0 0 20px;padding:12px;border:1px solid #7b692f;border-radius:6px;background:linear-gradient(135deg,#143440,#092230)}
.character-profile__buff-summary h4{margin:0 0 6px;color:#ffdc7e;font-size:16px;line-height:1.3}
.character-profile__buff-summary>.character-profile__note{margin:0 0 10px;font-size:10px;line-height:1.5}
.character-profile__buff-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}
.character-profile__buff-totals>div{min-width:0;padding:9px;border:1px solid #244b5c;border-radius:4px;background:#081f2d}
.character-profile__buff-totals dt{font-size:11px;color:#bddbea;line-height:1.35;overflow-wrap:anywhere}
.character-profile__buff-totals dt small{display:block;margin-top:4px;font-size:10px;color:#96b7c8}
.character-profile__buff-totals dd{margin:5px 0 0;font-size:18px;font-weight:700;line-height:1.2;color:#ffda65;overflow-wrap:anywhere}
.character-profile__buff-summary h5{margin:14px 0 4px;padding-top:12px;border-top:1px solid #315467;font-size:12px;color:#a6e6f6}
.character-profile__buff-paused{margin:10px 0 0;font-size:10px;line-height:1.5;color:#d6c999}
.character-profile__bonus-sources-title{margin:0 0 7px;color:#d4ebfa;font-size:15px}
@media(max-width:600px){.character-profile__buff-summary{padding:10px}.character-profile__buff-totals>div{padding:8px}.character-profile__buff-totals dd{font-size:17px}}
