:root {
  --paper: #fbf7ee;
  --card: #fffdf8;
  --ink: #231a12;
  --muted: #736354;
  --line: #e7dcc9;
  --accent: #9b2f1c;
  --accent-dark: #7c2415;
  --accent-soft: #f6e3c8;
  --highlight: #f6cf7d;
  --te-accent: #1f5c50;
  --shadow: 0 10px 34px rgba(74, 48, 24, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

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

.kicker {
  margin: 0 0 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* header */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 238, .9);
}
.head-in {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0 18px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-mark {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { display: flex; gap: 26px; font-size: .88rem; font-weight: 500; }
.nav a { color: var(--muted); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-color: var(--accent); }

/* hero */
.hero { padding: 86px 0 54px; max-width: 900px; }
.hero h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 16ch;
}
.te-inline {
  font-family: "Noto Serif Telugu", "Source Serif 4", serif;
  color: var(--te-accent);
  font-weight: 500;
}
.lede {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
}

/* sections */
.block { padding: 34px 0 60px; }
.section-head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.section-head h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
}
.rule { flex: 1; height: 1px; background: var(--line); }

/* playlist cards */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.pl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pl-thumb { position: relative; aspect-ratio: 16 / 9; background: #eadfcd; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(24, 17, 12, .78);
  color: #fff7e8;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 9px;
  border-radius: 999px;
}
.pl-body { padding: 18px 20px 20px; }
.pl-body h3 {
  margin: 0 0 6px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
}
.pl-body p { margin: 0; font-size: .86rem; }

/* how */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.how-card {
  border-top: 1px solid var(--line);
  padding: 20px 4px 0;
}
.how-card .num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: .08em;
}
.how-card h3 {
  margin: 8px 0 6px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
}
.how-card p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* about */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  max-width: 900px;
}
.about-cols p { margin: 0; color: var(--muted); line-height: 1.7; font-size: .97rem; }

/* crumbs */
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .8rem;
  color: var(--muted);
  margin: 30px 0 26px;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--accent); }
.crumbs span:last-child { color: var(--ink); }

/* playlist page */
.playlist-page { padding-bottom: 70px; }
.pl-head { padding-bottom: 30px; }
.pl-head h1 {
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -.015em;
}
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  transition: background .14s ease;
}
a.row:hover { background: rgba(255, 253, 248, .8); }
.row.dim { opacity: .55; }
.row-num {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-title { font-weight: 500; font-size: .98rem; }
.row-meta { font-size: .78rem; color: var(--muted); }
.row-badges { display: flex; gap: 6px; }
.badge {
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.te { background: var(--accent-soft); border-color: transparent; color: var(--accent-dark); }
.badge.soon { border-style: dashed; color: #9b8a78; }

/* lecture */
.lecture-page { padding-bottom: 80px; }
.reading-head { max-width: 820px; }
.lecture-page h1 {
  margin: 0 0 10px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.meta { margin: 0 0 22px; font-size: .8rem; color: var(--muted); }

/* sticky player */
.player-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 0 14px;
  background: linear-gradient(var(--paper) 64%, rgba(251, 247, 238, .82) 86%, rgba(251, 247, 238, 0));
}
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}
.icon-btn {
  font: inherit;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  flex: none;
}
.icon-btn:focus-visible, .seg-btn:focus-visible, .follow-btn:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(155, 47, 28, .28);
  transition: background .15s ease, transform .12s ease;
}
.play:hover { background: var(--accent-dark); }
.play:active { transform: scale(.96); }
.play svg { width: 28px; height: 28px; fill: currentColor; }
.play .ic-pause { display: none; }
.player.playing .play .ic-pause { display: block; }
.player.playing .play .ic-play { display: none; }

.seek-wrap { flex: 1; display: flex; align-items: center; min-width: 80px; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--line) var(--p, 0%));
}
input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
}
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card);
  box-shadow: 0 1px 5px rgba(0,0,0,.25);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card);
}
.clock {
  font-size: .9rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
  font-weight: 500;
}
.clock .sep { padding: 0 3px; opacity: .6; }
.p-controls { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn.small {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  min-width: 46px;
  background: var(--paper);
}
.icon-btn.small:hover { color: var(--accent-dark); border-color: #d6c6ad; background: var(--accent-soft); }
select {
  font: inherit;
  font-size: .75rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 4px;
  cursor: pointer;
}
.follow-btn {
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  cursor: pointer;
}
.follow-btn.on {
  color: var(--accent-dark);
  border-color: #e3b98a;
  background: var(--accent-soft);
}

/* language switch */
.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 6px;
}
.seg {
  display: inline-flex;
  padding: 3px;
  background: #efe5d4;
  border-radius: 999px;
  gap: 2px;
}
.seg-btn {
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, color .15s ease;
}
.seg-btn.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(60, 40, 20, .12);
}
.ai-tag {
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 2px 4px;
  border-radius: 4px;
}
.lang-note { margin: 0; font-size: .78rem; color: var(--muted); }
.ai-note {
  margin: 14px 0 0;
  font-size: .8rem;
  color: var(--accent-dark);
  background: #fbefdc;
  border: 1px solid #efd7b4;
  border-radius: 9px;
  padding: 10px 13px;
}

/* transcript */
.transcript {
  margin-top: 26px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.17rem;
  line-height: 1.9;
  color: #2a2119;
  text-wrap: pretty;
}
.transcript p { margin: 0 0 1.45em; }
.transcript[lang="te"] {
  font-family: "Noto Serif Telugu", "Source Serif 4", Georgia, serif;
  font-size: 1.28rem;
  line-height: 2.1;
}
.sent { margin-right: .12em; }
.w {
  border-radius: 3px;
  padding: 2px 0;
  cursor: pointer;
  transition: background-color .12s linear;
}
.w:hover { background: #f3e4c8; }
.w.active {
  background: var(--highlight);
  box-shadow: 0 0 0 2px var(--highlight);
  color: #1c140d;
}
.loading { color: var(--muted); font-family: Inter, sans-serif; font-size: .9rem; }
.endnote {
  margin: 54px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* footer */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  margin-top: 40px;
}
.site-foot p { margin: 0 0 8px; font-size: .78rem; color: var(--muted); max-width: 70ch; line-height: 1.6; }
.site-foot .muted { opacity: .8; }

@media (max-width: 760px) {
  .wrap, .wrap.reading { width: calc(100% - 32px); }
  .hero { padding: 56px 0 38px; }
  .lede { font-size: 1rem; }
  .head-in { padding: 16px 0 14px; }
  .brand-sub { display: none; }
  .nav { gap: 18px; }
  .about-cols { grid-template-columns: 1fr; gap: 18px; }
  .player { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .seek-wrap { order: 5; flex-basis: 100%; }
  .clock { margin-left: auto; }
  .p-controls { gap: 6px; }
  .follow-btn { padding: 6px 8px; }
  .player-lang { order: 6; flex-basis: 100%; margin-left: 0; justify-content: space-between; flex-wrap: wrap; }
  .row { grid-template-columns: 28px 34px 1fr auto; gap: 10px; padding: 15px 2px; }
  .transcript { font-size: 1.08rem; }
  .transcript[lang="te"] { font-size: 1.18rem; }
  .player-sticky { padding-top: 4px; }
}

/* profiles */
.head-in { align-items: center; }
.head-right { display: flex; align-items: center; gap: 24px; }
.profile-slot { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px 4px 4px; font: inherit; font-size: .84rem;
  color: var(--ink); cursor: pointer;
}
.profile-btn:hover { border-color: #d6c6ad; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; font-weight: 600; font-size: .8rem;
}
.avatar.small { width: 22px; height: 22px; font-size: .72rem; }
.chev { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 2; }
.profile-pop {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 12px; min-width: 232px; z-index: 60;
}
.pop-title {
  margin: 0 0 8px; font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.profile-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.profile-item {
  width: 100%; display: flex; align-items: center; gap: 8px;
  border: 0; background: none; padding: 6px 8px; border-radius: 8px;
  cursor: pointer; font: inherit; font-size: .9rem; text-align: left; color: var(--ink);
}
.profile-item:hover { background: var(--accent-soft); }
.profile-item.current { font-weight: 600; }
.profile-add { display: flex; gap: 6px; margin-top: 10px; }
.profile-add input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); padding: 6px 8px; font: inherit; font-size: .84rem; color: var(--ink);
}
.profile-add button {
  border: 1px solid var(--line); background: var(--card); border-radius: 8px;
  padding: 6px 10px; font: inherit; font-size: .82rem; cursor: pointer;
}
.pop-note { margin: 10px 0 0; font-size: .7rem; color: var(--muted); }

/* playlist progress */
.pl-progress {
  margin-top: 14px; height: 5px; border-radius: 999px;
  background: #efe4d2; overflow: hidden;
}
.pl-progress i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--accent); transition: width .3s ease;
}
.pl-progress-label {
  margin: 7px 0 0; font-size: .76rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.row-state { background: var(--te-accent); border-color: transparent; color: #fff; }
.row.done .row-title { color: var(--muted); }

/* multi-select download */
.row { grid-template-columns: 28px 46px 1fr auto; }
.row-sel { display: inline-flex; align-items: center; justify-content: center; }
.row-check { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.dl-bar {
  position: sticky; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 18px 0 0; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
}
.dl-bar-count { font-weight: 600; font-size: .86rem; }
.dl-bar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.dl-lang { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dl-bar-btn {
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 999px; padding: 7px 16px; font: inherit; font-size: .84rem; cursor: pointer;
}
.dl-bar-btn:hover { background: var(--accent-dark); }
.dl-bar-btn:disabled { opacity: .6; cursor: progress; }
.dl-bar-clear {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .84rem; cursor: pointer;
}
.dl-bar-progress { flex-basis: 100%; margin: 4px 0 0; font-size: .78rem; color: var(--muted); }
.dl-toolbar { display: flex; justify-content: flex-end; margin: 10px 0 0; }
.sel-all {
  border: 1px solid var(--line); background: var(--card); color: var(--accent-dark);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .78rem; cursor: pointer;
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.sel-all:hover { border-color: var(--accent); color: var(--accent); }
.sel-all.on { background: var(--accent-soft); border-color: #e3b98a; }
.track-head { display: flex; align-items: center; gap: 12px; }
.track-head .sel-all { margin-left: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* continue listening */
.continue-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.continue-card {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 12px; padding: 14px 16px 16px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.continue-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.c-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600; font-size: 1rem; line-height: 1.3;
}
.c-meta { font-size: .76rem; color: var(--muted); }
.c-bar { height: 4px; border-radius: 999px; background: #efe4d2; overflow: hidden; margin-top: 4px; }
.c-bar i { display: block; height: 100%; background: var(--accent); }

/* downloads */
.dl-group {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--muted);
}
.dl-btn {
  color: var(--accent-dark); display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  background: var(--card); white-space: nowrap; transition: border-color .14s ease, color .14s ease;
}
.dl-btn:hover { color: var(--accent); border-color: var(--accent); }
.dl-btn .ic-dl { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-btn.pending {
  color: var(--muted); border-style: dashed; cursor: not-allowed;
}
.dl-btn.pending .ic-dl { display: none; }

/* language + download pinned inside the player */
.player-lang {
  display: flex; align-items: center; gap: 12px; margin-left: auto;
}
.player-lang .dl-group { gap: 6px; }

/* resume toast */
.resume-toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px;
  background: var(--ink); color: #fff7e8; border-radius: 999px;
  padding: 8px 8px 8px 16px; display: flex; align-items: center; gap: 10px;
  font-size: .82rem; box-shadow: var(--shadow); z-index: 80;
}
.resume-toast button {
  background: none; border: 1px solid rgba(255, 247, 232, .35);
  color: #fff7e8; border-radius: 999px; padding: 4px 10px;
  font: inherit; font-size: .78rem; cursor: pointer;
}
.resume-toast .toast-x { border: 0; padding: 2px 6px; font-size: 1rem; }

@media (max-width: 760px) {
  .head-right { gap: 12px; }
  .profile-name { display: none; }
  .dl-group { margin-left: 0; }
}

body.no-audio .player-sticky { display: none; }

/* portal: auth, account, admin */
.auth-link {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  font-size: .84rem; color: var(--ink); white-space: nowrap;
}
.auth-link:hover { border-color: var(--accent); color: var(--accent); }
.portal-page { padding-bottom: 80px; max-width: 760px; }
.auth-card {
  border: 1px solid var(--line); background: var(--card);
  border-radius: 16px; padding: 22px; margin-top: 18px; box-shadow: var(--shadow);
}
.auth-tabs { display: flex; gap: 4px; background: #efe5d4; border-radius: 999px; padding: 3px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  padding: 8px 10px; border-radius: 999px; font: inherit; font-size: .86rem; cursor: pointer;
}
.auth-tab.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(60,40,20,.12); }
.oauth-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 10px; padding: 11px 14px; font: inherit; font-size: .9rem; cursor: pointer;
}
.oauth-btn:hover { border-color: #d6c6ad; }
.g-ic { width: 18px; height: 18px; fill: var(--accent-dark); }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 5px; font-size: .82rem; color: var(--muted); }
.auth-form input {
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper);
  padding: 10px 12px; font: inherit; font-size: .95rem; color: var(--ink);
}
.auth-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-submit {
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 999px; padding: 10px 16px; font: inherit; font-size: .9rem; cursor: pointer;
}
.auth-submit:hover { background: var(--accent-dark); }
.auth-links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.link-btn { border: 0; background: none; color: var(--accent-dark); font: inherit; font-size: .8rem; cursor: pointer; padding: 2px; }
.link-btn:hover { color: var(--accent); text-decoration: underline; }
.auth-msg { margin: 14px 0 0; font-size: .84rem; padding: 10px 12px; border-radius: 9px; }
.auth-msg.ok { color: #2f6b3a; background: #e9f3ea; border: 1px solid #c3e0c7; }
.auth-msg.err { color: #9b2f1c; background: #fbe9e4; border: 1px solid #f0c7b9; }
.auth-disabled { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.acct-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 18px; font-size: .9rem; }
.acct-grid dt { color: var(--muted); }
.acct-grid dd { margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .86rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-btn { border: 1px solid var(--line); background: var(--card); border-radius: 7px; padding: 5px 9px; font: inherit; font-size: .76rem; cursor: pointer; }
.admin-btn:hover { border-color: var(--accent); color: var(--accent); }
.admin-btn.danger { color: #9b2f1c; }
.admin-btn.danger:hover { border-color: #9b2f1c; background: #fbe9e4; }
.transcript .sent.verse { color: #6b4a1f; }
.transcript .sent.orig { color: #8a7a5f; font-style: italic; }

.status-line { margin: 10px 0 0; font-size: .85rem; }

.transcript .sent.verse .vref { font-size: .78em; letter-spacing: .02em; color: #8a7a5f; margin-left: .35em; }

/* syllabus hierarchy */
.year-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.year-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px; box-shadow: 0 2px 10px rgba(74, 48, 24, .04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.year-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.year-card.extra { border-style: dashed; }
.year-big {
  font-family: "Source Serif 4", Georgia, serif; font-size: 2.6rem; line-height: 1;
  color: var(--accent); min-width: 52px;
}
.year-body { flex: 1; min-width: 0; }
.year-body h3 { margin: 0 0 4px; font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; font-weight: 600; }
.year-body p { margin: 0 0 6px; font-size: .86rem; }
.year-body p.small { font-size: .78rem; }
.year-body .pl-progress { margin-top: 12px; }
.sem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.sem-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 20px; transition: transform .18s ease, box-shadow .18s ease;
}
.sem-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sem-card h3 { margin: 0 0 6px; font-family: "Source Serif 4", Georgia, serif; font-size: 1.12rem; }
.sem-card p { margin: 0 0 4px; font-size: .84rem; }
.sem-card p.small { font-size: .76rem; }
.block-sm { padding: 8px 0 40px; }
.track-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.track-head h2 { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-size: 1.3rem; font-weight: 600; }
.track-note { font-size: .78rem; color: var(--muted); }
.track.block-sm .pl-progress { margin-bottom: 14px; }
.badge.src { border-style: dotted; color: #9b8a78; }
