.profile-workspace { min-width:0; }
.tcg-steam-icon { display:inline-block; width:20px; height:20px; fill:currentColor; flex:0 0 auto; }
.profile-workspace .panel { border-radius:14px!important; }
.profile-preference { min-width:0; max-width:100%; }
.profile-preference>span { display:block; margin-bottom:6px; color:var(--text-muted); font:600 12px/1.5 var(--sans); }
.profile-preference strong,.profile-preference p { font:500 14px/1.7 var(--sans); color:var(--text); overflow-wrap:anywhere; white-space:pre-wrap; margin:0; }
.profile-preference--music { flex:1 1 210px; max-width:440px; }
.profile-preference details summary { color:var(--jdm-cyan); cursor:pointer; font:600 14px/1.6 var(--sans); }
.profile-preferences { display:flex; flex-wrap:wrap; gap:18px 24px; align-items:flex-start; }
.profile-preferences .profile-preference { flex:0 1 auto; max-width:100%; }
.profile-preferences .profile-preference--music { flex:1 1 190px; max-width:360px; }
.profile-preferences .profile-preference>span { font-size:10px; line-height:1.5; margin-bottom:6px; letter-spacing:.5px; text-transform:uppercase; }
.profile-preferences .profile-favorite-value { display:inline-block; max-width:100%; box-sizing:border-box; padding:5px 10px; border:1px solid var(--jdm-violet); border-radius:5px; background:rgba(139,92,246,.05); color:var(--jdm-violet); font:600 12px/1.6 var(--sans); overflow-wrap:anywhere; white-space:normal; }
.profile-preferences details.profile-favorite-value { display:block; }
.profile-preferences .profile-favorite-value summary { font:inherit; color:inherit; }
.profile-preferences .profile-favorite-value p { padding-top:8px; font-size:12px; color:var(--text); }
.profile-socials { flex:1 0 100%; min-width:0; }
.profile-section-heading { display:flex; gap:16px; justify-content:space-between; align-items:flex-start; }
.profile-section-heading h2 { margin:0; color:var(--text); font:750 23px/1.4 var(--sans); }
.profile-section-heading p,.profile-card-invite p { margin:7px 0 16px; color:var(--text-muted); font:400 14px/1.7 var(--sans); }
.profile-card-game__intro { display:flex; flex-wrap:wrap; gap:24px; margin-top:20px; align-items:flex-start; }
.profile-touge-card { flex:0 0 160px; }.profile-touge-card h3,.profile-card-invite h3,.profile-card-invitations h3 { margin:0 0 12px; color:var(--text); font:700 16px/1.5 var(--sans); }
.profile-touge-card .tcg-compact-grid { grid-template-columns:minmax(0,150px); }
.profile-card-invite { flex:1 1 260px; min-width:0; padding:20px; border:1px solid var(--border); border-radius:10px; background:var(--bg-input); }
.profile-card-invite h3 { overflow-wrap:anywhere; }
.profile-card-game .btn { min-height:42px; border-radius:9px!important; padding:10px 15px; display:inline-flex; align-items:center; justify-content:center; gap:8px; font:650 13px/1.4 var(--sans); }
.profile-card-invitations { margin-top:22px; }.profile-card-invitation { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:14px 0; border-top:1px solid var(--border); text-decoration:none; color:var(--text); font:500 14px/1.5 var(--sans); }.profile-card-invitation strong { overflow-wrap:anywhere; }.profile-card-invitation span { color:var(--jdm-cyan); }
.profile-deck-gallery { border-top:1px solid var(--border); margin-top:24px; padding-top:18px; }.profile-deck-gallery>summary { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; cursor:pointer; font:700 17px/1.5 var(--sans); }.profile-deck-gallery>summary>span { color:var(--text-muted); font-size:13px; font-weight:400; }.profile-deck-gallery>.btn { margin-top:18px; }
.profile-editor .filter-group>label { font:600 13px/1.5 var(--sans)!important; text-transform:none!important; letter-spacing:0!important; color:var(--text-muted)!important; margin-bottom:6px; }
.profile-editor .search-input { border-radius:9px!important; font:400 14px/1.6 var(--sans)!important; min-height:44px; width:100%; }.profile-editor textarea { height:auto!important; min-height:100px; resize:vertical; padding:10px 12px; }
.profile-form-hint { display:block; color:var(--text-muted); font:400 12px/1.6 var(--sans); margin:5px 0 0; overflow-wrap:anywhere; }
.profile-upload-row { display:grid!important; grid-template-columns:minmax(200px,1fr) auto auto; align-items:stretch!important; gap:10px!important; }.profile-upload-row .upload-field { min-width:0; }.profile-upload-row .btn { min-height:44px; border-radius:9px!important; font:650 13px/1.5 var(--sans)!important; }
.profile-workspace .profile-action-bar { gap:10px; }.profile-workspace .profile-action-btn { border-radius:9px!important; font:650 13px/1.5 var(--sans)!important; padding:10px 15px!important; box-shadow:none!important; text-transform:none; letter-spacing:0!important; }
@media(max-width:700px){.profile-section-heading { flex-wrap:wrap; }.profile-card-invite { padding:16px; }.profile-upload-row { grid-template-columns:minmax(0,1fr)!important; }.profile-touge-card { flex-basis:140px; }}
.profile-workspace{gap:22px!important}.profile-workspace>.panel,.profile-workspace .grid-responsive-unequal-21>.panel,.profile-workspace .grid-responsive-unequal-21>div>.panel{border:1px solid var(--border)!important;border-radius:14px!important;background:var(--bg-card);box-shadow:none!important;margin:0!important}.profile-workspace .profile-role-badge{border-radius:6px!important;box-shadow:none!important;font:700 11px/1.5 var(--sans)!important;letter-spacing:.03em!important}.profile-workspace .profile-about-panel{padding:25px!important;gap:28px!important}.profile-workspace .profile-action-bar{display:flex;align-items:stretch;justify-content:flex-end;gap:9px;flex-wrap:wrap}.profile-workspace .btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:43px;border:1px solid var(--border)!important;border-radius:9px!important;padding:10px 16px!important;font:700 13px/1.4 var(--sans)!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important;transform:none!important;transition:background .15s,border-color .15s!important;text-decoration:none}.profile-workspace .btn:not(.btn-primary){background:rgba(255,255,255,.035)!important;color:var(--text)!important}.profile-workspace .btn.btn-primary,.profile-workspace .profile-action-edit{background:var(--jdm-cyan)!important;border-color:var(--jdm-cyan)!important;color:#071211!important}.profile-workspace .btn:hover{border-color:var(--jdm-cyan)!important}.profile-workspace .btn:focus-visible{outline:2px solid var(--jdm-cyan);outline-offset:3px}.profile-workspace .panel-title,.profile-workspace .profile-editor>h3{font:750 19px/1.4 var(--sans)!important;text-transform:none!important;font-style:normal!important;letter-spacing:0!important;color:var(--text)!important}.profile-workspace .profile-medal-card{border-radius:9px!important;box-shadow:none!important;padding:12px 16px!important}.profile-workspace .profile-medal-card>.mono{font:800 20px/1.4 var(--sans)!important}.profile-workspace .profile-deck-gallery{border:1px solid var(--border);margin:0;padding:22px}.profile-workspace .profile-card-sheet>summary{flex-wrap:wrap}.profile-workspace .profile-assigned-card{display:flex;gap:25px;justify-content:space-between;align-items:center}.profile-assigned-card h2{font:750 21px/1.4 var(--sans);margin:0 0 8px}.profile-assigned-card p{margin:0;color:var(--text-muted);font-size:14px}.profile-assigned-card .tcg-compact-grid{grid-template-columns:140px}.profile-workspace .grid-responsive-3col>div{border-radius:9px!important;padding:14px 10px!important;box-shadow:none!important}.profile-workspace .lb-table th{font-size:12px!important}.profile-workspace .lb-table td{font-size:13px!important}.profile-workspace .profile-editor{margin:0!important;padding:25px!important}.profile-workspace .profile-editor .search-input{background:var(--bg-input);border:1px solid var(--border)}@media(max-width:700px){.profile-workspace{gap:17px!important}.profile-workspace .profile-action-bar>.btn{flex:1 1 170px}.profile-workspace .profile-assigned-card{align-items:flex-start;flex-wrap:wrap}.profile-workspace .profile-medal-card{min-width:0!important;flex:1}.profile-workspace .profile-cabinet-column{min-width:0;width:100%}.profile-workspace .profile-about-panel{padding:20px!important}.profile-workspace .profile-editor{padding:20px!important}}
.profile-workspace .profile-action-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:360px;margin-left:auto}.profile-workspace .btn.profile-action-edit{background:var(--jdm-cyan)!important;border-color:var(--jdm-cyan)!important;color:#071211!important}.profile-workspace .profile-action-btn{white-space:normal;min-width:0}.profile-workspace .profile-about-panel>div:first-child>div:first-child>span{font:650 13px/1.5 var(--sans)!important;text-transform:none!important;letter-spacing:0!important}.profile-workspace .profile-about-panel>div:first-child>div:first-child>p{font:400 14px/1.75 var(--sans)!important}.profile-workspace .profile-medal-card{background:var(--bg-input)!important}@media(max-width:450px){.profile-workspace .profile-action-bar{max-width:none;grid-template-columns:minmax(0,1fr)}}
.profile-bio-copy{min-width:0;flex:1}.profile-bio-copy>span{font:650 13px/1.5 var(--sans)!important;letter-spacing:0!important;text-transform:none!important}.profile-bio-copy>p{font:400 14px/1.75 var(--sans)!important;overflow-wrap:anywhere}.profile-workspace .profile-editor{scroll-margin-top:94px}.profile-workspace .profile-editor[hidden]{display:none!important}
.profile-workspace .profile-hero-panel {
  --profile-detail-height:144px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  height:200px;
  min-height:200px;
  padding:27px!important;
}
.profile-hero-panel .profile-identity-group {
  display:flex;
  align-items:center;
  gap:20px;
  min-width:0;
}
.profile-identity-group>div:first-child { border-radius:12px; }
.profile-identity-group>div:last-child { min-width:0;flex:1; }
.profile-hero-panel .profile-identity-group h1 {
  font:800 clamp(24px,3vw,32px)/1.2 var(--sans)!important;
  font-style:normal!important;
  text-transform:none!important;
  letter-spacing:-.5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-identity-group .mono { overflow-wrap:anywhere; }
.profile-hero-panel .profile-hero-details {
  display:grid;
  grid-template-columns:122px;
  align-items:stretch;
  gap:16px;
  min-width:0;
}
.profile-hero-details.has-team { grid-template-columns:285px; }
.profile-hero-details.has-card.has-team { grid-template-columns:122px 285px; }
.profile-hero-panel .profile-hero-card,
.profile-hero-panel .profile-team-affiliation {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:none;
  height:var(--profile-detail-height);
  margin:0;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(0,0,0,.32)!important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:none;
}
.profile-hero-panel .profile-hero-card {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px;
}
.profile-hero-card>h2 {
  font:650 10px/14px var(--sans);
  color:var(--text-muted);
  margin:0;
  white-space:nowrap;
}
.profile-hero-card .tcg-card {
  flex:0 0 auto;
  width:72px;
  min-width:0;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:5px;
  background:transparent;
  box-shadow:none;
}
.profile-hero-card .tcg-card__visual { height:auto;aspect-ratio:5/7; }
.profile-hero-card .tcg-card__inspect { display:block;width:100%;height:100%;padding:0;aspect-ratio:5/7; }
.profile-hero-card .tcg-card__inspect img { display:block;width:100%;height:100%;object-fit:contain; }
.profile-hero-card .tcg-card__body,.profile-hero-card .tcg-card__inspect-label,.profile-hero-card .tcg-card__gold { display:none; }
.profile-hero-panel .profile-team-affiliation {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  padding:16px 20px;
}
.profile-team-affiliation:has(form) { justify-content:space-between; }
.profile-team-affiliation>div { min-width:0; }
.profile-team-role { flex-wrap:wrap;gap:3px 0; }
.profile-editor .grid-responsive-form-2col>div { min-width:0; }
.profile-editor .grid-responsive-inner-2col{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-editor .grid-responsive-inner-2col>.filter-group,.profile-editor .search-input{min-width:0}
@media(max-width:900px){.profile-editor .grid-responsive-form-2col{grid-template-columns:minmax(0,1fr)!important}}
.profile-team-affiliation .course-card-badge { max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
@media(max-width:760px) {
  .profile-workspace .profile-hero-panel {
    grid-template-columns:minmax(0,1fr);
    gap:20px;
    height:auto;
    min-height:0;
    padding:20px!important;
  }
  .profile-hero-panel .profile-identity-group { gap:14px; }
  .profile-hero-panel .profile-identity-group>div:first-child { width:64px!important;height:64px!important; }
  .profile-hero-panel .profile-hero-details { grid-template-columns:110px; }
  .profile-hero-details.has-team { grid-template-columns:minmax(0,1fr); }
  .profile-hero-details.has-card.has-team { grid-template-columns:110px minmax(0,1fr);gap:12px; }
  .profile-hero-panel .profile-team-affiliation { padding:14px; }
  .profile-team-affiliation .course-card-badge { max-width:110px;font-size:10px; }
}
@media(max-width:380px) {
  .profile-hero-details.has-card.has-team { grid-template-columns:96px minmax(0,1fr);gap:10px; }
  .profile-hero-card>h2 { font-size:9px; }
  .profile-hero-panel .profile-team-affiliation { padding:12px; }
}
