.staff-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(232, 123, 53, 0.08), transparent 34rem),
    var(--bg);
}

.staff-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.staff-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.published-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.published-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.staff-main {
  width: min(1056px, calc(100% - 48px));
  margin: 0 auto;
  padding: 68px 0 96px;
}

.staff-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.staff-intro h1 {
  margin-bottom: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.staff-subtitle {
  max-width: 560px;
  color: var(--fg-muted);
  font-size: 1rem;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font: 500 0.88rem var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.refresh-button:hover:not(:disabled) {
  border-color: rgba(232, 123, 53, 0.45);
  background: var(--accent-glow);
  color: #fff;
}

.refresh-button:focus-visible,
.staff-brand:focus-visible {
  outline: 3px solid rgba(232, 123, 53, 0.55);
  outline-offset: 4px;
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.schedule-container {
  min-width: 0;
}

.schedule-week {
  margin-bottom: 42px;
}

.week-heading {
  margin-bottom: 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.location-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 16px;
}

.location-section {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: var(--bg-card);
}

.location-heading {
  margin-bottom: 16px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.shift-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.shift-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.shift-card-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.shift-day,
.shift-meta dt {
  color: var(--fg-dim);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shift-date {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.shift-card-details {
  min-width: 0;
}

.shift-time {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.shift-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.shift-meta-item {
  min-width: 0;
}

.shift-meta dd {
  margin-top: 2px;
  color: var(--fg-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.schedule-state {
  min-height: 250px;
  padding: 56px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: var(--bg-card);
  text-align: center;
}

.schedule-state-title {
  margin-bottom: 8px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.schedule-state-message,
.schedule-state-loading p {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.schedule-state-error .schedule-state-title {
  color: #fca5a5;
}

.loading-mark {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 14px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: staff-schedule-spin 0.8s linear infinite;
}

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

@media (max-width: 640px) {
  .staff-header {
    padding: 20px 20px;
  }

  .published-indicator {
    font-size: 0.64rem;
  }

  .staff-main {
    width: min(calc(100% - 32px), 1056px);
    padding: 44px 0 64px;
  }

  .staff-intro {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }

  .refresh-button {
    width: 100%;
  }

  .location-section {
    padding: 16px;
  }

  .shift-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .shift-meta {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-mark { animation: none; }
}
