@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");

:root{
  --font:"Roboto",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --primary:#2563eb;
  --primary-700:#1d4ed8;
  --primary-soft:#eff6ff;
  --bg:#f7f8fb;
  --surface:#fff;
  --border:#e5e7eb;
  --text:#111827;
  --muted:#6b7280;
  --success:#15803d;
  --warning:#b45309;
  --danger:#b91c1c;
  --radius:10px;
  --sidebar:248px;
  --topbar:68px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:var(--font);color:var(--text);background:var(--bg);font-weight:400}
a{color:inherit}
svg{display:block}
.mtw-container{width:min(1180px,calc(100% - 32px));margin:auto}

/* tipografia: propositalmente menos pesada */
h1,h2,h3,h4{font-family:var(--font);font-weight:600;letter-spacing:-.018em}
h1{font-size:27px;line-height:1.2}
h2{font-size:18px}
h3{font-size:16px}

.mtw-topbar{position:fixed;inset:0 0 auto 0;height:var(--topbar);background:#fff;border-bottom:1px solid var(--border);z-index:50;display:flex;align-items:center}
.mtw-topbar-inner{width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 22px}
.mtw-brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.mtw-brand-mark{width:35px;height:35px;border-radius:9px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:700}
.mtw-brand-copy strong{display:block;font-size:16px;font-weight:600}
.mtw-brand-copy small{display:block;font-size:11px;color:var(--muted);margin-top:1px;font-weight:400}
.mtw-top-actions{display:flex;align-items:center;gap:8px}
.mtw-icon-btn{width:40px;height:40px;border:1px solid var(--border);background:#fff;border-radius:8px;display:grid;place-items:center;color:#4b5563;text-decoration:none;cursor:pointer}
.mtw-icon-btn:hover{background:#f9fafb;color:var(--primary)}
.mtw-user{display:flex;align-items:center;gap:9px;padding-left:13px;margin-left:4px;border-left:1px solid var(--border)}
.mtw-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-weight:600}
.mtw-user strong{font-size:13px;font-weight:600}.mtw-user small{display:block;color:var(--muted);font-size:11px;margin-top:1px}

.mtw-layout{padding-top:var(--topbar);min-height:100vh}
.mtw-sidebar{position:fixed;top:var(--topbar);bottom:0;left:0;width:var(--sidebar);background:#fff;border-right:1px solid var(--border);padding:14px 12px;overflow:auto;z-index:40}
.mtw-nav-title{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#9ca3af;font-weight:600;padding:12px 11px 7px}
.mtw-nav a{height:42px;display:flex;align-items:center;gap:10px;padding:0 11px;border-radius:8px;text-decoration:none;color:#4b5563;font-size:13px;font-weight:500;margin-bottom:3px}
.mtw-nav a:hover{background:#f7f8fa;color:#111827}
.mtw-nav a.active{background:var(--primary-soft);color:var(--primary);font-weight:600}

.mtw-main{margin-left:var(--sidebar);padding:27px 30px 44px;min-height:calc(100vh - var(--topbar))}
.mtw-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}
.mtw-page-head h1{margin:0 0 6px}.mtw-page-head p{margin:0;color:var(--muted);font-size:13px}
.mtw-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.mtw-btn{height:40px;padding:0 14px;border:1px solid transparent;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-family:var(--font);font-size:13px;font-weight:600;cursor:pointer}
.mtw-btn-primary{background:var(--primary);color:#fff}.mtw-btn-primary:hover{background:var(--primary-700)}
.mtw-btn-secondary{background:#fff;border-color:var(--border);color:#374151}.mtw-btn-secondary:hover{background:#f9fafb}
.mtw-btn-danger{background:#fff;border-color:#fecaca;color:var(--danger)}

.mtw-grid{display:grid;gap:16px}.mtw-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.mtw-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mtw-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:18px}
.mtw-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid var(--border)}
.mtw-card-head h2{margin:0}.mtw-card-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.mtw-stat{display:flex;align-items:center;gap:13px}.mtw-stat-icon{width:44px;height:44px;border-radius:10px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}
.mtw-stat-label{font-size:11px;color:var(--muted);font-weight:500;text-transform:uppercase;letter-spacing:.03em}
.mtw-stat-value{font-size:27px;font-weight:600;letter-spacing:-.03em;margin-top:2px}

.mtw-badge{min-height:25px;padding:0 9px;border-radius:999px;display:inline-flex;align-items:center;gap:5px;border:1px solid var(--border);background:#fff;font-size:11px;font-weight:600}
.mtw-badge-primary{background:var(--primary-soft);border-color:#bfdbfe;color:var(--primary)}
.mtw-badge-success{background:#f0fdf4;border-color:#bbf7d0;color:var(--success)}
.mtw-badge-warning{background:#fffbeb;border-color:#fde68a;color:var(--warning)}
.mtw-badge-danger{background:#fef2f2;border-color:#fecaca;color:var(--danger)}

.mtw-alert{display:flex;align-items:flex-start;gap:9px;padding:12px 13px;border:1px solid var(--border);border-radius:8px;background:#fff;margin-bottom:14px;font-size:13px}
.mtw-alert-info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.mtw-alert-success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.mtw-alert-danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.mtw-alert-warning{background:#fffbeb;border-color:#fde68a;color:#92400e}

.mtw-field{margin-bottom:14px}.mtw-label{display:block;font-size:11px;color:#4b5563;font-weight:600;margin-bottom:6px;text-transform:uppercase;letter-spacing:.025em}
.mtw-input{width:100%;height:42px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:var(--text);padding:0 12px;font:400 13px var(--font);outline:none}
textarea.mtw-input{height:auto;min-height:120px;padding-top:11px;resize:vertical}
.mtw-input:focus{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(37,99,235,.08)}

/* Upload — componente global do Design System */
.mtw-upload{width:100%}
.mtw-upload-dropzone{
  position:relative;
  min-height:132px;
  border:1px dashed #cbd5e1;
  border-radius:10px;
  background:#fbfcfe;
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px;
  cursor:pointer;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.mtw-upload-dropzone:hover,
.mtw-upload-dropzone.is-dragover{
  border-color:#93c5fd;
  background:#f7fbff;
  box-shadow:0 0 0 3px rgba(37,99,235,.06);
}
.mtw-upload-dropzone:focus-visible{
  outline:none;
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(37,99,235,.10);
}
.mtw-upload-input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
  opacity:0!important;
}
.mtw-upload-icon{
  width:46px;
  height:46px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:var(--primary-soft);
  color:var(--primary);
  flex:0 0 auto;
}
.mtw-upload-copy{min-width:0;flex:1}
.mtw-upload-copy strong{display:block;font-size:14px;font-weight:600;color:var(--text);margin-bottom:4px}
.mtw-upload-copy span{display:block;font-size:12px;line-height:1.45;color:var(--muted)}
.mtw-upload-select{flex:0 0 auto;background:#fff;pointer-events:none;user-select:none}
.mtw-upload-selected{
  margin-top:9px;
  min-height:58px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:11px;
  padding:9px 11px;
}
.mtw-upload-selected[hidden]{display:none!important}
.mtw-upload-preview{
  width:38px;
  height:38px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:#f3f6fa;
  color:#64748b;
  overflow:hidden;
  flex:0 0 auto;
}
.mtw-upload-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.mtw-upload-file-copy{min-width:0;flex:1}
.mtw-upload-file-copy strong{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:12px;
  font-weight:600;
}
.mtw-upload-file-copy span{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.mtw-upload-remove{
  border:0;
  background:transparent;
  color:#64748b;
  font:500 12px var(--font);
  cursor:pointer;
  padding:7px 8px;
  border-radius:7px;
}
.mtw-upload-remove:hover{background:#f8fafc;color:var(--danger)}
.mtw-upload-error{
  margin-top:7px;
  font-size:11px;
  color:var(--danger);
  font-weight:500;
}
.mtw-upload-error[hidden]{display:none!important}

@media(max-width:620px){
  .mtw-upload-dropzone{align-items:flex-start;flex-wrap:wrap}
  .mtw-upload-copy{width:calc(100% - 62px)}
  .mtw-upload-select{width:100%;margin-left:60px}
}

.mtw-table-wrap{overflow:auto;border:1px solid var(--border);border-radius:9px}
.mtw-table{width:100%;border-collapse:collapse;background:#fff;min-width:700px}
.mtw-table th,.mtw-table td{padding:12px 13px;border-bottom:1px solid var(--border);text-align:left;font-size:12px}
.mtw-table th{background:#f9fafb;color:#6b7280;font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.mtw-table tr:last-child td{border-bottom:0}
.mtw-empty{text-align:center;padding:30px 20px;color:var(--muted)}

.mtw-progress{height:7px;background:#eef0f3;border-radius:999px;overflow:hidden}.mtw-progress span{display:block;height:100%;background:var(--primary);border-radius:999px}
.mtw-mobile-toggle{display:none}.mtw-overlay{display:none}

/* Login e cadastro */
.mtw-auth{min-height:100vh;display:grid;place-items:center;padding:26px;background:linear-gradient(150deg,#f8fbff,#f7f8fb 55%,#eef5ff)}
.mtw-auth-card{width:min(440px,100%);background:#fff;border:1px solid var(--border);border-radius:14px;padding:28px}
.mtw-auth-card h1{margin:25px 0 6px;font-size:24px}.mtw-auth-card>p{color:var(--muted);font-size:13px;margin:0 0 22px}

/* Home comercial */
.mtw-home{min-height:100vh;background:linear-gradient(145deg,#fff 0%,#f8fbff 62%,#eef5ff 100%)}
.mtw-home-header{height:72px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--border);display:flex;align-items:center}
.mtw-home-header .mtw-container{display:flex;align-items:center;justify-content:space-between}
.mtw-hero{min-height:calc(100vh - 72px);display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:56px;padding:58px 0}
.mtw-hero h1{font-size:54px;line-height:1.04;margin:14px 0 18px;font-weight:600;letter-spacing:-.045em}
.mtw-hero p{font-size:17px;line-height:1.65;color:var(--muted);max-width:650px}
.mtw-preview{background:#0f172a;border-radius:18px;padding:16px;box-shadow:0 28px 70px rgba(15,23,42,.16)}
.mtw-preview-screen{background:#fff;border-radius:11px;overflow:hidden}
.mtw-preview-top{height:70px;background:#111827;color:#fff;padding:18px;display:flex;align-items:center;justify-content:space-between}
.mtw-preview-top strong{font-weight:600}.mtw-preview-hero{height:230px;background:linear-gradient(135deg,#1d4ed8,#0f172a);display:flex;align-items:flex-end;padding:24px;color:#fff}
.mtw-preview-hero h2{font-size:28px;margin:5px 0 0}.mtw-preview-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px}.mtw-preview-cards div{height:92px;border-radius:8px;background:#f3f4f6}

/* Clube público */
.club-header{background:#111827;color:#fff;border-bottom:4px solid var(--club-primary);padding:20px 0}
.club-brand{display:flex;align-items:center;gap:13px}.club-brand img{width:62px;height:62px;object-fit:contain}.club-brand strong{font-size:24px;font-weight:600}
.club-hero{background:linear-gradient(135deg,var(--club-primary),#111827);color:#fff;padding:52px 0}.club-hero h1{font-size:42px;margin:14px 0 8px}
.club-content{padding:32px 0 48px}.club-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}

/* onboarding */
.mtw-onboarding{display:grid;grid-template-columns:230px 1fr;gap:22px}.mtw-onboarding-steps{padding-right:20px;border-right:1px solid var(--border)}
.mtw-onboarding-step{display:flex;gap:10px;padding:9px 0}.mtw-step-num{width:26px;height:26px;border-radius:50%;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:12px;font-weight:600;flex:0 0 auto}
.mtw-color-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mtw-color-row{display:flex;align-items:center;gap:8px}.mtw-color-row input[type=color]{width:44px;height:42px;border:1px solid #d1d5db;border-radius:8px;padding:3px;background:#fff}

@media(max-width:1024px){:root{--sidebar:220px}.mtw-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.mtw-hero h1{font-size:46px}}
@media(max-width:780px){
  .mtw-mobile-toggle{display:grid}.mtw-sidebar{width:260px;transform:translateX(-100%);transition:.2s}.menu-open .mtw-sidebar{transform:translateX(0)}
  .menu-open .mtw-overlay{display:block;position:fixed;inset:var(--topbar) 0 0;background:rgba(17,24,39,.35);z-index:35}
  .mtw-main{margin-left:0;padding:20px 16px 36px}.mtw-grid-3,.mtw-grid-2,.club-grid{grid-template-columns:1fr}.mtw-user-copy{display:none}
  .mtw-page-head{flex-direction:column}.mtw-hero{grid-template-columns:1fr;padding:44px 0}.mtw-hero h1{font-size:40px}.mtw-preview{display:none}
  .mtw-onboarding{grid-template-columns:1fr}.mtw-onboarding-steps{border-right:0;border-bottom:1px solid var(--border);padding:0 0 12px}.mtw-color-grid{grid-template-columns:1fr}
}


/* Modal global de confirmação — Master + Painel do Time */
.mtw-confirm-backdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(15,23,42,.48);
}
.mtw-confirm-backdrop.is-open{display:flex}
.mtw-confirm-dialog{
  width:min(440px,100%);
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
}
.mtw-confirm-head{padding:18px 18px 8px}
.mtw-confirm-head h3{margin:0;font-size:18px;font-weight:600;color:var(--text)}
.mtw-confirm-body{padding:4px 18px 18px;color:var(--muted);font-size:13px;line-height:1.55}
.mtw-confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:14px 18px;
  border-top:1px solid var(--border);
  background:#fbfcfe;
}
body.mtw-modal-open{overflow:hidden}
@media(max-width:560px){
  .mtw-confirm-backdrop{align-items:flex-end;padding:0}
  .mtw-confirm-dialog{width:100%;border-radius:14px 14px 0 0;border-bottom:0}
  .mtw-confirm-actions .mtw-btn{flex:1}
}


/* Build 146 — Design System global oficial do Meu Time Web */
:root{
  --mtw-control-height:38px;
  --mtw-control-radius:8px;
  --mtw-modal-radius:12px;
  --mtw-modal-z:2147483000;
}
body,.mtw-main,.mtw-sidebar,.mtw-topbar,.mtw-btn,.mtw-input,.mtw-label,
.mtw-table,.mtw-badge,[role="tab"],button,input,select,textarea{font-family:var(--font)!important}

/* Controles compactos e uniformes */
.mtw-input:not(textarea),select.mtw-input{
  height:var(--mtw-control-height)!important;
  min-height:var(--mtw-control-height)!important;
  padding:0 11px!important;
  border-radius:var(--mtw-control-radius)!important;
  font-size:12.5px!important;
}
textarea.mtw-input{min-height:88px!important;padding:9px 11px!important;border-radius:var(--mtw-control-radius)!important;font-size:12.5px!important;line-height:1.45}
.mtw-field{margin-bottom:12px!important}.mtw-label{margin-bottom:5px!important;font-size:10.5px!important;letter-spacing:.02em!important}
.mtw-btn{height:var(--mtw-control-height)!important;min-height:var(--mtw-control-height)!important;padding:0 12px!important;border-radius:var(--mtw-control-radius)!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important;white-space:nowrap}
.mtw-btn svg{width:16px;height:16px;flex:0 0 auto}
.mtw-btn-primary{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}
.mtw-btn-secondary{background:#fff!important;color:#374151!important;border-color:var(--border)!important}
.mtw-btn-danger{background:#fff!important;color:var(--danger)!important;border-color:#fecaca!important}
.mtw-btn:hover{transform:none!important;box-shadow:none!important}

/* Abas globais: mesmo raio, tipografia, espaçamento e estado ativo */
.mtw-smart-tabs-nav,.mtw-stx-tabs,.mtw-workspace-tabs,.mtw-phase-tabs,.mtw-group-tabs{
  font-family:var(--font)!important;
  scrollbar-width:none;
}
.mtw-smart-tabs-nav::-webkit-scrollbar,.mtw-stx-tabs::-webkit-scrollbar,.mtw-workspace-tabs::-webkit-scrollbar,.mtw-phase-tabs::-webkit-scrollbar,.mtw-group-tabs::-webkit-scrollbar{display:none}
.mtw-smart-tab,.mtw-stx-tabs a,.mtw-workspace-tab,.mtw-group-tab,[role="tab"]{
  font-family:var(--font)!important;
  font-weight:600!important;
}
.mtw-smart-tabs-nav,.mtw-stx-tabs{
  display:flex!important;align-items:center!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;
  padding:5px!important;border:1px solid var(--border)!important;border-radius:12px!important;background:#fff!important;
}
.mtw-smart-tab,.mtw-stx-tabs a{
  min-height:38px!important;height:38px!important;padding:0 12px!important;border:0!important;border-radius:8px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;white-space:nowrap!important;
  color:var(--muted)!important;background:transparent!important;font-size:12px!important;text-decoration:none!important;
}
.mtw-smart-tab:hover,.mtw-stx-tabs a:hover{background:#f8fafc!important;color:var(--text)!important}
.mtw-smart-tab.is-active,.mtw-smart-tab[aria-selected="true"],.mtw-stx-tabs a.is-active{background:var(--primary)!important;color:#fff!important}
.mtw-smart-tab svg,.mtw-stx-tabs a svg,.mtw-workspace-tab svg,.mtw-group-tab svg{width:16px!important;height:16px!important;flex:0 0 auto}

/* Tabs especiais preservam conteúdo próprio, mas obedecem aos mesmos tokens */
.mtw-workspace-tab{min-height:40px!important;padding:0 12px!important;border-radius:8px 8px 0 0!important;font-size:12px!important;gap:7px!important}
.mtw-phase-tab,.mtw-competition-tab{border-radius:12px!important;font-family:var(--font)!important;box-shadow:none!important}
.mtw-group-tab{min-height:36px!important;padding:0 12px!important;border-radius:8px!important;font-size:11.5px!important}
.mtw-group-tab.is-active{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important}

/* Modal oficial: toda sobreposição deve ficar acima de tabelas, sticky e menus */
.mtw-form-modal-backdrop,.mtw-phase-modal{
  position:fixed!important;inset:0!important;z-index:var(--mtw-modal-z)!important;background:rgba(15,23,42,.52)!important;
  padding:20px!important;align-items:center!important;justify-content:center!important;
}
.mtw-form-modal,.mtw-phase-dialog{
  width:min(680px,100%)!important;max-height:90vh!important;border:1px solid #e2e8f0!important;border-radius:var(--mtw-modal-radius)!important;
  background:#fff!important;overflow:hidden!important;box-shadow:0 26px 70px rgba(15,23,42,.22)!important;
}
.mtw-form-modal>form{max-height:90vh!important;display:flex!important;flex-direction:column!important}
.mtw-form-modal-head,.mtw-phase-dialog-head{min-height:66px!important;padding:14px 16px!important;border-bottom:1px solid var(--border)!important;background:#fff!important;flex:0 0 auto!important}
.mtw-form-modal-head h2,.mtw-phase-dialog-head strong{font-size:16px!important;font-weight:600!important;margin:0!important;color:var(--text)!important}
.mtw-form-modal-head p,.mtw-phase-dialog-head small{font-size:11px!important;color:var(--muted)!important;margin:3px 0 0!important}
.mtw-form-modal-body,.mtw-phase-dialog-body{padding:16px!important;overflow:auto!important;min-height:0!important}
.mtw-form-modal-foot,.mtw-phase-dialog-body form>.mtw-actions:last-child{
  position:sticky!important;bottom:0!important;z-index:5!important;margin:0!important;padding:12px 16px!important;
  border-top:1px solid var(--border)!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;
}
.mtw-phase-dialog-body form>.mtw-actions:last-child{margin:16px -16px -16px!important}
.mtw-form-modal-close,.mtw-phase-close{width:34px!important;height:34px!important;min-width:34px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#64748b!important;display:grid!important;place-items:center!important;cursor:pointer!important;font-size:0!important}
.mtw-form-modal-close:hover,.mtw-phase-close:hover{background:#f8fafc!important;color:var(--text)!important}
.mtw-form-modal-close svg,.mtw-phase-close svg{width:17px!important;height:17px!important}
body.mtw-form-modal-open,body.mtw-modal-open{overflow:hidden!important}

/* Feedback de operação global — nunca empurra conteúdo */
.mtw-toast-region{position:fixed!important;right:24px!important;bottom:22px!important;z-index:2147483500!important;width:min(420px,calc(100vw - 32px))!important;display:grid!important;gap:9px!important;pointer-events:none!important}
.mtw-global-toast{pointer-events:auto!important;display:flex!important;align-items:flex-start!important;gap:10px!important;padding:11px 11px 11px 12px!important;background:#fff!important;border:1px solid var(--border)!important;border-radius:10px!important;box-shadow:0 16px 42px rgba(15,23,42,.16)!important;font:400 12.5px/1.45 var(--font)!important;color:var(--text)!important}
.mtw-global-toast-icon{width:30px!important;height:30px!important;border-radius:8px!important;display:grid!important;place-items:center!important;flex:0 0 auto!important}.mtw-global-toast.is-success .mtw-global-toast-icon{background:#f0fdf4!important;color:var(--success)!important}.mtw-global-toast.is-error .mtw-global-toast-icon{background:#fef2f2!important;color:var(--danger)!important}.mtw-global-toast-copy{flex:1!important;min-width:0!important;padding-top:5px!important}.mtw-global-toast-close{width:30px!important;height:30px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#64748b!important;display:grid!important;place-items:center!important;cursor:pointer!important}

/* Tabelas e ações */
.mtw-table th{font-size:10.5px!important;font-weight:600!important;letter-spacing:.025em!important}.mtw-table td{font-size:12px!important}.mtw-table .mtw-btn{height:34px!important;min-height:34px!important;padding:0 9px!important;font-size:11px!important}
.mtw-actions{gap:7px!important}.mtw-card{box-shadow:none!important}

/* Upload sempre no mesmo padrão */
.mtw-upload-dropzone{border-radius:10px!important;min-height:118px!important;padding:16px!important}.mtw-upload-selected{border-radius:9px!important}

/* Fotos de identidade / avatares */
.mtw-person-photo{width:34px;height:34px;border:1px solid var(--border);border-radius:50%;object-fit:cover;background:#f1f5f9;display:block;flex:0 0 auto}

@media(max-width:620px){
  .mtw-form-modal-backdrop,.mtw-phase-modal{padding:0!important;align-items:flex-end!important}
  .mtw-form-modal,.mtw-phase-dialog{width:100%!important;max-height:94vh!important;border-radius:15px 15px 0 0!important;border-bottom:0!important}
  .mtw-form-modal>form{max-height:94vh!important}
  .mtw-form-modal-foot{padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
  .mtw-form-modal-foot .mtw-btn{flex:1!important}
  .mtw-toast-region{left:12px!important;right:12px!important;bottom:12px!important;width:auto!important}
}

/* Build 146 — cobertura dos componentes legados para o mesmo Design System */
.mtw-icon-btn{
  width:38px!important;height:38px!important;min-width:38px!important;border-radius:8px!important;
  display:grid!important;place-items:center!important;border:1px solid transparent!important;
  background:transparent!important;color:#64748b!important;box-shadow:none!important;font-size:0!important;
}
.mtw-icon-btn:hover{background:#f8fafc!important;color:var(--text)!important;border-color:var(--border)!important}
.mtw-icon-btn svg{width:18px!important;height:18px!important}
.mtw-competition-tab,.mtw-phase-tab,.public-competition-tab,.public-group-tab{
  font-family:var(--font)!important;box-shadow:none!important;
}
.mtw-competition-tab,.mtw-phase-tab{border-radius:10px!important}
.public-competition-tab,.public-group-tab{border-radius:8px!important;font-weight:600!important}

/* Confirmações antigas passam a ter o mesmo visual do modal global */
.mtw-plan-confirm{
  position:fixed!important;inset:0!important;z-index:var(--mtw-modal-z)!important;
  background:rgba(15,23,42,.52)!important;padding:20px!important;align-items:center!important;justify-content:center!important;
}
.mtw-plan-confirm.is-open{display:flex!important}
.mtw-plan-confirm-box{
  width:min(440px,100%)!important;background:#fff!important;border:1px solid var(--border)!important;
  border-radius:var(--mtw-modal-radius)!important;overflow:hidden!important;box-shadow:0 26px 70px rgba(15,23,42,.22)!important;
  padding:0!important;
}
.mtw-plan-confirm-box>h3{margin:0!important;padding:16px 18px 8px!important;font-size:16px!important;font-weight:600!important;color:var(--text)!important}
.mtw-plan-confirm-box>p{margin:0!important;padding:2px 18px 18px!important;font-size:12.5px!important;line-height:1.5!important;color:var(--muted)!important}
.mtw-plan-confirm-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;padding:12px 18px!important;border-top:1px solid var(--border)!important;background:#fff!important}

@media(max-width:620px){
  .mtw-plan-confirm{align-items:flex-end!important;padding:0!important}
  .mtw-plan-confirm-box{width:100%!important;border-radius:14px 14px 0 0!important;border-bottom:0!important}
}


/* Build 148 — tipografia oficial, respiro e salvamento global */
:root{
  --font:"Roboto",system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
  --mtw-page-description-size:12.5px;
  --mtw-section-description-size:12px;
  --mtw-content-gap:18px;
}
html,body,button,input,select,textarea,a,.mtw-main,.mtw-sidebar,.mtw-topbar,.mtw-btn,.mtw-input,.mtw-label,.mtw-table,.mtw-badge,[role="tab"]{font-family:var(--font)!important}
.mtw-main{padding-bottom:104px!important}
.mtw-page-head{margin-bottom:26px!important;gap:22px!important}
.mtw-page-head h1{font-size:27px!important;line-height:1.18!important;margin-bottom:7px!important}
.mtw-page-head p{font-size:var(--mtw-page-description-size)!important;line-height:1.55!important;color:var(--muted)!important;max-width:760px!important;margin:0!important;font-weight:400!important}
.mtw-card-head{gap:18px!important;padding-bottom:15px!important;margin-bottom:17px!important}
.mtw-card-head h2{font-size:17px!important;line-height:1.25!important}
.mtw-card-head p,.mtw-card-head small,.mtw-settings-note,.mtw-empty p,.mtw-stx-empty p,.mtw-stx-customizer-copy p{font-size:var(--mtw-section-description-size)!important;line-height:1.5!important;font-weight:400!important;color:var(--muted)!important}
.mtw-grid{gap:var(--mtw-content-gap)!important}
.mtw-card{padding:19px!important}
.mtw-card + .mtw-card{margin-top:18px}
.mtw-section-title,.mtw-stx-section-title{line-height:1.35!important}

/* Dock único e oficial para salvar páginas. Modais preservam o rodapé próprio. */
.mtw-global-save-dock{position:fixed;right:26px;bottom:22px;z-index:2147482000;display:flex;align-items:center;justify-content:flex-end;pointer-events:none}
.mtw-global-save-dock[hidden]{display:none!important}
.mtw-global-save-dock-inner{display:flex;align-items:center;gap:9px;padding:8px;background:rgba(255,255,255,.97);border:1px solid var(--border);border-radius:11px;box-shadow:0 14px 38px rgba(15,23,42,.13);backdrop-filter:blur(10px);pointer-events:auto}
.mtw-global-save-dock .mtw-btn{height:40px!important;min-height:40px!important;padding:0 15px!important;border-radius:8px!important;font-size:12.5px!important}
.mtw-global-save-source{display:none!important}
.mtw-smart-save-dock{display:none!important}
body.mtw-has-save-dock .mtw-toast-region{bottom:82px!important}
@media(max-width:780px){.mtw-main{padding-bottom:98px!important}.mtw-global-save-dock{left:12px;right:12px;bottom:12px}.mtw-global-save-dock-inner{width:100%}.mtw-global-save-dock .mtw-btn{width:100%}body.mtw-has-save-dock .mtw-toast-region{bottom:76px!important}}


/* Build 148 — estado fechado de modal é soberano */
.mtw-form-modal-backdrop:not(.is-open),.mtw-phase-modal:not(.is-open),.mtw-confirm-backdrop:not(.is-open),.mtw-plan-confirm:not(.is-open){display:none!important}


/* Build 149 — Roboto realmente global no sistema administrativo */
:root{
  --font:"Roboto",system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
}
/* O painel e o Master usam uma única família tipográfica. O site público continua
   livre para usar a fonte escolhida em Aparência. */
body.mtw-system-ui,
body.mtw-system-ui .mtw-layout,
body.mtw-system-ui .mtw-main,
body.mtw-system-ui .mtw-sidebar,
body.mtw-system-ui .mtw-topbar,
body.mtw-system-ui .mtw-auth,
body.mtw-system-ui .mtw-auth-card{
  font-family:var(--font)!important;
}
body.mtw-system-ui :where(
  h1,h2,h3,h4,h5,h6,p,small,strong,b,em,span,div,a,label,
  button,input,select,option,optgroup,textarea,datalist,fieldset,legend,
  table,thead,tbody,tfoot,tr,th,td,caption,
  ul,ol,li,nav,section,article,aside,header,footer,
  [role="tab"],[role="tablist"],[role="dialog"],[role="alert"],[role="status"],
  [contenteditable="true"],.mtw-btn,.mtw-input,.mtw-label,.mtw-badge,.mtw-table,
  .mtw-modal,.mtw-modal-dialog,.mtw-confirm-dialog,.mtw-global-toast,.mtw-toast-region,
  .mtw-smart-tab,.mtw-workspace-tab,.mtw-competition-tab,.mtw-phase-tab,.mtw-team-option
){
  font-family:var(--font)!important;
}
body.mtw-system-ui input::placeholder,
body.mtw-system-ui textarea::placeholder{font-family:var(--font)!important}
/* Normaliza controles nativos que em alguns navegadores insistem na fonte do SO. */
body.mtw-system-ui select,
body.mtw-system-ui option,
body.mtw-system-ui optgroup,
body.mtw-system-ui input,
body.mtw-system-ui textarea,
body.mtw-system-ui button{
  font-family:"Roboto",system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
}
/* Exceção intencional: os cartões de pré-visualização de fontes em Aparência
   precisam continuar demonstrando a fonte escolhida para o SITE PÚBLICO. */
body.mtw-system-ui .mtw-font-choice-card[style*="font-family"],
body.mtw-system-ui .mtw-font-preview-box[style*="font-family"],
body.mtw-system-ui .mtw-font-choice-card[style*="font-family"] *,
body.mtw-system-ui .mtw-font-preview-box[style*="font-family"] *{
  font-family:inherit!important;
}


/* Build 150 — tipografia administrativa realmente global e picker de times em portal */
body.mtw-system-ui,
body.mtw-system-ui *:not(svg):not(path):not(g):not(use),
body.mtw-system-ui *::before,
body.mtw-system-ui *::after{
  font-family:"Roboto",Arial,sans-serif!important;
}
body.mtw-system-ui :is(input,select,option,optgroup,textarea,button,datalist){
  font-family:"Roboto",Arial,sans-serif!important;
}
body.mtw-system-ui .mtw-font-choice-card[style*="font-family"],
body.mtw-system-ui .mtw-font-preview-box[style*="font-family"],
body.mtw-system-ui .mtw-font-choice-card[style*="font-family"] *,
body.mtw-system-ui .mtw-font-preview-box[style*="font-family"] *{
  font-family:inherit!important;
}

/* Autocomplete da classificação sai do overflow da tabela e fica sempre acima. */
body > .mtw-team-suggestions.mtw-team-suggestions-portal{
  display:block;
  position:fixed!important;
  z-index:2147482600!important;
  left:auto;
  top:auto;
  margin:0!important;
  width:auto;
  max-width:calc(100vw - 16px)!important;
  max-height:min(260px,42vh)!important;
  overflow:auto!important;
  background:#fff!important;
  border:1px solid var(--border)!important;
  border-radius:10px!important;
  box-shadow:0 18px 48px rgba(15,23,42,.20)!important;
}
body > .mtw-team-suggestions.mtw-team-suggestions-portal[hidden]{display:none!important}


/* Build 150 — Roboto realmente global no ambiente administrativo. */
html,body{font-family:"Roboto",Arial,sans-serif!important}
body *:not(svg):not(path):not(g):not(use):not(symbol),
body *::before,body *::after,
input,select,option,optgroup,textarea,button,datalist{
  font-family:"Roboto",Arial,sans-serif!important;
}
/* Aparência é a única área que pode demonstrar outra fonte dentro da prévia. */
.mtw-font-preview,.mtw-font-preview *,.font-preview,.font-preview *{font-family:var(--preview-font,"Roboto"),Arial,sans-serif!important}

/* Build 152 — Design System e Roboto globais, inclusive módulos dinâmicos. */
html body.mtw-system-ui,
html body.mtw-system-ui *:not(svg):not(path):not(g):not(use):not(symbol),
html body.mtw-system-ui *::before,
html body.mtw-system-ui *::after,
html body.mtw-system-ui :is(input,select,option,optgroup,textarea,button,datalist,[role="tooltip"],[data-tooltip],.tooltip,.mtw-tooltip){
  font-family:"Roboto",Arial,sans-serif!important;
}
html body.mtw-system-ui .mtw-font-choice-card[style*="font-family"],
html body.mtw-system-ui .mtw-font-preview-box[style*="font-family"],
html body.mtw-system-ui .mtw-font-preview,
html body.mtw-system-ui .font-preview,
html body.mtw-system-ui .mtw-font-choice-card[style*="font-family"] *,
html body.mtw-system-ui .mtw-font-preview-box[style*="font-family"] *,
html body.mtw-system-ui .mtw-font-preview *,
html body.mtw-system-ui .font-preview *{font-family:inherit!important}

/* O rodapé de todo modal permanece preso ao fim do diálogo. */
html body.mtw-system-ui .mtw-form-modal-foot,
html body.mtw-system-ui .mtw-modal-footer,
html body.mtw-system-ui [data-modal-footer]{
  position:sticky!important;bottom:0!important;z-index:4!important;background:#fff!important;border-top:1px solid var(--border)!important;
}

/* Picker da classificação: portal no body, acima de tabelas e de qualquer stacking context de conteúdo. */
html body > .mtw-team-suggestions.mtw-team-suggestions-portal{
  position:fixed!important;
  z-index:2147483630!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  isolation:isolate!important;
  contain:none!important;
  transform:none!important;
  filter:none!important;
  clip-path:none!important;
  pointer-events:auto!important;
  max-height:min(300px,46vh)!important;
}
html body > .mtw-team-suggestions.mtw-team-suggestions-portal[hidden]{display:none!important}


/* Build 153 — shell global: nenhum módulo pode reduzir, esconder ou recortar o menu lateral. */
html body.mtw-system-ui .mtw-sidebar{
  position:fixed!important;
  top:var(--topbar)!important;
  bottom:0!important;
  left:0!important;
  width:var(--sidebar)!important;
  height:auto!important;
  min-height:0!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  clip:auto!important;
  clip-path:none!important;
  contain:none!important;
  isolation:isolate!important;
}
html body.mtw-system-ui .mtw-sidebar > .mtw-nav{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:max-content!important;
  max-height:none!important;
  overflow:visible!important;
  visibility:visible!important;
  opacity:1!important;
  clip:auto!important;
  clip-path:none!important;
}
html body.mtw-system-ui .mtw-sidebar > .mtw-nav > a,
html body.mtw-system-ui .mtw-sidebar > .mtw-nav > .mtw-nav-title{
  visibility:visible!important;
  opacity:1!important;
  max-height:none!important;
  clip:auto!important;
  clip-path:none!important;
}
@media(max-width:800px){
  html body.mtw-system-ui .mtw-sidebar{width:260px!important;}
}


/* =====================================================================
   Build 183 — Shell global reconstruído (lógica Conta Certa)
   Apenas estrutura visual/navegação. Não altera conteúdo dos módulos.
   ===================================================================== */
:root{
  --mtw-shell-side-open:272px;
  --mtw-shell-side-closed:82px;
  --mtw-shell-top:64px;
  --mtw-shell-border:#e5eaf2;
  --mtw-shell-bg:#f6f8fb;
  --mtw-shell-muted:#667085;
  --mtw-shell-primary:var(--primary,#2563eb);
}
body.mtw-system-ui{background:var(--mtw-shell-bg);}
.mtw-topbar{position:sticky;top:0;z-index:80;height:var(--mtw-shell-top);min-height:var(--mtw-shell-top);background:#fff;border-bottom:1px solid var(--mtw-shell-border);box-shadow:none!important;}
.mtw-topbar-inner{width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:var(--mtw-shell-side-open) minmax(0,1fr)!important;align-items:stretch!important;transition:grid-template-columns .18s ease!important;}
body.mtw-shell-collapsed .mtw-topbar-inner{grid-template-columns:var(--mtw-shell-side-closed) minmax(0,1fr)!important;}
.mtw-topbar-inner>div:first-child{position:relative;min-width:0;display:flex!important;align-items:center!important;gap:10px!important;padding:0 18px!important;border-right:1px solid var(--mtw-shell-border);background:#fff;}
.mtw-brand{min-width:0!important;display:flex!important;align-items:center!important;gap:10px!important;text-decoration:none!important;color:#101828!important;overflow:hidden;}
.mtw-brand-mark{width:42px!important;height:42px!important;min-width:42px!important;border-radius:11px!important;display:grid!important;place-items:center!important;overflow:hidden!important;background:#0b0d12!important;color:#fff!important;font-weight:800!important;}
.mtw-brand-mark img{width:100%!important;height:100%!important;display:block!important;object-fit:contain!important;background:#fff!important;padding:2px!important;}
.mtw-brand-copy{display:block!important;min-width:0!important;line-height:1.05!important;}
.mtw-brand-copy strong{display:block!important;font-size:18px!important;font-weight:700!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#101828!important;}
.mtw-brand-copy small{display:block!important;margin-top:4px!important;color:#98a2b3!important;font-size:10px!important;font-weight:500!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mtw-shell-collapse{margin-left:auto;width:30px;height:30px;min-width:30px;border:0;background:transparent;color:#667085;display:grid;place-items:center;cursor:pointer;padding:0;border-radius:7px;}
.mtw-shell-collapse:hover{color:var(--mtw-shell-primary);background:#f8fafc;}
.mtw-shell-collapse svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease;}
body.mtw-shell-collapsed .mtw-shell-collapse svg{transform:rotate(180deg);}
body.mtw-shell-collapsed .mtw-brand-copy{display:none!important;}
body.mtw-shell-collapsed .mtw-topbar-inner>div:first-child{justify-content:center;padding:0 12px!important;}
body.mtw-shell-collapsed .mtw-brand{justify-content:center;}
body.mtw-shell-collapsed .mtw-brand-mark{width:42px!important;height:42px!important;min-width:42px!important;}
body.mtw-shell-collapsed .mtw-shell-collapse{position:absolute;right:-14px;top:17px;z-index:120;background:#fff;border:1px solid var(--mtw-shell-border);border-radius:50%;width:28px;height:28px;min-width:28px;}

.mtw-top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;padding:0 26px!important;background:#fff!important;}
.mtw-top-actions>.mtw-icon-btn{width:40px!important;height:40px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#475467!important;box-shadow:none!important;}
.mtw-top-actions>.mtw-icon-btn:hover{background:#f8fafc!important;color:var(--mtw-shell-primary)!important;}
.mtw-platform-bell{position:relative!important;}
.mtw-platform-bell-badge{position:absolute!important;right:2px!important;top:2px!important;min-width:17px!important;height:17px!important;padding:0 4px!important;border-radius:999px!important;background:#dc2626!important;color:#fff!important;border:2px solid #fff!important;font-size:9px!important;font-weight:800!important;display:grid!important;place-items:center!important;}

.mtw-layout{display:grid!important;grid-template-columns:var(--mtw-shell-side-open) minmax(0,1fr)!important;min-height:calc(100vh - var(--mtw-shell-top))!important;min-height:calc(100dvh - var(--mtw-shell-top))!important;transition:grid-template-columns .18s ease!important;align-items:start!important;}
body.mtw-shell-collapsed .mtw-layout{grid-template-columns:var(--mtw-shell-side-closed) minmax(0,1fr)!important;}
.mtw-sidebar{position:sticky!important;top:var(--mtw-shell-top)!important;left:auto!important;right:auto!important;width:auto!important;height:calc(100vh - var(--mtw-shell-top))!important;height:calc(100dvh - var(--mtw-shell-top))!important;min-height:0!important;padding:0!important;margin:0!important;background:#fff!important;border-right:1px solid var(--mtw-shell-border)!important;box-shadow:none!important;overflow:hidden!important;z-index:45!important;}
.mtw-nav{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;padding:20px 12px 24px!important;gap:4px!important;scrollbar-width:thin!important;scrollbar-color:#d0d5dd transparent!important;}
.mtw-nav::-webkit-scrollbar{width:5px}.mtw-nav::-webkit-scrollbar-thumb{background:#d0d5dd;border-radius:10px}.mtw-nav::-webkit-scrollbar-track{background:transparent}
.mtw-nav-title{height:25px!important;min-height:25px!important;display:flex!important;align-items:center!important;margin:8px 0 2px!important;padding:0 10px!important;color:#98a2b3!important;font-size:10px!important;font-weight:800!important;letter-spacing:.075em!important;text-transform:uppercase!important;white-space:nowrap!important;}
.mtw-nav a{position:relative!important;min-height:44px!important;display:flex!important;align-items:center!important;gap:12px!important;margin:0!important;padding:0 10px!important;border-radius:8px!important;color:#596579!important;background:transparent!important;text-decoration:none!important;font-size:13px!important;font-weight:500!important;box-shadow:none!important;white-space:nowrap!important;overflow:hidden!important;}
.mtw-nav a svg{width:19px!important;height:19px!important;min-width:19px!important;stroke-width:1.8!important;}
.mtw-nav a:hover{background:#f8fafc!important;color:#344054!important;}
.mtw-nav a.active{background:color-mix(in srgb,var(--mtw-shell-primary) 10%,white)!important;color:var(--mtw-shell-primary)!important;font-weight:650!important;}
.mtw-nav a.active::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--mtw-shell-primary);}
body.mtw-shell-collapsed .mtw-nav{padding-left:12px!important;padding-right:12px!important;}
body.mtw-shell-collapsed .mtw-nav-title{height:12px!important;min-height:12px!important;margin:8px 10px!important;padding:0!important;border-top:1px solid var(--mtw-shell-border)!important;font-size:0!important;}
body.mtw-shell-collapsed .mtw-nav a{justify-content:center!important;gap:0!important;padding-left:0!important;padding-right:0!important;overflow:visible!important;}
body.mtw-shell-collapsed .mtw-nav a>span{display:none!important;}
body.mtw-shell-collapsed .mtw-nav a.active::before{left:-12px!important;}
.mtw-main{min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:30px 34px 48px!important;background:var(--mtw-shell-bg)!important;}
.mtw-overlay{z-index:88!important;}

/* Conta do usuário no topo */
.mtw-account-menu{position:relative;display:block;margin-left:4px;}
.mtw-account-menu>summary{list-style:none;}
.mtw-account-menu>summary::-webkit-details-marker{display:none;}
.mtw-account-trigger{height:42px;display:flex;align-items:center;gap:9px;padding:0 9px 0 6px;border:1px solid transparent;border-radius:10px;background:transparent;color:#101828;cursor:pointer;user-select:none;}
.mtw-account-trigger:hover,.mtw-account-menu[open] .mtw-account-trigger{background:#f8fafc;border-color:var(--mtw-shell-border);}
.mtw-account-avatar{width:34px;height:34px;min-width:34px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:color-mix(in srgb,var(--mtw-shell-primary) 12%,white);color:var(--mtw-shell-primary);border:1px solid color-mix(in srgb,var(--mtw-shell-primary) 18%,white);font-size:11px;font-weight:800;}
.mtw-account-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.mtw-account-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:550;}
.mtw-account-chevron{width:16px;height:16px;fill:none;stroke:#667085;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease;}
.mtw-account-menu[open] .mtw-account-chevron{transform:rotate(180deg);}
.mtw-account-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:2147483000;width:300px;padding:10px;background:#fff;border:1px solid var(--mtw-shell-border);border-radius:14px;box-shadow:0 16px 42px rgba(16,24,40,.13);}
.mtw-account-head{display:flex;align-items:center;gap:11px;padding:8px 8px 12px;border-bottom:1px solid var(--mtw-shell-border);margin-bottom:6px;}
.mtw-account-head .mtw-account-avatar{width:40px;height:40px;min-width:40px;}
.mtw-account-head-copy{min-width:0;display:grid;gap:2px;}
.mtw-account-head-copy strong,.mtw-account-head-copy span,.mtw-account-head-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mtw-account-head-copy strong{font-size:13px;color:#101828}.mtw-account-head-copy span{font-size:11px;color:#667085}.mtw-account-head-copy small{font-size:10px;color:var(--mtw-shell-primary);font-weight:700;}
.mtw-account-links{display:grid;}
.mtw-account-links a{min-height:50px;display:flex;align-items:center;gap:11px;padding:7px 9px;border-radius:9px;color:#344054;text-decoration:none;}
.mtw-account-links a:hover{background:color-mix(in srgb,var(--mtw-shell-primary) 7%,white);color:var(--mtw-shell-primary);}
.mtw-account-links svg,.mtw-account-logout svg{width:19px;height:19px;min-width:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.mtw-account-link-copy{display:grid;gap:2px;min-width:0}.mtw-account-link-copy strong{font-size:12px;font-weight:600}.mtw-account-link-copy small{font-size:10px;color:#98a2b3;font-weight:400;}
.mtw-account-logout{margin-top:6px;padding-top:6px;border-top:1px solid var(--mtw-shell-border);}
.mtw-account-logout a{min-height:42px;display:flex;align-items:center;gap:11px;padding:0 9px;border-radius:9px;color:#dc2626;text-decoration:none;font-size:12px;font-weight:600;}
.mtw-account-logout a:hover{background:#fff1f2;}

/* Perfil */
.mtw-profile-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:18px;align-items:start;}
.mtw-profile-card{min-width:0;}
.mtw-profile-avatar-editor{display:grid;grid-template-columns:92px minmax(0,1fr);gap:18px;align-items:center;padding:4px 0 20px;margin-bottom:18px;border-bottom:1px solid var(--border);}
.mtw-profile-avatar-preview{width:88px;height:88px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:color-mix(in srgb,var(--mtw-shell-primary) 10%,white);color:var(--mtw-shell-primary);border:1px solid color-mix(in srgb,var(--mtw-shell-primary) 20%,white);font-size:24px;font-weight:800;}
.mtw-profile-avatar-preview img{width:100%;height:100%;object-fit:cover;display:block;}
.mtw-profile-avatar-editor strong{display:block;font-size:13px}.mtw-profile-avatar-editor p{margin:4px 0 10px;color:#667085;font-size:11px}.mtw-profile-avatar-editor .mtw-input[type=file]{height:auto;min-height:42px;padding:8px;}
.mtw-profile-remove{display:block;margin-top:9px;color:#667085;font-size:11px;}
.mtw-profile-meta{display:flex;gap:10px;flex-wrap:wrap;padding-top:4px;color:#667085;font-size:11px}.mtw-profile-meta span{display:inline-flex;align-items:center;gap:6px;}

@media(max-width:1023px){
  .mtw-topbar-inner{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 14px!important;}
  .mtw-topbar-inner>div:first-child{padding:0!important;border-right:0!important;flex:1;}
  .mtw-mobile-toggle{display:grid!important;}
  .mtw-shell-collapse{display:none!important;}
  .mtw-brand-copy strong{font-size:15px!important}.mtw-brand-copy small{font-size:9px!important;}
  .mtw-brand-mark{width:38px!important;height:38px!important;min-width:38px!important;}
  .mtw-top-actions{padding:0!important;gap:2px!important;}
  .mtw-account-name{display:none!important;}
  .mtw-account-trigger{padding-right:5px!important;gap:4px!important;}
  .mtw-account-chevron{display:none!important;}
  .mtw-layout{display:block!important;min-height:calc(100dvh - var(--mtw-shell-top))!important;}
  .mtw-sidebar{position:fixed!important;top:var(--mtw-shell-top)!important;left:0!important;bottom:0!important;width:min(320px,88vw)!important;height:auto!important;transform:translateX(-102%)!important;transition:transform .18s ease!important;z-index:100!important;}
  body.mtw-menu-open .mtw-sidebar,.mtw-sidebar.open,.mtw-sidebar.is-open{transform:translateX(0)!important;}
  .mtw-main{padding:22px 16px 40px!important;}
  .mtw-profile-layout{grid-template-columns:1fr;}
}
@media(max-width:620px){
  .mtw-topbar-inner{padding:0 10px!important;}.mtw-top-actions>.mtw-icon-btn{width:38px!important;height:38px!important}.mtw-account-popover{position:fixed;right:10px;left:10px;top:72px;width:auto;}
  .mtw-brand-copy small{display:none!important}.mtw-main{padding-left:12px!important;padding-right:12px!important}.mtw-profile-avatar-editor{grid-template-columns:72px minmax(0,1fr);gap:14px}.mtw-profile-avatar-preview{width:68px;height:68px;font-size:18px;}
}

/* Build 183 — fechamento de especificidade do shell (substitui regras legadas 153 sem tocar módulos) */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-layout{
  padding-top:0!important;
  display:grid!important;
  grid-template-columns:var(--mtw-shell-side-open) minmax(0,1fr)!important;
  min-height:calc(100dvh - var(--mtw-shell-top))!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt.mtw-shell-collapsed .mtw-layout{grid-template-columns:var(--mtw-shell-side-closed) minmax(0,1fr)!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar{
  position:sticky!important;
  top:var(--mtw-shell-top)!important;
  bottom:auto!important;
  left:auto!important;
  right:auto!important;
  width:auto!important;
  height:calc(100dvh - var(--mtw-shell-top))!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  display:block!important;
  overflow:hidden!important;
  transform:none!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar>.mtw-nav{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-main{
  margin-left:0!important;
  min-width:0!important;
  width:100%!important;
  padding:30px 34px 48px!important;
}
@media(max-width:1023px){
  html body.mtw-system-ui.mtw-shell-rebuilt .mtw-layout{display:block!important;padding-top:0!important;}
  html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar{
    position:fixed!important;
    top:var(--mtw-shell-top)!important;
    bottom:0!important;
    left:0!important;
    right:auto!important;
    width:min(320px,88vw)!important;
    height:auto!important;
    transform:translateX(-102%)!important;
    overflow:hidden!important;
  }
  html body.mtw-system-ui.mtw-shell-rebuilt.mtw-menu-open .mtw-sidebar,
  html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar.open,
  html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar.is-open{transform:translateX(0)!important;}
  html body.mtw-system-ui.mtw-shell-rebuilt .mtw-main{margin-left:0!important;padding:22px 16px 40px!important;}
}

/* Conta de usuário compartilhada pelos hot sites de Sócio e Parceiro. */
.hot-account-menu{position:relative;display:block;margin-left:8px;flex:0 0 auto;}
.hot-account-menu>summary{list-style:none}.hot-account-menu>summary::-webkit-details-marker{display:none}
.hot-account-trigger{min-height:44px;display:flex;align-items:center;gap:8px;padding:4px 8px 4px 5px;border:1px solid transparent;border-radius:10px;cursor:pointer;background:#fff;color:#0f172a;user-select:none;}
.hot-account-trigger:hover,.hot-account-menu[open] .hot-account-trigger{background:#f8fafc;border-color:var(--site-border,#e2e8f0)}
.hot-account-avatar{width:34px;height:34px;min-width:34px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:color-mix(in srgb,var(--site-primary,#2563eb) 11%,white);color:var(--site-primary,#2563eb);border:1px solid color-mix(in srgb,var(--site-primary,#2563eb) 18%,white);font-size:10px;font-weight:900;}
.hot-account-avatar img{width:100%;height:100%;object-fit:cover;display:block}.hot-account-name{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}.hot-account-trigger>svg{width:15px;height:15px;transition:transform .16s ease}.hot-account-menu[open] .hot-account-trigger>svg{transform:rotate(180deg)}
.hot-account-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:300;width:300px;padding:10px;background:#fff;border:1px solid var(--site-border,#e2e8f0);border-radius:14px;box-shadow:0 16px 42px rgba(15,23,42,.14)}
.hot-account-head{display:flex;align-items:center;gap:11px;padding:8px 8px 12px;border-bottom:1px solid var(--site-border,#e2e8f0);margin-bottom:6px}.hot-account-head .hot-account-avatar{width:40px;height:40px;min-width:40px}.hot-account-head>div{min-width:0;display:grid;gap:2px}.hot-account-head strong,.hot-account-head span,.hot-account-head small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hot-account-head strong{font-size:13px}.hot-account-head span{font-size:11px;color:#64748b}.hot-account-head small{font-size:10px;color:var(--site-primary,#2563eb);font-weight:800}
.hot-account-popover>a{min-height:50px;display:flex;align-items:center;gap:11px;padding:7px 9px;border-radius:9px;color:#334155;text-decoration:none}.hot-account-popover>a:hover{background:color-mix(in srgb,var(--site-primary,#2563eb) 7%,white);color:var(--site-primary,#2563eb)}.hot-account-popover>a>svg,.hot-account-logout svg{width:19px;height:19px;min-width:19px}.hot-account-popover>a>span{display:grid;gap:2px}.hot-account-popover>a strong{font-size:12px}.hot-account-popover>a small{font-size:10px;color:#94a3b8;font-weight:400}
.hot-account-logout{margin-top:6px;padding-top:6px;border-top:1px solid var(--site-border,#e2e8f0)}.hot-account-logout a{min-height:42px;display:flex;align-items:center;gap:10px;padding:0 9px;border-radius:9px;color:#dc2626;text-decoration:none;font-size:12px;font-weight:700}.hot-account-logout a:hover{background:#fff1f2}
.hot-profile-avatar-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:18px;align-items:center;padding:0 0 22px;margin-bottom:20px;border-bottom:1px solid var(--site-border,#e2e8f0)}.hot-profile-avatar{width:86px;height:86px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:color-mix(in srgb,var(--site-primary,#2563eb) 10%,white);color:var(--site-primary,#2563eb);border:1px solid color-mix(in srgb,var(--site-primary,#2563eb) 20%,white);font-size:23px;font-weight:900}.hot-profile-avatar img{width:100%;height:100%;object-fit:cover}.hot-profile-avatar-row strong{display:block;font-size:13px}.hot-profile-avatar-row p{margin:4px 0 10px;color:#64748b;font-size:11px}.hot-profile-avatar-row .mtw-input[type=file]{height:auto;min-height:42px;padding:8px}.hot-profile-remove{display:block;margin-top:8px;color:#64748b;font-size:11px}
@media(max-width:860px){.hot-account-menu{margin-left:0}.hot-account-name{display:none}.hot-account-trigger>svg{display:none}.hot-account-trigger{padding-right:4px}.hot-account-popover{position:fixed;left:14px;right:14px;top:76px;width:auto}.hot-profile-avatar-row{grid-template-columns:70px minmax(0,1fr);gap:14px}.hot-profile-avatar{width:66px;height:66px;font-size:18px}}


/* =====================================================================
   Build 184 — acabamento estável do shell global
   - hamburger somente mobile
   - menu sem azul fixo
   - hover padrão Conta Certa
   - scrollbar fina e estável
   - botões herdam a identidade do clube
   - perfil com nome completo e chevron discreto
   ===================================================================== */
:root{--mtw-shell-primary:#111827;}
body.mtw-system-ui.mtw-shell-rebuilt{
  --primary:var(--mtw-shell-primary)!important;
  --primary-700:var(--mtw-shell-primary)!important;
  --primary-soft:color-mix(in srgb,var(--mtw-shell-primary) 9%,white)!important;
}

/* O botão hamburger pertence SOMENTE ao layout mobile. */
html body.mtw-system-ui .mtw-mobile-toggle{display:none!important;}
@media(max-width:1023px){html body.mtw-system-ui .mtw-mobile-toggle{display:grid!important;}}

/* Estado recolhido: mantém a marca/escudo e o botão de expandir. */
html body.mtw-system-ui.mtw-shell-rebuilt.mtw-shell-collapsed .mtw-brand{display:flex!important;visibility:visible!important;opacity:1!important;}
html body.mtw-system-ui.mtw-shell-rebuilt.mtw-shell-collapsed .mtw-brand-mark{display:grid!important;visibility:visible!important;opacity:1!important;width:42px!important;height:42px!important;min-width:42px!important;}
html body.mtw-system-ui.mtw-shell-rebuilt.mtw-shell-collapsed .mtw-shell-collapse{display:grid!important;}

/* Scrollbar do menu é sempre a mesma, inclusive em módulos independentes. */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar{overflow:hidden!important;scrollbar-width:none!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar::-webkit-scrollbar{display:none!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar>.mtw-nav{
  overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin!important;scrollbar-color:#cfd4dc transparent!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar>.mtw-nav::-webkit-scrollbar{width:5px!important;height:5px!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar>.mtw-nav::-webkit-scrollbar-track{background:transparent!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar>.mtw-nav::-webkit-scrollbar-thumb{background:#cfd4dc!important;border-radius:999px!important;border:0!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar>.mtw-nav::-webkit-scrollbar-thumb:hover{background:#aeb6c2!important;}

/* Navegação: sem caixa azul. Hover no padrão da referência. */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a{
  color:#5f6b7d!important;background:transparent!important;border:0!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a::before{content:none;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a:hover{
  background:#e9e9ea!important;color:#101828!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a:hover::before{
  content:""!important;position:absolute!important;left:0!important;top:9px!important;bottom:9px!important;width:3px!important;
  border-radius:0 3px 3px 0!important;background:var(--mtw-shell-primary)!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a.active{
  background:#e9e9ea!important;color:#101828!important;font-weight:650!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a.active svg{color:var(--mtw-shell-primary)!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a.active::before{
  content:""!important;position:absolute!important;left:0!important;top:9px!important;bottom:9px!important;width:3px!important;
  border-radius:0 3px 3px 0!important;background:var(--mtw-shell-primary)!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt.mtw-shell-collapsed .mtw-nav a.active::before,
html body.mtw-system-ui.mtw-shell-rebuilt.mtw-shell-collapsed .mtw-nav a:hover::before{left:-12px!important;}

/* Conta: nome completo no desktop e seta menor. */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-trigger{gap:8px!important;padding-right:8px!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-name{
  display:block!important;max-width:260px!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;
  font-size:13px!important;font-weight:600!important;flex:0 0 auto!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-chevron{width:12px!important;height:12px!important;min-width:12px!important;stroke-width:1.7!important;margin-left:2px!important;}
@media(max-width:1180px) and (min-width:1024px){
  html body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-name{max-width:180px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
}
@media(max-width:1023px){html body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-name{display:none!important;}}

/* Cor global de ações no painel: primária = clube; secundária = branca e elegante. */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-btn-primary,
html body.mtw-system-ui.mtw-shell-rebuilt button.mtw-btn-primary,
html body.mtw-system-ui.mtw-shell-rebuilt a.mtw-btn-primary{
  background:var(--mtw-shell-primary)!important;border-color:var(--mtw-shell-primary)!important;color:#fff!important;box-shadow:none!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-btn-primary:hover{filter:brightness(.92)!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-btn-secondary,
html body.mtw-system-ui.mtw-shell-rebuilt button.mtw-btn-secondary,
html body.mtw-system-ui.mtw-shell-rebuilt a.mtw-btn-secondary{
  background:#fff!important;border-color:#d0d5dd!important;color:#344054!important;box-shadow:none!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-btn-secondary:hover{background:#f8fafc!important;border-color:#b8c0cc!important;color:#101828!important;}

/* Componentes ativos também herdam a identidade, sem voltar ao azul do legado. */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-smart-tab.is-active,
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-smart-tab[aria-selected="true"],
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-stx-tabs a.is-active,
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-group-tab.is-active{
  background:var(--mtw-shell-primary)!important;border-color:var(--mtw-shell-primary)!important;color:#fff!important;
}

/* Build 185 — estado ativo permanente igual ao hover (Master + Painel do Time). */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a.active,
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a.active:hover{
  background:#e9e9ea!important;
  color:#101828!important;
  font-weight:650!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a.active::before,
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a.active:hover::before{
  content:""!important;
  position:absolute!important;
  left:0!important;top:9px!important;bottom:9px!important;width:3px!important;
  border-radius:0 3px 3px 0!important;
  background:var(--mtw-shell-primary)!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a.active svg{
  color:var(--mtw-shell-primary)!important;
}

/* =====================================================================
   Build 187 — scrollbar global da PÁGINA
   - reserva permanente na lateral direita para evitar "pulo" de largura
   - thumb herda a identidade visual do clube/site
   - NÃO altera a scrollbar interna do menu lateral
   ===================================================================== */
:root{
  --mtw-page-scroll-track:#eef1f4;
  --mtw-page-scroll-thumb:var(--mtw-shell-primary,var(--site-primary,var(--primary,#111827)));
}

/* A página sempre reserva o espaço vertical da scrollbar. */
html{
  overflow-y:scroll!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin;
  scrollbar-color:var(--mtw-page-scroll-thumb) var(--mtw-page-scroll-track);
}

/* Chrome / Edge / Safari — somente a scrollbar principal do documento. */
html::-webkit-scrollbar{width:10px;height:10px;}
html::-webkit-scrollbar-track{background:var(--mtw-page-scroll-track);}
html::-webkit-scrollbar-thumb{
  background:var(--mtw-page-scroll-thumb);
  border-radius:999px;
  border:2px solid var(--mtw-page-scroll-track);
  min-height:42px;
}
html::-webkit-scrollbar-thumb:hover{
  background:color-mix(in srgb,var(--mtw-page-scroll-thumb) 82%,#000);
}
html::-webkit-scrollbar-corner{background:var(--mtw-page-scroll-track);}

/* Mantém o documento 1px maior no desktop para a barra continuar presente
   inclusive em páginas de conteúdo muito curto. */
@media(min-width:768px){
  html body.mtw-system-ui{min-height:calc(100vh + 1px)!important;}
}

/* A scrollbar do menu NÃO herda a cor do clube: permanece discreta/neutra. */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar>.mtw-nav{
  scrollbar-width:thin!important;
  scrollbar-color:#cfd4dc transparent!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar>.mtw-nav::-webkit-scrollbar{width:5px!important;height:5px!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar>.mtw-nav::-webkit-scrollbar-track{background:transparent!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-sidebar>.mtw-nav::-webkit-scrollbar-thumb{background:#cfd4dc!important;border-radius:999px!important;border:0!important;}


/* =====================================================================
   Build 188 — identidade do Master + conta global refinada
   ===================================================================== */
.mtw-account-popover{box-shadow:0 8px 24px rgba(16,24,40,.08)!important;}
.hot-account-popover{box-shadow:0 8px 24px rgba(15,23,42,.08)!important;}
.mtw-master-brand-logo{display:block;max-width:154px;max-height:28px;width:auto;height:auto;object-fit:contain;object-position:left center;}
.mtw-brand-copy:has(.mtw-master-brand-logo){justify-content:center;gap:2px;}
.mtw-master-brand-preview{min-height:44px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #e4e7ec;border-radius:9px;background:#fff;color:#344054;font-size:12px;}
.mtw-master-brand-preview>span{width:18px;height:18px;border-radius:5px;background:var(--preview-master,#111827);box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);}
.mtw-master-brand-current{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:4px 0 16px;padding:14px;border:1px solid #e4e7ec;border-radius:10px;background:#f9fafb;}
.mtw-master-brand-current>div{display:grid;gap:7px;}.mtw-master-brand-current small{font-size:10px;font-weight:700;color:#667085;text-transform:uppercase;letter-spacing:.05em;}
.mtw-master-brand-current img{display:block;max-width:190px;max-height:48px;object-fit:contain;object-position:left center;}.mtw-master-brand-current img.is-icon{width:48px;height:48px;object-fit:contain;}
/* O Master usa exclusivamente --mtw-shell-primary configurado. Os clubes continuam recebendo a cor do próprio cadastro/site. */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a.active svg,
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a:hover svg{transition:color .12s ease;}


/* =====================================================================
   Build 189 — estabilidade visual do shell / perfil sem reflow
   ===================================================================== */
/* O estado recolhido é conhecido antes do primeiro paint pelo <html>. */
html.mtw-shell-precollapsed body.mtw-system-ui.mtw-shell-rebuilt .mtw-topbar-inner{
  grid-template-columns:var(--mtw-shell-side-closed) minmax(0,1fr)!important;
}
html.mtw-shell-precollapsed body.mtw-system-ui.mtw-shell-rebuilt .mtw-layout{
  grid-template-columns:var(--mtw-shell-side-closed) minmax(0,1fr)!important;
}
html.mtw-shell-precollapsed body.mtw-system-ui.mtw-shell-rebuilt .mtw-brand-copy{display:none!important;}
html.mtw-shell-precollapsed body.mtw-system-ui.mtw-shell-rebuilt .mtw-topbar-inner>div:first-child{justify-content:center;padding:0 12px!important;}
html.mtw-shell-precollapsed body.mtw-system-ui.mtw-shell-rebuilt .mtw-brand{justify-content:center!important;}
html.mtw-shell-precollapsed body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav{padding-left:12px!important;padding-right:12px!important;}
html.mtw-shell-precollapsed body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav-title{height:12px!important;min-height:12px!important;margin:8px 10px!important;padding:0!important;border-top:1px solid var(--mtw-shell-border)!important;font-size:0!important;}
html.mtw-shell-precollapsed body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a{justify-content:center!important;gap:0!important;padding-left:0!important;padding-right:0!important;overflow:visible!important;}
html.mtw-shell-precollapsed body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a>span{display:none!important;}
html.mtw-shell-precollapsed body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a.active::before{left:-12px!important;}

/* Nada deve animar enquanto o shell assume seu estado inicial. */
html:not(.mtw-shell-ready) body.mtw-system-ui.mtw-shell-rebuilt .mtw-topbar-inner,
html:not(.mtw-shell-ready) body.mtw-system-ui.mtw-shell-rebuilt .mtw-layout,
html:not(.mtw-shell-ready) body.mtw-system-ui.mtw-shell-rebuilt .mtw-shell-collapse svg,
html:not(.mtw-shell-ready) body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-chevron,
html:not(.mtw-shell-ready) body.mtw-system-ui.mtw-shell-rebuilt .mtw-nav a,
html:not(.mtw-shell-ready) body.mtw-system-ui.mtw-shell-rebuilt .mtw-btn,
html:not(.mtw-shell-ready) body.mtw-system-ui.mtw-shell-rebuilt .mtw-card{
  transition:none!important;
  animation:none!important;
}

/* A seta do perfil nunca pode ser espremida, ocultada ou recortada. */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-menu{overflow:visible!important;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-menu>summary,
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-trigger{
  overflow:visible!important;
  min-width:0!important;
  max-width:none!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-name{
  flex:1 1 auto!important;
  min-width:0!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-account-chevron{
  display:block!important;
  flex:0 0 13px!important;
  width:13px!important;
  height:13px!important;
  min-width:13px!important;
  min-height:13px!important;
  margin-left:4px!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  stroke:#475467!important;
  fill:none!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Shell sem “crescer/encolher” durante navegação normal. Transição só no clique de recolher. */
html body.mtw-system-ui.mtw-shell-rebuilt:not(.mtw-shell-transitioning) .mtw-topbar-inner,
html body.mtw-system-ui.mtw-shell-rebuilt:not(.mtw-shell-transitioning) .mtw-layout{
  transition:none!important;
}
html body.mtw-system-ui.mtw-shell-rebuilt.mtw-shell-transitioning .mtw-topbar-inner,
html body.mtw-system-ui.mtw-shell-rebuilt.mtw-shell-transitioning .mtw-layout{
  transition:grid-template-columns .18s ease!important;
}

/* Dimensões previsíveis evitam saltos quando ícones/JS terminam de ligar. */
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-btn{min-height:40px;line-height:1.2;}
html body.mtw-system-ui.mtw-shell-rebuilt .mtw-btn>svg{flex:0 0 auto;}


/* =====================================================================
   Build 190 — blindagem visual de módulos legados/independentes
   Domínios, Assinatura, Configurações e Planos não podem reativar
   o azul antigo nem as scrollbars nativas grossas.
   ===================================================================== */
html body.mtw-system-ui .mtw-sidebar{overflow:hidden!important;scrollbar-width:none!important;}
html body.mtw-system-ui .mtw-sidebar::-webkit-scrollbar{display:none!important;}
html body.mtw-system-ui .mtw-sidebar>.mtw-nav{
  overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin!important;scrollbar-color:#cfd4dc transparent!important;
}
html body.mtw-system-ui .mtw-sidebar>.mtw-nav::-webkit-scrollbar{width:4px!important;height:4px!important;}
html body.mtw-system-ui .mtw-sidebar>.mtw-nav::-webkit-scrollbar-track{background:transparent!important;}
html body.mtw-system-ui .mtw-sidebar>.mtw-nav::-webkit-scrollbar-thumb{background:#cfd4dc!important;border-radius:999px!important;border:0!important;}
html body.mtw-system-ui .mtw-sidebar>.mtw-nav::-webkit-scrollbar-thumb:hover{background:#aeb6c2!important;}

/* Ativo/hover = neutro elegante. A identidade aparece só na barra lateral. */
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a,
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a:visited{
  color:#5f6b7d!important;background:transparent!important;border-color:transparent!important;
}
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a:hover,
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a.active,
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a.active:hover{
  background:#e9e9ea!important;color:#101828!important;border-color:transparent!important;
}
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a:hover svg,
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a.active svg,
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a.active:hover svg{
  color:#101828!important;stroke:currentColor!important;
}
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a:hover::before,
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a.active::before,
html body.mtw-system-ui .mtw-sidebar>.mtw-nav a.active:hover::before{
  content:""!important;position:absolute!important;left:0!important;top:9px!important;bottom:9px!important;width:3px!important;
  border-radius:0 3px 3px 0!important;background:var(--mtw-shell-primary,var(--primary,#111827))!important;
}

/* Scrollbar principal sempre fina e consistente; nunca volta à nativa grossa. */
html{overflow-y:scroll!important;scrollbar-gutter:stable!important;scrollbar-width:thin!important;
  scrollbar-color:var(--mtw-page-scroll-thumb,var(--mtw-shell-primary,var(--primary,#111827))) var(--mtw-page-scroll-track,#eef1f4)!important;}
html::-webkit-scrollbar{width:8px!important;height:8px!important;}
html::-webkit-scrollbar-track{background:var(--mtw-page-scroll-track,#eef1f4)!important;}
html::-webkit-scrollbar-thumb{background:var(--mtw-page-scroll-thumb,var(--mtw-shell-primary,var(--primary,#111827)))!important;border-radius:999px!important;border:2px solid var(--mtw-page-scroll-track,#eef1f4)!important;}
html::-webkit-scrollbar-corner{background:var(--mtw-page-scroll-track,#eef1f4)!important;}
