
/* CAROMY MY MATCH HISTORY V1 */

#view-hall #caromy-my-history .cmh-toggle{
 width:100%;
 padding:0;
 border:0;
 background:transparent;
 color:inherit;
 font:inherit;
 text-align:left;
 cursor:pointer;
}

#view-hall #cmh-panel[hidden]{
 display:none!important;
}

#view-hall .cmh-chevron{
 width:9px;
 height:9px;
 margin:0 5px 4px 2px;
 border-right:2px solid currentColor;
 border-bottom:2px solid currentColor;
 transform:rotate(45deg);
}

#view-hall .cmh-toggle[aria-expanded="true"] .cmh-chevron{
 transform:rotate(225deg);
 margin-bottom:0;
}

#view-hall #cmh-panel{
 padding:14px;
 border:2px solid #b3dacc;
 border-radius:18px;
 background:#fff;
 color:#174f3b;
 box-sizing:border-box;
 font-family:inherit;
 overflow-wrap:anywhere;
}

#view-hall .cmh-summary{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:8px;
 margin-bottom:16px;
}

#view-hall .cmh-stat{
 display:flex;
 flex-direction:column;
 align-items:center;
 gap:8px;
 padding:12px 4px;
 border-radius:12px;
 background:#eff8f3;
 text-align:center;
}

#view-hall .cmh-stat strong{
 font-size:clamp(16px,4vw,22px);
}

#view-hall .cmh-stat small{
 font-size:11px;
}

#view-hall .cmh-tabs{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:6px;
 margin-bottom:12px;
}

#view-hall .cmh-tabs button{
 font:inherit;
 font-size:13px;
 font-weight:700;
 border:1px solid #b3dacc;
 border-radius:9px;
 padding:10px 4px;
 background:#fff;
 color:#174f3b;
 cursor:pointer;
}

#view-hall .cmh-tabs button[aria-pressed="true"]{
 background:#17664d;
 color:white;
}

#view-hall .cmh-row{
 display:grid;
 gap:8px;
 padding:12px 0;
 border-bottom:1px solid #d9e6dd;
 font-size:13px;
 line-height:1.5;
}

#view-hall .cmh-detail{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:10px;
}

#view-hall .cmh-bar{
 height:6px;
 border-radius:5px;
 background:#e7baba;
 overflow:hidden;
}

#view-hall .cmh-bar span{
 display:block;
 height:100%;
 background:#16856a;
}

#view-hall .cmh-message{
 padding:18px 4px;
 text-align:center;
 font-size:13px;
}

#view-hall .cmh-recent-title{
 font-size:15px;
 margin:22px 0 4px;
}

#view-hall .cmh-win{color:#087356}
#view-hall .cmh-loss{color:#b74444}


/* CAROMY_HISTORY_PORTRAITS_V2 */

#view-hall #cmh-panel .cmh-matchup{
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 column-gap:4px;
 row-gap:3px;
 min-width:0;
}

#view-hall #cmh-panel .cmh-mate{
 display:inline-flex;
 align-items:center;
 gap:3px;
 white-space:nowrap;
}

#view-hall #cmh-panel .cmh-portrait{
 display:block;
 width:20px;
 height:20px;
 flex:0 0 20px;
 border-radius:50%;
 object-fit:cover;
}

#view-hall #cmh-panel .cmh-separator{
 flex-shrink:0;
 white-space:nowrap;
}

#view-hall #cmh-panel .cmh-recent-top{
 gap:6px;
}

#view-hall #cmh-panel .cmh-score{
 flex-shrink:0;
 white-space:nowrap;
 font-variant-numeric:tabular-nums;
}

#view-hall #cmh-panel .cmh-meta-text{
 color:#222222!important;
 opacity:1!important;
}


/* CAROMY_HISTORY_POSITION_V3 */

/* Match existing 1:1 and team subgroup styling. */
#view-hall #caromy-my-history{
 margin:0 0 23px;
}

#view-hall #caromy-my-history > h3{
 font-family:inherit;
 font-size:16px!important;
 font-weight:750!important;
 color:#17664d;
 margin:0 0 12px;
 padding:0 0 0 11px;
 border-left:4px solid #0b9271;
}

#view-hall #caromy-my-history .cmh-toggle{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:10px;
 width:100%;
 padding:0;
 margin:0;
 border:0;
 border-radius:0;
 box-shadow:none;
 background:transparent;
 font:inherit;
 color:inherit;
 line-height:inherit;
 text-align:left;
 cursor:pointer;
}

#view-hall #caromy-my-history .cmh-toggle-right{
 display:inline-flex;
 align-items:center;
 gap:6px;
 margin-left:auto;
 flex-shrink:0;
 white-space:nowrap;
 font-family:inherit;
 font-size:12px;
 font-weight:600;
 color:#17664d;
}

#view-hall #caromy-my-history .cmh-triangle{
 font-size:11px;
 color:#0b9271;
 line-height:1;
}

#view-hall #caromy-my-history .cmh-toggle:focus-visible{
 outline:2px solid #0b9271;
 outline-offset:4px;
}

@media(max-width:560px){
 #view-hall #caromy-my-history > h3{
  font-size:15px!important;
 }
}


/* CAROMY_HISTORY_STATS_V4 */

#view-hall #cmh-panel .cmh-tabs{
 grid-template-columns:repeat(2,minmax(0,1fr));
 margin-bottom:14px;
}

#view-hall #cmh-panel .cmh-stat{
 min-width:0;
}

#view-hall #cmh-panel .cmh-stat strong,
#view-hall #cmh-panel .cmh-average{
 font-variant-numeric:tabular-nums;
}

#view-hall #cmh-panel .cmh-average{
 white-space:nowrap;
 flex-shrink:0;
 color:#17664d;
 font-size:14px;
}

#view-hall #cmh-panel .cmh-team-matchup{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
 align-items:stretch;
 gap:6px;
 width:100%;
 min-width:0;
}

#view-hall #cmh-panel .cmh-team{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:center;
 column-gap:4px;
 row-gap:4px;
 padding:8px 5px;
 border-radius:8px;
 font-size:12px;
 font-weight:750;
 min-width:0;
}

#view-hall #cmh-panel .cmh-team-ours{
 background:#e1f2e9;
 color:#17664d;
}

#view-hall #cmh-panel .cmh-team-theirs{
 background:#f6e9e5;
 color:#994b3c;
}

#view-hall #cmh-panel .cmh-versus{
 align-self:center;
 color:#52645a;
 font-size:12px;
 font-weight:800;
 white-space:nowrap;
}

#view-hall #cmh-panel .cmh-recent-toggle{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:8px;
 width:100%;
 padding:14px 0 4px;
 margin:4px 0;
 border:0;
 background:transparent;
 box-shadow:none;
 font:inherit;
 font-size:14px;
 color:#17664d;
 text-align:left;
 cursor:pointer;
}

#view-hall #cmh-panel .cmh-recent-toggle:focus-visible{
 outline:2px solid #0b9271;
 outline-offset:3px;
}

#view-hall #cmh-panel .cmh-recent-list[hidden]{
 display:none!important;
}

#view-hall #cmh-panel .cmh-recent-top{
 flex-wrap:wrap;
}

#view-hall #cmh-panel .cmh-recent-top .cmh-team-matchup{
 flex:0 0 100%;
}

#view-hall #cmh-panel .cmh-recent-top .cmh-score{
 margin-left:auto;
}

#view-hall #cmh-panel .cmh-meta-text{
 font-size:13px!important;
 color:#111111!important;
 opacity:1!important;
 line-height:1.5;
}

#view-hall #cmh-panel .cmh-recent-row{
 gap:5px;
}

@media(max-width:380px){
 #view-hall #cmh-panel .cmh-team-matchup{
  gap:4px;
 }

 #view-hall #cmh-panel .cmh-team{
  font-size:11px;
  padding:7px 3px;
 }
}





/* CAROMY_HISTORY_TEXT_V5B */

#view-hall #cmh-panel .cmh-meta-text{
 color:#000000!important;
 font-size:13px!important;
 opacity:1!important;
}


/* CAROMY_HISTORY_AVERAGE_V7 */

#view-hall #cmh-panel .cmh-own-stats{
 flex-direction:column;
 align-items:flex-start;
 justify-content:flex-start;
 gap:4px;
 color:#000000;
}

#view-hall #cmh-panel .cmh-own-stats .cmh-average{
 color:#000000!important;
 font-size:13px!important;
 font-weight:400!important;
 text-align:left;
 opacity:1!important;
 white-space:normal;
}
