:root {
  --green: #0d4f36;
  --green-dark: #083a28;
  --orange: #d26e2f;
  --paper: #f6f2ea;
  --text: #101411;
  --muted: #68736d;
  --line: #e6ddd1;
}

/* Inline site editor for public pages */
.site-inline-editable {
  position: relative;
}

.site-inline-edit-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 68, 24, 0.22);
  border-radius: 999px;
  color: #111812;
  background: linear-gradient(135deg, #ffa735, #ffe8a7);
  box-shadow: 0 14px 34px rgba(242, 68, 24, 0.20);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px) scale(0.94);
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-inline-edit-button:hover {
  box-shadow: 0 18px 42px rgba(242, 68, 24, 0.28);
  transform: translateY(-6px) scale(1.03);
}

.site-inline-editable:hover > .site-inline-edit-button,
.site-inline-editable:focus-within > .site-inline-edit-button {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-inline-editable::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border: 1.5px dashed rgba(242, 68, 24, 0);
  border-radius: 28px;
  pointer-events: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.site-inline-editable:hover::after {
  border-color: rgba(242, 68, 24, 0.22);
  background: rgba(255, 167, 53, 0.035);
}

.site-inline-edit-modal[hidden] {
  display: none;
}

.site-inline-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 22px;
}

.site-inline-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 19, 14, 0.58);
  backdrop-filter: blur(10px);
}

.site-inline-edit-modal__card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  color: #071313;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,246,237,.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

.site-inline-edit-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #071313;
  background: rgba(27, 58, 45, 0.08);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.site-inline-edit-modal h3 {
  margin: 0 44px 8px 0;
  color: #143d2f;
  font-size: 26px;
}

.site-inline-edit-modal__help {
  margin: 0 0 18px;
  color: #5f6e66;
  line-height: 1.55;
}

.site-inline-edit-form {
  display: grid;
  gap: 14px;
}

.site-inline-edit-form label {
  display: grid;
  gap: 8px;
  color: #143d2f;
  font-size: 13px;
  font-weight: 900;
}

.site-inline-edit-form input,
.site-inline-edit-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #d8d0c0;
  border-radius: 14px;
  color: #071313;
  background: #f7f3ec;
  font: inherit;
  outline: none;
}

.site-inline-edit-form textarea {
  min-height: 130px;
  resize: vertical;
}

.site-inline-edit-form input:focus,
.site-inline-edit-form textarea:focus {
  border-color: #2c5940;
  box-shadow: 0 0 0 3px rgba(44, 89, 64, 0.12);
}

.site-inline-edit-current-image {
  display: none;
  max-width: 180px;
  border-radius: 18px;
  border: 1px solid #d8d0c0;
}

.site-inline-edit-current-image[src] {
  display: block;
}

.site-inline-edit-error {
  display: none;
  padding: 10px 12px;
  border-radius: 14px;
  color: #8b1e12;
  background: #ffe5dd;
  font-weight: 800;
}

.site-inline-edit-error:not(:empty) {
  display: block;
}

.site-inline-edit-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Public luxury redesign */
body.public-luxury {
  --lux-ink: #071313;
  --lux-green: #10372c;
  --lux-brand: #f24418;
  --lux-gold: #c67828;
  --lux-gold-soft: #efc88b;
  --lux-cream: #f4eddf;
  --lux-cream-2: #ede4d3;
  --lux-paper: #fffaf1;
  --lux-muted: #66746d;
  --lux-line: rgba(23, 63, 49, .15);
  --lux-shadow: 0 26px 80px rgba(35, 43, 31, .11);
  color: var(--lux-ink);
  background:
    radial-gradient(circle at 84% 8%, rgba(242, 68, 24, .11), transparent 27%),
    radial-gradient(circle at 18% 16%, rgba(23, 63, 49, .08), transparent 30%),
    linear-gradient(180deg, #f8f1e6 0%, var(--lux-cream) 48%, #efe5d4 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.public-luxury main {
  flex: 1 0 auto;
  display: block;
}

body.public-luxury .site-footer {
  margin-top: auto;
}

body.public-luxury .site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1200px, calc(100% - 48px));
  min-height: 76px;
  margin: 14px auto 0;
  padding: 12px 16px 12px 18px;
  border: 1px solid rgba(23, 63, 49, .12);
  border-radius: 999px;
  background: rgba(255, 250, 241, .76);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 70px rgba(18, 57, 45, .08);
}

body.public-luxury .brand {
  gap: 13px;
  color: var(--lux-ink);
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.04em;
}

body.public-luxury .brand img {
  width: 58px;
  height: 58px;
  padding: 0;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.public-luxury .site-header nav {
  gap: 4px;
}

body.public-luxury .site-header nav a:not(.button) {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  color: #4f5f57;
  font-size: 14px;
  font-weight: 850;
}

body.public-luxury .site-header nav a:not(.button):hover {
  color: var(--lux-green);
  background: rgba(23, 63, 49, .07);
  transform: none;
}

body.public-luxury .button,
body.public-luxury .dc-btn,
body.public-luxury .dc-btn-primary,
body.public-luxury button.button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: #111812;
  background: linear-gradient(135deg, #ff9b2f 0%, #ffd16f 52%, #fff0bd 100%);
  box-shadow: 0 22px 48px rgba(242, 126, 26, .24), 0 0 0 1px rgba(255, 255, 255, .46) inset;
  font-weight: 950;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

body.public-luxury .button:hover,
body.public-luxury .dc-btn:hover,
body.public-luxury .dc-btn-primary:hover,
body.public-luxury button.button:hover {
  color: #111812;
  background: linear-gradient(135deg, #ff6f1a 0%, #ffc35f 50%, #ffe7a3 100%);
  box-shadow: 0 30px 70px rgba(242, 68, 24, .34), 0 0 0 4px rgba(242, 68, 24, .10);
  transform: translateY(-3px) scale(1.015);
}

body.public-luxury .logout-button,
body.public-luxury .dc-btn-cab,
body.public-luxury .link-button,
body.public-luxury .seo-back {
  color: var(--lux-green);
  background: rgba(255, 250, 241, .54);
  border: 1px solid rgba(242, 68, 24, .24);
  box-shadow: 0 14px 34px rgba(18, 57, 45, .05);
}

body.public-luxury .logout-button:hover,
body.public-luxury .dc-btn-cab:hover,
body.public-luxury .link-button:hover,
body.public-luxury .seo-back:hover {
  color: #111812;
  background: linear-gradient(135deg, rgba(255, 155, 47, .16), rgba(255, 240, 189, .60));
  border-color: rgba(242, 68, 24, .42);
  box-shadow: 0 22px 48px rgba(242, 126, 26, .12), 0 0 0 4px rgba(242, 68, 24, .06);
}

body.public-luxury .eyebrow {
  color: var(--lux-brand);
}

body.public-luxury .seo-page,
body.public-luxury .legal-page {
  padding: 72px max(6vw, calc((100vw - 1180px) / 2)) 96px;
}

body.public-luxury .seo-hero__content,
body.public-luxury .seo-panel,
body.public-luxury .seo-card,
body.public-luxury .seo-faq,
body.public-luxury .seo-price-card,
body.public-luxury .legal-document,
body.public-luxury .auth-card {
  border: 1px solid rgba(216, 208, 192, .80);
  border-radius: 30px;
  background: rgba(255, 250, 241, .74);
  box-shadow: 0 18px 55px rgba(27, 58, 45, .08);
}

body.public-luxury .seo-hero__aside {
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(242, 68, 24, .20), transparent 34%),
    var(--lux-green);
  box-shadow: 0 30px 90px rgba(16, 55, 44, .22);
}

body.public-luxury .seo-hero__aside h2,
body.public-luxury .seo-price-card--popular h2,
body.public-luxury .seo-price-card--popular .seo-price-card__sum {
  color: var(--lux-gold-soft);
}

body.public-luxury .seo-hero h1,
body.public-luxury .legal-page__head h1,
body.public-luxury .auth-card h1 {
  color: var(--lux-ink);
  letter-spacing: -.06em;
}

body.public-luxury .seo-card h2,
body.public-luxury .seo-faq h2,
body.public-luxury .seo-price-card h2,
body.public-luxury .seo-panel h2,
body.public-luxury .legal-document h2,
body.public-luxury .auth-card label {
  color: var(--lux-green);
}

body.public-luxury .seo-price-card--popular {
  background:
    radial-gradient(circle at 90% 0%, rgba(242, 68, 24, .20), transparent 34%),
    var(--lux-green);
  border-color: rgba(16, 55, 44, .9);
}

body.public-luxury .seo-price-card__tag {
  color: #fff;
  background: var(--lux-brand);
}

body.public-luxury .site-footer {
  color: rgba(255, 255, 255, .68);
  background: #111812;
}

body.public-luxury .site-footer strong {
  color: var(--lux-gold-soft);
}

body.public-luxury .site-footer a:hover {
  color: var(--lux-gold-soft);
}

body.public-luxury .auth-card {
  width: min(520px, calc(100% - 32px));
}

body.public-luxury .auth-card input,
body.public-luxury .about-edit-panel input,
body.public-luxury .about-edit-panel textarea,
body.public-luxury .staff-form-card input,
body.public-luxury .staff-form-card textarea,
body.public-luxury .staff-form-card select {
  border-color: rgba(216, 208, 192, .95);
  background: #f7f3ec;
}

/* Shared cabinet shell */
body.account-shell:not(.home-luxury) {
  --lux-ink: #071313;
  --lux-green: #10372c;
  --lux-brand: #f24418;
  --lux-gold-soft: #efc88b;
  --lux-cream: #f4eddf;
  --lux-paper: #fffaf1;
  --lux-muted: #66746d;
  --lux-line: rgba(23, 63, 49, .15);
  color: var(--lux-ink);
  background:
    radial-gradient(circle at 84% 8%, rgba(242, 68, 24, .10), transparent 28%),
    radial-gradient(circle at 18% 16%, rgba(23, 63, 49, .08), transparent 30%),
    linear-gradient(180deg, #f8f1e6 0%, var(--lux-cream) 52%, #efe5d4 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.account-shell:not(.home-luxury) main {
  flex: 1 0 auto;
  display: block;
}

body.account-shell:not(.home-luxury) .site-footer {
  margin-top: auto;
  color: rgba(255, 255, 255, .68);
  background: #111812;
}

body.account-shell:not(.home-luxury) .site-footer strong {
  color: var(--lux-gold-soft);
}

body.account-shell:not(.home-luxury) .site-footer a:hover {
  color: var(--lux-gold-soft);
}

body.account-shell:not(.home-luxury) .site-header {
  position: sticky;
  top: 14px;
  width: min(1200px, calc(100% - 48px));
  min-height: 76px;
  margin: 14px auto 0;
  padding: 12px 16px 12px 18px;
  border: 1px solid rgba(23, 63, 49, .12);
  border-radius: 999px;
  background: rgba(255, 250, 241, .76);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 70px rgba(18, 57, 45, .08);
}

body.account-shell:not(.home-luxury) .brand {
  gap: 13px;
  color: var(--lux-ink);
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.04em;
}

body.account-shell:not(.home-luxury) .brand img {
  width: 58px;
  height: 58px;
  padding: 0;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.account-shell:not(.home-luxury) .site-header nav {
  gap: 4px;
}

body.account-shell:not(.home-luxury) .site-header nav a:not(.button) {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  color: #4f5f57;
  font-size: 14px;
  font-weight: 850;
}

body.account-shell:not(.home-luxury) .site-header nav a:not(.button):hover {
  color: var(--lux-green);
  background: rgba(23, 63, 49, .07);
  transform: none;
}

body.account-shell:not(.home-luxury) .button,
body.account-shell:not(.home-luxury) button.button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: #111812;
  background: linear-gradient(135deg, #ff9b2f 0%, #ffd16f 52%, #fff0bd 100%);
  box-shadow: 0 22px 48px rgba(242, 126, 26, .24), 0 0 0 1px rgba(255, 255, 255, .46) inset;
  font-weight: 950;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

body.account-shell:not(.home-luxury) .button:hover,
body.account-shell:not(.home-luxury) button.button:hover {
  color: #111812;
  background: linear-gradient(135deg, #ff6f1a 0%, #ffc35f 50%, #ffe7a3 100%);
  box-shadow: 0 30px 70px rgba(242, 68, 24, .34), 0 0 0 4px rgba(242, 68, 24, .10);
  transform: translateY(-3px) scale(1.015);
}

body.account-shell:not(.home-luxury) .logout-button,
body.account-shell:not(.home-luxury) .link-button {
  color: var(--lux-green);
  background: rgba(255, 250, 241, .54);
  border: 1px solid rgba(242, 68, 24, .24);
  box-shadow: 0 14px 34px rgba(18, 57, 45, .05);
}

body.account-shell:not(.home-luxury) .logout-button:hover,
body.account-shell:not(.home-luxury) .link-button:hover {
  color: #111812;
  background: linear-gradient(135deg, rgba(255, 155, 47, .16), rgba(255, 240, 189, .60));
  border-color: rgba(242, 68, 24, .42);
  box-shadow: 0 22px 48px rgba(242, 126, 26, .12), 0 0 0 4px rgba(242, 68, 24, .06);
}

@media (max-width: 900px) {
  body.public-luxury .site-header {
    top: 10px;
    align-items: flex-start;
    width: min(100% - 28px, 1200px);
    border-radius: 28px;
  }
  body.public-luxury .brand img {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }
  body.account-shell:not(.home-luxury) .site-header {
    top: 10px;
    align-items: flex-start;
    width: min(100% - 28px, 1200px);
    border-radius: 28px;
  }
  body.account-shell:not(.home-luxury) .brand img {
    width: 46px;
    height: 46px;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 10px max(9vw, calc((100vw - 1180px) / 2));
  background: #2f5029;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px rgba(13, 38, 24, 0.18);
  will-change: transform;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}

.site-header.site-header--hidden {
  pointer-events: none;
  transform: translateY(calc(-100% - 32px));
}

.scroll-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  color: #111812;
  background: linear-gradient(135deg, #ff9b2f 0%, #ffd16f 58%, #fff0bd 100%);
  box-shadow: 0 18px 42px rgba(35, 43, 31, .20), 0 0 0 1px rgba(242, 68, 24, .08);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(14px) scale(.88);
  transition:
    opacity .2s ease,
    visibility .2s ease,
    transform .2s cubic-bezier(.22, 1, .36, 1),
    box-shadow .2s ease;
}

.scroll-to-top svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.scroll-to-top--visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  box-shadow: 0 24px 52px rgba(242, 126, 26, .30), 0 0 0 5px rgba(242, 68, 24, .08);
  transform: translateY(-3px) scale(1.04);
}

.scroll-to-top:focus-visible {
  outline: 3px solid rgba(13, 79, 54, .46);
  outline-offset: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffad3b;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}
.brand img { width: 54px; height: 54px; object-fit: contain; }

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 700;
}
nav a, .small-link {
  color: #fffaf3;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
nav a:hover {
  color: #ffad3b;
  transform: translateY(-1px);
}

.site-footer {
  padding: 46px max(9vw, calc((100vw - 1180px) / 2));
  color: rgba(255, 250, 243, .72);
  background: #111812;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: #ffad3b;
  font-size: 20px;
}
.site-footer h2 {
  margin: 0 0 12px;
  color: #fffaf3;
  font-size: 15px;
}
.site-footer p {
  margin: 0;
  max-width: 360px;
  line-height: 1.55;
}
.site-footer a {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: rgba(255, 250, 243, .82);
  text-decoration: none;
}
.site-footer a:hover {
  color: #ffad3b;
}

.footer-social-groups {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-group {
  display: grid;
  gap: 6px;
}

.footer-social-title {
  color: rgba(255, 250, 243, .9);
  font-weight: 900;
  font-size: 14px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 0;
}

.site-footer .social-link,
.dc-footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px !important;
  height: 24px !important;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #fffaf3;
  background: transparent !important;
  text-decoration: none;
  box-shadow: none;
  transition: transform .18s ease, filter .18s ease;
}

.social-link__icon {
  width: 22px !important;
  height: 22px !important;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
}

.social-link__icon--max text {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
}

.social-link__icon--max {
  width: 34px !important;
}

.site-footer .social-link--max,
.dc-footer .social-link--max {
  width: 34px !important;
}

.site-footer .social-link:hover,
.dc-footer .social-link:hover {
  filter: brightness(1.12) saturate(1.08);
  transform: translateY(-2px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 178px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  color: #24411f;
  background: #ffad3b;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 173, 59, 0.18);
}
.button:hover {
  color: #fffaf3;
  background: var(--orange);
  transform: translateY(-1px);
}
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-height: 680px;
  padding: 80px 9vw;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
}
.hero p {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.6;
}
.hero-card {
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 24px 70px rgba(13, 79, 54, 0.14);
}
.hero-card img { width: 100%; display: block; }

.eyebrow {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.actions { display: flex; gap: 18px; align-items: center; margin-top: 32px; }

.section {
  padding: 80px 9vw;
}
.section h2, .dashboard h1 {
  margin: 0 0 28px;
  font-size: clamp(34px, 4vw, 58px);
}
.cards, .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card, .auth-card, .balance-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(13, 79, 54, 0.08);
}
.dashboard-grid .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 184px;
}
.dashboard-grid .card p {
  margin-bottom: 24px;
}
.dashboard-grid .card > .button {
  margin-top: auto;
}
.dashboard-grid .card-no-bottom-action {
  min-height: 184px;
}
.card h3 { margin-top: 0; color: var(--green); font-size: 26px; }
.card p, .muted { color: var(--muted); line-height: 1.55; }

.request {
  background: var(--green);
  color: white;
}
.request p { color: rgba(255,255,255,0.78); }

.auth-card {
  width: min(460px, calc(100% - 32px));
  margin: 90px auto;
}
.auth-card h1 { text-align: center; }
.auth-card label { display: block; margin-bottom: 8px; color: var(--green); font-weight: 700; }
.auth-card input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8cfc4;
  border-radius: 12px;
  background: #fffaf3;
}
.auth-card .button { width: 100%; margin: 14px 0; }
.legal {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.legal a { color: var(--green); }

.legal-page {
  padding: 70px 9vw 90px;
}
.legal-page__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.legal-page__head h1 {
  margin: 10px 0 0;
  max-width: 820px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
}
.legal-document {
  max-width: 980px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(13, 79, 54, 0.08);
}
.legal-document h2 {
  margin: 28px 0 10px;
  color: var(--green);
  font-size: 24px;
}
.legal-document p {
  margin: 0 0 14px;
  color: #48534d;
  font-size: 16px;
  line-height: 1.7;
}
.legal-document a {
  color: var(--green);
  font-weight: 800;
}

.seo-page {
  padding: 72px max(6vw, calc((100vw - 1180px) / 2)) 96px;
}
.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 36px;
  align-items: stretch;
  margin-bottom: 28px;
}
.seo-hero__content,
.seo-panel,
.seo-card,
.seo-faq,
.seo-price-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 22px 70px rgba(13, 79, 54, .08);
}
.seo-hero__content {
  padding: 44px;
}
.seo-hero h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
}
.seo-hero p,
.seo-panel p,
.seo-card p,
.seo-faq p,
.seo-price-card p {
  color: var(--muted);
  line-height: 1.65;
}
.seo-hero__aside {
  padding: 34px;
  border-radius: 22px;
  color: #fffaf3;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow: 0 24px 70px rgba(13, 79, 54, .18);
}
.seo-hero__aside h2 {
  margin: 0 0 18px;
  color: #ffad3b;
  font-size: 24px;
}
.seo-hero__aside ul {
  margin: 0 0 28px;
  padding-left: 20px;
}
.seo-hero__aside li + li { margin-top: 10px; }
.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.seo-card,
.seo-faq,
.seo-price-card {
  padding: 26px;
}
.seo-card h2,
.seo-faq h2,
.seo-price-card h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 22px;
}
.seo-panel {
  margin: 28px 0;
  padding: 34px;
}
.seo-panel h2 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 30px;
}
.seo-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seo-steps li {
  padding: 16px 18px;
  border-radius: 16px;
  background: #fffaf3;
  color: var(--text);
  font-weight: 700;
}
.seo-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.seo-price-card {
  position: relative;
}
.seo-price-card--popular {
  color: #fffaf3;
  background: var(--green);
  border-color: var(--green);
}
.seo-price-card--popular h2,
.seo-price-card--popular .seo-price-card__sum { color: #ffad3b; }
.seo-price-card--popular p { color: rgba(255, 250, 243, .74); }
.seo-price-card__sum {
  display: block;
  margin: 16px 0 6px;
  color: var(--green);
  font-size: 36px;
  font-weight: 900;
}
.seo-price-card__tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1d6;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}
.seo-price-card--popular .seo-price-card__tag {
  background: #ffad3b;
}
.seo-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.seo-related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(13, 79, 54, .14);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 250, 243, .72);
  font-weight: 900;
}
.seo-related-links a:hover {
  color: #111812;
  border-color: rgba(255, 173, 59, .44);
  background: linear-gradient(135deg, #ffad3b, #ffe89a);
}
.seo-back {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}
.about-edit-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 0 0 18px;
}
.about-edit-switch span {
  color: var(--green);
  font-weight: 900;
}
.about-edit-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 18px 50px rgba(13, 79, 54, .08);
}
.about-edit-panel label {
  display: grid;
  gap: 8px;
}
.about-edit-panel label:nth-child(3) {
  grid-column: 1 / -1;
}
.page-edit-panel h2,
.page-edit-panel label {
  grid-column: 1 / -1;
}
.page-edit-panel h2 {
  margin: 6px 0 0;
  color: var(--green);
  font-size: 22px;
}
.about-edit-panel span {
  color: var(--green);
  font-weight: 900;
}
.about-edit-panel input,
.about-edit-panel textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8cfc4;
  border-radius: 12px;
  color: var(--text);
  background: #fffaf3;
  font: inherit;
}
.about-edit-panel button {
  width: fit-content;
}
.about-hero-card {
  position: relative;
  overflow: hidden;
}
.about-hero-image {
  overflow: hidden;
  margin-top: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.about-hero-image img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.about-teachers {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}
.about-teachers__head {
  margin-bottom: 24px;
}
.about-teachers__head .eyebrow {
  color: #ffcf85;
}
.teacher-carousel {
  position: relative;
  min-height: 390px;
}
.teacher-slide {
  display: grid;
  gap: 18px;
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  transition: opacity .36s ease, transform .36s ease;
}
.teacher-carousel .teacher-slide {
  position: absolute;
  inset: 0 0 auto;
}
.teacher-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.teacher-slide__photo,
.teacher-slide__avatar {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  border-radius: 18px;
  border: 1px solid rgba(255, 250, 243, .22);
  object-fit: cover;
  background: rgba(255, 250, 243, .12);
}
.teacher-slide__avatar {
  display: grid;
  place-items: center;
  color: #ffad3b;
  font-size: 96px;
  font-weight: 900;
}
.teacher-slide__body h3 {
  margin: 0;
  color: #fffaf3;
  font-size: 32px;
}
.teacher-slide__body p {
  color: rgba(255, 250, 243, .78);
}
.teacher-slide__role {
  margin: 8px 0 10px;
  color: #ffcf85 !important;
  font-weight: 900;
}
.teacher-carousel__dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
}
.teacher-carousel__dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 243, .3);
  cursor: pointer;
}
.teacher-carousel__dots button.is-active {
  background: #ffad3b;
}

.dashboard {
  padding: 70px 9vw;
}
.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.dashboard-head form {
  flex: 0 0 auto;
}
.logout-button {
  min-width: 230px;
  color: #fffaf3;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(13, 79, 54, 0.16);
}
.logout-button:hover {
  background: var(--orange);
}
.balance-card {
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.balance-card span { color: var(--muted); }
.balance-card strong { color: var(--green); font-size: 36px; }
.balance-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}
.balance-card-actions {
  gap: 24px;
}
.balance-topup:disabled {
  cursor: default;
  opacity: 0.86;
}
.dashboard-alert {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 900;
}
.dashboard-alert-success {
  color: #0d4f36;
  background: #e2f7e7;
}
.dashboard-alert-error {
  color: #8f2f1e;
  background: #fff0ea;
}
.payment-card {
  display: grid;
  gap: 22px;
  align-items: stretch;
  padding: 28px;
}
.payment-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.payment-card__head strong {
  display: block;
  margin-top: 4px;
}
.payment-form {
  display: grid;
  gap: 18px;
}
.payment-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.payment-custom-row {
  display: flex;
  justify-content: center;
  margin-top: -6px;
}
.payment-custom-row .payment-amount-card {
  width: min(360px, 100%);
}
.payment-amount-card {
  position: relative;
  cursor: pointer;
}
.payment-amount-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-amount-card .payment-custom-inline-input {
  position: static;
  width: 100%;
  min-height: 70px;
  padding: 0 14px;
  border: 1px solid rgba(255, 155, 47, 0.72);
  border-radius: 18px;
  color: var(--green);
  background: linear-gradient(135deg, rgba(255, 155, 47, 0.16), rgba(255, 232, 154, 0.28));
  box-shadow: 0 16px 34px rgba(255, 171, 55, 0.16);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  opacity: 1;
  pointer-events: auto;
}
.payment-amount-card .payment-custom-inline-input:focus {
  outline: 2px solid rgba(255, 155, 47, 0.32);
  outline-offset: 2px;
}
.payment-amount-card .payment-custom-inline-input::-webkit-outer-spin-button,
.payment-amount-card .payment-custom-inline-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.payment-amount-card .payment-custom-inline-input[type="number"] {
  -moz-appearance: textfield;
}
.payment-amount-card .payment-custom-inline-input[hidden] {
  display: none;
}
.payment-amount-card span {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 79, 54, 0.13);
  border-radius: 18px;
  color: var(--green);
  background: rgba(255, 250, 243, 0.78);
  font-size: 22px;
  font-weight: 900;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.payment-amount-card input:checked + span,
.payment-amount-card:hover span {
  border-color: rgba(255, 155, 47, 0.72);
  background: linear-gradient(135deg, rgba(255, 155, 47, 0.16), rgba(255, 232, 154, 0.28));
  box-shadow: 0 16px 34px rgba(255, 171, 55, 0.16);
  transform: translateY(-1px);
}
.payment-custom-amount {
  display: grid;
  gap: 8px;
  max-width: 340px;
  color: var(--green);
  font-weight: 900;
}
.payment-custom-amount input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(13, 79, 54, 0.14);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.82);
  font: inherit;
  font-weight: 800;
}
.payment-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.payment-result-grid > div {
  padding: 18px;
  border: 1px solid rgba(13, 79, 54, 0.12);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.78);
}
.payment-result-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.payment-actions .button {
  min-width: 210px;
  justify-content: center;
}
.debt-card {
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px;
  border: 1px solid #f0b4a2;
  border-radius: 18px;
  background: #fff1eb;
  box-shadow: 0 18px 50px rgba(143, 47, 30, 0.1);
}
.debt-card h2 {
  margin: 4px 0;
  color: #8f2f1e;
  font-size: 34px;
}
.debt-card p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}
.debt-card form {
  margin: 0;
}
.debt-card .button:disabled {
  cursor: default;
  opacity: 0.55;
}
.debt-card--compact {
  background: #fff7f3;
}
.debt-card-split {
  display: grid;
  align-items: stretch;
}
.debt-card-summary {
  display: grid;
  gap: 4px;
}
.debt-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.debt-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(143, 47, 30, 0.18);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.78);
}
.debt-breakdown-item > div {
  display: grid;
  gap: 4px;
}
.debt-breakdown-item strong {
  color: #8f2f1e;
  font-size: 24px;
}
.debt-breakdown-item small {
  color: var(--muted);
}
.debt-breakdown-item-group {
  border-color: rgba(32, 112, 178, 0.24);
  background: rgba(235, 247, 255, 0.82);
}
.debt-breakdown-item-group strong {
  color: #185b8f;
}
.debt-pay-all {
  display: flex;
  justify-content: flex-end;
}
.staff-debt-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.status-pill--group {
  color: #185b8f;
  background: #e8f5ff;
}
.dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.student-balance-card {
  display: block;
  padding: 24px;
}
.student-subscription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 22px;
  align-items: start;
}
.student-subscription-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.student-balance-card__top {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(13, 79, 54, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 173, 59, 0.18), transparent 42%),
    rgba(255, 250, 243, 0.86);
  box-shadow: 0 18px 42px rgba(13, 79, 54, 0.08);
}
.student-balance-card__top strong {
  display: block;
  margin-top: 4px;
  line-height: 1;
}
.student-balance-card__top .button {
  width: 100%;
  justify-content: center;
}
.topup-contact-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(39, 167, 231, 0.24);
  border-radius: 18px;
  color: var(--green);
  background: rgba(39, 167, 231, 0.08);
  font-weight: 900;
}
.topup-contact-hint[hidden] {
  display: none;
}
.topup-contact-hint .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.topup-contact-hint .social-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.subscription-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(13, 79, 54, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78);
}
.subscription-tab {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.subscription-tab.is-active {
  color: #111812;
  background: linear-gradient(135deg, #ff9b2f, #ffe89a);
  box-shadow: 0 12px 28px rgba(255, 171, 55, 0.2);
}
.subscription-panel[hidden] {
  display: none;
}
.subscription-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 16px;
  align-items: stretch;
  max-width: 760px;
}
.paused-subscriptions {
  display: grid;
  gap: 10px;
  align-content: start;
}
.subscription-column-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.subscription-mini-card,
.subscription-history-card {
  padding: 14px 16px;
  border: 1px solid rgba(13, 79, 54, 0.13);
  border-radius: 14px;
  background: rgba(255, 250, 243, 0.78);
}
.subscription-mini-card b,
.subscription-history-card b {
  display: block;
  color: var(--green);
  font-size: 18px;
}
.subscription-mini-card em,
.subscription-history-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}
.subscription-mini-card--paused {
  background: #fff7e8;
}
.current-subscription {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(13, 79, 54, 0.16);
  border-radius: 14px;
  background: #f2f8ef;
}
.current-subscription--active {
  display: grid;
  align-content: center;
  min-height: 128px;
  margin-top: 0;
  border-color: rgba(13, 79, 54, 0.24);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 173, 59, 0.18), transparent 35%),
    #eef8ee;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}
.current-subscription span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.current-subscription b {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 20px;
}
.current-subscription em {
  margin-top: 4px;
}
.subscription-history-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.subscription-history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.subscription-history-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(13, 79, 54, 0.08);
  font-size: 12px;
  font-weight: 900;
}
.subscription-history-card--active span {
  color: #fffaf3;
  background: var(--green);
}
.subscription-history-card--paused span {
  color: #6d4710;
  background: #ffe4a8;
}
.subscription-history-card--finished {
  opacity: 0.75;
}
.balance-history-card--income {
  border-color: rgba(13, 79, 54, 0.18);
  background: #eef8ee;
}
.balance-history-card--income span {
  color: #fffaf3;
  background: var(--green);
}
.balance-history-card--income strong {
  color: var(--green);
}
.balance-history-card--expense {
  border-color: rgba(255, 173, 59, 0.28);
  background: #fff7e8;
}
.balance-history-card--expense span {
  color: #6d4710;
  background: #ffe4a8;
}
.balance-history-card--expense strong {
  color: #8f4a18;
}
.subscription-history-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}
.subscription-history-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 16px;
  text-align: right;
}
.subscription-shop {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(13, 79, 54, 0.08);
}
.subscription-shop-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.subscription-shop-head h2 {
  margin: 4px 0 0;
  color: var(--green);
  font-size: 34px;
}
.subscription-shop-head span {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.5;
}
.subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.subscription-confirm-modal[hidden] {
  display: none;
}
.subscription-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.subscription-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 13, 0.52);
  backdrop-filter: blur(7px);
}
.subscription-confirm-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid rgba(13, 79, 54, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 173, 59, 0.18), transparent 42%),
    #fffaf3;
  box-shadow: 0 28px 80px rgba(8, 19, 13, 0.28);
}
.subscription-confirm-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--green);
  background: rgba(13, 79, 54, 0.08);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}
.subscription-confirm-modal h2 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.02;
}
.subscription-confirm-modal__text {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.subscription-confirm-modal__text b {
  color: var(--green);
}
.subscription-confirm-modal__list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}
.subscription-confirm-modal__list li::marker {
  color: var(--orange);
}
.subscription-confirm-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.subscription-confirm-modal__actions .button {
  min-width: 210px;
  justify-content: center;
}
.subscription-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(13, 79, 54, 0.18);
  border-radius: 16px;
  background: #fffaf3;
}
.subscription-card--popular,
.subscription-card[data-popular="1"] {
  color: #fffaf3;
  border-color: var(--green);
  background:
    linear-gradient(145deg, rgba(255, 173, 59, 0.16), transparent 42%),
    var(--green);
  box-shadow: 0 24px 58px rgba(13, 79, 54, 0.22);
}
.subscription-card--popular h3,
.subscription-card--popular p,
.subscription-card--popular strong,
.subscription-card--popular small,
.subscription-card[data-popular="1"] h3,
.subscription-card[data-popular="1"] p,
.subscription-card[data-popular="1"] strong,
.subscription-card[data-popular="1"] small {
  color: #fffaf3;
}
.subscription-card--popular p,
.subscription-card[data-popular="1"] p {
  color: rgba(255, 250, 243, 0.82);
}
.subscription-card--popular::before,
.subscription-card[data-popular="1"]::before {
  content: "Лучший выбор";
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.subscription-popular-label {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #24411f;
  background: #ffcf85;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.subscription-benefits {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.subscription-benefits li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 250, 243, 0.9);
  font-size: 14px;
  line-height: 1.35;
}
.subscription-benefits li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffad3b;
}
.subscription-card h3 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 25px;
}
.subscription-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.subscription-card strong {
  color: var(--green);
  font-size: 34px;
}
.subscription-card small {
  color: var(--text);
  font-weight: 900;
}
.subscription-card--popular h3,
.subscription-card[data-popular="1"] h3 {
  color: #fffaf3;
  font-size: 28px;
}
.subscription-card--popular p,
.subscription-card[data-popular="1"] p {
  color: rgba(255, 250, 243, 0.86);
}
.subscription-card--popular strong,
.subscription-card[data-popular="1"] strong {
  color: #ffcf85;
  font-size: 40px;
}
.subscription-card--popular small,
.subscription-card[data-popular="1"] small {
  color: #fffaf3;
}
.subscription-card form {
  margin: 0;
}
.subscription-card .button {
  width: 100%;
  justify-content: center;
}
.subscription-card .button:disabled {
  cursor: default;
  opacity: 0.72;
}
.subscription-card--popular .button,
.subscription-card--popular .button:disabled,
.subscription-card[data-popular="1"] .button,
.subscription-card[data-popular="1"] .button:disabled {
  color: #24411f;
  background: #ffad3b;
  opacity: 1;
}
.staff-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.staff-stats .balance-card {
  margin: 0;
  display: block;
}
.staff-stats .balance-card strong {
  display: block;
  margin-top: 12px;
}
.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 34px;
}
.deploy-panel {
  width: 100%;
}
.deploy-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}
.deploy-log-head h2 {
  margin: 0;
}
.deploy-log {
  overflow: auto;
  max-height: 520px;
  min-height: 220px;
  margin: 16px 0 0;
  padding: 18px;
  border-radius: 14px;
  color: #eef9f2;
  background: #102f23;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.staff-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 6px 0 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}
.button-small {
  min-width: auto;
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.inline-action-form {
  margin: 0;
}
.staff-tab {
  min-width: 140px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  color: var(--green);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}
.staff-tab.is-active {
  color: #fffaf3;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(13, 79, 54, 0.14);
}
.staff-action-badge {
  position: relative;
  gap: 10px;
}
.staff-action-badge span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fffaf3;
  background: #a13722;
  font-size: 13px;
  line-height: 1;
}
.staff-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(13, 79, 54, 0.08);
}
.staff-panel-spaced {
  margin-top: 22px;
}
.staff-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.staff-panel h2 {
  margin: 0;
  color: var(--green);
  font-size: 30px;
}
.staff-panel-note {
  margin: 8px 0 0;
  color: #a13722;
  font-weight: 900;
}
.staff-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.staff-search input,
.staff-search select {
  min-width: 280px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf3;
  font: inherit;
}
.staff-search select {
  min-width: 180px;
}
.staff-search input:focus,
.staff-search select:focus {
  outline: 3px solid rgba(255, 173, 59, 0.24);
  border-color: var(--orange);
}
.staff-table-wrap {
  overflow-x: auto;
}
.staff-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1720px;
}
.staff-table th,
.staff-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.staff-table th {
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
}
.staff-table td {
  color: var(--text);
}
.staff-table td a {
  display: inline-block;
  margin-right: 12px;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}
.status-pill {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #8f2f1e;
  background: #fff0ea;
  font-size: 13px;
  font-weight: 900;
}
.status-pill--ok {
  color: var(--green);
  background: #e2f7e7;
}
.tutor-students summary {
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}
.tutor-students div {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.earnings-button {
  box-shadow: none;
}
.earnings-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.earnings-modal-grid div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 250, 243, 0.12);
}
.earnings-modal-grid span {
  display: block;
  color: rgba(255, 250, 243, 0.72);
  font-size: 13px;
  font-weight: 800;
}
.earnings-modal-card strong {
  display: block;
  margin-top: 6px;
  color: #fffaf3;
  font-size: 28px;
}
.earnings-modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.subscriptions-table {
  min-width: 980px;
}
.staff-balance-table {
  min-width: 980px;
}
.staff-history-table {
  min-width: 1120px;
}
.money-positive {
  color: var(--green);
  font-weight: 900;
}
.money-negative {
  color: #8f2f1e;
  font-weight: 900;
}
.subscription-ending-row {
  background: #fff7f3;
}
.subscription-ending-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #8f2f1e;
  background: #fff0ea;
  font-weight: 900;
}
.subscription-free-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: #e2f7e7;
  font-weight: 900;
}
.inline-field {
  width: 100%;
  min-width: 130px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  font: inherit;
}
.inline-field:hover {
  border-color: var(--line);
  background: #fffaf3;
}
.inline-field:focus {
  outline: 3px solid rgba(255, 173, 59, 0.24);
  border-color: var(--orange);
  background: #fffaf3;
}
.inline-field--money {
  max-width: 120px;
}
.inline-field--password {
  min-width: 150px;
}
.inline-field--course {
  min-width: 135px;
}
.inline-field--status {
  min-width: 150px;
}
.staff-leads-table {
  min-width: 1260px;
}
.staff-leads-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.lead-spam-note {
  display: block;
  max-width: 520px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #8f2f1e;
  background: #fff0ea;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-line;
}
.subscription-state {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
}
.inline-check input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: var(--green);
}
.inline-field.is-saving {
  opacity: 0.58;
}
.inline-field.is-saved {
  border-color: rgba(13, 79, 54, 0.34);
}
.inline-field.is-error {
  border-color: #a13722;
  background: #fff3ee;
}
.staff-form-panel {
  width: min(920px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(13, 79, 54, 0.08);
}
.staff-form-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(13, 79, 54, 0.08);
}
.staff-form-card label {
  display: block;
  margin-bottom: 18px;
}
.staff-form-card label span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-weight: 900;
}
.staff-form-card input,
.staff-form-card textarea,
.staff-form-card select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d8cfc4;
  border-radius: 12px;
  color: var(--text);
  background: #fffaf3;
  font: inherit;
}
.staff-form-card input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin-right: 10px;
  accent-color: var(--green);
}
.staff-form-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}
.staff-form-card em {
  display: block;
  margin-top: 7px;
  color: #a13722;
  font-style: normal;
  font-weight: 800;
}
.staff-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.staff-checkbox-label span {
  margin: 0 !important;
}
.staff-form-current-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--green);
  font-weight: 900;
}
.staff-form-current-photo img {
  width: 86px;
  height: 86px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.staff-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.staff-form-actions a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}
.staff-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.staff-form label {
  display: block;
}
.staff-form label span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-weight: 900;
}
.staff-form input,
.staff-form select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d8cfc4;
  border-radius: 12px;
  color: var(--text);
  background: #fffaf3;
  font: inherit;
}
.staff-form input:focus,
.staff-form select:focus {
  outline: 3px solid rgba(255, 173, 59, 0.28);
  border-color: var(--orange);
}
.staff-form-wide,
.staff-form-actions,
.form-errors {
  grid-column: 1 / -1;
}
.staff-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.staff-form ul.errorlist {
  margin: 8px 0 0;
  padding: 0;
  color: #a13722;
  font-size: 14px;
  list-style: none;
}
.schedule-page {
  background: var(--paper);
}
.schedule-hint {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}
.schedule-board {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(13, 79, 54, 0.08);
}
.schedule-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.schedule-board h2 {
  margin: 0;
  color: var(--green);
  font-size: 28px;
}
.schedule-note {
  color: var(--muted);
  font-weight: 800;
}
.week-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(13, 79, 54, 0.14);
  border-radius: 999px;
  background: #fffaf3;
}
.week-switcher a {
  min-width: 86px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fffaf3;
  background: var(--green);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.week-switcher a:hover {
  background: var(--orange);
}
.week-switcher span {
  min-width: 178px;
  color: var(--green);
  font-weight: 900;
  text-align: center;
}
.schedule-table-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}
.schedule-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 8px;
}
.schedule-table th {
  color: var(--green);
  font-size: 14px;
  text-align: center;
}
.schedule-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px;
  border-radius: 12px;
  background: #fffaf3;
}
.schedule-table thead th span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}
.schedule-table tbody th {
  width: 76px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 250, 243, 0.8);
  vertical-align: middle;
}
.schedule-table td {
  width: 12.5%;
  min-width: 118px;
  vertical-align: top;
}
.slot-cell {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.slot-cell span {
  font-weight: 900;
}
.slot-cell em {
  font-style: normal;
  line-height: 1.25;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.slot-card {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  color: var(--text);
  background: #fffaf3;
}
.slot-card strong {
  color: var(--green);
}
.slot-card span {
  font-weight: 900;
}
.slot-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}
.slot-button {
  width: 100%;
  font: inherit;
  cursor: pointer;
}
.slot-button:hover {
  transform: translateY(-1px);
}
.slot-closed {
  border-color: rgba(161, 55, 34, 0.3);
  background: #fff0ea;
}
.slot-closed strong,
.slot-closed span {
  color: #8f2f1e;
}
.slot-open {
  border-color: rgba(11, 125, 76, 0.4);
  background: #e2f7e7;
  box-shadow: inset 0 0 0 1px rgba(11, 125, 76, 0.08);
}
.slot-open strong,
.slot-open span {
  color: var(--green);
}
.slot-booked {
  border-color: rgba(48, 69, 88, 0.24);
  background: #eef1f4;
}
.slot-booked strong,
.slot-booked span {
  color: #304558;
}
.slot-cell.slot-open {
  background: #d7f4df;
}
.slot-cell.slot-open em {
  color: #0a6d43;
  font-weight: 800;
}
.slot-cell.slot-closed {
  background: #fff0ea;
}
.slot-cell.slot-booked {
  background: #eef1f4;
}
.slot-button:disabled {
  cursor: default;
  opacity: 0.82;
}
.slot-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.slot-actions form {
  margin: 0;
}
.slot-action,
.lesson-cancel {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fffaf3;
  background: var(--green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.slot-action:hover,
.lesson-cancel:hover {
  background: var(--orange);
}
.slot-action-secondary {
  color: var(--green);
  background: rgba(255, 171, 55, 0.35);
}
.lesson-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.lesson-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(13, 79, 54, 0.18);
  border-radius: 14px;
  background: #fffaf3;
}
.lesson-card div {
  display: grid;
  gap: 2px;
}
.lesson-card strong {
  color: var(--green);
  font-size: 15px;
}
.lesson-card b {
  color: var(--text);
  font-size: 22px;
}
.lesson-card span {
  color: var(--muted);
}
.lesson-card form {
  flex: 0 0 98px;
  margin: 0;
}
.lesson-cancel {
  min-height: 34px;
  color: #8f2f1e;
  background: #fff0ea;
}
.lesson-lock {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 800;
}
.schedule-final-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 171, 55, 0.16), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(255, 77, 28, 0.11), transparent 34%),
    var(--paper);
}
.schedule-final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}
.schedule-final-main {
  min-width: 0;
}
.student-schedule-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}
.student-booking-board {
  overflow: hidden;
}
.student-week-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.student-period-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid rgba(13, 79, 54, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.82);
}
.student-period-switcher a,
.student-period-switcher__disabled {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
}
.student-period-switcher a {
  color: var(--green);
  background: rgba(255, 171, 55, 0.18);
}
.student-period-switcher a:hover {
  color: var(--text);
  background: linear-gradient(135deg, var(--orange), #ffe89a);
}
.student-period-switcher__disabled {
  color: rgba(101, 117, 109, 0.52);
}
.student-period-switcher strong {
  color: var(--green);
  font-size: 15px;
  text-align: center;
}
.student-week-day {
  display: grid;
  gap: 4px;
  min-height: 106px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 250, 243, 0.78);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.student-week-day small {
  color: var(--muted);
  font-weight: 900;
}
.student-week-day strong {
  color: var(--green);
  font-size: 24px;
}
.student-week-day span {
  color: var(--muted);
  font-weight: 850;
}
.student-week-day.active {
  border-color: transparent;
  color: #fffaf3;
  background: linear-gradient(135deg, var(--green), #173d2d);
  box-shadow: 0 18px 42px rgba(13, 79, 54, 0.16);
}
.student-week-day.active small,
.student-week-day.active span {
  color: rgba(255, 250, 243, 0.74);
}
.student-week-day.active strong {
  color: #ffe89a;
}
.student-day-dots {
  display: flex;
  gap: 5px;
  min-height: 8px;
  margin-top: 4px;
  font-style: normal;
}
.student-day-dots em {
  width: 18px;
  height: 7px;
  border-radius: 999px;
  background: #8dd0a1;
}
.student-week-day.active .student-day-dots em {
  background: #a9dfbd;
}
.student-day-panel[hidden] {
  display: none;
}
.student-day-panel h3 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 24px;
}
.student-slot-timeline {
  display: grid;
  gap: 10px;
}
.student-timeline-slot {
  display: grid;
  grid-template-columns: minmax(130px, auto) 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 125, 76, 0.34);
  border-radius: 18px;
  color: var(--text);
  background: #e2f7e7;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.student-timeline-slot:hover,
.student-timeline-slot.is-selected {
  transform: translateY(-2px);
  border-color: rgba(255, 171, 55, 0.72);
  box-shadow: 0 16px 30px rgba(13, 79, 54, 0.12);
}
.student-slot-time {
  color: var(--green);
  font-size: 19px;
  font-weight: 950;
}
.student-slot-kind {
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  color: #b75012;
  background: rgba(255, 171, 55, 0.18);
  font-weight: 950;
}
.student-slot-kind.regular {
  color: var(--green);
  background: rgba(13, 79, 54, 0.12);
}
.student-slot-action {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, var(--orange), #ffe89a);
  font-weight: 950;
}
.student-empty-day {
  padding: 20px;
  border-radius: 18px;
  color: #624b20;
  background: rgba(255, 171, 55, 0.12);
  font-weight: 850;
  line-height: 1.55;
}
.student-schedule-side {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}
.student-schedule-side .schedule-side-panel {
  position: static;
}
.student-slot-legend {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.5;
}
.student-slot-legend b {
  color: var(--green);
}
.student-upcoming-lessons {
  grid-template-columns: 1fr;
}
.student-upcoming-lessons .lesson-card[hidden] {
  display: none;
}
.student-lesson-pager {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.student-pager-button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 171, 55, 0.38);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 250, 243, 0.8);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
.student-pager-button.active {
  border-color: transparent;
  color: var(--text);
  background: linear-gradient(135deg, var(--orange), #ffe89a);
}
.schedule-side-panel {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(13, 79, 54, 0.12);
  border-radius: 28px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 24px 70px rgba(13, 79, 54, 0.12);
}
.schedule-side-panel h2 {
  margin: 0;
  color: var(--green);
  font-size: 28px;
}
.schedule-side-panel strong {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text);
  background: #ffe89a;
}
.schedule-side-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.schedule-side-actions {
  display: grid;
  gap: 10px;
}
.schedule-side-actions--stack {
  gap: 12px;
}
.schedule-side-actions[hidden] {
  display: none;
}
.schedule-side-actions form {
  margin: 0;
}
.schedule-action-field {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}
.schedule-action-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(13, 79, 54, 0.16);
  border-radius: 14px;
  color: var(--text);
  background: #fffaf3;
  font: inherit;
  font-weight: 800;
}
.schedule-action-field select:focus {
  outline: 3px solid rgba(255, 173, 59, 0.24);
  border-color: var(--orange);
}
.schedule-side-actions button,
.schedule-mini-action {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, var(--orange), #ffe89a);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  text-align: center;
}
.schedule-side-actions button:disabled {
  cursor: default;
  opacity: 0.58;
}
.schedule-side-actions .booking-month-button {
  color: var(--green);
  background: rgba(13, 79, 54, 0.08);
}
.schedule-selectable,
.tutor-slot-trigger,
.staff-slot-trigger {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.schedule-selectable:hover,
.schedule-selectable.is-selected,
.tutor-slot-trigger:hover,
.tutor-slot-trigger.is-selected,
.staff-slot-trigger:hover,
.staff-slot-trigger.is-selected {
  transform: translateY(-2px);
  border-color: rgba(255, 171, 55, 0.72);
  box-shadow: 0 16px 30px rgba(13, 79, 54, 0.12);
}
.schedule-final-list .lesson-card {
  width: 100%;
  border: 1px solid rgba(13, 79, 54, 0.18);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.schedule-mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
}
.booking-modal[hidden] {
  display: none;
}
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: auto;
}
.booking-modal-card {
  position: absolute;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 250, 243, 0.34);
  border-radius: 18px;
  color: #fffaf3;
  background: #0d4f36;
  box-shadow: 0 22px 60px rgba(13, 79, 54, 0.28);
  pointer-events: auto;
}
.booking-modal-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 28px;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(255, 250, 243, 0.34);
  border-top: 1px solid rgba(255, 250, 243, 0.34);
  background: #0d4f36;
  transform: rotate(45deg);
}
.booking-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #fffaf3;
  background: rgba(255, 250, 243, 0.16);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.booking-modal-card .eyebrow {
  color: #ffb347;
}
.booking-modal-card h2 {
  margin: 8px 0 8px;
  color: #fffaf3;
  font-size: 25px;
  line-height: 1.12;
}
.booking-modal-card p[data-booking-details] {
  margin: 0 0 22px;
  color: rgba(255, 250, 243, 0.78);
}
.booking-warning {
  margin: -8px 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #8f2f1e;
  background: #fff0ea;
  font-weight: 900;
  line-height: 1.35;
}
.booking-modal-actions {
  display: grid;
  gap: 10px;
}
.booking-modal-actions[hidden] {
  display: none;
}
.booking-modal-actions form {
  margin: 0;
}
.booking-modal-actions .button {
  width: 100%;
  justify-content: center;
  background: #ffad3b;
}
.booking-month-button {
  color: #fffaf3;
  background: rgba(255, 250, 243, 0.16) !important;
}
.booking-modal-actions .button:disabled {
  cursor: default;
  opacity: 0.48;
}
.tutor-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 28px;
}
.tutor-money-grid .balance-card {
  margin: 0;
}
.tutor-money-grid form {
  margin: 0;
}
.tutor-student-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.tutor-student-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(13, 79, 54, 0.14);
  border-radius: 12px;
  color: var(--text);
  background: #fffaf3;
  text-decoration: none;
}
.tutor-student-list a:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 28px rgba(13, 79, 54, 0.08);
  transform: translateY(-1px);
}
.tutor-student-list strong {
  color: var(--green);
}
.tutor-student-list span {
  color: var(--muted);
  font-size: 14px;
}
.tutor-student-main {
  display: grid;
  gap: 3px;
}
.tutor-student-list em {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: #e2f7e7;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}
.tutor-students-panel {
  margin-top: 24px;
}
.tutor-students-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.tutor-student-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(13, 79, 54, 0.14);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 250, 243, 0.9);
  text-decoration: none;
  transition: 0.2s ease;
}
.tutor-student-card:hover {
  border-color: var(--orange);
  box-shadow: 0 16px 34px rgba(13, 79, 54, 0.1);
  transform: translateY(-2px);
}
.tutor-student-card strong {
  color: var(--green);
}
.tutor-student-card span span {
  color: var(--muted);
  font-size: 14px;
}
.tutor-student-card em {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: #e2f7e7;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}
.group-create-panel,
.group-lessons-panel,
.danger-zone {
  margin-top: 24px;
}
.group-create-form {
  grid-template-columns: 1.2fr 1.4fr auto;
  align-items: end;
}
.group-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.group-summary-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(13, 79, 54, 0.14);
  border-radius: 22px;
  color: var(--text);
  background: rgba(255, 250, 243, 0.9);
  text-decoration: none;
  transition: 0.2s ease;
}
.group-summary-card:hover {
  border-color: var(--orange);
  box-shadow: 0 18px 40px rgba(13, 79, 54, 0.1);
  transform: translateY(-2px);
}
.group-summary-card strong {
  color: var(--green);
  font-size: 26px;
}
.group-summary-card small,
.group-summary-card span:not(.eyebrow) {
  color: var(--muted);
}
.group-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
}
.group-member-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.group-member-row,
.group-lesson-row,
.attendance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(13, 79, 54, 0.14);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.86);
}
.group-member-row span,
.attendance-row span {
  display: grid;
  gap: 4px;
}
.group-member-row strong,
.attendance-row strong {
  color: var(--green);
}
.group-member-row small,
.attendance-row small {
  color: var(--muted);
}
.danger-link {
  color: #9b2b1f;
}
.group-lesson-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.group-lesson-row {
  color: var(--text);
  text-decoration: none;
  transition: 0.2s ease;
}
.group-lesson-row:hover {
  border-color: var(--orange);
  box-shadow: 0 14px 30px rgba(13, 79, 54, 0.08);
  transform: translateY(-1px);
}
.group-lesson-row span {
  display: grid;
  gap: 4px;
}
.group-lesson-row strong {
  color: var(--green);
}
.group-lesson-row small {
  color: var(--muted);
}
.lesson-status-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff0c7;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}
.lesson-status-done {
  background: #dff4e7;
}
.attendance-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.attendance-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.attendance-choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(13, 79, 54, 0.14);
  border-radius: 999px;
  background: #fffaf3;
  color: var(--green);
  font-weight: 900;
}
.attendance-unmarked {
  display: inline-flex !important;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: #8f2f1e;
  background: #fff0ea;
  font-size: 13px;
  font-weight: 900;
}
.attendance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.danger-zone-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.materials-grid,
.student-profile-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.material-card,
.student-profile-summary {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(13, 79, 54, 0.08);
}
.material-card span {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.material-card h2,
.student-profile-summary h2 {
  margin: 10px 0 10px;
  color: var(--green);
  font-size: 30px;
}
.material-card p,
.student-profile-summary p {
  color: var(--muted);
  line-height: 1.55;
}
.tutor-student-debt {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(161, 55, 34, 0.24);
  border-radius: 16px;
  background: #fff1eb;
}
.tutor-student-debt > span {
  color: #8f2f1e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tutor-student-debt > strong {
  color: #8f2f1e;
  font-size: 30px;
  line-height: 1.1;
}
.tutor-student-debt__breakdown {
  display: grid;
  gap: 4px;
  margin-top: 3px;
}
.tutor-student-debt__breakdown small {
  color: #76584e;
  font-weight: 800;
}
.staff-debt-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  box-shadow: none;
}
.staff-debt-form .staff-form-actions {
  grid-column: 1 / -1;
}
.material-card em {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}
.student-links-form {
  margin: 0;
}
.student-links-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf3;
  font: inherit;
  resize: vertical;
}
.profile-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(13, 79, 54, 0.08);
}
.profile-tab {
  min-width: 140px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}
.profile-tab.is-active {
  color: #fff;
  background: var(--green);
}
.homework-page .dashboard-head p {
  color: var(--muted);
}
.homework-lessons-panel,
.homework-box,
.homework-chat {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(13, 79, 54, 0.08);
}
.homework-lessons-panel {
  padding: 30px;
}
.homework-lessons-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.homework-lesson-card {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(13, 79, 54, 0.14);
  border-radius: 16px;
  color: var(--text);
  background: #fffaf3;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.homework-lesson-card:hover {
  border-color: var(--orange);
  box-shadow: 0 18px 38px rgba(13, 79, 54, 0.1);
  transform: translateY(-2px);
}
.homework-lesson-card span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.homework-lesson-card strong {
  color: var(--green);
  font-size: 22px;
}
.homework-lesson-card small {
  color: var(--muted);
  line-height: 1.45;
}
.homework-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green);
  background: #e2f7e7;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}
.homework-status-submitted {
  color: #8f5d00;
  background: #fff0c7;
}
.homework-status-checked {
  color: #214f8f;
  background: #e6f0ff;
}
.homework-status-empty {
  color: var(--muted);
  background: #eee8dd;
}
.homework-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 22px;
}
.homework-files {
  display: grid;
  gap: 18px;
  align-content: start;
}
.homework-box,
.homework-chat {
  padding: 26px;
}
.homework-box p {
  color: var(--muted);
  line-height: 1.55;
}
.homework-text-answer {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 14px;
  border: 1px solid rgba(13, 79, 54, 0.12);
  border-radius: 16px;
  background: #fffaf3;
}
.homework-text-answer strong {
  color: var(--green);
}
.homework-text-answer p {
  margin: 0;
  white-space: pre-wrap;
}
.homework-upload-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.homework-upload-form label,
.homework-message-form {
  display: grid;
  gap: 8px;
}
.homework-upload-form span {
  color: var(--green);
  font-weight: 900;
}
.homework-upload-form input,
.homework-upload-form textarea,
.homework-message-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf3;
  color: var(--text);
  font: inherit;
}
.homework-chat {
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}
.homework-chat-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.homework-chat-head h2 {
  margin: 6px 0 0;
  color: var(--green);
}
.homework-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 6px;
}
.homework-message {
  width: min(78%, 620px);
  padding: 14px 16px;
  border: 1px solid rgba(13, 79, 54, 0.12);
  border-radius: 16px;
  background: #fffaf3;
}
.homework-message-tutor {
  justify-self: start;
}
.homework-message-student {
  justify-self: end;
  background: #eaf7ef;
}
.homework-message strong {
  color: var(--green);
}
.homework-message p {
  margin: 6px 0;
  line-height: 1.5;
  white-space: pre-wrap;
}
.homework-message time {
  color: var(--muted);
  font-size: 12px;
}
.homework-voice-message {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 10px 0 6px;
}
.homework-empty-chat {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}
.homework-message-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}
.homework-message-fields {
  display: grid;
  gap: 10px;
}
.homework-message-form textarea {
  resize: vertical;
}
.homework-voice-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.homework-voice-controls .button {
  min-height: 42px;
  padding: 11px 16px;
}
.homework-mic-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffa72f, #ffe79a);
  box-shadow: 0 14px 26px rgba(255, 165, 48, 0.24);
  color: var(--green);
  cursor: pointer;
  font-size: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  touch-action: none;
}
.homework-mic-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 165, 48, 0.32);
}
.homework-mic-button.is-recording {
  background: linear-gradient(135deg, #ff4b1f, #ffb347);
  color: #fff;
  animation: voicePulse 1s infinite;
}
.homework-voice-timer {
  min-width: 58px;
  color: var(--green);
  font-weight: 900;
}
.homework-voice-upload {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 165, 48, 0.45);
  border-radius: 999px;
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}
.homework-voice-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.homework-voice-controls small {
  color: var(--muted);
  flex-basis: 100%;
}
@keyframes voicePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.flash-messages {
  display: grid;
  gap: 10px;
  width: min(1120px, calc(100% - 40px));
  margin: 18px auto 0;
}
.flash-message {
  padding: 12px 16px;
  border: 1px solid rgba(13, 79, 54, 0.14);
  border-radius: 12px;
  background: #fffaf3;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(13, 79, 54, 0.06);
}
.flash-message--success {
  border-color: rgba(46, 125, 75, 0.2);
  background: #eaf7ef;
  color: var(--green);
}
.flash-message--error,
.flash-message--warning {
  border-color: rgba(165, 77, 45, 0.24);
  background: #fff1e8;
  color: #8f3f24;
}
.tutor-toast-modal {
  pointer-events: auto;
}
.tutor-toast-card {
  position: fixed;
  top: 120px;
  left: 50%;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
}
.payouts-table {
  min-width: 900px;
}

.tutor-groups-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.group-list {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.tutor-group-panel {
  display: grid;
  gap: 22px;
}

.group-columns {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.group-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(13, 79, 54, .12);
  border-radius: 24px;
  background: rgba(255, 250, 242, .72);
}

.group-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.group-form-compact {
  margin-top: 0;
}

.group-form label {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-weight: 900;
}

.group-form input[type="text"],
.group-form input[type="time"],
.group-form input[type="number"],
.group-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(13, 79, 54, .16);
  border-radius: 18px;
  color: var(--green);
  background: rgba(255, 250, 242, .86);
  font: inherit;
  font-weight: 800;
}

.group-form select[multiple] {
  min-height: 130px;
}

.group-student-checks,
.weekday-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.group-student-checks label,
.weekday-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(13, 79, 54, .12);
  border-radius: 18px;
  background: rgba(255, 250, 242, .72);
  cursor: pointer;
}

.group-student-checks label {
  flex: 1 1 220px;
}

.group-student-checks small {
  color: var(--muted);
  font-weight: 800;
}

.group-lessons {
  display: grid;
  gap: 14px;
}

.group-lesson-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.group-lesson-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(32, 112, 178, .25);
  border-radius: 22px;
  color: #f5fbff;
  background:
    radial-gradient(circle at 100% 0%, rgba(153, 218, 255, .32), transparent 34%),
    linear-gradient(135deg, #185b8f, #0b3d68);
  box-shadow: 0 18px 42px rgba(24, 91, 143, .14);
}

.group-lesson-card.done {
  border-color: rgba(13, 79, 54, .18);
  color: var(--green);
  background: rgba(223, 245, 230, .72);
  box-shadow: none;
}

.group-lesson-card span,
.group-lesson-card em,
.group-lesson-card small {
  color: inherit;
  opacity: .86;
  font-style: normal;
  font-weight: 800;
}

.slot-cell.has-group-lesson {
  border-color: rgba(32, 112, 178, .34);
  color: #f5fbff;
  background:
    radial-gradient(circle at 100% 0%, rgba(153, 218, 255, .28), transparent 34%),
    linear-gradient(135deg, #185b8f, #0b3d68);
}

.slot-cell.has-group-lesson span,
.slot-cell.has-group-lesson em {
  color: #f5fbff;
}

.lesson-card.group-lesson-upcoming {
  border-color: rgba(32, 112, 178, .34);
  color: #f5fbff;
  background:
    radial-gradient(circle at 100% 0%, rgba(153, 218, 255, .28), transparent 34%),
    linear-gradient(135deg, #185b8f, #0b3d68);
}

.lesson-card.group-lesson-upcoming strong,
.lesson-card.group-lesson-upcoming b,
.lesson-card.group-lesson-upcoming span {
  color: #f5fbff;
}

@media (max-width: 900px) {
  .site-header { align-items: flex-start; gap: 16px; flex-direction: column; }
  .scroll-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }
  .site-footer__inner { grid-template-columns: 1fr; }
  nav { flex-wrap: wrap; gap: 14px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .cards, .dashboard-grid, .staff-stats, .tutor-money-grid, .materials-grid, .student-profile-card, .tutor-students-grid, .group-card-grid, .group-detail-grid, .homework-workspace, .seo-hero, .seo-grid, .seo-price-grid, .about-edit-panel { grid-template-columns: 1fr; }
  .seo-page { padding: 46px 20px 72px; }
  .seo-hero__content, .seo-hero__aside, .seo-panel, .seo-card, .seo-faq, .seo-price-card { padding: 24px; }
  .about-teachers { min-height: 620px; }
  .teacher-carousel { min-height: 450px; }
  .homework-lessons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homework-message { width: 100%; }
  .homework-message-form { grid-template-columns: 1fr; }
  .legal-page__head { align-items: flex-start; flex-direction: column; }
  .legal-document { padding: 24px; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .balance-card-actions { align-items: flex-start; flex-direction: column; }
  .group-create-form { grid-template-columns: 1fr; }
  .group-member-row,
  .group-lesson-row,
  .attendance-row,
  .danger-zone { align-items: flex-start; flex-direction: column; }
  .danger-zone-actions,
  .danger-zone-actions form,
  .danger-zone-actions .button { width: 100%; }
  .student-balance-card { padding: 18px; }
  .student-subscription-layout { grid-template-columns: 1fr; }
  .student-balance-card__top { position: static; order: -1; }
  .payment-card { padding: 20px; }
  .payment-card__head { align-items: flex-start; flex-direction: column; }
  .payment-amount-grid,
  .payment-result-grid { grid-template-columns: 1fr; }
  .subscription-tabs { width: 100%; }
  .subscription-tab { flex: 1; }
  .subscription-overview { grid-template-columns: 1fr; }
  .debt-breakdown { grid-template-columns: 1fr; }
  .debt-breakdown-item { align-items: flex-start; flex-direction: column; }
  .debt-breakdown-item form,
  .debt-breakdown-item .button,
  .debt-pay-all,
  .debt-pay-all .button { width: 100%; }
  .subscription-history-card { align-items: flex-start; flex-direction: column; }
  .subscription-history-card small,
  .subscription-history-card strong { text-align: left; }
  .subscription-shop-head { align-items: flex-start; flex-direction: column; }
  .subscription-grid { grid-template-columns: 1fr; }
  .staff-panel-head { align-items: flex-start; flex-direction: column; }
  .staff-form,
  .staff-debt-form { grid-template-columns: 1fr; }
  .staff-debt-form .staff-form-actions { grid-column: auto; }
  .staff-form-panel { padding: 24px; }
  .schedule-board { padding: 20px; }
  .schedule-final-layout { grid-template-columns: 1fr; }
  .schedule-side-panel { position: static; }
  .student-schedule-side { position: static; }
  .student-period-switcher {
    align-items: stretch;
    flex-direction: column;
    border-radius: 20px;
  }
  .student-period-switcher a,
  .student-period-switcher__disabled,
  .student-period-switcher strong {
    width: 100%;
    text-align: center;
  }
  .student-week-rail {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }
  .student-week-day {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }
  .student-timeline-slot {
    grid-template-columns: 1fr;
  }
  .student-slot-action {
    width: fit-content;
  }
  .week-switcher { width: 100%; justify-content: space-between; }
  .week-switcher span { min-width: 0; }
  .lesson-card { align-items: flex-start; flex-direction: column; }
  .lesson-card form { width: 100%; }
  .tutor-groups-grid,
  .group-columns,
  .group-lesson-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .scroll-to-top {
    scroll-behavior: auto;
    transition-duration: .01ms;
  }
}
