/* ==========================================================================
   Praynfast — Business theme
   Clean, flat, Apple-inspired with a playful color layer.
   Roboto + Roboto Condensed, Roboto Serif italic for accents.
   Load with ?style=business
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Condensed:wght@500;600;700&family=Roboto+Serif:ital,opsz,wght@1,8..144,500;1,8..144,600&display=swap');

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  color-scheme: light;

  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Roboto Condensed', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f2f2f4;
  --line: #e3e3e8;
  --line-strong: #d2d2d7;

  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;

  --primary: #0071e3;
  --primary-hover: #0062c4;
  --primary-soft: #e9f2fd;
  --primary-ink: #0058b0;
  --on-primary: #ffffff;

  --success: #1f7a37;
  --success-soft: #e7f4ea;
  --warning: #a35200;
  --warning-soft: #fdf1e3;
  --danger: #c9001a;
  --danger-soft: #fdeaec;

  --graphite: #1d1d1f;
  --graphite-2: #2c2c2e;

  --radius-lg: 16px;
  --radius: 10px;
  --radius-sm: 8px;

  --shadow-sm: none;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.18);
  --ring: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);

  --header-h: 56px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --line: #2f2f32;
  --line-strong: #444448;

  --ink: #f5f5f7;
  --ink-2: #d1d1d6;
  --ink-3: #98989d;

  --primary: #2997ff;
  --primary-hover: #4aa8ff;
  --primary-soft: rgba(41, 151, 255, 0.16);
  --primary-ink: #6cb6ff;
  --on-primary: #ffffff;

  --success: #30d158;
  --success-soft: rgba(48, 209, 88, 0.14);
  --warning: #ff9f0a;
  --warning-soft: rgba(255, 159, 10, 0.14);
  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, 0.14);

  --graphite: #1c1c1e;
  --graphite-2: #2c2c2e;

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.icon { flex: none; }

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

.main {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 80px;
}

.main.narrow { max-width: 760px; }

.muted { color: var(--ink-3); }

/* Small uppercase label used across the app */
.eyebrow,
.slot-group-label,
.form-section legend,
.featured-label,
.status,
.badge,
.date-badge span,
.slot-day span,
.stat dt,
.hero-stats dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 600;
}

.eyebrow .icon { display: none; }

.lede {
  color: var(--ink-3);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 560px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-sm { height: 30px; padding: 0 12px; font-size: 0.85rem; gap: 6px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--surface-2); }

.btn-outline {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); }
.btn-outline:disabled { background: transparent; border-color: var(--line); color: var(--ink-3); }

.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }

.btn-success { background: var(--success-soft); color: var(--success); }
.btn-success:hover { background: var(--danger-soft); color: var(--danger); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }

.btn-danger-ghost { color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger); }

.btn-light { background: #fff; color: #1d1d1f; }
.btn-light:hover { background: #e8e8ed; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-3);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.theme-toggle { flex: none; }
.site-nav-end .theme-toggle { margin-left: 4px; }

.back-link,
.text-link,
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 400;
}

.back-link { color: var(--primary); font-size: 0.92rem; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link { color: var(--primary); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Header & footer
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
}

.brand-mark .icon { width: 16px; height: 16px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 0.68rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.site-nav-end { justify-content: flex-end; flex: none; }
.site-header-inner > .brand:first-child:has(+ .site-nav-end) { flex: 1; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 120ms ease, background-color 120ms ease;
}

.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 500; background: var(--surface-2); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 0.8rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.footer-link { color: var(--ink-3); }
.footer-link:hover { color: var(--ink); }

/* ==========================================================================
   Profile
   ========================================================================== */

.profile { position: relative; flex: none; }

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  height: 32px;
  padding: 0 10px 0 2px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.88rem;
}

.profile-trigger:hover { background: var(--surface-2); }

.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
}

.avatar-lg { width: 40px; height: 40px; }

.profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 12px;
  width: min(300px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: fade-in 120ms ease-out;
}

.popover-head { display: grid; gap: 2px; }
.popover-head label { font-weight: 500; }
.popover-head span { color: var(--ink-3); font-size: 0.84rem; }
.popover .alert { margin: 0; }
.popover .language-picker { display: flex; }
.popover .language-picker button { flex: 1; justify-content: center; }

.popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==========================================================================
   Home hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0 64px;
}

.hero-copy { display: grid; gap: 20px; justify-items: start; }

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--ink-3);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 520px;
  margin-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.hero-stats > div {
  padding: 16px 16px 0 0;
}

.hero-stats > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.hero-stats dt { color: var(--ink-3); font-size: 0.72rem; font-weight: 600; }

.hero-stats dd {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}

/* Featured card */

.featured {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--graphite);
  color: #f5f5f7;
}

:root[data-theme="dark"] .featured { box-shadow: inset 0 0 0 1px var(--line); }

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: #98989d;
  font-size: 0.74rem;
  font-weight: 600;
}

.featured-label .icon { display: none; }

.featured h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.featured-when { color: #a1a1a6; }

.featured-body {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 12px 0 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ring {
  --p: 0;
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(#2997ff calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--graphite);
}

.ring strong, .ring span { position: relative; }
.ring strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.ring span { color: #98989d; font-size: 0.72rem; margin-top: 2px; }

.featured-facts { display: grid; flex: 1; }
.featured-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.featured-facts > div:first-child { padding-top: 0; }
.featured-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.featured-facts dt { color: #a1a1a6; font-size: 0.88rem; }
.featured-facts dd { font-family: var(--font-display); font-weight: 600; }

/* ==========================================================================
   Sections & project cards
   ========================================================================== */

.section-head,
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head h2,
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-head h1 { margin: 6px 0 6px; }
.section-head p { color: var(--ink-3); margin-top: 4px; }

.page-intro {
  display: grid;
  gap: 10px;
  padding: 16px 0 36px;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.project-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.project-card:focus-within { border-color: var(--primary); box-shadow: var(--ring); }

.project-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.date-badge {
  display: grid;
  place-items: center;
  width: 52px;
  flex: none;
  padding: 7px 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  line-height: 1;
}

.date-badge span {
  color: var(--danger);
  font-size: 0.68rem;
  font-weight: 700;
}

.date-badge strong {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.card-link {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  line-height: inherit;
  font: inherit;
}

.card-link:focus-visible { outline: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.project-card-when { margin-top: 4px; color: var(--ink-3); font-size: 0.86rem; }

.project-card-desc {
  color: var(--ink-2);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.8rem;
}

.chip .icon { color: var(--ink-3); }

.project-card-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.project-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--primary);
  font-size: 0.9rem;
}

.project-card:hover .project-card-cta { text-decoration: underline; text-underline-offset: 3px; }

/* Progress */

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-size: 0.84rem;
}

.progress-meta strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }

.progress {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  min-width: 4px;
  background: var(--primary);
  transition: width 250ms ease;
}

/* ==========================================================================
   Prayer detail
   ========================================================================== */

.crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.crumbs-path {
  color: var(--ink-3);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 16px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.summary-panel { display: grid; gap: 12px; justify-items: start; }

.summary-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.summary-desc { color: var(--ink-2); font-size: 0.94rem; }

.facts {
  display: grid;
  width: 100%;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.facts .icon { color: var(--ink-3); }
.facts dt { color: var(--ink-3); }
.facts dd { font-weight: 500; text-align: right; }

.coverage { display: grid; gap: 8px; width: 100%; margin-top: 4px; }

.identity-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.identity-panel div { display: grid; gap: 2px; min-width: 0; }
.identity-panel strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-panel span:not(.avatar) { color: var(--ink-3); font-size: 0.85rem; }

/* Schedule: rendered as a table */

.schedule { padding: 0; overflow: hidden; }

.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.schedule-head h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.schedule > .alert { margin: 16px 20px 0; }
.schedule > .empty { margin: 20px; }

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.84rem;
  transition: background-color 120ms ease;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}

:root[data-theme="dark"] .segmented button[aria-pressed="true"] { background: #636366; }

.segmented .count {
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}

.slot-group-label {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  padding: 8px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 700;
}

.slot-list { display: grid; }

.slot {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background-color 120ms ease;
}

.slot-group:last-child .slot:last-child { border-bottom: 0; }
.slot:hover { background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }

.slot-day {
  display: grid;
  justify-items: start;
  line-height: 1;
}

.slot-day span {
  color: var(--ink-3);
  font-size: 0.68rem;
  font-weight: 600;
}

.slot-day strong {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.slot-body { display: grid; gap: 3px; min-width: 0; }

.slot-time { font-weight: 500; }
.slot-time span { color: var(--ink-3); font-weight: 400; }

.slot-capacity {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.seats { display: inline-flex; gap: 2px; }

.seats i {
  width: 10px;
  height: 4px;
  border-radius: 1px;
  background: var(--line-strong);
}

.seats i.is-taken { background: var(--primary); }

.slot-action { min-width: 100px; }

.slot.is-mine { background: color-mix(in srgb, var(--success-soft) 60%, var(--surface)); }
.slot.is-mine .slot-day { color: var(--success); }
.slot.is-mine .seats i.is-taken { background: var(--success); }

.slot.is-full .slot-day,
.slot.is-full .slot-time { opacity: 0.45; }

/* ==========================================================================
   Feedback: alerts, empty, status
   ========================================================================== */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9rem;
  animation: fade-in 150ms ease-out;
}

.alert .icon { margin-top: 1px; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.alert-notice { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 22%, transparent); }

.empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 44px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-3);
}

.empty strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.empty p { color: var(--ink-3); max-width: 360px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-published { background: var(--success-soft); color: var(--success); }
.status-draft { background: var(--warning-soft); color: var(--warning); }
.status-archived { background: var(--surface-2); color: var(--ink-3); }

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.4);
  animation: fade-in 120ms ease-out;
}

.modal {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

:root[data-theme="dark"] .modal { box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }

.modal-close { position: absolute; top: 12px; right: 12px; }

.modal-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
}

.modal-icon.is-danger { background: var(--danger-soft); color: var(--danger); }

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.modal-lede { margin-top: 6px; color: var(--ink-2); font-size: 0.94rem; }
.modal-lede strong { color: var(--ink); font-weight: 500; }

.summary {
  display: grid;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  font-size: 0.88rem;
}

.summary > div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--ink-3); }
.summary dd { font-weight: 500; text-align: right; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 6px; min-width: 0; }

.field-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.optional { color: var(--ink-3); font-weight: 400; }
.field-hint { color: var(--ink-3); font-size: 0.8rem; }

input, textarea, select {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }

input:focus, textarea:focus, select:focus,
.input-group:focus-within {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.input-group input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  min-width: 0;
}

.input-addon {
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 0.86rem;
  white-space: nowrap;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-section { display: grid; gap: 16px; }
.form-section + .form-section { padding-top: 22px; border-top: 1px solid var(--line); }

.form-section legend {
  float: left;
  width: 100%;
  margin-bottom: 2px;
  color: var(--ink-3);
  font-size: 0.74rem;
  font-weight: 700;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.main.narrow .back-link { margin-bottom: 16px; }

/* ==========================================================================
   Auth
   ========================================================================== */

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  min-height: 100vh;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 48px;
  background: var(--graphite);
  color: #f5f5f7;
}

:root[data-theme="dark"] .auth-aside { border-right: 1px solid var(--line); }

.auth-aside .brand { color: #f5f5f7; align-self: flex-start; }
.auth-aside .brand-mark { background: #f5f5f7; color: #1d1d1f; }

.auth-aside-body { display: grid; gap: 32px; max-width: 420px; }

.auth-aside h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.auth-points { display: grid; border-top: 1px solid rgba(255, 255, 255, 0.12); }

.auth-points li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-points .icon { margin-top: 2px; color: #2997ff; }
.auth-points div { display: grid; gap: 2px; }
.auth-points strong { font-weight: 500; }
.auth-points span { color: #a1a1a6; font-size: 0.9rem; }

.auth-aside-foot {
  color: #6e6e73;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.auth-main {
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--surface);
}

.auth-theme { position: absolute; top: 16px; right: 16px; }

.auth-card { display: grid; gap: 8px; width: min(100%, 380px); }
.auth-card .back-link { justify-self: start; margin-bottom: 24px; }

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-card > .muted { margin-bottom: 18px; }
.auth-card .btn-block { margin-top: 6px; }

.auth-switch {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   Admin
   ========================================================================== */

/* Stats as a single segmented strip */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.stat { padding: 16px 20px; }
.stat + .stat { border-left: 1px solid var(--line); }

.stat dt { color: var(--ink-3); font-size: 0.72rem; font-weight: 600; }

.stat dd {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

/* Project list as a table */
.admin-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.admin-list > .empty { border: 0; border-radius: 0; }

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  transition: background-color 120ms ease;
}

.admin-item + .admin-item { border-top: 1px solid var(--line); }
.admin-item:hover { background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }

.admin-item-main { display: grid; gap: 6px; min-width: 0; }

.admin-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-item-title h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.admin-item-meta span { display: inline-flex; align-items: center; gap: 5px; }

.admin-item-stats {
  display: grid;
  grid-template-columns: auto auto minmax(100px, 1fr);
  align-items: center;
  gap: 22px;
}

.admin-item-stats > div:not(.admin-item-coverage) { display: grid; }
.admin-item-stats strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.admin-item-stats > div > span { color: var(--ink-3); font-size: 0.76rem; }
.admin-item-coverage { display: grid; gap: 6px; }

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  width: min(460px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 180ms ease-out;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast > span { flex: 1; min-width: 0; }
.toast-success > .icon { color: var(--success); }
.toast-error > .icon { color: var(--danger); }
.toast-notice > .icon { color: var(--warning); }
.toast-error { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.toast-close { width: 30px; height: 30px; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ==========================================================================
   App states, links, tables, and form errors
   ========================================================================== */

a { color: inherit; text-decoration: none; }
a.btn, a.nav-link, a.brand, a.back-link, a.footer-link, a.text-link { cursor: pointer; }
.admin-item-title h3 a:hover { color: var(--primary); }

.field-error { color: var(--danger); font-size: 0.82rem; font-weight: 500; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.6; cursor: not-allowed; background: var(--surface-2); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
select { appearance: auto; }

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40vh;
  color: var(--ink-3);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.empty-actions { display: flex; gap: 8px; margin-top: 10px; }

.admin-project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-project-layout .alert { margin: 0; }
.admin-signups { padding: 0; overflow: hidden; }
.admin-signups .schedule-head { padding: 18px 20px; margin: 0; border-bottom: 1px solid var(--line); }
.admin-signups .schedule-head h2 { font-size: 1.3rem; }
.admin-signups > .empty { margin: 20px; }

.table-wrap { max-height: 640px; overflow: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th {
  position: sticky;
  top: 0;
  padding: 10px 20px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}
.data-table td { padding: 10px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table td:nth-child(2) { white-space: nowrap; color: var(--ink-2); }

@media (max-width: 960px) {
  .admin-project-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(0.985); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .admin-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .admin-item-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .auth-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-aside { justify-content: flex-start; padding: 22px 24px; gap: 24px; }
  .auth-aside-body { gap: 20px; }
  .auth-points, .auth-aside-foot { display: none; }
  .auth-main { place-items: start center; padding-top: 32px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --header-h: 52px; }
  .container { padding-inline: 16px; }
  .main { padding-top: 22px; padding-bottom: 48px; }
  .site-header-inner { gap: 10px; }
  .site-nav .nav-link:first-child { display: none; }
  .site-nav-end .nav-link:first-child { display: inline-flex; }
  .site-nav-end .nav-link span { display: none; }
  .site-nav-end .nav-link { padding: 0 8px; }
  .profile-trigger { max-width: 150px; }
  .hero { padding-top: 16px; }
  .hero-stats dd { font-size: 1.8rem; }
  .project-grid { grid-template-columns: 1fr; }
  .section-head, .page-head { flex-direction: column; align-items: stretch; }
  .crumbs-path { display: none; }
  .panel { padding: 20px; }
  .schedule { padding: 0; }
  .schedule-head { padding: 16px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; justify-content: center; padding: 0 6px; }
  .slot { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
  .slot-action { grid-column: 2; justify-self: start; }
  .slot-group-label { padding-inline: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .admin-item { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .admin-item-actions { grid-column: auto; }
  .modal { padding: 24px 20px; }
  .modal-actions > .btn { flex: 1; }
  .featured { padding: 22px; }
  .ring { width: 88px; height: 88px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .site-nav { display: none; }
  .site-nav-end { display: flex; }
  .site-header-inner { justify-content: space-between; }
  .hero-stats > div { padding-right: 10px; }
  .hero-stats > div + div { padding-left: 10px; }
  .featured-body { flex-direction: column; align-items: stretch; }
  .ring { align-self: center; }
}

/* ==========================================================================
   Playful layer
   A multi-color palette (Apple system colors) layered on the flat base.
   Delete this section to get back to the strict business look.
   ========================================================================== */

:root {
  --font-accent: 'Roboto Serif', Georgia, serif;

  --c-blue: #0071e3;
  --c-indigo: #5856d6;
  --c-purple: #af52de;
  --c-pink: #ff2d55;
  --c-orange: #ff9500;
  --c-teal: #2aa7c0;
  --c-green: #28b04f;

  --gradient-brand: linear-gradient(135deg, var(--c-blue) 0%, var(--c-indigo) 50%, var(--c-purple) 100%);
  --gradient-warm: linear-gradient(135deg, var(--c-orange) 0%, var(--c-pink) 100%);
  --gradient-text: linear-gradient(90deg, var(--c-blue), var(--c-purple) 55%, var(--c-pink));
}

:root[data-theme="dark"] {
  --c-blue: #0a84ff;
  --c-indigo: #5e5ce6;
  --c-purple: #bf5af2;
  --c-pink: #ff375f;
  --c-orange: #ff9f0a;
  --c-teal: #40c8e0;
  --c-green: #30d158;
}

body {
  background:
    radial-gradient(900px 420px at 8% -120px, color-mix(in srgb, var(--c-purple) 9%, transparent), transparent 70%),
    radial-gradient(900px 420px at 92% -120px, color-mix(in srgb, var(--c-blue) 9%, transparent), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}

/* Brand & identity */

.brand-mark { background: var(--gradient-brand); color: #fff; }
.auth-aside .brand-mark { background: #fff; color: var(--c-indigo); }
.avatar { background: var(--gradient-warm); color: #fff; box-shadow: none; }
.badge { background: color-mix(in srgb, var(--c-purple) 14%, transparent); color: var(--c-purple); }

.eyebrow { color: var(--c-purple); }
.eyebrow .icon { display: inline; }

.btn-primary:hover { background: var(--c-indigo); }

/* Hero */

.hero { position: relative; }

.hero-copy h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding-right: 0.08em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats > div:nth-child(1) dd { color: var(--c-blue); }
.hero-stats > div:nth-child(2) dd { color: var(--c-orange); }
.hero-stats > div:nth-child(3) dd { color: var(--c-pink); }

/* Featured card: bright gradient with flat decorative circles */

.featured {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c-indigo) 70%, transparent);
}

:root[data-theme="dark"] .featured { box-shadow: none; }

.featured::before,
.featured::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.featured::before {
  width: 260px;
  height: 260px;
  right: -90px;
  top: -110px;
  background: color-mix(in srgb, var(--c-pink) 75%, transparent);
}

.featured::after {
  width: 180px;
  height: 180px;
  right: 60px;
  bottom: -120px;
  background: color-mix(in srgb, var(--c-orange) 70%, transparent);
}

.featured-label { color: rgba(255, 255, 255, 0.85); }
.featured-label .icon { display: inline; }
.featured-when { color: rgba(255, 255, 255, 0.8); }
.featured-body { border-top-color: rgba(255, 255, 255, 0.22); }
.featured-facts > div { border-bottom-color: rgba(255, 255, 255, 0.2); }
.featured-facts dt { color: rgba(255, 255, 255, 0.75); }

.ring { background: none; }

.ring::before {
  inset: 0;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, 0.25) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}

.ring span { color: rgba(255, 255, 255, 0.8); }
.featured .btn-light { color: var(--c-indigo); }

/* Project cards: each card gets its own accent color */

.project-card { --accent: var(--c-blue); overflow: hidden; }
.project-card:nth-child(5n + 2) { --accent: var(--c-orange); }
.project-card:nth-child(5n + 3) { --accent: var(--c-purple); }
.project-card:nth-child(5n + 4) { --accent: var(--c-teal); }
.project-card:nth-child(5n + 5) { --accent: var(--c-pink); }

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--accent) 55%, transparent);
}

.project-card { transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }

.date-badge {
  border: 0;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
}

.date-badge span { color: var(--accent); }
.date-badge strong { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }

.chip { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.chip .icon { color: var(--accent); }

.project-card .progress span { background: var(--accent); }
.project-card-cta { color: color-mix(in srgb, var(--accent) 80%, var(--ink)); font-weight: 500; }

/* Progress & coverage */

.progress { height: 6px; border-radius: 3px; }
.progress span { border-radius: 3px; background: linear-gradient(90deg, var(--c-blue), var(--c-purple)); }

/* Detail page */

.facts > div:nth-child(1) .icon { color: var(--c-blue); }
.facts > div:nth-child(2) .icon { color: var(--c-purple); }
.facts > div:nth-child(3) .icon { color: var(--c-orange); }
.facts > div:nth-child(4) .icon { color: var(--c-pink); }

.identity-panel { background: color-mix(in srgb, var(--c-orange) 7%, var(--surface)); border-color: color-mix(in srgb, var(--c-orange) 22%, var(--line)); }

.segmented button[aria-pressed="true"] .count { color: var(--c-blue); }

/* Slots: colored day tiles, cycling through the week */

.slot { --accent: var(--c-blue); }
.slot:nth-child(7n + 2) { --accent: var(--c-indigo); }
.slot:nth-child(7n + 3) { --accent: var(--c-purple); }
.slot:nth-child(7n + 4) { --accent: var(--c-pink); }
.slot:nth-child(7n + 5) { --accent: var(--c-orange); }
.slot:nth-child(7n + 6) { --accent: var(--c-teal); }
.slot:nth-child(7n + 7) { --accent: var(--c-green); }

.slot-day {
  justify-items: center;
  width: 48px;
  padding: 6px 0 7px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.slot-day span { color: var(--accent); }
.slot-day strong { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.seats i.is-taken { background: var(--accent); }

.slot.is-mine { --accent: var(--success); }
.slot.is-mine .slot-day { background: var(--success-soft); }

.slot-group-label { color: var(--c-purple); }

/* Feedback */

.empty-icon { background: color-mix(in srgb, var(--c-purple) 13%, var(--surface)); color: var(--c-purple); }
.modal-icon { background: var(--gradient-brand); color: #fff; }
.modal-icon.is-danger { background: var(--gradient-warm); color: #fff; }

/* Auth: gradient panel with flat circles */

.auth-aside {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gradient-brand);
}

:root[data-theme="dark"] .auth-aside { border-right: 0; }

.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.auth-aside::before {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -180px;
  background: color-mix(in srgb, var(--c-pink) 70%, transparent);
}

.auth-aside::after {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  background: color-mix(in srgb, var(--c-orange) 65%, transparent);
}

.auth-points { border-top-color: rgba(255, 255, 255, 0.25); }
.auth-points li { border-bottom-color: rgba(255, 255, 255, 0.25); }
.auth-points .icon { color: #fff; }
.auth-points span { color: rgba(255, 255, 255, 0.82); }
.auth-aside-foot { color: rgba(255, 255, 255, 0.65); }

/* Admin: colored stats and status stripes */

.stat dt { display: flex; align-items: center; gap: 6px; }
.stat dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--c-blue)); }
.stat:nth-child(1) { --accent: var(--c-green); }
.stat:nth-child(2) { --accent: var(--c-orange); }
.stat:nth-child(3) { --accent: var(--c-purple); }
.stat:nth-child(4) { --accent: var(--c-blue); }
.stat dd { color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }

.admin-item { box-shadow: inset 4px 0 0 var(--accent, transparent); }
.admin-item:has(.status-published) { --accent: var(--c-green); }
.admin-item:has(.status-draft) { --accent: var(--c-orange); }
.admin-item:has(.status-archived) { --accent: var(--line-strong); }
.admin-item .progress span { background: var(--accent); }
