/* tamascia.poker — paleta Pescaria do Tamascia (referência visual da marca) */
:root {
  --tamascia-blue: #1a3a9e;
  --tamascia-blue-deep: #0f2668;
  --tamascia-blue-soft: #243fa8;
  --tamascia-orange: #d95d2b;
  --tamascia-white: #ffffff;
  --tamascia-muted: rgba(255, 255, 255, 0.72);
  --tamascia-graphic: rgba(15, 38, 104, 0.35);
  --tamascia-shadow: rgba(0, 0, 0, 0.25);
  /* Cantos moderados (evita “pílula” em botões); cards um pouco mais definidos */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-btn: 8px;
  --radius-chip: 10px;
  --space-page-x: 1.25rem;
  --space-page-y: 1.5rem;
  --space-page-bottom: 3.5rem;
  --space-card-y: 1.2rem;
  --space-card-x: 1.25rem;
  --space-stack: 1rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Canvas do UA costuma ser branco; no celular vira faixas no overscroll / safe area */
  background-color: var(--tamascia-blue-deep);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
  font-family: var(--font);
  color: var(--tamascia-white);
  background: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      var(--tamascia-blue-soft),
      var(--tamascia-blue) 45%,
      var(--tamascia-blue-deep)
    )
    fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
      circle at 15% 85%,
      rgba(217, 93, 43, 0.08) 0%,
      transparent 45%
    ),
    radial-gradient(circle at 90% 15%, rgba(217, 93, 43, 0.06) 0%, transparent 40%);
  z-index: 0;
}

/* Marca d’água — todas as páginas que usam theme.css */
/* Marca d’água — fim do documento (fluxo normal), todas as páginas com theme.css */
body::after {
  content: "© 2026 · Created by Edy Enumo";
  display: block;
  margin-top: 2rem;
  padding: 0 var(--space-page-x) max(1.25rem, env(safe-area-inset-bottom, 0px));
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  user-select: none;
}

a {
  color: var(--tamascia-orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-page-y) max(var(--space-page-x), env(safe-area-inset-left, 0px))
    var(--space-page-bottom) max(var(--space-page-x), env(safe-area-inset-right, 0px));
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.85rem;
  flex-wrap: wrap;
}

.brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 6px 22px var(--tamascia-shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-text h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.brand-text .tag {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--tamascia-muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-left: auto;
}

.nav-links a.button-ghost {
  color: var(--tamascia-white);
  border-color: rgba(255, 255, 255, 0.35);
}

h2 {
  font-size: 1.28rem;
  margin: 1.65rem 0 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: var(--space-card-y) var(--space-card-x);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.14);
}

.card + .card {
  margin-top: var(--space-stack);
}

.card > h2:first-child {
  margin-top: 0;
}

.championship-tabs {
  padding-top: 0;
}

.championship-tabs .tabs-nav {
  display: flex;
  gap: 0;
  margin: 0 calc(-1 * var(--space-card-x)) 1.1rem;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.championship-tabs .tab-trigger {
  flex: 1;
  margin: 0;
  padding: 0.78rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tamascia-muted);
  background: rgba(0, 0, 0, 0.12);
  border: none;
  /* Sobrescreve o border-radius global de `button` — só cantos superiores nos :first/:last */
  border-radius: 0;
  border-top: 3px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.championship-tabs .tab-trigger:first-child {
  border-top-left-radius: var(--radius);
}

.championship-tabs .tab-trigger:last-child {
  border-top-right-radius: var(--radius);
}

.championship-tabs .tab-trigger:hover {
  color: var(--tamascia-white);
  background: rgba(255, 255, 255, 0.06);
}

.championship-tabs .tab-trigger.is-active {
  color: var(--tamascia-white);
  background: rgba(217, 93, 43, 0.18);
  border-top-color: var(--tamascia-orange);
}

.championship-tabs .tab-trigger:focus-visible {
  outline: 2px solid var(--tamascia-orange);
  outline-offset: -2px;
}

.championship-tabs .tab-panel {
  padding-top: 0.35rem;
}

.championship-tabs .tab-panel[hidden] {
  display: none;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--tamascia-muted);
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 38, 104, 0.45);
  color: var(--tamascia-white);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--tamascia-orange);
  outline-offset: 1px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.field {
  margin-bottom: 0.9rem;
}

.row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.row .field {
  flex: 1;
  min-width: 140px;
}

.button,
button {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  padding: 0.6rem 1.2rem;
  background: var(--tamascia-orange);
  color: var(--tamascia-white);
  box-shadow: 0 3px 12px rgba(217, 93, 43, 0.32);
  transition:
    filter 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.button:hover,
button:hover {
  filter: brightness(1.06);
  box-shadow: 0 5px 18px rgba(217, 93, 43, 0.38);
}

.button:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tamascia-orange);
  outline-offset: 2px;
}

.button-secondary {
  background: transparent;
  color: var(--tamascia-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.button-secondary:hover {
  border-color: var(--tamascia-orange);
  color: var(--tamascia-orange);
}

a.button:hover,
a.button:focus-visible {
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.52rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(217, 93, 43, 0.25);
  color: #ffc7a8;
}

.badge-live {
  background: rgba(76, 222, 128, 0.2);
  color: #b6f7c8;
}

/* Estado do torneio — cores distintas (lista de cartões) */
.badge.status-upcoming {
  background: rgba(139, 92, 246, 0.38);
  color: #ede9fe;
}

.badge.status-open {
  background: rgba(34, 197, 94, 0.36);
  color: #dcfce7;
}

.badge.status-registration_closed {
  background: rgba(245, 158, 11, 0.38);
  color: #fef3c7;
}

.badge.status-live {
  background: rgba(16, 185, 129, 0.4);
  color: #d1fae5;
}

.badge.status-live_no_rebuy {
  background: rgba(6, 182, 212, 0.38);
  color: #cffafe;
}

.badge.status-finished {
  background: rgba(59, 130, 246, 0.38);
  color: #dbeafe;
}

.badge.status-cancelled {
  background: rgba(100, 116, 139, 0.45);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Indicador “ao vivo” (registro tardio / em andamento) */
.live-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
  animation: live-dot-blink 1.05s ease-in-out infinite;
}

@keyframes live-dot-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
    opacity: 1;
  }
}

.muted {
  color: var(--tamascia-muted);
  font-size: 0.9rem;
}

.error {
  color: #ffb4b4;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.staff-toast {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10000;
  margin: 0;
  padding: 0.65rem 1.35rem;
  padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
  max-width: min(92vw, 26rem);
  text-align: center;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #f4fff8;
  background: linear-gradient(
    165deg,
    rgba(42, 140, 95, 0.96) 0%,
    rgba(18, 72, 52, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -130%, 0);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}

.staff-toast.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.offline-banner {
  display: none;
  padding: 0.65rem 0.9rem;
  background: rgba(217, 93, 43, 0.35);
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
}

.offline-banner.visible {
  display: block;
}

.staff-sync-pending-banner {
  margin-bottom: 0.85rem;
}

.staff-sync-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.staff-sync-status {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.staff-sync-status.is-ok {
  background: rgba(46, 160, 67, 0.28);
  border: 1px solid rgba(46, 160, 67, 0.45);
}

.staff-sync-status.is-warn {
  background: rgba(217, 93, 43, 0.22);
  border: 1px solid rgba(217, 93, 43, 0.4);
}

.staff-sync-status.is-err {
  background: rgba(220, 53, 69, 0.22);
  border: 1px solid rgba(220, 53, 69, 0.45);
}

.staff-sync-status.is-muted {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stack-list li {
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stack-list li:last-child {
  border-bottom: none;
}

/* Lista em que cada ítem inteiro é um cartão clicável */
.stack-list-cards > li {
  padding: 0;
  border-bottom: none;
}

.stack-list-cards > li + li {
  margin-top: 0.65rem;
}

a.click-card {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--tamascia-white);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

a.click-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(217, 93, 43, 0.5);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

a.click-card .click-card-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

a.click-card .click-card-dates {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

a.click-card .click-card-desc {
  margin: 0.45rem 0 0;
  line-height: 1.45;
  font-size: 0.92rem;
  white-space: pre-line;
}

a.click-card .click-card-more {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

a.click-card:hover .click-card-more {
  color: var(--tamascia-orange);
}

a.click-card .click-card-more__arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}

a.click-card:hover .click-card-more__arrow {
  transform: translateX(0.2rem);
}

a.click-card .click-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.42rem;
}

.tournament-list-index {
  display: inline-flex;
  align-items: baseline;
  gap: 0.02rem;
  padding: 0.28rem 0.65rem 0.32rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(165deg, rgba(217, 93, 43, 0.58), rgba(217, 93, 43, 0.26));
  border: 2px solid rgba(255, 210, 180, 0.95);
  box-shadow:
    0 0 0 1px rgba(15, 38, 104, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.22);
}

.tournament-list-index-prefix {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.tournament-list-index-num {
  font-size: 1.22rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.section-head-championships {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.championship-add-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* Lista resumida de ranking (aba Ranking): numeração nativa do <ol>, empilhada */
ol.ranking-summary-list {
  margin: 0.35rem 0 0;
  padding-left: 1.5rem;
  list-style: decimal;
  line-height: 1.5;
}

ol.ranking-summary-list li {
  margin: 0.35rem 0;
  padding: 0;
}

.staff-tournament-add-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.staff-championship-tabs.staff-panel h2 {
  font-size: 1.05rem;
  font-weight: 800;
}

.staff-tournaments-head h3 {
  font-weight: 700;
}

.tournaments-block-open {
  margin-bottom: 1rem;
}

.tournaments-block-live {
  margin-bottom: 1rem;
}

.tournaments-block-title {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.tournaments-accordion {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.12);
}

.tournaments-accordion-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--tamascia-muted);
  user-select: none;
}

.tournaments-accordion-summary::-webkit-details-marker {
  display: none;
}

.tournaments-accordion-summary::after {
  content: "▸";
  float: right;
  opacity: 0.85;
  transition: transform 0.15s ease;
}

.tournaments-accordion[open] .tournaments-accordion-summary::after {
  transform: rotate(90deg);
}

.tournaments-accordion-body {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tournaments-accordion-section + .tournaments-accordion-section {
  margin-top: 1rem;
}

.tournaments-accordion-heading {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--tamascia-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tournaments-accordion-section:first-of-type .tournaments-accordion-heading {
  margin-top: 0.55rem;
}

.tournaments-accordion-hint {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
}

/**
 * Botão circular "+" reutilizável — ver TamasciaLayout.createRoundAddButton()
 * Tokens (--btn-round-add-*) permitem sobrescrever em contexto específico.
 */
/* Garante ocultação: o estilo abaixo usa display e pode sobrepor o [hidden] padrão do UA. */
.btn-round-add[hidden] {
  display: none !important;
}

.btn-round-add {
  --btn-round-add-size: 2.35rem;
  --btn-round-add-sign-size: 1.5rem;
  flex-shrink: 0;
  box-sizing: border-box;
  width: var(--btn-round-add-size);
  height: var(--btn-round-add-size);
  min-width: var(--btn-round-add-size);
  min-height: var(--btn-round-add-size);
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(217, 93, 43, 0.28);
  color: var(--tamascia-white);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  line-height: 0;
  vertical-align: middle;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn-round-add__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: var(--btn-round-add-sign-size);
  font-weight: 300;
  line-height: 0;
  /* Ajuste óptico: o “+” costuma parecer baixo no círculo */
  transform: translateY(-0.06em);
  pointer-events: none;
  user-select: none;
}

.btn-round-add:hover {
  background: rgba(217, 93, 43, 0.45);
  border-color: rgba(217, 93, 43, 0.75);
  text-decoration: none;
}

.btn-round-add:focus-visible {
  outline: 2px solid var(--tamascia-orange);
  outline-offset: 3px;
}

.btn-round-add:active {
  transform: scale(0.96);
}

.btn-round-add:active .btn-round-add__icon {
  transform: translateY(-0.06em) scale(0.95);
}

.tamascia-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: calc(100vw - 2.5rem);
  width: min(440px, 100%);
}

.tamascia-modal::backdrop {
  background: rgba(5, 15, 50, 0.65);
  backdrop-filter: blur(3px);
}

.tamascia-modal-inner {
  margin: 0;
}

.tamascia-modal-inner.card {
  max-height: min(90vh, 520px);
  overflow-y: auto;
  color: var(--tamascia-white);
}

.tamascia-modal-inner.card h1,
.tamascia-modal-inner.card h2,
.tamascia-modal-inner.card h3 {
  color: var(--tamascia-white);
}

/* Novo torneio: altura conforme o conteúdo, sem barra de rolagem interna */
.tamascia-modal--fit {
  width: min(36rem, calc(100vw - 2.5rem));
}

.tamascia-modal--fit .tamascia-modal-inner.card {
  max-height: none;
  overflow-y: visible;
}

a.click-card .muted {
  color: var(--tamascia-muted);
}

a.click-card:focus-visible {
  outline: 2px solid var(--tamascia-orange);
  outline-offset: 3px;
}

/* Banner do torneio: área inteira clicável (ex.: voltar ao campeonato) */
a.banner-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 0;
}

a.banner-card:hover {
  border-color: rgba(217, 93, 43, 0.55);
  box-shadow: 0 8px 28px var(--tamascia-shadow);
}

a.banner-card img {
  width: 100%;
  vertical-align: middle;
  display: block;
}

a.banner-card:focus-visible {
  outline: 2px solid var(--tamascia-orange);
  outline-offset: 3px;
}

.brand-mark {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.brand-mark:hover .brand-logo {
  border-color: rgba(217, 93, 43, 0.45);
}

.comment-box {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.12);
}

.comment-box img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin-top: 0.35rem;
}

.staff-panel {
  border-left: 4px solid var(--tamascia-orange);
}

.staff-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.55rem;
}

.staff-status-current {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.staff-max-rebuys-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.15rem 0 0;
}

.staff-max-rebuys-value {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.staff-icon-edit-btn {
  padding: 0.35rem 0.55rem;
  min-width: auto;
  font-size: 1.15rem;
  line-height: 1;
}

.tournament-hero {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 38, 104, 0.35);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.42rem 0.88rem;
  border-radius: var(--radius-chip);
  border: 1px solid transparent;
  background: rgba(217, 93, 43, 0.35);
  color: #ffe0d4;
  margin-bottom: 0.65rem;
}

.status-pill.status-upcoming {
  background: rgba(139, 92, 246, 0.38);
  color: #ede9fe;
}

.status-pill.status-open {
  background: rgba(34, 197, 94, 0.36);
  color: #dcfce7;
}

.status-pill.status-registration_closed {
  background: rgba(245, 158, 11, 0.38);
  color: #fef3c7;
}

.status-pill.status-live {
  background: rgba(16, 185, 129, 0.4);
  color: #d1fae5;
}

.status-pill.status-live_no_rebuy {
  background: rgba(6, 182, 212, 0.38);
  color: #cffafe;
}

.status-pill.status-finished {
  background: rgba(59, 130, 246, 0.38);
  color: #dbeafe;
}

.status-pill.status-cancelled {
  background: rgba(100, 116, 139, 0.45);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.55rem 0 0;
}

.rank-matrix-wrap {
  margin-top: 0.15rem;
}

.rank-matrix-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem max(1.15rem, env(safe-area-inset-left, 0px)) 1.15rem max(1.15rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  background: rgba(252, 253, 255, 0.98);
  color: #0f2668;
  border-top: 1px solid rgba(15, 38, 104, 0.14);
  border-bottom: 1px solid rgba(15, 38, 104, 0.12);
}

.rank-matrix-bleed--staff {
  background: rgba(255, 255, 255, 0.97);
  border-top: 2px solid rgba(217, 93, 43, 0.35);
  border-bottom-color: rgba(15, 38, 104, 0.12);
}

.rank-matrix-bleed .muted {
  color: rgba(15, 38, 104, 0.62);
}

.rank-matrix-bleed .matrix-mode-btn {
  color: #1a3a9e;
  border-color: rgba(15, 38, 104, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.rank-matrix-bleed .matrix-mode-btn:hover {
  color: #0f2668;
  background: #fff;
}

.rank-matrix-bleed .matrix-mode-btn.is-active {
  color: #0f2668;
  border-color: rgba(217, 93, 43, 0.65);
  background: rgba(217, 93, 43, 0.14);
}

.rank-matrix-bleed-toolbar {
  margin: 0 0 0.65rem;
}

.rank-matrix-bleed .rank-matrix-wrap {
  margin-top: 0;
}

.rank-matrix-bleed .table-wrap {
  margin-top: 0;
}

/* Matriz de ranking: largura útil, faixa clara, sem colunas sticky */
.rank-matrix-table {
  --rank-matrix-rank-col-w: 2.65rem;
  --rank-matrix-col-sep: rgba(15, 38, 104, 0.14);
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: #132456;
  border: 1px solid rgba(15, 38, 104, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-matrix-col-rank {
  width: var(--rank-matrix-rank-col-w);
}

.rank-matrix-col-player {
  width: 9.5rem;
}

.rank-matrix-table th,
.rank-matrix-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(15, 38, 104, 0.16);
  border-right: 1px solid var(--rank-matrix-col-sep);
  vertical-align: middle;
}

.rank-matrix-table th:last-child,
.rank-matrix-table td:last-child {
  border-right: none;
}

.rank-matrix-table thead th {
  background: #e8edf7;
  color: #0f2668;
  border-bottom: 2px solid rgba(15, 38, 104, 0.24);
}

.rank-matrix-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.rank-matrix-table tbody tr:nth-child(even) td {
  background: #f1f4fb;
}

.rank-matrix-table tbody tr:hover td,
.rank-matrix-table tbody tr.is-row-highlight td {
  background: rgba(217, 93, 43, 0.1);
}

.rank-matrix-table tbody tr {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rank-matrix-th-num,
.rank-matrix-td-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: var(--rank-matrix-rank-col-w);
  min-width: var(--rank-matrix-rank-col-w);
  max-width: var(--rank-matrix-rank-col-w);
  box-sizing: border-box;
}

.rank-matrix-th-player,
.rank-matrix-td-player {
  text-align: left;
  min-width: 7.25rem;
  max-width: 14rem;
  width: 9.5rem;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-matrix-th-tourney {
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap;
  min-width: 3rem;
  color: #0f2668;
}

.rank-matrix-cell {
  font-variant-numeric: tabular-nums;
  min-width: 3rem;
  white-space: nowrap;
}

.rank-matrix-table tbody td.rank-matrix-cell {
  text-align: right;
}

.rank-matrix-table tbody td.rank-matrix-cell .muted {
  color: rgba(15, 38, 104, 0.42);
}

.rank-matrix-table thead .rank-matrix-th-tourney {
  text-align: center;
}

.matrix-mode-btn {
  padding: 0.38rem 0.9rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.15);
  color: var(--tamascia-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.matrix-mode-btn:hover {
  color: var(--tamascia-white);
  background: rgba(255, 255, 255, 0.06);
}

.matrix-mode-btn.is-active {
  color: var(--tamascia-white);
  border-color: rgba(217, 93, 43, 0.55);
  background: rgba(217, 93, 43, 0.22);
}

.matrix-mode-btn:focus-visible {
  outline: 2px solid var(--tamascia-orange);
  outline-offset: 2px;
}

.podium-medal {
  display: inline-block;
  margin-left: 0.08em;
  font-size: 1.12em;
  line-height: 1;
  vertical-align: middle;
}

.rank-matrix-cell-pos {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28em;
  width: 100%;
  min-width: 0;
  vertical-align: middle;
}

.rank-matrix-cell-pos__medal {
  flex-shrink: 0;
  line-height: 1;
}

.rank-matrix-cell-pos__value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rank-matrix-cell-pos .podium-medal {
  margin-left: 0;
  margin-right: 0;
}

.rank-matrix-cell-pos .rank-matrix-pts-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Linha do tempo + gráfico (abaixo da tabela na visualização detalhada) */
.rank-matrix-chart-wrap {
  margin: 1.15rem 0 0;
}

.rank-matrix-timeline-intro {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.rank-matrix-timeline-title {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: #0f2668;
  line-height: 1.35;
}

/* Mesma largura útil do bloco do gráfico (.rank-matrix-timeline-svg-outer), sem invadir o padding da página. */
.rank-matrix-timeline-slider-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 0.55rem;
  margin-bottom: 0.65rem;
  box-sizing: border-box;
}

.rank-matrix-timeline-slider-wrap input[type="range"] {
  display: block;
  width: 100%;
  min-width: 0;
  accent-color: var(--tamascia-orange);
}

.rank-matrix-timeline-svg-outer {
  width: 100%;
  margin-bottom: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 38, 104, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 244, 251, 0.99) 100%);
  box-shadow: 0 4px 18px rgba(15, 38, 104, 0.08);
  overflow: hidden;
}

.rank-matrix-timeline-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 210px;
  max-height: 320px;
}

.rank-matrix-timeline-grid {
  stroke: rgba(15, 38, 104, 0.1);
  stroke-width: 1;
}

.rank-matrix-timeline-axis {
  stroke: rgba(15, 38, 104, 0.35);
  stroke-width: 1.5;
}

.rank-matrix-timeline-tick {
  fill: rgba(15, 38, 104, 0.55);
  font-size: 11px;
  font-weight: 700;
}

.rank-matrix-timeline-path {
  opacity: 0.94;
}

.rank-matrix-timeline-end-label {
  font-size: 11px;
  font-weight: 750;
  dominant-baseline: middle;
  text-anchor: start;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 3px;
}

.rank-matrix-timeline-picker-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.5rem;
}

.button.rank-matrix-timeline-select-all {
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.32rem 0.62rem;
  background: rgba(15, 38, 104, 0.1);
  color: #0f2668;
  border: 1px solid rgba(15, 38, 104, 0.35);
  box-shadow: none;
}

.button.rank-matrix-timeline-select-all:hover {
  filter: none;
  background: rgba(15, 38, 104, 0.16);
  border-color: rgba(15, 38, 104, 0.48);
  box-shadow: 0 1px 6px rgba(15, 38, 104, 0.12);
}

.button.rank-matrix-timeline-select-all:focus-visible {
  outline: 2px solid var(--tamascia-orange);
  outline-offset: 2px;
}

.rank-matrix-timeline-pickers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  padding: 0.65rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 38, 104, 0.12);
  background: rgba(255, 255, 255, 0.5);
}

.rank-matrix-timeline-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  font-size: 0.8rem;
  font-weight: 650;
  color: #132456;
  cursor: pointer;
  user-select: none;
  padding: 0.22rem 0.4rem;
  border-radius: var(--radius-sm);
}

.rank-matrix-timeline-picker:hover {
  background: rgba(15, 38, 104, 0.07);
}

.rank-matrix-timeline-picker input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--tamascia-orange);
}

.rank-matrix-timeline-picker-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(15, 38, 104, 0.12);
}

.rank-matrix-timeline-picker-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(14rem, 28vw);
}

.standings-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.standings-table th,
.standings-table td {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-table thead th {
  background: rgba(10, 22, 58, 0.88);
  border-bottom: 2px solid rgba(255, 255, 255, 0.16);
  vertical-align: bottom;
  font-weight: 700;
  color: var(--tamascia-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Resultado final: 5 colunas */
.standings-table:not(.standings-2) th:nth-child(1),
.standings-table:not(.standings-2) td:nth-child(1) {
  text-align: left;
}

.standings-table:not(.standings-2) td:nth-child(1) {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: min(22rem, 52vw);
}

.standings-table:not(.standings-2) th:nth-child(2),
.standings-table:not(.standings-2) td:nth-child(2),
.standings-table:not(.standings-2) th:nth-child(3),
.standings-table:not(.standings-2) td:nth-child(3) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.standings-table:not(.standings-2) th:nth-child(4),
.standings-table:not(.standings-2) td:nth-child(4),
.standings-table:not(.standings-2) th:nth-child(5),
.standings-table:not(.standings-2) td:nth-child(5) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.standings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Próximo / aberto / encerradas / cancelado: 3 colunas (sem prêmio) */
.standings-table.standings-2:not(.standings-live):not(.standings-with-prize) th:nth-child(1),
.standings-table.standings-2:not(.standings-live):not(.standings-with-prize) td:nth-child(1) {
  text-align: left;
}

.standings-table.standings-2:not(.standings-live):not(.standings-with-prize) td:nth-child(1) {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: min(22rem, 52vw);
}

.standings-table.standings-2:not(.standings-live):not(.standings-with-prize) th:nth-child(2),
.standings-table.standings-2:not(.standings-live):not(.standings-with-prize) td:nth-child(2),
.standings-table.standings-2:not(.standings-live):not(.standings-with-prize) th:nth-child(3),
.standings-table.standings-2:not(.standings-live):not(.standings-with-prize) td:nth-child(3) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* + coluna Prêmio (não ao vivo) */
.standings-table.standings-2.standings-with-prize:not(.standings-live) th:nth-child(1),
.standings-table.standings-2.standings-with-prize:not(.standings-live) td:nth-child(1) {
  text-align: left;
}

.standings-table.standings-2.standings-with-prize:not(.standings-live) td:nth-child(1) {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: min(22rem, 52vw);
}

.standings-table.standings-2.standings-with-prize:not(.standings-live) th:nth-child(2),
.standings-table.standings-2.standings-with-prize:not(.standings-live) td:nth-child(2),
.standings-table.standings-2.standings-with-prize:not(.standings-live) th:nth-child(3),
.standings-table.standings-2.standings-with-prize:not(.standings-live) td:nth-child(3),
.standings-table.standings-2.standings-with-prize:not(.standings-live) th:nth-child(4),
.standings-table.standings-2.standings-with-prize:not(.standings-live) td:nth-child(4) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Mesa ao vivo: 4 colunas sem prêmio */
.standings-table.standings-2.standings-live:not(.standings-with-prize) th:nth-child(1),
.standings-table.standings-2.standings-live:not(.standings-with-prize) td:nth-child(1) {
  text-align: left;
}

.standings-table.standings-2.standings-live:not(.standings-with-prize) td:nth-child(1) {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: min(22rem, 52vw);
}

.standings-table.standings-2.standings-live:not(.standings-with-prize) th:nth-child(2),
.standings-table.standings-2.standings-live:not(.standings-with-prize) td:nth-child(2),
.standings-table.standings-2.standings-live:not(.standings-with-prize) th:nth-child(3),
.standings-table.standings-2.standings-live:not(.standings-with-prize) td:nth-child(3),
.standings-table.standings-2.standings-live:not(.standings-with-prize) th:nth-child(4),
.standings-table.standings-2.standings-live:not(.standings-with-prize) td:nth-child(4) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Mesa ao vivo + prêmio: 5 colunas */
.standings-table.standings-2.standings-live.standings-with-prize th:nth-child(1),
.standings-table.standings-2.standings-live.standings-with-prize td:nth-child(1) {
  text-align: left;
}

.standings-table.standings-2.standings-live.standings-with-prize td:nth-child(1) {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: min(22rem, 52vw);
}

.standings-table.standings-2.standings-live.standings-with-prize th:nth-child(2),
.standings-table.standings-2.standings-live.standings-with-prize td:nth-child(2),
.standings-table.standings-2.standings-live.standings-with-prize th:nth-child(3),
.standings-table.standings-2.standings-live.standings-with-prize td:nth-child(3),
.standings-table.standings-2.standings-live.standings-with-prize th:nth-child(4),
.standings-table.standings-2.standings-live.standings-with-prize td:nth-child(4),
.standings-table.standings-2.standings-live.standings-with-prize th:nth-child(5),
.standings-table.standings-2.standings-live.standings-with-prize td:nth-child(5) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.standings-section-divider td {
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tamascia-muted);
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

table.staff-table tr.staff-section-divider td {
  padding: 0.5rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tamascia-muted);
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--tamascia-graphic);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.55);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: min(85vh, 640px);
  overflow: auto;
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius);
  background: var(--tamascia-blue-deep);
  border: 1px solid var(--tamascia-graphic);
  box-shadow: 0 16px 48px var(--tamascia-shadow);
}

.modal-panel.modal-panel-wide {
  max-width: 720px;
}

.modal-panel h3 {
  margin-top: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

.standings-public-card .standings-title-h {
  margin: 0 0 1rem;
}

.prize-pool-banner {
  margin: 0 0 1.1rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 93, 43, 0.55);
  background: linear-gradient(135deg, rgba(217, 93, 43, 0.28), rgba(15, 38, 104, 0.45));
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.prize-pool-banner-mark {
  display: block;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tamascia-orange);
  margin-bottom: 0.35rem;
}

.prize-pool-banner-summary {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.prize-tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.38rem;
}

.prize-tier-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.48rem 0.62rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.94rem;
  line-height: 1.35;
}

.prize-tier-pos {
  font-weight: 750;
  color: rgba(255, 255, 255, 0.92);
}

.prize-tier-val {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #ffe9c4;
  flex-shrink: 0;
}

.standings-row-has-prize td {
  background: rgba(217, 93, 43, 0.12);
}

.standings-row-has-prize .standings-prize-cell {
  font-weight: 800;
  color: #ffe9c4;
}

.standings-prize-cell {
  font-variant-numeric: tabular-nums;
}

.prize-modal-rows .prize-modal-row {
  margin-bottom: 0.55rem;
}

.prize-spots-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.prize-spots-stepper input[type='number'] {
  width: 4.5rem;
  text-align: center;
}

.prize-spots-stepper .prize-spots-btn {
  min-width: 2.35rem;
  padding: 0.38rem 0.55rem;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.tournaments-block-sub {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.88rem;
}

.standings-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.standings-stat {
  padding: 1rem 1.15rem 1.1rem;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(
    165deg,
    rgba(217, 93, 43, 0.22) 0%,
    rgba(255, 255, 255, 0.07) 38%,
    rgba(15, 38, 104, 0.45) 100%
  );
  border: 1px solid rgba(217, 93, 43, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.standings-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tamascia-muted);
  margin-bottom: 0.45rem;
}

.standings-stat-value {
  display: block;
  font-size: clamp(1.2rem, 3.6vw, 1.6rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--tamascia-white);
  line-height: 1.15;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

.standings-stat-sub {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.standings-after-table {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.standings-after-table .standings-details-hint {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .standings-stats {
    grid-template-columns: 1fr;
  }
}

.audit-log-item.audit-log-milestone .audit-log-text strong {
  color: rgba(255, 230, 210, 0.95);
}

.audit-log-body {
  margin-top: 0.75rem;
  max-height: min(55vh, 440px);
  overflow: auto;
}

ol.audit-log-list {
  margin: 0;
  padding-left: 1.35rem;
}

.audit-log-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.audit-log-item:last-child {
  border-bottom: none;
}

.audit-log-time {
  display: block;
  font-size: 0.78rem;
  color: var(--tamascia-muted);
  margin-bottom: 0.15rem;
}

.audit-log-text {
  display: block;
  font-size: 0.9rem;
}

.staff-table-wrap {
  overflow-x: auto;
  margin-top: 0.9rem;
}

table.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.staff-table th,
table.staff-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--tamascia-graphic);
}

table.staff-table th {
  font-weight: 700;
  color: var(--tamascia-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-state-on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.2rem;
  border-radius: 6px;
  box-sizing: border-box;
  border: 2px solid var(--tamascia-orange);
  background: rgba(217, 93, 43, 0.22);
  color: var(--tamascia-orange);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

table.staff-table .cell-actions {
  white-space: nowrap;
}

table.staff-table .cell-actions button {
  margin: 0.15rem 0.25rem 0.15rem 0;
}

table.staff-table .cell-actions button[data-act="rebuy"]:disabled,
table.staff-table .cell-actions button[data-act="rebuy"]:disabled:hover {
  cursor: not-allowed;
  filter: none;
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

@media (max-width: 560px) {
  .brand-logo {
    width: 72px;
    height: 72px;
  }

}
