:root {
  --pub-bg: #f8faf9;
  --pub-fg: #14201c;
  --pub-muted: #5b6b64;
  --pub-primary: #059669;
  --pub-primary-hover: #047857;
  --pub-border: #d9e2dd;
  --pub-card: #ffffff;
  --pub-radius: 0.75rem;
}

.public-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--pub-fg);
  background:
    radial-gradient(circle at top left, rgba(5, 150, 105, 0.08), transparent 40%),
    linear-gradient(180deg, #f3faf6 0%, var(--pub-bg) 40%, #eef3f0 100%);
}

.public-nav {
  border-bottom: 1px solid var(--pub-border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.public-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1rem;
}

.public-brand {
  font-weight: 700;
  color: var(--pub-fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.public-brand i { color: var(--pub-primary); }

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.public-nav-links a {
  color: var(--pub-muted);
  text-decoration: none;
  font-size: 0.925rem;
}
.public-nav-links a:hover { color: var(--pub-primary); }

.public-main {
  flex: 1;
  padding: 2rem 1rem 4rem;
}

.public-footer {
  border-top: 1px solid var(--pub-border);
  padding: 1rem 0;
  background: rgba(255,255,255,0.6);
}

.hero { margin-bottom: 2rem; max-width: 40rem; }
.hero h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 0.5rem; }
.hero p { color: var(--pub-muted); margin-bottom: 0; font-size: 1.05rem; }

.team-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  color: inherit;
  text-decoration: none;
  min-height: 5rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.team-tile:hover {
  border-color: var(--pub-primary);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.08);
  color: inherit;
}
.team-tile-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(5, 150, 105, 0.12);
  color: var(--pub-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.auth-card, .thanks-card {
  width: min(440px, 100%);
  margin: 1rem auto;
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  padding: 1.75rem;
}

.thanks-card { text-align: center; }
.thanks-icon { font-size: 2.5rem; color: var(--pub-primary); margin-bottom: 0.75rem; }

.thanks-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.thanks-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  margin: 0;
}

.account-prompt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  background: rgba(5, 150, 105, 0.06);
}
.account-prompt .thanks-btn { width: 100%; }

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
}

.practice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.practice-toolbar-actions {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.practice-toolbar-actions .btn {
  min-width: 6.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.date-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: 0.65rem;
  cursor: pointer;
  user-select: none;
  width: 100%;
}
.date-option:has(input:checked) {
  border-color: var(--pub-primary);
  background: rgba(5, 150, 105, 0.08);
}
.date-option-blackout {
  opacity: 0.72;
  cursor: not-allowed;
  background: #f3f4f6;
  border-style: dashed;
}
.date-option-blackout:has(input:checked) {
  border-color: var(--pub-border);
  background: #f3f4f6;
}
.date-option input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--pub-primary);
}
.date-option-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  line-height: 1.3;
  text-align: left;
  min-width: 0;
}
.date-option-meta {
  font-size: 0.75rem;
  color: #9a3412;
  font-weight: 600;
}

.practice-form { max-width: 860px; }
.practice-submit {
  position: sticky;
  bottom: 0;
  padding: 1rem 0 0.25rem;
  background: linear-gradient(transparent, var(--pub-bg) 28%);
}
.practice-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 576px) {
  .practice-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .practice-toolbar-actions {
    width: 100%;
  }
  .practice-toolbar-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

.cal-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(5, 150, 105, 0.12);
  color: var(--pub-primary);
  display: grid;
  place-items: center;
}

.empty-panel {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--pub-muted);
  background: var(--pub-card);
  border: 1px dashed var(--pub-border);
  border-radius: var(--pub-radius);
}
.empty-panel i { font-size: 2rem; display: block; margin-bottom: 0.75rem; }

.btn-primary {
  --bs-btn-bg: var(--pub-primary);
  --bs-btn-border-color: var(--pub-primary);
  --bs-btn-hover-bg: var(--pub-primary-hover);
  --bs-btn-hover-border-color: var(--pub-primary-hover);
}
