@font-face{font-family:"DM Sans";src:url("/assets/dm-sans.ttf");font-weight:100 1000;font-display:swap}@font-face{font-family:Manrope;src:url("/assets/manrope.ttf");font-weight:200 800;font-display:swap}

@theme {
  --font-sans: "DM Sans", sans-serif;
  --font-display: "Manrope", sans-serif;
}

@layer base {
  :root {
    color: #172c25;
    background: #fbfaf6;
    font-family: "DM Sans", sans-serif;
    font-synthesis: none;
  }
  * {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
  }
  body {
    margin: 0;
    min-width: 320px;
    background: #fbfaf6;
  }
  button,
  input,
  textarea,
  select {
    font: inherit;
  }
  button {
    cursor: pointer;
  }
  h1,
  h2,
  h3,
  p {
    margin-top: 0;
  }
  h1,
  h2,
  h3 {
    font-family: "Manrope", sans-serif;
    letter-spacing: -0.04em;
  }
}

:root {
  --ink: #152a23;
  --green: #087653;
  --green-dark: #0a3f32;
  --lime: #c9ef6a;
  --yellow: #f4c75a;
  --cream: #fbfaf6;
  --muted: #68756f;
  --line: #dfe4df;
  --blue: #d9eaff;
}

.app {
  min-height: 100vh;
  overflow: hidden;
}
.header {
  height: 82px;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(21, 42, 35, 0.1);
  position: relative;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
}
.brand {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  font: 800 21px/1 "Manrope";
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.mark {
  display: inline-block;
  width: 31px;
  height: 31px;
  border: 7px solid var(--green);
  border-radius: 50%;
  position: relative;
  flex: none;
}
.mark span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  right: -8px;
  top: -8px;
  border: 2px solid var(--cream);
}
.mark-light {
  border-color: white;
}
.mark-light span {
  border-color: var(--green-dark);
}
.header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: auto;
}
.header nav button {
  border: 0;
  background: transparent;
  color: #54625d;
  padding: 27px 14px 25px;
  font-weight: 600;
  font-size: 14px;
  position: relative;
}
.header nav button:hover,
.header nav button.active {
  color: var(--ink);
}
.header nav button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
  left: 14px;
  right: 14px;
}
.nav-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--yellow);
  border-radius: 50%;
  top: 21px;
  right: 7px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.text-button {
  background: transparent;
  border: 0;
  font-weight: 700;
  color: var(--ink);
}
.button {
  border: 0;
  background: var(--green);
  color: white;
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(8, 118, 83, 0.13);
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  background: #066545;
}
.button.small {
  min-height: 42px;
  padding: 0 17px;
}
.button.ghost,
.button.outline {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid #cfd6d1;
}
.button.cream {
  background: var(--cream);
  color: var(--green-dark);
}
.menu-button {
  display: none;
  margin-left: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.kicker.light {
  color: var(--lime);
}
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 6vw 65px;
  gap: 5vw;
  align-items: center;
}
.hero-copy {
  max-width: 670px;
}
.eyebrow {
  background: #edf4e7;
  padding: 8px 11px;
  border-radius: 30px;
  letter-spacing: 0.09em;
}
.eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(8, 118, 83, 0.1);
}
.hero h1 {
  color: var(--ink);
  font-size: clamp(55px, 6vw, 92px);
  line-height: 0.96;
  margin-bottom: 27px;
  font-weight: 700;
}
h1 em,
h2 em {
  color: var(--green);
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.05em;
}
.hero-copy > p {
  color: #5d6c66;
  font-size: 18px;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 31px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.play {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #c4ccc7;
  border-radius: 50%;
  transform: rotate(45deg);
}
.trust-row {
  display: flex;
  align-items: center;
  margin-top: 43px;
}
.avatar-stack {
  display: flex;
}
.avatar-stack span {
  margin-left: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d7e3ff;
  border: 3px solid var(--cream);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}
.avatar-stack span:first-child {
  margin: 0;
  background: #f2ce77;
}
.avatar-stack span:nth-child(3) {
  background: #bbdfd1;
}
.avatar-stack span:last-child {
  background: var(--green);
  color: white;
}
.trust-row p {
  margin: 0 0 0 12px;
  line-height: 1.35;
  font-size: 12px;
  color: #75807b;
}
.trust-row strong {
  color: var(--ink);
}
.hero-visual {
  min-height: 535px;
  position: relative;
}
.photo-frame {
  position: absolute;
  inset: 0 8% 0 2%;
  border-radius: 42% 42% 12px 12px;
  overflow: hidden;
  background: #e7e7df;
  box-shadow: 20px 22px 0 #e8f0df;
}
.photo-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(7, 48, 37, 0.18));
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.float-card {
  position: absolute;
  background: white;
  box-shadow: 0 16px 50px rgba(21, 42, 35, 0.15);
  display: flex;
  align-items: center;
  z-index: 2;
}
.question-float {
  left: -7%;
  bottom: 55px;
  padding: 15px 17px;
  width: 300px;
  border-radius: 12px;
  gap: 12px;
}
.float-icon {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #e6f3e8;
}
.question-float div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.question-float small,
.members-float small {
  font-size: 8px;
  letter-spacing: 0.11em;
  font-weight: 800;
  color: #87918d;
}
.question-float strong {
  font-size: 12px;
  margin-top: 4px;
}
.check-circle {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
}
.members-float {
  right: -2%;
  top: 75px;
  padding: 13px 17px;
  border-radius: 10px;
  gap: 10px;
}
.members-float div {
  display: flex;
  flex-direction: column;
}
.members-float strong {
  font: 800 18px/1 "Manrope";
}
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #48c982;
  box-shadow: 0 0 0 5px #e2f6ea;
}
.spark {
  color: var(--yellow);
  font-size: 28px;
  position: absolute;
}
.spark.a {
  top: -25px;
  left: 0;
}
.spark.b {
  right: 0;
  bottom: 25px;
  font-size: 20px;
}
.ticker {
  min-height: 86px;
  background: var(--green-dark);
  color: #dbe9e4;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 5vw;
  font: 600 13px "Manrope";
  text-align: center;
}
.ticker i {
  width: 4px;
  height: 4px;
  background: var(--yellow);
  border-radius: 50%;
}
.section {
  max-width: 1240px;
  margin: auto;
  padding: 115px 30px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 80px;
  margin-bottom: 55px;
}
.section-heading h2 {
  font-size: clamp(39px, 4vw, 58px);
  line-height: 1.05;
  margin: 0;
}
.section-heading p {
  max-width: 410px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 7px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}
.feature-card {
  min-height: 430px;
  border-radius: 16px;
  padding: 33px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(20, 50, 40, 0.1);
}
.feature-card.community-card {
  background: #e9f3e5;
}
.feature-card.ai-card {
  background: #f9f0d8;
}
.feature-card.tutor-card {
  background: #e5eefc;
}
.feature-number {
  position: absolute;
  right: 29px;
  top: 28px;
  color: #83918a;
  font-size: 11px;
  font-weight: 800;
}
.feature-icon {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  color: var(--green);
  margin-bottom: 29px;
}
.feature-card h3 {
  font-size: 25px;
  margin-bottom: 14px;
}
.feature-card > p {
  color: #5c6b65;
  line-height: 1.6;
  font-size: 14px;
  max-width: 90%;
}
.feature-card > button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 33px;
  bottom: 32px;
}
.card-orbit {
  position: absolute;
  right: -18px;
  bottom: -35px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(8, 118, 83, 0.2);
  border-radius: 50%;
}
.card-orbit span {
  position: absolute;
  width: 35px;
  height: 35px;
  border: 4px solid white;
  border-radius: 50%;
  background: #f2c85d;
}
.card-orbit span:nth-child(1) {
  top: -5px;
  left: 45px;
}
.card-orbit span:nth-child(2) {
  left: -4px;
  top: 63px;
  background: #9bc8b9;
}
.card-orbit span:nth-child(3) {
  right: 0;
  top: 70px;
  background: #9cb8e7;
}
.mini-note {
  position: absolute;
  right: -12px;
  bottom: -5px;
  transform: rotate(-5deg);
  background: white;
  border-radius: 9px;
  width: 155px;
  padding: 16px;
  box-shadow: 0 9px 30px rgba(50, 40, 20, 0.1);
  display: flex;
  flex-direction: column;
}
.mini-note span {
  font-size: 7px;
  color: #b98919;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.mini-note b {
  font-size: 12px;
  margin: 7px 0 4px;
}
.mini-note i {
  color: #8a8c86;
  font-style: normal;
  font-size: 8px;
  line-height: 1.5;
}
.tutor-bubbles {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: flex;
  align-items: end;
}
.tutor-bubbles span {
  width: 56px;
  height: 56px;
  background: #c8dafa;
  border: 4px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-left: -11px;
}
.tutor-bubbles span:nth-child(2) {
  width: 83px;
  height: 83px;
  background: #ecc476;
}
.tutor-bubbles span:nth-child(3) {
  background: #9ccdb9;
}
.ai-showcase {
  background: var(--green-dark);
  padding: 110px max(6vw, calc((100vw - 1240px)/2));
  display: grid;
  grid-template-columns: 1.07fr 0.93fr;
  align-items: center;
  gap: 8vw;
  position: relative;
}
.ai-demo {
  position: relative;
}
.ai-demo:before {
  content: "";
  position: absolute;
  inset: -30px 35px 20px -30px;
  border-radius: 50%;
  border: 1px solid rgba(201, 239, 106, 0.15);
}
.demo-window {
  background: #fdfcf9;
  border-radius: 16px;
  padding: 0 30px 28px;
  position: relative;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}
.window-top {
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin: 0 -30px 25px;
  padding: 0 25px;
}
.window-top > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.window-top .mark {
  width: 23px;
  height: 23px;
  border-width: 5px;
}
.window-top .mark span {
  width: 7px;
  height: 7px;
  right: -6px;
  top: -6px;
}
.study-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  background: #edf4e7;
  color: var(--green);
  font-weight: 700;
  font-size: 10px;
  border-radius: 5px;
}
.demo-prompt {
  font: 700 16px "Manrope";
  margin: 18px 0;
}
.flashcard {
  width: 100%;
  height: 230px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  padding: 0;
  color: var(--ink);
  perspective: 1100px;
}
.flashcard:hover {
  transform: none;
}
.flashcard-inner {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.2, 0.72, 0.2, 1);
}
.flashcard:hover .flashcard-inner {
  transform: rotateY(2deg) translateY(-2px);
}
.flashcard.flipped .flashcard-inner,
.flashcard.flipped:hover .flashcard-inner {
  transform: rotateY(180deg);
}
.flashcard-face {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(8, 118, 83, 0.05);
}
.flashcard-face:after {
  content: "";
  width: 150px;
  height: 150px;
  border: 1px solid rgba(8, 118, 83, 0.09);
  border-radius: 50%;
  position: absolute;
  right: -75px;
  bottom: -90px;
}
.flashcard-front {
  background: #eef4e8;
}
.flashcard-back {
  background: #f7edcc;
  transform: rotateY(180deg);
}
.flashcard-face > span {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--green);
  font-weight: 800;
}
.flashcard-face strong {
  font: 700 20px/1.4 "Manrope";
  max-width: 300px;
  margin: 20px;
  position: relative;
  z-index: 1;
}
.flashcard-face small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7d8983;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #77847e;
  margin: 20px 0 7px;
}
.progress {
  height: 5px;
  background: #e4e8e4;
  border-radius: 5px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--green);
  border-radius: inherit;
}
.showcase-copy {
  color: white;
}
.showcase-copy h2 {
  font-size: clamp(42px, 4vw, 61px);
  line-height: 1.03;
  margin-bottom: 25px;
}
.showcase-copy h2 em {
  color: var(--lime);
}
.showcase-copy > p {
  color: #bdcec7;
  line-height: 1.7;
  font-size: 16px;
}
.showcase-copy ul {
  list-style: none;
  padding: 10px 0 20px;
}
.showcase-copy li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  color: #e5efeb;
  font-size: 14px;
}
.showcase-copy li svg {
  color: var(--lime);
}
.social-proof {
  text-align: center;
  padding-bottom: 90px;
}
.quote-mark {
  color: var(--yellow);
  font: 80px/1 Georgia;
  height: 60px;
}
.social-proof blockquote {
  max-width: 840px;
  margin: 0 auto 27px;
  font:
    500 clamp(25px, 3vw, 40px)/1.4 Georgia,
    serif;
  letter-spacing: -0.02em;
}
.quote-by {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  flex: none;
}
.avatar.yellow {
  background: #f2cf76;
}
.avatar.blue {
  background: #bad6f8;
}
.avatar.coral {
  background: #f1bda8;
}
.quote-by div {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.quote-by strong {
  font-size: 12px;
}
.quote-by small {
  color: #80908a;
  font-size: 10px;
  margin-top: 2px;
}
.stat-grid {
  margin-top: 75px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-grid div {
  display: flex;
  flex-direction: column;
  padding: 35px 15px 0;
  border-right: 1px solid var(--line);
}
.stat-grid div:last-child {
  border: 0;
}
.stat-grid strong {
  font: 700 36px "Manrope";
}
.stat-grid span {
  color: #74817c;
  font-size: 11px;
  margin-top: 4px;
}
.final-cta {
  background: var(--green);
  color: white;
  min-height: 340px;
  padding: 70px max(6vw, calc((100vw - 1180px)/2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1.05;
  margin: 0;
  position: relative;
  z-index: 1;
}
.final-cta h2 em {
  color: var(--lime);
}
.final-cta button {
  position: relative;
  z-index: 2;
}
.cta-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  width: 390px;
  height: 390px;
  right: 18%;
}
.cta-ring.r2 {
  width: 260px;
  height: 260px;
  right: 22%;
}
footer {
  background: #082f27;
  color: white;
  padding: 70px max(5vw, calc((100vw - 1240px)/2)) 22px;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 50px;
  padding-bottom: 60px;
}
.footer-brand {
  color: white;
}
.footer-main p {
  color: #c0d0ca;
  line-height: 1.6;
  margin: 23px 0;
}
.footer-main small {
  color: #739087;
}
.footer-main > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-main strong {
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.13em;
  margin-bottom: 7px;
}
.footer-main button:not(.brand) {
  border: 0;
  background: transparent;
  color: #c0d0ca;
  padding: 0;
  font-size: 13px;
}
.footer-main button:hover {
  color: white;
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #245046;
  display: flex;
  justify-content: space-between;
  color: #78978e;
  font-size: 10px;
}
.footer-bottom i {
  color: var(--yellow);
  font-style: normal;
}

/* Shared interior pages */
.app-page {
  max-width: 1220px;
  margin: auto;
  padding: 75px 30px 110px;
  min-height: calc(100vh - 82px);
}
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 48px;
}
.page-title-row h1 {
  font-size: clamp(43px, 5vw, 68px);
  margin: 0 0 12px;
}
.page-title-row p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}
.search-band,
.library-tools,
.tutor-filter {
  border: 1px solid var(--line);
  padding: 11px;
  display: flex;
  gap: 10px;
  background: white;
  border-radius: 11px;
  margin-bottom: 36px;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b9691;
  flex: 1;
}
.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 4px;
  background: transparent;
  color: var(--ink);
}
.filter-button,
.select-wrap,
.tutor-filter > button {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  padding: 0 18px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}
.community-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 35px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.tabs button {
  border: 0;
  background: transparent;
  color: #7c8883;
  font-weight: 700;
  padding: 13px 18px;
  position: relative;
}
.tabs button.active {
  color: var(--green);
}
.tabs button.active:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--green);
  left: 12px;
  right: 12px;
  bottom: -1px;
  border-radius: 4px;
}
.question {
  padding: 27px 3px;
  border-bottom: 1px solid var(--line);
}
.question-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}
.question-top > div {
  display: flex;
  flex-direction: column;
}
.question-top strong {
  font-size: 12px;
}
.question-top small {
  font-size: 10px;
  color: #84908b;
}
.solved {
  margin-left: auto;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 20px;
  color: var(--green);
  background: #e7f2ea;
  font-size: 9px;
  font-weight: 800;
}
.course-pill,
.type-pill {
  color: var(--green);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}
.question h3 {
  font-size: 20px;
  margin: 7px 0 8px;
  letter-spacing: -0.025em;
}
.question > p {
  color: #69766f;
  line-height: 1.55;
  font-size: 13px;
  max-width: 90%;
}
.question-foot {
  display: flex;
  gap: 20px;
}
.question-foot span,
.question-foot button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #74817c;
  font-size: 11px;
  padding: 0;
}
.community-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.aside-card {
  background: white;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 12px;
}
.aside-card.highlight {
  background: var(--green-dark);
  color: white;
  border: 0;
}
.aside-card h3 {
  line-height: 1.35;
  font-size: 20px;
}
.trend {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 15px;
}
.trend b {
  color: var(--yellow);
  font: 700 11px "Manrope";
}
.trend span {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 12px;
}
.trend small {
  color: #8eaaa1;
  font-size: 9px;
  margin-top: 5px;
}
.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.subject-pills button {
  border: 1px solid var(--line);
  background: #f9faf7;
  border-radius: 20px;
  padding: 8px 11px;
  font-size: 10px;
}
.wide-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  margin-top: 20px;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
}

/* Library */
.library-tools .searchbox {
  min-width: 50%;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.resource-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(21, 42, 35, 0.08);
}
.resource-cover {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.resource-cover.blue {
  background: #e4effb;
}
.resource-cover.mint {
  background: #e3f1e9;
}
.resource-cover.lilac {
  background: #ece8f5;
}
.resource-cover.peach {
  background: #f7e8df;
}
.resource-cover.yellow {
  background: #f8f0d5;
}
.resource-cover > svg {
  position: relative;
  color: var(--green);
}
.resource-cover > span {
  position: relative;
  font: 800 9px "Manrope";
  margin-top: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.paper-lines {
  position: absolute;
  width: 120px;
  height: 150px;
  transform: rotate(8deg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 10px 5px 0 rgba(255, 255, 255, 0.3);
}
.resource-body {
  padding: 20px;
}
.resource-body > div:first-child {
  display: flex;
  justify-content: space-between;
}
.resource-body button {
  border: 0;
  background: transparent;
  color: #77847f;
  padding: 0;
}
.resource-body h3 {
  font-size: 17px;
  min-height: 47px;
  margin: 11px 0 5px;
}
.resource-body p {
  color: #83908b;
  font-size: 10px;
}
.resource-foot {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  color: #7c8983;
  font-size: 10px;
}
.resource-foot button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 800;
}

/* AI */
.ai-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: calc(100vh - 82px);
  background: white;
}
.ai-sidebar {
  border-right: 1px solid var(--line);
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
  background: #f7f8f4;
}
.ai-side-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 7px 22px;
}
.ai-side-title .mark {
  width: 25px;
  height: 25px;
  border-width: 5px;
}
.ai-side-title .mark span {
  width: 7px;
  height: 7px;
  right: -6px;
  top: -6px;
}
.ai-side-title > span {
  color: var(--green);
  background: #dfeee5;
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}
.new-chat {
  border: 0;
  background: var(--green);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 12px;
  font-weight: 700;
  font-size: 12px;
}
.ai-sidebar > small {
  margin: 28px 9px 10px;
  color: #95a09b;
  font-weight: 800;
  font-size: 8px;
  letter-spacing: 0.14em;
}
.history {
  border: 0;
  background: transparent;
  color: #63706b;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 9px;
  border-radius: 5px;
  font-size: 11px;
  text-align: left;
}
.history.active {
  background: #e5ede6;
  color: var(--ink);
  font-weight: 700;
}
.usage {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 15px;
}
.usage > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.usage b {
  color: var(--green);
}
.usage .progress {
  margin: 10px 0;
}
.usage button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  padding: 0;
}
.chat-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-top {
  height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-top > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.bot-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6f2e7;
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
}
.chat-top > div > div {
  display: flex;
  flex-direction: column;
}
.chat-top strong {
  font-size: 12px;
}
.chat-top small {
  color: #8c9792;
  font-size: 9px;
}
.chat-top > button {
  border: 0;
  background: transparent;
}
.chat-scroll {
  flex: 1;
  overflow: auto;
  padding: 26px max(30px, calc((100% - 780px)/2));
}
.source-banner {
  border: 1px solid #cfe1d4;
  background: #f2f7f1;
  border-radius: 8px;
  padding: 13px 15px;
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--green);
}
.source-banner div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.source-banner strong {
  color: var(--ink);
  font-size: 11px;
}
.source-banner span {
  color: #83908b;
  font-size: 9px;
}
.source-banner button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}
.messages {
  padding-top: 32px;
}
.message {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  align-items: flex-start;
}
.message > div {
  max-width: 650px;
  background: #f3f5f2;
  border-radius: 3px 13px 13px 13px;
  padding: 15px 17px;
  font-size: 13px;
  line-height: 1.6;
}
.message.you {
  justify-content: flex-end;
}
.message.you > div {
  background: var(--green);
  color: white;
  border-radius: 13px 3px 13px 13px;
}
.quick-actions {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.quick-actions button {
  border: 1px solid #cbd9cf;
  color: var(--green);
  background: white;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
}
.chat-input {
  margin: 10px max(30px, calc((100% - 780px)/2)) 5px;
  border: 1px solid #cbd3ce;
  border-radius: 10px;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 6px;
  box-shadow: 0 7px 25px rgba(30, 50, 40, 0.06);
}
.chat-input > button {
  border: 0;
  background: transparent;
  color: #8b9791;
  display: grid;
  place-items: center;
}
.chat-input input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 10px;
  font-size: 12px;
}
.chat-input .send-button {
  width: 39px;
  height: 39px;
  border-radius: 7px;
  color: white;
  background: var(--green);
}
.ai-disclaimer {
  text-align: center;
  color: #9aa39f;
  font-size: 8px;
  margin: 5px 0 13px;
}

/* Tutors */
.tutor-title {
  max-width: 710px;
}
.tutor-filter > button {
  min-width: 150px;
  justify-content: space-between;
}
.tutor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
}
.tutor-profile {
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  overflow: hidden;
}
.tutor-portrait {
  height: 185px;
  display: grid;
  place-items: center;
  position: relative;
}
.tutor-portrait.yellow {
  background: #f4e6bd;
}
.tutor-portrait.blue {
  background: #dce9f6;
}
.tutor-portrait.coral {
  background: #f1ddd4;
}
.tutor-portrait > span {
  width: 93px;
  height: 93px;
  background: rgba(255, 255, 255, 0.6);
  border: 5px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 22px "Manrope";
}
.tutor-portrait .online {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #3ac77d;
  border: 3px solid white;
  bottom: 42px;
  left: calc(50% + 31px);
}
.tutor-portrait b {
  position: absolute;
  left: 13px;
  top: 13px;
  background: var(--green-dark);
  color: white;
  padding: 6px 8px;
  border-radius: 3px;
  font-size: 7px;
  letter-spacing: 0.12em;
}
.tutor-info {
  padding: 20px;
}
.verified {
  display: flex;
  align-items: center;
  gap: 7px;
}
.verified h3 {
  margin: 0;
  font-size: 19px;
}
.verified span {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
}
.tutor-info > p {
  font-size: 12px;
  margin: 5px 0;
}
.tutor-info > small {
  color: #84908a;
  font-size: 9px;
}
.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 13px 0;
  font-size: 11px;
}
.rating svg {
  color: #e6ad24;
  fill: #e6ad24;
}
.rating span {
  color: #8b9692;
}
.tag-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tag-row span {
  padding: 6px 8px;
  border-radius: 3px;
  background: #f1f3ef;
  color: #68746f;
  font-size: 8px;
}
.tutor-bottom {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tutor-bottom > div {
  display: flex;
  flex-direction: column;
}
.tutor-bottom small {
  font-size: 7px;
  color: #909b96;
}
.tutor-bottom strong {
  font-size: 13px;
}
.tutor-bottom i {
  font-style: normal;
  font-weight: 400;
  color: #89948f;
  font-size: 8px;
}
.teach-band {
  margin-top: 75px;
  background: var(--green-dark);
  color: white;
  padding: 55px 65px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  border-radius: 15px;
}
.teach-band h2 {
  font-size: 38px;
  line-height: 1.1;
  margin: 0;
}
.teach-band h2 em {
  color: var(--lime);
}
.teach-band p {
  color: #bfd0c9;
  line-height: 1.6;
}

/* Pricing */
.pricing-page {
  max-width: 1160px;
  margin: auto;
  padding: 80px 30px 110px;
}
.pricing-head {
  text-align: center;
  max-width: 700px;
  margin: auto;
}
.pricing-head h1 {
  font-size: 60px;
  line-height: 1.03;
  margin-bottom: 20px;
}
.pricing-head p {
  color: var(--muted);
  line-height: 1.6;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 55px;
  align-items: stretch;
}
.plan-grid article {
  padding: 33px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  position: relative;
}
.plan-grid article.popular {
  background: var(--green-dark);
  color: white;
  border: 0;
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(9, 63, 50, 0.2);
}
.popular-label {
  position: absolute;
  right: 20px;
  top: 20px;
  background: var(--lime);
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 900;
  padding: 6px 8px;
  border-radius: 3px;
  letter-spacing: 0.12em;
}
.plan-price {
  font: 700 32px "Manrope";
  margin: 8px 0 13px;
}
.plan-price small {
  font: 400 10px "DM Sans";
  color: #83918b;
}
.plan-grid article > p {
  color: #75817c;
  font-size: 12px;
  line-height: 1.6;
  min-height: 58px;
}
.plan-grid article.popular > p {
  color: #b8cbc4;
}
.plan-grid article > .button {
  width: 100%;
}
.plan-grid article.popular .button {
  background: var(--lime);
  color: var(--green-dark);
}
.plan-grid ul {
  list-style: none;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 25px;
}
.plan-grid article.popular ul {
  border-color: #2d5d50;
}
.plan-grid li {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 7px 0;
  font-size: 11px;
}
.plan-grid li span {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #e7f2e9;
  color: var(--green);
  display: grid;
  place-items: center;
}
.pricing-note {
  text-align: center;
  color: #87918d;
  font-size: 10px;
  margin-top: 35px;
}

/* Dashboard */
.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px 1fr;
  background: #f5f6f1;
}
.dash-side {
  background: white;
  border-right: 1px solid var(--line);
  padding: 27px 18px 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}
.dash-side > .brand {
  padding: 0 10px;
}
.dash-nav {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-nav small {
  color: #99a39e;
  font-size: 8px;
  letter-spacing: 0.13em;
  font-weight: 800;
  margin: 17px 10px 5px;
}
.dash-nav button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 10px 12px;
  color: #65726c;
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  font-size: 11px;
}
.dash-nav button.active {
  background: #e7efe7;
  color: var(--green);
  font-weight: 800;
}
.dash-user {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 17px 7px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dash-user div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dash-user strong {
  font-size: 10px;
}
.dash-user small {
  font-size: 8px;
  color: #8e9994;
}
.dash-main {
  min-width: 0;
}
.dash-main > header {
  height: 70px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  padding: 0 34px;
  align-items: center;
  gap: 17px;
}
.dash-main header .searchbox {
  max-width: 440px;
}
.notification {
  margin-left: auto;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}
.dash-content {
  padding: 32px;
  max-width: 1200px;
  margin: auto;
}
.welcome {
  min-height: 230px;
  border-radius: 14px;
  background: var(--green-dark);
  color: white;
  padding: 42px 47px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.welcome span {
  color: var(--lime);
  font-size: 8px;
  letter-spacing: 0.15em;
  font-weight: 800;
}
.welcome h1 {
  font-size: 40px;
  line-height: 1.07;
  margin: 12px 0 10px;
}
.welcome p {
  color: #adc2bb;
  font-size: 12px;
}
.welcome-art {
  position: absolute;
  width: 330px;
  right: 0;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
}
.welcome-art .mark {
  width: 80px;
  height: 80px;
  border-width: 15px;
  z-index: 2;
}
.welcome-art .mark span {
  width: 25px;
  height: 25px;
  right: -20px;
  top: -20px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #477267;
  width: 240px;
  height: 240px;
}
.orb.o2 {
  width: 160px;
  height: 160px;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 34px;
}
.shortcut-grid > button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: var(--ink);
}
.shortcut-grid > button > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.shortcut-grid strong {
  font-size: 11px;
}
.shortcut-grid small {
  color: #8b9692;
  font-size: 8px;
  margin-top: 4px;
}
.shortcut-icon {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--green);
}
.shortcut-icon.purple {
  background: #eee7f4;
}
.shortcut-icon.gold {
  background: #f7edce;
}
.shortcut-icon.green {
  background: #e2f0e5;
}
.dash-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.dash-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
}
.dash-section-title .kicker {
  margin-bottom: 5px;
}
.dash-section-title h2 {
  margin: 0;
  font-size: 21px;
}
.dash-section-title > button {
  border: 0;
  background: transparent;
  color: var(--green);
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
}
.recent-card,
.week-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
}
.recent-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.recent-cover {
  width: 85px;
  height: 85px;
  display: grid;
  place-items: center;
  background: #e4efe5;
  color: var(--green);
  border-radius: 7px;
}
.recent-card > div:nth-child(2) {
  flex: 1;
}
.recent-card h3 {
  font-size: 14px;
  margin: 6px 0 3px;
}
.recent-card p,
.recent-card small {
  color: #8a9590;
  font-size: 8px;
}
.recent-card .progress {
  margin: 11px 0 5px;
}
.recent-card > button {
  border: 0;
  background: transparent;
  color: var(--green);
}
.week-card {
  padding: 20px;
}
.week-chart {
  height: 100px;
  display: flex;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 5px 0 13px;
}
.week-chart div {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 5px;
}
.week-chart span {
  width: 7px;
  background: #dfe5e1;
  border-radius: 4px;
  min-height: 5px;
}
.week-chart span.today {
  background: var(--green);
}
.week-chart small {
  font-size: 7px;
  color: #87938e;
}
.streak {
  display: flex;
  gap: 10px;
  padding-top: 16px;
}
.streak > span {
  color: var(--yellow);
}
.streak div {
  display: flex;
  flex-direction: column;
}
.streak strong {
  font-size: 10px;
}
.streak small {
  color: #8b9691;
  font-size: 8px;
  margin-top: 3px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 30, 24, 0.65);
  backdrop-filter: blur(7px);
}
.modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--cream);
  border-radius: 15px;
  padding: 40px;
  position: relative;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  background: transparent;
}
.modal h2 {
  font-size: 32px;
  margin: 2px 0 8px;
}
.modal > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 25px;
}
.modal > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  margin: 15px 0;
}
.modal input,
.modal textarea,
.modal select {
  border: 1px solid #cfd7d2;
  border-radius: 6px;
  background: white;
  padding: 13px;
  outline: 0;
  color: var(--ink);
  font-size: 12px;
}
.modal input:focus,
.modal textarea:focus {
  border-color: var(--green);
}
.modal-submit {
  width: 100%;
  margin-top: 8px;
}
.login-mark {
  margin-bottom: 25px;
}
.forgot {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin: 14px 0;
}
.forgot label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.forgot button,
.modal-foot button {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 0;
  font-weight: 800;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 25px 0;
  text-align: center;
  height: 0;
}
.divider span {
  position: relative;
  top: -9px;
  padding: 0 10px;
  background: var(--cream);
  color: #9ca5a1;
  font-size: 9px;
}
.modal-foot {
  text-align: center;
  margin: 0 !important;
}

@media (max-width: 980px) {
  .header nav {
    position: absolute;
    display: none;
    top: 81px;
    left: 0;
    right: 0;
    padding: 12px 5vw 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .header nav.open {
    display: flex;
  }
  .header nav button {
    padding: 12px;
    text-align: left;
  }
  .header nav button.active:after {
    display: none;
  }
  .nav-dot {
    display: none;
  }
  .menu-button {
    display: block;
  }
  .header-actions .text-button {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }
  .hero-copy {
    text-align: center;
    margin: auto;
  }
  .hero-copy > p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .trust-row {
    justify-content: center;
  }
  .hero-visual {
    width: min(650px, 100%);
    margin: 10px auto 0;
  }
  .feature-grid,
  .resource-grid,
  .tutor-grid,
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card:last-child,
  .tutor-profile:last-child,
  .plan-grid article:last-child {
    grid-column: 1 / -1;
  }
  .ai-showcase {
    grid-template-columns: 1fr;
  }
  .ai-demo {
    max-width: 650px;
  }
  .community-layout {
    grid-template-columns: 1fr;
  }
  .community-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .tutor-filter {
    flex-wrap: wrap;
  }
  .teach-band {
    padding: 45px;
  }
  .dashboard {
    grid-template-columns: 75px 1fr;
  }
  .dash-side {
    padding: 25px 11px;
  }
  .dash-side .brand span,
  .dash-nav button:not(.active) {
    font-size: 0;
  }
  .dash-side .brand {
    justify-content: center;
  }
  .dash-nav button {
    justify-content: center;
  }
  .dash-user div,
  .dash-user > svg {
    display: none;
  }
  .dash-user {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .header {
    height: 70px;
    padding: 0 20px;
  }
  .header nav {
    top: 69px;
  }
  .header-actions .button {
    display: none;
  }
  .hero {
    padding: 50px 20px;
  }
  .hero h1 {
    font-size: 51px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-visual {
    min-height: 390px;
  }
  .photo-frame {
    inset: 0 4% 0;
  }
  .question-float {
    left: 0;
    bottom: 28px;
    width: 255px;
  }
  .members-float {
    right: 0;
    top: 55px;
  }
  .ticker {
    gap: 20px;
    overflow: hidden;
    justify-content: flex-start;
    white-space: nowrap;
  }
  .ticker span:nth-of-type(n + 4),
  .ticker i:nth-of-type(n + 3) {
    display: none;
  }
  .section {
    padding: 80px 20px;
  }
  .section-heading {
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }
  .section-heading h2 {
    font-size: 42px;
  }
  .feature-grid,
  .resource-grid,
  .tutor-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .feature-card:last-child,
  .tutor-profile:last-child,
  .plan-grid article:last-child {
    grid-column: auto;
  }
  .feature-card {
    min-height: 390px;
  }
  .ai-showcase {
    padding: 80px 20px;
  }
  .demo-window {
    padding-left: 18px;
    padding-right: 18px;
  }
  .window-top {
    margin-left: -18px;
    margin-right: -18px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-grid div:nth-child(2) {
    border-right: 0;
  }
  .final-cta {
    padding: 65px 25px;
    flex-direction: column;
    align-items: start;
    gap: 30px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .app-page,
  .pricing-page {
    padding: 55px 20px 80px;
  }
  .page-title-row {
    align-items: start;
    flex-direction: column;
  }
  .page-title-row .button {
    width: 100%;
  }
  .search-band,
  .library-tools {
    flex-wrap: wrap;
  }
  .filter-button,
  .select-wrap {
    min-height: 40px;
    border-left: 0;
  }
  .library-tools .searchbox {
    flex-basis: 100%;
  }
  .community-aside {
    grid-template-columns: 1fr;
  }
  .ai-page {
    grid-template-columns: 1fr;
    height: calc(100vh - 70px);
  }
  .ai-sidebar {
    display: none;
  }
  .chat-top {
    padding: 0 15px;
  }
  .chat-scroll {
    padding: 20px 15px;
  }
  .chat-input {
    margin: 8px 15px 5px;
  }
  .tutor-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .tutor-filter .searchbox {
    grid-column: 1 / -1;
  }
  .tutor-filter > button {
    min-width: 0;
    border: 1px solid var(--line);
    min-height: 40px;
  }
  .teach-band {
    grid-template-columns: 1fr;
    padding: 38px 25px;
    gap: 20px;
  }
  .pricing-head h1 {
    font-size: 45px;
  }
  .plan-grid article.popular {
    transform: none;
  }
  .dashboard {
    display: block;
  }
  .dash-side {
    display: none;
  }
  .dash-main > header {
    padding: 0 15px;
  }
  .dash-main header .searchbox {
    display: none;
  }
  .dash-content {
    padding: 15px;
  }
  .welcome {
    padding: 32px 25px;
  }
  .welcome h1 {
    font-size: 32px;
  }
  .welcome-art {
    opacity: 0.35;
    right: -90px;
  }
  .shortcut-grid,
  .dash-columns {
    grid-template-columns: 1fr;
  }
  .dash-columns {
    gap: 35px;
  }
  .recent-cover {
    width: 60px;
    height: 70px;
  }
  .modal {
    padding: 35px 24px;
  }
}

/* Extended journeys */
.question-clickable {
  cursor: pointer;
  transition:
    padding 0.2s,
    background 0.2s;
}
.question-clickable:hover {
  background: #f4f7f2;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 10px;
}
.detail-page {
  max-width: 1180px;
  min-height: calc(100vh - 82px);
  margin: auto;
  padding: 42px 30px 100px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #65736d;
  padding: 8px 0;
  margin-bottom: 30px;
  font-size: 11px;
  font-weight: 700;
}
.back-link svg {
  transform: rotate(180deg);
}
.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 38px;
  align-items: start;
}
.topic-main {
  min-width: 0;
}
.topic-question {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px;
}
.quiet-icon {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #7e8a84;
}
.topic-labels {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 28px 0 11px;
}
.topic-labels > span:last-child {
  color: #81908a;
  font-size: 9px;
}
.topic-question h1 {
  max-width: 720px;
  margin-bottom: 23px;
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.12;
}
.topic-question > p {
  color: #56645e;
  font-size: 15px;
  line-height: 1.75;
}
.formula-card {
  margin: 27px 0;
  padding: 22px;
  border-left: 3px solid var(--green);
  background: #f0f5ed;
  display: flex;
  flex-direction: column;
}
.formula-card > span {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.formula-card > strong {
  font:
    600 22px Georgia,
    serif;
}
.formula-card p {
  margin: 12px 0 0;
  color: #65716c;
  font-size: 12px;
}
.topic-actions,
.answer-actions {
  display: flex;
  gap: 17px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.topic-actions button,
.answer-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #69766f;
  font-size: 10px;
  font-weight: 700;
}
.answer-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 46px 0 18px;
}
.answer-heading .kicker {
  margin-bottom: 7px;
}
.answer-heading h2 {
  margin: 0;
  font-size: 28px;
}
.answer-heading select {
  padding: 9px 28px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: #65716c;
  font-size: 9px;
}
.answer-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.answer-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  overflow: hidden;
}
.answer-card.accepted {
  border-color: #9ac7aa;
  box-shadow: 0 9px 30px rgba(8, 118, 83, 0.06);
}
.accepted-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -28px -28px 24px;
  padding: 9px 28px;
  background: #e2f0e5;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.answer-card > p {
  color: #55635d;
  font-size: 13px;
  line-height: 1.75;
}
.worked-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 20px 0;
  padding: 18px;
  border-radius: 8px;
  background: #f7f7f2;
  font-family: Georgia, serif;
  font-size: 13px;
}
.worked-example b,
.worked-example strong {
  grid-column: 1 / -1;
}
.worked-example strong {
  margin-top: 8px;
  color: var(--green);
  font-size: 16px;
}
.answer-actions {
  padding-top: 15px;
}
.reply-box {
  margin-top: 26px;
  padding: 28px;
  border-radius: 12px;
  background: var(--green-dark);
  color: white;
}
.reply-box > div:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
}
.reply-box .kicker {
  margin: 0 0 4px;
  color: var(--lime);
}
.reply-box h3 {
  margin: 0;
  font-size: 20px;
}
.reply-box textarea {
  width: 100%;
  margin: 19px 0 13px;
  padding: 15px;
  border: 1px solid #41695e;
  border-radius: 7px;
  outline: none;
  background: #153f35;
  color: white;
  resize: vertical;
}
.reply-box > div:last-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.reply-box small {
  color: #94b0a7;
  font-size: 9px;
}
.topic-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.topic-stat {
  display: inline-flex;
  flex-direction: column;
  width: 31%;
}
.topic-stat b {
  font: 700 22px "Manrope";
}
.topic-stat span {
  color: #82908a;
  font-size: 8px;
}
.related-topics {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.related-topics button {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #4c5d56;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
}
.community-note {
  padding: 25px;
  border-radius: 11px;
  background: #f5ebcc;
}
.community-note svg {
  color: #a67711;
}
.community-note h3 {
  margin: 14px 0 8px;
}
.community-note p {
  margin: 0;
  color: #756a50;
  font-size: 11px;
  line-height: 1.6;
}

/* Resource reader */
.resource-card {
  cursor: pointer;
}
.resource-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 38px;
  align-items: start;
}
.document-preview {
  padding: 0 35px 35px;
  border-radius: 13px;
  background: #e8ebe5;
}
.document-toolbar {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #68756f;
  font-size: 10px;
  font-weight: 700;
}
.document-toolbar div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.document-toolbar button {
  width: 27px;
  height: 27px;
  border: 1px solid #c8cfca;
  border-radius: 4px;
  background: #f8f9f5;
}
.document-page {
  min-height: 680px;
  padding: 58px 68px 38px;
  background: white;
  box-shadow: 0 17px 45px rgba(30, 45, 37, 0.14);
  position: relative;
}
.document-page > span {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.document-page h2 {
  margin: 14px 0 16px;
  font-size: 38px;
}
.document-lead {
  max-width: 430px;
  color: #68756f;
  font-size: 13px;
  line-height: 1.6;
}
.graph-demo {
  height: 220px;
  margin: 35px 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(#edf0ec 1px, transparent 1px),
    linear-gradient(90deg, #edf0ec 1px, transparent 1px);
  background-size: 30px 30px;
}
.graph-axis {
  position: absolute;
  background: #78847e;
}
.graph-axis.x {
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
}
.graph-axis.y {
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
}
.graph-curve {
  position: absolute;
  width: 270px;
  height: 140px;
  left: calc(50% - 135px);
  top: 34px;
  border-bottom: 4px solid var(--green);
  border-radius: 0 0 55% 55%;
  transform: rotate(-8deg);
}
.graph-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  left: 55%;
  top: 45%;
  border: 3px solid var(--green);
  border-radius: 50%;
  background: white;
}
.document-rule {
  margin: 20px 0;
  padding: 18px;
  border-left: 3px solid var(--yellow);
  background: #fbf5e3;
}
.document-rule small {
  display: block;
  color: #a37616;
  font-size: 7px;
  font-weight: 800;
}
.document-rule strong {
  display: inline-block;
  margin-top: 10px;
  font:
    600 23px Georgia,
    serif;
}
.document-rule p {
  display: inline;
  margin-left: 8px;
  font:
    13px Georgia,
    serif;
}
.document-page > p:last-of-type {
  color: #6b7772;
  font-size: 11px;
  line-height: 1.6;
}
.document-footer {
  position: absolute;
  left: 68px;
  right: 68px;
  bottom: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #9ba49f;
  font-size: 7px;
}
.resource-meta {
  position: sticky;
  top: 110px;
}
.resource-meta h1 {
  margin: 13px 0 16px;
  font-size: 37px;
  line-height: 1.12;
}
.resource-meta > p {
  color: #6b7772;
  font-size: 12px;
  line-height: 1.65;
}
.resource-author {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 25px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.resource-author > div {
  display: flex;
  flex-direction: column;
}
.resource-author strong {
  font-size: 11px;
}
.resource-author small {
  margin-top: 3px;
  color: #85918b;
  font-size: 8px;
}
.resource-facts {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 26px;
}
.resource-facts > div {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--green);
}
.resource-facts span {
  display: flex;
  flex-direction: column;
  color: #87928d;
  font-size: 8px;
}
.resource-facts b {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 10px;
}
.button.wide {
  width: 100%;
}
.resource-meta .button {
  margin-top: 9px;
}
.safety-copy {
  margin-top: 18px;
  padding: 14px;
  border-radius: 6px;
  background: #f1f4ef;
  font-size: 9px !important;
}

/* Tutor profile and booking */
.tutor-hero-card {
  display: grid;
  grid-template-columns: 180px 1fr 260px;
  gap: 30px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.profile-portrait {
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  position: relative;
}
.profile-portrait.yellow {
  background: #f2e2b7;
}
.profile-portrait > span {
  width: 105px;
  height: 105px;
  display: grid;
  place-items: center;
  border: 6px solid white;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  font: 800 25px "Manrope";
}
.profile-portrait > i {
  position: absolute;
  right: 32px;
  bottom: 33px;
  width: 16px;
  height: 16px;
  border: 3px solid white;
  border-radius: 50%;
  background: #43c883;
}
.tutor-hero-copy .verified h1 {
  font-size: 36px;
}
.tutor-hero-copy > p {
  margin: 5px 0;
  font-weight: 600;
}
.tutor-hero-copy > small {
  color: #81908a;
  font-size: 10px;
}
.profile-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0;
  font-size: 10px;
  color: #7e8984;
}
.profile-rating svg {
  color: #e1a923;
  fill: #e1a923;
}
.profile-rating i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a1aaa6;
}
.tutor-book-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 9px;
  background: #f3f6f1;
}
.tutor-book-card > small {
  color: #82908a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.tutor-book-card > strong {
  margin: 6px 0 13px;
  font: 700 21px "Manrope";
}
.tutor-book-card strong i {
  color: #83908a;
  font: 400 9px "DM Sans";
}
.tutor-book-card > span {
  margin-bottom: 15px;
  color: #67756f;
  font-size: 8px;
}
.tutor-book-card .online {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #3ac77d;
}
.tutor-book-card .button {
  margin-top: 7px;
}
.tutor-content-grid {
  display: grid;
  grid-template-columns: 1fr 285px;
  gap: 38px;
  margin-top: 38px;
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.profile-tabs button {
  padding: 13px 20px;
  border: 0;
  background: transparent;
  color: #7d8984;
  font-size: 11px;
  font-weight: 700;
  position: relative;
}
.profile-tabs button.active {
  color: var(--green);
}
.profile-tabs button.active:after {
  content: "";
  position: absolute;
  height: 3px;
  left: 16px;
  right: 16px;
  bottom: -1px;
  border-radius: 3px;
  background: var(--green);
}
.profile-section,
.availability-panel,
.review-list {
  padding: 36px 0;
}
.profile-section h2 {
  max-width: 600px;
  font-size: 31px;
}
.profile-section > p {
  max-width: 690px;
  color: #65726c;
  font-size: 13px;
  line-height: 1.75;
}
.teaching-style {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.teaching-style > div {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.teaching-style svg {
  margin-bottom: 20px;
  color: var(--green);
}
.teaching-style strong {
  font-size: 11px;
}
.teaching-style span {
  margin-top: 4px;
  color: #85908b;
  font-size: 9px;
}
.profile-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-side .aside-card p {
  color: #72807a;
  font-size: 11px;
  line-height: 1.6;
}
.availability-panel > div {
  display: grid;
  grid-template-columns: 1fr 100px 100px;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.availability-panel > div span {
  color: #73807a;
}
.availability-panel > div button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}
.review-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.review-list article > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-list article > div > span:last-child {
  margin-left: auto;
  color: #e3ad29;
  font-size: 11px;
}
.review-list p {
  margin: 14px 0 0 51px;
  color: #65716c;
  font-size: 12px;
}
.booking-page {
  max-width: 1080px;
  min-height: 100vh;
  margin: auto;
  padding: 45px 30px 90px;
}
.booking-header {
  max-width: 650px;
  margin: 10px 0 40px;
}
.booking-header h1 {
  margin-bottom: 11px;
  font-size: 48px;
}
.booking-header p {
  color: #75817c;
}
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.booking-panel,
.booking-summary,
.booking-success {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.booking-steps {
  display: flex;
  align-items: center;
  max-width: 240px;
  margin-bottom: 30px;
}
.booking-steps span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd3ce;
  border-radius: 50%;
  color: #89948f;
  font-size: 9px;
  font-weight: 800;
}
.booking-steps span.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.booking-steps i {
  flex: 1;
  height: 1px;
  background: #d9dedb;
}
.booking-panel h2 {
  margin: 25px 0 14px;
  font-size: 20px;
}
.date-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.date-row button,
.time-grid button {
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
.date-row button {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.date-row button small {
  color: #929c97;
  font-size: 7px;
}
.date-row button strong {
  font-size: 11px;
}
.date-row button.active,
.time-grid button.active {
  border-color: var(--green);
  background: #e7f1e8;
  color: var(--green);
}
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}
.time-grid button {
  font-size: 10px;
}
.booking-panel > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 17px 0;
  font-size: 10px;
  font-weight: 700;
}
.booking-panel select,
.booking-panel textarea {
  padding: 13px;
  border: 1px solid #cfd6d1;
  border-radius: 6px;
  background: white;
  outline: none;
}
.upload-box {
  flex-direction: row !important;
  align-items: center;
  padding: 18px;
  border: 1px dashed #b9c8c0;
  background: #f6f8f4;
  cursor: pointer;
}
.upload-box > span {
  display: flex;
  flex-direction: column;
  color: #8b9691;
  font-size: 8px;
}
.upload-box strong {
  color: var(--ink);
  font-size: 10px;
}
.upload-box input {
  display: none;
}
.booking-summary {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
}
.booking-summary > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.booking-summary > div:nth-child(2) strong {
  font-size: 11px;
}
.booking-summary > div:nth-child(2) small {
  color: #85918b;
  font-size: 8px;
}
.booking-summary hr,
.booking-summary > p,
.booking-total,
.booking-summary > small {
  grid-column: 1 / -1;
}
.booking-summary hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 12px 0;
}
.booking-summary > p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0;
  color: #66736d;
  font-size: 10px;
}
.booking-total {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.booking-total strong {
  font-size: 15px;
}
.booking-summary > small {
  color: #8e9893;
  font-size: 8px;
  line-height: 1.5;
}
.booking-success {
  max-width: 650px;
  margin: auto;
  padding: 60px;
  text-align: center;
}
.success-icon {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: #dfeee3;
  color: var(--green);
}
.booking-success h2 {
  font-size: 30px;
}
.booking-success p {
  max-width: 450px;
  margin: 0 auto 28px;
  color: #74807a;
}
.booking-success > div {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Account center */
.account-shell {
  display: grid;
  grid-template-columns: 225px 1fr;
  min-height: 100vh;
  background: #f5f6f1;
}
.account-nav {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 27px 18px;
  border-right: 1px solid var(--line);
  background: white;
  position: sticky;
  top: 0;
}
.account-nav > .brand {
  padding: 0 9px;
}
.account-nav nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 45px;
}
.account-nav nav button,
.account-back {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #65726c;
  font-size: 11px;
  text-align: left;
}
.account-nav nav button.active {
  background: #e7efe7;
  color: var(--green);
  font-weight: 800;
}
.account-back {
  margin-top: auto;
  color: var(--green);
}
.account-back svg {
  transform: rotate(180deg);
}
.account-content {
  width: 100%;
  min-width: 0;
  max-width: 1050px;
  margin: 0 auto;
  padding: 55px 38px 90px;
}
.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 38px;
}
.account-heading h1 {
  margin: 0 0 8px;
  font-size: 42px;
}
.account-heading p {
  margin: 0;
  color: #76827c;
  font-size: 12px;
}
.session-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 25px;
}
.session-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 23px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.featured-session {
  border-color: #9dc6aa;
}
.session-date {
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e3f0e6;
  color: var(--green);
}
.session-date.past {
  background: #eef0ed;
  color: #7d8983;
}
.session-date small,
.session-date span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.session-date strong {
  font: 700 27px/1.2 "Manrope";
}
.status-pill {
  display: inline-flex;
  padding: 5px 7px;
  border-radius: 3px;
  background: #eef0ed;
  color: #77837d;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.status-pill.confirmed {
  background: #e1efe4;
  color: var(--green);
}
.session-card h2 {
  margin: 8px 0 4px;
  font-size: 17px;
}
.session-card p {
  margin: 0;
  color: #83908a;
  font-size: 9px;
}
.session-meta {
  display: flex;
  gap: 15px;
  margin-top: 13px;
}
.session-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #65736c;
  font-size: 8px;
}
.session-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.session-actions .button {
  min-height: 38px;
  font-size: 9px;
}
.empty-state-panel {
  margin-top: 25px;
  padding: 80px 30px;
  border: 1px dashed #c8d0cb;
  border-radius: 10px;
  text-align: center;
  color: #7d8983;
}
.empty-state-panel h2 {
  margin: 18px 0 8px;
  color: var(--ink);
}
.empty-state-panel p {
  font-size: 11px;
}
.settings-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.identity-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 20px;
}
.profile-avatar-large {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1ce76;
  font: 800 20px "Manrope";
}
.identity-card .kicker {
  margin: 0;
}
.identity-card h2 {
  margin: 4px 0;
}
.identity-card p,
.settings-title p {
  margin: 0;
  color: #82908a;
  font-size: 9px;
}
.settings-title {
  margin-bottom: 22px;
}
.settings-title h2,
.settings-card > h2 {
  margin-bottom: 7px;
  font-size: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid label,
.auth-form form > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #4e5d56;
  font-size: 9px;
  font-weight: 800;
}
.form-grid input,
.form-grid select,
.auth-form input,
.auth-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d0d7d2;
  border-radius: 6px;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 11px;
}
.settings-card > .button {
  margin-top: 22px;
}
.toggle-row {
  display: flex;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.toggle-row > span {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.toggle-row strong {
  font-size: 11px;
}
.toggle-row small {
  margin-top: 4px;
  color: #84908b;
  font-size: 8px;
}
.toggle-row input {
  position: absolute;
  opacity: 0;
}
.toggle-row i {
  width: 36px;
  height: 20px;
  padding: 3px;
  border-radius: 20px;
  background: #cbd2ce;
  transition: 0.2s;
}
.toggle-row i:after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transition: 0.2s;
}
.toggle-row input:checked + i {
  background: var(--green);
}
.toggle-row input:checked + i:after {
  transform: translateX(16px);
}
.notification-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.notification-list > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
}
.notification-list > button.unread {
  background: #f1f6ef;
}
.notification-list > button.unread:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.notification-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5eee5;
  color: var(--green);
  flex: none;
}
.notification-list > button > div {
  flex: 1;
}
.notification-list strong {
  font-size: 11px;
}
.notification-list p {
  margin: 4px 0;
  color: #6e7a74;
  font-size: 10px;
}
.notification-list small {
  color: #9aa39f;
  font-size: 8px;
}
.notification-list > button > svg {
  color: #9ba49f;
}

/* Authentication */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) 1.1fr;
}
.auth-story {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 5vw;
  background: var(--green-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.auth-brand {
  color: white;
  position: relative;
  z-index: 2;
}
.auth-story > div {
  position: relative;
  z-index: 2;
}
.auth-story h1 {
  max-width: 520px;
  font-size: clamp(45px, 5vw, 70px);
  line-height: 1.05;
}
.auth-story h1 em {
  color: var(--lime);
}
.auth-story > div > p {
  max-width: 470px;
  color: #b8cbc4;
  line-height: 1.7;
}
.auth-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #b8cbc4;
  font-size: 10px;
}
.auth-proof .avatar-stack span {
  border-color: var(--green-dark);
}
.auth-circle {
  position: absolute !important;
  width: 500px;
  height: 500px;
  right: -210px;
  bottom: -180px;
  border: 1px solid #315e52;
  border-radius: 50%;
}
.auth-circle.c2 {
  width: 330px;
  height: 330px;
  right: -120px;
  bottom: -90px;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 55px;
  background: var(--cream);
}
.auth-form {
  width: min(460px, 100%);
}
.mobile-auth-brand {
  display: none;
}
.auth-form > h2,
.auth-success h2 {
  margin: 0 0 10px;
  font-size: 38px;
}
.auth-form > p,
.auth-success > p {
  margin-bottom: 27px;
  color: #74807b;
  font-size: 12px;
}
.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form .form-grid {
  gap: 10px;
}
.auth-form .forgot {
  margin: 0;
}
.terms-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px !important;
  color: #74807b !important;
  font-weight: 400 !important;
  line-height: 1.5;
}
.terms-check input {
  width: auto;
  margin-top: 2px;
}
.auth-switch {
  margin: 0 !important;
  text-align: center;
}
.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 800;
}
.auth-success {
  text-align: center;
}

@media (max-width: 980px) {
  .topic-layout,
  .tutor-content-grid {
    grid-template-columns: 1fr;
  }
  .topic-aside,
  .profile-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .resource-detail-grid {
    grid-template-columns: 1fr;
  }
  .resource-meta {
    position: static;
  }
  .tutor-hero-card {
    grid-template-columns: 150px 1fr;
  }
  .tutor-book-card {
    grid-column: 1 / -1;
  }
  .account-shell {
    grid-template-columns: 75px 1fr;
  }
  .account-nav {
    padding: 25px 10px;
  }
  .account-nav .brand span,
  .account-nav nav button,
  .account-back {
    font-size: 0;
    justify-content: center;
  }
  .account-nav .brand {
    justify-content: center;
  }
  .auth-page {
    grid-template-columns: minmax(320px, 0.8fr) 1.2fr;
  }
}

@media (max-width: 700px) {
  .detail-page,
  .booking-page {
    padding: 28px 18px 70px;
  }
  .topic-question {
    padding: 24px 20px;
  }
  .topic-question h1 {
    font-size: 33px;
  }
  .topic-actions {
    flex-wrap: wrap;
  }
  .worked-example {
    grid-template-columns: 1fr;
  }
  .worked-example b,
  .worked-example strong {
    grid-column: auto;
  }
  .reply-box {
    padding: 22px 18px;
  }
  .reply-box > div:last-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .topic-aside,
  .profile-side {
    grid-template-columns: 1fr;
  }
  .document-preview {
    padding: 0 12px 12px;
  }
  .document-page {
    min-height: 590px;
    padding: 35px 25px;
  }
  .document-page h2 {
    font-size: 30px;
  }
  .document-footer {
    left: 25px;
    right: 25px;
  }
  .tutor-hero-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .profile-portrait {
    height: 210px;
  }
  .tutor-hero-copy .verified h1 {
    font-size: 31px;
  }
  .teaching-style {
    grid-template-columns: 1fr;
  }
  .availability-panel > div {
    grid-template-columns: 1fr 80px;
  }
  .availability-panel > div button {
    grid-column: 1 / -1;
    text-align: left;
  }
  .booking-header h1 {
    font-size: 38px;
  }
  .booking-grid {
    grid-template-columns: 1fr;
  }
  .booking-panel,
  .booking-summary {
    padding: 22px 18px;
  }
  .date-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .time-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .booking-success {
    padding: 40px 20px;
  }
  .booking-success > div {
    flex-direction: column;
  }
  .account-shell {
    display: block;
  }
  .account-nav {
    width: 100%;
    height: 65px;
    padding: 10px 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    z-index: 10;
  }
  .account-nav > .brand {
    display: none;
  }
  .account-nav nav {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    margin: 0;
  }
  .account-nav nav button {
    width: 44px;
    padding: 10px;
  }
  .account-back {
    display: none;
  }
  .account-content {
    padding: 35px 18px 70px;
  }
  .account-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-heading h1 {
    font-size: 35px;
  }
  .session-card {
    grid-template-columns: 65px 1fr;
    align-items: start;
  }
  .session-actions {
    grid-column: 1 / -1;
  }
  .identity-card {
    grid-template-columns: 65px 1fr;
  }
  .profile-avatar-large {
    width: 65px;
    height: 65px;
  }
  .identity-card .button {
    grid-column: 1 / -1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .notification-list > button {
    padding: 16px 13px;
  }
  .auth-page {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-form-wrap {
    min-height: 100vh;
    padding: 32px 20px;
  }
  .mobile-auth-brand {
    display: inline-flex;
    margin-bottom: 65px;
  }
  .auth-form > h2,
  .auth-success h2 {
    font-size: 33px;
  }
}

/* Final interaction and content surfaces */
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(8, 118, 83, 0.25);
  outline-offset: 3px;
}
.dash-user {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.app-notice {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border: 1px solid #3d675b;
  border-radius: 9px;
  background: var(--green-dark);
  box-shadow: 0 18px 50px rgba(5, 37, 29, 0.25);
  color: white;
  font-size: 11px;
  font-weight: 600;
  animation: notice-in 0.25s ease both;
}
.app-notice > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-dark);
  flex: none;
}
@keyframes notice-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
}
.pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 25px;
}
.pack-card {
  display: grid;
  grid-template-columns: 92px 1fr 24px;
  gap: 17px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.pack-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(21, 42, 35, 0.08);
}
.pack-cover {
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-radius: 7px;
  color: var(--green);
}
.pack-cover.green {
  background: #e2efe4;
}
.pack-cover.gold {
  background: #f5ebce;
  color: #987018;
}
.pack-cover.blue {
  background: #e0ebf7;
  color: #486e9c;
}
.pack-cover span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.pack-card h2 {
  margin: 6px 0 4px;
  font-size: 16px;
}
.pack-card p {
  margin: 0 0 12px;
  color: #84908b;
  font-size: 8px;
}
.pack-card .progress {
  max-width: 210px;
}
.pack-card > svg {
  color: var(--green);
}
.info-page {
  min-height: calc(100vh - 82px);
}
.info-hero {
  max-width: 960px;
  margin: auto;
  padding: 105px 30px 85px;
  text-align: center;
}
.info-hero h1 {
  max-width: 880px;
  margin: 0 auto 25px;
  font-size: clamp(45px, 6vw, 75px);
  line-height: 1.04;
}
.info-hero > p {
  max-width: 670px;
  margin: 0 auto 30px;
  color: #68756f;
  font-size: 16px;
  line-height: 1.7;
}
.info-grid {
  max-width: 1160px;
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 30px;
}
.info-grid article {
  min-height: 230px;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.info-grid article:nth-child(2) {
  background: #e8f1e5;
}
.info-grid article:nth-child(3) {
  background: #f7edd1;
}
.info-grid h2 {
  font-size: 21px;
  line-height: 1.25;
}
.info-grid p {
  color: #6c7872;
  font-size: 12px;
  line-height: 1.7;
}
.info-cta {
  min-height: 260px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 60px max(6vw, calc((100vw - 1100px) / 2));
  background: var(--green-dark);
  color: white;
}
.info-cta h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}
.feedback-form-card {
  max-width: 720px;
  margin: 0 auto 100px;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.feedback-form-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feedback-form-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #56645e;
  font-size: 10px;
  font-weight: 800;
}
.feedback-form-card select,
.feedback-form-card textarea {
  padding: 13px;
  border: 1px solid #cfd7d2;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  outline: none;
}
.feedback-form-card .button {
  align-self: flex-start;
}

@media (max-width: 700px) {
  .app-notice {
    right: 16px;
    bottom: 16px;
  }
  .pack-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .pack-card {
    grid-template-columns: 75px 1fr 20px;
  }
  .pack-cover {
    height: 95px;
  }
  .info-hero {
    padding: 70px 20px 55px;
  }
  .info-hero h1 {
    font-size: 43px;
  }
  .info-grid {
    margin-bottom: 70px;
    padding: 0 20px;
  }
  .info-grid article {
    min-height: 190px;
  }
  .info-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 55px 22px;
  }
  .feedback-form-card {
    margin: 0 20px 70px;
    padding: 24px 18px;
  }
}

/* Tutor application */
.application-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) 1.28fr;
  background: var(--cream);
}
.application-aside {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 45px 4.5vw;
  background: var(--green-dark);
  color: white;
  position: sticky;
  top: 0;
  overflow: hidden;
}
.application-brand {
  color: white;
  position: relative;
  z-index: 2;
}
.application-aside > div {
  position: relative;
  z-index: 2;
}
.application-aside h1 {
  max-width: 520px;
  margin-bottom: 22px;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.05;
}
.application-aside > div > p {
  max-width: 430px;
  color: #b9ccc5;
  font-size: 14px;
  line-height: 1.7;
}
.application-promise {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aec5bd;
}
.application-promise > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(201, 239, 106, 0.14);
  color: var(--lime);
}
.application-promise span {
  display: flex;
  flex-direction: column;
  font-size: 9px;
}
.application-promise strong {
  margin-bottom: 3px;
  color: white;
  font-size: 10px;
}
.application-main {
  min-width: 0;
  padding: 38px clamp(30px, 6vw, 90px) 80px;
}
.application-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.application-top .back-link {
  margin: 0;
}
.application-top > span {
  color: #7e8a84;
  font-size: 9px;
  font-weight: 700;
}
.application-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 18px 0 65px;
}
.application-progress span {
  height: 4px;
  border-radius: 4px;
  background: #dfe4e0;
  transition: background 0.25s;
}
.application-progress span.active {
  background: var(--green);
}
.application-form-wrap {
  width: min(720px, 100%);
  margin: auto;
}
.application-form-wrap form > .kicker {
  margin-bottom: 11px;
}
.application-form-wrap form > h2 {
  margin-bottom: 9px;
  font-size: clamp(32px, 4vw, 46px);
}
.application-form-wrap form > p {
  margin-bottom: 34px;
  color: #74817b;
  font-size: 12px;
  line-height: 1.6;
}
.application-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.application-form-wrap label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
  color: #53615b;
  font-size: 9px;
  font-weight: 800;
}
.application-form-wrap input,
.application-form-wrap select,
.application-form-wrap textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #cfd6d1;
  border-radius: 6px;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 11px;
}
.application-form-wrap textarea {
  line-height: 1.6;
  resize: vertical;
}
.application-form-wrap label > small {
  color: #8b9691;
  font-size: 8px;
  font-weight: 400;
}
.eligibility-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 11px !important;
  margin: 25px 0 !important;
  padding: 17px;
  border-radius: 7px;
  background: #eff4ed;
  cursor: pointer;
}
.eligibility-check input {
  width: auto;
  margin-top: 2px;
}
.eligibility-check span {
  display: flex;
  flex-direction: column;
  color: #7a8680;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.5;
}
.eligibility-check strong {
  color: var(--ink);
  font-size: 10px;
}
.application-next {
  min-width: 220px;
  margin-top: 5px;
}
.application-next:disabled {
  background: #b7c2bd;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.subject-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.subject-selector button {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid #cfd6d1;
  border-radius: 7px;
  background: white;
  color: #5e6c65;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}
.subject-selector button.selected {
  border-color: var(--green);
  background: #e8f2e8;
  color: var(--green);
}
.selected-count {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 15px 0 30px;
  color: #85908b;
  font-size: 8px;
}
.selected-count .progress {
  width: 120px;
}
.teaching-values {
  margin: 25px 0;
  padding: 20px;
  border-left: 3px solid var(--yellow);
  background: #f8f1dc;
}
.teaching-values .kicker {
  margin-bottom: 7px;
  color: #9c7318;
}
.teaching-values p {
  margin: 0;
  color: #71684f;
  font-size: 10px;
  line-height: 1.65;
}
.credential-upload {
  min-height: 135px;
  display: grid !important;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 15px !important;
  padding: 24px;
  border: 1px dashed #aebdb5;
  border-radius: 9px;
  background: #f6f8f4;
  cursor: pointer;
}
.credential-upload.has-file {
  border-style: solid;
  border-color: #8fbea0;
  background: #eaf3e9;
}
.credential-upload > svg {
  color: var(--green);
}
.credential-upload > span {
  display: flex;
  flex-direction: column;
  color: #85918b;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.5;
}
.credential-upload strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 11px;
}
.credential-upload b {
  color: var(--green);
  font-size: 9px;
}
.credential-upload input {
  display: none;
}
.availability-choice {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  margin: 30px 0;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.availability-choice .kicker {
  margin-bottom: 6px;
}
.availability-choice h3 {
  margin: 0;
  font-size: 16px;
}
.availability-choice > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.availability-choice label {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  font-size: 8px;
  cursor: pointer;
}
.availability-choice input {
  width: auto;
}
.rate-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 20px;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
}
.rate-preview > div {
  display: flex;
  flex-direction: column;
}
.rate-preview span {
  color: var(--lime);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.11em;
}
.rate-preview strong {
  margin-top: 6px;
  font: 700 20px "Manrope";
}
.rate-preview strong small {
  color: #acc2ba;
  font: 400 8px "DM Sans";
}
.rate-preview p {
  max-width: 230px;
  margin: 0;
  color: #acc2ba;
  font-size: 8px;
  line-height: 1.5;
}
.submission-note {
  display: inline-block;
  margin: 15px 0 0 15px !important;
  font-size: 8px !important;
}
.application-success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 55px 20px;
  background: radial-gradient(circle at 15% 10%, #e4f0df 0, transparent 28%), var(--cream);
}
.application-success-card {
  width: min(760px, 100%);
  padding: 55px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 25px 70px rgba(23, 44, 37, 0.09);
  text-align: center;
}
.application-success-card h1 {
  max-width: 620px;
  margin: 5px auto 18px;
  font-size: clamp(38px, 5vw, 55px);
  line-height: 1.08;
}
.application-success-card > p {
  max-width: 580px;
  margin: 0 auto;
  color: #718079;
  font-size: 12px;
  line-height: 1.7;
}
.application-reference {
  display: inline-flex;
  flex-direction: column;
  margin: 28px 0;
  padding: 12px 24px;
  border-radius: 6px;
  background: #eef4ea;
}
.application-reference span {
  color: #83908a;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.application-reference strong {
  margin-top: 4px;
  color: var(--green);
  font: 700 14px "Manrope";
}
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 30px;
  text-align: left;
}
.next-steps > div {
  display: flex;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.next-steps > div > span {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}
.next-steps p {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #87928c;
  font-size: 8px;
  line-height: 1.45;
}
.next-steps strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 9px;
}
.application-success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 850px) {
  .application-page {
    display: block;
  }
  .application-aside {
    min-height: 350px;
    position: relative;
    padding: 35px;
  }
  .application-aside h1 {
    max-width: 600px;
    font-size: 44px;
  }
  .application-brand {
    margin-bottom: 55px;
  }
  .application-promise {
    margin-top: 30px;
  }
}

@media (max-width: 600px) {
  .application-aside {
    min-height: 310px;
    padding: 28px 20px;
  }
  .application-brand {
    margin-bottom: 45px;
  }
  .application-aside h1 {
    font-size: 36px;
  }
  .application-aside > div > p {
    font-size: 11px;
  }
  .application-promise {
    display: none;
  }
  .application-main {
    padding: 25px 18px 60px;
  }
  .application-progress {
    margin-bottom: 45px;
  }
  .application-form-grid,
  .subject-selector,
  .availability-choice,
  .availability-choice > div:last-child {
    grid-template-columns: 1fr;
  }
  .credential-upload {
    grid-template-columns: 36px 1fr;
    padding: 19px;
  }
  .credential-upload b {
    grid-column: 2;
  }
  .rate-preview {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .application-next {
    width: 100%;
  }
  .submission-note {
    display: block;
    margin-left: 0 !important;
    text-align: center;
  }
  .application-success-card {
    padding: 38px 20px;
  }
  .next-steps {
    grid-template-columns: 1fr;
  }
  .application-success-actions {
    flex-direction: column;
  }
}

/* Study pack learning experience */
.study-pack-page {
  min-height: 100vh;
  background: #f5f6f1;
}
.pack-header {
  padding: 25px max(4vw, calc((100vw - 1180px) / 2)) 0;
  border-bottom: 1px solid var(--line);
  background: white;
}
.pack-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pack-header-top .back-link {
  margin: 0;
}
.pack-header-actions {
  display: flex;
  gap: 7px;
}
.pack-header-actions button {
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: #68756f;
  font-size: 9px;
  font-weight: 700;
}
.pack-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 30px 0 25px;
}
.pack-title-row h1 {
  margin: 13px 0 5px;
  font-size: clamp(31px, 4vw, 47px);
}
.pack-title-row p {
  margin: 0;
  color: #85908b;
  font-size: 9px;
}
.pack-progress-ring,
.result-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--progress), #e4e8e4 0);
  position: relative;
  flex: none;
}
.pack-progress-ring:after,
.result-ring:after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: white;
}
.pack-progress-ring > span,
.result-ring > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #87928c;
  font-size: 7px;
  position: relative;
  z-index: 1;
}
.pack-progress-ring strong,
.result-ring strong {
  color: var(--ink);
  font: 800 17px "Manrope";
}
.pack-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}
.pack-tabs button {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: #76837d;
  font-size: 10px;
  font-weight: 700;
  position: relative;
}
.pack-tabs button > span {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eef0ed;
  color: #87918d;
  font-size: 7px;
}
.pack-tabs button.active {
  color: var(--green);
}
.pack-tabs button.active:after {
  content: "";
  position: absolute;
  height: 3px;
  left: 14px;
  right: 14px;
  bottom: 0;
  border-radius: 3px;
  background: var(--green);
}
.pack-tabs button.active > span {
  background: #e1eee4;
  color: var(--green);
}
.pack-content {
  width: min(1180px, calc(100% - 50px));
  margin: auto;
  padding: 38px 0 90px;
}
.pack-welcome {
  min-height: 285px;
  padding: 45px 48px;
  border-radius: 15px;
  background: var(--green-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.pack-welcome h2 {
  max-width: 620px;
  margin-bottom: 12px;
  font-size: clamp(31px, 4vw, 45px);
}
.pack-welcome > p {
  max-width: 570px;
  color: #afc5bd;
  font-size: 12px;
  line-height: 1.65;
  position: relative;
  z-index: 2;
}
.pack-overview-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  position: relative;
  z-index: 2;
}
.pack-welcome .button.outline {
  border-color: #54766d;
  color: white;
}
.pack-art {
  position: absolute;
  width: 260px;
  right: 20px;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  color: var(--lime);
}
.cell {
  position: absolute;
  border: 1px solid #53766c;
  border-radius: 50%;
}
.cell-a {
  width: 210px;
  height: 210px;
}
.cell-b {
  width: 130px;
  height: 130px;
  border-color: #769c90;
}
.pack-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 16px 0 42px;
}
.pack-metrics article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.metric-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--green);
  flex: none;
}
.metric-icon.mint {
  background: #e1eee3;
}
.metric-icon.gold {
  background: #f7edce;
  color: #9c741a;
}
.metric-icon.blue {
  background: #e0eaf6;
  color: #5579a5;
}
.pack-metrics article > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pack-metrics strong {
  font-size: 10px;
}
.pack-metrics article > div span {
  margin-top: 3px;
  color: #89948f;
  font-size: 8px;
}
.pack-metrics button {
  border: 0;
  background: transparent;
  color: var(--green);
}
.pack-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 15px;
}
.pack-section-heading .kicker {
  margin-bottom: 6px;
}
.pack-section-heading h2 {
  margin: 0;
  font-size: 25px;
}
.pack-section-heading > span {
  color: #87928c;
  font-size: 9px;
}
.roadmap-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.roadmap-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
}
.roadmap-list > button:hover {
  background: #f7f9f5;
}
.roadmap-list > button:last-child {
  border: 0;
}
.roadmap-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d4d9d6;
  border-radius: 50%;
  color: #84908b;
  font-size: 8px;
  font-weight: 800;
}
.roadmap-number.complete {
  border-color: #b6d0be;
  background: #e3f0e6;
  color: var(--green);
}
.roadmap-list > button > div {
  display: flex;
  flex-direction: column;
}
.roadmap-list strong {
  font-size: 11px;
}
.roadmap-list p {
  margin: 4px 0 0;
  color: #86918c;
  font-size: 8px;
}
.roadmap-list > button > svg {
  color: #98a29d;
}

/* Pack summary */
.summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 38px;
  align-items: start;
}
.summary-main {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.summary-main > h2 {
  max-width: 780px;
  font-size: clamp(31px, 4vw, 45px);
  line-height: 1.12;
}
.summary-lead {
  max-width: 720px;
  color: #65736c;
  font-size: 14px;
  line-height: 1.75;
}
.process-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 35px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.process-flow > div {
  display: flex;
  flex-direction: column;
  padding: 19px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process-flow > div:last-child {
  border: 0;
}
.process-flow > div > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #e4efe5;
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
}
.process-flow strong {
  font-size: 10px;
}
.process-flow small {
  margin: 4px 0 13px;
  color: #89948f;
  font-size: 8px;
}
.process-flow b {
  color: var(--green);
  font-size: 10px;
}
.summary-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.summary-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
}
.summary-section p {
  margin: 0;
  color: #64726b;
  font-size: 12px;
  line-height: 1.8;
}
.remember-callout {
  display: flex;
  gap: 14px;
  padding: 22px;
  border-radius: 9px;
  background: #f8efd4;
  color: #9c7419;
}
.remember-callout div {
  color: var(--ink);
}
.remember-callout strong {
  font-size: 11px;
}
.remember-callout p {
  margin: 6px 0 0;
  color: #706851;
  font-size: 10px;
  line-height: 1.65;
}
.summary-aside {
  position: sticky;
  top: 25px;
}
.summary-aside > div {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  padding: 25px;
  border-radius: 10px;
  background: var(--green-dark);
  color: white;
}
.summary-aside strong {
  font: 700 29px "Manrope";
}
.summary-aside p {
  margin: 0 0 18px;
  color: #a8beb6;
  font-size: 8px;
}

/* Flashcard study mode */
.flashcard-study,
.quiz-shell {
  width: min(900px, 100%);
  margin: auto;
}
.study-mode-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 25px;
}
.study-mode-heading .kicker {
  margin-bottom: 6px;
}
.study-mode-heading h2 {
  margin: 0 0 5px;
  font-size: 32px;
}
.study-mode-heading p {
  margin: 0;
  color: #7d8983;
  font-size: 10px;
}
.study-mode-heading > span {
  color: #75817b;
  font-size: 9px;
  font-weight: 700;
}
.flashcard-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 30px;
}
.flashcard-progress span {
  height: 4px;
  border-radius: 4px;
  background: #dce2de;
}
.flashcard-progress span.current {
  background: var(--yellow);
}
.flashcard-progress span.known {
  background: var(--green);
}
.study-card-stage {
  display: grid;
  grid-template-columns: 45px 1fr 45px;
  gap: 18px;
  align-items: center;
}
.card-nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--green);
}
.card-nav.previous svg {
  transform: rotate(180deg);
}
.study-flashcard {
  height: 410px;
  min-height: 410px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  perspective: 1400px;
  transition: transform 0.25s ease;
}
.study-flashcard:hover {
  transform: translateY(-3px);
}
.study-flashcard-inner {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.2, 0.72, 0.25, 1);
}
.study-flashcard.is-flipped .study-flashcard-inner {
  transform: rotateY(180deg);
}
.study-flashcard-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 55px;
  border: 1px solid #c9d8cc;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(21, 42, 35, 0.1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.study-flashcard-front {
  background:
    radial-gradient(circle at top right, rgba(201, 239, 106, 0.2), transparent 34%),
    linear-gradient(145deg, #fff 0%, #fbfdf8 100%);
}
.study-flashcard-back {
  background:
    radial-gradient(circle at top left, rgba(244, 199, 90, 0.26), transparent 38%),
    linear-gradient(145deg, #fffdf9 0%, #fbf5e5 100%);
  transform: rotateY(180deg);
}
.study-flashcard-face:before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -95px;
  bottom: -95px;
  border: 1px solid rgba(8, 118, 83, 0.12);
  border-radius: 50%;
}
.study-flashcard-back:before {
  left: -95px;
  right: auto;
  border-color: rgba(174, 126, 22, 0.15);
}
.flip-corner {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 118, 83, 0.09);
  color: var(--green);
}
.study-flashcard-back .flip-corner {
  background: rgba(174, 126, 22, 0.1);
  color: #9b7116;
}
.study-card-label {
  padding: 7px 11px;
  border-radius: 20px;
  background: #e6f0e5;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.study-flashcard-face strong {
  max-width: 610px;
  margin: 35px 0;
  font: 600 clamp(25px, 4vw, 38px) / 1.35 "Manrope";
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}
.study-flashcard-back strong {
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.55;
}
.study-flashcard-face small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #85918b;
  font-size: 9px;
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .study-flashcard-inner {
    transition-duration: 0.01ms;
  }
}
.recall-actions {
  min-height: 83px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 63px 0;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.recall-actions.visible {
  border-color: var(--line);
  background: white;
  opacity: 1;
  pointer-events: auto;
}
.recall-actions > span {
  color: #65736c;
  font-size: 10px;
  font-weight: 700;
}
.recall-actions > div {
  display: flex;
  gap: 8px;
}
.recall-actions button {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
}
.review-again {
  border: 1px solid #d7dcd9;
  background: white;
  color: #68756f;
}
.got-it {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: var(--green);
  color: white;
}
.keyboard-hint {
  margin-top: 14px;
  color: #9aa39f;
  font-size: 8px;
  text-align: center;
}

/* Quiz mode */
.quiz-progress {
  height: 5px;
  margin-bottom: 24px;
  border-radius: 5px;
  background: #dfe4e0;
  overflow: hidden;
}
.quiz-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.3s;
}
.quiz-card {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.quiz-number {
  color: var(--green);
  font: 800 10px "Manrope";
  letter-spacing: 0.1em;
}
.quiz-card > h3 {
  max-width: 720px;
  margin: 15px 0 27px;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.3;
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quiz-options button {
  min-height: 61px;
  display: grid;
  grid-template-columns: 31px 1fr 22px;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid #d2d9d4;
  border-radius: 8px;
  background: white;
  color: #52615a;
  font-size: 11px;
  text-align: left;
}
.quiz-options button:hover {
  border-color: #97b7a1;
}
.quiz-options button > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f2ef;
  color: #738079;
  font-size: 8px;
  font-weight: 800;
}
.quiz-options button.selected {
  border-color: var(--green);
  background: #edf4eb;
}
.quiz-options button.correct {
  border-color: #71ac85;
  background: #e5f1e7;
  color: var(--green);
}
.quiz-options button.incorrect {
  border-color: #d69a87;
  background: #f8ebe7;
  color: #a5513a;
}
.quiz-options button > svg {
  justify-self: end;
}
.quiz-explanation {
  margin-top: 17px;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: #edf4eb;
}
.quiz-explanation.incorrect {
  border-color: #c87960;
  background: #f8ece8;
}
.quiz-explanation strong {
  font-size: 10px;
}
.quiz-explanation p {
  margin: 5px 0 0;
  color: #68756f;
  font-size: 10px;
  line-height: 1.55;
}
.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.quiz-footer > span {
  color: #8b9691;
  font-size: 8px;
}
.quiz-footer .button:disabled,
.answer-tools .button:disabled {
  background: #bdc5c1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.quiz-result {
  padding: 60px 30px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  text-align: center;
}
.result-ring {
  width: 135px;
  height: 135px;
  margin: 0 auto 28px;
  background: conic-gradient(var(--green) var(--score), #e4e8e4 0);
}
.result-ring:after {
  inset: 10px;
}
.result-ring strong {
  font-size: 27px;
}
.quiz-result h2 {
  margin: 2px 0 12px;
  font-size: 36px;
}
.quiz-result > p {
  max-width: 530px;
  margin: 0 auto 27px;
  color: #718078;
  font-size: 12px;
  line-height: 1.65;
}
.quiz-result > div:last-child {
  display: flex;
  justify-content: center;
  gap: 9px;
}

/* Written practice mode */
.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 30px;
  align-items: start;
}
.practice-main {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.practice-main > h2 {
  max-width: 780px;
  font-size: clamp(26px, 4vw, 39px);
  line-height: 1.2;
}
.question-guidance {
  display: flex;
  gap: 12px;
  margin: 23px 0;
  padding: 16px;
  border-radius: 7px;
  background: #edf3ea;
  color: var(--green);
}
.question-guidance p {
  margin: 0;
  color: #64716b;
  font-size: 10px;
  line-height: 1.55;
}
.practice-main > label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #4f5e57;
  font-size: 9px;
  font-weight: 800;
}
.practice-main textarea {
  padding: 16px;
  border: 1px solid #cbd4ce;
  border-radius: 7px;
  outline: 0;
  resize: vertical;
  color: var(--ink);
  line-height: 1.6;
}
.answer-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.answer-tools > span {
  color: #919b96;
  font-size: 8px;
}
.answer-feedback {
  margin-top: 26px;
  padding: 23px;
  border: 1px solid #a9cbb4;
  border-radius: 10px;
  background: #f0f6ee;
}
.feedback-score {
  display: flex;
  align-items: center;
  gap: 11px;
}
.feedback-score > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
}
.feedback-score > div {
  display: flex;
  flex-direction: column;
}
.feedback-score strong {
  font-size: 12px;
}
.feedback-score small {
  margin-top: 3px;
  color: #718078;
  font-size: 8px;
}
.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.feedback-grid > div {
  padding: 15px;
  border-radius: 6px;
  background: white;
}
.feedback-grid span {
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.feedback-grid p,
.model-point p {
  margin: 6px 0 0;
  color: #68756f;
  font-size: 9px;
  line-height: 1.6;
}
.model-point {
  padding: 15px;
  border-left: 3px solid var(--yellow);
  background: #fcf8eb;
}
.model-point strong {
  font-size: 9px;
}
.answer-feedback > button {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}
.practice-aside {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.practice-aside > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #76827c;
  font-size: 9px;
  text-align: left;
}
.practice-aside > button > span {
  color: #9aa39f;
  font-size: 7px;
  font-weight: 800;
}
.practice-aside > button.active {
  color: var(--green);
  font-weight: 800;
}
.practice-aside > button.active > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2eee4;
  color: var(--green);
}
.practice-aside > div {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  color: #a57919;
}
.practice-aside > div p {
  margin: 0;
  color: #7a725d;
  font-size: 8px;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .summary-layout,
  .practice-layout {
    grid-template-columns: 1fr;
  }
  .summary-aside {
    position: static;
  }
  .pack-art {
    opacity: 0.28;
  }
  .pack-welcome > *:not(.pack-art) {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 650px) {
  .pack-header {
    padding: 18px 18px 0;
  }
  .pack-header-actions button:first-child {
    font-size: 0;
  }
  .pack-header-actions button:first-child svg {
    width: 18px;
    height: 18px;
  }
  .pack-title-row {
    align-items: flex-start;
  }
  .pack-title-row h1 {
    font-size: 30px;
  }
  .pack-progress-ring {
    width: 69px;
    height: 69px;
  }
  .pack-progress-ring strong {
    font-size: 14px;
  }
  .pack-tabs {
    margin: 0 -18px;
    padding: 0 10px;
  }
  .pack-tabs button {
    padding: 14px 11px;
  }
  .pack-content {
    width: calc(100% - 30px);
    padding-top: 22px;
  }
  .pack-welcome {
    min-height: 350px;
    padding: 31px 24px;
  }
  .pack-welcome h2 {
    font-size: 32px;
  }
  .pack-overview-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .pack-art {
    right: -60px;
    bottom: -90px;
    top: auto;
    height: 240px;
  }
  .pack-metrics {
    grid-template-columns: 1fr;
  }
  .roadmap-list > button {
    grid-template-columns: 34px 1fr 16px;
    padding: 16px 13px;
  }
  .summary-main,
  .quiz-card,
  .practice-main {
    padding: 24px 18px;
  }
  .process-flow {
    grid-template-columns: 1fr;
  }
  .process-flow > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .study-mode-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .study-card-stage {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .study-flashcard {
    height: 380px;
    min-height: 380px;
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0;
  }
  .study-flashcard-face {
    padding: 34px 20px;
  }
  .card-nav {
    width: 100%;
    border-radius: 7px;
  }
  .card-nav.previous {
    grid-column: 1;
  }
  .card-nav.next {
    grid-column: 2;
  }
  .recall-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 0;
  }
  .recall-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .quiz-options {
    grid-template-columns: 1fr;
  }
  .quiz-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .quiz-result {
    padding: 40px 18px;
  }
  .quiz-result > div:last-child {
    flex-direction: column;
  }
  .feedback-grid {
    grid-template-columns: 1fr;
  }
  .answer-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
}

/* Administrative and tutor workspaces */
.role-dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  background: #f4f5f0;
}
.role-sidebar {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 27px 16px 18px;
  border-right: 1px solid var(--line);
  background: white;
  position: sticky;
  top: 0;
  z-index: 15;
}
.role-sidebar > .brand {
  padding: 0 10px;
}
.role-label {
  margin: 41px 12px 10px;
  color: #98a19d;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.role-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.role-sidebar nav button {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #65726c;
  font-size: 10px;
  text-align: left;
}
.role-sidebar nav button.active {
  background: #e6f0e6;
  color: var(--green);
  font-weight: 800;
}
.role-sidebar nav button b {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f4e4b7;
  color: #8a6311;
  font-size: 7px;
}
.role-sidebar-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 16px 7px 0;
  border-top: 1px solid var(--line);
}
.role-sidebar-foot > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.role-sidebar-foot strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-sidebar-foot small {
  margin-top: 2px;
  color: #8b9691;
  font-size: 7px;
}
.role-sidebar-foot > button {
  border: 0;
  background: transparent;
  color: #84908a;
}
.role-main {
  min-width: 0;
}
.role-topbar {
  height: 69px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.role-topbar .searchbox {
  max-width: 440px;
}
.role-date {
  margin-left: auto;
  color: #87928d;
  font-size: 9px;
}
.role-alert {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: #66736d;
  position: relative;
}
.role-alert span {
  position: absolute;
  right: -3px;
  top: -3px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #e28b68;
  color: white;
  font-size: 6px;
  font-weight: 800;
}
.role-content {
  width: min(1220px, 100%);
  margin: auto;
  padding: 37px 32px 80px;
}
.role-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 29px;
}
.role-heading .kicker {
  margin-bottom: 5px;
}
.role-heading h1 {
  margin: 0 0 7px;
  font-size: 37px;
}
.role-heading p {
  margin: 0;
  color: #7b8781;
  font-size: 11px;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.admin-stat-grid article {
  display: grid;
  grid-template-columns: 42px 1fr;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.admin-stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--green);
  grid-row: 1 / 4;
}
.admin-stat-icon.mint {
  background: #e0eee3;
}
.admin-stat-icon.blue {
  background: #e2ebf6;
  color: #5579a2;
}
.admin-stat-icon.gold {
  background: #f7edcf;
  color: #9b7419;
}
.admin-stat-icon.lilac {
  background: #eee7f4;
  color: #765b91;
}
.admin-stat-grid article > strong {
  font: 800 23px/1 "Manrope";
}
.admin-stat-grid article > span:not(.admin-stat-icon) {
  margin-top: 5px;
  color: #65726c;
  font-size: 9px;
}
.admin-stat-grid article > small {
  margin-top: 7px;
  color: var(--green);
  font-size: 7px;
}
.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
  gap: 14px;
  margin-top: 14px;
}
.admin-chart-card,
.review-queue,
.admin-activity,
.admin-panel,
.earnings-chart-card,
.earning-history,
.tutor-calendar-panel {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
}
.panel-heading .kicker {
  margin-bottom: 4px;
}
.panel-heading h2 {
  margin: 0;
  font-size: 18px;
}
.panel-heading select {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #68756f;
  font-size: 8px;
}
.panel-heading > button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}
.line-chart {
  height: 255px;
  margin-top: 25px;
  position: relative;
}
.line-chart svg {
  width: 100%;
  height: 210px;
  position: relative;
  z-index: 2;
}
.chart-lines {
  position: absolute;
  inset: 0 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chart-lines i {
  display: block;
  border-top: 1px dashed #e0e4e1;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #99a29e;
  font-size: 6px;
}
.review-queue {
  padding: 23px 18px;
}
.review-queue .panel-heading {
  margin: 0 5px 13px;
}
.review-queue > button {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr 16px;
  gap: 9px;
  align-items: center;
  padding: 13px 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
}
.review-queue > button > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5e9c6;
  color: #926b13;
  font-size: 8px;
  font-weight: 800;
}
.review-queue > button strong {
  font-size: 9px;
}
.review-queue > button svg {
  color: #9aa39f;
}
.admin-activity {
  margin-top: 14px;
}
.admin-activity .panel-heading {
  margin-bottom: 12px;
}
.admin-activity > div:not(.panel-heading) {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.admin-activity > div > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e9f1e7;
  color: var(--green);
}
.admin-activity p {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #87928d;
  font-size: 8px;
}
.admin-activity p strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 9px;
}
.admin-activity small {
  color: #9ba49f;
  font-size: 7px;
}
.admin-toolbar {
  min-height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}
.admin-toolbar .searchbox {
  max-width: 400px;
}
.admin-toolbar > p {
  margin: 0;
  color: #76827c;
  font-size: 10px;
}
.tabs.compact {
  margin: 0;
}
.tabs.compact button {
  padding: 11px 14px;
  font-size: 9px;
}
.admin-table {
  overflow-x: auto;
}
.admin-table-head,
.admin-table-row {
  min-width: 780px;
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 13px 10px;
}
.admin-table-head {
  border-radius: 5px;
  background: #f2f4f0;
  color: #8c9691;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-table-row {
  min-height: 65px;
  border-bottom: 1px solid var(--line);
  color: #66736d;
  font-size: 9px;
}
.admin-table-row > button {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}
.tutor-admin-table .admin-table-head,
.tutor-admin-table .admin-table-row {
  grid-template-columns: 1.4fr 1.2fr 0.6fr 0.6fr 0.5fr;
}
.material-admin-table .admin-table-head,
.material-admin-table .admin-table-row {
  grid-template-columns: 1.5fr 0.9fr 0.9fr 0.6fr 0.8fr;
}
.payment-admin-table .admin-table-head,
.payment-admin-table .admin-table-row {
  grid-template-columns: 0.8fr 1.1fr 0.7fr 0.7fr 0.6fr 0.5fr;
}
.table-person,
.material-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.table-person p {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.table-person strong,
.material-title strong {
  color: var(--ink);
  font-size: 9px;
}
.table-person small {
  margin-top: 3px;
  color: #909a95;
  font-size: 7px;
}
.material-title > span {
  width: 32px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #e5eee4;
  color: var(--green);
}
.admin-status {
  width: max-content;
  padding: 5px 8px;
  border-radius: 20px;
  background: #eef0ed;
  color: #78847e;
  font-size: 7px;
  font-weight: 800;
}
.admin-status.review,
.admin-status.due {
  background: #f7edce;
  color: #906913;
}
.admin-status.approved,
.admin-status.paid {
  background: #e2efe4;
  color: var(--green);
}
.admin-status.paused,
.admin-status.declined {
  background: #f4e6e1;
  color: #a65d45;
}
.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}
.table-actions button {
  min-height: 29px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
}
.payment-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  border-radius: 9px;
  background: var(--green-dark);
  color: white;
}
.payment-summary > div {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-right: 1px solid #315c51;
}
.payment-summary > div:last-child {
  border: 0;
}
.payment-summary span {
  color: var(--lime);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.payment-summary strong {
  margin: 7px 0 3px;
  font: 700 23px "Manrope";
}
.payment-summary small {
  color: #9eb7ae;
  font-size: 7px;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.report-grid > article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.report-grid > article > div:first-child {
  display: flex;
  justify-content: space-between;
}
.priority {
  padding: 5px 7px;
  border-radius: 3px;
  background: #f5ead0;
  color: #986f16;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}
.priority.high {
  background: #f5e3dd;
  color: #a75239;
}
.report-grid article small {
  color: #959f9a;
  font-size: 7px;
}
.report-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-top: 25px;
  border-radius: 8px;
  background: #f3ead1;
  color: #926b14;
}
.report-grid h2 {
  margin: 12px 0 6px;
  font-size: 19px;
}
.report-grid p {
  min-height: 34px;
  color: #6e7b74;
  font-size: 10px;
  line-height: 1.6;
}
.report-actions {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}
.report-actions .button {
  min-height: 38px;
  padding: 0 13px;
  font-size: 8px;
}
.community-admin-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
}
.health-score {
  margin: 25px 0;
  padding: 23px;
  border-radius: 8px;
  background: #e7f1e6;
  text-align: center;
}
.health-score strong {
  color: var(--green);
  font: 800 44px/1 "Manrope";
}
.health-score > span {
  color: #83908a;
  font-size: 11px;
}
.health-score p {
  margin: 6px 0 0;
  color: #617069;
  font-size: 9px;
}
.health-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #6b7771;
  font-size: 9px;
}
.health-row strong {
  color: var(--ink);
}
.subject-bar {
  display: grid;
  grid-template-columns: 150px 1fr 25px;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  color: #64716a;
  font-size: 8px;
}
.subject-bar > div {
  height: 6px;
  border-radius: 5px;
  background: #e7ebe8;
  overflow: hidden;
}
.subject-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
.subject-bar strong {
  color: var(--ink);
  text-align: right;
}
.admin-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.admin-plan-grid article,
.new-plan-card {
  min-height: 260px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
}
.admin-plan-grid article > div {
  display: flex;
  justify-content: space-between;
}
.admin-plan-grid article > strong {
  display: block;
  margin: 22px 0 13px;
  font: 700 27px "Manrope";
}
.admin-plan-grid article > strong small {
  color: #87928c;
  font: 400 8px "DM Sans";
}
.admin-plan-grid article > p {
  min-height: 42px;
  color: #6f7b75;
  font-size: 10px;
  line-height: 1.5;
}
.admin-plan-grid .button {
  width: 100%;
  margin-top: 20px;
}
.new-plan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--green);
}
.new-plan-card strong {
  margin: 13px 0 4px;
  font-size: 11px;
}
.new-plan-card span {
  color: #85918b;
  font-size: 8px;
}
.account-admin-list > div {
  display: grid;
  grid-template-columns: 40px 1fr 100px 30px;
  gap: 11px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.account-admin-list p {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.account-admin-list strong {
  font-size: 10px;
}
.account-admin-list small,
.account-admin-list > div > span:not(.avatar) {
  margin-top: 3px;
  color: #87928c;
  font-size: 8px;
}
.account-admin-list > div > button {
  border: 0;
  background: transparent;
  color: #7c8882;
}
.review-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 20px 0;
}
.review-profile > div {
  display: flex;
  flex-direction: column;
  padding: 13px;
  border-radius: 6px;
  background: #f1f4ef;
}
.review-profile span {
  color: #8b9691;
  font-size: 7px;
  font-weight: 800;
}
.review-profile strong {
  margin-top: 5px;
  font-size: 9px;
}
.review-document {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--green);
}
.review-document > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.review-document strong {
  color: var(--ink);
  font-size: 9px;
}
.review-document small {
  color: #87928c;
  font-size: 7px;
}
.review-document button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}
.modal-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Tutor dashboard */
.tutor-public-profile {
  display: grid;
  grid-template-columns: 24px 1fr 16px;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid #d3dad5;
  border-radius: 7px;
  background: #f8f9f6;
  color: var(--green);
  text-align: left;
}
.tutor-public-profile > span {
  display: flex;
  flex-direction: column;
}
.tutor-public-profile strong {
  color: var(--ink);
  font-size: 9px;
}
.tutor-public-profile small {
  margin-top: 2px;
  color: #89948f;
  font-size: 7px;
}
.tutor-top-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5f6d66;
  font-size: 9px;
}
.tutor-top-status .pulse {
  width: 8px;
  height: 8px;
}
.tutor-top-status + .button {
  margin-left: auto;
}
.tutor-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.tutor-stat-row article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.tutor-stat-row article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e6f0e6;
  color: var(--green);
}
.tutor-stat-row article > div {
  display: flex;
  flex-direction: column;
}
.tutor-stat-row strong {
  font: 800 19px "Manrope";
}
.tutor-stat-row p {
  margin: 1px 0;
  color: #66736d;
  font-size: 8px;
}
.tutor-stat-row small {
  grid-column: 1 / -1;
  margin-top: 7px;
  color: #8b9691;
  font-size: 7px;
}
.tutor-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 300px;
  gap: 14px;
  margin-top: 24px;
}
.tutor-overview-grid > section {
  min-width: 0;
}
.request-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 13px;
}
.request-list article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.request-list article > div:nth-child(2) {
  min-width: 0;
}
.request-list h3 {
  margin: 4px 0 2px;
  font-size: 13px;
}
.request-list p {
  margin: 0;
  color: #87918d;
  font-size: 8px;
}
.request-list article > div:last-child {
  display: flex;
  gap: 6px;
}
.request-list .button {
  min-height: 35px;
  padding: 0 11px;
  font-size: 8px;
}
.next-session-card {
  padding: 24px;
  border-radius: 10px;
  background: var(--green-dark);
  color: white;
}
.session-countdown {
  display: grid;
  grid-template-columns: auto auto 1px auto auto;
  align-items: baseline;
  gap: 5px;
  margin: 10px 0 23px;
}
.session-countdown strong {
  font: 700 31px "Manrope";
}
.session-countdown span {
  color: #9eb8af;
  font-size: 8px;
}
.session-countdown i {
  width: 1px;
  height: 25px;
  margin: 0 8px;
  background: #476c62;
}
.next-session-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-block: 1px solid #345e53;
}
.next-session-person > div {
  display: flex;
  flex-direction: column;
}
.next-session-person strong {
  font-size: 9px;
}
.next-session-person small {
  margin-top: 3px;
  color: #9cb4ac;
  font-size: 7px;
}
.next-session-card > p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0;
  color: #b3c7c0;
  font-size: 8px;
}
.next-session-card .button {
  width: 100%;
  margin-top: 8px;
}
.next-session-card > button:last-child {
  width: 100%;
  padding: 13px;
  border: 0;
  background: transparent;
  color: #b8ccc5;
  font-size: 8px;
  font-weight: 700;
}
.tutor-week {
  margin-top: 24px;
}
.mini-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.mini-week > div {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  position: relative;
}
.mini-week > div:last-child {
  border: 0;
}
.mini-week > div.active {
  background: #e7f0e5;
}
.mini-week strong {
  font-size: 8px;
}
.mini-week span {
  margin: 5px 0;
  color: #83908a;
  font: 700 15px "Manrope";
}
.mini-week i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 7px;
  font-style: normal;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.calendar-toolbar > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.calendar-toolbar h2 {
  margin: 0;
  font-size: 18px;
}
.calendar-toolbar > div button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--green);
}
.calendar-toolbar > div button:first-child svg {
  transform: rotate(180deg);
}
.availability-calendar {
  display: grid;
  grid-template-columns: 52px repeat(6, 1fr);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.time-column,
.day-column {
  min-width: 95px;
  display: grid;
  grid-template-rows: 52px repeat(6, 48px);
}
.time-column {
  min-width: 52px;
}
.time-column span {
  padding-top: 7px;
  color: #969f9b;
  font-size: 6px;
  text-align: center;
}
.day-column {
  border-left: 1px solid var(--line);
}
.day-column > strong {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f6f3;
  font-size: 8px;
}
.day-column > strong small {
  margin-top: 3px;
  color: #84908a;
  font-size: 7px;
}
.day-column > button {
  margin: 3px;
  border: 1px dashed #d5dbd7;
  border-radius: 4px;
  background: white;
  color: #a0a8a4;
  font-size: 7px;
}
.day-column > button.available {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #a6c8b1;
  background: #e4f0e5;
  color: var(--green);
  font-weight: 800;
}
.calendar-legend {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 16px;
  color: #78847e;
  font-size: 7px;
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.calendar-legend i.available {
  background: #cfe4d4;
}
.calendar-legend i.booked {
  background: #f0dca8;
}
.calendar-legend p {
  margin: 0 0 0 auto;
}
.tutor-chat-layout {
  height: calc(100vh - 180px);
  min-height: 560px;
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.tutor-chat-list {
  padding: 15px;
  border-right: 1px solid var(--line);
}
.tutor-chat-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 9px;
  padding: 13px 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
}
.tutor-chat-list > button.active {
  border-radius: 7px;
  background: #e9f1e7;
}
.tutor-chat-list > button > div {
  min-width: 0;
}
.tutor-chat-list strong,
.tutor-chat-list p,
.tutor-chat-list small {
  display: block;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tutor-chat-list strong {
  font-size: 9px;
}
.tutor-chat-list p {
  margin: 3px 0;
  color: var(--green);
  font-size: 7px;
}
.tutor-chat-list small {
  color: #8d9792;
  font-size: 7px;
}
.tutor-chat-list b {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 6px;
}
.tutor-conversation {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.tutor-conversation > header {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.tutor-conversation > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tutor-conversation header p {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.tutor-conversation header strong {
  font-size: 9px;
}
.tutor-conversation header small {
  margin-top: 3px;
  color: #8a9590;
  font-size: 7px;
}
.tutor-conversation header button {
  border: 0;
  background: transparent;
}
.conversation-safety {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: #faf4e2;
  color: #8d691a;
  font-size: 7px;
}
.tutor-messages {
  flex: 1;
  overflow: auto;
  padding: 25px;
}
.tutor-messages > div {
  max-width: 70%;
  margin-bottom: 17px;
}
.tutor-messages > div p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 3px 11px 11px 11px;
  background: #f0f2ef;
  color: #53615a;
  font-size: 9px;
  line-height: 1.6;
}
.tutor-messages > div.tutor {
  margin-left: auto;
}
.tutor-messages > div.tutor p {
  border-radius: 11px 3px 11px 11px;
  background: var(--green);
  color: white;
}
.tutor-messages > div span {
  display: block;
  margin-top: 4px;
  color: #98a19d;
  font-size: 6px;
}
.tutor-messages > div.tutor span {
  text-align: right;
}
.tutor-conversation > form {
  display: flex;
  gap: 7px;
  margin: 12px 18px 18px;
  padding: 6px;
  border: 1px solid #cbd3ce;
  border-radius: 8px;
}
.tutor-conversation > form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 9px;
}
.tutor-conversation > form button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #89948f;
}
.tutor-conversation > form button:last-child {
  background: var(--green);
  color: white;
}
.earning-cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}
.earning-cards article {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.earning-cards article:first-child {
  background: var(--green-dark);
  color: white;
}
.earning-cards span {
  color: #81908a;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.earning-cards article:first-child span {
  color: var(--lime);
}
.earning-cards strong {
  margin: 10px 0 4px;
  font: 700 26px "Manrope";
}
.earning-cards p {
  margin: 0;
  color: #89948f;
  font-size: 8px;
}
.earning-cards article:first-child p {
  color: #a6bdb5;
}
.earning-cards .button {
  width: max-content;
  min-height: 34px;
  margin-top: 18px;
  padding: 0 12px;
  background: var(--lime);
  color: var(--green-dark);
  font-size: 8px;
}
.earnings-chart-card,
.earning-history {
  margin-top: 14px;
}
.bar-chart {
  height: 240px;
  display: flex;
  align-items: end;
  gap: 22px;
  margin-top: 25px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}
.bar-chart > div {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 7px;
}
.bar-chart > div > span {
  width: min(45px, 80%);
  display: block;
  border-radius: 5px 5px 0 0;
  background: #b9d6c1;
  position: relative;
}
.bar-chart > div:last-child > span {
  background: var(--green);
}
.bar-chart b {
  position: absolute;
  top: -17px;
  left: 50%;
  color: #67746e;
  font-size: 6px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.bar-chart small {
  color: #8f9994;
  font-size: 7px;
}
.earning-history > div:not(.panel-heading) {
  display: grid;
  grid-template-columns: 70px 1fr 80px 55px;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: #7c8882;
  font-size: 8px;
}
.earning-history p {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.earning-history p strong {
  color: var(--ink);
  font-size: 9px;
}
.earning-history p small {
  margin-top: 2px;
  color: #909a95;
  font-size: 7px;
}
.tutor-profile-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-completeness {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 10px;
  background: var(--green-dark);
  color: white;
}
.profile-completeness > div:nth-child(2) {
  min-width: 0;
}
.profile-completeness .kicker {
  margin: 0;
  color: var(--lime);
}
.profile-completeness h2 {
  margin: 5px 0 9px;
  font-size: 17px;
}
.profile-completeness .progress {
  max-width: 420px;
  background: #3e675c;
}
.profile-completeness .progress span {
  background: var(--lime);
}
.profile-completeness small {
  display: block;
  margin-top: 5px;
  color: #a7beb6;
  font-size: 7px;
}
.profile-completeness .button {
  border-color: #4c7066;
  color: white;
}
.editor-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
  color: #53615a;
  font-size: 9px;
  font-weight: 800;
}
.editor-label textarea {
  padding: 13px;
  border: 1px solid #d0d7d2;
  border-radius: 6px;
  outline: 0;
  resize: vertical;
}
.tutor-profile-editor .tag-row {
  margin-top: 15px;
}
.tutor-profile-editor .tag-row button {
  border: 1px dashed #b8c5bd;
  border-radius: 3px;
  background: white;
  color: var(--green);
  font-size: 8px;
}

@media (max-width: 1050px) {
  .role-dashboard {
    grid-template-columns: 75px minmax(0, 1fr);
  }
  .role-sidebar {
    padding-inline: 10px;
  }
  .role-sidebar > .brand {
    justify-content: center;
  }
  .role-sidebar > .brand span,
  .role-label,
  .role-sidebar nav button span,
  .role-sidebar-foot > div,
  .tutor-public-profile > span,
  .tutor-public-profile > svg:last-child {
    display: none;
  }
  .role-sidebar nav button {
    display: flex;
    justify-content: center;
    padding: 0;
    position: relative;
  }
  .role-sidebar nav button b {
    position: absolute;
    right: 3px;
    top: 3px;
  }
  .role-sidebar-foot {
    justify-content: center;
    padding-inline: 0;
  }
  .role-sidebar-foot > button {
    display: none;
  }
  .tutor-public-profile {
    display: flex;
    justify-content: center;
    padding: 11px 0;
  }
  .admin-stat-grid,
  .tutor-stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .admin-plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .admin-overview-grid,
  .tutor-overview-grid,
  .community-admin-grid {
    grid-template-columns: 1fr;
  }
  .payment-summary,
  .earning-cards {
    grid-template-columns: 1fr;
  }
  .payment-summary > div {
    border-right: 0;
    border-bottom: 1px solid #315c51;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .tutor-chat-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 650px) {
  .role-dashboard {
    display: block;
  }
  .role-sidebar {
    width: 100%;
    height: 65px;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .role-sidebar > .brand,
  .tutor-public-profile,
  .role-sidebar-foot {
    display: none;
  }
  .role-sidebar nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }
  .role-sidebar nav button {
    min-width: 43px;
  }
  .role-topbar {
    height: 58px;
    padding: 0 15px;
  }
  .role-topbar .searchbox,
  .role-date,
  .tutor-top-status {
    display: none;
  }
  .tutor-top-status + .button {
    margin-left: 0;
  }
  .role-alert {
    margin-left: auto;
  }
  .role-content {
    padding: 27px 15px 70px;
  }
  .role-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .role-heading h1 {
    font-size: 31px;
  }
  .admin-stat-grid,
  .tutor-stat-row,
  .admin-plan-grid {
    grid-template-columns: 1fr;
  }
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-toolbar > .button {
    width: 100%;
  }
  .report-actions,
  .modal-review-actions {
    flex-direction: column;
  }
  .report-actions .button,
  .modal-review-actions .button {
    width: 100%;
  }
  .subject-bar {
    grid-template-columns: 110px 1fr 20px;
  }
  .request-list article {
    grid-template-columns: 38px 1fr;
  }
  .request-list article > div:last-child {
    grid-column: 1 / -1;
  }
  .mini-week {
    overflow-x: auto;
  }
  .mini-week > div {
    min-width: 70px;
  }
  .tutor-chat-layout {
    height: auto;
    min-height: 650px;
    grid-template-columns: 1fr;
  }
  .tutor-chat-list {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .tutor-chat-list .searchbox {
    display: none;
  }
  .tutor-chat-list > button {
    min-width: 220px;
  }
  .tutor-conversation {
    min-height: 500px;
  }
  .tutor-messages > div {
    max-width: 88%;
  }
  .profile-completeness {
    grid-template-columns: 60px 1fr;
  }
  .profile-completeness .button {
    grid-column: 1 / -1;
  }
  .earning-history {
    overflow-x: auto;
  }
  .earning-history > div:not(.panel-heading) {
    min-width: 560px;
  }
  .review-profile {
    grid-template-columns: 1fr;
  }
}

/* Multi-role account switcher */
.role-switcher {
  margin: 18px 0 3px;
  position: relative;
  z-index: 40;
}
.role-switch-label {
  display: block;
  margin: 0 10px 7px;
  color: #98a19d;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.role-switch-trigger {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 32px 1fr 15px;
  gap: 9px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  background: #f8faf6;
  color: var(--ink);
  text-align: left;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.role-switcher.open .role-switch-trigger {
  border-color: #90b59c;
  box-shadow: 0 0 0 3px rgba(8, 118, 83, 0.08);
}
.role-switch-trigger > span:nth-child(2),
.role-switch-menu button > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.role-switch-trigger strong,
.role-switch-menu button strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-switch-trigger small,
.role-switch-menu button small {
  overflow: hidden;
  margin-top: 2px;
  color: #89948f;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-switch-trigger > svg {
  color: #87928d;
  transform: rotate(90deg);
  transition: transform 0.2s;
}
.role-switcher.open .role-switch-trigger > svg {
  transform: rotate(-90deg);
}
.role-switch-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--green);
  flex: none;
}
.role-switch-icon.student {
  background: #e2eee3;
  color: var(--green);
}
.role-switch-icon.tutor {
  background: #f7ebc9;
  color: #946b13;
}
.role-switch-icon.admin {
  background: #e5e9f6;
  color: #5d6f9f;
}
.role-switch-menu {
  width: 285px;
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  padding: 9px;
  border: 1px solid #d2d9d4;
  border-radius: 11px;
  background: white;
  box-shadow: 0 22px 60px rgba(20, 45, 36, 0.2);
  animation: role-menu-in 0.18s ease both;
}
@keyframes role-menu-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
}
.role-switch-menu-head {
  display: flex;
  flex-direction: column;
  padding: 9px 10px 10px;
  border-bottom: 1px solid var(--line);
}
.role-switch-menu-head strong {
  font-size: 10px;
}
.role-switch-menu-head small {
  margin-top: 2px;
  color: #8c9691;
  font-size: 7px;
}
.role-switch-menu > button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  gap: 9px;
  align-items: center;
  margin-top: 4px;
  padding: 9px;
  border: 0;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  text-align: left;
}
.role-switch-menu > button:hover,
.role-switch-menu > button.active {
  background: #f0f5ee;
}
.role-switch-menu > button > svg {
  color: var(--green);
}
.role-switch-menu > p {
  margin: 7px 7px 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: #939c98;
  font-size: 6px;
  line-height: 1.45;
}
.dash-side > .role-switcher {
  margin-top: 28px;
}
.dash-side > .role-switcher + .dash-nav {
  margin-top: 17px;
}
.role-sidebar > .role-switcher {
  margin: 0 0 14px;
}
.role-sidebar > .role-switcher + nav {
  margin-top: 0;
}

@media (max-width: 1050px) and (min-width: 651px) {
  .role-switcher {
    display: flex;
    justify-content: center;
  }
  .role-switch-label,
  .role-switch-trigger > span:nth-child(2),
  .role-switch-trigger > svg {
    display: none;
  }
  .role-switch-trigger {
    width: 46px;
    min-height: 46px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 7px;
  }
  .role-switch-icon {
    margin: auto;
  }
  .role-switch-menu {
    left: 52px;
    top: 0;
  }
  .dash-side .role-switch-menu {
    left: 52px;
  }
}

@media (max-width: 650px) {
  .role-sidebar > .role-switcher {
    display: block;
    flex: none;
    margin: 0 7px 0 0;
  }
  .role-sidebar .role-switch-label,
  .role-sidebar .role-switch-trigger > span:nth-child(2),
  .role-sidebar .role-switch-trigger > svg {
    display: none;
  }
  .role-sidebar .role-switch-trigger {
    width: 43px;
    min-height: 43px;
    grid-template-columns: 1fr;
    padding: 5px;
  }
  .role-sidebar .role-switch-menu {
    width: min(285px, calc(100vw - 30px));
    left: 0;
    top: 50px;
  }
}

/* Student timetable */
.account-shell:has(.student-calendar) .account-content {
  max-width: 1400px;
}
.timetable-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 28px;
}
.timetable-heading .kicker {
  margin-bottom: 5px;
}
.timetable-heading h1 {
  margin: 0 0 8px;
  font-size: 42px;
}
.timetable-heading p {
  margin: 0;
  color: #76827c;
  font-size: 11px;
}
.timetable-heading-actions {
  display: flex;
  gap: 8px;
}
.timetable-momentum {
  min-height: 160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 28px 32px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 12% 180%, rgba(201, 239, 106, 0.2), transparent 35%),
    var(--green-dark);
  color: white;
  overflow: hidden;
  position: relative;
}
.momentum-copy {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.momentum-spark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #4a756a;
  border-radius: 50%;
  background: #174a3e;
  color: var(--lime);
  font-size: 25px;
  animation: spark-breathe 2.6s ease-in-out infinite;
}
@keyframes spark-breathe {
  50% {
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 0 30px rgba(201, 239, 106, 0.2);
  }
}
.momentum-copy .kicker {
  margin-bottom: 6px;
  color: var(--lime);
}
.momentum-copy h2 {
  margin: 0 0 4px;
  font-size: 24px;
}
.momentum-copy p {
  margin: 0;
  color: #a7beb6;
  font-size: 9px;
}
.momentum-progress {
  display: flex;
  align-items: center;
  gap: 20px;
}
.momentum-ring {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime) var(--momentum), #315d52 0);
  position: relative;
}
.momentum-ring:after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--green-dark);
}
.momentum-ring > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #9fb7af;
  font-size: 7px;
  position: relative;
  z-index: 1;
}
.momentum-ring strong {
  color: white;
  font: 800 18px "Manrope";
}
.momentum-progress label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #9fb7af;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.momentum-progress select {
  padding: 9px 28px 9px 10px;
  border: 1px solid #456e63;
  border-radius: 5px;
  background: #16473b;
  color: white;
  font-size: 9px;
}
.timetable-toolbar {
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.view-switcher {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.view-switcher button {
  min-height: 33px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7a8680;
  font-size: 8px;
  font-weight: 700;
}
.view-switcher button.active {
  background: #e6f0e5;
  color: var(--green);
}
.timetable-legend {
  display: flex;
  gap: 13px;
}
.timetable-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7f8b85;
  font-size: 7px;
}
.timetable-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.timetable-legend i.green,
.color-picker button.green {
  background: #8fc2a0;
}
.timetable-legend i.gold,
.color-picker button.gold {
  background: #e4bd58;
}
.timetable-legend i.blue,
.color-picker button.blue {
  background: #88add5;
}
.timetable-legend i.lilac,
.color-picker button.lilac {
  background: #a995c3;
}
.color-picker button.coral {
  background: #dd9a7e;
}
.timetable-print {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}
.student-calendar {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  box-shadow: 0 12px 35px rgba(21, 42, 35, 0.04);
}
.student-calendar-head {
  min-width: 930px;
  display: grid;
  grid-template-columns: 62px repeat(7, minmax(120px, 1fr));
  border-bottom: 1px solid var(--line);
}
.student-calendar-head > span {
  display: grid;
  place-items: center;
  color: #9ba49f;
  font-size: 6px;
}
.student-calendar-head > div {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  position: relative;
}
.student-calendar-head > div.today {
  background: #f0f5ee;
}
.student-calendar-head strong {
  color: #8c9691;
  font-size: 7px;
  letter-spacing: 0.1em;
}
.student-calendar-head div > span {
  margin-top: 4px;
  font: 700 15px "Manrope";
}
.student-calendar-head small {
  position: absolute;
  top: 5px;
  padding: 3px 5px;
  border-radius: 7px;
  background: var(--green);
  color: white;
  font-size: 5px;
  font-weight: 800;
}
.student-calendar-body {
  min-width: 930px;
  height: 810px;
  display: grid;
  grid-template-columns: 62px repeat(7, minmax(120px, 1fr));
}
.student-time-column {
  display: grid;
  grid-template-rows: repeat(15, 54px);
}
.student-time-column span {
  padding: 5px 7px 0 0;
  color: #969f9b;
  font-size: 6px;
  text-align: right;
}
.student-day-column {
  display: grid;
  grid-template-rows: repeat(15, 54px);
  border-left: 1px solid var(--line);
  position: relative;
}
.student-time-slot {
  border-bottom: 1px solid #edf0ed;
  transition: background 0.15s;
}
.student-time-slot:hover {
  background: #f5f8f3;
}
.study-block {
  position: absolute;
  left: 4px;
  right: 4px;
  min-height: 46px;
  display: grid;
  grid-template-columns: 16px 1fr 16px;
  gap: 5px;
  padding: 7px;
  border-left: 3px solid;
  border-radius: 6px;
  cursor: grab;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(25, 45, 37, 0.08);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    opacity 0.18s;
  z-index: 2;
}
.study-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25, 45, 37, 0.14);
  z-index: 4;
}
.study-block.dragging {
  opacity: 0.35;
  transform: scale(0.97);
}
.study-block.green {
  border-color: #4d9a6a;
  background: #dff0e4;
  color: #175c39;
}
.study-block.gold {
  border-color: #c79527;
  background: #f8edcf;
  color: #76540f;
}
.study-block.blue {
  border-color: #608fbe;
  background: #e2edf8;
  color: #315f8a;
}
.study-block.lilac {
  border-color: #8067a0;
  background: #eee8f5;
  color: #5d4778;
}
.study-block.coral {
  border-color: #bf7358;
  background: #f7e5de;
  color: #894b35;
}
.study-block.completed {
  opacity: 0.68;
}
.study-block.completed strong {
  text-decoration: line-through;
}
.block-complete {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
}
.study-block > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.study-block strong,
.study-block span,
.study-block small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.study-block strong {
  font-size: 8px;
}
.study-block span {
  margin-top: 2px;
  font-size: 6px;
}
.study-block small {
  margin-top: 4px;
  opacity: 0.75;
  font-size: 6px;
}
.block-menu {
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0;
  transition: opacity 0.15s;
}
.study-block:hover .block-menu {
  opacity: 1;
}
.calendar-hint {
  margin: 0;
  padding: 11px;
  border-top: 1px solid var(--line);
  color: #909a95;
  font-size: 7px;
  text-align: center;
}
.timetable-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timetable-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
}
.timetable-list-day {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
}
.timetable-list-day > span {
  color: var(--lime);
  font-size: 7px;
  font-weight: 800;
}
.timetable-list-day strong {
  margin: 5px 0;
  font-size: 12px;
}
.timetable-list-day small {
  color: #a8beb6;
  font-size: 7px;
}
.timetable-list-blocks {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.timetable-list-blocks article {
  min-height: 58px;
  display: grid;
  grid-template-columns: 25px 60px 1fr 25px;
  gap: 10px;
  align-items: center;
  padding: 9px 13px;
  border-left: 3px solid;
  border-radius: 7px;
  background: white;
}
.timetable-list-blocks article.green {
  border-color: #4d9a6a;
}
.timetable-list-blocks article.gold {
  border-color: #c79527;
}
.timetable-list-blocks article.blue {
  border-color: #608fbe;
}
.timetable-list-blocks article.lilac {
  border-color: #8067a0;
}
.timetable-list-blocks article.coral {
  border-color: #bf7358;
}
.timetable-list-blocks article.completed {
  opacity: 0.58;
}
.timetable-list-blocks article > button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #c9d2cc;
  border-radius: 50%;
  background: white;
  color: var(--green);
}
.timetable-list-blocks article > button:last-child {
  border: 0;
}
.timetable-list-blocks article > span {
  color: #6e7a74;
  font-size: 8px;
}
.timetable-list-blocks article > div {
  display: flex;
  flex-direction: column;
}
.timetable-list-blocks strong {
  font-size: 9px;
}
.timetable-list-blocks small {
  margin-top: 3px;
  color: #8a9590;
  font-size: 7px;
}
.empty-day {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed #c7d0ca;
  border-radius: 7px;
  background: transparent;
  color: #87928c;
  font-size: 8px;
}
.study-block-form {
  display: flex;
  flex-direction: column;
}
.study-block-form > label,
.study-form-row label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
  color: #53615a;
  font-size: 9px;
  font-weight: 800;
}
.study-block-form input,
.study-block-form select {
  padding: 12px;
  border: 1px solid #cfd6d1;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  outline: 0;
  font-size: 10px;
}
.study-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}
.color-picker {
  display: flex;
  gap: 8px;
}
.color-picker button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  box-shadow: 0 0 0 1px #d3d9d5;
}
.color-picker button.selected {
  box-shadow: 0 0 0 2px var(--green);
}

/* Return streak celebration */
.streak {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: 7px;
  transition: background 0.2s;
}
.streak:hover {
  background: #f7f8f5;
}
.streak > svg {
  margin-left: auto;
  color: #9aa39f;
}
.streak-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 31, 24, 0.7);
  backdrop-filter: blur(9px);
  animation: backdrop-in 0.28s ease both;
}
.streak-celebration {
  width: min(540px, 100%);
  padding: 45px 42px 38px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(201, 239, 106, 0.2), transparent 32%), var(--cream);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: celebration-in 0.58s cubic-bezier(0.17, 0.9, 0.25, 1.22) both;
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}
@keyframes celebration-in {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.9);
  }
}
.streak-close {
  position: absolute;
  right: 17px;
  top: 17px;
  z-index: 4;
  border: 0;
  background: transparent;
  color: #7c8882;
}
.streak-flame {
  width: 85px;
  height: 85px;
  display: grid;
  place-items: center;
  margin: 0 auto 21px;
  border-radius: 50% 50% 46% 54%;
  background: linear-gradient(145deg, #f6d266, #eaa642);
  color: white;
  font-size: 35px;
  position: relative;
  animation: flame-float 2s ease-in-out infinite;
}
.streak-flame i {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(234, 166, 66, 0.35);
  border-radius: 50%;
  animation: streak-ring 1.8s ease-out infinite;
}
@keyframes flame-float {
  50% {
    transform: translateY(-5px) rotate(3deg);
  }
}
@keyframes streak-ring {
  to {
    inset: -25px;
    opacity: 0;
  }
}
.streak-celebration h2 {
  margin: 3px 0 11px;
  font-size: clamp(32px, 6vw, 43px);
}
.streak-celebration > p {
  max-width: 430px;
  margin: 0 auto 25px;
  color: #6f7b75;
  font-size: 11px;
  line-height: 1.65;
}
.streak-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.streak-week > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.streak-week > div > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #d4dad6;
  border-radius: 50%;
  background: white;
  color: #8d9792;
  font-size: 8px;
  font-weight: 800;
}
.streak-week > div.done > span {
  border-color: var(--green);
  background: var(--green);
  color: white;
  animation: check-pop 0.35s ease both;
}
.streak-week > div:nth-child(2) span {
  animation-delay: 0.06s;
}
.streak-week > div:nth-child(3) span {
  animation-delay: 0.12s;
}
.streak-week > div:nth-child(4) span {
  animation-delay: 0.18s;
}
@keyframes check-pop {
  from {
    transform: scale(0);
  }
}
.streak-week > div.today > span {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(244, 199, 90, 0.2);
}
.streak-week small {
  color: #909a95;
  font-size: 7px;
}
.milestone-progress {
  margin: 25px 0;
  padding: 17px;
  border-radius: 9px;
  background: #eef3e9;
  text-align: left;
}
.milestone-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.milestone-progress span,
.milestone-progress small {
  color: #7d8983;
  font-size: 8px;
}
.milestone-progress strong {
  font-size: 9px;
}
.milestone-progress .progress {
  margin-bottom: 7px;
}
.streak-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.confetti i {
  width: 7px;
  height: 11px;
  position: absolute;
  left: 50%;
  top: -15px;
  border-radius: 2px;
  background: var(--yellow);
  animation: confetti-fall 2.5s ease-in infinite;
}
.confetti i:nth-child(3n) {
  background: var(--green);
}
.confetti i:nth-child(3n + 1) {
  background: #82a9d2;
}
.confetti i:nth-child(1) {
  left: 8%;
  animation-delay: 0.1s;
}
.confetti i:nth-child(2) {
  left: 16%;
  animation-delay: 1.1s;
}
.confetti i:nth-child(3) {
  left: 24%;
  animation-delay: 0.6s;
}
.confetti i:nth-child(4) {
  left: 33%;
  animation-delay: 1.7s;
}
.confetti i:nth-child(5) {
  left: 41%;
  animation-delay: 0.3s;
}
.confetti i:nth-child(6) {
  left: 54%;
  animation-delay: 1.4s;
}
.confetti i:nth-child(7) {
  left: 63%;
  animation-delay: 0.8s;
}
.confetti i:nth-child(8) {
  left: 72%;
  animation-delay: 1.9s;
}
.confetti i:nth-child(9) {
  left: 81%;
  animation-delay: 0.4s;
}
.confetti i:nth-child(10) {
  left: 91%;
  animation-delay: 1.2s;
}
.confetti i:nth-child(n + 11) {
  animation-delay: 2.1s;
}
@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateY(620px) rotate(540deg);
    opacity: 0;
  }
}

/* Product-wide motion and placement polish */
.app
  > main:not(.dashboard):not(.role-dashboard):not(.account-shell):not(.auth-page):not(
    .application-page
  ),
.account-content > *,
.role-content > * {
  animation: page-rise 0.42s ease both;
}
@keyframes page-rise {
  from {
    transform: translateY(8px);
  }
}
.button,
.header nav button,
.role-sidebar nav button,
.dash-nav button,
.resource-card,
.tutor-profile,
.pack-card,
.question,
.shortcut-grid > button {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.role-sidebar nav button:hover,
.dash-nav button:hover {
  transform: translateX(3px);
}
.shortcut-grid > button:hover,
.pack-card:hover,
.resource-card:hover,
.tutor-profile:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(20, 45, 36, 0.09);
}
.modal-backdrop {
  animation: backdrop-in 0.2s ease both;
}
.modal {
  animation: modal-rise 0.32s cubic-bezier(0.2, 0.8, 0.25, 1.1) both;
}
@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}
.notification-list > button.unread:before,
.role-alert span {
  animation: badge-pulse 2.2s ease-in-out infinite;
}
@keyframes badge-pulse {
  50% {
    transform: scale(1.13);
    box-shadow: 0 0 0 5px rgba(226, 139, 104, 0.12);
  }
}

@media (max-width: 760px) {
  .timetable-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .timetable-heading h1 {
    font-size: 35px;
  }
  .timetable-heading-actions {
    width: 100%;
  }
  .timetable-heading-actions .button {
    flex: 1;
  }
  .timetable-momentum {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }
  .momentum-progress {
    width: 100%;
    justify-content: space-between;
  }
  .timetable-toolbar {
    flex-wrap: wrap;
  }
  .timetable-legend {
    width: 100%;
    overflow-x: auto;
    order: 3;
  }
  .timetable-print {
    margin-left: auto;
  }
  .timetable-list > div {
    grid-template-columns: 1fr;
  }
  .timetable-list-day {
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }
  .timetable-list-day small {
    margin-left: auto;
  }
  .study-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .momentum-copy {
    align-items: flex-start;
  }
  .momentum-spark {
    width: 43px;
    height: 43px;
    font-size: 19px;
  }
  .momentum-copy h2 {
    font-size: 19px;
  }
  .momentum-ring {
    width: 75px;
    height: 75px;
  }
  .streak-celebration {
    padding: 38px 18px 25px;
  }
  .streak-week {
    gap: 3px;
  }
  .streak-week > div > span {
    width: 32px;
    height: 32px;
  }
  .streak-actions {
    flex-direction: column;
  }
}

/* Mobile navigation and cross-screen responsive finesse */
.mobile-shell-header,
.mobile-shell-overlay {
  display: none;
}

@media (max-width: 980px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 120;
  }
  .header nav {
    position: fixed;
    top: 81px;
    max-height: calc(100dvh - 81px);
    overflow-y: auto;
    box-shadow: 0 22px 45px rgba(18, 43, 34, 0.13);
  }
  .header nav.open button {
    min-height: 48px;
    border-radius: 7px;
  }
  .header nav.open button:hover,
  .header nav.open button.active {
    background: #edf3ea;
    color: var(--green);
  }
}

@media (max-width: 700px) {
  .header {
    background: rgba(251, 250, 246, 0.97);
  }
  .header nav {
    top: 69px;
    padding: 12px 16px 20px;
  }
  .header .brand {
    font-size: 19px;
  }
  .header .mark {
    width: 28px;
    height: 28px;
    border-width: 6px;
  }
  .menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-left: 6px;
    border-radius: 50%;
    background: #edf3ea;
    color: var(--green);
  }
  .mobile-shell-header {
    min-width: 0;
    height: 64px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 110;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 5px 18px rgba(21, 42, 35, 0.05);
  }
  .mobile-shell-header > .brand {
    font-size: 17px;
  }
  .mobile-shell-header .mark {
    width: 27px;
    height: 27px;
    border-width: 6px;
  }
  .mobile-shell-header > span {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: #748079;
    font-size: 9px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-shell-menu {
    width: 41px;
    height: 41px;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: #e7f0e6;
    color: var(--green);
    display: grid;
    place-items: center;
  }
  .mobile-shell-overlay {
    display: block;
    position: fixed;
    inset: 64px 0 0;
    z-index: 88;
    border: 0;
    background: rgba(7, 35, 28, 0.48);
    backdrop-filter: blur(3px);
  }

  .account-nav,
  .dash-side,
  .role-sidebar {
    width: min(330px, 88vw) !important;
    height: calc(100dvh - 64px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: fixed !important;
    left: 0;
    top: 64px !important;
    z-index: 95 !important;
    padding: 18px 14px !important;
    overflow-y: auto;
    border: 0 !important;
    border-right: 1px solid var(--line) !important;
    background: white;
    box-shadow: 22px 0 55px rgba(12, 38, 30, 0.2);
    transform: translateX(-105%);
    transition: transform 0.28s ease !important;
  }
  .account-nav.mobile-open,
  .dash-side.mobile-open,
  .role-sidebar.mobile-open {
    transform: translateX(0);
  }

  .account-nav > .brand,
  .dash-side > .brand,
  .role-sidebar > .brand {
    display: none !important;
  }
  .account-nav nav,
  .role-sidebar nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    overflow: visible;
  }
  .account-nav nav button,
  .role-sidebar nav button {
    width: 100%;
    min-height: 47px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    justify-content: initial;
    gap: 10px;
    padding: 0 13px;
    border-radius: 7px;
    font-size: 11px !important;
    text-align: left;
  }
  .role-sidebar nav button span {
    display: inline !important;
  }
  .role-sidebar nav button b {
    position: static;
  }
  .account-nav nav button.active,
  .role-sidebar nav button.active {
    background: #e7f0e6;
    color: var(--green);
  }
  .account-back {
    min-height: 45px;
    display: flex !important;
    justify-content: flex-start !important;
    margin-top: auto;
    font-size: 10px !important;
  }

  .dash-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .dash-nav small {
    display: block;
    margin: 18px 11px 6px;
    color: #98a19d;
    font-size: 7px;
  }
  .dash-nav button,
  .dash-nav button:not(.active) {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    gap: 10px;
    border-radius: 7px;
    padding: 0 13px;
    font-size: 11px;
  }
  .dash-user {
    min-height: 58px;
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
  }
  .dash-user div,
  .dash-user > svg {
    display: flex;
  }
  .dash-user div {
    flex-direction: column;
  }

  .role-sidebar .role-label {
    display: block !important;
    margin: 2px 10px 10px;
  }
  .role-sidebar > .role-switcher {
    width: 100%;
    display: block;
    margin: 0 0 14px;
  }
  .role-sidebar .role-switch-label,
  .role-sidebar .role-switch-trigger > span:nth-child(2),
  .role-sidebar .role-switch-trigger > svg {
    display: flex;
  }
  .role-sidebar .role-switch-label {
    display: block;
  }
  .role-sidebar .role-switch-trigger {
    width: 100%;
    min-height: 53px;
    grid-template-columns: 32px 1fr 15px;
    padding: 8px 10px;
  }
  .role-sidebar .role-sidebar-foot,
  .role-sidebar .tutor-public-profile {
    display: flex;
  }
  .role-sidebar .role-sidebar-foot > div,
  .role-sidebar .tutor-public-profile > span,
  .role-sidebar .tutor-public-profile > svg:last-child {
    display: flex;
  }
  .role-sidebar .role-sidebar-foot {
    margin-top: auto;
  }
  .role-sidebar .tutor-public-profile {
    justify-content: flex-start;
    padding: 12px;
  }

  .dash-main > header,
  .role-topbar {
    min-height: 55px;
    height: auto;
    padding: 8px 15px;
    background: #f8f9f5;
  }
  .dash-main > header .button {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 9px;
  }
  .role-topbar .button {
    min-height: 38px;
  }
  .role-content,
  .dash-content,
  .account-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .account-content {
    padding-top: 30px;
  }
  .role-content {
    padding-top: 28px;
  }

  .account-heading,
  .role-heading,
  .panel-heading {
    min-width: 0;
  }
  .account-heading > .button,
  .role-heading > .button {
    width: 100%;
  }
  .settings-card,
  .admin-panel,
  .admin-chart-card,
  .review-queue,
  .admin-activity,
  .earnings-chart-card,
  .earning-history,
  .tutor-calendar-panel {
    padding: 19px 16px;
  }
  .tabs {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs button {
    flex: none;
    min-height: 44px;
    white-space: nowrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .modal-backdrop,
  .groups-modal-backdrop {
    align-items: end;
    padding: 12px;
  }
  .modal,
  .groups-modal {
    width: 100%;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border-radius: 18px 18px 10px 10px;
    padding: 30px 20px calc(24px + env(safe-area-inset-bottom));
  }
  .notification-list > button {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    padding: 16px 12px;
  }
  .notification-list p {
    overflow-wrap: anywhere;
  }
  .admin-table {
    margin-inline: -4px;
    padding-bottom: 8px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .admin-table-head,
  .admin-table-row {
    min-width: 690px;
  }
}

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

@media print {
  .account-nav,
  .timetable-heading-actions,
  .timetable-toolbar,
  .timetable-momentum,
  .calendar-hint {
    display: none !important;
  }
  .account-shell {
    display: block;
  }
  .account-content {
    max-width: none;
    padding: 0;
  }
  .student-calendar {
    box-shadow: none;
  }
}

.home-map {
  padding: 120px max(30px, calc((100vw - 1240px) / 2));
  background: radial-gradient(circle at 92% 4%, rgba(201, 239, 106, 0.2), transparent 22%), #f3f5ef;
}
.home-map-heading {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 58px;
}
.home-map-heading h2,
.rhythm-copy h2,
.role-heading h2 {
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1.04;
  margin: 0;
}
.home-map-heading > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 5px;
}
.home-map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: solid #cfd8d1;
  border-width: 1px 0 0 1px;
}
.home-map-card {
  min-height: 340px;
  padding: 30px;
  border: solid #cfd8d1;
  border-width: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.home-map-card::after {
  content: "";
  width: 190px;
  height: 190px;
  border-radius: 50%;
  position: absolute;
  right: -105px;
  bottom: -110px;
  background: var(--card-wash, #dfeee5);
  transition: transform 0.35s ease;
}
.home-map-card:hover {
  z-index: 2;
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 20px 55px rgba(21, 42, 35, 0.1);
}
.home-map-card:hover::after {
  transform: scale(1.25);
}
.home-map-card.green {
  --card-wash: #cfe7d8;
}
.home-map-card.blue {
  --card-wash: #d9eaff;
}
.home-map-card.yellow {
  --card-wash: #f6e4a8;
}
.home-map-card.coral {
  --card-wash: #f2d4c7;
}
.home-map-card.lilac {
  --card-wash: #e6def2;
}
.home-map-card.mint {
  --card-wash: #cce7dd;
}
.home-map-index {
  position: absolute;
  right: 27px;
  top: 27px;
  color: #8c9892;
  font: 700 10px "Manrope";
  letter-spacing: 0.1em;
}
.home-map-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--green);
  box-shadow: 0 8px 24px rgba(21, 42, 35, 0.08);
  margin-bottom: 34px;
}
.home-map-card > small {
  display: block;
  color: var(--green);
  font: 800 9px "Manrope";
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.home-map-card > strong {
  display: block;
  max-width: 280px;
  font: 700 20px/1.3 "Manrope";
  letter-spacing: -0.03em;
}
.home-map-card > p {
  max-width: 295px;
  color: #68756f;
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 28px;
}
.home-map-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 30px;
  bottom: 27px;
  z-index: 1;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.home-group-story {
  max-width: 1440px;
  margin: auto;
  padding: 120px max(30px, 7vw);
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 8vw;
}
.home-group-copy h2 {
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1.04;
  margin: 0;
}
.home-group-copy > p {
  color: var(--muted);
  line-height: 1.75;
  margin: 25px 0 30px;
}
.home-group-points {
  margin-bottom: 31px;
}
.home-group-points > div {
  display: grid;
  grid-template-columns: 41px 1fr;
  gap: 13px;
  padding: 13px 0;
}
.home-group-points > div > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f1e5;
  color: var(--green);
}
.home-group-points p {
  color: #6a7771;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.home-group-points strong {
  display: block;
  color: var(--ink);
  font: 700 13px "Manrope";
  margin-bottom: 4px;
}
.home-group-demo {
  border: 1px solid #d9e0da;
  border-radius: 17px;
  background: white;
  position: relative;
  box-shadow: 0 30px 75px rgba(21, 42, 35, 0.13);
  transform: rotate(-0.5deg);
}
.home-group-demo-top {
  min-height: 70px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e5e9e5;
}
.home-group-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #d9eee1;
  color: var(--green);
  font: 800 10px "Manrope";
}
.home-group-demo-top > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.home-group-demo-top strong {
  font: 700 11px "Manrope";
}
.home-group-demo-top small {
  color: #8b9690;
  font-size: 8px;
  margin-top: 3px;
}
.home-group-demo-top > span {
  min-height: 33px;
  border: 1px solid #d7ded8;
  border-radius: 5px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #52615a;
  font-size: 8px;
  font-weight: 800;
}
.home-group-tabs {
  min-height: 44px;
  padding: 0 17px;
  display: flex;
  align-items: end;
  gap: 4px;
  border-bottom: 1px solid #e5e9e5;
}
.home-group-tabs > span {
  height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #7f8b85;
  font-size: 8px;
  font-weight: 800;
}
.home-group-tabs > span.active {
  border-color: var(--green);
  color: var(--green);
}
.home-group-tabs b {
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 7px;
  background: #e8eee9;
  font-size: 7px;
}
.home-group-chat {
  min-height: 335px;
  padding: 24px;
  background: #fdfdfa;
}
.home-group-message,
.home-group-image {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 10px;
  margin-bottom: 21px;
}
.home-group-message > div,
.home-group-image > div {
  min-width: 0;
}
.home-group-message small,
.home-group-image small {
  display: block;
  color: #8d9892;
  font-size: 7px;
  margin-bottom: 5px;
}
.home-group-message p {
  max-width: 500px;
  color: #506059;
  font-size: 10px;
  line-height: 1.55;
  margin: 0 0 6px;
}
.home-group-message p strong {
  color: var(--green);
}
.home-group-message div > span {
  color: #929c97;
  font-size: 7px;
}
.home-group-message.ai {
  grid-template-columns: 35px 1fr;
}
.home-group-message.ai > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--lime);
}
.home-group-message.ai > div {
  border: 1px solid #d6e3d4;
  border-radius: 8px;
  padding: 11px 13px;
  background: #eff5eb;
}
.home-group-message.ai small {
  color: var(--green);
  font-weight: 800;
}
.home-group-image > div > div {
  max-width: 250px;
  min-height: 62px;
  border-radius: 7px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e4eef8;
  color: #46749d;
}
.home-group-image div div > span {
  display: flex;
  flex-direction: column;
  color: #6d7e8c;
  font-size: 7px;
}
.home-group-image div div strong {
  color: #345d80;
  font-size: 9px;
  margin-bottom: 3px;
}
.home-group-composer {
  min-height: 62px;
  margin: 0 17px 17px;
  border: 1px solid #d2dad4;
  border-radius: 8px;
  padding: 8px 9px 8px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a0a9a4;
  font-size: 8px;
}
.home-group-composer > span {
  flex: 1;
}
.home-group-composer > b {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--green);
  color: white;
}
.home-group-invite {
  min-width: 230px;
  min-height: 67px;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  position: absolute;
  right: -28px;
  top: -33px;
  background: #f7edcc;
  box-shadow: 0 15px 35px rgba(21, 42, 35, 0.14);
  animation: float-card 4s ease-in-out infinite;
}
.home-group-invite > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #60470d;
  font-size: 9px;
  font-weight: 800;
}
.home-group-invite p {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #7c735f;
  font-size: 7px;
  margin: 0;
}
.home-group-invite strong {
  color: var(--ink);
  font-size: 9px;
  margin-bottom: 3px;
}
.home-group-invite b {
  color: var(--green);
  font-size: 7px;
}

.home-rhythm {
  max-width: 1440px;
  margin: auto;
  padding: 120px max(30px, 7vw);
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 8vw;
  align-items: center;
}
.rhythm-copy > p {
  color: var(--muted);
  line-height: 1.75;
  margin: 25px 0 32px;
}
.rhythm-points {
  margin-bottom: 32px;
}
.rhythm-points > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.rhythm-points > div > span {
  color: var(--green);
  font: 800 9px "Manrope";
  padding-top: 3px;
}
.rhythm-points p {
  color: #6a7771;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.rhythm-points strong {
  display: block;
  color: var(--ink);
  font: 700 14px "Manrope";
  margin-bottom: 4px;
}
.rhythm-demo {
  border: 1px solid #dbe2dc;
  border-radius: 18px;
  background: white;
  padding: 20px;
  box-shadow: 0 30px 70px rgba(21, 42, 35, 0.11);
  transform: rotate(0.5deg);
}
.rhythm-top {
  min-height: 100px;
  padding: 23px 25px;
  border-radius: 12px;
  background: var(--green-dark);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rhythm-top div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rhythm-top small {
  color: var(--lime);
  font: 800 8px "Manrope";
  letter-spacing: 0.15em;
}
.rhythm-top strong {
  font: 600 20px "Manrope";
  letter-spacing: -0.04em;
}
.rhythm-top > span {
  width: 59px;
  height: 59px;
  border: 7px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--lime);
  border-right-color: var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 13px "Manrope";
  transform: rotate(7deg);
}
.rhythm-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 15px;
}
.rhythm-week div {
  min-height: 63px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  gap: 3px;
}
.rhythm-week div:last-child {
  border: 0;
}
.rhythm-week div.today {
  background: #edf4e9;
  color: var(--green);
}
.rhythm-week small {
  color: #929c97;
  font: 800 7px "Manrope";
  letter-spacing: 0.1em;
}
.rhythm-week b {
  font: 700 15px "Manrope";
}
.rhythm-grid {
  height: 295px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(
      90deg,
      transparent 19.9%,
      var(--line) 20%,
      transparent 20.2%,
      transparent 39.9%,
      var(--line) 40%,
      transparent 40.2%,
      transparent 59.9%,
      var(--line) 60%,
      transparent 60.2%,
      transparent 79.9%,
      var(--line) 80%,
      transparent 80.2%
    ),
    repeating-linear-gradient(180deg, white 0, white 58px, #e9ede9 59px);
}
.rhythm-grid .time {
  position: absolute;
  left: 7px;
  color: #98a19d;
  font-size: 7px;
}
.rhythm-grid .t1 {
  top: 8px;
}
.rhythm-grid .t2 {
  top: 67px;
}
.rhythm-grid .t3 {
  top: 126px;
}
.rhythm-grid .t4 {
  top: 185px;
}
.rhythm-block {
  position: absolute;
  width: 18%;
  min-height: 56px;
  border-radius: 7px;
  padding: 9px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 7px;
  line-height: 1.4;
  box-shadow: 0 5px 14px rgba(21, 42, 35, 0.08);
}
.rhythm-block > span:last-child {
  display: flex;
  flex-direction: column;
}
.rhythm-block strong {
  font-size: 8px;
  margin-bottom: 3px;
}
.rhythm-block.calculus {
  left: 21%;
  top: 19px;
  background: #dff0e7;
  border-left: 3px solid #63af8b;
  color: #397258;
}
.rhythm-block.research {
  left: 61%;
  top: 77px;
  background: #eee7f6;
  border-left: 3px solid #9d7ec0;
  color: #745c8f;
}
.rhythm-block.biology {
  left: 41%;
  top: 181px;
  background: #faedc5;
  border-left: 3px solid #daa82e;
  color: #8d6914;
}
.empty-dot {
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex: none;
}
.rhythm-streak {
  margin-top: 15px;
  min-height: 68px;
  border-radius: 11px;
  padding: 12px 15px;
  background: #f6f1df;
  display: flex;
  align-items: center;
  gap: 12px;
}
.streak-flame {
  width: 39px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #6c4c06;
  background: var(--yellow);
  border-radius: 55% 55% 48% 48% / 70% 70% 35% 35%;
  font: 800 13px "Manrope";
  animation: streak-breathe 2.4s ease-in-out infinite;
}
.rhythm-streak div {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.rhythm-streak strong {
  font: 700 11px "Manrope";
}
.rhythm-streak small {
  color: #776f5c;
  font-size: 8px;
  margin-top: 3px;
}
.rhythm-streak > svg {
  color: var(--green);
}

.mastery-section {
  max-width: 1320px;
}
.mastery-heading {
  padding: 0 10px;
}
.mastery-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mastery-step {
  min-width: 0;
  min-height: 510px;
  border: solid var(--line);
  border-width: 1px 1px 1px 0;
  background: white;
  padding: 23px;
  color: var(--ink);
  text-align: left;
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.mastery-step:first-child {
  border-left-width: 1px;
}
.mastery-step:hover {
  z-index: 2;
  transform: translateY(-7px);
  box-shadow: 0 20px 50px rgba(21, 42, 35, 0.1);
}
.mastery-number {
  color: #929d97;
  font: 800 9px "Manrope";
}
.mastery-paper,
.mastery-flash,
.mastery-question,
.mastery-feedback {
  height: 190px;
  margin: 18px 0 24px;
  border-radius: 9px;
}
.mastery-paper {
  margin-inline: 18px;
  padding: 27px 23px;
  background: #e2edf8;
  box-shadow:
    8px 7px 0 white,
    9px 8px 0 #cfd8df;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--green);
}
.mastery-paper > span {
  font: 800 8px "Manrope";
  letter-spacing: 0.1em;
  margin: 16px 0 14px;
}
.mastery-paper i {
  width: 100%;
  height: 4px;
  background: rgba(21, 42, 35, 0.15);
  margin-bottom: 7px;
}
.mastery-paper i:last-child {
  width: 65%;
}
.mastery-flash {
  background: #f8efd7;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.mastery-flash small,
.mastery-question > span {
  color: #a17717;
  font: 800 7px "Manrope";
  letter-spacing: 0.14em;
}
.mastery-flash strong {
  font: 700 13px/1.4 "Manrope";
  max-width: 190px;
  margin: 20px 0;
}
.mastery-flash span {
  color: #938c79;
  font-size: 8px;
}
.mastery-question {
  background: #eff3ec;
  padding: 18px;
}
.mastery-question strong {
  display: block;
  font: 700 10px/1.4 "Manrope";
  margin: 13px 0;
}
.mastery-question i {
  display: block;
  border: 1px solid #d7ded7;
  border-radius: 5px;
  background: white;
  padding: 8px;
  margin-top: 7px;
  font-style: normal;
  font-size: 8px;
}
.mastery-question i.selected {
  border-color: var(--green);
  color: var(--green);
  background: #e5f1e8;
  font-weight: 700;
}
.mastery-feedback {
  background: var(--green-dark);
  padding: 24px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: white;
}
.mastery-feedback > svg {
  color: var(--lime);
  flex: none;
}
.mastery-feedback span {
  display: flex;
  flex-direction: column;
  color: #bed0c9;
  font-size: 8px;
  line-height: 1.55;
}
.mastery-feedback strong {
  color: white;
  font-size: 11px;
  margin-bottom: 6px;
}
.mastery-step > small {
  color: var(--green);
  font: 800 8px "Manrope";
  letter-spacing: 0.13em;
}
.mastery-step > strong {
  display: block;
  font: 700 18px/1.3 "Manrope";
  margin: 8px 0 10px;
}
.mastery-step > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.mastery-link {
  position: absolute;
  left: 23px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.human-help {
  padding: 120px max(30px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 0.77fr 1.23fr;
  gap: 7vw;
  align-items: center;
  background:
    radial-gradient(circle at 12% 115%, rgba(201, 239, 106, 0.14), transparent 30%),
    var(--green-dark);
  color: white;
}
.human-help-copy h2 {
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.04;
  margin: 0 0 25px;
}
.human-help-copy h2 em {
  color: var(--lime);
}
.human-help-copy > p {
  color: #b9ccc4;
  line-height: 1.75;
  font-size: 15px;
}
.human-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}
.human-text-link {
  border: 0;
  border-bottom: 1px solid #75938a;
  padding: 8px 0;
  background: transparent;
  color: white;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
}
.human-panels {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 15px;
  align-items: center;
}
.human-question,
.human-tutor {
  border: 0;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  padding: 25px;
  text-align: left;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}
.human-question:hover {
  transform: translateY(-6px) rotate(-0.5deg);
}
.human-question > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.human-question > div:first-child > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.human-question > div strong {
  font-size: 10px;
}
.human-question > div small {
  color: #87928d;
  font-size: 8px;
  margin-top: 3px;
}
.human-question > div b {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 20px;
  color: var(--green);
  background: #e5f1e8;
  font-size: 7px;
}
.human-question h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 25px 0 10px;
}
.human-question > p {
  color: #6b7772;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 27px;
}
.human-panel-foot {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7f8a85;
  font-size: 8px;
}
.human-panel-foot > span,
.human-panel-foot > strong {
  display: flex;
  align-items: center;
  gap: 5px;
}
.human-panel-foot > strong {
  color: var(--green);
}
.human-tutor {
  transform: rotate(1.3deg);
}
.human-tutor:hover {
  transform: translateY(-6px) rotate(0);
}
.human-tutor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #efc970;
  color: #644c16;
  font: 800 18px "Manrope";
  margin-bottom: 15px;
}
.human-available {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}
.human-available i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42b77c;
  box-shadow: 0 0 0 3px #e1f4e9;
}
.human-tutor h3 {
  font-size: 20px;
  margin: 8px 0 2px;
}
.human-tutor > p {
  color: #7b8781;
  font-size: 9px;
}
.human-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #dba926;
  font-size: 9px;
  margin: 16px 0;
}
.human-rating span {
  color: #8a9490;
}
.human-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}
.human-slots span {
  padding: 6px 7px;
  border-radius: 4px;
  background: #edf3ea;
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
}

.role-section {
  max-width: 1300px;
}
.role-heading {
  text-align: center;
  margin-bottom: 57px;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.role-card {
  min-height: 480px;
  padding: 33px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}
.student-role {
  background: #e7f1e5;
}
.tutor-role {
  background: #e6eef9;
}
.trust-role {
  background: #f7eed5;
}
.role-label {
  color: var(--green);
  font: 800 8px "Manrope";
  letter-spacing: 0.15em;
}
.role-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 28px 0 23px;
  border-radius: 50%;
  background: white;
  color: var(--green);
}
.role-card h3 {
  font-size: 23px;
  margin-bottom: 13px;
}
.role-card > p {
  color: #64716b;
  font-size: 13px;
  line-height: 1.65;
}
.role-card ul {
  list-style: none;
  padding: 13px 0 55px;
  margin: 0;
}
.role-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  color: #56645e;
  font-size: 11px;
}
.role-card li svg {
  color: var(--green);
}
.role-card > button {
  position: absolute;
  left: 33px;
  bottom: 30px;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 5px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
}
.role-footer {
  min-height: 110px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.role-footer p {
  color: #6d7974;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.role-footer strong {
  display: block;
  color: var(--ink);
  font: 700 14px "Manrope";
}

@media (max-width: 1050px) {
  .home-map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-rhythm,
  .home-group-story,
  .human-help {
    grid-template-columns: 1fr;
  }
  .rhythm-copy,
  .human-help-copy {
    max-width: 700px;
  }
  .rhythm-demo {
    width: min(760px, 100%);
  }
  .human-panels {
    max-width: 760px;
  }
  .mastery-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .mastery-step:nth-child(3) {
    border-left-width: 1px;
  }
}
@media (max-width: 760px) {
  .home-map,
  .home-rhythm,
  .home-group-story,
  .human-help {
    padding: 80px 20px;
  }
  .home-map-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 38px;
  }
  .home-map-grid,
  .mastery-flow,
  .role-grid,
  .human-panels {
    grid-template-columns: 1fr;
  }
  .home-map-card {
    min-height: 320px;
  }
  .home-rhythm {
    gap: 55px;
  }
  .home-group-story {
    gap: 65px;
  }
  .home-group-demo {
    transform: none;
  }
  .home-group-invite {
    right: 8px;
  }
  .rhythm-demo {
    padding: 12px;
    transform: none;
  }
  .rhythm-block {
    width: 26%;
  }
  .rhythm-block.calculus {
    left: 20%;
  }
  .rhythm-block.research {
    left: 60%;
  }
  .rhythm-block.biology {
    left: 40%;
  }
  .mastery-step,
  .mastery-step:nth-child(3) {
    border-left-width: 1px;
  }
  .human-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .human-tutor {
    transform: none;
  }
  .role-heading {
    text-align: left;
  }
  .role-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-map-card,
  .mastery-step,
  .human-question,
  .human-tutor {
    transition: none;
  }
  .streak-flame {
    animation: none;
  }
  .home-group-invite {
    animation: none;
  }
}

.product-story {
  --story-accent: #087653;
  --story-pale: #e7f1e5;
  color: var(--ink);
  background: #fbfaf6;
}
.product-story-library {
  --story-accent: #386f9e;
  --story-pale: #e4eef8;
}
.product-story-packs {
  --story-accent: #997015;
  --story-pale: #f7ecc9;
}
.product-story-groups {
  --story-accent: #8a5945;
  --story-pale: #f3e2da;
}
.product-story-ai {
  --story-accent: #71558f;
  --story-pale: #ebe3f3;
}
.product-story-tutors {
  --story-accent: #356f64;
  --story-pale: #dceee8;
}
.product-story-hero {
  padding: 38px max(30px, calc((100vw - 1240px) / 2)) 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 84% 18%,
      color-mix(in srgb, var(--story-pale) 85%, transparent),
      transparent 28%
    ),
    #fbfaf6;
}
.product-story-back,
.product-story-text-button {
  border: 0;
  border-bottom: 1px solid #b9c3bd;
  padding: 0 0 4px;
  background: transparent;
  color: #63716a;
  font-size: 10px;
  font-weight: 700;
}
.product-story-hero-grid {
  min-height: 580px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 7vw;
  padding: 45px 0 55px;
}
.product-story-kicker {
  color: var(--story-accent);
  font: 800 9px "Manrope";
  letter-spacing: 0.16em;
}
.product-story-hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: 0.99;
  margin: 20px 0 26px;
}
.product-story-hero-grid > div:first-child > p {
  max-width: 630px;
  color: #64716b;
  font-size: 16px;
  line-height: 1.75;
}
.product-story-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 31px;
}
.product-story-actions .button {
  background: var(--story-accent);
}
.product-story-preview {
  min-height: 470px;
  display: grid;
  place-items: center;
  position: relative;
}
.preview-orbit {
  width: 430px;
  height: 430px;
  border: 1px solid color-mix(in srgb, var(--story-accent) 20%, transparent);
  border-radius: 50%;
  position: absolute;
}
.preview-orbit.two {
  width: 320px;
  height: 320px;
}
.preview-window {
  width: min(440px, 88%);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: white;
  box-shadow: 0 32px 80px rgba(21, 42, 35, 0.17);
  transform: rotate(1.5deg);
}
.preview-window-top {
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #e6eae6;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f8f9f6;
}
.preview-window-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cfdbd3;
}
.preview-window-top i:first-child {
  background: #efbd4c;
}
.preview-window-top span {
  margin-left: auto;
  color: #87938d;
  font: 700 8px "Manrope";
}
.preview-window-body {
  min-height: 330px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(135deg, transparent 65%, var(--story-pale) 65%);
}
.preview-feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--story-pale);
  color: var(--story-accent);
}
.preview-feature-icon svg {
  width: 23px;
  height: 23px;
}
.preview-window-body > small {
  color: var(--story-accent);
  font: 800 8px "Manrope";
  letter-spacing: 0.13em;
  margin: 25px 0 8px;
}
.preview-window-body > strong {
  font: 700 23px/1.25 "Manrope";
  letter-spacing: -0.04em;
}
.preview-window-body > p {
  color: #75817b;
  font-size: 10px;
  margin: 8px 0 20px;
}
.preview-lines {
  width: 75%;
}
.preview-lines i {
  display: block;
  height: 5px;
  border-radius: 5px;
  background: #e7ebe7;
  margin-bottom: 8px;
}
.preview-lines i:nth-child(2) {
  width: 82%;
}
.preview-lines i:nth-child(3) {
  width: 55%;
}
.preview-window-body > button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 4px;
  background: transparent;
  color: var(--story-accent);
  font-size: 9px;
  font-weight: 800;
  margin-top: 17px;
}
.preview-window-body > button b {
  margin-left: 5px;
}
.product-story-metrics {
  min-height: 105px;
  border-top: 1px solid #dfe4df;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.product-story-metrics div {
  padding: 25px;
  border-right: 1px solid #dfe4df;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-story-metrics div:last-child {
  border: 0;
}
.product-story-metrics strong {
  color: var(--story-accent);
  font: 700 25px "Manrope";
}
.product-story-metrics span {
  color: #77837d;
  font-size: 9px;
}
.product-story-journey,
.product-story-capabilities {
  padding: 120px max(30px, calc((100vw - 1240px) / 2));
}
.product-story-section-heading {
  max-width: 670px;
  margin-bottom: 55px;
}
.product-story-section-heading h2 {
  font-size: clamp(38px, 4vw, 57px);
  line-height: 1.05;
  margin: 16px 0;
}
.product-story-section-heading > p {
  color: #6b7771;
  line-height: 1.65;
}
.product-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: solid #dfe4df;
  border-width: 1px 0 1px 1px;
}
.product-journey-grid article {
  min-height: 285px;
  padding: 30px;
  border-right: 1px solid #dfe4df;
  position: relative;
}
.product-journey-grid article::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: 29px;
  background: var(--story-accent);
}
.product-journey-grid article > span {
  color: var(--story-accent);
  font: 800 9px "Manrope";
}
.product-journey-grid h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 80px 0 11px;
}
.product-journey-grid p,
.product-capability-grid p {
  color: #6c7872;
  font-size: 12px;
  line-height: 1.65;
}
.product-story-capabilities {
  background: var(--story-pale);
}
.product-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-capability-grid article {
  min-height: 300px;
  border-radius: 13px;
  padding: 31px;
  background: rgba(255, 255, 255, 0.78);
}
.product-capability-grid article > span {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--story-accent);
  box-shadow: 0 8px 24px rgba(21, 42, 35, 0.08);
}
.product-capability-grid svg {
  width: 22px;
  height: 22px;
}
.product-capability-grid h3 {
  font-size: 22px;
  margin: 75px 0 12px;
}
.product-story-quote {
  padding: 105px 30px;
  text-align: center;
}
.product-story-quote > span {
  color: var(--story-accent);
  font: 80px/0.7 Georgia;
}
.product-story-quote blockquote {
  max-width: 850px;
  margin: 25px auto;
  font:
    500 clamp(27px, 3vw, 42px)/1.4 Georgia,
    serif;
}
.product-story-quote p {
  color: #7d8983;
  font-size: 10px;
}
.product-story-cta {
  min-height: 310px;
  padding: 65px max(30px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  background: var(--story-accent);
  color: white;
}
.product-story-cta .product-story-kicker {
  color: #d9f485;
}
.product-story-cta h2 {
  max-width: 650px;
  font-size: clamp(37px, 4vw, 56px);
  margin: 14px 0 0;
}
.product-story-cta > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.product-story-cta > div:last-child > button:last-child {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0 0 4px;
  background: transparent;
  color: white;
  font-size: 10px;
}
@media (max-width: 900px) {
  .product-story-hero-grid {
    grid-template-columns: 1fr;
  }
  .product-story-preview {
    min-height: 450px;
  }
  .product-journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-journey-grid article:nth-child(3),
  .product-journey-grid article:nth-child(4) {
    border-top: 1px solid #dfe4df;
  }
  .product-capability-grid {
    grid-template-columns: 1fr;
  }
  .product-capability-grid article {
    min-height: 240px;
  }
  .product-capability-grid h3 {
    margin-top: 45px;
  }
}
@media (max-width: 620px) {
  .product-story-hero {
    padding-inline: 20px;
  }
  .product-story-hero-grid {
    min-height: 0;
    padding-top: 50px;
  }
  .product-story-actions,
  .product-story-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-story-actions .button {
    width: 100%;
  }
  .product-story-preview {
    min-height: 370px;
  }
  .preview-orbit {
    width: 330px;
    height: 330px;
  }
  .preview-orbit.two {
    width: 250px;
    height: 250px;
  }
  .preview-window-body {
    padding: 28px;
  }
  .product-story-metrics strong {
    font-size: 19px;
  }
  .product-story-metrics div {
    padding: 20px 8px;
  }
  .product-story-journey,
  .product-story-capabilities {
    padding: 80px 20px;
  }
  .product-journey-grid {
    grid-template-columns: 1fr;
  }
  .product-journey-grid article {
    min-height: 230px;
    border-top: 1px solid #dfe4df;
  }
  .product-journey-grid article:first-child {
    border-top: 0;
  }
  .product-journey-grid h3 {
    margin-top: 50px;
  }
  .product-story-cta {
    padding: 65px 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preview-window {
    transform: none;
  }
}

.account-shell:has(.groups-page) .account-content {
  max-width: 1480px;
  padding: 42px 34px 60px;
}
.groups-page {
  --group-line: #dce2dd;
  --group-soft: #f5f7f2;
  min-width: 0;
}
.groups-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.groups-heading h1 {
  font-size: clamp(38px, 4vw, 54px);
  margin: 3px 0 8px;
}
.groups-heading p {
  color: #6f7b75;
  margin: 0;
  font-size: 13px;
}
.groups-kicker {
  color: var(--green);
  font: 800 9px "Manrope";
  letter-spacing: 0.16em;
}
.groups-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.groups-primary-button,
.groups-secondary-button,
.groups-inbox-button {
  min-height: 43px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
}
.groups-primary-button {
  background: var(--green);
  color: white;
  box-shadow: 0 10px 24px rgba(8, 118, 83, 0.15);
}
.groups-secondary-button,
.groups-inbox-button {
  border: 1px solid #ccd5cf;
  background: white;
  color: var(--ink);
}
.groups-inbox-button {
  position: relative;
}
.groups-inbox-button b {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e9bd4f;
  color: #4c390c;
  font-size: 8px;
}
.groups-shell {
  height: min(760px, calc(100vh - 160px));
  min-height: 650px;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  border: 1px solid var(--group-line);
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 20px 55px rgba(21, 42, 35, 0.07);
}
.groups-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--group-line);
  background: #f8f9f6;
}
.groups-search {
  height: 61px;
  margin: 0 15px;
  border-bottom: 1px solid var(--group-line);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a958f;
}
.groups-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}
.groups-list-title {
  padding: 18px 18px 10px;
  display: flex;
  justify-content: space-between;
  color: #87928c;
  font: 800 8px "Manrope";
  letter-spacing: 0.12em;
}
.groups-list-title small {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9eee9;
  color: #64716b;
  font-size: 8px;
  letter-spacing: 0;
}
.groups-list-scroll {
  padding: 0 8px;
  overflow-y: auto;
}
.groups-list-item {
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
}
.groups-list-item.active {
  background: white;
  box-shadow: 0 7px 20px rgba(21, 42, 35, 0.07);
}
.groups-list-item > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.groups-list-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 11px "Manrope";
}
.groups-list-item small {
  color: #8a958f;
  font-size: 8px;
  margin-top: 5px;
}
.groups-list-item > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.group-avatar {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  font: 800 10px "Manrope";
}
.group-avatar.green {
  background: #d9eee1;
  color: #317257;
}
.group-avatar.blue {
  background: #dceafa;
  color: #416d9e;
}
.group-avatar.gold {
  background: #f8e9bb;
  color: #8c6812;
}
.group-avatar.lilac {
  background: #e8e0f2;
  color: #765d91;
}
.groups-ai-tip {
  margin: auto 13px 13px;
  border: 1px solid #d7e4d5;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 10px;
  background: #edf4e9;
}
.groups-ai-tip > span {
  width: 29px;
  height: 29px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--lime);
}
.groups-ai-tip div {
  min-width: 0;
}
.groups-ai-tip strong {
  font: 700 9px/1.4 "Manrope";
}
.groups-ai-tip p {
  color: #65756d;
  font-size: 8px;
  line-height: 1.5;
  margin: 5px 0 8px;
}
.groups-ai-tip button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  padding: 0 0 2px;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}
.group-room {
  min-width: 0;
  display: grid;
  grid-template-rows: 74px 48px minmax(0, 1fr) auto;
  background: white;
}
.group-room-header {
  padding: 0 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--group-line);
}
.group-avatar.large {
  width: 44px;
  height: 44px;
}
.group-room-header > div:nth-child(2) {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.group-room-header h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  margin: 0 0 3px;
}
.group-room-header span {
  color: #83908a;
  font-size: 8px;
}
.group-room-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.group-room-actions button {
  min-height: 35px;
  border: 1px solid var(--group-line);
  border-radius: 6px;
  background: white;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #52615a;
  font-size: 9px;
  font-weight: 700;
}
.group-room-actions button:last-child {
  width: 35px;
  padding: 0;
  justify-content: center;
}
.group-tabs {
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 0 19px;
  border-bottom: 1px solid var(--group-line);
}
.group-tabs button {
  height: 48px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 12px;
  color: #78847e;
  font-size: 9px;
  font-weight: 800;
}
.group-tabs button.active {
  border-bottom-color: var(--green);
  color: var(--green);
}
.group-tabs span {
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #e8eee9;
  font-size: 7px;
}
.group-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 25px 12px;
}
.group-day-divider {
  display: flex;
  align-items: center;
  color: #9aa39f;
  font-size: 8px;
  margin-bottom: 22px;
}
.group-day-divider::before,
.group-day-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #edf0ed;
}
.group-day-divider span {
  padding: 0 12px;
}
.group-message {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 21px;
}
.message-avatar,
.member-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0ce78;
  color: #5d4610;
  font: 800 8px "Manrope";
}
.message-avatar.ai {
  background: var(--green-dark);
  color: var(--lime);
}
.message-content {
  min-width: 0;
}
.message-meta {
  height: 21px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.message-meta strong {
  font: 700 10px "Manrope";
}
.message-meta small {
  color: #a0a9a4;
  font-size: 7px;
}
.message-meta b {
  padding: 3px 5px;
  border-radius: 3px;
  background: #edf3ea;
  color: var(--green);
  font-size: 6px;
  letter-spacing: 0.08em;
}
.message-content > p {
  max-width: 720px;
  color: #4f5e57;
  font-size: 11px;
  line-height: 1.65;
  margin: 2px 0 7px;
  white-space: pre-wrap;
}
.ai-message .message-content {
  max-width: 760px;
  border: 1px solid #d4e4d2;
  border-radius: 9px;
  background: #f1f6ed;
  padding: 12px 14px;
}
.ai-message .message-meta {
  color: var(--green);
}
.message-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.message-actions button {
  border: 0;
  background: transparent;
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8a958f;
  font-size: 8px;
}
.message-actions button.solved {
  color: var(--green);
  font-weight: 800;
}
.message-image {
  width: min(350px, 100%);
  max-height: 220px;
  border: 0;
  border-radius: 9px;
  padding: 0;
  overflow: hidden;
  display: block;
  margin: 9px 0;
  background: #eef1ed;
}
.message-image img {
  width: 100%;
  max-height: 220px;
  display: block;
  object-fit: cover;
}
.group-empty {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8d9892;
  text-align: center;
}
.group-empty h3 {
  color: var(--ink);
  font-size: 15px;
  margin: 13px 0 5px;
}
.group-empty p {
  max-width: 310px;
  font-size: 9px;
  line-height: 1.55;
}
.group-composer {
  border-top: 1px solid var(--group-line);
  padding: 10px 17px 15px;
  background: #fcfcfa;
}
.composer-mode {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.composer-mode > button {
  border: 0;
  border-radius: 4px;
  padding: 5px 8px;
  background: transparent;
  color: #87928c;
  font-size: 8px;
  font-weight: 800;
}
.composer-mode > button.active {
  background: #e7efe7;
  color: var(--green);
}
.composer-mode > span {
  margin-left: auto;
  color: #9aa39f;
  font-size: 7px;
}
.composer-mode > span button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--green);
  font-weight: 800;
}
.composer-row {
  display: flex;
  align-items: end;
  gap: 7px;
  border: 1px solid #ced7d1;
  border-radius: 9px;
  padding: 7px;
  background: white;
}
.composer-row textarea {
  min-width: 0;
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  padding: 6px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.5;
}
.attach-button,
.send-button {
  width: 35px;
  height: 35px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
}
.attach-button {
  background: #eef1ed;
  color: #68766f;
}
.send-button {
  background: var(--green);
  color: white;
}
.composer-image {
  width: 95px;
  height: 65px;
  margin-bottom: 7px;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}
.composer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.composer-image button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 38, 30, 0.8);
  color: white;
}
.group-members-view {
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  grid-row: 3 / 5;
}
.group-about-card {
  padding: 22px;
  border-radius: 10px;
  background: var(--green-dark);
  color: white;
  margin-bottom: 17px;
}
.group-about-card > span {
  color: var(--lime);
  font: 800 7px "Manrope";
  letter-spacing: 0.14em;
}
.group-about-card h3 {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.45;
  margin: 10px 0;
}
.group-about-card p {
  color: #9db6ad;
  font-size: 8px;
  margin: 0;
}
.member-list {
  margin-bottom: 17px;
}
.member-list article {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #edf0ed;
}
.member-list article > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.member-list strong {
  font-size: 10px;
}
.member-list small {
  color: #8e9993;
  font-size: 8px;
  margin-top: 3px;
}
.member-list article > i {
  color: var(--green);
  font-size: 7px;
  font-style: normal;
}
.member-list article > b {
  min-width: 62px;
  color: #77847d;
  font-size: 8px;
  text-align: right;
}

.groups-modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: 25px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(5, 30, 24, 0.62);
  backdrop-filter: blur(8px);
}
.groups-modal {
  width: min(590px, 100%);
  border-radius: 15px;
  background: #fbfaf6;
  padding: 35px;
  position: relative;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
  animation: group-modal-in 0.25s ease both;
}
.groups-modal.compact {
  width: min(540px, 100%);
}
.groups-modal-close {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--group-line);
  border-radius: 50%;
  background: transparent;
  color: #64716b;
  position: absolute;
  top: 20px;
  right: 20px;
}
.groups-modal h2 {
  font-size: 29px;
  margin: 9px 40px 7px 0;
}
.groups-modal > p {
  max-width: 450px;
  color: #77837d;
  font-size: 11px;
  line-height: 1.55;
  margin-bottom: 25px;
}
.groups-modal form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.groups-modal label {
  color: #52615a;
  font-size: 9px;
  font-weight: 800;
}
.groups-modal label > small {
  color: #98a19c;
  font-size: 7px;
  font-weight: 500;
}
.groups-modal input,
.groups-modal textarea {
  width: 100%;
  border: 1px solid #d5dcd7;
  border-radius: 7px;
  background: white;
  outline: 0;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 400;
  margin-top: 6px;
}
.groups-modal input:focus,
.groups-modal textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 118, 83, 0.08);
}
.groups-modal textarea {
  resize: vertical;
}
.groups-modal fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
}
.groups-modal legend {
  color: #52615a;
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 8px;
}
.groups-modal fieldset button {
  width: 27px;
  height: 27px;
  border: 2px solid transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.groups-modal fieldset button.active {
  border-color: var(--ink);
}
.groups-modal fieldset .green {
  background: #8bc9a6;
}
.groups-modal fieldset .blue {
  background: #91b9e5;
}
.groups-modal fieldset .gold {
  background: #e7bd4f;
}
.groups-modal fieldset .lilac {
  background: #b9a1d3;
}
.groups-modal form > .groups-primary-button {
  width: 100%;
  margin-top: 3px;
}
.invite-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.invite-input > span {
  color: #8a958f;
  font-size: 12px;
}
.invite-input input {
  flex: 1;
  margin: 0;
}
.invite-input .groups-primary-button {
  flex: none;
}
.suggested-people {
  border-top: 1px solid var(--group-line);
  margin-top: 25px;
  padding-top: 20px;
}
.suggested-people > span {
  color: #929c97;
  font: 800 7px "Manrope";
  letter-spacing: 0.13em;
}
.suggested-people > button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid #edf0ed;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-align: left;
}
.suggested-people i {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6eee5;
  color: var(--green);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.suggested-people button > span {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.suggested-people strong {
  font-size: 9px;
}
.suggested-people small {
  color: #8b9690;
  font-size: 7px;
  margin-top: 2px;
}
.suggested-people svg {
  color: var(--green);
}
.invite-list article {
  min-height: 105px;
  border: 1px solid var(--group-line);
  border-radius: 9px;
  padding: 13px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}
.invite-list article > div {
  display: flex;
  flex-direction: column;
}
.invite-list article strong {
  font-size: 11px;
}
.invite-list article small {
  color: var(--green);
  font-size: 8px;
  margin-top: 3px;
}
.invite-list article p {
  color: #87928d;
  font-size: 8px;
  margin: 7px 0 0;
}
.invite-list article > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.invite-list article > span button {
  min-height: 31px;
  border: 1px solid var(--group-line);
  border-radius: 5px;
  padding: 0 10px;
  background: white;
  color: #65726c;
  font-size: 8px;
  font-weight: 800;
}
.invite-list article > span button:last-child {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
@keyframes group-modal-in {
  from {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .groups-shell {
    grid-template-columns: 235px minmax(0, 1fr);
  }
  .groups-ai-tip {
    display: none;
  }
}
@media (max-width: 760px) {
  .account-shell:has(.groups-page) .account-content {
    padding: 24px 14px 35px;
  }
  .groups-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .groups-heading-actions {
    width: 100%;
  }
  .groups-heading-actions button {
    flex: 1;
  }
  .groups-shell {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .groups-list {
    border: 0;
    border-bottom: 1px solid var(--group-line);
  }
  .groups-list-scroll {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 0 10px 12px;
  }
  .groups-list-title {
    padding-top: 11px;
  }
  .groups-list-item {
    min-width: 210px;
  }
  .group-room {
    min-height: 670px;
    grid-template-rows: 70px 47px minmax(350px, 1fr) auto;
  }
  .group-room-actions button:first-child {
    width: 35px;
    padding: 0;
    font-size: 0;
    justify-content: center;
  }
  .group-messages {
    padding-inline: 15px;
  }
  .composer-mode > span {
    display: none;
  }
  .groups-modal {
    padding: 30px 20px;
  }
  .invite-list article {
    grid-template-columns: 42px 1fr;
  }
  .invite-list article > span:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .invite-list article > span button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .groups-modal {
    animation: none;
  }
}

*,
*::before,
*::after {
  letter-spacing: 0;
}
[hidden] {
  display: none !important;
}
.mobile-account-links {
  display: none;
}
.programme-results-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 28px 0 18px;
}
.programme-page .library-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
}
.programme-page .library-tools .searchbox {
  min-width: 0;
  padding: 0 18px;
  min-height: 54px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.programme-page .select-wrap select {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 16px;
}
.programme-page .select-wrap {
  padding: 0;
  border: 0;
  min-width: 0;
}
.programme-community .page-title-row {
  align-items: flex-start;
}
.programme-community .page-title-row > div {
  min-width: 0;
  flex: 1;
}
.programme-community .page-title-row h1 {
  font-size: 38px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.programme-grid,
.saved-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.programme-forum-card,
.saved-item,
.package-item {
  min-width: 0;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.programme-forum-card {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.programme-forum-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 10px 25px #174f2910;
}
.programme-forum-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.programme-forum-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
}
.programme-forum-icon.mint {
  background: #e4f2e6;
  color: #296640;
}
.programme-forum-icon.gold {
  background: #fbf1cd;
  color: #816520;
}
.programme-forum-icon.blue {
  background: #e5effa;
  color: #41699b;
}
.programme-forum-card h2,
.saved-item h2,
.package-item h2 {
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  margin: 0;
}
.programme-forum-card p,
.saved-item p,
.package-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.programme-open {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  padding-top: 14px;
  margin-top: auto;
}
.saved-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
}
.package-price {
  font-size: 26px;
  font-weight: 800;
}
.package-item .button {
  margin-top: auto;
}
.concern-list {
  display: grid;
  gap: 20px;
}
.concern-item > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.concern-item p,
.review-record p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.concern-review {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.section-divider {
  margin-top: 30px;
}
.review-record {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.review-record h3 {
  font-size: 17px;
}
.settings-fieldset {
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin: 12px 0;
  display: grid;
  gap: 16px;
}
.settings-fieldset legend,
.settings-fieldset summary {
  font-weight: 700;
  font-size: 16px;
  padding-right: 16px;
}
.settings-fieldset details {
  width: 100%;
}
.plan-settings-form {
  max-width: 850px;
}
.meeting-private {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  background: #edf5ed;
}
.circle-meeting {
  min-width: 0;
}
.circle-meeting .meeting-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: auto auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.circle-meeting .meeting-stage {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 16 / 10;
  min-width: 0;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  background: #1a2c25;
  color: white;
}
.circle-meeting #remote-video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}
.circle-meeting #local-video {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 25%;
  max-width: 190px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 2px solid #ffffffcc;
  border-radius: 6px;
  background: #30453a;
}
.circle-meeting .meeting-stage:not([data-joined="true"]) #local-video {
  visibility: hidden;
}
.circle-meeting .meeting-waiting {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 20px;
  text-align: center;
}
.circle-meeting .meeting-waiting > svg {
  width: 40px;
  height: 40px;
  color: #a9c7b7;
  stroke-width: 1.3;
}
.circle-meeting .meeting-waiting strong {
  font-size: 18px;
}
.circle-meeting .meeting-waiting span {
  font-size: 13px;
  color: #c6d8cc;
}
.circle-meeting .meeting-stage[data-has-remote="true"] .meeting-waiting {
  visibility: hidden;
}
.circle-meeting #meeting-state {
  position: absolute;
  top: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border: 1px solid #ffffff24;
  background: #14271ee8;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  line-height: 1.5;
}
.circle-meeting .meeting-controls {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.circle-meeting .btn,
.circle-meeting .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--green);
  color: white;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease;
}
.circle-meeting .icon-btn {
  width: 44px;
  flex-shrink: 0;
  padding: 10px;
  color: var(--ink);
  background: white;
  border-color: var(--line);
}
.circle-meeting .btn svg,
.circle-meeting .icon-btn svg {
  width: 18px;
  height: 18px;
}
.circle-meeting .btn.danger {
  background: #ae3333;
}
.circle-meeting button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.circle-meeting button:not(:disabled):hover {
  filter: brightness(0.95);
}
.circle-meeting button:focus-visible,
.circle-meeting input:focus-visible,
.circle-meeting summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.circle-meeting .meeting-chat {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-left: 1px solid var(--line);
  background: #fff;
}
.circle-meeting .meeting-chat-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}
.circle-meeting .meeting-chat-heading > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--green);
  background: #edf5ed;
}
.circle-meeting .meeting-chat-heading svg {
  width: 18px;
  height: 18px;
}
.circle-meeting .meeting-chat-heading h2 {
  margin: 0 0 4px;
  font-size: 16px;
}
.circle-meeting .meeting-chat-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.circle-meeting .meeting-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.circle-meeting .meeting-reactions .icon-btn {
  width: 40px;
  min-height: 44px;
  padding: 6px;
  font-size: 20px;
  border-color: transparent;
  background: #f6f8f4;
}
.circle-meeting #meeting-chat-log {
  flex: 1;
  min-height: 100px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.circle-meeting #meeting-chat-log:empty::before {
  content: "Your conversation starts here.";
  color: var(--muted);
  font-size: 13px;
  display: block;
  padding-top: 24px;
  text-align: center;
}
.circle-meeting .meeting-message {
  width: fit-content;
  max-width: 95%;
  margin: 8px 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f1f4ef;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.circle-meeting .meeting-message.own {
  margin-left: auto;
  background: #e5f1e4;
}
.circle-meeting #meeting-chat-form {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.circle-meeting #meeting-chat-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  color: var(--ink);
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.circle-meeting #meeting-chat-form button {
  background: var(--green);
  color: white;
}
.circle-meeting .meeting-privacy {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.circle-meeting .meeting-privacy summary {
  cursor: pointer;
  width: fit-content;
}
.circle-meeting .meeting-privacy p {
  margin: 12px 0 0;
  max-width: 720px;
}
.circle-meeting .meeting-reaction {
  position: absolute;
  bottom: 10%;
  left: 45%;
  z-index: 3;
  font-size: 44px;
  pointer-events: none;
  animation: meeting-reaction-float 2.5s ease-out forwards;
}
.circle-meeting .meeting-room:fullscreen {
  width: 100%;
  height: 100%;
  background: white;
  border: 0;
  border-radius: 0;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: minmax(0, 1fr) auto;
}
.circle-meeting .meeting-room:fullscreen .meeting-stage {
  aspect-ratio: auto;
  min-height: 0;
}
@keyframes meeting-reaction-float {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-140px);
  }
}
@media (max-width: 1100px) {
  .circle-meeting .meeting-room {
    grid-template-columns: minmax(0, 1fr);
  }
  .circle-meeting .meeting-chat {
    grid-column: 1;
    grid-row: 3;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .circle-meeting #meeting-chat-log {
    max-height: 220px;
  }
}
@media (max-width: 600px) {
  .circle-meeting .meeting-stage {
    min-height: 240px;
    aspect-ratio: 4/3;
  }
  .circle-meeting .meeting-controls {
    gap: 8px;
    padding: 12px;
  }
  .circle-meeting .btn {
    padding: 10px 12px;
  }
  .circle-meeting .meeting-chat {
    padding: 16px;
  }
  .circle-meeting .meeting-room:fullscreen {
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
  }
  .circle-meeting .meeting-room:fullscreen .meeting-stage {
    min-height: 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .circle-meeting .btn,
  .circle-meeting .icon-btn {
    transition: none;
  }
  .circle-meeting .meeting-reaction {
    animation: none;
  }
}
@media (max-width: 1000px) {
  .programme-grid,
  .saved-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .programme-page .library-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  .programme-community .page-title-row h1 {
    font-size: 28px;
  }
  .programme-grid,
  .saved-grid,
  .package-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .programme-forum-card,
  .saved-item,
  .package-item {
    padding: 20px;
  }
  .programme-page .page-title-row h1 {
    font-size: 30px;
  }
  .meeting-native .native-tools .page-head h1 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .programme-forum-card {
    transition: none;
  }
  .programme-forum-card:hover {
    transform: none;
  }
}
.initial-loader {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.initial-loader span {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #dce9dc;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: live-spin 1s linear infinite;
}
.week-card {
  align-self: start;
}
.manual-payment-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #f4f7f1;
  border-radius: 6px;
  text-align: left;
}
.plan-summary,
.session-detail-summary {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-width: 0;
}
.plan-summary > .kicker,
.session-detail-summary > .kicker {
  display: block;
  margin-bottom: 16px;
}
.plan-summary h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
.plan-summary .plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 20px;
}
.plan-summary .plan-price small {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.plan-summary hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.plan-summary p,
.session-detail-summary p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.plan-summary > small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.session-detail-summary > .button {
  margin-top: 12px;
}
.pack-builder-aside > .kicker {
  display: block;
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.pack-builder > .button {
  margin-top: 0;
}
.form-grid label:has(textarea) {
  grid-column: 1 / -1;
}
.auth-form input {
  font-weight: 400;
}
.auth-form .forgot label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 11px;
}
.auth-form .forgot input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex: none;
}
.modal.live-dialog form > label,
.modal.live-dialog form > .inline-fields,
.modal.live-dialog form > .button {
  margin: 0;
}
@media (pointer: coarse) {
  .app input:not([type="checkbox"]):not([type="radio"]),
  .app textarea,
  .app select,
  .modal-backdrop input:not([type="checkbox"]):not([type="radio"]),
  .modal-backdrop textarea,
  .modal-backdrop select {
    font-size: 16px !important;
  }
}
.role-switch-floating {
  z-index: 1100;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.student-form,
.pack-builder {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.student-form > label,
.pack-builder > label,
.live-dialog form > label,
.live-dialog .study-form-row > label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #4e5d56;
}
.student-form input:not([type="checkbox"]),
.student-form select,
.student-form textarea,
.pack-builder input:not([type="file"]),
.pack-builder textarea,
.settings-card textarea,
.live-dialog input:not([type="checkbox"]),
.live-dialog select,
.live-dialog textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d0d7d2;
  border-radius: 6px;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.student-form textarea,
.pack-builder textarea,
.settings-card textarea,
.live-dialog textarea {
  resize: vertical;
}
.student-form input:focus,
.student-form textarea:focus,
.pack-builder input:focus,
.pack-builder textarea:focus,
.live-dialog input:focus,
.live-dialog textarea:focus,
.live-dialog select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #08765312;
}
.live-dialog form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.live-dialog form > label,
.live-dialog form > .inline-fields,
.live-dialog form > .button {
  margin: 0;
}
.live-dialog > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.live-dialog > .kicker {
  display: block;
}
.modal.live-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.modal.live-dialog .modal-close {
  z-index: 2;
}
.source-dropzone {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #a9c5b2;
  border-radius: 8px;
  background: #f6faf5;
  color: var(--green);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}
.source-dropzone:hover {
  border-color: var(--green);
  background: #eef6ed;
}
.source-dropzone > input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.source-dropzone strong {
  font-size: 16px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.source-dropzone > span {
  font-size: 12px;
  color: var(--muted);
}
.pack-builder-layout,
.plan-checkout-layout,
.session-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
}
.pack-builder-aside {
  padding-top: 20px;
}
.pack-builder-aside > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.student-form .settings-title,
.pack-builder .settings-title {
  margin: 0;
}
.settings-card .consent-row {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}
.consent-row input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--green);
}
.source-dropzone:focus-within {
  outline: 3px solid #08765333;
  outline-offset: 3px;
}
.selected-course-list,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.selected-course-list button {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #c4d8ca;
  background: #edf5ec;
  color: var(--green);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: left;
}
.course-search-results {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: auto;
  max-height: 320px;
}
.course-search-results > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
  padding: 14px;
}
.course-search-results > button:hover {
  background: #f2f7ef;
}
.course-search-results small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.course-search-results p {
  margin: 16px;
}
.checkout-note {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.payment-card {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}
.payment-card .success-icon {
  margin: 8px auto 24px;
}
.payment-card p {
  color: var(--muted);
  line-height: 1.6;
}
.payment-card .button {
  margin: 20px auto;
}
.payment-status {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.session-card {
  min-width: 0;
}
.session-card h2 {
  overflow-wrap: anywhere;
}
.session-conversation-messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 500px;
  overflow-y: auto;
  margin-block: 24px;
}
.session-conversation-messages article {
  display: flex;
  gap: 12px;
}
.session-conversation-messages article > div {
  background: #f3f6f0;
  padding: 16px;
  border-radius: 0 8px 8px 8px;
  min-width: 0;
  flex: 1;
}
.session-conversation-messages article.mine > div {
  background: #e9f3e8;
}
.session-conversation-messages p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.session-conversation-messages small {
  color: var(--muted);
  font-size: 11px;
}
.session-compose {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.session-compose .button {
  align-self: end;
}
.week-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}
.week-navigation button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--green);
}
.week-navigation button:first-child svg {
  transform: rotate(180deg);
}
.week-navigation strong {
  font-size: 12px;
}
.student-time-slot {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0;
}
.student-time-slot:hover {
  background: #08765308;
}
.study-block .block-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.timetable-list .block-list-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.study-block-form .study-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ai-history-toggle,
.ai-history-close,
.ai-history-backdrop {
  display: none;
}
.ai-sidebar .new-chat + .new-chat {
  margin-top: 8px;
}
.ai-sidebar .ai-history-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--green);
}
.circle-loader {
  position: relative;
  width: 160px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--green-dark);
}
.circle-loader .mark {
  width: 38px;
  height: 38px;
}
.circle-loader strong {
  font: 700 16px Manrope;
}
.loader-orbit {
  position: absolute;
  top: 7px;
  width: 70px;
  height: 70px;
  border: 2px solid #e1ebdc;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: live-spin 1.2s linear infinite;
}
.loader-dots {
  display: flex;
  gap: 6px;
}
.loader-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: loader-breathe 1s ease-in-out infinite alternate;
}
.loader-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.loader-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes loader-breathe {
  from {
    opacity: 0.2;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(-2px);
  }
}
.group-invitation {
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.groups-page .group-room .group-empty {
  min-height: 220px;
}
.groups-page .group-empty.group-room {
  justify-content: center;
  align-items: center;
}
@media (max-width: 1100px) {
  .pack-builder-layout,
  .plan-checkout-layout,
  .session-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .pack-builder-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
@media (max-width: 980px) {
  .app input:not([type="checkbox"]):not([type="radio"]),
  .app textarea,
  .app select,
  .modal-backdrop input:not([type="checkbox"]):not([type="radio"]),
  .modal-backdrop textarea,
  .modal-backdrop select {
    font-size: 16px !important;
  }
  .auth-form-wrap {
    align-items: start;
    padding: 28px 22px 48px;
  }
  .auth-form {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }
  .auth-form .mobile-auth-brand {
    display: flex;
    width: fit-content;
    margin-bottom: 36px;
  }
  .auth-form > .kicker {
    display: block;
    margin: 0 0 12px;
  }
}
@media (max-width: 760px) {
  .ai-history-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--green);
    flex: none;
  }
  .ai-history-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: #062a2166;
    z-index: 109;
  }
  .ai-page .ai-sidebar.ai-history-open {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    height: 100dvh;
    width: min(320px, 88vw);
    z-index: 110;
    padding-top: max(24px, env(safe-area-inset-top));
    box-shadow: 20px 0 40px #102c2326;
  }
  .ai-history-open .ai-history-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
  }
  .ai-page .chat-top {
    height: 52px;
    padding-inline: 10px;
  }
  .chat-top > div > div {
    min-width: 0;
  }
  .chat-top strong {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .session-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .session-card .session-actions {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
  }
  .settings-card {
    padding: 22px 18px;
  }
  .settings-card.identity-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .identity-card > .type-pill {
    grid-column: 1/-1;
    justify-self: start;
  }
  .profile-avatar-large {
    width: 64px;
    height: 64px;
  }
  .timetable-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .week-navigation {
    order: 3;
    justify-content: center;
    width: 100%;
  }
  .study-block-form .study-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .modal.live-dialog {
    padding: 30px 22px;
  }
  .live-dialog h2 {
    font-size: 26px;
    padding-right: 20px;
  }
  .groups-page .group-room-header {
    flex-wrap: wrap;
  }
  .group-room-header > div:nth-child(2) {
    min-width: 0;
  }
  .groups-page .group-room-actions {
    margin-left: auto;
  }
  .groups-page .group-room-header h2 {
    overflow-wrap: anywhere;
  }
}
/* Clip decoration without making the app a scrolling ancestor of sticky menus. */
.app {
  overflow: clip;
}
.dash-side,
.account-nav,
.role-sidebar {
  align-self: start;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.ai-page {
  height: calc(100dvh - 82px);
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}
.ai-sidebar,
.chat-area {
  min-height: 0;
}
.ai-sidebar {
  overflow: hidden;
}
.ai-sidebar > :not(.ai-history-list) {
  flex-shrink: 0;
}
.ai-history-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  margin-bottom: 16px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.ai-history-list .history {
  min-height: 40px;
  flex-shrink: 0;
}
.chat-scroll {
  min-height: 0;
}
.chat-top,
.chat-input,
.ai-disclaimer,
.live-attachment {
  flex-shrink: 0;
}
.chat-top strong {
  overflow-wrap: anywhere;
}
.question-list .question > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-main .body-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.topic-main .rich-text {
  font-size: 14px;
  line-height: 1.75;
}
.reply-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.reply-box .live-error {
  color: #fff;
}
.topic-actions,
.answer-actions {
  flex-wrap: wrap;
}
.topic-aside > .aside-card > .kicker {
  display: block;
  margin-bottom: 18px;
}
.topic-aside .topic-stat {
  width: 48%;
  vertical-align: top;
}
.pack-ready .pack-header {
  padding-top: 20px;
}
.pack-ready .pack-title-row {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 0;
  align-items: center;
  gap: 16px;
}
.pack-ready .pack-title-row h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.pack-ready .pack-title-row p,
.pack-ready .study-chip,
.pack-ready .pack-progress-ring {
  display: none;
}
.pack-ready .pack-header-top {
  margin-bottom: 0;
}
.pack-ready .pack-tabs {
  margin-top: 16px;
}
.pack-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
}
.pack-pagination button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  background: white;
}
.pack-pagination button:first-child svg {
  transform: rotate(180deg);
}
.pack-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
.summary-navigation {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary-navigation select,
.practice-aside select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.summary-current {
  margin-top: 28px;
}
.summary-current h2 {
  font-size: 26px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.summary-current .rich-text {
  font-size: 15px;
  line-height: 1.75;
}
.summary-current small {
  display: block;
  color: var(--muted);
  margin-top: 20px;
}
.pack-source-overview {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.pack-source-overview summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
}
.pack-source-overview .rich-text {
  margin-top: 16px;
}
.quiz-options .rich-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.quiz-options button:disabled {
  cursor: default;
  opacity: 1;
}
.quiz-card,
.summary-current {
  animation: study-reveal 0.24s ease-out;
}
.quiz-explanation.correct {
  animation: answer-confirm 0.3s ease-out;
}
.quiz-explanation.incorrect {
  animation: answer-reconsider 0.3s ease-out;
}
.practice-main form > label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.practice-main form textarea {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
}
.answer-feedback.correct {
  animation: answer-confirm 0.3s ease-out;
}
.answer-feedback.partial {
  border-color: #dfc469;
  background: #fffbed;
  animation: study-reveal 0.3s ease-out;
}
.answer-feedback.partial .feedback-score > span {
  background: #8a6311;
}
.answer-feedback.incorrect {
  border-color: #d69a87;
  background: #fff6f2;
  animation: answer-reconsider 0.3s ease-out;
}
.answer-feedback.incorrect .feedback-score > span {
  background: #a5513a;
}
.answer-feedback .model-point {
  margin-top: 20px;
}
.answer-feedback .rich-text {
  font-size: 14px;
  line-height: 1.65;
}
.practice-aside > button {
  overflow-wrap: anywhere;
}
@keyframes study-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes answer-confirm {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes answer-reconsider {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  30% {
    transform: translateX(-4px);
  }
  65% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (max-width: 760px) {
  .ai-page {
    height: calc(100dvh - 70px);
  }
  .pack-ready .pack-header {
    padding-top: 14px;
  }
  .pack-ready .pack-title-row h1 {
    font-size: 21px;
  }
  .pack-ready .pack-title-row {
    margin: 14px 0;
  }
  .pack-ready .pack-tabs {
    margin-top: 0;
  }
  .reply-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .topic-labels {
    flex-wrap: wrap;
  }
  .summary-current h2 {
    font-size: 22px;
  }
}
.ticker-track {
  display: flex;
  align-items: center;
  width: 100%;
}
.ticker-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  flex-shrink: 0;
}
.ticker-copy,
.ticker-loop-divider {
  display: none;
}
@keyframes university-strip-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 760px) {
  .ticker {
    padding-inline: 0;
    overflow: hidden;
  }
  .ticker .ticker-track {
    width: max-content;
    flex: 0 0 auto;
    animation: university-strip-scroll 22s linear infinite;
  }
  .ticker .ticker-group {
    width: max-content;
    justify-content: flex-start;
    gap: 32px;
    padding-inline: 16px;
  }
  .ticker .ticker-copy {
    display: flex;
  }
  .ticker .ticker-group > span,
  .ticker .ticker-group > i {
    display: block;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .ticker:active .ticker-track,
  .ticker:focus-within .ticker-track {
    animation-play-state: paused;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .ticker {
    overflow-x: auto;
  }
  .ticker .ticker-track {
    animation: none !important;
  }
  .ticker .ticker-copy {
    display: none;
  }
}
.flashcard-progress-single {
  display: block;
  height: 6px;
  overflow: hidden;
  background: #dce2de;
  border-radius: 6px;
}
/* Visibility guards also cover mobile engines that paint nested text backfaces. */
.flashcard-inner,
.study-flashcard-inner {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  will-change: transform;
}
.flashcard-face,
.study-flashcard-face {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(1px);
  transform: translateZ(1px);
  visibility: visible;
  transition: visibility 0s linear 0.36s;
}
.flashcard-back,
.study-flashcard-back {
  -webkit-transform: rotateY(180deg) translateZ(1px);
  transform: rotateY(180deg) translateZ(1px);
}
.flashcard-face[aria-hidden="true"],
.study-flashcard-face[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}
.flashcard-face *,
.study-flashcard-face * {
  -webkit-backface-visibility: inherit;
  backface-visibility: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .flashcard-face,
  .study-flashcard-face {
    transition: none !important;
  }
}
.flashcard-progress-single > span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width 0.25s ease;
}
.flashcard-study .study-flashcard-face {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  align-items: stretch;
  gap: 20px;
  padding: 44px 32px 28px;
}
.flashcard-study .study-card-label {
  align-self: start;
  max-width: calc(100% - 50px);
  overflow-wrap: anywhere;
  max-height: 58px;
  overflow-y: auto;
}
.flashcard-study .study-flashcard-face strong {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: 610px;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  overflow-wrap: anywhere;
  font-size: 28px;
  line-height: 1.5;
}
.flashcard-study .study-flashcard-back strong {
  font-size: 24px;
}
.flashcard-study .study-flashcard-face strong > .rich-text {
  flex: 0 0 auto;
  width: 100%;
  margin-block: auto;
  line-height: 1.5;
}
.flashcard-study .study-flashcard-face strong .rich-text > :last-child {
  margin-bottom: 0;
}
.flashcard-study .study-flashcard-face small {
  justify-content: center;
  align-self: end;
  text-align: center;
  flex-wrap: wrap;
  line-height: 1.5;
}
.ai-showcase .flashcard-face {
  padding: 20px 18px;
  gap: 12px;
  text-align: center;
}
.ai-showcase .flashcard-face > span,
.ai-showcase .flashcard-face strong,
.ai-showcase .flashcard-face small {
  flex: 0 0 auto;
  margin: 0;
  max-width: 100%;
}
.ai-showcase .flashcard-face strong {
  width: 100%;
  max-width: 300px;
  overflow-wrap: break-word;
}
.ai-showcase .flashcard-face small {
  justify-content: center;
  line-height: 1.4;
}
@media (max-width: 980px) {
  .header .menu-button {
    margin-left: auto;
    flex-shrink: 0;
  }
  .header nav.open .mobile-account-links {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    margin-top: 10px;
  }
}
input,
select,
textarea {
  font-size: max(16px, 1em);
}
.app {
  min-height: 100dvh;
}
.live-error {
  padding: 16px;
  border: 1px solid #deaa9c;
  border-radius: 6px;
  color: #822f20;
  background: #fff7f3;
  margin: 14px 0;
}
.live-empty {
  padding: 36px 0;
  color: var(--muted);
  line-height: 1.7;
}
.live-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.live-spinner {
  display: block;
  width: 21px;
  height: 21px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: live-spin 0.7s linear infinite;
}
@keyframes live-spin {
  to {
    transform: rotate(360deg);
  }
}
.site-transition {
  animation: none !important;
}
dialog.dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  max-width: min(640px, calc(100vw - 32px));
  max-height: 90dvh;
  color: var(--ink);
  background: var(--cream);
}
dialog.dialog::backdrop {
  background: #071c17a8;
}
dialog.dialog label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
dialog.dialog input,
dialog.dialog textarea,
dialog.dialog select {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
dialog.dialog button {
  cursor: pointer;
}
dialog.dialog .actions {
  display: flex;
  gap: 12px;
}
.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-error {
  color: #9f382b;
  font-size: 13px;
}
.password-wrap {
  display: flex;
  align-items: center;
  position: relative;
}
.password-wrap input {
  width: 100%;
  padding-right: 46px;
}
.password-wrap button {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--muted);
}
.thread-image {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 6px;
  cursor: zoom-in;
  margin-top: 16px;
}
.image-viewer {
  width: min(95vw, 1100px);
  max-height: 94dvh;
  border: 0;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
}
.image-viewer img {
  width: 100%;
  max-height: 80dvh;
  object-fit: contain;
}
.image-viewer::backdrop {
  background: #071c17dd;
}
.image-viewer > button {
  display: block;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
}
.live-dialog {
  max-height: 90dvh;
  overflow: auto;
}
.live-dialog form > label,
.live-dialog form > .inline-fields {
  margin-top: 15px;
}
.live-dialog form > .button {
  margin-top: 20px;
}
.live-dialog input,
.live-dialog textarea,
.live-dialog select {
  width: 100%;
}
.question-clickable {
  cursor: pointer;
}
.question-clickable:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}
.resource-foot button,
.resource-body button {
  cursor: pointer;
}
.live-filter {
  border: 0;
  background: transparent;
  color: inherit;
  min-width: 0;
  max-width: 180px;
}
.body-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.resource-preview {
  width: 100%;
  height: 65dvh;
  border: 1px solid var(--line);
  margin-top: 24px;
}
.rich-text {
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.rich-text pre {
  overflow: auto;
  padding: 16px;
  background: #f3f5f1;
  border-radius: 6px;
}
.rich-text p {
  margin: 0 0 14px;
}
.rich-text .katex-display {
  overflow: auto;
  max-width: 100%;
}
.rich-text table {
  display: block;
  overflow: auto;
}
.rich-text a {
  color: var(--green);
  text-decoration: underline;
}
.live-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 26px 0;
}
.live-attachment strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.live-attachment button {
  border: 0;
  background: none;
  cursor: pointer;
}
.chat-input {
  flex-wrap: wrap;
}
.chat-input input {
  min-width: 0;
}
.chat-input .send-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.chat-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat-scroll .message > div {
  min-width: 0;
}
.ai-sidebar .history {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-disclaimer {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.native-tools {
  --green: #087653;
  --ink: #152a23;
  --line: #d9e0da;
  --muted: #73827a;
  min-width: 0;
}
.native-tools .native-content {
  padding: 0;
}
.native-tools .page-head {
  margin-bottom: 28px;
}
.native-tools .btn {
  background: var(--green);
  border-radius: 6px;
}
.native-tools .record,
.native-tools .panel {
  border-radius: 8px;
}
.native-tools h1 {
  font-family: Manrope, sans-serif;
  font-size: 32px;
}
.native-tools .thread {
  max-width: none;
}
.native-tools .circle-header {
  border: 0;
}
.native-tools .heading {
  display: flex;
  justify-content: space-between;
}
.native-tools .reference-tool-modal {
  color: var(--ink);
}
.role-nav-extra {
  margin-top: auto;
}
.role-sidebar-foot .avatar {
  flex-shrink: 0;
}
.role-content .native-tools {
  margin-top: 30px;
}
.role-kpis > article h2 {
  font-size: 28px;
}
.role-kpis > article {
  min-width: 0;
}
.live-table-scroll {
  overflow: auto;
}
.live-table-scroll table {
  width: 100%;
  border-collapse: collapse;
}
.live-table-scroll th,
.live-table-scroll td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.live-table-scroll button {
  border: 0;
  background: none;
  color: var(--green);
  cursor: pointer;
}
.account-content {
  min-width: 0;
}
.live-profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.live-profile-actions button {
  flex-shrink: 0;
}
.notification-list > p {
  padding: 30px;
}
.week-chart > div > span {
  transition: height 0.5s ease;
}
.modal-backdrop {
  z-index: 1000;
}
.live-notice {
  z-index: 1200;
}
.site-transition {
  animation: page-rise 0.35s ease both;
}
.native-tools .study-block {
  overflow: hidden;
}
.native-tools .timetable-list .block-list-details {
  border: 0;
  background: transparent;
  border-radius: 0;
  width: auto;
  height: auto;
  text-align: left;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.native-tools .block-list-details strong,
.native-tools .block-list-details small {
  white-space: normal;
  overflow-wrap: anywhere;
}
.native-tools .groups-shell {
  grid-template-columns: 285px minmax(0, 1fr);
}
@media (max-width: 1100px) {
  .header {
    gap: 12px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .header nav {
    gap: 17px;
  }
  .header-actions {
    gap: 12px;
  }
  .header nav button {
    font-size: 13px;
  }
  .header .brand {
    font-size: 21px;
  }
}
@media (max-width: 900px) {
  .header .header-actions {
    display: none;
  }
  .header nav {
    margin-left: auto;
  }
}
@media (max-width: 760px) {
  .flashcard-study .study-flashcard-face {
    padding: 38px 18px 22px;
    gap: 16px;
  }
  .flashcard-study .study-flashcard-face strong {
    font-size: 22px;
  }
  .flashcard-study .study-flashcard-back strong {
    font-size: 20px;
  }
  .ai-showcase .flashcard-face strong {
    font-size: 18px;
    line-height: 1.4;
  }
  .inline-fields {
    grid-template-columns: 1fr;
  }
  .header nav {
    margin-left: 0;
  }
  .live-filter {
    max-width: 140px;
  }
  .live-profile-actions {
    flex-wrap: wrap;
  }
  .chat-area {
    min-width: 0;
  }
  .chat-input {
    margin-left: 12px;
    margin-right: 12px;
  }
  .live-attachment {
    margin: 8px 12px 0;
  }
  .ai-page {
    min-height: calc(100dvh - 70px);
  }
  .chat-area {
    height: calc(100dvh - 70px);
    min-height: 0;
  }
  .chat-scroll {
    flex: 1;
    min-height: 0;
  }
  .native-tools .groups-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .live-dialog {
    width: calc(100vw - 32px);
  }
  .role-main {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-transition,
  .live-spinner {
    animation: none;
  }
  .week-chart > div > span {
    transition: none;
  }
}

.study-reminder-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin: 24px 0;
}
.study-reminder-settings > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.study-reminder-settings h2 {
  margin: 0 0 5px;
  font-size: 15px;
}
.study-reminder-settings p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.study-reminder-settings select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 14px;
}
.study-reminder-settings input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
.school-class {
  position: absolute;
  left: 3px;
  right: 3px;
  z-index: 1;
  padding: 5px 7px;
  border: 1px dashed #8e9f96;
  border-radius: 5px;
  background: #e9ede8;
  color: #53625a;
  overflow: hidden;
  pointer-events: none;
}
.school-class strong,
.school-class small {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}
.school-class-list {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px dashed #a7b2aa;
  border-radius: 6px;
  color: #53625a;
  background: #edf0eb;
}
.school-class-list div {
  min-width: 0;
  flex: 1;
}
.school-class-list strong,
.school-class-list small {
  display: block;
  overflow-wrap: anywhere;
}
.school-class-list small {
  color: var(--muted);
  margin-top: 4px;
}
.school-class-list > span {
  font-size: 12px;
  white-space: nowrap;
}
.timetable-generating {
  padding: 16px 0 28px;
  text-align: center;
}
.timetable-generating h3 {
  margin-top: 24px;
  font-size: 19px;
}
.timetable-generating p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.timetable-source {
  min-height: 180px;
}
.timetable-file-preview {
  font-size: 13px;
  color: var(--muted);
}
.timetable-file-preview summary {
  cursor: pointer;
}
.timetable-file-preview img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin-top: 16px;
  border-radius: 6px;
}
.timetable-file-preview iframe {
  width: 100%;
  height: 340px;
  border: 1px solid var(--line);
  margin-top: 16px;
  border-radius: 6px;
}
.timetable-file-preview p {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}
.timetable-draft-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin: 24px 0;
}
.timetable-draft-metrics span {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.timetable-draft-metrics strong {
  color: var(--green);
  font-family: Manrope, sans-serif;
  font-size: 25px;
}
.timetable-warnings {
  background: #fff6d8;
  border-left: 3px solid #bd8d20;
  padding: 12px 16px;
  color: #755317;
  font-size: 13px;
  line-height: 1.6;
}
.timetable-warnings p {
  margin: 4px 0;
}
.timetable-draft-section {
  margin: 28px 0;
}
.timetable-draft-section h3 {
  font-size: 16px;
}
.timetable-draft-list {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}
.timetable-draft-list > div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.timetable-draft-list > div > div {
  min-width: 0;
  flex: 1;
}
.timetable-draft-list strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.timetable-draft-list small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.timetable-draft-list time {
  font-size: 11px;
  text-align: right;
  flex-shrink: 0;
}
.timetable-draft-list .class-label {
  min-width: 38px;
  padding: 8px 6px;
  border-radius: 5px;
  background: #edf1e9;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
}
.timetable-draft-list .class-label.green {
  background: #dceee1;
  color: #286443;
}
.timetable-draft-list .class-label.gold {
  background: #fff0c7;
  color: #816015;
}
.timetable-draft-list .class-label.blue {
  background: #e1ecf9;
  color: #3c6691;
}
.timetable-review {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.live-dialog > .consent-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.live-dialog .consent-row input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.timetable-list-blocks article > .block-list-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 8px 0;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.timetable-list-blocks .block-list-details strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.timetable-list-blocks .block-list-details small {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.timetable-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
}
@media (max-width: 760px) {
  .study-reminder-settings {
    align-items: flex-start;
  }
  .study-reminder-settings select {
    font-size: 16px;
  }
  .timetable-heading-actions {
    flex-wrap: wrap;
  }
  .timetable-draft-list > div {
    flex-wrap: wrap;
  }
  .timetable-draft-list time {
    width: 100%;
    text-align: left;
    padding-left: 50px;
  }
  .timetable-draft-actions .button {
    flex: 1;
  }
}
@media print {
  .study-reminder-settings {
    display: none;
  }
}

/* Scoped to tutoring surfaces; load after live.css. */
.tutoring-booking,
.tutoring-session,
.tutoring-calendar {
  letter-spacing: 0;
}
.tutoring-booking .booking-header h1 { font-size: 36px; }
.tutoring-booking .booking-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.tutoring-booking .booking-panel {
  min-width: 0;
  padding: 0 28px 0 0;
  border: 0;
  border-right: 1px solid var(--line, #dce4de);
  border-radius: 0;
  background: transparent;
}
.tutoring-booking .booking-summary,
.tutoring-booking .booking-success { border-radius: 8px; }
.tutoring-booking .booking-summary { position: sticky; top: 24px; padding: 24px; min-width: 0; }
.tutoring-booking .booking-summary > div,
.tutoring-booking .booking-summary p,
.tutoring-booking .booking-summary strong { min-width: 0; overflow-wrap: anywhere; }
.tutoring-booking .booking-summary > div:nth-child(2) strong { font-size: 15px; }
.tutoring-booking .booking-summary > div:nth-child(2) small,
.tutoring-booking .booking-summary > small { font-size: 12px; }
.tutoring-booking .booking-summary > p { font-size: 13px; }
.tutoring-booking .booking-total { gap: 12px; flex-wrap: wrap; font-size: 13px; }
.tutoring-booking .booking-total strong { font-size: 13px; }
.tutoring-booking .booking-steps { max-width: none; gap: 8px; margin-bottom: 24px; }
.tutoring-booking .booking-steps i { flex: 0 0 32px; }
.tutoring-booking .booking-steps span { flex: 0 0 28px; height: 28px; font-size: 12px; }
.tutoring-booking .booking-steps strong { margin-left: auto; font-size: 13px; color: #52685b; }
.tutoring-booking .booking-panel label { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; font-size: 13px; font-weight: 600; }
.tutoring-booking .booking-panel select,
.tutoring-booking .booking-panel textarea { width: 100%; min-width: 0; min-height: 46px; font-size: 16px; }
.tutoring-booking .booking-panel textarea { resize: vertical; }
.tutoring-booking .date-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.tutoring-booking .date-row button { min-height: 70px; align-items: center; justify-content: center; }
.tutoring-booking .date-row button small { font-size: 12px; }
.tutoring-booking .date-row button strong { font-size: 14px; }
.tutoring-booking .time-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.tutoring-booking .time-grid button { min-height: 46px; font-size: 14px; }
.tutoring-booking .booking-panel > .button,
.tutoring-booking .booking-panel form > .button { min-height: 46px; margin-top: 12px; }
.tutoring-booking button:focus-visible,
.tutoring-session button:focus-visible,
.tutoring-calendar button:focus-visible { outline: 2px solid #23835a; outline-offset: 3px; }
.tutoring-booking .booking-success { padding: 32px; }
.tutoring-booking .booking-success > div { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.tutoring-calendar { overflow: hidden; border-radius: 8px; }
.tutoring-calendar .calendar-toolbar { padding: 20px; gap: 16px; flex-wrap: wrap; }
.tutoring-calendar .calendar-toolbar > div { min-width: 0; gap: 10px; }
.tutoring-calendar .calendar-toolbar h2 { font-size: 16px; overflow-wrap: anywhere; }
.tutoring-calendar .calendar-toolbar button { min-height: 44px; }
.tutoring-calendar .availability-calendar { display: flex; overflow-x: auto; padding: 0 20px 16px; }
.tutoring-calendar .time-column { flex: 0 0 76px; display: flex; flex-direction: column; }
.tutoring-calendar .day-column { flex: 1 0 92px; display: flex; flex-direction: column; }
.tutoring-calendar .time-column > span,
.tutoring-calendar .day-column > strong { box-sizing: border-box; height: 64px; flex: 0 0 64px; }
.tutoring-calendar .time-column > span { display: flex; align-items: center; font-size: 12px; }
.tutoring-calendar .day-column > button { box-sizing: border-box; height: 64px; flex: 0 0 64px; margin: 0; font-size: 12px; }
.tutoring-calendar .day-column > strong { font-size: 12px; }
.tutoring-calendar .day-column > strong small { font-size: 12px; }
.tutoring-calendar .day-column > button.available { background: #e4f2e7; color: #245d3b; }
.tutoring-calendar .day-column > button.booked { background: #fff0bd; color: #67541a; }
.tutoring-calendar .day-column > button:disabled { opacity: 0.65; }
.tutoring-calendar .calendar-legend { padding: 16px 20px; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.tutoring-calendar .calendar-legend p { flex-basis: 100%; margin: 0; }
.tutoring-times .health-row { gap: 16px; flex-wrap: wrap; }
.tutoring-times .health-row > span { min-width: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.tutoring-times .health-row > button { flex-shrink: 0; min-height: 44px; }

.tutoring-session { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 24px; }
.tutoring-session .session-conversation { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #dce4de; border-radius: 8px; background: #f2f5ef; }
.tutoring-session .session-chat-header { display: flex; align-items: center; gap: 12px; padding: 18px 20px; margin: 0; border-bottom: 1px solid #dce4de; background: white; }
.tutoring-session .session-chat-header .avatar { flex: 0 0 40px; height: 40px; }
.tutoring-session .session-chat-header > div { min-width: 0; }
.tutoring-session .session-chat-header h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.tutoring-session .session-chat-header p { margin: 4px 0 0; font-size: 12px; color: #64776b; overflow-wrap: anywhere; }
.tutoring-session .session-conversation-messages { min-height: 280px; height: 430px; max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain; gap: 12px; padding: 20px; margin: 0; }
.tutoring-session .session-conversation-messages article { flex: 0 0 auto; max-width: 86%; align-self: flex-start; }
.tutoring-session .session-conversation-messages article.mine { align-self: flex-end; }
.tutoring-session .session-conversation-messages article > div { flex: initial; padding: 10px 13px; border: 1px solid #e0e7df; border-radius: 0 8px 8px 8px; background: white; box-shadow: 0 1px 1px #173e2510; }
.tutoring-session .session-conversation-messages article.mine > div { border-color: #cfe3c8; border-radius: 8px 0 8px 8px; background: #e1f1d9; }
.tutoring-session .session-conversation-messages strong { display: block; color: #34734b; font-size: 11px; overflow-wrap: anywhere; }
.tutoring-session .session-conversation-messages article.mine strong { display: none; }
.tutoring-session .session-conversation-messages p { font-size: 14px; line-height: 1.55; margin: 4px 0 6px; }
.tutoring-session .session-conversation-messages time { display: block; color: #64776b; font-size: 10px; text-align: right; }
.tutoring-session .session-compose { flex-direction: row; align-items: end; gap: 10px; padding: 12px; background: white; border-top: 1px solid #dce4de; }
.tutoring-session .session-compose textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 140px; padding: 12px; resize: vertical; border: 1px solid #d6e0d8; border-radius: 8px; font-size: 16px; line-height: 1.4; }
.tutoring-session .session-compose .button { flex: 0 0 46px; width: 46px; height: 46px; min-height: 46px; padding: 0; align-self: end; border-radius: 50%; }
.tutoring-session .session-detail-summary { min-width: 0; padding: 8px 0; background: transparent; border: 0; border-radius: 0; }
.tutoring-session .session-detail-summary p { display: flex; gap: 8px; font-size: 13px; }
.tutoring-session .session-detail-summary .button { min-height: 44px; white-space: normal; }
.tutoring-session .session-chat-closed { margin: 0; padding: 14px; border-top: 1px solid #dce4de; text-align: center; font-size: 12px; color: #64776b; }
@media (max-width: 900px) {
  .tutoring-session { grid-template-columns: minmax(0, 1fr); }
  .tutoring-session .session-detail-summary { display: flex; flex-wrap: wrap; gap: 12px; }
  .tutoring-session .session-detail-summary > .kicker,
  .tutoring-session .session-detail-summary > p { flex-basis: 100%; margin: 0; }
  .tutoring-session .session-detail-summary > .button { width: auto; flex: 1 1 180px; }
}
@media (max-width: 700px) {
  .tutoring-booking { padding: 24px 16px 40px; }
  .tutoring-booking .booking-header { margin-bottom: 24px; }
  .tutoring-booking .booking-header h1 { font-size: 28px; }
  .tutoring-booking .booking-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tutoring-booking .booking-panel { padding: 0; border: 0; }
  .tutoring-booking .booking-summary { position: static; padding: 20px; }
  .tutoring-booking .booking-panel h2 { font-size: 18px; }
  .tutoring-booking .date-row { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .tutoring-booking .booking-success { padding: 24px 16px; }
  .tutoring-booking .booking-success h2 { font-size: 22px; overflow-wrap: anywhere; }
  .tutoring-calendar .calendar-toolbar { padding: 12px; }
  .tutoring-calendar .calendar-toolbar > div { width: 100%; justify-content: space-between; }
  .tutoring-calendar .calendar-toolbar > .button { width: 100%; }
  .tutoring-calendar .availability-calendar { padding-inline: 12px; }
  .tutoring-session .session-chat-header { padding: 14px; }
  .tutoring-session .session-conversation-messages { padding: 12px; height: 390px; }
  .tutoring-session .session-conversation-messages article { max-width: 92%; }
}

.groups-page .groups-shell {
  min-height: 0;
  height: min(760px, calc(100dvh - 160px));
}
.groups-page .group-room {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.groups-page .group-room-header {
  min-height: 74px;
  padding-block: 12px;
}
.groups-page .group-messages {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
  touch-action: pan-y pinch-zoom;
}
.groups-page .group-message-stream {
  min-width: 0;
  display: flow-root;
}
.groups-page .group-composer {
  min-width: 0;
  padding-bottom: max(15px, env(safe-area-inset-bottom));
}
.groups-page .composer-row textarea {
  max-height: 120px;
  overflow-y: auto;
}
@media (max-width: 760px) {
  .groups-page .groups-shell {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
  .groups-page .group-room {
    height: max(
      260px,
      min(720px, calc(var(--group-visible-height, 100dvh) - 84px))
    );
    min-height: 0;
  }
  .groups-page .group-room-header {
    min-height: 64px;
    padding: 10px 14px;
  }
  .groups-page .group-messages {
    min-height: 0;
  }
  .groups-page .group-empty.group-room {
    min-height: 260px;
  }
  .groups-page[data-keyboard-open="true"] .group-room-header {
    min-height: 48px;
    padding-block: 6px;
  }
  .groups-page[data-keyboard-open="true"] .group-room-actions,
  .groups-page[data-keyboard-open="true"] .composer-mode {
    display: none;
  }
  .groups-page[data-keyboard-open="true"] .composer-row textarea {
    height: 38px;
    min-height: 38px;
  }
  .groups-page[data-keyboard-open="true"] .group-tabs {
    height: 36px;
  }
  .groups-page[data-keyboard-open="true"] .group-tabs button {
    height: 36px;
  }
}
