.profile-overview{display:grid;grid-template-columns:230px minmax(0,1fr) 280px;gap:25px;align-items:start;margin:5px 0 24px}.profile-art{position:relative;min-height:280px;display:grid;place-items:center;background:linear-gradient(150deg,var(--soft),var(--panel));border:1px solid var(--line);border-radius:7px}.profile-art img{height:270px;width:220px;object-fit:contain}.profile-rating{position:absolute;top:16px;left:15px;font-size:30px;color:var(--accent);text-align:center}.profile-rating small{display:block;font-size:8px;font-weight:500}.profile-card .version-form{margin:14px 0;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.profile-card .version-form>span,.profile-card .version-form>label{display:none}.profile-card .version-form .el-select{width:100%!important}.profile-card .version-links{padding:6px 0;text-align:center}.profile-card .editions{flex-wrap:wrap;justify-content:center}.profile-info h1{font-size:27px;letter-spacing:0;margin:10px 0}.profile-info .eyebrow{margin:0;font-size:10px}.profile-english{font-size:13px;color:var(--muted);margin:0 0 10px}.profile-series{font-size:12px;color:var(--accent);font-weight:600;margin:0 0 22px}.profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px;padding:22px 14px;border:1px solid var(--line);background:var(--panel);border-radius:6px;margin:0;text-align:center}.profile-facts dt{font-size:11px;font-weight:600;color:var(--muted)}.profile-facts dt small{display:block;font-size:8px;letter-spacing:.5px;margin:4px 0 10px}.profile-facts dd{font-size:15px;font-weight:700;margin:0;overflow-wrap:anywhere}.profile-facts>div:first-child dd{display:inline-block;background:#148a51;color:#fff;border-radius:3px;padding:4px 8px}.profile-info .version-note{margin-top:24px}.profile-legacy{display:inline-block;background:var(--soft);color:var(--accent);border-radius:4px;padding:10px 13px;font-size:11px}.profile-summary h2{font-size:11px;margin:0 0 8px;color:var(--muted)}.profile-summary h2 small{font-size:9px;margin-left:5px}.profile-summary .court{padding:9px;border-radius:4px}.profile-summary .court .zone{min-height:38px}.profile-summary .court .zone small{font-size:7px}.profile-summary .court .zone b{font-size:8px}.profile-summary .court-legend{gap:7px;font-size:8px}.profile-badge-summary{border:1px solid var(--line);background:var(--panel);border-radius:5px;padding:13px;margin-top:12px}.profile-badge-summary>strong{color:var(--accent);font-size:24px}.profile-badge-summary>span{font-size:11px;color:var(--muted)}.profile-badge-summary>a{display:block;font-size:11px;color:var(--accent);margin-top:8px}.profile-tabs{display:flex;border-bottom:1px solid var(--line);gap:8px;overflow-x:auto;scroll-margin-top:12px}.profile-tabs a{padding:13px 16px;font-size:13px;white-space:nowrap;border-bottom:2px solid transparent}.profile-tabs a[aria-selected=true]{border-color:var(--accent);color:var(--accent);font-weight:600}.profile-panel{padding:18px 0;scroll-margin-top:15px}.profile-panel .panel-caption{font-size:16px;margin:0 0 18px}.profile-panel[role=tabpanel]>.panel-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.attributes-badges-layout{display:grid;grid-template-columns:minmax(340px,1fr) minmax(0,1.7fr);gap:32px}.compact-attributes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px;align-content:start}.compact-stat-group h3,.attribute-badges h2,.animation-groups h3{font-size:12px;margin:0 0 12px;color:var(--muted);font-weight:700}.compact-stat-group dl{margin:0}.compact-stat-group dl>div{display:flex;gap:8px;align-items:center;margin:5px 0;min-height:24px;font-size:12px}.compact-stat-group dt{line-height:1.5}.stat-value{margin:0;padding:3px 4px;min-width:30px;text-align:center;border-radius:3px;font-size:12px;font-weight:700;flex-shrink:0;font-variant-numeric:tabular-nums}.stat-elite{background:#138650;color:#fff}.stat-good{background:#3b8261;color:#fff}.stat-average{background:#f2cb46;color:#322700}.stat-low{background:#e99a38;color:#302000}.stat-weak{background:#c34453;color:#fff}.stat-missing{background:var(--line);color:var(--muted)}.badge-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(85px,1fr));gap:18px 10px}.badge-tile{text-align:center;padding:10px 4px}.badge-shield{display:grid;place-items:center;width:38px;height:44px;margin:0 auto 9px;clip-path:polygon(0 0,100% 0,100% 72%,50% 100%,0 72%);background:var(--soft);color:var(--accent);font-size:21px}.badge-tile strong{font-size:11px;line-height:1.5;font-weight:500;display:block;overflow-wrap:anywhere}.attribute-badges{border-left:1px solid var(--line);padding-left:26px}.tendencies-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.animation-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.animation-groups>section{background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:18px}.animation-groups dl{margin:0}.animation-groups dl>div{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.animation-groups dt{color:var(--muted);margin-bottom:8px}.animation-groups dd{margin:0;overflow-wrap:anywhere;font-weight:600}
.compact-stat-group .stat-value{order:-1}.badge-level-group{border-bottom:1px solid var(--line);padding:0 0 15px;margin-bottom:15px}.badge-level-group h3{font-size:12px;color:var(--muted);margin:0 0 10px}.badge-level-group h3 small{margin-left:6px}.badge-tone-gold .badge-shield{background:#f3da8b;color:#6a4804}.badge-tone-silver .badge-shield{background:#cdd5df;color:#3e4b5d}.badge-tone-bronze .badge-shield{background:#d9ad87;color:#654025}.badge-tone-hof .badge-shield{background:#c2a3e9;color:#503373}
.hotzone-court{display:block;width:100%;height:auto;overflow:visible;background:#647184;border:1px solid #e8eaf1}.court-area{stroke:#f3e8ef;stroke-width:1.8;stroke-linejoin:round;fill:#647184;vector-effect:non-scaling-stroke}.court-area-3{fill:#ed1260}.court-area-2{fill:#287ec3}.court-area-1{fill:#647184}.court-area-0{fill:var(--line)}.court-area:hover,.court-area:focus{filter:brightness(1.18);stroke:#fff;stroke-width:3;outline:none}.court-diagram .court-legend{margin:8px 0;font-size:8px;gap:8px}.court-diagram .court-legend span:first-child{color:#da1457}.court-diagram .court-legend span:nth-child(2){color:#287ec3}.court-data{font-size:10px;color:var(--muted);margin:10px 0}.court-data summary{cursor:pointer}.court-data dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.court-data dl>div{display:flex;justify-content:space-between;gap:5px}.court-data dd{margin:0}.badge-tone-legend .badge-shield{background:#e34051;color:#fff}.badge-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.badge-count{text-align:center;min-width:0}.badge-count .badge-shield{width:100%;max-width:44px;height:46px;margin:0 auto 5px;font-size:24px;font-weight:750}.badge-count small{font-size:8px;color:var(--muted);line-height:1.4;display:block}
@media(min-width:1450px){.profile-overview{grid-template-columns:250px minmax(0,1fr) 310px}.profile-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.profile-overview{grid-template-columns:190px minmax(0,1fr);gap:20px}.profile-summary{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.profile-summary .court{max-width:340px}.profile-art img{width:180px;height:230px}.profile-art{min-height:240px}.profile-info h1{font-size:25px}.attributes-badges-layout{grid-template-columns:minmax(300px,1.2fr) minmax(0,1fr);gap:20px}.tendencies-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.animation-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.profile-overview{grid-template-columns:110px minmax(0,1fr);gap:14px}.profile-art{min-height:160px}.profile-art img{width:100px;height:150px}.profile-rating{font-size:23px;top:8px;left:8px}.profile-rating small{font-size:6px}.profile-info h1{font-size:20px;margin:6px 0}.profile-info .eyebrow{font-size:8px;letter-spacing:0}.profile-english,.profile-series{font-size:10px}.profile-series{margin-bottom:12px}.profile-facts{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 6px;gap:14px 6px}.profile-facts dt{font-size:9px}.profile-facts dt small{font-size:7px}.profile-facts dd{font-size:12px}.profile-info .version-note{margin-top:12px;font-size:10px}.profile-card .version-form{font-size:10px}.profile-card .version-form .el-button{font-size:10px;width:100%}.profile-card .version-links{font-size:10px;line-height:1.6}.profile-summary{grid-template-columns:1fr;gap:12px}.profile-summary .court{max-width:none}.profile-tabs{gap:0}.profile-tabs a{padding:12px 10px;font-size:12px}.attributes-badges-layout{display:block}.compact-attributes{gap:20px 10px}.compact-stat-group dl>div{font-size:11px;gap:6px}.attribute-badges{border-left:0;border-top:1px solid var(--line);padding:20px 0 0;margin-top:24px}.tendencies-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.animation-groups{grid-template-columns:1fr}.badge-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Compact 2KDB-style detail data layout. */
.attributes-badges-layout{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:28px}
.compact-attributes{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 18px}
.compact-stat-group h3,.attribute-badges h2,.animation-groups h3{margin-bottom:5px}
.compact-stat-group dl>div{margin:3px 0}
.tendencies-grid{display:block;columns:4;column-gap:18px}
.tendencies-grid .compact-stat-group{display:inline-block;width:100%;break-inside:avoid;margin:0 0 12px}
.animation-groups{gap:14px}
.animation-groups>section{padding:12px}
.animation-groups dl>div{display:grid;grid-template-columns:minmax(105px,.9fr) minmax(0,1.1fr);align-items:center;gap:10px;padding:8px 0}
.animation-groups dl>div:last-child{border-bottom:0}
.animation-groups dt{margin:0}
@media(max-width:1000px){.attributes-badges-layout{grid-template-columns:1fr;gap:24px}.attribute-badges{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.tendencies-grid{columns:3}}
@media(max-width:640px){.compact-attributes{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.tendencies-grid{display:block;columns:2}.animation-groups dl>div{grid-template-columns:minmax(95px,.85fr) minmax(0,1.15fr)}}

/* Real 2K27 dictionaries may place every stat in one parent group: distribute the items, not only the groups. */
.attributes-badges-layout{grid-template-columns:1fr}
.attributes-badges-layout>.compact-attributes{display:block}
.attributes-badges-layout>.compact-attributes .compact-stat-group{margin:0 0 16px}
.attributes-badges-layout>.compact-attributes .compact-stat-group dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px}
.attributes-badges-layout>.attribute-badges{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}
@media(max-width:760px){.attributes-badges-layout>.compact-attributes .compact-stat-group dl{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}}

/* Attributes stay in two item columns; badges remain beside them on the right. */
.attributes-badges-layout{grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);align-items:start;gap:28px}
.attributes-badges-layout>.compact-attributes .compact-stat-group dl{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
.attributes-badges-layout>.attribute-badges{border-top:0;border-left:1px solid var(--line);padding:0 0 0 24px}
@media(max-width:760px){.attributes-badges-layout{grid-template-columns:1fr}.attributes-badges-layout>.attribute-badges{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}}

.conversion-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.95fr);gap:30px;align-items:start}.conversion-layout h2{font-size:12px;margin:0 0 8px;color:var(--muted)}.conversion-attributes>.compact-attributes{display:block}.conversion-attributes .compact-stat-group{margin:0 0 16px}.conversion-attributes .compact-stat-group dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}.conversion-compare{border-left:1px solid var(--line);padding-left:28px}.conversion-compare img{display:block;width:100%;height:auto;background:var(--panel);border:1px solid var(--line);border-radius:5px;min-height:220px;object-fit:contain}.conversion-attributes>.empty-panel{margin-top:4px}
@media(max-width:900px){.conversion-layout{grid-template-columns:1fr}.conversion-compare{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.conversion-compare img{max-width:640px}}
@media(max-width:640px){.conversion-attributes .compact-stat-group dl{column-gap:10px}.conversion-compare img{min-height:150px}}

/* 2KDB-like detail hero proportions and compact secondary navigation. */
@media(min-width:1001px){.profile-overview{grid-template-columns:280px minmax(0,1fr) 280px}.profile-art{min-height:390px}.profile-art img{width:270px;height:380px}}
.profile-info h1{margin-bottom:8px}.profile-info h1 small{display:inline;margin-left:9px;color:var(--muted);font-size:12px;font-weight:500;letter-spacing:.15px}.profile-series{display:flex;align-items:center;gap:5px;margin:0 0 22px;font-size:12px;font-weight:650}.profile-series a{color:var(--accent)}.profile-series a:hover{text-decoration:underline}.profile-series .ui-icon{width:13px;height:13px;color:var(--muted);stroke-width:2}.profile-facts dt{margin-bottom:10px}.profile-facts dt small{display:none}
@media(max-width:640px){.profile-info h1 small{display:block;margin:3px 0 0;font-size:9px}.profile-series{margin-bottom:12px;font-size:10px;gap:3px}.profile-series .ui-icon{width:11px;height:11px}}

.profile-version-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;margin-top:14px}.profile-version-row #playerdb-controls{min-width:0}.profile-version-row .version-form,.profile-card .profile-version-row .version-form{margin:0;max-width:none}.profile-version-icon{height:32px;padding:0 10px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:5px;background:var(--panel);color:var(--accent);font-size:12px}.profile-version-icon .ui-icon{width:15px;height:15px;flex:0 0 auto}.profile-version-icon b{font-weight:650}.profile-facts{grid-template-columns:repeat(5,minmax(0,1fr));text-align:center}.profile-facts>div:nth-child(7){grid-column:span 2}.profile-facts>div:nth-child(7) dd{font-size:13px;font-weight:600;white-space:normal;overflow-wrap:anywhere}
@media(max-width:1000px){.profile-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.profile-version-row{margin-top:8px}.profile-version-icon{height:28px;padding:0 8px}.profile-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-facts>div:nth-child(7){grid-column:1/-1}}
.conversion-layout-single{grid-template-columns:minmax(0,1fr)}
.career-content{max-width:920px;margin:0 auto;padding:24px 28px;border:1px solid var(--line);border-radius:6px;background:var(--panel)}.career-content>header{padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--line)}.career-content h2{font-size:20px;margin:0}.career-content>header p{margin:6px 0 0;color:var(--muted);font-size:12px}.career-richtext{font-size:14px;line-height:1.9;color:var(--ink);overflow-wrap:anywhere}.career-richtext h2,.career-richtext h3,.career-richtext h4{margin:24px 0 10px;line-height:1.45}.career-richtext h2{font-size:18px}.career-richtext h3{font-size:16px}.career-richtext h4{font-size:14px}.career-richtext p{margin:10px 0}.career-richtext img{display:block;max-width:100%;height:auto;margin:16px auto}.career-richtext table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.career-richtext th,.career-richtext td{padding:8px 10px;border:1px solid var(--line)}.career-richtext a{color:var(--accent);text-decoration:underline}
@media(max-width:640px){.career-content{padding:18px 15px}.career-content h2{font-size:18px}.career-richtext{font-size:13px;line-height:1.85}}
.community-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:18px;align-items:start}.community-card{padding:20px;border:1px solid var(--line);border-radius:6px;background:var(--panel)}.community-card>h2,.community-card header h2{font-size:16px;margin:0}.community-card>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.community-card>header p{font-size:11px;color:var(--muted);margin:5px 0 0}.player-remark{grid-column:1/-1}.remark-content{margin-top:14px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.remark-content img{max-width:100%;height:auto}.player-rating>header>strong{color:var(--accent);font-size:28px;line-height:1}.player-rating>header>strong small{font-size:11px;color:var(--muted);margin-left:3px}.player-rating dl{margin:18px 0 0}.player-rating dl>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center;margin:10px 0}.player-rating dt{font-size:12px;color:var(--muted)}.player-rating dd{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:8px;align-items:center;margin:0}.rating-track{display:block;height:6px;border-radius:4px;background:var(--line);overflow:hidden}.rating-track i{display:block;height:100%;background:var(--accent);border-radius:inherit}.player-rating dd b{font-size:12px;text-align:right}.rating-note,.comment-more{font-size:10px;color:var(--muted);margin:14px 0 0}.comment-list{list-style:none;padding:0;margin:15px 0 0}.comment-list li{padding:14px 0;border-top:1px solid var(--line)}.comment-list li>header{display:flex;align-items:center;gap:9px}.comment-list img,.comment-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:0 0 auto}.comment-avatar{display:grid;place-items:center;background:var(--soft);color:var(--accent);font-size:13px;font-weight:700}.comment-list header>div{min-width:0}.comment-list header strong{display:block;font-size:12px}.comment-list time{display:block;font-size:9px;color:var(--muted);margin-top:3px}.comment-votes{margin-left:auto;white-space:nowrap;font-size:9px;color:var(--muted)}.comment-list li>p{font-size:12px;line-height:1.7;margin:10px 0 0;overflow-wrap:anywhere}
@media(max-width:760px){.community-grid{grid-template-columns:1fr}.player-remark{grid-column:auto}.community-card{padding:16px}}

/* Mobile follows the 2KDB detail rhythm: title, large player art, version, then facts. */
@media(max-width:639px){
  .profile-overview{grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
  .profile-card{display:contents}
  .profile-info{display:contents}
  .profile-info h1{grid-column:1;grid-row:1;margin:4px 0 0;text-align:center}
  .profile-series{grid-column:1;grid-row:2;justify-content:center;margin:0}
  .profile-art{grid-column:1;grid-row:3;justify-self:center;width:min(260px,100%);min-height:0}
  .profile-art img{display:block;width:100%;height:auto;max-height:340px;object-fit:contain}
  .profile-version-row{grid-column:1;grid-row:4;justify-self:center;width:min(260px,100%);margin-top:0}
  .profile-version-row #playerdb-controls{min-width:0}
  .profile-version-row .version-form{width:100%}
  .profile-version-row .el-select,.profile-version-row select{width:100%!important;max-width:none}
  .profile-facts{grid-column:1;grid-row:5;width:100%;margin-top:4px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-facts>div:nth-child(7){grid-column:1/-1}
  .profile-summary{grid-column:1;grid-row:6;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
  .profile-summary .court{width:100%;max-width:none}
  .animation-groups{grid-template-columns:minmax(0,1fr)}
  .tendencies-grid{display:block;columns:2}
}
@media(min-width:640px) and (max-width:1000px){
  .profile-overview{grid-template-columns:clamp(200px,27vw,240px) minmax(0,1fr);gap:24px 28px;align-items:stretch}
  .profile-card{min-width:0;display:flex;flex-direction:column}
  .profile-art{width:100%;min-height:258px}
  .profile-art img{width:100%;height:250px;max-width:220px}
  .profile-version-row{width:100%;margin-top:auto}
  .profile-info h1{margin-top:4px}
  .profile-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 10px;padding:20px 12px}
  .profile-facts>div:nth-child(7){grid-column:1/-1}
  .profile-summary{grid-column:1/-1;grid-template-columns:minmax(220px,.8fr) minmax(300px,1.2fr);gap:24px;align-items:start}
  .profile-summary #hotzones{order:2}
  .profile-summary #hotzones>h2{display:none}
  .profile-summary .court{width:100%;max-width:420px;margin-left:auto}
  .profile-badge-summary{order:1;margin-top:0}
  .profile-tabs{scrollbar-width:thin}
}

/* Tablet: keep the version selector and compact facts card on one baseline. */
@media(min-width:640px) and (max-width:1000px){
  .profile-overview{align-items:stretch}
  .profile-card,.profile-info{display:flex;min-width:0;flex-direction:column}
  .profile-card{gap:14px}
  .profile-version-row{margin-top:auto}
  .profile-info .profile-facts{margin-top:auto}
}

/* Desktop: leave the middle column untouched and align the version selector
   with the bottom of the badge summary in the right column. */
@media(min-width:1001px){
  .profile-overview{align-items:stretch}
  .profile-card{display:flex;min-width:0;flex-direction:column;gap:14px}
  .profile-art{min-height:370px}
  .profile-art img{height:370px}
  .profile-version-row{margin-top:auto}
}
.profile-panel#ratings,.profile-panel#comments,.profile-panel#remarks{max-width:880px;margin-left:auto;margin-right:auto}

/* Animation packages use a continuous masonry-style list instead of equal-height cards. */
.animation-groups{display:block;columns:3;column-gap:30px}
.animation-groups>section{display:block;width:100%;margin:0 0 18px;padding:0;background:transparent;border:0;border-radius:0;break-inside:auto}
.animation-groups h3{margin:0 0 4px;padding:0 0 7px;border-bottom:1px solid var(--line);color:var(--ink);font-size:12px;break-after:avoid-column}
.animation-groups dl{break-inside:auto}
.animation-groups dl>div{grid-template-columns:minmax(100px,.9fr) minmax(0,1.1fr);padding:7px 0;break-inside:avoid-column}
@media(min-width:641px) and (max-width:1000px){.animation-groups{columns:2}}
@media(max-width:640px){.animation-groups{columns:1}}
.profile-panel#ratings .community-card,.profile-panel#comments .community-card,.profile-panel#remarks .community-card{width:100%}
.community-form{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.community-form h3{font-size:13px;margin:0 0 16px}
.rating-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 28px}
.rating-form h3,.rating-form>.primary,.rating-form>.form-status{grid-column:1/-1}
.rating-form label{display:grid;grid-template-columns:70px minmax(0,1fr) 25px;gap:10px;align-items:center;font-size:12px;color:var(--muted)}
.rating-form input[type=range]{width:100%;accent-color:var(--accent)}
.rating-form output{font-weight:700;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.rating-form>.primary{justify-self:start;min-width:110px}
.comment-form>label{display:block;font-size:12px;font-weight:700;margin-bottom:9px}
.comment-form textarea{display:block;width:100%;resize:vertical;min-height:104px;padding:12px 14px;border:1px solid var(--line);border-radius:5px;background:var(--bg);color:var(--ink);font:inherit;font-size:13px;line-height:1.7}
.comment-form textarea:focus{border-color:var(--accent);outline:2px solid color-mix(in srgb,var(--accent) 18%,transparent)}
.comment-form-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:10px}
.comment-form-footer>span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.form-status{min-height:18px;margin:8px 0 0;font-size:11px;color:var(--muted)}
.form-status.is-success{color:#148a51}.form-status.is-error{color:#c34453}
.community-form button:disabled{opacity:.55;cursor:wait}
.login-notice{margin:18px 0;padding:13px 15px;border-radius:5px;background:var(--soft);font-size:12px;color:var(--muted)}
.login-notice a{color:var(--accent);font-weight:700;margin-left:4px}
@media(max-width:640px){.profile-panel#ratings,.profile-panel#comments,.profile-panel#remarks{margin:0}.rating-form{grid-template-columns:1fr;gap:12px}.rating-form h3,.rating-form>.primary,.rating-form>.form-status{grid-column:auto}.rating-form label{grid-template-columns:66px minmax(0,1fr) 22px}.rating-form>.primary{width:100%}}

/* Keep detail-panel content slightly inset from the tab strip edge. */
.profile-panel{padding-left:16px;padding-right:16px}
@media(max-width:639px){.profile-panel{padding-left:10px;padding-right:10px}}

/* Badge display switch: compact colored list by default, shield grid on demand. */
.badge-view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.badge-view-heading h2{margin:0}.badge-view-switch{display:inline-flex;padding:2px;border:1px solid var(--line);border-radius:5px;background:var(--soft)}.badge-view-switch button{display:flex;align-items:center;gap:4px;padding:5px 8px;border:0;border-radius:3px;background:transparent;color:var(--muted);font-size:10px}.badge-view-switch button[aria-pressed=true]{background:var(--panel);color:var(--accent);box-shadow:0 1px 3px #00000018}.badge-view-switch .ui-icon{width:13px;height:13px}
.attribute-badges[data-badge-view-mode=list] .badge-level-group{padding-bottom:12px;margin-bottom:12px}.attribute-badges[data-badge-view-mode=list] .badge-tiles{display:flex;flex-wrap:wrap;gap:7px}.attribute-badges[data-badge-view-mode=list] .badge-tile{padding:7px 10px;border-radius:4px;text-align:left}.attribute-badges[data-badge-view-mode=list] .badge-shield{display:none}.attribute-badges[data-badge-view-mode=list] .badge-tile strong{font-size:11px;font-weight:600;line-height:1.35}.attribute-badges[data-badge-view-mode=list] .badge-tone-legend{background:#e34051;color:#fff}.attribute-badges[data-badge-view-mode=list] .badge-tone-hof{background:#c2a3e9;color:#3f285e}.attribute-badges[data-badge-view-mode=list] .badge-tone-gold{background:#f3da8b;color:#604204}.attribute-badges[data-badge-view-mode=list] .badge-tone-silver{background:#cdd5df;color:#344254}.attribute-badges[data-badge-view-mode=list] .badge-tone-bronze{background:#d9ad87;color:#59371f}.attribute-badges[data-badge-view-mode=list] .badge-tone-unknown{background:var(--soft);color:var(--ink)}
@media(max-width:640px){.badge-view-heading{align-items:flex-start}.badge-view-switch button{padding:5px 7px}.badge-view-switch button span{display:none}}

/* Give the detail artwork a subtle collectible-card frame without changing its size. */
.profile-art{position:relative;isolation:isolate;overflow:hidden;border:1px solid color-mix(in srgb,var(--line) 58%,var(--accent));border-radius:14px;box-shadow:0 20px 44px #10182824,0 5px 14px #10182818,0 0 0 3px color-mix(in srgb,var(--accent) 7%,transparent),inset 0 1px 0 #ffffffa6}
.profile-art::before{display:none}
.profile-art::after{content:"";position:absolute;z-index:0;width:86%;aspect-ratio:1;left:7%;bottom:-43%;border-radius:50%;background:color-mix(in srgb,var(--accent) 20%,transparent);filter:blur(16px);pointer-events:none}
.profile-art img{position:relative;z-index:2;filter:drop-shadow(0 14px 12px #11182742)}
[data-theme=dark] .profile-art{box-shadow:0 22px 48px #00000066,0 5px 15px #00000048,0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent),inset 0 1px 0 #ffffff14}
@media(max-width:639px){.profile-art{border-radius:11px;box-shadow:0 13px 28px #10182826,0 3px 9px #10182818,0 0 0 2px color-mix(in srgb,var(--accent) 6%,transparent)}}
