:root {
  --bg: #f6f4ee;
  --panel: #fffdf8;
  --ink: #1e2430;
  --muted: #5d6675;
  --line: #d8d1c3;
  --accent: #9d3c24;
  --accent-strong: #7e2f1c;
  --accent-soft: #f5e1d8;
  --success: #1e7a53;
  --shadow: 0 18px 40px rgba(41, 29, 16, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(157, 60, 36, 0.1), transparent 22%),
    linear-gradient(180deg, #f0eadb 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  padding: 28px 32px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.site-header h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
}

.page-shell {
  padding: 24px 32px 48px;
  display: grid;
  gap: 24px;
}

.panel,
.hero-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 24px;
  align-items: start;
}

.auth-panel {
  max-width: 760px;
}

.muted,
.mono {
  color: var(--muted);
}

.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.session-form,
.track-grid,
.session-list,
.video-panel,
.button-row {
  display: grid;
  gap: 16px;
}

.session-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.session-form label {
  display: grid;
  gap: 8px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
}

button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
}

.primary-button {
  background: var(--accent);
  color: white;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.full-width {
  width: 100%;
}

.panel-header,
.video-panel {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.session-list,
.track-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.session-card,
.track-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  padding: 18px;
}

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

.facility-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  padding: 20px;
  display: grid;
  gap: 8px;
}

.session-card {
  display: grid;
  gap: 6px;
}

.track-card {
  display: grid;
  gap: 14px;
}

.track-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: #ece7dc;
}

.track-copy h4,
.panel h3,
.hero-panel h2 {
  margin: 6px 0;
}

.choice-group {
  display: grid;
  gap: 10px;
}

.choice-title {
  margin: 0;
  font-weight: 700;
}

.choice-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f6ef;
  border: 1px solid var(--line);
}

.choice-button small {
  color: var(--muted);
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.candidate-card-button {
  width: 100%;
  display: grid;
  gap: 8px;
  text-align: left;
  background: #f9f6ef;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
}

.candidate-special {
  background: #f0ebe0;
}

.candidate-card-button span {
  font-weight: 700;
}

.candidate-card-button small {
  color: var(--muted);
}

.candidate-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: #ece7dc;
}

.all-options summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 700;
}

.expanded-group {
  margin-top: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.review-video {
  width: 100%;
  border-radius: 18px;
  background: #000;
}

.saved-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 122, 83, 0.12);
  color: var(--success);
  font-weight: 700;
}

.progress-shell {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #eadfce;
  overflow: hidden;
  border: 1px solid var(--line);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #d67a56);
  transition: width 0.4s ease;
}

.progress-label {
  margin: 0;
  font-weight: 700;
}

.flash-stack {
  padding: 0 32px;
  display: grid;
  gap: 10px;
}

.flash {
  border-radius: 16px;
  padding: 14px 18px;
}

.flash-success {
  background: rgba(30, 122, 83, 0.12);
  color: var(--success);
}

.flash-error {
  background: rgba(157, 60, 36, 0.12);
  color: var(--accent-strong);
}

@media (max-width: 720px) {
  .site-header,
  .page-shell,
  .flash-stack {
    padding-left: 18px;
    padding-right: 18px;
  }
}
