:root {
  --bg: #f4f6f5;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --border: #d8e0db;
  --border-bright: #b8c9be;
  --green: #1a7a45;
  --green-bright: #1fa85a;
  --green-dim: #146b3a;
  --text: #1a2420;
  --muted: #5a6b62;
  --danger: #c43c3c;
  --warn: #a67c1a;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --shadow: 0 1px 3px rgba(26, 36, 32, 0.08), 0 1px 2px rgba(26, 36, 32, 0.04);
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(31, 168, 90, 0.08), transparent),
    linear-gradient(180deg, #f8faf9 0%, var(--bg) 40%, #eef2f0 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--green-dim); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 112px;
  box-sizing: border-box;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  height: 112px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: 112px;
  padding: 0 1.25rem;
  margin: 0 auto;
  box-sizing: border-box;
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  height: 96px;
  margin: 0;
  padding: 0;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  width: 96px;
  height: 96px;
  display: block;
  flex: 0 0 96px;
}
.brand-text {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-text .fg { color: var(--green); }
.brand-logo {
  height: 96px !important;
  width: auto !important;
  max-height: 96px !important;
  max-width: min(520px, 72vw);
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: center left;
  vertical-align: middle;
}
.brand-name { font-size: 1.15rem; }
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
  height: 96px;
  margin: 0;
  padding: 0;
}
.nav a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--green); text-decoration: none; }
a.nav-user, .nav-user {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.2;
  gap: 0.1rem;
  text-decoration: none;
  padding: 0.15rem 0.25rem;
  border-radius: 6px;
}
a.nav-user:hover { text-decoration: none; background: #f0f7f3; }
a.nav-user:hover .nav-user-name { color: var(--green-dim); }
a.nav-user.active .nav-user-name { color: var(--green); }
.nav-user-name { color: var(--muted); font-weight: 600; }
.nav-user-role {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1;
  opacity: 0.85;
}
a.app-sidebar-user {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.35rem;
  border-radius: 6px;
  text-decoration: none;
  word-break: break-word;
}
a.app-sidebar-user:hover { background: #f0f7f3; text-decoration: none; }
a.app-sidebar-user .nav-user-name { font-size: 0.9rem; }

.main { padding: 1.5rem 0 2rem; flex: 1 0 auto; }
.site-footer {
  flex-shrink: 0;

  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  background: #eef1ef;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero { padding: 2.25rem 0 1.75rem; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
.hero h1 span { color: var(--green); }
.hero p.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--green);
}
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.card h1, .card h2 {
  margin-top: 0;
  color: var(--text);
}
.card h2 { font-size: 1.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: #ffffff;
  border-color: var(--green-dim);
}
.btn-primary:hover { filter: brightness(1.05); color: #ffffff; }
.btn-ghost {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-danger {
  background: #ffffff;
  color: var(--danger);
  border-color: #e0a0a0;
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.form-group input, .form-group select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 168, 90, 0.18);
}
.form-actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.auth-card { max-width: 420px; margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.flash {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-weight: 600;
  border: 1px solid;
}
.flash-success {
  background: rgba(31, 168, 90, 0.1);
  border-color: #9fd4b3;
  color: var(--green-dim);
}
.flash-error {
  background: rgba(196, 60, 60, 0.08);
  border-color: #e0a0a0;
  color: var(--danger);
}
.flash-info {
  background: rgba(166, 124, 26, 0.08);
  border-color: #e0d0a0;
  color: var(--warn);
}

.league-list { list-style: none; padding: 0; margin: 0; }
.league-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.league-list li:last-child { border-bottom: none; }
.league-meta { color: var(--muted); font-size: 0.9rem; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e6f5ec;
  color: var(--green-dim);
}
.badge-open { background: #e6f5ec; color: var(--green-dim); }
.badge-active { background: #e6f0f8; color: #1a5a80; }
.badge-closed { background: #ececec; color: #666; }
.badge-role { background: #f8f0e0; color: var(--warn); }

.invite-code {
  font-family: var(--mono);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--green-dim);
  background: #f0f7f3;
  border: 1px dashed var(--border-bright);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: inline-block;
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.table th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.stub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.stub {
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--muted);
  background: #f7f9f8;
}
.stub strong { display: block; color: var(--text); margin-bottom: 0.25rem; }

.page-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.page-title h1 { margin: 0; font-size: 1.75rem; color: var(--text); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}







.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.card-head h2 { margin: 0; }
.card-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

body.modal-open { overflow: hidden; }
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 36, 32, 0.45);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(26, 36, 32, 0.18);
  padding: 1.25rem 1.35rem 1.35rem;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.modal-x {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 0.25rem;
}
.modal-x:hover { color: var(--text); }


/* League page: full left nav */
body.league-shell {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 100vh;
}
.app-sidebar {
  width: 260px;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1rem 0.85rem;
  z-index: 30;
  box-sizing: border-box;
}
.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.app-sidebar-brand:hover { text-decoration: none; color: var(--text); }
.app-sidebar-mark {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 48px;
  border-radius: 8px;
}
.app-sidebar-brand-text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.app-sidebar-brand-text .fg { color: var(--green); }
.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 auto;
  overflow-y: auto;
}
.app-sidebar-section {
  margin: 0.85rem 0.35rem 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  word-break: break-word;
  line-height: 1.3;
  text-transform: none;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}
.app-sidebar-link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.app-sidebar-link:hover {
  background: #f0f7f3;
  color: var(--green-dim);
  text-decoration: none;
}
.app-sidebar-link.active {
  background: #e6f5ec;
  color: var(--green-dim);
}
.app-sidebar-foot {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.app-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-topbar {
  flex-shrink: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 64px;
  display: flex;
  align-items: center;
}
.app-topbar-inner {
  width: 100%;
  padding: 0.85rem 1.25rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.app-topbar-text { min-width: 0; flex: 1 1 auto; }
.app-topbar-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--green-dim);
  border-color: var(--green);
  background: #f0f7f3;
}
.app-topbar-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.league-shell .app-content {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
.league-shell .main {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.league-shell .wrap-league {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 1.25rem;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.league-shell .wrap-league > .page-title {
  flex: 0 0 auto;
}
.league-shell .wrap-league > .flash {
  flex: 0 0 auto;
}
.settings-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  overflow: hidden;
  padding: 0;
}
.settings-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.settings-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}
.settings-scroll input[type="text"],
.settings-scroll input[type="number"],
.settings-scroll input[type="date"],
.settings-scroll input[type="file"],
.settings-scroll select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}
.settings-card .settings-actions {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
}
.league-shell .page-title {
  margin-bottom: 1rem;
}
.league-shell .page-title h1 {
  font-size: 1.35rem;
}
.stub-link { text-decoration: none; color: inherit; display: block; }
.stub-link:hover { border-color: var(--green); text-decoration: none; color: inherit; }
.stub-link strong { color: var(--green-dim); }

@media (max-width: 800px) {
  body.league-shell { flex-direction: column; }
  .app-sidebar {
    width: 100%;
    flex: 0 0 auto;
    height: auto;
    position: relative;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .app-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .app-sidebar-section { width: 100%; margin-top: 0.35rem; }
  .app-sidebar-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .app-content { min-height: 0; }
}

.app-topbar-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.app-topbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: 0 0 40px;
}
.settings-form .settings-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(200px, 1fr);
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.settings-form .settings-row:last-of-type { border-bottom: none; }
.settings-form .settings-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.settings-form .settings-help {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.settings-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.settings-logo img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f7f9f8;
}
.settings-logo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.settings-section-title {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--green-dim);
}
.settings-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
  .settings-form .settings-row {
    grid-template-columns: 1fr;
  }
}

.settings-save-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.settings-save-status.is-saving { color: var(--warn); }
.settings-save-status.is-saved { color: var(--green-dim); }
.settings-save-status.is-error { color: var(--danger); }


.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
  text-align: center;
}
.admin-stat-n {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--green-dim);
}
.admin-stat-l {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}
.table-wrap { overflow-x: auto; }
.table-actions { white-space: nowrap; text-align: right; }
.inline-form { display: inline; margin: 0; }
@media (max-width: 720px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.admin-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  justify-content: flex-start;
}
a.admin-shortcut {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 11rem;
  max-width: 16rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}
a.admin-shortcut:hover {
  border-color: var(--border-bright);
  background: #f0f7f3;
  text-decoration: none;
}
.admin-shortcut-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: rgba(196, 60, 60, 0.1);
  flex-shrink: 0;
  font-size: 1rem;
}
.admin-shortcut-title {
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.admin-shortcut-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
tr.errlog-unviewed td {
  background: rgba(196, 60, 60, 0.04);
}


tr.is-clickable { cursor: pointer; }
tr.is-clickable:hover { background: #f0f7f3; }


.settings-danger-card {
  margin-bottom: 1rem;
  border-color: #f0c2c2;
  background: #fff8f8;
}
.settings-danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}


.team-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.team-logo-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f7f9f8;
  flex: 0 0 32px;
}
.team-logo-thumb-lg {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}
.team-logo-placeholder {
  display: inline-block;
  background: #e8eee9;
}
tr.open-spot-row td {
  color: var(--muted);
  font-style: italic;
  background: #f7f9f8;
}
tr.open-spot-row:hover {
  background: #f7f9f8;
}
.managers-invite-block {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7faf8;
}
.invite-code-sm {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.5rem;
  margin: 0;
  border-radius: 6px;
}
.btn-xs {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  line-height: 1.2;
}

.invite-email-form {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}
.invite-email-input {
  width: 11.5rem;
  max-width: 42vw;
  font-size: 0.8rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 1.7rem;
  box-sizing: border-box;
}
.invite-email-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
