:root {
  color-scheme: light;
  --bg18-maroon: #681a22;
  --bg18-maroon-deep: #3b0d15;
  --bg18-maroon-soft: #8d3440;
  --bg18-gold: #d5a22f;
  --bg18-gold-deep: #9f7010;
  --bg18-gold-pale: #fff1bd;
  --bg18-cream: #fbf2dc;
  --bg18-paper: #fffdf8;
  --bg18-ink: #281715;
  --bg18-muted: #735f59;
  --bg18-border: #ead6a5;
  --bg18-green: #246848;
  --bg18-green-soft: #edf8f1;
  --bg18-orange: #a95124;
  --bg18-orange-soft: #fff4e9;
  --bg18-gray: #6d727b;
  --bg18-gray-soft: #f1f2f3;
  --bg18-red-soft: #fff0ed;
  --bg18-shadow: 0 18px 48px rgba(75, 27, 26, .11);
  --bg18-shadow-soft: 0 8px 24px rgba(75, 27, 26, .08);
}

* { box-sizing: border-box; }

html {
  min-width: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--bg18-ink);
  background:
    radial-gradient(circle at 8% 0, rgba(213, 162, 47, .19), transparent 24rem),
    radial-gradient(circle at 95% 18%, rgba(104, 26, 34, .07), transparent 30rem),
    linear-gradient(180deg, #fffaf0 0, var(--bg18-cream) 55%, #f9efd8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.bg18-focused-shell {
  width: min(1040px, calc(100% - 2rem));
}

.bg18-page-intro {
  margin: 1rem 0 1.2rem;
  text-align: center;
}

.bg18-page-intro h1 {
  margin: .25rem 0;
  color: var(--bg18-maroon-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1.1;
}

.bg18-page-intro > p:last-child {
  margin: .35rem 0 0;
  color: var(--bg18-muted);
}

.bg18-page-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 660px);
  margin: 0 auto 1.25rem;
  padding: .35rem;
  border: 1px solid var(--bg18-border);
  border-radius: 15px;
  background: #fff9ec;
  box-shadow: var(--bg18-shadow-soft);
}

.bg18-page-tab {
  min-width: 0;
  padding: .72rem 1rem;
  border-radius: 10px;
  color: var(--bg18-maroon);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.bg18-page-tab[aria-current="page"] {
  background: var(--bg18-maroon);
  color: #fff;
}

.bg18-audio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bg18-audio-day {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--bg18-border);
  border-radius: 17px;
  background: linear-gradient(145deg, #fffdf8, #fff8e7);
  box-shadow: var(--bg18-shadow-soft);
}

.bg18-audio-day h3 {
  margin: .7rem 0 .2rem;
  color: var(--bg18-maroon-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.bg18-audio-duration,
.bg18-audio-empty {
  margin: .2rem 0;
  color: var(--bg18-muted);
  font-size: .9rem;
}

.bg18-audio-items {
  display: grid;
  gap: .75rem;
  margin-top: .85rem;
}

.bg18-audio-item {
  min-width: 0;
  padding-top: .75rem;
  border-top: 1px solid rgba(159, 112, 16, .22);
}

.bg18-audio-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.bg18-audio-item audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: .65rem;
}

.bg18-audio-open {
  display: inline-flex;
  margin-top: .65rem;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.bg18-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.bg18-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--bg18-maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  font-weight: 800;
  text-decoration: none;
}

.bg18-brand-mark {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid var(--bg18-gold);
  border-radius: 50%;
  background: var(--bg18-maroon);
  color: #ffdc75;
  font-family: Georgia, serif;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(104, 26, 34, .2);
}

.bg18-home-link {
  padding: .48rem .75rem;
  border-radius: 999px;
  color: var(--bg18-maroon);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}

.bg18-home-link:hover { background: rgba(104, 26, 34, .07); }

.bg18-shell {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
  padding: .75rem 0 3.5rem;
}

.bg18-admin-shell { width: min(1240px, calc(100% - 2rem)); }

.bg18-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(100px, .28fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  min-height: 360px;
  padding: clamp(2rem, 6vw, 4.5rem);
  margin-bottom: 1.35rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 220, 117, .2), transparent 28%),
    linear-gradient(135deg, rgba(56, 10, 19, .99), rgba(112, 27, 39, .96) 58%, rgba(73, 14, 24, .99));
  border: 1px solid rgba(213, 162, 47, .75);
  border-radius: 30px;
  box-shadow: 0 24px 62px rgba(63, 16, 23, .2);
}

.bg18-hero::before,
.bg18-hero::after {
  position: absolute;
  width: 17rem;
  height: 17rem;
  content: "";
  border: 1px solid rgba(255, 220, 117, .15);
  border-radius: 50%;
}

.bg18-hero::before { top: -9rem; right: -5rem; }
.bg18-hero::after { bottom: -11rem; left: 42%; }

.bg18-hero-content { position: relative; z-index: 1; min-width: 0; }

.bg18-hero-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(96px, 15vw, 154px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 222, 126, .7);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 229, 153, .2), rgba(213, 162, 47, .04) 64%),
    rgba(255, 255, 255, .04);
  color: #ffdc75;
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  box-shadow: inset 0 0 40px rgba(255, 220, 117, .1), 0 12px 30px rgba(0, 0, 0, .15);
}

.bg18-hero h1 {
  max-width: 760px;
  margin: .25rem 0 .65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.04;
  text-wrap: balance;
}

.bg18-eyebrow,
.bg18-kicker {
  margin: 0;
  color: #f3cc68;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bg18-hero-subtitle {
  margin: 0 0 1.25rem;
  color: #f8ead4;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.bg18-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1rem;
}

.bg18-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .42rem .75rem;
  border: 1px solid rgba(255, 232, 172, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff8e8;
  font-size: .82rem;
  font-weight: 750;
}

.bg18-hero-meta .bg18-tracking-badge {
  border-color: rgba(255, 216, 99, .65);
  background: rgba(213, 162, 47, .17);
  color: #ffe291;
}

.bg18-hero-note {
  max-width: 650px;
  margin: 0;
  color: #f5dfc8;
  font-size: .92rem;
}

.bg18-card {
  min-width: 0;
  margin: 1.35rem 0;
  padding: clamp(1.1rem, 4vw, 1.9rem);
  background: rgba(255, 253, 248, .96);
  border: 1px solid var(--bg18-border);
  border-radius: 22px;
  box-shadow: var(--bg18-shadow);
}

.bg18-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  margin-bottom: 1.15rem;
}

.bg18-section-heading > div { min-width: 0; }
.bg18-section-heading h2, .bg18-section-heading p { margin-top: 0; }
.bg18-section-heading h2 {
  margin-bottom: 0;
  color: var(--bg18-maroon-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
}

.bg18-heading-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

.bg18-date-badge,
.bg18-phase-badge,
.bg18-status,
.bg18-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: .32rem .68rem;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--bg18-gold-pale);
  color: var(--bg18-maroon-deep);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .01em;
}

.bg18-phase-badge { background: #f2e6dc; }
.bg18-phase-badge[data-phase="active"] { background: #dff3e7; color: var(--bg18-green); }
.bg18-phase-badge[data-phase="completed"] { background: #e8e8e8; color: #555; }

.bg18-section-icon {
  display: grid;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--bg18-border);
  border-radius: 50%;
  background: var(--bg18-gold-pale);
  color: var(--bg18-maroon);
  font-family: Georgia, serif;
  font-weight: 800;
}

.bg18-state {
  padding: 1rem;
  color: var(--bg18-muted);
  background: #fffaf0;
  border: 1px dashed var(--bg18-border);
  border-radius: 13px;
}

.bg18-loading-state {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.bg18-spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid #dfcfac;
  border-top-color: var(--bg18-maroon);
  border-radius: 50%;
  animation: bg18-spin .8s linear infinite;
}

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

.bg18-today-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8e3, #fffdf8);
  border: 1px solid #e4c66f;
  border-radius: 16px;
}

.bg18-today-day {
  display: grid;
  width: 4.4rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 16px;
  background: var(--bg18-maroon);
  color: #fff;
  box-shadow: var(--bg18-shadow-soft);
}

.bg18-today-day strong { display: block; font-family: Georgia, serif; font-size: 1.75rem; line-height: 1; }
.bg18-today-day span { font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.bg18-today-copy { min-width: 0; }
.bg18-today-copy h3 { margin: .15rem 0 .25rem; color: var(--bg18-maroon-deep); font-size: 1.3rem; }
.bg18-today-copy p { margin: 0; color: var(--bg18-muted); font-size: .9rem; }

.bg18-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1.1rem;
  border: 1px solid var(--bg18-maroon);
  border-radius: 11px;
  background: var(--bg18-maroon);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(104, 26, 34, .16);
  transition: transform .16s ease, background-color .16s ease;
}

.bg18-button:hover { background: var(--bg18-maroon-deep); transform: translateY(-1px); }
.bg18-button:focus-visible, input:focus-visible, .bg18-table-wrap:focus-visible {
  outline: 3px solid rgba(213, 162, 47, .5);
  outline-offset: 2px;
}

.bg18-button-secondary {
  border-color: #cda84f;
  background: #fffaf0;
  color: var(--bg18-maroon);
  box-shadow: none;
}

.bg18-button-secondary:hover { background: var(--bg18-gold-pale); }

.bg18-progress-form label {
  display: block;
  margin-bottom: .45rem;
  color: var(--bg18-maroon-deep);
  font-weight: 850;
}

.bg18-input-row { display: flex; gap: .7rem; }

.bg18-input-row input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: .72rem .9rem;
  border: 1px solid #cbbd9d;
  border-radius: 11px;
  background: #fff;
  color: var(--bg18-ink);
}

.bg18-help { margin: .55rem 0 0; color: var(--bg18-muted); font-size: .88rem; }

.bg18-tabs-shell {
  min-width: 0;
  margin-top: 1.35rem;
}

.bg18-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 520px);
  min-width: 0;
  margin: 0 auto;
  padding: .38rem;
  border: 1px solid rgba(159, 112, 16, .35);
  border-radius: 16px;
  background: rgba(255, 249, 235, .96);
  box-shadow: var(--bg18-shadow-soft);
}

.bg18-tab {
  min-width: 0;
  min-height: 46px;
  padding: .68rem 1rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--bg18-maroon);
  cursor: pointer;
  font-weight: 850;
}

.bg18-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--bg18-maroon), var(--bg18-maroon-deep));
  color: #fff8e8;
  box-shadow: 0 7px 18px rgba(104, 26, 34, .2);
}

.bg18-tab:focus-visible {
  outline: 3px solid rgba(213, 162, 47, .5);
  outline-offset: 2px;
}

.bg18-tab-panel {
  min-width: 0;
}

.bg18-section-copy {
  max-width: 700px;
  margin: .35rem 0 0 !important;
  color: var(--bg18-muted);
}

.bg18-class-start-state {
  padding: clamp(1.15rem, 4vw, 2rem);
  text-align: center;
}

.bg18-class-start-state strong {
  color: var(--bg18-maroon-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.bg18-class-start-state p {
  margin: .45rem 0 0;
}

.bg18-quiz-calendar-card[data-phase="not_started"] .bg18-section-heading {
  display: none;
}

.bg18-quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.bg18-quiz-day {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 255px;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--bg18-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(72, 31, 23, .06);
}

.bg18-quiz-day[data-today="true"] {
  border: 2px solid var(--bg18-gold);
  background: linear-gradient(145deg, #fff8d8, #fffdf7);
  box-shadow: 0 0 0 3px rgba(213, 162, 47, .12), var(--bg18-shadow-soft);
}

.bg18-quiz-day[data-status="Submitted"] {
  border-color: #91ccb0;
  background: var(--bg18-green-soft);
}

.bg18-quiz-day[data-status="Submitted"] .bg18-status {
  background: #d7efdf;
  color: var(--bg18-green);
}

.bg18-quiz-day[data-status="Quiz Closed"] {
  background: var(--bg18-gray-soft);
}

.bg18-quiz-day h3 {
  margin: .75rem 0 .25rem;
  color: var(--bg18-maroon-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.3;
}

.bg18-quiz-day > p {
  margin: .12rem 0;
  color: var(--bg18-muted);
  font-size: .84rem;
}

.bg18-quiz-card-action {
  display: flex;
  min-width: 0;
  margin-top: auto;
  padding-top: 1rem;
}

.bg18-quiz-action,
.bg18-quiz-unavailable {
  width: 100%;
}

.bg18-quiz-unavailable {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: .65rem;
  border: 1px dashed #d2c6ae;
  border-radius: 11px;
  background: #f4f0e8;
  color: var(--bg18-gray);
  font-size: .78rem;
  font-weight: 750;
  text-align: center;
}

.bg18-class-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bg18-class-links-grid > .bg18-state { grid-column: 1 / -1; }

.bg18-class-link-card {
  min-width: 0;
  padding: 1.15rem;
  background: linear-gradient(145deg, #fff8e4, #fffdf8);
  border: 1px solid var(--bg18-border);
  border-radius: 16px;
  box-shadow: var(--bg18-shadow-soft);
}

.bg18-class-link-card h3 {
  margin: .15rem 0 .3rem;
  color: var(--bg18-maroon-deep);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.bg18-class-link-card p { margin: 0; color: var(--bg18-muted); font-size: .86rem; }

.bg18-class-link-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}

.bg18-link-unavailable {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: .65rem;
  border: 1px dashed #d2c6ae;
  border-radius: 11px;
  background: var(--bg18-gray-soft);
  color: var(--bg18-gray);
  font-size: .78rem;
  font-weight: 750;
  text-align: center;
}

.bg18-class-links-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bg18-class-links-form fieldset {
  display: grid;
  min-width: 0;
  gap: .45rem;
  padding: 1rem;
  border: 1px solid var(--bg18-border);
  border-radius: 14px;
  background: #fffaf0;
}

.bg18-class-links-form legend {
  padding: 0 .4rem;
  color: var(--bg18-maroon-deep);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.bg18-class-links-form label { color: var(--bg18-maroon-deep); font-size: .82rem; font-weight: 800; }

.bg18-class-links-form input[type="url"] {
  min-width: 0;
  min-height: 44px;
  padding: .65rem .75rem;
  margin-bottom: .45rem;
  border: 1px solid #cbbd9d;
  border-radius: 10px;
  background: #fff;
}

.bg18-toggle { display: inline-flex; align-items: center; gap: .5rem; }
.bg18-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--bg18-maroon); }
.bg18-class-links-save { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }

.bg18-profile-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(255, 245, 216, .96));
}

.bg18-profile-card::after {
  position: absolute;
  top: -4rem;
  right: -3rem;
  width: 11rem;
  height: 11rem;
  content: "ॐ";
  color: rgba(104, 26, 34, .035);
  font-family: Georgia, serif;
  font-size: 9rem;
}

.bg18-profile-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bg18-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 2px solid #efcf78;
  border-radius: 50%;
  background: var(--bg18-maroon);
  color: #ffe291;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.bg18-profile-heading h2 { margin: 0; color: var(--bg18-maroon-deep); font-family: Georgia, serif; }
.bg18-profile-heading p { margin: .2rem 0 0; color: var(--bg18-muted); }

.bg18-profile-details {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1.4rem;
  margin: 1.25rem 0 0;
}

.bg18-profile-details div { min-width: 0; }
.bg18-profile-details dt { color: var(--bg18-muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.bg18-profile-details dd { margin: .1rem 0 0; overflow-wrap: anywhere; font-weight: 750; }

.bg18-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.15rem 0;
}

.bg18-summary > div,
.bg18-stats > div {
  min-width: 0;
  padding: 1rem;
  background: #fff8e8;
  border: 1px solid var(--bg18-border);
  border-radius: 14px;
  box-shadow: var(--bg18-shadow-soft);
}

.bg18-summary strong,
.bg18-stats strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--bg18-maroon);
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.2;
}

.bg18-summary span,
.bg18-stats span { color: var(--bg18-muted); font-size: .8rem; font-weight: 700; }

.bg18-progress-track {
  height: .75rem;
  margin-top: 1rem;
  overflow: hidden;
  background: #eadfca;
  border-radius: 999px;
}

.bg18-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--bg18-maroon), var(--bg18-gold));
  border-radius: inherit;
}

.bg18-progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .45rem 0 0;
  color: var(--bg18-muted);
  font-size: .82rem;
}

.bg18-day-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.bg18-day {
  position: relative;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--bg18-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(72, 31, 23, .05);
}

.bg18-day[data-today="true"] {
  border: 2px solid var(--bg18-gold);
  box-shadow: 0 0 0 3px rgba(213, 162, 47, .12), var(--bg18-shadow-soft);
}

.bg18-day[data-today="true"]::before {
  position: absolute;
  top: -.62rem;
  left: 1rem;
  padding: .13rem .5rem;
  content: "TODAY";
  border-radius: 999px;
  background: var(--bg18-gold);
  color: #3b2805;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.bg18-day-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.bg18-day h3 { margin: .55rem 0 .2rem; color: var(--bg18-maroon-deep); font-size: 1rem; line-height: 1.3; }
.bg18-day p { margin: .12rem 0; color: var(--bg18-muted); font-size: .83rem; }
.bg18-day-score { margin-top: .55rem !important; color: var(--bg18-ink) !important; font-weight: 850; }

.bg18-day[data-status="Submitted"] { border-color: #91ccb0; background: var(--bg18-green-soft); }
.bg18-day[data-status="Submitted"] .bg18-status { background: #d7efdf; color: var(--bg18-green); }
.bg18-day[data-status="Missed"],
.bg18-day[data-status="Not Submitted"] { border-color: #ebbd98; background: var(--bg18-orange-soft); }
.bg18-day[data-status="Missed"] .bg18-status,
.bg18-day[data-status="Not Submitted"] .bg18-status { background: #ffe1cb; color: var(--bg18-orange); }
.bg18-day[data-status="Locked"],
.bg18-day[data-status="Upcoming"] { border-color: #d8dadd; background: var(--bg18-gray-soft); color: var(--bg18-gray); }
.bg18-day[data-status="Locked"] .bg18-status,
.bg18-day[data-status="Upcoming"] .bg18-status { background: #e2e4e7; color: #62666d; }
.bg18-day[data-full-score="true"] { border-color: #d7a523; background: linear-gradient(145deg, #fff8d8, #fffdf7); }
.bg18-full-score { margin-top: .55rem; background: #f4cf66; color: #5c3a00; }

.bg18-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bg18-steps li {
  min-width: 0;
  padding: 1rem;
  background: #fff9eb;
  border: 1px solid var(--bg18-border);
  border-radius: 14px;
}

.bg18-steps li > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: .7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--bg18-maroon);
  color: #fff;
  font-weight: 900;
}

.bg18-steps strong { color: var(--bg18-maroon-deep); }
.bg18-steps p { margin: .3rem 0 0; color: var(--bg18-muted); font-size: .85rem; }

.bg18-lock-icon {
  width: .85rem;
  height: .85rem;
  border: 3px solid #f2d173;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(213, 162, 47, .13);
}

.bg18-admin-message { margin-top: 1rem; }
.bg18-admin-message:empty { display: none; }

.bg18-warning-list {
  display: grid;
  gap: .6rem;
  margin: 1.25rem 0;
}

.bg18-warning {
  padding: .8rem 1rem;
  border: 1px solid #e3b287;
  border-radius: 12px;
  background: var(--bg18-orange-soft);
  color: #75401f;
  font-size: .9rem;
  font-weight: 700;
}

.bg18-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.25rem 0;
}

.bg18-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--bg18-border);
  border-radius: 13px;
  background: #fff;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.bg18-admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: .85rem;
}

.bg18-admin-table th,
.bg18-admin-table td {
  padding: .72rem;
  border-bottom: 1px solid #eee2c9;
  text-align: left;
  vertical-align: middle;
}

.bg18-admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9edcf;
  color: var(--bg18-maroon-deep);
  white-space: nowrap;
}

.bg18-admin-table tbody tr:hover { background: #fffaf0; }
.bg18-admin-table tbody tr:last-child td { border-bottom: 0; }

.bg18-table-status {
  display: inline-flex;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: #eee;
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
}

.bg18-table-status[data-enabled="true"] { background: #dff3e7; color: var(--bg18-green); }
.bg18-table-link { color: var(--bg18-maroon); font-weight: 850; }
.bg18-muted-value { color: #8b817b; }

.bg18-footer {
  padding: 1.5rem 1rem 2.8rem;
  color: var(--bg18-muted);
  text-align: center;
}

.bg18-footer p { margin: .25rem 0; }
.bg18-footer-mark { color: var(--bg18-maroon); font-family: Georgia, serif; font-size: 1.6rem; }

@media (max-width: 980px) {
  .bg18-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bg18-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .bg18-shell,
  .bg18-admin-shell { width: min(100% - 1rem, 1000px); }
  .bg18-header { width: calc(100% - 1.25rem); }
  .bg18-brand-mark { width: 1.85rem; height: 1.85rem; }
  .bg18-home-link { padding-inline: .5rem; }
  .bg18-page-tab { padding-inline: .42rem; font-size: .82rem; }
  .bg18-audio-grid { grid-template-columns: 1fr; }

  .bg18-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.65rem 1.1rem;
    text-align: center;
    border-radius: 18px;
  }

  .bg18-hero-symbol {
    width: 80px;
    margin: 0 auto;
    font-size: 2.5rem;
  }

  .bg18-hero-meta { justify-content: center; }
  .bg18-hero h1 { margin-inline: auto; }
  .bg18-card { padding: 1rem; border-radius: 15px; }
  .bg18-section-heading { align-items: flex-start; }
  .bg18-heading-badges { justify-content: flex-start; }

  .bg18-today-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1rem;
  }

  .bg18-today-card .bg18-button { grid-column: 1 / -1; width: 100%; }
  .bg18-today-day { width: 3.8rem; }
  .bg18-input-row { flex-direction: column; }
  .bg18-input-row .bg18-button { width: 100%; }
  .bg18-profile-heading { align-items: flex-start; }
  .bg18-avatar { width: 3.4rem; height: 3.4rem; }
  .bg18-profile-details { grid-template-columns: 1fr; }
  .bg18-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bg18-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bg18-day-grid { grid-template-columns: 1fr; }
  .bg18-quiz-grid { grid-template-columns: 1fr; }
  .bg18-quiz-day { min-height: 0; }
  .bg18-class-links-grid,
  .bg18-class-links-form { grid-template-columns: 1fr; }
  .bg18-class-link-actions { grid-template-columns: 1fr; }
  .bg18-class-links-save { grid-column: auto; align-items: stretch; flex-direction: column; }
  .bg18-class-links-save .bg18-button { width: 100%; }
  .bg18-steps { grid-template-columns: 1fr; }
  .bg18-section-heading .bg18-button-secondary { width: 100%; }
  .bg18-admin-page .bg18-section-heading { flex-direction: column; }
}

@media (max-width: 390px) {
  .bg18-header { font-size: .9rem; }
  .bg18-brand { gap: .42rem; font-size: 1.12rem; }
  .bg18-hero h1 { font-size: 2.05rem; }
  .bg18-hero-meta span { width: 100%; justify-content: center; }
  .bg18-section-heading { flex-direction: column; }
  .bg18-summary, .bg18-stats { grid-template-columns: 1fr; }
  .bg18-progress-caption { flex-direction: column; gap: .15rem; }
}

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

/* v160 - devotional participant-page branding */
.bg18-participant-page {
  background:
    radial-gradient(circle at 8% 3%, rgba(213, 162, 47, .22), transparent 24rem),
    radial-gradient(circle at 92% 28%, rgba(104, 26, 34, .10), transparent 28rem),
    repeating-linear-gradient(135deg, rgba(159, 112, 16, .025) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #fffaf0 0, #fbf0d7 52%, #fff8e8 100%);
}

.bg18-participant-page .bg18-header {
  padding-block: .55rem;
  border-bottom: 1px solid rgba(159, 112, 16, .18);
}

.bg18-logo-brand {
  min-width: 0;
}

.bg18-brand-logo {
  width: clamp(112px, 15vw, 158px);
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.bg18-devotional-hero {
  grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr);
  min-height: 430px;
  background:
    radial-gradient(circle at 16% 35%, rgba(255, 224, 133, .23), transparent 25%),
    radial-gradient(circle at 88% 80%, rgba(213, 162, 47, .15), transparent 28%),
    linear-gradient(135deg, #3b0d15 0, #681a22 52%, #431019 100%);
  border-color: rgba(231, 188, 78, .82);
  box-shadow: 0 28px 72px rgba(63, 16, 23, .25);
}

.bg18-devotional-hero::before {
  width: 22rem;
  height: 22rem;
  border-color: rgba(255, 220, 117, .12);
}

.bg18-devotional-hero::after {
  width: 24rem;
  height: 24rem;
  border-color: rgba(255, 220, 117, .10);
}

.bg18-hero-logo-panel {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid rgba(255, 222, 126, .65);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .98), rgba(255, 246, 214, .94) 70%),
    #fff6d6;
  box-shadow:
    inset 0 0 0 6px rgba(104, 26, 34, .04),
    0 20px 50px rgba(34, 6, 10, .28);
}

.bg18-hero-logo-panel img {
  width: 100%;
  height: auto;
  max-height: 245px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(111, 65, 6, .15));
}

.bg18-devotional-copy {
  max-width: 650px;
  margin: 0 0 .85rem;
  color: #ffe6a4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.32rem);
  font-weight: 700;
  line-height: 1.45;
}

.bg18-devotional-hero .bg18-hero-note {
  padding-left: .85rem;
  border-left: 3px solid rgba(255, 220, 117, .72);
}

.bg18-participant-page .bg18-card {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(255, 248, 226, .96));
  border-color: rgba(205, 157, 52, .36);
  box-shadow: 0 18px 50px rgba(75, 27, 26, .12);
}

.bg18-guru-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 5vw, 3.5rem);
  overflow: hidden;
  padding: clamp(1rem, 4vw, 2.2rem);
}

.bg18-guru-card::after {
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  color: rgba(104, 26, 34, .055);
  content: "ॐ";
  font-family: Georgia, serif;
  font-size: 15rem;
  line-height: 1;
  pointer-events: none;
}

.bg18-guru-poster-link {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 410px);
  margin: 0 auto;
  padding: .45rem;
  border: 1px solid rgba(213, 162, 47, .64);
  border-radius: 22px;
  background: #f3d888;
  box-shadow: 0 22px 52px rgba(56, 14, 20, .22);
}

.bg18-guru-poster-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 16px;
}

.bg18-guru-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.bg18-guru-copy h2 {
  margin: .4rem 0 .8rem;
  color: var(--bg18-maroon-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1.08;
  text-wrap: balance;
}

.bg18-guru-copy > p:not(.bg18-kicker) {
  max-width: 560px;
  margin: 0;
  color: #5d433d;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.7;
}

.bg18-lotus-mark {
  display: inline-grid;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: .8rem;
  place-items: center;
  border: 1px solid rgba(159, 112, 16, .46);
  border-radius: 50%;
  background: var(--bg18-gold-pale);
  color: var(--bg18-maroon);
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(75, 27, 26, .1);
}

.bg18-devotional-values {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.35rem;
}

.bg18-devotional-values span {
  padding: .5rem .72rem;
  border: 1px solid rgba(159, 112, 16, .28);
  border-radius: 999px;
  background: rgba(255, 241, 189, .58);
  color: var(--bg18-maroon);
  font-size: .8rem;
  font-weight: 800;
}

.bg18-participant-page .bg18-class-link-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  background:
    radial-gradient(circle at 100% 0, rgba(213, 162, 47, .20), transparent 40%),
    linear-gradient(145deg, #fff5d6, #fffdf8);
  border-color: rgba(205, 157, 52, .42);
}

.bg18-participant-page .bg18-class-link-card::after {
  position: absolute;
  right: .7rem;
  top: .3rem;
  color: rgba(104, 26, 34, .07);
  content: "✦";
  font-size: 4.5rem;
  line-height: 1;
  pointer-events: none;
}

.bg18-participant-page .bg18-class-link-card h3,
.bg18-participant-page .bg18-class-link-actions {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .bg18-participant-page .bg18-header {
    padding-block: .35rem;
  }

  .bg18-brand-logo {
    width: 106px;
    max-height: 62px;
  }

  .bg18-devotional-hero {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    padding: 1.15rem;
  }

  .bg18-hero-logo-panel {
    width: min(100%, 260px);
    margin: 0 auto;
    padding: .85rem;
    border-radius: 20px;
  }

  .bg18-hero-logo-panel img {
    max-height: 175px;
  }

  .bg18-devotional-hero .bg18-hero-note {
    padding: .7rem 0 0;
    border-top: 1px solid rgba(255, 220, 117, .45);
    border-left: 0;
  }

  .bg18-guru-card {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .bg18-guru-poster-link {
    width: 100%;
    max-width: 430px;
  }

  .bg18-guru-copy {
    text-align: center;
  }

  .bg18-guru-copy > p:not(.bg18-kicker) {
    margin-inline: auto;
  }

  .bg18-devotional-values {
    justify-content: center;
  }
}

/* v161 - temple-backed participant hero */
.bg18-participant-page .bg18-devotional-hero {
  background:
    linear-gradient(90deg, rgba(49, 9, 14, .96) 0%, rgba(101, 24, 32, .91) 54%, rgba(49, 12, 14, .80) 100%),
    url("images/hero-temple.webp") center 45% / cover no-repeat;
}

.bg18-devotional-hero h1 span,
.bg18-devotional-hero h1 small {
  display: block;
}

.bg18-devotional-hero h1 span {
  color: #fff9ed;
  font-family: "Noto Sans Tamil", Latha, Vijaya, Georgia, serif;
  font-size: .9em;
  letter-spacing: -.03em;
}

.bg18-devotional-hero h1 small {
  margin-top: .18rem;
  color: #ffe4a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .6em;
  letter-spacing: .01em;
}

.bg18-hero-tamil-subtitle {
  max-width: 680px;
  margin: -.5rem 0 1rem;
  color: #ffe4a0;
  font-family: "Noto Sans Tamil", Latha, Vijaya, sans-serif;
  font-size: clamp(.92rem, 2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .bg18-participant-page .bg18-devotional-hero {
    background:
      linear-gradient(180deg, rgba(49, 9, 14, .96), rgba(101, 24, 32, .91) 65%, rgba(49, 12, 14, .92)),
      url("images/hero-temple.webp") 58% center / cover no-repeat;
  }

  .bg18-hero-tamil-subtitle {
    margin-inline: auto;
  }
}

@media (max-width: 390px) {
  .bg18-guru-card {
    padding: .75rem;
  }

  .bg18-guru-poster-link {
    padding: .3rem;
    border-radius: 16px;
  }

  .bg18-guru-poster-link img {
    border-radius: 12px;
  }
}
