/* Player-profile duo statistics, using the existing Studio controls and palette. */
html[data-theme="studio"] .duo-view {display:grid; gap:20px; min-width:0;}
html[data-theme="studio"] .duo-view > *,
html[data-theme="studio"] .duo-view :is(.duo-main,.duo-layout > *, .duo-member-control,.duo-individual,.duo-stat-value) {min-width:0;}
html[data-theme="studio"] .duo-section-heading {display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px;}
html[data-theme="studio"] .duo-section-heading h3 {font-size:17px; margin:5px 0 0;}
html[data-theme="studio"] .duo-compare-toggle {min-height:38px; flex-shrink:0; padding:8px 13px; border:1px solid #d9e2f0; border-radius:7px; background:#fff; font-size:12px; font-weight:600; color:#64738b;}
html[data-theme="studio"] .duo-compare-toggle.active {color:var(--c-blue); border-color:#b7cdf3; background:var(--c-blue-soft);}
html[data-theme="studio"] .duo-member-controls {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px;}
html[data-theme="studio"] .duo-member-control {display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,125px); align-items:center; column-gap:12px; row-gap:7px; padding:15px; border:1px solid #dfe7f2; border-radius:8px; background:#f6f9fe;}
html[data-theme="studio"] .duo-control-label {grid-column:1; font-size:11px; color:#6d7e97;}
html[data-theme="studio"] .duo-anchor-name,
html[data-theme="studio"] .duo-player-button {grid-column:1; grid-row:2; min-width:0; overflow-wrap:anywhere; line-height:1.5; font-size:14px; font-weight:650;}
html[data-theme="studio"] .duo-player-button {display:block; max-width:100%; width:fit-content; padding:0; border:0; border-radius:3px; background:transparent; text-align:left; color:#3668ba; cursor:pointer; text-decoration:underline dotted; text-underline-offset:4px;}
html[data-theme="studio"] .duo-player-button::after {content:'⌄'; margin-left:5px;}
html[data-theme="studio"] .duo-member-control .field {grid-column:2; grid-row:1/3; display:flex; flex-direction:column; align-items:stretch; gap:5px; font-size:11px; color:#6d7e97; min-width:0;}
html[data-theme="studio"] .duo-view select {width:100%; min-width:0; max-width:100%; min-height:37px; padding:7px 25px 7px 9px; font-size:13px;}
html[data-theme="studio"] .duo-comparison-controls {margin-top:20px; padding-top:18px; border-top:1px solid #e4eaf3;}
html[data-theme="studio"] .duo-comparison-scope {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:12px;}
html[data-theme="studio"] .duo-comparison-scope > strong {font-size:13px; color:#8e5d76;}
html[data-theme="studio"] .duo-comparison-scope .field {display:flex; align-items:center; gap:9px; font-size:12px; color:#697991; min-width:0;}
html[data-theme="studio"] .duo-comparison-scope .field > span {white-space:nowrap;}
html[data-theme="studio"] .duo-comparison-scope select {width:220px;}
html[data-theme="studio"] .duo-comparison-controls .duo-member-control {background:#fff6fa; border-color:#efdfE8;}
html[data-theme="studio"] .duo-comparison-controls .duo-player-button {color:#a15079;}
html[data-theme="studio"] .duo-layout {display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:20px; align-items:start;}
html[data-theme="studio"] .duo-layout.duo-layout-integrated {grid-template-columns:minmax(0,1fr);}
html[data-theme="studio"] .duo-main {display:grid; gap:22px;}
html[data-theme="studio"] .duo-performance {padding:0; overflow:hidden;}
html[data-theme="studio"] .duo-records {display:grid; grid-template-columns:minmax(0,1fr);}
html[data-theme="studio"] .duo-records.is-comparing {grid-template-columns:repeat(2,minmax(0,1fr));}
html[data-theme="studio"] .duo-record-summary {padding:20px; background:#f4f8fe; min-width:0;}
html[data-theme="studio"] .duo-record-right {background:#fff5fa; border-left:1px solid #e5eaf2;}
html[data-theme="studio"] .duo-record-summary > strong {display:block; font-size:14px; line-height:1.6; overflow-wrap:anywhere;}
html[data-theme="studio"] .duo-record-numbers {display:flex; align-items:center; flex-wrap:wrap; gap:7px 12px; margin-top:10px; font-size:12px; color:#647892; font-variant-numeric:tabular-nums;}
html[data-theme="studio"] .duo-record-numbers b {font-size:18px; font-weight:650; color:#385780;}
html[data-theme="studio"] .duo-small-sample {display:inline-flex; padding:2px 6px; border-radius:4px; color:#87652e; background:#fff2dc; font-size:10px;}
html[data-theme="studio"] .duo-performance-scope {display:flex; justify-content:space-between; flex-wrap:wrap; gap:5px 12px; padding:10px 20px; border-bottom:1px solid #e5eaf2; font-size:11px; line-height:1.6; color:#697b96;}
html[data-theme="studio"] .duo-metric-head,
html[data-theme="studio"] .duo-metric-row {display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);}
html[data-theme="studio"] .duo-metric-table.is-comparing :is(.duo-metric-head,.duo-metric-row) {grid-template-columns:minmax(0,1.05fr) repeat(2,minmax(0,1fr));}
html[data-theme="studio"] .duo-metric-head {background:#fbfcfe; color:#77869c; font-size:11px;}
html[data-theme="studio"] .duo-metric-head > span {padding:10px 16px; overflow-wrap:anywhere;}
html[data-theme="studio"] .duo-metric-head > span:not(:first-child) {text-align:right;}
html[data-theme="studio"] .duo-metric-row {border-bottom:1px solid #edf0f5;}
html[data-theme="studio"] .duo-metric-label {display:flex; align-items:center; padding:15px 16px; color:#61738d; font-size:12px; line-height:1.6; overflow-wrap:anywhere;}
html[data-theme="studio"] .duo-metric-value {min-width:0; padding:13px 16px; text-align:right; font-variant-numeric:tabular-nums; font-size:19px; color:#365f9d;}
html[data-theme="studio"] .duo-value-right {color:#a26784; border-left:1px solid #edf0f5;}
html[data-theme="studio"] .duo-stat-value {display:inline-flex; flex-direction:column; max-width:100%; gap:3px; overflow-wrap:anywhere;}
html[data-theme="studio"] .duo-sample {display:block; font-size:10px; line-height:1.5; font-weight:400; color:#7b889c;}
html[data-theme="studio"] .duo-value-track {display:block; height:4px; margin-top:7px; border-radius:4px; background:#edf1f7; overflow:hidden;}
html[data-theme="studio"] .duo-value-track > span {display:block; height:100%; border-radius:inherit; background:#7b9edf;}
html[data-theme="studio"] .duo-value-right .duo-value-track > span {background:#d399b4;}
html[data-theme="studio"] .duo-performance-foot {padding:13px 18px;}
html[data-theme="studio"] .duo-warning {font-size:12px; line-height:1.7; color:#8a662e; margin:0 0 8px;}
html[data-theme="studio"] .duo-roster {padding:18px 16px;}
html[data-theme="studio"] .duo-roster .duo-section-heading {margin-bottom:14px; gap:10px;}
html[data-theme="studio"] .duo-roster h3 {font-size:14px; margin:0;}
html[data-theme="studio"] .duo-roster-count {font-size:11px; color:#7c899e;}
html[data-theme="studio"] #duo-partner-search {width:100%; min-width:0; min-height:38px; padding:8px 10px; font-size:13px;}
html[data-theme="studio"] .duo-partner-head,
html[data-theme="studio"] .duo-partner-row {display:grid; grid-template-columns:minmax(0,1fr) 57px 35px; gap:7px; align-items:center;}
html[data-theme="studio"] .duo-partner-head {margin-top:13px; padding:9px 5px; font-size:10px; color:#78869a; border-bottom:1px solid #e4eaf3;}
html[data-theme="studio"] .duo-partner-head > span:not(:first-child) {text-align:right;}
html[data-theme="studio"] .duo-partner-list {max-height:470px; overflow:auto; overscroll-behavior:contain;}
html[data-theme="studio"] .duo-partner-row {width:100%; min-height:57px; padding:10px 5px; border:0; border-bottom:1px solid #edf1f6; text-align:left; background:#fff; color:inherit; cursor:pointer; font-size:11px;}
html[data-theme="studio"] .duo-partner-row:hover {background:#f6f9ff;}
html[data-theme="studio"] .duo-partner-row.selected {background:#eef4ff; box-shadow:inset 3px 0 #7297df;}
html[data-theme="studio"] .duo-partner-name {display:flex; gap:7px; align-items:center; min-width:0;}
html[data-theme="studio"] .duo-partner-name strong {min-width:0; font-size:12px; font-weight:600; overflow-wrap:anywhere;}
html[data-theme="studio"] :is(.duo-partner-rate,.duo-partner-games) {text-align:right; font-variant-numeric:tabular-nums; color:#6f819d;}
html[data-theme="studio"] .duo-subheading {display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px;}
html[data-theme="studio"] .duo-subheading :is(h3,h4) {font-size:14px; margin:0;}
html[data-theme="studio"] .duo-subheading > span {font-size:11px; color:#78889e;}
html[data-theme="studio"] .duo-individual-grid {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
html[data-theme="studio"] .duo-individual {padding:16px; border:1px solid #e0e6ef; border-radius:9px; background:#fff;}
html[data-theme="studio"] .duo-individual-name {display:flex; align-items:center; gap:8px; min-width:0; margin-bottom:14px;}
html[data-theme="studio"] .duo-individual-name strong {font-size:13px; line-height:1.5; overflow-wrap:anywhere;}
html[data-theme="studio"] .duo-individual dl {display:flex; flex-direction:column; gap:9px; margin:0;}
html[data-theme="studio"] .duo-individual dl > div {display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 8px; align-items:baseline;}
html[data-theme="studio"] .duo-individual dt {font-size:11px; color:#758399;}
html[data-theme="studio"] .duo-individual dd {margin:0; font-size:13px; font-variant-numeric:tabular-nums; text-align:right;}
html[data-theme="studio"] .duo-matches {padding:18px 20px; overflow:hidden;}
html[data-theme="studio"] .duo-matches .table-scroll {max-width:100%;}
html[data-theme="studio"] .duo-picker {width:min(460px,calc(100vw - 28px)); max-height:calc(100dvh - 28px); border:1px solid #dce4ef; border-radius:14px; padding:20px; background:#fff; color:#263850; box-shadow:0 20px 80px #1c2f5038;}
html[data-theme="studio"] .duo-picker[open] {display:flex; flex-direction:column; gap:12px;}
html[data-theme="studio"] .duo-picker::backdrop {background:#18243e70;}
html[data-theme="studio"] .duo-picker-heading {display:flex; justify-content:space-between; align-items:center; gap:12px; flex-shrink:0;}
html[data-theme="studio"] .duo-picker-heading h2 {font-size:18px; margin:0;}
html[data-theme="studio"] #duo-picker-search {width:100%; min-width:0; min-height:42px; padding:10px 12px; font-size:16px; flex-shrink:0;}
html[data-theme="studio"] .duo-picker-count {font-size:12px; margin:0; color:#74839b; flex-shrink:0;}
html[data-theme="studio"] .duo-picker-list {display:flex; flex-direction:column; gap:4px; min-height:0; max-height:440px; overflow:auto; overscroll-behavior:contain;}
html[data-theme="studio"] .duo-picker-option {display:flex; align-items:center; gap:10px; width:100%; min-height:58px; flex-shrink:0; border:1px solid transparent; border-radius:8px; background:#fff; color:inherit; padding:10px; text-align:left;}
html[data-theme="studio"] .duo-picker-option:hover {background:#f6f8fc;}
html[data-theme="studio"] .duo-picker-option.selected {background:#f0f5ff; border-color:#c4d4ef;}
html[data-theme="studio"] .duo-picker-name {flex:1; min-width:0; overflow-wrap:anywhere; font-size:14px; line-height:1.5;}
html[data-theme="studio"] .duo-picker-record {font-size:12px; color:#71819b; flex-shrink:0;}
html[data-theme="studio"] .duo-view :is(button,input,select,summary):focus-visible {outline:2px solid #6387cb; outline-offset:3px;}
@media (max-width:1100px) {
  html[data-theme="studio"] .duo-layout {grid-template-columns:minmax(0,1fr) 260px; gap:15px;}
  html[data-theme="studio"] .duo-member-control {grid-template-columns:minmax(0,1fr);}
  html[data-theme="studio"] .duo-member-control .field {grid-column:1; grid-row:3; margin-top:3px;}
}
@media (max-width:850px) {
  html[data-theme="studio"] .duo-layout {grid-template-columns:minmax(0,1fr);}
}
@media (max-width:720px) {
  html[data-theme="studio"] .duo-view {gap:16px;}
  html[data-theme="studio"] .duo-member-controls {gap:10px;}
  html[data-theme="studio"] .duo-member-control {padding:12px;}
  html[data-theme="studio"] .duo-section-heading {gap:10px;}
  html[data-theme="studio"] .duo-section-heading h3 {font-size:16px;}
  html[data-theme="studio"] .duo-comparison-scope {align-items:flex-start;}
  html[data-theme="studio"] .duo-comparison-scope .field {width:100%; flex-direction:column; align-items:stretch; gap:5px;}
  html[data-theme="studio"] .duo-comparison-scope select {width:100%;}
  html[data-theme="studio"] .duo-record-summary {padding:15px 13px;}
  html[data-theme="studio"] .duo-record-summary > strong {font-size:13px;}
  html[data-theme="studio"] .duo-record-numbers {gap:5px 9px;}
  html[data-theme="studio"] .duo-record-numbers b {font-size:17px;}
  html[data-theme="studio"] .duo-performance-scope {padding:10px 13px;}
  html[data-theme="studio"] .duo-metric-head > span {padding:10px 13px;}
  html[data-theme="studio"] .duo-metric-table.is-comparing .duo-metric-head {grid-template-columns:repeat(2,minmax(0,1fr));}
  html[data-theme="studio"] .duo-metric-table.is-comparing .duo-metric-head > span:first-child {display:none;}
  html[data-theme="studio"] .duo-metric-table.is-comparing .duo-metric-row {grid-template-columns:repeat(2,minmax(0,1fr)); padding-top:11px;}
  html[data-theme="studio"] .duo-metric-table.is-comparing .duo-metric-label {grid-column:1/-1; padding:0 13px 2px;}
  html[data-theme="studio"] .duo-metric-label {font-size:12px; padding:13px;}
  html[data-theme="studio"] .duo-metric-value {font-size:18px; padding:10px 13px;}
  html[data-theme="studio"] .duo-performance-foot {padding:13px;}
  html[data-theme="studio"] .duo-individual-grid {gap:10px;}
  html[data-theme="studio"] .duo-individual {padding:13px;}
  html[data-theme="studio"] .duo-individual-name {align-items:flex-start; flex-direction:column;}
  html[data-theme="studio"] .duo-individual dl > div {flex-direction:column; gap:3px;}
  html[data-theme="studio"] .duo-individual dd {text-align:left;}
  html[data-theme="studio"] .duo-matches {padding:16px 14px;}
}
