/* Trainer rosters use the same field-guide palette as the weakness boards. */
body.bosses-mode{min-width:0}
body.bosses-mode main>.hero,
body.bosses-mode main>.search-section,
body.bosses-mode main>.detail-section,
body.bosses-mode main>.team-section,
body.bosses-mode main>.bookmarks-section,
body.bosses-mode main>.history-section,
body.bosses-mode main>.dex-section{display:none!important}
.main-nav .nav-compact-label{display:none}

.hero-bosses-entry{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;margin-top:10px;padding:10px 13px;border:1px solid #42493b;border-radius:5px;background:#20251d;color:#c7d1b9;text-align:left}
.hero-bosses-entry>.icon{flex:none;width:17px;height:17px;color:#a5b68d}
.hero-bosses-entry>strong{font-size:11px;font-weight:600;white-space:nowrap}
.hero-bosses-entry>span{min-width:0;font-size:10px;line-height:1.5;color:#8d9b80}
.hero-bosses-entry>.icon:last-child{margin-left:auto;width:15px;height:15px}
.hero-bosses-entry:hover{border-color:#869a6d;background:#283021}

.bosses-section{min-width:0;padding-top:30px;margin-bottom:42px}
.bosses-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:19px;border-bottom:1px solid var(--line)}
.bosses-heading .eyebrow{margin:0 0 8px;color:#a0ad8f;font-size:9px;letter-spacing:1.6px}
.bosses-heading h1{margin:0;font-size:30px;line-height:1.5;letter-spacing:-.6px}
.bosses-heading>.text-button{flex:none;min-height:44px;font-size:11px}
.bosses-intro{margin:17px 0 20px;color:#a5ab9d;font-size:12px;line-height:1.9}
.bosses-search-form{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto;align-items:end;gap:13px;padding:19px;border:1px solid #424a3a;border-radius:8px;background:#20241e}
.boss-search-field{min-width:0}
.boss-search-field label{display:block;margin-bottom:8px;color:#c3cdb7;font-size:11px;font-weight:500}
.boss-search-field input,.boss-search-field select{display:block;width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #526147;border-radius:5px;background:#191e16;color:var(--ink);font:14px/1.5 var(--font)}
.boss-search-field input::placeholder{color:#7d8a71;font-size:12px}
.boss-search-field input:focus,.boss-search-field select:focus{border-color:var(--accent);outline:2px solid #ee5b4040;outline-offset:1px}
.boss-search-actions{display:flex;align-items:center;gap:10px;min-width:0}
.boss-search-actions>.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:10px 15px;font-size:12px;white-space:nowrap}
.boss-search-actions .icon{width:15px;height:15px}
.boss-search-actions>.text-button{min-height:44px;padding:8px 2px;font-size:10px;white-space:nowrap}
.bosses-data-note{margin:14px 0 0;padding-left:11px;border-left:2px solid #59654b;overflow-wrap:anywhere}
.bosses-data-note p{margin:0;color:#b1ba9f;font-size:11px;line-height:1.8}
.bosses-data-note small{display:block;margin-top:4px;color:#7f8c72;font-size:9px;line-height:1.8}
.bosses-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;margin:12px 0 8px}
#bosses-status{min-width:0;margin:0;color:#a0aa91;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
#bosses-retry{flex:none;min-height:38px;padding:7px 12px;font-size:11px}
.bosses-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;min-width:0}
.boss-card{min-width:0;padding:18px;border:1px solid #41483a;border-radius:8px;background:#22261f}
.boss-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-bottom:10px;color:#939e87;font-size:10px;line-height:1.7;overflow-wrap:anywhere}
.boss-card-version{display:inline-block;max-width:100%;padding:2px 7px;border:1px solid #5b644c;border-radius:3px;color:#bdc9ab;font-size:10px;line-height:1.7;overflow-wrap:anywhere}
.boss-card-heading{margin:0;color:var(--ink);font-size:19px;font-weight:700;line-height:1.6;letter-spacing:.2px;overflow-wrap:anywhere}
.boss-card-heading h2,.boss-card-heading h3{margin:0;font:inherit}
.boss-card-context{margin:6px 0 0;color:#a4b094;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.boss-condition{display:block;margin:8px 0 0;color:#8d9b7e;font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.boss-party{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:start;gap:5px;min-width:0;margin:17px 0 14px;padding:12px 0 0;border-top:1px solid #3b4432;list-style:none}
.boss-party-member{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;text-align:center}
.boss-party-member img{display:block;flex:none;width:48px;height:48px;max-width:100%;object-fit:contain;image-rendering:pixelated}
.boss-party-member span{display:block;max-width:100%;color:#d0d8c3;font-size:10px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.boss-party-member small{display:block;color:#8b997a;font:10px/1.5 var(--mono)}
.boss-card-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;margin-top:15px}
.boss-card-actions .boss-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:0;max-width:100%;padding:9px 15px;border:1px solid #826143;border-radius:5px;background:#3b2d22;color:#f0c49b;font-size:11px;font-weight:600;line-height:1.6}
.boss-card-actions .boss-open:hover{border-color:var(--accent);background:#4b3325;color:#ffdcc0}
.boss-card-actions .boss-open .icon{width:15px;height:15px;flex:none}
.boss-card-actions>button:not(.boss-open){min-height:44px;max-width:100%;padding:8px 11px;border:1px solid #4e5d40;border-radius:4px;background:#293321;color:#c4d0b4;font-size:10px;line-height:1.6;white-space:normal;text-align:center;overflow-wrap:anywhere}
.boss-card-actions>button:not(.boss-open):hover{border-color:#879c6c;background:#35422a}
.boss-alternatives{min-width:0;margin-top:15px;border-top:1px solid #3c4433;color:#a7b597;font-size:11px;line-height:1.8}
.boss-alternatives>summary{min-height:44px;padding:11px 0;cursor:pointer;font-weight:500;overflow-wrap:anywhere}
.boss-alternatives>summary:hover{color:#e0e7d4}
.boss-alternatives>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
.boss-alternatives[open]>summary{margin-bottom:6px}
.boss-alternatives .boss-condition{padding-top:9px;border-top:1px solid #343e2d}
.boss-alternatives .boss-party{margin-top:10px}
.boss-alternatives>div{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0;padding:9px 0;border-top:1px solid #35402c}
.boss-alternatives>div>span{flex:1;min-width:0;font-size:10px;overflow-wrap:anywhere}
.boss-alternatives button{min-height:44px;max-width:100%;padding:7px 9px;border:1px solid #4b5b3c;border-radius:4px;background:#283220;color:#c4d0b4;font-size:9px;line-height:1.6;white-space:normal;text-align:center;overflow-wrap:anywhere}
.boss-alternatives button:hover{background:#344329;border-color:#879c6c}
.boss-empty{grid-column:1/-1;padding:38px 20px;border:1px dashed #434e38;border-radius:7px;color:#a0ae90;text-align:center;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.boss-empty h2,.boss-empty h3,.boss-empty strong{display:block;margin:0 0 8px;color:#d2ddc4;font-size:15px;font-weight:600}
.boss-empty p{margin:5px 0}
.bosses-more-wrap{display:flex;justify-content:center;margin:24px 0 0}
#bosses-more{display:inline-flex;align-items:center;justify-content:center;gap:15px;min-height:46px;min-width:170px;padding:10px 20px;font-size:12px}
#bosses-more>.icon{width:16px;height:16px}

@media(max-width:1150px){
  .site-header .dex-status{display:none}
  .site-header .main-nav{gap:18px;margin-right:0}
}
@media(max-width:900px){
  .site-header .main-nav{gap:15px}
  .bosses-search-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .boss-search-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:680px){
  .site-header .main-nav{gap:8px}
  .bosses-section{padding-top:22px;margin-bottom:30px}
  .bosses-heading{align-items:flex-start;gap:9px;padding-bottom:15px}
  .bosses-heading h1{font-size:25px;letter-spacing:-.7px;line-height:1.5}
  .bosses-heading .eyebrow{font-size:8px;margin-bottom:6px}
  .bosses-heading>.text-button{min-height:44px;padding:0;font-size:9px}
  .bosses-intro{margin:14px 0 17px;font-size:11px}
  .bosses-search-form{grid-template-columns:minmax(0,1fr);gap:14px;padding:15px}
  .boss-search-field label{font-size:10px;margin-bottom:6px}
  .boss-search-field input,.boss-search-field select{min-height:44px;font-size:16px;padding:9px 10px}
  .boss-search-field input::placeholder{font-size:12px}
  .boss-search-actions{gap:15px;justify-content:space-between}
  .boss-search-actions>.primary-button{min-height:44px;padding-inline:22px;font-size:11px}
  .boss-search-actions>.text-button{font-size:10px}
  .bosses-data-note p{font-size:10px;line-height:1.8}
  .bosses-data-note small{font-size:8px;line-height:1.8}
  .bosses-status-row{min-height:48px;margin-top:10px;gap:9px}
  #bosses-status{font-size:10px}
  .bosses-results{grid-template-columns:minmax(0,1fr);gap:13px}
  .boss-card{padding:15px}
  .boss-card-heading{font-size:18px}
  .boss-card-meta,.boss-card-version{font-size:9px}
  .boss-card-context{font-size:10px}
  .boss-condition{font-size:9px}
  .boss-party{gap:4px;margin-block:14px 12px;padding-top:10px}
  .boss-party-member{gap:3px}
  .boss-party-member img{width:44px;height:44px}
  .boss-party-member span{font-size:9px;line-height:1.5}
  .boss-party-member small{font-size:9px}
  .boss-card-actions .boss-open{width:100%;font-size:11px}
  .boss-alternatives{font-size:10px}
  .boss-empty{padding:28px 17px;font-size:11px}
  .shared-team-notice:has(#bosses-return:not([hidden])){gap:4px}
  .shared-team-notice:has(#bosses-return:not([hidden])) #shared-team-caption{font-size:8px;line-height:1.35}
  .shared-team-notice:has(#bosses-return:not([hidden])) .shared-team-notice-actions{gap:3px}
  .shared-team-notice:has(#bosses-return:not([hidden])) #rename-shared-team,
  .shared-team-notice:has(#bosses-return:not([hidden])) #leave-shared-team{padding-inline:5px;font-size:0}
  .shared-team-notice:has(#bosses-return:not([hidden])) #rename-shared-team::before{content:"名前";font-size:8px}
  .shared-team-notice:has(#bosses-return:not([hidden])) #leave-shared-team::before{content:"戻る";font-size:8px}
  #bosses-return{padding-inline:5px;font-size:8px}
}
@media(max-width:480px){
  .site-header .header-inner{gap:8px}
  .site-header .main-nav{gap:3px;flex:none;margin-left:auto}
  .site-header .main-nav .nav-button{min-width:28px;padding-inline:1px;gap:3px}
  .site-header .main-nav .nav-button>.icon{margin-bottom:0}
  .site-header .main-nav #nav-team{min-width:38px;gap:3px}
  .site-header .main-nav #nav-bosses{min-width:33px}
  .site-header .main-nav .nav-button>.nav-compact-label,
  .site-header .main-nav #nav-bosses>.nav-boss-label,
  .site-header .main-nav #nav-team>#team-nav-label{position:static;display:block;width:auto;height:auto;overflow:visible;clip:auto;white-space:nowrap;font-size:7px;line-height:1.3}
  .site-header .main-nav #nav-team>.nav-history-count{right:-1px}
  .hero-bosses-entry{gap:8px;padding-inline:10px}
  .hero-bosses-entry>strong{font-size:10px}
  .hero-bosses-entry>span{font-size:9px}
  .hero-bosses-entry>.icon{width:15px;height:15px}
  .bosses-heading h1{font-size:24px}
  .bosses-heading>.text-button{font-size:8px}
}
@media(max-width:380px){
  body .site-header .brand{gap:6px}
  body .site-header .brand-ball{width:26px;height:26px}
  body .site-header .brand-copy strong{font-size:20px;letter-spacing:.2px}
  body .site-header .brand-copy>span{font-size:6px;letter-spacing:1px}
  .boss-card{padding:13px}
  .boss-party-member img{height:40px}
  .boss-party-member span{font-size:8px}
  .bosses-heading{gap:5px}
  .bosses-heading h1{font-size:22px}
  .bosses-heading>.text-button{font-size:8px}
}

/* A shared opponent stays on the left while the editable roster stays right. */
.shared-team-notice #compare-shared-team{border-color:#938265;background:#40392a;color:#eed7b5;font-weight:600}
.shared-team-notice #compare-shared-team:hover{border-color:#c7ab7b;background:#4d4430}
.shared-team-notice #compare-shared-team[aria-pressed="true"]{border-color:#82986d;background:#34412a;color:#dce8ca}
.compare-side-share{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;min-width:44px;min-height:27px;margin-left:auto;padding:3px 6px;border:1px solid #7c6850;border-radius:4px;background:#382d22;color:#e6c49e;font-size:10px;font-weight:500;line-height:1.3;white-space:nowrap}
.compare-side-share svg{display:block;flex:none;width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.compare-side-share:hover{border-color:#c39c70;background:#493729;color:#ffe0bc}
.compare-side-share:focus-visible{outline-offset:1px}
body.shared-team-compare-mode .compare-side-header h2{flex:1;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:0}
body.shared-team-compare-mode #compare-title-opponent{color:#dcc3aa}
body.shared-team-compare-mode #compare-title-own{color:#c3d8e6}
body.shared-team-compare-mode .compare-side-count{flex:none}
body.shared-team-compare-mode .shared-team-notice-actions{flex:none}
body.shared-team-compare-mode #shared-calculation-note{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
  .compare-side-share{min-width:39px;min-height:24px;padding:3px 4px;gap:3px;font-size:8px}
  .compare-side-share svg{width:12px;height:12px}
}
@media(max-width:680px){
  .shared-team-notice #compare-shared-team{padding-inline:6px;font-size:9px}
  body.shared-team-mode:not(.shared-team-compare-mode) .shared-team-notice:has(#compare-shared-team:not([hidden])):has(#bosses-return:not([hidden])) #shared-team-caption{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
  body.shared-team-mode:not(.shared-team-compare-mode) .shared-team-notice:has(#compare-shared-team:not([hidden])):has(#bosses-return:not([hidden])) .shared-team-notice-actions{flex:1;justify-content:space-between}
  .shared-team-notice:has(#compare-shared-team:not([hidden])):has(#bosses-return:not([hidden])) #rename-shared-team,
  .shared-team-notice:has(#compare-shared-team:not([hidden])):has(#bosses-return:not([hidden])) #leave-shared-team{min-width:36px}
  body.shared-team-compare-mode .shared-team-notice{gap:5px}
  body.shared-team-compare-mode #shared-team-caption{font-size:8.5px;line-height:1.35}
  body.shared-team-compare-mode .shared-team-notice-actions{gap:4px}
  body.shared-team-compare-mode .compare-side-header{gap:3px}
}
@media(max-width:380px){
  body.shared-team-mode:not(.shared-team-compare-mode) .shared-team-notice:has(#compare-shared-team:not([hidden])) #shared-team-caption{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
  body.shared-team-mode:not(.shared-team-compare-mode) .shared-team-notice:has(#compare-shared-team:not([hidden])) .shared-team-notice-actions{flex:1;justify-content:space-between}
  body.shared-team-compare-mode .compare-side-header{padding-inline:3px;gap:3px}
  body.shared-team-compare-mode .compare-side-header h2{font-size:9px}
  body.shared-team-compare-mode .compare-side-share{min-width:36px;padding-inline:3px}
}
@media(max-width:760px) and (max-height:620px){
  body.shared-team-compare-mode .compare-side-share{min-height:22px}
  body.shared-team-compare-mode #shared-calculation-note{font-size:8px;line-height:1.35}
}
