:root {
  color-scheme: light;
  --bg: oklch(96.5% 0.014 83);
  --surface: oklch(98.2% 0.012 82);
  --surface-soft: oklch(94.5% 0.018 88);
  --sidebar: oklch(92.2% 0.017 132);
  --panel: oklch(98% 0.011 82);
  --panel-strong: oklch(92.8% 0.028 144);
  --ink: oklch(22.5% 0.028 126);
  --muted: oklch(51% 0.03 122);
  --muted-2: oklch(62% 0.026 118);
  --border: oklch(84% 0.02 112);
  --border-strong: oklch(74% 0.032 112);
  --accent: oklch(53.5% 0.112 151);
  --accent-ink: oklch(28% 0.075 151);
  --accent-soft: oklch(90% 0.055 151);
  --amber: oklch(67% 0.105 63);
  --amber-soft: oklch(92% 0.06 69);
  --blue: oklch(58% 0.096 231);
  --blue-soft: oklch(91% 0.044 231);
  --red: oklch(55% 0.12 24);
  --red-soft: oklch(91% 0.055 24);
  --shadow: 0 18px 44px oklch(27% 0.04 126 / 0.09);
  --radius: 8px;
  --topbar-height: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.48;
  letter-spacing: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  padding: 18px 14px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 4px 6px 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--accent-ink);
  color: oklch(94% 0.02 150);
  font-weight: 750;
}

.brand-title {
  display: block;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.2;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 3px;
  padding-top: 8px;
}

.nav-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: oklch(96% 0.018 120);
  color: var(--ink);
  outline: 0;
}

.nav-item[aria-current="page"] {
  background: var(--accent-soft);
  border-color: oklch(77% 0.066 151);
  color: var(--accent-ink);
  font-weight: 680;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: oklch(88% 0.018 120);
  color: inherit;
  font-size: 13px;
  font-weight: 720;
}

.nav-item[aria-current="page"] .nav-icon {
  background: oklch(82% 0.078 151);
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-count {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: oklch(34% 0.075 63);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  padding: 12px 8px 2px;
  color: var(--muted);
  font-size: 12px;
}

.access-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: oklch(96% 0.017 120);
  border: 1px solid var(--border);
  color: var(--accent-ink);
  font-weight: 650;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: var(--topbar-height);
  padding: 10px 22px;
  background: oklch(97.5% 0.012 82 / 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.menu-button {
  display: none;
}

.topbar-title {
  min-width: 0;
}

.topbar-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.topbar-title strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.user-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: 230px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 760;
}

.user-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content {
  width: min(1180px, calc(100vw - 252px));
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.messages {
  display: grid;
  gap: 8px;
  margin: 14px 22px 0;
}

.message {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.24;
}

h3 {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.3;
}

.lead {
  max-width: 70ch;
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-grid,
.two-column,
.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}

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

.panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel.is-strong {
  background: var(--panel-strong);
  border-color: oklch(78% 0.045 143);
}

.panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.panel-title {
  display: grid;
  gap: 3px;
}

.panel-title small,
.muted {
  color: var(--muted);
}

.panel-title small {
  font-size: 12px;
}

.stack {
  display: grid;
  gap: 12px;
}

.stack-lg {
  display: grid;
  gap: 16px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 680;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn {
  gap: 7px;
  padding: 8px 12px;
}

.btn:hover,
.btn:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--border-strong);
  outline: 0;
}

.btn:active,
.icon-button:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: oklch(96% 0.02 151);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: oklch(48% 0.115 151);
  border-color: oklch(48% 0.115 151);
}

.btn-secondary {
  background: var(--accent-soft);
  border-color: oklch(78% 0.055 151);
  color: var(--accent-ink);
}

.btn-quiet {
  background: transparent;
}

.icon-button {
  width: 36px;
  padding: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-live {
  background: var(--amber-soft);
  border-color: oklch(78% 0.09 64);
  color: oklch(35% 0.08 58);
}

.status-finished,
.status-submitted {
  background: var(--blue-soft);
  border-color: oklch(78% 0.055 231);
  color: oklch(37% 0.086 231);
}

.status-blocked,
.status-error {
  background: var(--red-soft);
  border-color: oklch(78% 0.06 24);
  color: oklch(38% 0.1 24);
}

.status-upcoming,
.status-pending {
  background: var(--accent-soft);
  border-color: oklch(78% 0.055 151);
  color: var(--accent-ink);
}

.list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
}

.list-row:hover {
  background: oklch(96.8% 0.014 86);
}

.list-main {
  min-width: 0;
}

.list-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-weight: 720;
}

.list-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: oklch(96% 0.014 82);
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-item {
  min-height: 72px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-item b {
  display: block;
  font-size: 19px;
  line-height: 1.1;
}

.summary-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.textarea {
  min-height: 92px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--accent);
  outline: 3px solid oklch(82% 0.07 151 / 0.35);
}

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

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 650;
}

.segmented input:checked + span {
  border-color: oklch(74% 0.064 151);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.segmented input:focus-visible + span {
  outline: 3px solid oklch(82% 0.07 151 / 0.35);
}

.sensor-stack {
  display: grid;
  gap: 10px;
}

.sensor-control {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.sensor-heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.sensor-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--accent-ink);
  font-size: 17px;
}

.sensor-name {
  display: block;
  font-weight: 720;
}

.sensor-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.sensor-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(64px, 1fr));
  gap: 6px;
}

.sensor-choice {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 54px;
  padding: 7px 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(97.5% 0.012 82);
  color: var(--muted);
  transition: background-color 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.sensor-choice:hover,
.sensor-choice:focus-visible {
  border-color: var(--border-strong);
  outline: 0;
}

.sensor-choice.is-selected,
.sensor-choice[aria-pressed="true"] {
  border-color: oklch(72% 0.07 151);
  background: var(--accent-soft);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 18px;
  color: inherit;
  font-size: 15px;
  line-height: 1;
}

.choice-label {
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.diary-mobile-head {
  display: none;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.timeline-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.material-type {
  display: inline-flex;
  min-width: 70px;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: oklch(37% 0.086 231);
  font-size: 12px;
  font-weight: 700;
}

.player-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(24% 0.02 126);
  aspect-ratio: 16 / 9;
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.auth-body {
  min-height: 100dvh;
  background: var(--bg);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 480px);
  gap: 0;
  min-height: 100dvh;
}

.auth-context {
  display: grid;
  align-content: end;
  min-height: 100%;
  padding: 42px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.auth-panel {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: 42px;
}

.auth-card {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.import-drop {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: oklch(96.5% 0.014 82);
  text-align: center;
}

.table-like {
  display: grid;
  gap: 1px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 0.8fr;
  min-width: 680px;
  background: var(--surface);
}

.table-row > * {
  padding: 10px;
  border-right: 1px solid var(--border);
}

.table-row > *:last-child {
  border-right: 0;
}

.table-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-overlay {
  display: none;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 310px);
    transform: translateX(-104%);
    transition: transform 190ms ease;
    box-shadow: var(--shadow);
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 18;
    display: none;
    background: oklch(24% 0.02 126 / 0.34);
  }

  .nav-open .nav-overlay {
    display: block;
  }

  .menu-button {
    display: inline-flex;
  }

  .content {
    width: 100%;
    padding: 18px 14px 34px;
  }

  .topbar {
    padding-inline: 12px;
  }

  .dashboard-grid,
  .two-column,
  .practice-grid,
  .admin-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-context {
    min-height: auto;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .auth-panel {
    min-height: auto;
    padding: 20px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 22px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topbar-actions {
    display: none;
  }

  .page-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .list-row {
    grid-template-columns: 1fr;
  }

  .sensor-control {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sensor-options {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 5px;
  }

  .sensor-choice {
    min-height: 50px;
    padding-inline: 3px;
  }

  .choice-label {
    font-size: 10px;
  }

  .diary-mobile-head {
    position: sticky;
    top: var(--topbar-height);
    z-index: 8;
    display: grid;
    gap: 6px;
    margin: -18px -14px 14px;
    padding: 12px 14px;
    background: oklch(97.5% 0.012 82 / 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .user-pill {
    max-width: 145px;
  }
}

.landing-body {
  --landing-bg: oklch(96.5% 0.014 83);
  --landing-ink: oklch(22.5% 0.028 126);
  --landing-muted: oklch(49% 0.032 122);
  --landing-line: oklch(84% 0.02 112);
  --landing-paper: oklch(98.4% 0.011 84);
  --landing-soft: oklch(93.7% 0.019 91);
  --landing-deep: oklch(24% 0.048 141);
  --landing-green: oklch(53.5% 0.112 151);
  --landing-amber: oklch(70% 0.11 67);
  --landing-blue: oklch(58% 0.096 231);
  background: var(--landing-bg);
  color: var(--landing-ink);
}

.landing-body .landing-page {
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--landing-bg);
}

.landing-body .landing-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 86dvh;
  padding: 24px 28px 72px;
  color: oklch(97% 0.01 96);
  background-image: var(--hero-image);
  background-position: center 22%;
  background-size: cover;
  isolation: isolate;
}

.landing-body .landing-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, oklch(15% 0.035 132 / 0.82) 0%, oklch(15% 0.035 132 / 0.54) 48%, oklch(15% 0.035 132 / 0.18) 100%),
    oklch(18% 0.026 132 / 0.26);
  content: "";
}

.landing-body .landing-nav {
  position: absolute;
  top: 18px;
  right: 28px;
  left: 28px;
  z-index: 2;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.landing-body .landing-brand {
  display: inline-grid;
  grid-template-columns: 42px minmax(0, auto);
  gap: 10px;
  align-items: center;
  min-width: max-content;
  font-weight: 760;
}

.landing-body .landing-brand .brand-mark {
  background: oklch(96% 0.018 96);
  color: var(--landing-deep);
}

.landing-body .landing-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  max-width: min(820px, 70vw);
  overflow-x: auto;
  scrollbar-width: none;
}

.landing-body .landing-nav-links::-webkit-scrollbar {
  display: none;
}

.landing-body .landing-nav-links a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid oklch(92% 0.01 96 / 0.24);
  border-radius: var(--radius);
  background: oklch(14% 0.026 132 / 0.34);
  color: oklch(96% 0.012 96);
  font-size: 13px;
  font-weight: 650;
}

.landing-body .landing-nav-links a:hover,
.landing-body .landing-nav-links a:focus-visible {
  border-color: oklch(94% 0.012 96 / 0.56);
  background: oklch(14% 0.026 132 / 0.52);
  outline: 0;
}

.landing-body .landing-hero-content {
  z-index: 1;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin-top: 120px;
}

.landing-body .landing-kicker,
.landing-body .landing-label,
.landing-body .teacher-role {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-body .landing-kicker {
  max-width: 58ch;
  color: oklch(88% 0.06 72);
}

.landing-body .landing-hero h1 {
  margin: 0;
  color: oklch(98% 0.008 96);
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-body .landing-tagline {
  margin: 14px 0 0;
  color: oklch(91% 0.048 74);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.landing-body .landing-hero-lead {
  max-width: 61ch;
  margin: 14px 0 0;
  color: oklch(94% 0.016 96);
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.landing-body .landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.landing-body .landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.landing-body .landing-btn:hover,
.landing-body .landing-btn:focus-visible {
  outline: 0;
  transform: translateY(-1px);
}

.landing-body .landing-btn-primary {
  background: var(--landing-amber);
  border-color: var(--landing-amber);
  color: oklch(22% 0.045 72);
}

.landing-body .landing-btn-primary:hover,
.landing-body .landing-btn-primary:focus-visible {
  background: oklch(74% 0.12 67);
}

.landing-body .landing-btn-secondary {
  background: oklch(97% 0.012 96);
  border-color: oklch(97% 0.012 96);
  color: var(--landing-deep);
}

.landing-body .landing-btn-secondary:hover,
.landing-body .landing-btn-secondary:focus-visible {
  background: oklch(92.5% 0.018 96);
}

.landing-body .landing-closed-note {
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--landing-amber);
  background: oklch(12% 0.025 132 / 0.42);
  color: oklch(97% 0.012 96);
  font-weight: 720;
  overflow-wrap: break-word;
}

.landing-body .landing-phone {
  margin: 12px 0 0;
  color: oklch(91% 0.03 78);
  font-weight: 720;
}

.landing-body .landing-messages {
  display: grid;
  gap: 8px;
  width: min(1120px, calc(100% - 48px));
  margin: 18px auto 0;
}

.landing-body .landing-band {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
  border-top: 1px solid var(--landing-line);
}

.landing-body .landing-band:first-of-type {
  border-top: 0;
}

.landing-body .landing-section-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 24px;
}

.landing-body .landing-section-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.landing-body .landing-section-head p:not(.landing-label) {
  margin: 0;
  color: var(--landing-muted);
  font-size: 16px;
}

.landing-body .landing-label {
  color: var(--landing-green);
}

.landing-body .landing-prose {
  max-width: 76ch;
}

.landing-body .landing-prose p,
.landing-body .landing-prose blockquote,
.landing-body .landing-points p,
.landing-body .landing-info-grid p,
.landing-body .guide-list p,
.landing-body .teacher-card p,
.landing-body .landing-small {
  margin: 0;
  color: var(--landing-muted);
}

.landing-body .landing-prose p + p,
.landing-body .landing-prose p + blockquote,
.landing-body .landing-prose blockquote + p {
  margin-top: 14px;
}

.landing-body .landing-prose strong {
  color: var(--landing-ink);
}

.landing-body .landing-prose blockquote {
  padding: 14px 0 14px 18px;
  border-left: 4px solid var(--landing-amber);
  color: var(--landing-ink);
  font-size: 18px;
  font-weight: 650;
}

.landing-body .landing-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 36px;
  align-items: start;
}

.landing-body .landing-points,
.landing-body .landing-info-grid,
.landing-body .schedule-grid,
.landing-body .guide-list,
.landing-body .ashram-timeline {
  display: grid;
  gap: 10px;
}

.landing-body .landing-points p,
.landing-body .landing-info-grid > div,
.landing-body .schedule-grid > div,
.landing-body .guide-list article,
.landing-body .ashram-timeline > div,
.landing-body .landing-form,
.landing-body .teacher-card {
  border: 1px solid var(--landing-line);
  border-radius: var(--radius);
  background: var(--landing-paper);
}

.landing-body .landing-points p {
  padding: 13px 14px;
}

.landing-body .landing-points b {
  color: var(--landing-ink);
}

.landing-body .landing-info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-body .landing-info-grid > div {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 192px;
  padding: 16px;
}

.landing-body .landing-info-grid h3,
.landing-body .teacher-card h3,
.landing-body .guide-list h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.landing-body .landing-info-grid a {
  color: var(--landing-blue);
  font-weight: 740;
}

.landing-body .schedule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-body .schedule-grid > div {
  display: grid;
  grid-template-columns: minmax(138px, 0.44fr) minmax(132px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  min-height: 58px;
  padding: 14px;
}

.landing-body .schedule-grid b {
  color: var(--landing-ink);
}

.landing-body .schedule-grid small {
  color: var(--landing-green);
  font-weight: 720;
}

.landing-body .schedule-grid span {
  color: var(--landing-muted);
}

.landing-body .teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.landing-body .teacher-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  min-height: 280px;
  padding: 14px;
}

.landing-body .teacher-card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 252px;
  border-radius: var(--radius);
  object-fit: contain;
  object-position: center;
}

.landing-body .teacher-card > div,
.landing-body .guide-list article {
  display: grid;
  gap: 10px;
  align-content: start;
}

.landing-body .teacher-role {
  color: var(--landing-blue);
}

.landing-body .guide-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-body .guide-list article {
  padding: 18px;
}

.landing-body .ashram-timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-body .ashram-timeline > div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 13px 14px;
}

.landing-body .ashram-timeline b {
  color: var(--landing-green);
}

.landing-body .ashram-timeline span {
  color: var(--landing-muted);
}

.landing-body .landing-small {
  margin-top: 14px;
  font-size: 13px;
}

.landing-body .landing-special .landing-prose {
  max-width: 86ch;
  padding: 22px;
  border-left: 4px solid var(--landing-green);
  background: var(--landing-soft);
}

.landing-body .landing-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.landing-body .landing-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.landing-body .form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-body .field {
  min-width: 0;
}

.landing-body .field label,
.landing-body .field-label {
  color: var(--landing-ink);
}

.landing-body .input,
.landing-body .textarea {
  min-height: 44px;
  background: oklch(99% 0.006 84);
}

.landing-body .textarea {
  min-height: 112px;
}

.landing-body .field-help,
.landing-body .field-help ul,
.landing-body .message ul {
  margin: 0;
  padding: 0;
  color: var(--red);
  list-style: none;
}

.landing-body .landing-login-form {
  background: oklch(94.5% 0.024 139);
}

.landing-body .landing-login-form .panel-title {
  gap: 4px;
}

.landing-body .landing-login-form .panel-title h2 {
  margin: 0;
  font-size: 24px;
}

.landing-body .landing-login-form .panel-title small {
  color: var(--landing-muted);
}

@media (max-width: 1080px) {
  .landing-body .landing-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-body .teacher-grid,
  .landing-body .guide-list,
  .landing-body .schedule-grid,
  .landing-body .ashram-timeline,
  .landing-body .landing-copy-grid,
  .landing-body .landing-form-grid {
    grid-template-columns: 1fr;
  }

  .landing-body .schedule-grid > div {
    grid-template-columns: minmax(138px, 0.34fr) minmax(132px, 0.3fr) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .landing-body .landing-hero {
    min-height: 86dvh;
    padding: 18px 18px 44px;
    background-position: 58% center;
  }

  .landing-body .landing-hero::before {
    background:
      linear-gradient(0deg, oklch(14% 0.03 132 / 0.84) 0%, oklch(14% 0.03 132 / 0.64) 72%, oklch(14% 0.03 132 / 0.36) 100%),
      oklch(18% 0.026 132 / 0.3);
  }

  .landing-body .landing-nav {
    right: 18px;
    left: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .landing-body .landing-nav-links {
    justify-content: flex-start;
    max-width: 100%;
    padding-bottom: 2px;
  }

  .landing-body .landing-hero-content {
    max-width: calc(100vw - 36px);
    margin-top: 150px;
  }

  .landing-body .landing-hero h1 {
    font-size: 46px;
  }

  .landing-body .landing-tagline {
    font-size: 18px;
  }

  .landing-body .landing-hero-lead {
    font-size: 16px;
  }

  .landing-body .landing-band,
  .landing-body .landing-messages {
    width: min(100% - 28px, 1120px);
  }

  .landing-body .landing-band {
    padding: 42px 0;
  }

  .landing-body .landing-section-head h2 {
    font-size: 25px;
  }

  .landing-body .landing-info-grid,
  .landing-body .form-grid-three {
    grid-template-columns: 1fr;
  }

  .landing-body .teacher-card {
    grid-template-columns: 1fr;
  }

  .landing-body .teacher-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 5 / 4;
  }

  .landing-body .schedule-grid > div,
  .landing-body .ashram-timeline > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .landing-body .landing-btn {
    width: 100%;
  }
}

/* Restored first screen from the original Bram Sarot page. */
.landing-body .landing-cover {
  background: oklch(96.5% 0.014 83);
}

.landing-body .landing-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1200px, calc(100% - 48px));
  min-height: 96px;
  margin: 0 auto;
  padding: 12px 0;
}

.landing-body .landing-logo {
  display: inline-flex;
  align-items: center;
  width: 74px;
}

.landing-body .landing-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-body .landing-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-width: 0;
}

.landing-body .landing-phone-link {
  color: oklch(28% 0.02 86);
  font-size: 20px;
  font-weight: 700;
}

.landing-body .landing-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: min(230px, 48vw);
  padding: 10px 18px;
  border: 0;
  background: oklch(84.8% 0.086 83);
  color: oklch(28% 0.02 86);
  font-size: 16px;
  font-weight: 650;
  text-align: center;
}

.landing-body .landing-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1200px;
  min-height: 52px;
  margin: 12px auto 0;
  padding: 10px;
  background: oklch(84.8% 0.086 83);
}

.landing-body .landing-menu a {
  color: oklch(28% 0.02 86);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.landing-body .landing-menu a:hover,
.landing-body .landing-menu a:focus-visible,
.landing-body .landing-entry-button:hover,
.landing-body .landing-entry-button:focus-visible {
  color: oklch(17% 0.025 86);
  outline: 0;
}

.landing-body .landing-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 160px);
  padding: 0;
  background: oklch(94% 0.012 83);
  color: var(--landing-ink);
  isolation: auto;
}

.landing-body .landing-hero::before {
  display: none;
}

.landing-body .landing-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 160px);
  object-fit: contain;
  object-position: center;
}

.landing-body .landing-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: 18px 20px;
  border: 1px solid oklch(79% 0.052 83);
  background: oklch(93.5% 0.047 83);
}

.landing-body .landing-status-strip strong,
.landing-body .landing-status-strip span {
  color: oklch(28% 0.03 86);
  font-size: 17px;
}

.landing-body .landing-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.landing-body .price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.landing-body .price-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 240px;
  padding: 22px;
  border: 1px solid oklch(79% 0.052 83);
  background: oklch(98.4% 0.011 84);
}

.landing-body .price-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.landing-body .price-card p {
  margin: 0;
  color: var(--landing-muted);
}

.landing-body .price-kicker {
  color: var(--landing-green) !important;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-body .price-value {
  margin-top: auto;
  color: oklch(32% 0.048 86);
  font-size: 34px;
  line-height: 1.1;
}

.landing-body .landing-price-action {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.landing-body .landing-mobile-jump {
  display: none;
}

.landing-body .teacher-card {
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  align-items: start;
}

.landing-body .teacher-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  background: oklch(94% 0.012 83);
}

@media (max-width: 991px) {
  .landing-body .landing-topline,
  .landing-body .landing-menu {
    display: none;
  }

  .landing-body .landing-hero {
    min-height: auto;
    padding: 0;
    background: oklch(94% 0.012 83);
  }

  .landing-body .landing-hero img {
    max-height: none;
  }

  .landing-body .landing-status-strip {
    display: grid;
    width: min(100% - 28px, 1120px);
    margin-top: 16px;
    padding: 16px;
  }

  .landing-body .landing-status-actions {
    justify-content: stretch;
  }

  .landing-body .price-grid {
    grid-template-columns: 1fr;
  }

  .landing-body .price-card {
    min-height: 0;
    padding: 18px;
  }

  .landing-body .price-value {
    font-size: 28px;
  }

  .landing-body .landing-mobile-jump {
    display: flex;
    gap: 8px;
    width: min(100% - 28px, 1120px);
    margin: 14px auto 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .landing-body .landing-mobile-jump::-webkit-scrollbar {
    display: none;
  }

  .landing-body .landing-mobile-jump a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 11px;
    background: oklch(84.8% 0.086 83);
    color: oklch(28% 0.02 86);
    font-size: 14px;
    font-weight: 650;
  }
}

@media (max-width: 760px) {
  .landing-body .teacher-card {
    grid-template-columns: 1fr;
  }

  .landing-body .teacher-card img {
    max-width: 260px;
    margin: 0 auto;
  }
}
