/* CS Arena — folha de estilo única.
   Origem: style.css (base) → reports.css → ui.css (tema atual, camadas de ajuste) → admin-gate.css.
   A ordem foi mantida de propósito: regras posteriores sobrescrevem as anteriores. */
/* ── style ── */
:root{
  color-scheme:dark;
  --red:#ff697c;
}
*{
  box-sizing:border-box;
}
body{
  margin:0;
  font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;
}
button,
input{
  font:inherit;
}
button{
  cursor:pointer;
}
button:disabled{
  cursor:not-allowed;
}
.top{
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:26px;
}
.logo{
  font-weight:900;
}
.logo b{
  color:var(--gold);
}
.tag{
  padding:6px 10px;
  border:1px solid #4a3d23;
  border-radius:99px;
  color:var(--gold);
  font-size:11px;
  font-weight:750;
}
.title{
  margin:0;
  font-size:29px;
  letter-spacing:-.8px;
}
.muted{
  color:var(--soft);
}
.layout{
  display:grid;
  grid-template-columns:1.1fr .9fr;
}
.card h2{
  margin:0 0 17px;
}
.hero p{
  margin:5px 0;
}
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.metric strong{
  display:block;
  font-variant-numeric:tabular-nums;
}
.metric span{
  color:var(--soft);
}
.label{
  display:block;
  font-weight:700;
  margin-bottom:6px;
}
input{
  background:#0b1120;
  border:1px solid #34425c;
  padding:12px;
  border-radius:10px;
  outline:none;
  color:white;
  width:100%;
}
input:focus{
  border-color:var(--gold);
}
.fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.mode{
  border:1px solid #47516b;
  border-radius:11px;
  padding:12px;
  color:var(--gold);
  font-weight:700;
  margin-bottom:16px;
}
.buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.primary,
.secondary{
  border:0;
  font-weight:800;
}
.hint{
  color:var(--soft);
}
.notice{
  padding:11px 13px;
  border-radius:6px;
  margin-top:16px;
}
.feedback{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:240px;
  overflow:auto;
  background:#090f1d;
  border:1px solid var(--line);
  padding:12px;
  border-radius:10px;
  font:12px/1.45 ui-monospace,monospace;
}
.live{
  color:var(--green);
}
.bad{
  color:var(--red);
}
.roomid{
  color:var(--gold);
  font-weight:900;
  overflow-wrap:anywhere;
}
.full{
  grid-column:1/-1;
}
table{
  border-collapse:collapse;
  width:100%;
  font-size:13px;
}
th,
td{
  text-align:left;
  border-bottom:1px solid var(--line);
  padding:11px 8px;
}
th{
  text-transform:uppercase;
}
tr:last-child td{
  border:0;
}
.scroll{
  overflow-x:auto;
}
.empty{
  text-align:center;
}
.graph{
  height:150px;
  display:flex;
  align-items:end;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.bar{
  flex:1;
  min-width:10px;
  border-radius:6px 6px 0 0;
  position:relative;
}
.bar label{
  position:absolute;
  bottom:100%;
  font-size:10px;
  left:50%;
  transform:translateX(-50%);
}
.tabs{
  display:flex;
  gap:8px;
  margin:15px 0;
}
.tab{
  border:1px solid var(--line);
  background:#182237;
  color:white;
  padding:8px 12px;
  border-radius:9px;
}
.tab.active{
  background:#504020;
  color:#ffde91;
}
.footer{
  text-align:center;
}
@media(max-width:740px){
  .layout{
    grid-template-columns:1fr;
  }
  .stats{
    grid-template-columns:repeat(2,1fr);
  }
  .fields{
    grid-template-columns:1fr;
  }
  .title{
    font-size:24px;
  }
  .card{
    padding:16px;
  }
}
select,
textarea{
  font:inherit;
  background:#0b1120;
  color:white;
  border:1px solid #34425c;
  border-radius:8px;
  padding:10px;
  width:100%;
}
textarea{
  min-height:180px;
}
dialog{
  color:white;
  border:1px solid #47516b;
  border-radius:16px;
  max-width:520px;
  width:90%;
}
dialog::backdrop{
  background:#000b;
}
a{
  color:#f6c65a;
}
.players{
  display:grid;
  gap:8px;
}
.player{
  padding:12px;
}
.danger{
  color:#ff697c;
}
input[type=checkbox]{
  width:auto;
}
.bar{
  background:#f6c65a;
}
.chartrow{
  display:flex;
  gap:10px;
  align-items:center;
  margin:10px 0;
}
.meter{
  height:10px;
  background:#f6c65a;
  border-radius:8px;
}
button:focus-visible{
  outline:2px solid white;
}
.evidence{
  max-width:100%;
  max-height:300px;
}
nav{
  flex-wrap:wrap;
}
section{
  scroll-margin-top:20px;
}
/* ── reports ── */
.chartgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
}
.plot{
  margin:0;
  border:1px solid #293248;
  border-radius:14px;
}
.plot figcaption{
  font-weight:750;
  margin-bottom:12px;
}
.plot svg{
  display:block;
  width:100%;
  height:auto;
}
.plot svg circle:hover{
  fill:#f6c65a;
  r:7;
}
progress{
  accent-color:#f6c65a;
  max-width:100%;
  width:150px;
}
.chartrow{
  flex-wrap:wrap;
}
.chartrow span{
  min-width:110px;
}
#historyRows>p{
  padding:14px;
  background:#0b1120;
  border-radius:10px;
}
@media(max-width:850px){
  .chartgrid{
    grid-template-columns:1fr;
  }
}
nav{
  margin-bottom:20px;
}
nav a{
  border-radius:8px;
  text-decoration:none;
}
nav a[aria-current=page]{
  font-weight:750;
}
.auth{
  margin-bottom:16px;
}
.auth summary{
  cursor:pointer;
  margin-bottom:12px;
}
.teams-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.team-card{
  border-radius:12px;
  border-top:4px solid;
}
.team-blue{
  border-color:#38bdf8;
}
.team-orange{
  border-color:#fb923c;
}
.team-player{
  display:flex;
  flex-direction:column;
  gap:3px;
  border-bottom:1px solid #293248;
  padding:12px 0;
}
.team-player:last-child{
  border-bottom:0;
}
@media(max-width:620px){
  .teams-grid{
    grid-template-columns:1fr;
  }
}
/* ── ui ── */
:root{
  --bg:#0a0d12;
  --panel:#111722;
  --line:#252d3b;
  --soft:#98a4b8;
  --green:#55d6ab;
}
body{
  background:radial-gradient(ellipse at 90% 0%,#18203355,transparent 42%),#0a0d12;
  color:#edf2fa;
  font-size:14px;
}
.app{
  max-width:1560px;
  margin:0 0 0 232px;
  padding:32px 42px 60px;
}
.top{
  position:fixed;
  top:0;
  left:0;
  width:232px;
  height:108px;
  padding:26px 22px;
  margin:0;
  display:block;
  z-index:30;
  background:#0e131b;
  border-right:1px solid #252d3b;
}
.logo{
  font-size:23px;
  letter-spacing:1px;
}
.top .tag{
  display:block;
  width:fit-content;
  font-size:9px;
  margin-top:10px;
  padding:3px 7px;
  border-color:#3b3423;
}
nav{
  position:fixed;
  left:0;
  top:108px;
  bottom:0;
  width:232px;
  padding:22px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  border-right:1px solid #252d3b;
  background:#0e131b;
  z-index:25;
}
nav::before{
  content:'PAINEL DE PARTIDAS';
  font-size:9px;
  letter-spacing:1.7px;
  color:#69768d;
  padding:0 14px 16px;
}
nav::after{
  content:'CS ARENA / BR\A Full UMP & XM8';
  white-space:pre;
  line-height:1.8;
  color:#67768e;
  font-size:10px;
  margin-top:auto;
  padding:20px 14px;
  border-top:1px solid #252d3b;
}
nav a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  color:#98a4b8;
  font-weight:600;
  border:1px solid transparent;
  transition:background .15s,color .15s;
}
nav a:hover{
  background:#1b2432;
  color:#fff;
}
nav a[aria-current=page]{
  background:#f3cb6610;
  border-color:#f3cb6626;
  color:#f3cb66;
}
nav svg{
  width:18px;
  height:18px;
  flex-shrink:0;
}
.hero{
  padding:0 0 24px;
  border-bottom:1px solid #252d3b;
  margin-bottom:20px;
}
.hero h1{
  font-size:32px;
  letter-spacing:-1px;
  font-weight:800;
}
.hero .muted{
  font-size:13px;
  margin-top:7px;
}
.page-eyebrow{
  font-size:10px;
  letter-spacing:1.9px;
  color:#f3cb66;
  margin:0 0 7px;
}
.card{
  background:#111722;
  border:1px solid #252d3b;
  border-radius:14px;
  box-shadow:none;
  padding:24px;
}
.card h2{
  font-size:16px;
  font-weight:700;
  letter-spacing:-.3px;
}
.layout{
  gap:20px;
}
.stats{
  gap:14px;
  margin:22px 0;
}
.metric{
  background:linear-gradient(135deg,#151d2a,#111722);
  border-radius:12px;
  padding:20px;
  border:1px solid #252d3b;
  position:relative;
}
.metric strong{
  font-size:29px;
  line-height:1.2;
  letter-spacing:-1px;
}
.metric span{
  display:block;
  margin-top:8px;
  font-size:11px;
}
.metric::before{
  content:'';
  position:absolute;
  right:20px;
  top:22px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#f3cb66;
}
.metric:last-child::before{
  background:#55d6ab;
}
.label{
  font-size:11px;
  color:#aab7c9;
  letter-spacing:.15px;
  margin:10px 0 7px;
}
input,
select,
textarea{
  background:#0b1019;
  border:1px solid #2d384a;
  border-radius:9px;
  min-height:44px;
  padding:11px 13px;
  color:#e7edf7;
}
input:focus,
select:focus,
textarea:focus{
  outline:2px solid #f3cb6630;
  border-color:#b89948;
}
input[type=checkbox]{
  min-height:0;
  accent-color:#f3cb66;
}
.primary,
.secondary{
  font-size:12px;
  padding:11px 15px;
  border-radius:8px;
  min-height:40px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.primary{
  background:#f3cb66;
  color:#171811;
}
.primary:hover{
  background:#ffde8b;
}
.secondary{
  background:#1d2736;
  color:#c8d4e7;
  border:1px solid #2d384a;
}
.secondary:hover{
  background:#2a374b;
  color:#fff;
}
.delete-result{
  color:#ed8c9b;
  background:transparent;
  border-color:#65304050;
}
.notice{
  border:1px solid #725c253b;
  background:#a3822010;
  border-left:3px solid #c8a546;
  font-size:12px;
}
#feedback{
  margin:0;
  border:0;
  background:transparent;
  padding:0;
  color:#98a4b8;
  font-size:12px;
  min-height:18px;
}
#feedback:empty{
  display:none;
}
.auth{
  padding:14px 18px;
  margin:14px 0 0;
}
.auth summary{
  font-size:12px;
  margin:0;
}
.auth[open] summary{
  margin-bottom:12px;
}
.hint{
  line-height:1.65;
}
#syncStatus{
  margin:12px 0 20px;
  color:#798aa4;
}
#filterSummary{
  display:inline-flex;
  padding:5px 10px;
  border:1px solid #2d384a;
  border-radius:20px;
  background:#0b1019;
  color:#a5b5ca;
  font-size:10px;
}
.filter-toolbar{
  display:grid;
  grid-template-columns:170px 220px minmax(160px,1fr) auto;
  gap:12px;
  align-items:end;
  margin-bottom:16px;
}
.filter-toolbar .label{
  margin-top:0;
}
.filter-toolbar .buttons{
  margin:0;
}
.record-list{
  display:grid;
  gap:14px;
  margin-top:20px;
}
.match-record{
  border:1px solid #2b3548;
  background:#0c121c;
  border-radius:12px;
  overflow:hidden;
}
.record-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:18px 20px;
  border-bottom:1px solid #222e40;
}
.record-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  font-weight:750;
}
.record-title .match-icon{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:8px;
  background:#f3cb6612;
  color:#f3cb66;
  font-size:16px;
}
.source-badge{
  color:#55d6ab;
  background:#55d6ab10;
  border:1px solid #55d6ab25;
  border-radius:20px;
  padding:4px 8px;
  font-size:9px;
  font-weight:650;
}
.record-date{
  font-size:10px;
  color:#7f90aa;
}
.record-summary{
  display:grid;
  gap:12px;
  padding:18px 20px;
}
.record-summary strong{
  display:block;
  font-variant-numeric:tabular-nums;
}
.record-summary span{
  font-size:10px;
  color:#7f90aa;
}
.record-footer{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 20px 18px;
}
.record-details{
  padding:0 20px 16px;
}
.record-details summary{
  cursor:pointer;
  font-size:11px;
  color:#9db0cd;
}
.record-details table{
  margin-top:10px;
}
.record-details th{
  padding:8px;
  font-size:9px;
}
.record-details td{
  font-size:11px;
  padding:10px 8px;
}
.record-origin{
  padding:0 20px 16px;
  font-size:10px;
  color:#71849e;
}
.advanced{
  margin-top:20px;
}
.advanced>summary{
  font-size:13px;
  font-weight:650;
  cursor:pointer;
  list-style-position:inside;
}
.advanced[open]>summary{
  margin-bottom:20px;
}
.capture-box{
  padding:16px;
  background:#0b1019;
  border:1px solid #253149;
  border-radius:10px;
  margin:16px 0;
}
.capture-box .buttons{
  margin:0;
}
.capture-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:end;
}
.capture-row .label{
  margin-top:0;
}
.backup-actions{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid #253149;
}
.rank-podium{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:22px 0;
}
.podium-card{
  background:#0c121c;
  border:1px solid #2b3548;
  border-radius:12px;
  padding:18px;
  position:relative;
  min-width:0;
}
.podium-card:first-child{
  border-color:#756132;
  background:linear-gradient(135deg,#f3cb6610,#0c121c);
}
.podium-pos{
  color:#f3cb66;
  font-weight:800;
}
.podium-name{
  font-size:15px;
  font-weight:700;
  margin:10px 0 5px;
  overflow-wrap:anywhere;
}
.podium-stats{
  font-size:11px;
  color:#95a7c3;
}
.rank-position{
  display:inline-grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:7px;
  color:#9cacbf;
  background:#1c2533;
}
#ranking tr:nth-child(-n+3) .rank-position{
  color:#f3cb66;
  background:#f3cb6614;
}
.scroll{
  border:1px solid #283346;
  border-radius:10px;
  background:#0b111b;
}
table{
  font-variant-numeric:tabular-nums;
}
th{
  background:#121c2a;
  color:#7e92b0;
  white-space:nowrap;
}
td{
  padding:15px 11px;
}
tbody tr:hover{
  background:#152133;
}
#ranking td:nth-child(2){
  min-width:170px;
  font-weight:600;
}
#ranking td:nth-child(2) .hint{
  font-weight:400;
  font-size:9px;
}
.rank-guide{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin:16px 0;
}
.rank-guide select{
  max-width:220px;
}
.plot{
  background:#0c121c;
  border-color:#283346;
  padding:20px;
}
.plot figcaption{
  font-size:12px;
  color:#ccd8e9;
}
.team-card{
  padding:22px;
  background:#0b121d;
}
.team-card h3{
  font-size:18px;
}
.team-player b{
  font-size:13px;
}
.footer{
  margin-top:35px;
  color:#5e6e86;
}
.roomid{
  font-size:36px;
}
.mode{
  background:#f3cb660b;
  border-color:#f3cb662b;
  font-size:12px;
}
.player{
  font-size:12px;
}
dialog{
  background:#151d2a;
  padding:28px;
  border-color:#37445c;
}
dialog h2{
  font-size:20px;
}
dialog p{
  color:#aab7c9;
}
.connection-badge{
  position:absolute;
  right:42px;
  top:36px;
  font-size:10px;
  color:#8b9bb0;
  border:1px solid #2d384a;
  border-radius:20px;
  padding:6px 10px;
  text-decoration:none;
}
.connected{
  color:#55d6ab !important;
}
.empty{
  padding:35px;
  color:#71849e;
  font-size:12px;
}
.connection-badge:before{
  content:'●';
  margin-right:6px;
}
@media(min-width:1500px){
  .app{
    padding-left:64px;
    padding-right:64px;
  }
  .connection-badge{
    right:64px;
  }
}
@media(max-width:1120px){
  .app{
    padding:28px 24px 50px;
    margin-left:200px;
  }
  nav,
  .top{
    width:200px;
  }
  .filter-toolbar{
    grid-template-columns:1fr 1fr;
  }
  .connection-badge{
    right:24px;
  }
  .rank-podium{
    gap:10px;
  }
  .podium-card{
    padding:14px;
  }
}
@media(max-width:760px){
  .app{
    margin:0;
    padding:20px 16px 90px;
  }
  .top{
    position:relative;
    left:auto;
    top:auto;
    width:auto;
    height:auto;
    padding:0 0 20px;
    background:transparent;
    border:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
  }
  .top .tag{
    display:none;
  }
  nav{
    position:fixed;
    top:auto;
    bottom:0;
    left:0;
    right:0;
    width:auto;
    flex-direction:row;
    justify-content:space-around;
    padding:8px 4px 12px;
    background:#101722f5;
    backdrop-filter:blur(18px);
    border:0;
    border-top:1px solid #2d384a;
    gap:0;
  }
  nav::before,
  nav::after{
    display:none;
  }
  nav a{
    flex-direction:column;
    gap:5px;
    padding:8px 7px;
    font-size:9px;
    border-radius:9px;
  }
  nav svg{
    width:19px;
    height:19px;
  }
  .hero{
    padding-bottom:18px;
  }
  .hero h1{
    font-size:26px;
  }
  .connection-badge{
    top:24px;
    right:18px;
    position:absolute;
    font-size:9px;
  }
  .stats{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .metric{
    padding:16px;
  }
  .metric strong{
    font-size:24px;
  }
  .metric span{
    font-size:10px;
  }
  .card{
    padding:18px;
  }
  .filter-toolbar{
    gap:10px;
  }
  .filter-toolbar>div:nth-child(3){
    grid-column:1/-1;
  }
  .filter-toolbar>.buttons{
    grid-column:1/-1;
  }
  .record-head{
    padding:15px;
    align-items:start;
  }
  .record-title{
    font-size:12px;
    flex-wrap:wrap;
    gap:7px;
  }
  .record-date{
    text-align:right;
    max-width:85px;
  }
  .record-summary{
    padding:15px;
  }
  .record-summary strong{
    font-size:18px;
  }
  .record-footer{
    padding:0 15px 15px;
  }
  .record-details{
    padding:0 15px 15px;
  }
  .record-origin{
    padding:0 15px 15px;
  }
  .record-footer .primary,
  .record-footer .secondary{
    font-size:10px;
    padding:9px 10px;
    min-height:35px;
  }
  .rank-podium{
    grid-template-columns:1fr;
    gap:8px;
  }
  .podium-card{
    display:grid;
    grid-template-columns:28px 1fr;
    gap:3px 10px;
    align-items:center;
    padding:13px;
  }
  .podium-pos{
    grid-row:1/3;
  }
  .podium-name{
    font-size:13px;
    margin:0;
  }
  .podium-stats{
    grid-column:2;
    font-size:10px;
  }
  .capture-row{
    grid-template-columns:1fr;
  }
  .capture-row .primary{
    width:100%;
  }
  .chartgrid{
    grid-template-columns:1fr;
  }
  .team-card{
    padding:16px;
  }
  .hero .muted{
    max-width:90%;
    font-size:12px;
  }
  .auth{
    padding:12px 14px;
  }
  .rank-guide{
    align-items:flex-start;
    flex-direction:column;
  }
  .rank-guide select{
    max-width:none;
    width:100%;
  }
  .plot{
    padding:15px;
  }
  .layout{
    grid-template-columns:1fr;
    gap:16px;
  }
  .connection-badge{
    max-width:130px;
  }
  .card .fields{
    grid-template-columns:1fr;
  }
  .footer{
    line-height:1.7;
  }
  .teams-grid{
    grid-template-columns:1fr;
  }
}
@media(prefers-reduced-motion:reduce){
  *{
    transition:none !important;
    scroll-behavior:auto !important;
  }
}
.mvp-name{
  font-size:12px !important;
  overflow-wrap:anywhere;
  line-height:1.65;
}
nav a:focus-visible{
  outline:2px solid #f3cb66;
}
button:disabled{
  opacity:.4;
}
.record-title .source-badge{
  white-space:nowrap;
}
.card,
.layout>*{
  min-width:0;
}
.filter-toolbar>*{
  min-width:0;
}
.filter-toolbar input,
.filter-toolbar select{
  min-width:0;
  width:100%;
  max-width:100%;
}
.scroll{
  min-width:0;
  max-width:100%;
}
.plot{
  min-width:0;
}
.capture-row>*{
  min-width:0;
}
@media(max-width:760px){
  nav{
    padding-bottom:calc(12px + env(safe-area-inset-bottom));
  }
  .app{
    padding-bottom:calc(100px + env(safe-area-inset-bottom));
  }
  .filter-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
}
@media(max-width:760px){
  .filter-toolbar input[type=month]{
    font-size:11px;
    padding:10px 8px;
  }
}
.period-overview{
  display:grid;
  gap:1px;
  margin:20px 0;
  background:#263247;
  border:1px solid #263247;
  border-radius:12px;
  overflow:hidden;
}
.period-overview>div{
  padding:17px 20px;
  background:#0c1421;
}
.period-overview span{
  display:block;
  font-size:10px;
  color:#8195b2;
  margin-bottom:8px;
}
.period-overview strong{
  display:block;
  font-size:23px;
  letter-spacing:-.5px;
  font-variant-numeric:tabular-nums;
}
.period-overview .overview-player{
  font-size:15px;
  overflow-wrap:anywhere;
}
.section-heading{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-bottom:20px;
}
.section-heading h2{
  margin:0;
}
.auto-pill{
  font-size:9px;
  color:#69dcb4;
  white-space:nowrap;
  padding:5px 9px;
  border-radius:20px;
  background:#69dcb409;
  border:1px solid #69dcb41c;
}
.results-controls{
  display:flex;
  align-items:end;
  gap:10px;
  margin:22px 0 4px;
}
.results-controls>div{
  margin-right:auto;
  min-width:170px;
}
.results-controls .label{
  margin-top:0;
}
.results-controls select{
  min-height:40px;
  font-size:11px;
  padding:9px;
}
.results-controls button{
  font-size:11px;
}
.compact .record-summary,
.compact .record-details{
  display:none;
}
.compact .record-footer{
  padding-top:13px;
  padding-bottom:13px;
}
.compact .record-head{
  padding:13px 18px;
}
.compact .record-list{
  gap:8px;
}
.player-link{
  border:0;
  background:none;
  color:#e5edf9;
  font-weight:700;
  font-size:12px;
  text-align:left;
  padding:0;
  cursor:pointer;
}
.player-link:hover{
  color:#f3cb66;
}
.player-link:focus-visible{
  outline:2px solid #f3cb66;
  outline-offset:4px;
}
.toast{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:100;
  max-width:460px;
  padding:15px 18px;
  background:#1b2a3d;
  border:1px solid #486180;
  border-radius:12px;
  box-shadow:0 12px 30px #0007;
  color:#e2ecfa;
  font-size:12px;
  line-height:1.5;
}
.toast[hidden]{
  display:none;
}
.is-loading:before{
  content:'';
  width:11px;
  height:11px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:loadspin .7s linear infinite;
}
.player-dialog{
  width:600px;
  max-width:94vw;
  max-height:85vh;
  overflow:auto;
  border-radius:18px;
}
.player-dialog h2{
  font-size:24px;
}
.player-dialog h3{
  font-size:13px;
  margin-top:26px;
}
.dialog-close{
  position:absolute;
  right:20px;
  top:20px;
  min-height:32px;
  padding:6px 10px;
}
.player-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:22px 0;
}
.player-summary>div{
  border:1px solid #304258;
  background:#0d1724;
  padding:14px;
  border-radius:10px;
}
.player-summary strong{
  display:block;
  font-size:23px;
  color:#f3cb66;
}
.player-summary span{
  display:block;
  font-size:9px;
  color:#9bb1ce;
  margin-top:7px;
}
.player-match{
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:#d8e5f7;
  text-decoration:none;
  padding:14px 0;
  border-bottom:1px solid #2a3b52;
  font-size:12px;
}
.player-match:hover{
  color:#f3cb66;
}
.player-match small{
  display:block;
  font-size:9px;
  color:#8399b7;
  margin-top:5px;
}
.match-record{
  transition:border-color .15s,transform .15s;
}
.plot:hover{
  border-color:#455a79;
}
@keyframes loadspin{to{transform:rotate(360deg)}}
@media(max-width:760px){
  .period-overview>div:last-child{
    grid-column:1/-1;
  }
  .period-overview>div{
    padding:13px 15px;
  }
  .period-overview strong{
    font-size:21px;
  }
  .section-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .results-controls{
    flex-wrap:wrap;
  }
  .results-controls>div{
    width:100%;
    margin-right:0;
  }
  .results-controls button{
    flex:1;
  }
  .toast{
    left:16px;
    right:16px;
    bottom:100px;
    max-width:none;
  }
  .player-summary{
    grid-template-columns:1fr 1fr;
  }
  .player-dialog{
    padding:20px;
  }
  .player-match{
    font-size:10px;
  }
  .player-dialog h2{
    max-width:80%;
    font-size:21px;
  }
}
@media(prefers-reduced-motion:reduce){
  .is-loading:before{
    animation:none;
  }
}
.session-status{
  padding:14px 16px;
  border:1px solid #3c5b5066;
  border-radius:10px;
  font-size:12px;
}
.permission-list{
  display:grid;
  gap:8px;
  margin:24px 0;
}
.permission-list span{
  font-size:10px;
  color:#8597b4;
}
.permission-list b{
  font-size:12px;
  font-weight:600;
  margin-bottom:12px;
}
#monitorStatus{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.monitor-card{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  padding:13px 15px;
  border:1px solid #2c3b52;
  border-radius:10px;
  background:#0c1523;
  font-size:11px;
}
.monitor-card small{
  width:100%;
  font-size:10px;
  color:#8298b8;
}
.state-pill{
  padding:4px 8px;
  border-radius:15px;
  color:#f3cb66;
  background:#f3cb6610;
  font-size:9px;
}
#graphPlayer{
  max-width:350px;
  margin-bottom:18px;
}
@media(max-width:760px){
  #monitorStatus{
    grid-template-columns:1fr;
  }
}
.job-status{
  margin-bottom:16px;
}
.roomid{
  font-variant-numeric:tabular-nums;
}
.roomid:before{
  content:"ID DA SALA";
  display:block;
  font-size:9px;
  letter-spacing:1.5px;
  color:#8799b6;
  font-weight:600;
  margin-bottom:7px;
}
#autoStatus{
  font-variant-numeric:tabular-nums;
}
@media(max-width:760px){
  .roomid{
    font-size:34px;
  }
  #autoStatus{
    font-size:11px;
    padding:12px;
    line-height:1.65;
  }
  .job-status:empty{
    display:none;
  }
}
/* Gráficos do ranking */
.rank-charts{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:16px;
  margin:0 0 20px;
}
.rank-plot figcaption{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  margin-bottom:16px;
}
.rank-plot figcaption span{
  font-size:13px;
  font-weight:700;
  color:#e5edf9;
}
.rank-plot figcaption small{
  font-size:10px;
  color:#71849e;
}
.rank-bars{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}
.rank-bar{
  display:grid;
  grid-template-columns:24px minmax(70px,130px) minmax(60px,1fr) auto;
  align-items:center;
  gap:10px;
  font-size:12px;
}
.rank-bar-pos{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:6px;
  font-size:10px;
  font-weight:700;
  color:#9cacbf;
  background:#1c2533;
}
.rank-bar-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:100%;
}
.rank-bar-track{
  display:block;
  height:12px;
  border-radius:6px;
  background:#161f2e;
  overflow:hidden;
}
.rank-bar-fill{
  display:block;
  height:100%;
  border-radius:6px;
  background:#55d6ab;
  transform-origin:left;
  animation:rankgrow .5s ease-out both;
}
.rank-bar-value{
  font-variant-numeric:tabular-nums;
  min-width:48px;
  text-align:right;
  color:#f4f7ff;
}
.rank-bar.is-gold .rank-bar-fill{
  background:linear-gradient(90deg,#b8902f,#f3cb66);
}
.rank-bar.is-gold .rank-bar-pos{
  background:#f3cb6620;
  color:#f3cb66;
}
.rank-bar.is-silver .rank-bar-fill{
  background:linear-gradient(90deg,#7d8aa0,#cbd5e1);
}
.rank-bar.is-silver .rank-bar-pos{
  background:#cbd5e118;
  color:#cbd5e1;
}
.rank-bar.is-bronze .rank-bar-fill{
  background:linear-gradient(90deg,#9a5a2c,#e0955a);
}
.rank-bar.is-bronze .rank-bar-pos{
  background:#e0955a18;
  color:#e0955a;
}
.rank-plot svg .grid{
  stroke:#232d3f;
  stroke-width:1;
}
.rank-plot svg .tick{
  fill:#71849e;
  font-size:11px;
}
.rank-plot svg .axis{
  fill:#98a4b8;
  font-size:11px;
}
.rank-plot svg .dot{
  fill:#55d6ab;
  fill-opacity:.55;
  stroke:#55d6ab;
  stroke-width:1.5;
  transition:fill-opacity .15s;
}
.rank-plot svg .dot.is-gold{
  fill:#f3cb66;
  stroke:#f3cb66;
}
.rank-plot svg .dot.is-silver{
  fill:#cbd5e1;
  stroke:#cbd5e1;
}
.rank-plot svg .dot.is-bronze{
  fill:#e0955a;
  stroke:#e0955a;
}
.rank-plot svg .dot:hover{
  fill-opacity:.95;
  r:11;
}
@keyframes rankgrow{from{transform:scaleX(0)}}
@media(max-width:1350px){
  .rank-charts{
    grid-template-columns:minmax(0,1fr);
  }
}
@media(max-width:760px){
  .rank-bar{
    grid-template-columns:22px minmax(0,1fr) auto;
    gap:4px 8px;
  }
  .rank-bar-track{
    grid-column:2/-1;
    grid-row:2;
  }
  .rank-bar-name{
    grid-column:2;
  }
}
@media(prefers-reduced-motion:reduce){
  .rank-bar-fill{
    animation:none;
  }
}
/* Gráficos — linhas, KPIs e refinamentos */
:root{
  --c-kills:#f3cb66;
  --c-damage:#55d6ab;
}
.chartgrid{
  gap:18px;
}
.charts-subtitle{
  margin:34px 0 4px;
  font-size:15px;
  letter-spacing:-.2px;
}
.rank-bar-name{
  color:#e5edf9;
  font-weight:600;
}
.metric-damage .rank-bar:not(.is-gold):not(.is-silver):not(.is-bronze) .rank-bar-fill{
  background:linear-gradient(90deg,#2f9d7d,#55d6ab);
}
.metric-kills .rank-bar:not(.is-gold):not(.is-silver):not(.is-bronze) .rank-bar-fill{
  background:linear-gradient(90deg,#a98a35,#f3cb66aa);
}
.plot-kpis{
  display:flex;
  gap:26px;
  margin:0 0 14px;
}
.plot-kpis strong{
  display:block;
  font-size:20px;
  letter-spacing:-.5px;
  font-variant-numeric:tabular-nums;
}
.plot-kpis span{
  font-size:10px;
  color:#71849e;
}
.plot-kpis .up{
  color:#55d6ab;
}
.plot-kpis .down{
  color:#ff7f90;
}
.line-plot svg .grid{
  stroke:#232d3f;
}
.line-plot svg .tick{
  fill:#71849e;
  font-size:11px;
}
.line-plot svg .line{
  stroke:var(--c-kills);
  stroke-width:2.5;
  stroke-linejoin:round;
  stroke-linecap:round;
}
.line-plot svg .pt{
  fill:#0c121c;
  stroke:var(--c-kills);
  stroke-width:2.5;
  transition:r .15s;
}
.line-plot svg .pt:hover{
  r:8;
}
.line-plot svg .pt.last{
  fill:var(--c-kills);
}
.line-plot svg .avg{
  stroke:#71849e;
  stroke-dasharray:4 5;
  stroke-width:1;
}
.line-plot svg .stop-a{
  stop-color:var(--c-kills);
  stop-opacity:.28;
}
.line-plot svg .stop-b{
  stop-color:var(--c-kills);
  stop-opacity:0;
}
.line-plot.metric-damage{
  --c-kills:var(--c-damage);
}
.line-plot figcaption{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:16px;
}
.line-plot figcaption span{
  font-size:13px;
  font-weight:700;
  color:#e5edf9;
}
.line-plot figcaption small{
  font-size:10px;
  color:#71849e;
}
.chartrow progress{
  width:100%;
  height:8px;
  appearance:none;
  border:0;
  border-radius:4px;
  overflow:hidden;
  background:#161f2e;
}
.chartrow progress::-webkit-progress-bar{
  background:#161f2e;
}
.chartrow progress::-webkit-progress-value{
  background:#f3cb66;
  border-radius:4px;
}
article>h3{
  font-size:14px;
  margin:26px 0 8px;
}
/* Itens de menu restritos ao administrador */
nav [hidden],
.auth[hidden]{
  display:none;
}
[data-admin-only][hidden]{
  display:none !important;
}
/* Modal de confronto */
.match-dialog{
  width:760px;
}
.match-dialog .teams-grid{
  margin-top:8px;
}
.match-dialog .player-summary{
  grid-template-columns:repeat(3,1fr);
}
button.player-match{
  width:100%;
  background:none;
  border:0;
  border-bottom:1px solid #2a3b52;
  font:inherit;
  cursor:pointer;
  text-align:left;
}
@media(max-width:760px){
  .match-dialog .teams-grid{
    grid-template-columns:1fr;
  }
}
.match-dialog .team-card{
  padding:16px 18px;
}
.match-dialog .team-card h3{
  font-size:15px;
  margin:0 0 4px;
}
.match-dialog .team-player{
  padding:9px 0;
  gap:2px;
}
.match-dialog .team-player b{
  font-size:12px;
}
.match-dialog .team-player span{
  font-size:11px;
}
/* Polimento: tipografia, cards e ordenação */
body{
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"tnum" 1,"cv11" 1;
}
.hint{
  font-size:12px;
}
th{
  font-size:11px !important;
  letter-spacing:.6px;
}
td{
  font-size:13px !important;
}
.metric span,
.period-overview span,
.record-summary span,
.player-summary span,
.podium-stats{
  font-size:12px !important;
}
.record-date,
.source-badge,
.auto-pill,
.state-pill,
.connection-badge{
  font-size:11px !important;
}
.footer{
  font-size:12px !important;
}
nav a{
  font-size:14px;
}
nav::before,
.page-eyebrow{
  font-size:11px;
}
.players-badge{
  font-size:11px;
  color:#9db0cd;
  border:1px solid #2d384a;
  border-radius:20px;
  padding:4px 9px;
  white-space:nowrap;
}
.period-overview{
  grid-template-columns:.7fr 1fr 1fr 1.3fr !important;
}
.period-overview small{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:#8195b2;
}
.record-summary{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.record-summary strong{
  font-size:20px;
}
.record-summary .mvp-name{
  font-size:14px !important;
}
.day-heading{
  margin:22px 0 2px;
  font-size:13px;
  color:#c8d4e7;
  display:flex;
  align-items:baseline;
  gap:10px;
  letter-spacing:-.1px;
}
.day-heading:first-child{
  margin-top:4px;
}
.day-heading small{
  font-size:11px;
  color:#71849e;
  text-transform:none;
  font-weight:400;
}
.match-record:hover{
  transform:translateY(-1px);
}
.th-sort{
  all:unset;
  cursor:pointer;
  color:inherit;
  padding:2px 0;
}
.th-sort:hover,
.th-sort:focus-visible{
  color:#f3cb66;
}
th[data-sort].active .th-sort{
  color:#f3cb66;
}
th[data-sort].active .th-sort::after{
  content:" ▾";
}
.podium-card{
  transition:transform .15s,border-color .15s;
}
.podium-card:hover{
  transform:translateY(-2px);
  border-color:#756132;
}
.rank-bar-name,
.rank-bar-value{
  font-size:13px;
}
@media(max-width:760px){
  .period-overview{
    grid-template-columns:1fr 1fr !important;
  }
  .record-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  td{
    font-size:12px !important;
  }
}
/* ===== Cores e efeitos ===== */
:root{
  --gold:#f3cb66;
  --silver:#cbd5e1;
  --bronze:#e0955a;
  --ok:#55d6ab;
  --bad:#ff7f90;
  --blue:#38bdf8;
  --orange:#fb923c;
}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes glow{0%,100%{box-shadow:0 0 0 1px #f3cb6633,0 0 22px #f3cb6614}50%{box-shadow:0 0 0 1px #f3cb6655,0 0 34px #f3cb6630}}
@keyframes shine{from{background-position:-200% 0}to{background-position:200% 0}}
body:not(.booted) .match-record,
body:not(.booted) .podium-card,
body:not(.booted) .metric,
body:not(.booted) .plot{
  animation:rise .5s ease-out both;
}
body:not(.booted) .match-record:nth-child(2n),
body:not(.booted) .podium-card:nth-child(2){
  animation-delay:.08s;
}
body:not(.booted) .podium-card:nth-child(3){
  animation-delay:.16s;
}
/* Pódio */
.podium-card{
  overflow:hidden;
}
.podium-card::before{
  content:'';
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
}
.pc-1{
  border-color:#8a7233 !important;
  background:linear-gradient(160deg,#f3cb6620,#0c121c 60%) !important;
  animation:glow 3.5s ease-in-out infinite;
}
.pc-1::before{
  background:linear-gradient(90deg,#b8902f,#f3cb66,#b8902f);
  background-size:200% 100%;
  animation:shine 4s linear infinite;
}
.pc-2{
  border-color:#5b6678 !important;
  background:linear-gradient(160deg,#cbd5e118,#0c121c 60%) !important;
}
.pc-2::before{
  background:linear-gradient(90deg,#7d8aa0,#cbd5e1);
}
.pc-3{
  border-color:#7a4d2c !important;
  background:linear-gradient(160deg,#e0955a18,#0c121c 60%) !important;
}
.pc-3::before{
  background:linear-gradient(90deg,#9a5a2c,#e0955a);
}
.pc-1 .podium-pos{
  color:var(--gold);
}
.pc-2 .podium-pos{
  color:var(--silver);
}
.pc-3 .podium-pos{
  color:var(--bronze);
}
.podium-pos{
  font-size:15px !important;
}
/* Tabela do ranking */
.rk-row.top-1{
  background:linear-gradient(90deg,#f3cb6614,transparent 55%);
}
.rk-row.top-2{
  background:linear-gradient(90deg,#cbd5e110,transparent 55%);
}
.rk-row.top-3{
  background:linear-gradient(90deg,#e0955a10,transparent 55%);
}
.rk-row.top-1 .rank-position{
  background:var(--gold) !important;
  color:#1a1405 !important;
}
.rk-row.top-2 .rank-position{
  background:var(--silver) !important;
  color:#10151d !important;
}
.rk-row.top-3 .rank-position{
  background:var(--bronze) !important;
  color:#1a0f06 !important;
}
td.c-kills{
  color:var(--gold);
  font-weight:700;
}
td.c-dmg{
  color:var(--ok);
  font-weight:600;
}
td.wr-high{
  color:var(--ok);
  font-weight:700;
}
td.wr-low{
  color:var(--bad);
}
td.c-mvp{
  color:var(--gold);
  font-weight:700;
}
/* Card de partida */
.win-badge{
  font-size:11px;
  font-weight:700;
  color:#1a1405;
  background:linear-gradient(90deg,#d9ac3f,#f3cb66);
  border-radius:20px;
  padding:4px 10px;
  white-space:nowrap;
}
.record-summary .sum-kills strong{
  color:var(--gold);
}
.record-summary .sum-dmg strong{
  color:var(--ok);
}
.record-summary .sum-top strong{
  color:#fff;
}
.record-summary .sum-mvp strong{
  color:var(--gold);
}
.record-summary .sum-mvp{
  border-left:2px solid #f3cb6655;
  padding-left:12px;
}
.match-record:hover{
  border-color:#6b5a2a;
  box-shadow:0 8px 30px #0005;
}
.period-overview strong{
  background:linear-gradient(90deg,#f3cb66,#ffe7a3);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.period-overview .overview-player{
  background:none;
  color:#d6e5fa;
  -webkit-text-fill-color:#d6e5fa;
}
.metric strong{
  background:linear-gradient(180deg,#fff,#b9c6dc);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
/* Confronto (modal) */
.match-dialog::backdrop{
  background:#000c;
  backdrop-filter:blur(4px);
}
.match-dialog[open]{
  animation:rise .3s ease-out;
}
.match-dialog[open] .team-card{
  animation:rise .45s ease-out both;
}
.match-dialog[open] .team-card:nth-child(2){
  animation-delay:.1s;
}
.team-card{
  position:relative;
  overflow:hidden;
}
.team-card.is-winner{
  background:linear-gradient(160deg,#f3cb6616,#0b121d 55%) !important;
  box-shadow:0 0 0 1px #f3cb6640,0 10px 40px #f3cb6612;
}
.team-card.is-winner h3{
  color:var(--gold);
}
.team-card.is-winner h3::after{
  content:'🏆';
  margin-left:8px;
  font-size:15px;
}
.team-card.is-loser{
  opacity:.82;
}
.team-card.is-loser h3{
  color:#9fb0c7;
}
.team-player{
  border-radius:8px;
  padding-left:10px !important;
  padding-right:10px !important;
  margin:0 -10px;
  transition:background .15s;
}
.team-player:hover{
  background:#ffffff08;
}
.tp-name{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.pill-mvp,
.pill-top{
  font-style:normal;
  font-size:10px;
  font-weight:700;
  border-radius:20px;
  padding:2px 8px;
  letter-spacing:.3px;
}
.pill-mvp{
  color:#1a1405;
  background:linear-gradient(90deg,#d9ac3f,#f3cb66);
}
.pill-top{
  color:#ffb3bd;
  background:#ff7f9018;
  border:1px solid #ff7f9040;
}
.team-player.is-mvp{
  background:linear-gradient(90deg,#f3cb6618,transparent);
  box-shadow:inset 3px 0 0 var(--gold);
}
.pstats{
  font-variant-numeric:tabular-nums;
}
.stat-kills{
  color:var(--gold);
  font-weight:700;
}
.stat-dmg{
  color:var(--ok);
  font-weight:600;
}
.match-dialog .player-summary>div:nth-child(2) strong{
  color:var(--gold);
}
.match-dialog .player-summary>div:nth-child(3) strong{
  color:var(--ok);
}
@media(prefers-reduced-motion:reduce){
  .pc-1,
  .pc-1::before{
    animation:none !important;
  }
  body:not(.booted) *{
    animation:none !important;
  }
}
/* ===== Salas e Configurações ===== */
.step-title{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:17px !important;
}
.step{
  display:inline-grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:8px;
  font-size:12px;
  font-weight:800;
  color:#1a1405;
  background:linear-gradient(135deg,#d9ac3f,#f3cb66);
}
.card .hint+.label,
.card .label:first-of-type{
  margin-top:12px;
}
.card{
  transition:border-color .15s;
}
.card:hover{
  border-color:#34425b;
}
/* Login recolhido/aberto */
.auth{
  border-color:#3a3220;
  background:linear-gradient(135deg,#f3cb6608,#0e141e);
}
.auth summary{
  font-weight:700;
  color:#e6d39a;
}
.auth[open]{
  box-shadow:0 0 0 1px #f3cb6620;
}
/* Modo padrão */
.mode{
  display:flex;
  align-items:center;
  gap:12px;
  letter-spacing:.3px;
}
.mode span{
  font-size:10px;
  font-weight:800;
  color:#1a1405;
  background:var(--gold);
  border-radius:20px;
  padding:3px 9px;
}
/* Aviso de início automático */
#autoStatus.is-urgent,
.notice.is-urgent{
  border-left-color:#ff7f90;
  background:#ff7f9014;
  color:#ffc0c8;
  animation:glowred 1.6s ease-in-out infinite;
}
@keyframes glowred{50%{box-shadow:0 0 0 1px #ff7f9055,0 0 22px #ff7f9022}}
/* Sala selecionada */
.room-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:18px 0 6px;
}
.room-head .roomid{
  margin:0;
}
.room-state{
  font-size:11px;
  font-weight:700;
  border-radius:20px;
  padding:5px 12px;
  border:1px solid;
  white-space:nowrap;
}
.room-state::before{
  content:'●';
  margin-right:6px;
}
.state-none{
  color:#8597b4;
  border-color:#2d384a;
  background:#0b1019;
}
.state-active{
  color:#55d6ab;
  border-color:#55d6ab40;
  background:#55d6ab12;
}
.state-started{
  color:#38bdf8;
  border-color:#38bdf840;
  background:#38bdf812;
}
.state-ended{
  color:#98a4b8;
  border-color:#98a4b840;
  background:#98a4b810;
}
.state-unknown{
  color:#f3cb66;
  border-color:#f3cb6640;
  background:#f3cb6610;
}
.state-active::before{
  animation:pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{50%{opacity:.25}}
/* Participantes */
.players{
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr)) !important;
  margin:14px 0;
}
.player{
  display:flex;
  align-items:center;
  gap:10px;
  background:#0c121c !important;
  border:1px solid #263348 !important;
  border-radius:10px !important;
}
.avatar{
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:30px;
  height:30px;
  border-radius:50%;
  font-weight:800;
  font-size:13px;
  color:#0a0d12;
}
.avatar.team-a{
  background:linear-gradient(135deg,#38bdf8,#7dd3fc);
}
.avatar.team-b{
  background:linear-gradient(135deg,#fb923c,#fdba74);
}
.player-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:600;
}
/* Botões */
.btn-danger{
  color:#ff9aa8 !important;
  border-color:#ff7f9040 !important;
  background:#ff7f9010 !important;
}
.btn-danger:hover:not(:disabled){
  background:#ff7f9025 !important;
  color:#fff !important;
}
.primary{
  box-shadow:0 4px 14px #f3cb6620;
}
.primary:hover:not(:disabled){
  transform:translateY(-1px);
}
.primary,
.secondary{
  transition:transform .12s,background .15s,box-shadow .15s;
}
.primary:disabled{
  box-shadow:none;
  filter:grayscale(.4);
}
/* Sessão */
.session-status{
  display:flex;
  align-items:center;
  gap:10px;
  color:#98a4b8;
  border-color:#2d384a;
  background:#0b1019;
}
.session-status::before{
  content:'●';
  color:#71849e;
}
.session-status.is-active{
  color:#9ccfb9;
  border-color:#3c5b5066;
  background:#55d6ab0c;
}
.session-status.is-active::before{
  color:#55d6ab;
}
/* Permissões */
.perm-grid{
  display:grid;
  gap:10px;
  margin:18px 0;
}
.perm{
  padding:14px 16px;
  border:1px solid #263348;
  border-left-width:3px;
  border-radius:10px;
  background:#0c121c;
}
.perm span{
  display:block;
  font-size:11px;
  color:#8597b4;
  margin-bottom:5px;
}
.perm b{
  font-size:13px;
  font-weight:600;
}
.perm-public{
  border-left-color:#55d6ab;
}
.perm-admin{
  border-left-color:#f3cb66;
}
.perm-data{
  border-left-color:#38bdf8;
}
/* Atividade */
.event-log{
  display:grid;
  border:1px solid #283346;
  border-radius:10px;
  background:#0b111b;
  max-height:340px;
  overflow:auto;
}
.event-row{
  display:grid;
  grid-template-columns:150px 1fr auto;
  gap:14px;
  align-items:center;
  padding:11px 16px;
  border-bottom:1px solid #1c2636;
  font-size:13px;
}
.event-row:last-child{
  border-bottom:0;
}
.event-row:hover{
  background:#121b2a;
}
.event-row time{
  color:#71849e;
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.state-pill.is-ok{
  color:#55d6ab;
  background:#55d6ab12;
}
.state-pill.is-bad{
  color:#ff7f90;
  background:#ff7f9014;
}
.event-log .empty{
  padding:24px;
  margin:0;
}
@media(max-width:760px){
  .event-row{
    grid-template-columns:1fr auto;
    gap:4px 10px;
  }
  .event-row time{
    grid-column:1/-1;
  }
}
@media(prefers-reduced-motion:reduce){
  #autoStatus.is-urgent,
  .state-active::before{
    animation:none;
  }
}
/* ── admin-gate ── */
/* Tela de acesso /admin e proteção das páginas de administração */
.gate-page{
  min-height:100vh;
}
.gate{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:26px;
  padding:24px 16px;
}
.gate .logo{
  font-size:26px;
}
.gate-card{
  width:100%;
  max-width:400px;
  padding:34px 30px;
  border:1px solid #252d3b;
  border-radius:16px;
  background:linear-gradient(160deg,#151d2a,#0e141e);
  box-shadow:0 20px 60px #0007;
  animation:rise .45s ease-out both;
}
.gate-lock{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  margin-bottom:18px;
  border-radius:12px;
  color:#f3cb66;
  background:#f3cb6612;
  border:1px solid #f3cb6630;
}
.gate-lock svg{
  width:22px;
  height:22px;
}
.gate-card h1{
  margin:0 0 8px;
  font-size:23px;
  letter-spacing:-.5px;
}
.gate-card .muted{
  margin:0 0 22px;
  font-size:13px;
}
.gate-card .primary{
  width:100%;
  margin-top:16px;
  min-height:44px;
}
.gate-error{
  margin:10px 0 0;
  font-size:12px;
  color:#ff9aa8;
  background:#ff7f9012;
  border:1px solid #ff7f9035;
  border-radius:8px;
  padding:9px 12px;
}
.gate-error[hidden]{
  display:none;
}
.gate-back{
  display:block;
  margin-top:22px;
  text-align:center;
  font-size:12px;
  color:#71849e;
  text-decoration:none;
}
.gate-back:hover{
  color:#f3cb66;
}
/* Páginas de admin ficam ocultas até a sessão ser confirmada */
body[data-admin-page]:not(.authed) main,
body[data-admin-page]:not(.authed) nav,
body[data-admin-page]:not(.authed) .top{
  visibility:hidden;
}

/* ===== Gráficos: seções, KPIs, placar por time e partidas ===== */
.charts-card{padding-top:20px}
.chips-summary{display:inline-flex;margin:0 0 6px;font-size:12px;color:#a5b5ca;padding:5px 12px;border:1px solid #2d384a;border-radius:20px;background:#0b1019}
.chips-summary:empty{display:none}
.charts-section{margin-top:30px}.charts-section:first-of-type{margin-top:14px}
.charts-section>header{margin-bottom:14px}
.charts-section .charts-subtitle{margin:0 0 4px;font-size:16px;letter-spacing:-.3px}
.charts-section>header .hint{margin:0}

/* KPIs */
.kpi-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.kpi{position:relative;padding:16px 16px 14px;border:1px solid #263348;border-radius:12px;background:linear-gradient(160deg,#151d2a,#0e141e);overflow:hidden;min-width:0}
.kpi::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#3a4a63}
.kpi span{display:block;font-size:11px;color:#8597b4;letter-spacing:.4px;text-transform:uppercase}
.kpi strong{display:block;margin:7px 0 3px;font-size:21px;letter-spacing:-.5px;line-height:1.25;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kpi small{display:block;font-size:12px;color:#71849e}
.kpi-kills::before{background:var(--gold)}.kpi-kills strong{color:var(--gold)}
.kpi-dmg::before{background:var(--ok)}.kpi-dmg strong{color:var(--ok)}
.kpi-mvp::before{background:linear-gradient(180deg,#f3cb66,#d9ac3f)}.kpi-mvp{background:linear-gradient(160deg,#f3cb6614,#0e141e)}.kpi-mvp strong{color:#ffe7a3}
.kpi-neutral strong{color:#f4f7ff}
@media(max-width:1280px){.kpi-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi strong{font-size:18px}}

/* Placar por time */
.team-plot{margin-top:18px}
.ts-legend{display:flex;gap:16px;margin:-4px 0 14px;font-size:12px;color:#98a4b8}
.ts-legend span::before{content:'';display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:7px;vertical-align:-1px}
.lg-blue::before{background:var(--blue)}.lg-orange::before{background:var(--orange)}
.ts-row{display:grid;grid-template-columns:150px 54px minmax(0,1fr) 54px;align-items:center;gap:12px;padding:7px 0;font-size:13px}
.ts-label{color:#d6e0f0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ts-label small{display:block;font-size:11px;font-weight:400;color:#71849e}
.ts-val{font-variant-numeric:tabular-nums;color:#98a4b8}.ts-a{text-align:right}.ts-b{text-align:left}
.ts-val.win{color:var(--gold)}
.ts-track{display:flex;gap:3px;height:14px;border-radius:7px;background:#161f2e;overflow:hidden;padding:0}
.ts-fill{display:block;height:100%;transition:width .5s ease}
.ts-blue{background:linear-gradient(90deg,#1f8fc4,var(--blue));border-radius:7px 3px 3px 7px}
.ts-orange{background:linear-gradient(90deg,var(--orange),#c4651a);border-radius:3px 7px 7px 3px}
@media(max-width:760px){.ts-row{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}.ts-label{grid-column:1/-1}}

/* Partidas (acordeão) */
.match-details{display:grid;gap:10px}
.match-detail{border:1px solid #263348;border-radius:12px;background:#0c121c;overflow:hidden;transition:border-color .15s}
.match-detail:hover,.match-detail[open]{border-color:#3a4a63}
.match-detail summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;padding:14px 18px;cursor:pointer;list-style:none;font-size:13px}
.match-detail summary::-webkit-details-marker{display:none}
.match-detail summary::before{content:'▸';color:#71849e;transition:transform .15s}
.match-detail[open] summary::before{transform:rotate(90deg)}
.md-room{font-weight:700;color:#f4f7ff}
.md-stat{font-variant-numeric:tabular-nums;font-weight:600}
.match-detail summary time{margin-left:auto;font-size:12px;color:#71849e}
.match-detail .scroll{margin:0 18px;border-radius:10px}
.match-detail .hint{margin:10px 18px 16px}
.match-detail tr.is-mvp{background:linear-gradient(90deg,#f3cb6614,transparent);box-shadow:inset 3px 0 0 var(--gold)}
.match-detail td.num{white-space:nowrap}
.mini-bar{display:inline-block;vertical-align:middle;width:70px;height:6px;margin-left:10px;border-radius:3px;background:#161f2e;overflow:hidden}
.mini-fill{display:block;height:100%;border-radius:3px}
.f-kills{background:linear-gradient(90deg,#a98a35,var(--gold))}.f-dmg{background:linear-gradient(90deg,#2f9d7d,var(--ok))}
@media(max-width:760px){.match-detail summary{padding:12px 14px}.match-detail summary time{margin-left:0}.match-detail .scroll{margin:0 12px}.mini-bar{width:44px}}
@media(prefers-reduced-motion:reduce){.ts-fill{transition:none}}

/* ===== Clareza dos gráficos ===== */
.charts-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.charts-controls .chips-summary{margin:0}
.mode-select{display:flex;align-items:center;gap:10px;font-size:12px;color:#98a4b8}
.mode-select select{width:auto;min-height:38px;padding:8px 12px;font-size:12px}
.plot-scope{margin:-6px 0 14px;font-size:12px;color:#8597b4;line-height:1.5}
.plot-kpis .delta{color:#c8d4e7}
.line-plot svg .tick.sub{fill:#566882;font-size:10px}
.rank-bar-name{white-space:normal;line-height:1.25}
.rank-bar-name b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#e5edf9}
.rank-bar-name small{display:block;font-size:11px;font-weight:400;color:#71849e}
.rank-bar{align-items:center}
.md-stat small{font-size:11px;font-weight:400;color:#71849e}
.match-detail summary time{margin-left:0;order:0;color:#8597b4}
.match-detail summary .md-room{margin-right:-4px}
.team-plot figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:16px}
.team-plot figcaption span{font-size:13px;font-weight:700;color:#e5edf9}
.team-plot figcaption small{font-size:11px;color:#71849e}

/* Revisão visual: superfícies, hierarquia e controles responsivos. */
body.authed nav .admin-entry{display:none!important}
:root{--soft:#a9b6ca;--gold:#f5cd75}
body{background:radial-gradient(ellipse at 85% 0%,#21304765,transparent 48%),#0b1018;color:#eef3fb}
.app{padding-top:36px}
.top,nav{background:#101722}
.logo{letter-spacing:.6px}
nav a{border-radius:12px;min-height:48px}
nav a[aria-current=page]{background:linear-gradient(100deg,#f5cd7520,#f5cd7508);border-color:#f5cd7540;box-shadow:inset 3px 0 var(--gold)}
.hero{padding:24px 26px;margin-bottom:18px;border:1px solid #344057;border-radius:18px;background:linear-gradient(115deg,#202d42b0,#131c2980);position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;top:0;bottom:0;left:0;width:3px;background:var(--gold)}
.hero h1{font-size:clamp(28px,3vw,38px);line-height:1.2;letter-spacing:-1.2px}
.hero .muted{font-size:14px;max-width:650px;line-height:1.7}
.page-eyebrow{font-weight:700;letter-spacing:2px}
.connection-badge{position:relative;float:right;top:auto;right:auto;margin:0 0 12px 18px;z-index:2}
.hero{clear:both}
#feedback{font-size:12px;color:#a9c4bb}
.stats{gap:14px;margin:18px 0}
.metric{background:linear-gradient(140deg,#1c2839,#131c29);border-color:#303e53;border-radius:16px;padding:20px 22px;box-shadow:0 6px 20px #00000012}
.metric strong{font-size:30px;letter-spacing:-.8px}
.metric span{color:#a9b6ca;font-size:12px}
.card{background:#121b28;border-color:#2d3a4e;border-radius:18px;padding:24px;box-shadow:0 12px 32px #00000018}
.card+.card{margin-top:20px}
.layout .card+.card{margin-top:0}
.section-heading{gap:12px;flex-wrap:wrap}
.card h2{font-size:18px}
.label{font-size:12px;color:#c0cce0;line-height:1.5}
input,select,textarea{min-height:44px;background:#0c1420;border:1px solid #3b4a61;border-radius:10px;color:#eef3fb;font:inherit}
input::placeholder,textarea::placeholder{color:#8292aa}
button{min-height:44px;border-radius:10px;transition:background .15s,border-color .15s,box-shadow .15s}
button.primary{background:linear-gradient(135deg,#f7d88f,#e8b955);color:#211a0e;border:1px solid #f6d68c;font-weight:750;box-shadow:0 3px 12px #e8b95515}
button.primary:hover{background:#ffe1a0}
button.secondary{background:#1c293b;border-color:#3a4960;color:#dce5f4}
button.secondary:hover{background:#28384f;border-color:#71819c}
:where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--gold);outline-offset:3px}
input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--gold)}
.filter-toolbar{padding:16px;background:#0d1622;border:1px solid #2b394d;border-radius:14px;margin:18px 0;gap:12px}
.period-overview{border-color:#344258;background:#101a28}
.period-overview>div{min-width:0}
.period-overview strong{overflow-wrap:anywhere}
.hint,.record-date,.record-summary span{color:#a4b2c8}
.day-heading{margin-top:28px;font-size:14px}
.match-record{border:1px solid #344258;border-radius:14px;background:#162131;box-shadow:0 5px 18px #00000012;overflow:hidden}
.record-head{background:#1c2a3d70;border-bottom:1px solid #2d3d53;gap:12px}
.record-title{flex-wrap:wrap;min-width:0}
.record-summary{gap:18px}
.record-summary>div{min-width:0}
.record-summary .mvp-name{font-size:14px!important;line-height:1.5}
.record-footer{gap:10px;flex-wrap:wrap}
.record-details summary{min-height:44px;display:flex;align-items:center;color:#b6c5db}
.empty{padding:36px 22px;border:1px dashed #44536b;border-radius:14px;text-align:center;color:#a9b6ca;background:#101a28}
.empty strong{color:#e9eff8;font-size:16px}
.empty p{max-width:420px;margin:8px auto 0}
.scroll{overscroll-behavior-x:contain;scrollbar-color:#4a5b76 #111b29}
th{color:#b7c6dd}
tbody tr:hover{background:#24344b66}
dialog{border:1px solid #4b5e7a;border-radius:20px;background:#121c2b;color:#eef3fb;box-shadow:0 30px 100px #0009;max-height:88dvh;overflow:auto}
dialog::backdrop{background:#050a12c9;backdrop-filter:blur(5px)}
.dialog-close{position:sticky;top:0;float:right;z-index:2}
.player-dialog h2{overflow-wrap:anywhere;padding-right:48px}
@media(min-width:761px) and (max-width:1100px){.app{margin-left:200px;padding:28px 24px}.top,nav{width:200px}.filter-toolbar{grid-template-columns:1fr 1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .app{padding:20px 16px calc(110px + env(safe-area-inset-bottom));margin-left:0}
  .hero{padding:20px;margin-top:12px;border-radius:14px}
  .hero .muted{max-width:100%;font-size:13px}
  .connection-badge{float:none;display:table;margin:0 0 12px auto}
  .card{padding:18px;border-radius:14px}
  .metric{padding:16px}.metric strong{font-size:26px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .filter-toolbar{padding:12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .filter-toolbar>div:nth-child(3){grid-column:1/-1}
  .filter-toolbar input[type=month]{font-size:14px}
  .filter-toolbar .buttons{margin:0;align-self:end}.filter-toolbar .buttons button{width:100%}
  .record-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .record-head{align-items:flex-start;flex-direction:column}
  .record-footer .primary{flex:1}
  nav{overflow-x:auto;justify-content:flex-start;gap:4px}
  nav a{flex:1 0 auto;min-width:64px;padding:8px 10px;min-height:52px;font-size:11px}
  dialog{width:calc(100% - 24px);max-width:calc(100% - 24px);padding:18px}
  .player-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mode-select{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Cards: conteúdo flexível sem espaços vazios nem nomes cortados. */
.kpi strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.4}
.kpi span,.kpi small{overflow-wrap:anywhere}
.podium-card,.team-card,.metric,.plot,.perm{min-width:0}
.podium-name,.podium-stats,.team-player b,.tp-name,.perm b{overflow-wrap:anywhere}
.plot figcaption{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}
.plot figcaption>span{min-width:0;overflow-wrap:anywhere}
.plot-kpis{flex-wrap:wrap;gap:16px}
.plot-kpis>div{min-width:0;flex:1 1 100px}
.record-title>span{max-width:100%;overflow-wrap:anywhere}
.record-summary strong{overflow-wrap:anywhere}
.player-summary>div{min-width:0;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1100px){
  .layout{grid-template-columns:minmax(0,1fr)}
  .period-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .period-overview>div:last-child{grid-column:auto}
  .record-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rank-podium{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
  .period-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .period-overview>div:last-child{grid-column:auto;border-top:0}
  .period-overview>div{padding:14px 12px;border-right:0;border-bottom:0}
  .period-overview>div:nth-child(odd){border-right:1px solid #2d3a4e}
  .period-overview>div:nth-child(n+3){border-top:1px solid #2d3a4e}
  .record-date{max-width:none;text-align:left}
  .record-summary .sum-mvp{padding-left:0;border-left:0}
  .record-footer button{min-height:44px}
  .day-heading{flex-wrap:wrap;gap:4px 10px}
  .kpi{padding:14px 12px}
  .kpi strong{font-size:18px}
  .kpi small{font-size:11px;line-height:1.6}
  .podium-card{grid-template-columns:28px minmax(0,1fr)}
  .player-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .match-dialog .player-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .section-heading .auto-pill{white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:480px){
  .filter-toolbar{grid-template-columns:minmax(0,1fr)}
  .filter-toolbar>div:nth-child(3),.filter-toolbar>.buttons{grid-column:auto}
  .filter-toolbar input[type=month]{font-size:14px;padding:12px}
}

/* Composição equilibrada dos times. */
.balance-input{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:28px;align-items:start}
.balance-input>div{min-width:0}
.balance-input textarea{width:100%;min-height:190px;resize:vertical;line-height:1.8}
.balance-subtitle{margin:0 0 12px;font-size:15px}
.balance-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.balance-player-row{min-width:0;padding:12px;border:1px solid #344258;border-radius:12px;background:#0d1622}
.balance-player-row select{width:100%;max-width:100%;min-width:0;font-size:12px}
.balance-player-row .label,.balance-player-row .hint{overflow-wrap:anywhere}
.balance-player-row .hint{margin-bottom:0;font-size:11px}
.balance-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:24px}
.balance-result-heading h3{margin:0;font-size:18px}
.balance-method{margin-top:16px;padding-top:16px;border-top:1px solid #2d3a4e}
.balance-method summary{cursor:pointer;color:#c0cce0}
#balanceOutput[hidden]{display:none}
@media(max-width:1100px){.balance-input{grid-template-columns:minmax(0,1fr);gap:20px}}
@media(max-width:480px){.balance-players{grid-template-columns:minmax(0,1fr)}.balance-card .buttons button{width:100%}.balance-result-heading .auto-pill{white-space:normal}}

/* Destaques por time sorteado, sem alterar a divisão dos participantes. */
.balance-team.team-blue{--team-accent:#65cfff;--team-glow:#38bdf825}
.balance-team.team-orange{--team-accent:#ffb77c;--team-glow:#fb923c25}
.balance-team .balance-member{position:relative;margin:10px 0;padding:14px!important;border:1px solid #2e3e54;border-radius:12px;background:#101927;gap:8px;min-width:0;transition:border-color .2s,box-shadow .2s,background .2s}
.balance-member-name{min-width:0;overflow-wrap:anywhere}
.balance-team .balance-member-highlight{border-color:var(--team-accent);background:linear-gradient(115deg,var(--team-glow),#101927 80%)}
.balance-team .balance-member-star{border-color:#e5bc60;background:linear-gradient(120deg,#f5cd751a,var(--team-glow) 55%,#101927);box-shadow:inset 3px 0 #f5cd75,0 0 16px #f5cd7510;animation:balance-star-glow 4s ease-in-out infinite}
.balance-member-star .balance-member-name b{color:#ffe2a1}
.balance-badges{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.balance-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;font-size:10px;line-height:1.5;font-weight:700;border:1px solid #56667d;border-radius:7px;color:#e2eaf7;background:#213047;max-width:100%;overflow-wrap:anywhere}
.balance-badge-star{color:#ffe2a1;border-color:#c49a434f;background:#f5cd7514}
.balance-badge-kills{color:var(--team-accent);border-color:var(--team-accent);background:var(--team-glow)}
.balance-badge-damage{color:#83e5c1;border-color:#55d6ab55;background:#55d6ab12}
.balance-member .hint{margin:0;line-height:1.7}
.balance-sample{font-size:11px;color:#a8b7cd}
@keyframes balance-star-glow{0%,100%{box-shadow:inset 3px 0 #f5cd75,0 0 12px #f5cd7510}50%{box-shadow:inset 3px 0 #f5cd75,0 0 22px #f5cd7525}}
@media(prefers-reduced-motion:reduce){.balance-team .balance-member-star{animation:none}}

.week-range{margin:8px 0 0;max-width:250px;font-size:11px;line-height:1.6;color:#a9b6ca}
.filter-toolbar input[type=date]{min-width:0;width:100%;font:inherit;padding:12px}
.filter-toolbar{align-items:start}
.filter-toolbar>.buttons{align-self:start;margin-top:24px}
@media(max-width:480px){.filter-toolbar>.buttons{margin-top:0}.week-range{max-width:none}}

.balance-suggestions{display:grid;gap:4px;padding:6px;margin-top:6px;max-height:240px;overflow:auto;border:1px solid #536782;border-radius:12px;background:#0c1522;box-shadow:0 8px 24px #0005}
.balance-suggestions[hidden]{display:none}
.balance-suggestions button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;text-align:left;background:transparent;border:1px solid transparent;color:#e8f0fc;width:100%;min-width:0}
.balance-suggestions b,.balance-suggestions small{white-space:normal;overflow-wrap:anywhere}
.balance-suggestions small{color:#a9b8ce;font-size:11px}
.balance-suggestions button:hover,.balance-suggestions button[aria-selected=true]{background:#26364d;border-color:#f5cd7560}
