:root {
  color-scheme: dark;
  --bg: #0b0f1e;
  --bg-elevated: #12172b;
  --surface: #171d35;
  --surface-hover: #1e2542;
  --border: #2a3156;
  --text: #f4f6fb;
  --text-muted: #9aa3c7;
  --accent-1: #6366f1;
  --accent-2: #a855f7;
  --accent-3: #f59e0b;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --success: #22c55e;
  --danger: #f43f5e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 0%, #1b1440 0%, var(--bg) 45%);
  color: var(--text);
  min-height: 100vh;
}

h1, h2, h3 {
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 8px;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* Boot */
.boot-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 100;
}

.boot-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--accent-2);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Auth screen */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 100%;
  max-width: 920px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-hero {
  background: var(--accent-gradient);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-hero h1 {
  font-size: 32px;
  margin-top: 24px;
}

.auth-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  max-width: 320px;
}

.auth-hero-balls {
  display: flex;
  gap: 10px;
}

.auth-hero .ball {
  animation: float 3.6s ease-in-out infinite;
}

.ball--2 { animation-delay: 0.2s; }
.ball--3 { animation-delay: 0.4s; }
.ball--4 { animation-delay: 0.6s; }
.ball--5 { animation-delay: 0.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.auth-form-panel {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: 999px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.auth-tab.active {
  background: var(--accent-gradient);
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 16px;
  margin: 0;
}

/* Inputs & buttons */
input, select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 100%;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent-1);
}

button {
  font-family: inherit;
  cursor: pointer;
}

.btn-primary, .btn-secondary, .btn-ghost {
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-saved {
  background: transparent;
  border: 1px solid var(--success);
  color: var(--success);
  opacity: 1;
}

/* App shell */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 24px;
  font-weight: 700;
  font-size: 17px;
}

.brand-mark {
  font-size: 22px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-align: left;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-link.active {
  background: var(--accent-gradient);
  color: #fff;
}

.nav-group {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 12px 8px;
}

.user-card {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.user-info strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.admin {
  background: linear-gradient(135deg, var(--accent-3), #ef4444);
  color: #fff;
}

.content {
  padding: 28px 36px 60px;
  max-width: 1100px;
  width: 100%;
}

.topbar {
  margin-bottom: 20px;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cards & grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.phase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  margin-bottom: 10px;
}

.phase-tag--2 {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.stat-tile .value {
  font-size: 28px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-tile .label {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Gerador de grupos em janelas */
.group-wizard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}

.sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.sub-tab {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
}

.sub-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

.group-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.group-step {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.group-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hover);
  color: var(--text);
  flex: 0 0 auto;
}

.group-step.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

.group-step.active span {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.group-window-nav {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-window-nav .muted {
  text-align: center;
  flex: 1;
}

.groups-compare-card {
  display: grid;
  gap: 12px;
}

.groups-compare-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.groups-compare-head h2 {
  margin-bottom: 0;
}

.groups-compare-controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  gap: 12px;
}

#gruposResumoGrid {
  width: 100%;
}

#gruposResumoGrid .stat-tile {
  padding: 12px 14px;
  min-height: 0;
}

#gruposResumoGrid .stat-tile .value {
  font-size: 22px;
  line-height: 1;
}

#gruposResumoGrid .stat-tile .label {
  font-size: 12px;
  margin-top: 6px;
}

.summary-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-inline span {
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.summary-inline strong {
  color: var(--text-muted);
  font-weight: 600;
}

.summary-inline em {
  color: var(--text-muted);
  font-style: normal;
}

#validarResumo,
#rankingResumo {
  width: 100%;
}

@media (max-width: 1100px) {
  .stat-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }

  #gruposResumoGrid .stat-tile .value,
  #validarResumo .stat-tile .value,
  #rankingResumo .stat-tile .value {
    font-size: 20px;
  }
}

@media (max-width: 720px) {
  .stat-grid,
  .stat-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }

  .stat-tile {
    padding: 14px;
  }

  .stat-tile .value {
    font-size: 22px;
  }

  #gruposResumoGrid .stat-tile .value,
  #validarResumo .stat-tile .value,
  #rankingResumo .stat-tile .value {
    font-size: 18px;
  }
}

.group-window-hidden {
  display: none !important;
}

#view-grupos > [data-group-step-panel] {
  min-height: 0;
}

#gruposResultado .card,
#selecionarResultado .generated-grid,
#rankingResultado .generated-grid {
  max-height: calc(100vh - 230px);
  overflow: auto;
}

#gruposResultado .generated-grid,
#selecionarResultado .generated-grid,
#rankingResultado .generated-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Balls */
.ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  background: var(--accent-gradient);
  color: #fff;
  border: 3px solid transparent;
  box-shadow: 0 6px 14px -6px rgba(99, 102, 241, 0.6);
}

/* Par/impar = estilo da borda; quente/frio = cor de preenchimento conforme frequencia no datalake */
/* Especificidade dupla (.ball--x.ball--y) para vencer .ball-sample independente da ordem no arquivo */
.ball--par.ball--par {
  border-color: #38bdf8;
}

.ball--impar.ball--impar {
  border-color: #fbbf24;
}

.ball--quente.ball--quente {
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 6px 14px -6px rgba(239, 68, 68, 0.65);
}

.ball--frio.ball--frio {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 6px 14px -6px rgba(14, 165, 233, 0.65);
}

.ball--provavel.ball--provavel {
  background: linear-gradient(135deg, #34d399, #10b981 55%, #047857);
  border-color: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22), 0 8px 20px -6px rgba(5, 150, 105, 0.7);
  transform: translateY(-1px);
  animation: pulse-probability 1.6s ease-in-out infinite;
}

.ball-sample.ball--provavel {
  background: linear-gradient(135deg, #34d399, #047857);
  border-color: #ecfdf5;
}

@keyframes pulse-probability {
  0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18), 0 8px 20px -6px rgba(5, 150, 105, 0.65); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.28), 0 10px 24px -6px rgba(5, 150, 105, 0.8); }
}

/* Dezena presente tanto na sugestao quanto no ultimo sorteio realizado */
.ball--hit.ball--hit {
  box-shadow: 0 0 0 3px #facc15, 0 8px 18px -6px rgba(250, 204, 21, 0.7);
  transform: translateY(-1px);
}

/* Checagem: dezena do jogo que bateu no ultimo sorteio realizado (destaque verde) */
.ball--hit-verde.ball--hit-verde {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 0 3px #4ade80, 0 8px 18px -6px rgba(34, 197, 94, 0.75);
  transform: translateY(-1px);
}

.checagem-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.checagem-card-main {
  flex: 1 1 320px;
  min-width: 260px;
}

.checagem-card-chart {
  flex: 1 1 280px;
  min-width: 220px;
}

.mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 90px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.mini-bar {
  flex: 1 1 auto;
  min-width: 2px;
  background: linear-gradient(180deg, #818cf8, #6366f1);
  border-radius: 1px;
  transition: opacity 0.15s ease;
}

.mini-bar:hover {
  opacity: 0.7;
}

.top-chance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.results-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: start;
}

.overview-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.legend-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 20px;
}

.legend-panel h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.ball-sample {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent-gradient);
  border: 3px solid transparent;
}

.stat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.stat-chip-row--stacked {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 4px;
}

.stat-chip-row--stacked .stat-chip {
  width: 100%;
}

td .ball-row {
  margin-top: 0;
  flex-wrap: nowrap;
}

td .ball {
  width: 30px;
  height: 30px;
  font-size: 11px;
  flex: 0 0 auto;
}

.stat-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.stat-chip--par { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.stat-chip--impar { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); }
.stat-chip--quente { color: #fb923c; border-color: rgba(239, 68, 68, 0.4); }
.stat-chip--frio { color: #818cf8; border-color: rgba(14, 165, 233, 0.4); }

/* Pastas de jogos salvos */
.folders-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.folder-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.folder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.folder-header h3 {
  margin: 0;
  font-size: 15px;
}

.folder-count {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

/* Generated / saved games */
.generated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.game-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.analysis-result {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analysis-block h3 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.swap-row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.swap-row:last-of-type {
  border-bottom: none;
}

.swap-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.swap-arrow {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 16px;
}

.swap-reason {
  margin: 6px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin: 0 6px 6px 0;
}

/* Admin */
.admin-result {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.group-matrix-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 12px;
}

.group-matrix-table.group-matrix-table--compact {
  min-width: 0;
}

.group-matrix-table th,
.group-matrix-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.group-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.group-matrix-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.group-matrix-table tr.group-row-selected {
  background: rgba(34, 197, 94, 0.12);
}

.group-matrix-table .group-numbers-cell {
  min-width: 420px;
  line-height: 1.45;
  white-space: normal;
}

.group-status-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.group-status-chip.is-selected {
  color: #d1fae5;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.18);
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  max-width: 360px;
  z-index: 50;
  font-size: 13px;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.success {
  border-left-color: var(--success);
}

/* Responsive */
@media (max-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr;
  }
  .results-layout {
    grid-template-columns: 1fr;
  }
  .legend-panel {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .auth-hero {
    padding: 32px 28px;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nav-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-top: none;
    margin-top: 8px;
  }
  .nav-heading {
    width: 100%;
  }
  .user-card {
    border-top: none;
    margin-left: auto;
  }
  .content {
    padding: 20px;
  }
  .group-wizard {
    position: static;
  }
  .group-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .group-window-nav {
    flex-wrap: wrap;
  }
  .group-window-nav .muted {
    order: -1;
    flex: 1 0 100%;
  }
}

/* Impressao / "PDF" das apostas finais */
.print-only {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }
  .print-only, .print-only * {
    visibility: visible;
  }
  .print-only {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #000;
    background: #fff;
  }
  .print-aposta {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    page-break-inside: avoid;
  }
  .print-numeros {
    font-family: "Courier New", monospace;
    font-size: 14px;
    margin-top: 4px;
  }
}
