:root {
  --bg: #f5fbf2;
  --panel: #ffffff;
  --panel-soft: #f9fbfd;
  --ink: #17231b;
  --muted: #657468;
  --line: #dfe8dd;
  --primary: #43a83f;
  --primary-strong: #2f8b33;
  --primary-soft: #e9f8e6;
  --coral: #d96b5f;
  --coral-soft: #fff0ed;
  --gold: #c69214;
  --gold-soft: #fff7d8;
  --green: #24785a;
  --green-soft: #e9f7ef;
  --danger: #b54848;
  --danger-soft: #fff0f0;
  --shadow: 0 20px 50px rgba(38, 54, 78, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.public-page {
  min-height: 100vh;
  background: #f7fff2;
}

.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8fff4 0%, #eefbe8 100%);
}

.public-header {
  min-height: 78px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 34px 0 64px;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.landing-title {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #17331b;
}

.landing-title span {
  display: block;
  white-space: nowrap;
}

.landing-subtitle {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-btn {
  min-height: 54px;
  min-width: 168px;
  border-radius: 999px;
  font-weight: 850;
  box-shadow: 0 5px 0 rgba(30, 87, 35, 0.18);
}

.public-login {
  border-radius: 999px;
  font-weight: 800;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5e9cf;
  border-radius: 999px;
  padding: 0 12px;
  background: white;
  color: #37683d;
  font-size: 13px;
  font-weight: 800;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
  object-position: center;
  border: 1px solid #d8e8d1;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(54, 86, 45, 0.18);
}

.avocado-logo {
  width: 44px;
  height: 52px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.public-step {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
}

.link-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  font-weight: 800;
  cursor: pointer;
}

.public-step > .link-button {
  position: absolute;
  top: 24px;
  left: 28px;
}

.step-card,
.login-card,
.payment-card {
  width: min(780px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 18px 44px rgba(48, 85, 45, 0.12);
}

.login-card {
  width: min(520px, 100%);
}

.payment-card {
  width: min(720px, 100%);
}

.center-brand {
  justify-content: center;
  margin-bottom: 22px;
  font-weight: 900;
}

.center-brand > span {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.step-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
}

.step-subtitle {
  max-width: 620px;
  margin: 14px auto 26px;
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
}

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

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

.shell-course-grid {
  max-width: 900px;
}

.course-card,
.plan-card {
  min-height: 210px;
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: left;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.course-card:hover,
.plan-card:hover,
.plan-card.active {
  transform: translateY(-2px);
  border-color: rgba(67, 168, 63, 0.45);
  box-shadow: 0 14px 32px rgba(59, 112, 48, 0.12);
}

.course-card strong,
.plan-card strong {
  font-size: 24px;
}

.course-card span:not(.course-icon),
.plan-card span {
  color: var(--muted);
  line-height: 1.55;
}

.course-card small,
.plan-card small {
  color: #416a47;
  line-height: 1.55;
}

.course-icon {
  width: auto;
  min-width: 72px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  justify-self: start;
}

.identity-tabs,
.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.login-access-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.login-access-row .admin-icon-button {
  justify-self: end;
  margin: 0;
}

.identity-tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.identity-tab.active {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
}

.admin-shortcut {
  display: block;
  margin: 16px auto 0;
}

.qr-wrap {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel-soft);
}

.mock-qr {
  width: 150px;
  height: 150px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mock-qr span {
  border-radius: 3px;
  background: #eef4ec;
}

.mock-qr span.dark {
  background: #182417;
}

.qr-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

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

button {
  border: 0;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(560px, 1.1fr);
  background:
    radial-gradient(circle at 20% 20%, rgba(17, 124, 136, 0.12), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eef5f6 100%);
}

.login-panel {
  padding: 56px clamp(28px, 6vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
}

.public-header .brand {
  min-width: 0;
  margin-bottom: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.brand-name {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.login-title {
  max-width: 520px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.login-subtitle {
  max-width: 520px;
  margin: 18px 0 34px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 540px;
}

.login-form-card {
  max-width: 460px;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(35, 53, 74, 0.08);
}

.login-submit {
  width: 100%;
}

.admin-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 4px auto 0;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.admin-icon-button:hover {
  transform: translateY(-1px) scale(1.04);
  background: rgba(76, 148, 80, 0.08);
  box-shadow: 0 7px 18px rgba(35, 83, 48, 0.12);
}

.admin-icon-button.active {
  background: rgba(56, 178, 92, 0.12);
  box-shadow: 0 5px 16px rgba(35, 83, 48, 0.14);
}

.admin-icon-button:focus-visible {
  outline: 3px solid rgba(56, 178, 92, 0.32);
  outline-offset: 3px;
}

.admin-icon-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(36, 76, 40, 0.14));
}

.remember-login {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.remember-login input {
  accent-color: var(--accent);
}

.demo-accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-pill {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.account-pill:hover {
  color: var(--primary);
  border-color: rgba(17, 124, 136, 0.35);
}

.role-card {
  height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px rgba(35, 53, 74, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 124, 136, 0.35);
  box-shadow: var(--shadow);
}

.role-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.role-card:nth-child(2) .role-icon {
  background: var(--coral-soft);
  color: var(--coral);
}

.role-card:nth-child(3) .role-icon {
  background: var(--gold-soft);
  color: var(--gold);
}

.role-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.role-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.login-art {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 6vw 40px 20px;
}

.login-art img {
  width: min(720px, 100%);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  background: #101929;
  color: white;
  display: flex;
  flex-direction: column;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.side-brand .avocado-logo {
  width: 34px;
  height: 40px;
}

.side-title {
  max-width: 156px;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.015em;
  white-space: normal;
}

.side-role {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
}

.nav-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
}

.nav-button.active,
.nav-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-symbol {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 42px) 48px;
}

.course-entry-back-row {
  display: flex;
  margin-bottom: 14px;
}

.course-entry-back-button {
  border-color: #cfe0d3;
  color: #315e46;
  background: #f7fbf8;
}

.course-entry-back-button:hover {
  border-color: #8fbe99;
  background: #edf7f0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.topbar > div:first-child {
  min-width: 0;
  flex: 1;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
}

.page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.btn {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
}

.btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-strong);
}

.btn.ghost {
  background: transparent;
  color: inherit;
}

.btn.danger {
  color: var(--danger);
  border-color: rgba(181, 72, 72, 0.3);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.stat {
  min-height: 118px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.stat-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  margin: 0;
  font-size: 30px;
  font-weight: 850;
}

.stat-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
}

.section-title {
  margin: 0;
  font-size: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.assignment-list {
  display: grid;
  gap: 12px;
}

.assignment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 94px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.row-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tag {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--panel-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.tag.done {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(36, 120, 90, 0.18);
}

.tag.pending {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: rgba(198, 146, 20, 0.2);
}

.tag.review {
  background: var(--coral-soft);
  color: var(--coral);
  border-color: rgba(217, 107, 95, 0.24);
}

.question {
  margin-bottom: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.question-stack {
  display: grid;
  gap: 14px;
}

.sentence-single-page {
  max-width: 1500px;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(35, 53, 74, 0.08);
}

.icon-btn:hover {
  border-color: rgba(67, 168, 63, 0.35);
  color: var(--primary-strong);
}

.sentence-next-btn {
  flex: 0 0 auto;
}

.writing-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.email-writing-workspace {
  display: grid;
  grid-template-columns: minmax(380px, 0.94fr) minmax(560px, 1.06fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  overflow: visible;
}

.discussion-writing-workspace {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  gap: 0;
  align-items: stretch;
  border: 1px solid #d4dfd2;
  background: white;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(58, 91, 55, 0.06);
}

.writing-panel {
  min-height: calc(100vh - 150px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.question-title p,
.question-instruction p {
  margin: 0 0 12px;
}

.question-title center,
.question-instruction center {
  display: block;
  text-align: center;
}

.question-title table,
.question-instruction table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  white-space: normal;
}

.question-title th,
.question-title td,
.question-instruction th,
.question-instruction td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
}

.question-title img,
.question-instruction img {
  max-width: 100%;
  height: auto;
}

.blank-answer-input {
  max-width: 320px;
  margin-top: 12px;
  border-bottom: 2px solid var(--primary);
  border-radius: 0;
}

.question-instruction {
  margin: 10px 0 14px;
  padding: 12px;
  border-left: 4px solid var(--primary);
  background: white;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.writing-prompt-panel {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.writing-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.writing-prompt-text {
  margin: 18px 0;
  line-height: 1.85;
  color: var(--ink);
  white-space: pre-wrap;
}

.task-images {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.task-images img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.ielts-task1-prompt-panel {
  background: #f6f7f3;
}

.ielts-task1-heading {
  margin-bottom: 14px;
}

.ielts-task1-sheet {
  padding: 28px;
  border: 1px solid #dfe3d9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 53, 74, 0.06);
  color: #202820;
}

.ielts-task1-paper-title {
  display: block;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: 0.035em;
}

.ielts-task1-sheet p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.ielts-task1-description {
  margin-top: 18px !important;
}

.ielts-task1-visuals {
  margin: 24px 0;
}

.ielts-task1-visuals figure {
  display: grid;
  place-items: center;
  min-height: 240px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e3e6df;
  background: #fff;
}

.ielts-task1-visuals img {
  width: auto;
  max-width: 100%;
  max-height: 620px;
  border: 0;
  border-radius: 0;
}

.ielts-task1-requirements {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.ielts-task1-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #b9c3b4;
  color: var(--muted);
  background: #f8faf6;
  text-align: center;
}

.ielts-task2-prompt-panel {
  background: #f6f7f3;
}

.ielts-task2-heading {
  margin-bottom: 14px;
}

.ielts-task2-sheet {
  padding: 28px;
  border: 1px solid #dfe3d9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 53, 74, 0.06);
  color: #202820;
}

.ielts-task2-paper-title {
  display: block;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: 0.035em;
}

.ielts-task2-sheet p,
.ielts-task2-topic {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.ielts-task2-topic-lead {
  margin-top: 22px !important;
}

.ielts-task2-topic {
  margin: 16px 0 20px;
  padding: 20px 22px;
  border-left: 4px solid #3d765f;
  background: #f4f8f4;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
}

.ielts-task2-requirements {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.writing-editor-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 110px);
}

.email-prompt-panel,
.email-editor-panel {
  height: 100%;
  min-height: 0;
  background: white;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.discussion-prompt-panel,
.discussion-response-panel {
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: white;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.email-editor-panel {
  display: flex;
  flex-direction: column;
}

.discussion-response-panel {
  display: flex;
  flex-direction: column;
}

.email-prompt-panel {
  border-right: 1px solid var(--line);
}

.discussion-prompt-panel {
  border-right: 2px solid #aebfaf;
}

.email-panel-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
}

.discussion-panel-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 24px;
  border-bottom: 1px solid #dbe5d8;
  font-size: 16px;
  font-weight: 700;
}

.discussion-editor-meta {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 10px;
}

.discussion-panel-timer .countdown-tag {
  min-width: 112px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
}

.email-prompt-card,
.email-editor-panel > *:not(.email-panel-header) {
  padding-left: 24px;
  padding-right: 24px;
}

.discussion-prompt-card,
.discussion-response-scroll,
.discussion-response-panel > *:not(.discussion-panel-header):not(.writing-submit) {
  padding-left: 24px;
  padding-right: 24px;
}

.email-prompt-card {
  padding-top: 22px;
  padding-bottom: 22px;
}

.discussion-prompt-card {
  padding-top: 22px;
  padding-bottom: 22px;
}

.email-intro,
.email-closing,
.email-meta p {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.6;
  font-weight: 700;
}

.discussion-intro {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.58;
  color: #121818;
}

.discussion-post-text {
  margin: 0;
  font-size: clamp(13px, 1.02vw, 15px);
  line-height: 1.52;
  color: #121818;
}

.discussion-intro + .discussion-intro {
  margin-top: 4px;
}

.discussion-gap {
  height: 26px;
}

.discussion-subtitle,
.discussion-minimum,
.discussion-professor-name,
.discussion-post-name {
  margin: 0;
  color: #121818;
}

.discussion-subtitle {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
  font-weight: 800;
}

.discussion-bullets {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.discussion-bullets li,
.discussion-minimum,
.discussion-professor-text {
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.58;
  color: #121818;
}

.discussion-bullets li {
  position: relative;
  padding-left: 18px;
  font-weight: 600;
}

.discussion-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}

.discussion-minimum {
  margin-top: 28px;
  font-weight: 500;
}

.discussion-professor-card {
  margin-top: 26px;
  display: grid;
  justify-items: center;
}

.discussion-professor-avatar {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center center;
  border-radius: 999px;
  display: block;
}

.discussion-professor-name {
  margin-top: 14px;
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 500;
}

.discussion-professor-text {
  margin-top: 14px;
  white-space: pre-wrap;
}

.email-gap {
  margin-top: 22px;
}

.email-bullets {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.email-bullets li {
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.6;
  font-weight: 700;
  padding-left: 14px;
  position: relative;
}

.email-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}

.email-closing {
  margin-top: 28px;
}

.email-meta {
  padding-top: 22px;
  padding-bottom: 14px;
}

.email-meta p + p {
  margin-top: 8px;
}

.email-editor-box {
  margin: 10px 0 0;
  min-height: clamp(340px, 42vh, 500px);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(228, 232, 234, 0.55);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.email-toolbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 14px;
}

.email-toolbar-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 0 1 auto;
}

.email-tool-btn {
  min-width: 74px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: #ececec;
  color: #ababab;
  font-size: 16px;
  font-weight: 500;
}

.email-tool-btn.active {
  background: #0c7078;
  color: white;
}

.email-word-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0c7a82;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
}

.email-word-count-label {
  font-weight: 500;
}

.email-word-count-value {
  min-width: 18px;
  text-align: right;
  color: #101215;
  font-weight: 700;
}

.textarea.email-writing-textarea {
  min-height: clamp(220px, 30vh, 320px);
  height: auto;
  flex: 1;
  border: 3px solid #2f8890;
  border-radius: 0 0 22px 22px;
  padding: 16px 16px 18px;
  font-size: 16px;
  line-height: 1.65;
  resize: vertical;
  overflow-y: auto;
  box-shadow: none;
}

.textarea.email-writing-textarea::placeholder {
  color: #9aa4ab;
  font-size: 16px;
}

.email-editor-panel .writing-submit {
  padding: 10px 0 12px;
  margin-top: 0;
}

.discussion-response-scroll {
  padding-top: 20px;
  padding-bottom: 0;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.discussion-thread {
  display: grid;
  gap: 18px;
}

.discussion-post {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 4px 0 18px;
  border-bottom: 1px solid #e6ede4;
}

.discussion-post:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

.discussion-post-side {
  display: grid;
  justify-items: center;
  justify-self: center;
  width: 100%;
  gap: 8px;
}

.discussion-post-avatar {
  width: 78px;
  height: 78px;
  object-fit: cover;
  object-position: center center;
  border-radius: 999px;
  display: block;
}

.discussion-post-avatar-initial {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #e7f4f3 0%, #d2ece9 100%);
  color: #0c7078;
  font-size: 30px;
  font-weight: 700;
  border: 2px solid #89c8c2;
}

.discussion-post-name {
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 500;
}

.discussion-editor-box {
  margin: 8px 0 0;
  min-height: clamp(360px, 46vh, 520px);
  border: 2px solid #2f8890;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 14px rgba(47, 136, 144, 0.08);
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.discussion-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 10px;
  border-bottom: 0;
  background: #fbfdfb;
}

.discussion-toolbar-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.discussion-tool-btn {
  min-width: 66px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #ececec;
  color: #ababab;
  font-size: 15px;
  font-weight: 500;
}

.discussion-tool-btn.active {
  background: #0c7078;
  color: white;
}

.discussion-textarea-wrap {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 0;
}

.discussion-word-count-bottom {
  position: static;
  color: #66756f;
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
  background: transparent;
  padding: 0;
  border-top: 0;
}

.discussion-writing-textarea {
  min-height: clamp(128px, 15vh, 195px);
  flex: 1;
  border: 2px solid #2f8890;
  border-radius: 0 0 20px 20px;
  padding: 14px 16px 42px;
  font-size: 16px;
  line-height: 1.65;
  resize: vertical;
  overflow-y: auto;
  box-shadow: none;
}

.writing-editor-box {
  position: relative;
  flex: 1;
  min-height: 520px;
}

.writing-textarea {
  flex: 0 0 auto;
  min-height: 520px;
  height: 520px;
  font-size: 16px;
  line-height: 1.85;
  padding-bottom: 44px;
}

.writing-textarea.discussion-writing-textarea {
  flex: 1 0 auto;
  min-height: clamp(270px, 36vh, 430px);
  height: auto;
  border: 0;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0 0 18px 18px;
  line-height: 1.65;
  padding: 14px 16px 42px;
}

.word-count {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 6px;
  border-radius: 6px;
}

.writing-submit {
  margin-top: 14px;
}

.question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sentence-question-head {
  margin-bottom: 4px;
}

.question-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.6;
}

.option-list {
  display: grid;
  gap: 10px;
}

.sentence-builder {
  display: grid;
  gap: 18px;
}

.sentence-stem {
  display: grid;
  gap: 16px;
}

.sentence-lead {
  font-size: 28px;
  line-height: 1.45;
  font-weight: 800;
}

.sentence-pattern {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  font-size: 26px;
  line-height: 1.5;
  font-weight: 800;
}

.sentence-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 4px solid var(--ink);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.sentence-slot.drag-over {
  background: rgba(84, 185, 72, 0.12);
  border-color: var(--primary-strong);
}

.sentence-slot.filled {
  border-bottom-color: var(--primary-strong);
}

.sentence-slot-text {
  white-space: nowrap;
}

.sentence-punctuation {
  margin-left: -6px;
}

.sentence-fragments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sentence-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #eef7e8;
  border: 1px solid #d6e8ca;
  color: #356b2d;
  font-weight: 700;
  font-size: 22px;
  cursor: grab;
}

.sentence-chip:active {
  cursor: grabbing;
}

.sentence-chip[hidden] {
  display: none;
}

.sentence-answer-input {
  max-width: 100%;
}

.countdown-tag {
  min-width: 126px;
  justify-content: center;
  font-weight: 800;
}

.option {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--panel-soft);
}

.option input {
  width: 16px;
  height: 16px;
}

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

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

.input,
.textarea,
.select {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 11px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  background: var(--panel-soft);
}

.question-cell,
.answer-cell {
  max-width: 420px;
  white-space: pre-wrap;
}

.answer-cell {
  color: var(--primary-strong);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.score {
  font-weight: 850;
  color: var(--primary);
}

.review-box {
  display: grid;
  gap: 14px;
}

.feedback {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  line-height: 1.75;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 25, 41, 0.48);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 20px;
}

.modal {
  width: min(760px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  margin: 0;
  font-size: 20px;
}

.modal-body {
  padding: 20px;
}

.grading-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 25, 41, 0.58);
}

.grading-dialog {
  width: min(440px, 100%);
  padding: 32px;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(16, 25, 41, 0.24);
  text-align: center;
}

.grading-dialog h3 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.grading-avocado-dance {
  position: relative;
  width: 74px;
  height: 76px;
  margin: 0 auto 12px;
}

.grading-avocado-dance::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 40px;
  height: 7px;
  border-radius: 50%;
  background: rgba(24, 51, 37, 0.14);
  transform: translateX(-50%);
  animation: grading-dance-shadow 0.72s ease-in-out infinite;
}

.grading-avocado-dance img {
  position: relative;
  z-index: 1;
  display: block;
  width: 54px;
  height: 68px;
  margin: 0 auto;
  object-fit: contain;
  transform-origin: 50% 88%;
  animation: grading-avocado-dance 0.72s ease-in-out infinite;
}

.grading-music-note {
  position: absolute;
  z-index: 2;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  opacity: 1;
  animation: grading-music-note 1.45s ease-out infinite;
}

.grading-music-note.note-one {
  top: 12px;
  left: -1px;
  font-size: 17px;
}

.grading-music-note.note-two {
  top: 2px;
  right: -5px;
  font-size: 19px;
  animation-delay: 0.55s;
}

.grading-progress-track {
  height: 8px;
  margin: 22px 0 9px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.grading-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}

.grading-progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@keyframes grading-avocado-dance {
  0%, 100% { transform: translateY(1px) rotate(-7deg) scale(1, 0.98); }
  25% { transform: translateY(-7px) rotate(5deg) scale(0.97, 1.03); }
  50% { transform: translateY(0) rotate(7deg) scale(1.03, 0.97); }
  75% { transform: translateY(-6px) rotate(-4deg) scale(0.98, 1.02); }
}

@keyframes grading-dance-shadow {
  0%, 50%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.7; }
  25%, 75% { transform: translateX(-50%) scaleX(0.68); opacity: 0.38; }
}

@keyframes grading-music-note {
  0% { transform: translateY(6px) scale(0.7) rotate(-8deg); opacity: 0; }
  25% { opacity: 0.9; }
  100% { transform: translateY(-14px) scale(1.08) rotate(8deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grading-avocado-dance img,
  .grading-avocado-dance::after,
  .grading-music-note {
    animation: none;
  }

  .grading-music-note {
    opacity: 0.7;
  }
}

/* Brand-aligned palette sampled from the avocado logo and homepage artwork */
:root {
  --bg: #f6f0e5;
  --panel: #fffaf0;
  --panel-soft: #f3ead6;
  --ink: #20271f;
  --text: #20271f;
  --muted: #6e685b;
  --line: #d8cdb8;
  --primary: #314a2d;
  --primary-strong: #20321f;
  --primary-soft: #e4eadc;
  --accent: #d6a84b;
  --accent-strong: #a86f18;
  --accent-soft: #f5e5bd;
  --green: #314a2d;
  --green-soft: #e4eadc;
  --shadow: 0 22px 60px rgba(49, 74, 45, 0.14);
}

body {
  background:
    linear-gradient(rgba(49, 74, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 74, 45, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

.landing-hero {
  background:
    radial-gradient(circle at 79% 22%, rgba(214, 168, 75, 0.2), transparent 28%),
    linear-gradient(112deg, #fffaf0 0 56%, #314a2d 56% 100%);
}

.landing-hero::before,
.landing-hero::after,
.hero-visual::before,
.hero-visual::after {
  content: none;
}

.public-header {
  border-bottom-color: rgba(49, 74, 45, 0.2);
}

.public-step {
  background:
    linear-gradient(135deg, transparent 0 66%, rgba(214, 168, 75, 0.18) 66% 82%, transparent 82%),
    var(--bg);
}

.step-card,
.login-card,
.payment-card,
.modal,
.grading-dialog {
  box-shadow: 12px 12px 0 var(--accent);
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 6;
  opacity: 1;
  visibility: visible;
  filter: none;
  border-color: var(--primary);
  box-shadow: 16px 16px 0 var(--accent), 0 28px 70px rgba(32, 50, 31, 0.25);
}

.sidebar {
  background:
    linear-gradient(155deg, rgba(214, 168, 75, 0.14), transparent 38%),
    var(--primary-strong);
  border-color: var(--accent);
}

.main {
  background: radial-gradient(circle at 98% 2%, rgba(214, 168, 75, 0.16), transparent 22%);
}

.modal-backdrop,
.grading-overlay {
  background: rgba(32, 50, 31, 0.72);
}

.stat,
.card,
.assignment-row,
.question,
.table-wrap {
  box-shadow: 0 8px 0 rgba(49, 74, 45, 0.055);
}

.writing-workspace,
.email-writing-workspace,
.discussion-writing-workspace {
  box-shadow: 10px 10px 0 rgba(214, 168, 75, 0.46);
}

@media (max-width: 980px) {
  .landing-hero {
    background:
      radial-gradient(circle at 85% 8%, rgba(214, 168, 75, 0.2), transparent 25%),
      linear-gradient(180deg, #fffaf0 0 72%, #314a2d 72% 100%);
  }
}

@media (max-width: 640px) {
  .landing-hero {
    background: linear-gradient(180deg, #fffaf0 0 78%, #314a2d 78% 100%);
  }

  .step-card,
  .login-card,
  .payment-card,
  .modal,
  .grading-dialog {
    box-shadow: 6px 6px 0 var(--accent);
  }
}

/* Safari layout fallbacks for the Writing landing page. */
html {
  -webkit-text-size-adjust: 100%;
}

.writing-route .landing-hero {
  min-height: 100vh !important;
  min-height: 100svh !important;
  background:
    radial-gradient(circle at 79% 22%, rgba(214, 168, 75, 0.2), transparent 28%),
    linear-gradient(112deg, #fffaf0 0%, #fffaf0 56%, #314a2d 56%, #314a2d 100%) !important;
  -webkit-font-smoothing: antialiased;
}

.writing-route .hero-inner {
  min-height: calc(100vh - 88px) !important;
  min-height: calc(100svh - 88px) !important;
}

.writing-route .hero-inner > *,
.writing-route .hero-copy,
.writing-route .hero-visual {
  min-width: 0;
}

.writing-route .hero-visual img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .writing-route .landing-hero {
    background:
      radial-gradient(circle at 85% 8%, rgba(214, 168, 75, 0.2), transparent 25%),
      linear-gradient(180deg, #fffaf0 0%, #fffaf0 72%, #314a2d 72%, #314a2d 100%) !important;
  }
}

@media (max-width: 640px) {
  .writing-route .landing-hero {
    background: linear-gradient(180deg, #fffaf0 0%, #fffaf0 78%, #314a2d 78%, #314a2d 100%) !important;
  }
}

/* TOEFL Listen and Repeat practice */
.listen-repeat-test { max-width: 1180px; margin: 0 auto; overflow: hidden; border: 1px solid #dbe4dc; border-radius: 18px; background: #fff; box-shadow: 10px 12px 0 rgba(42,124,88,.09); }
.listen-repeat-header { min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 0 28px; border-bottom: 1px solid #e6ece6; color: #1d3328; }
.listen-repeat-header div { display: grid; gap: 2px; }
.listen-repeat-header b { color: #247850; font-size: 13px; letter-spacing: .08em; }
.listen-repeat-header span { color: #829087; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.listen-repeat-header > strong { font-size: 14px; font-weight: 850; text-align: center; }
.listen-repeat-header p { justify-self: end; margin: 0; color: #87948b; font-size: 12px; font-weight: 800; }
.listen-repeat-header em { color: #247850; font-style: normal; }
.listen-repeat-progress { height: 4px; background: #edf2ec; }
.listen-repeat-progress i { display: block; height: 100%; background: #48b76d; transition: width .25s ease; }
.listen-repeat-body { display: grid; grid-template-columns: minmax(255px,.8fr) minmax(0,1.35fr); min-height: 655px; }
.listen-repeat-guide { padding: clamp(28px,4vw,58px); background: #f1f8ee; border-right: 1px solid #dce9db; }
.listen-repeat-guide > span, .listen-recorder-copy > span { color: #2b8056; font-size: 10px; font-weight: 950; letter-spacing: .15em; }
.listen-repeat-guide h1 { margin: 17px 0; color: #18352b; font-size: clamp(28px,3.1vw,42px); line-height: 1.05; letter-spacing: -.055em; }
.listen-repeat-guide > p { max-width: 260px; margin: 0; color: #64756a; font-size: 13px; line-height: 1.8; }
.listen-repeat-guide > div { display: grid; grid-template-columns: 25px 1fr; gap: 14px 12px; align-items: center; margin-top: 48px; }
.listen-repeat-guide > div b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #caecd0; color: #237a51; font-size: 10px; }
.listen-repeat-guide > div small { color: #40584a; font-size: 12px; font-weight: 750; }
.listen-repeat-stage { display: flex; flex-direction: column; padding: clamp(24px,4vw,48px); }
.listen-repeat-stage figure { position: relative; width: min(100%, 430px); aspect-ratio: 1 / 1; align-self: center; overflow: hidden; margin: 0 auto 22px; border-radius: 12px; background: #e6f0e6; }
.listen-repeat-stage figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,53,43,.2), transparent 54%); pointer-events: none; }
.listen-repeat-stage figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.listen-repeat-stage figcaption { position: absolute; z-index: 1; left: 18px; bottom: 15px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: #285d42; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.listen-audio-player { display: grid; grid-template-columns: 42px minmax(0,1fr) 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid #dce7dc; border-radius: 11px; }
.listen-audio-player button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: #2a8056; color: #fff; font-weight: 900; cursor: pointer; }
.listen-audio-player div { min-width: 0; display: grid; gap: 3px; }
.listen-audio-player b { color: #234934; font-size: 12px; }
.listen-audio-player span { overflow: hidden; color: #7c8a80; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.listen-audio-player > i { height: 3px; border-radius: 99px; background: repeating-linear-gradient(90deg,#b6d2bc 0 3px,transparent 3px 8px); }
.listen-audio-player time { color: #718076; font-size: 11px; font-weight: 800; }
.listen-response-time { width: min(100%, 370px); overflow: hidden; margin: 26px auto 0; border: 1px solid #cadada; border-radius: 0 0 22px 22px; background: #fff; box-shadow: 0 7px 18px rgba(25,73,72,.08); text-align: center; }
.listen-response-time-head { padding: 13px 18px; background: #087f80; color: #fff; font-size: 17px; font-weight: 950; letter-spacing: .035em; }
.listen-response-time-body { display: flex; align-items: center; justify-content: center; gap: 17px; min-height: 78px; padding: 5px 18px 0; }
.listen-response-time-body time { color: #172323; font: 850 clamp(25px,4vw,33px) ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .01em; }
.listen-response-time > p { min-height: 17px; margin: 0; padding: 0 14px 13px; color: #6e7b79; font-size: 10px; font-weight: 750; }
.listen-record-button { position: relative; display: grid; width: 46px; height: 46px; place-items: center; padding: 0; border: 3px solid #d8e4e2; border-radius: 50%; background: #fff; color: #087f80; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.listen-record-button:hover { transform: scale(1.05); border-color: #087f80; }
.listen-record-button i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e8f1f0; color: #087f80; font-style: normal; font-size: 21px; line-height: 1; }
.listen-record-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.listen-record-button.recording { border-color: #e95c58; background: #fff7f6; }
.listen-record-button.recording i { background: #e95c58; color: #fff; animation: listen-record-pulse 1s infinite; }
@keyframes listen-record-pulse { 50% { box-shadow: 0 0 0 6px rgba(233,92,88,.18); } }
.listen-stop-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(21,28,28,.5); backdrop-filter: blur(2px); }
.listen-stop-overlay[hidden] { display: none !important; }
.listen-stop-overlay section { position: relative; width: min(100%, 650px); min-height: 310px; box-sizing: border-box; padding: clamp(34px,6vw,68px); border: 1px solid rgba(0,0,0,.16); border-radius: 30px; background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.28); color: #242b2b; }
.listen-stop-close { position: absolute; top: 18px; right: 20px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: #f2f5f4; color: #58706a; font-size: 26px; font-weight: 300; line-height: 1; cursor: pointer; }
.listen-stop-close:hover { background: #e2ece7; color: #173b2a; }
.listen-stop-overlay h2 { margin: 0; font-size: clamp(28px,4vw,37px); font-weight: 500; letter-spacing: -.025em; }
.listen-stop-overlay section > div { height: 1px; margin: 25px 0 48px; background: #e5e8e8; }
.listen-stop-overlay p { margin: 0 0 23px; color: #6c7777; font-size: clamp(17px,2.2vw,22px); line-height: 1.45; }
.listen-recording-playback { width: 100%; height: 35px; margin-top: 12px; }
.listen-recorder-warning { margin: 11px 0 0; padding: 10px 12px; border: 1px solid #f1dc9a; border-radius: 8px; background: #fffae8; color: #795d12; font-size: 11px; line-height: 1.55; }
.listen-recorder-warning a { color: #28734f; font-weight: 850; text-decoration: underline; }
.listen-record-button:disabled { cursor: not-allowed; opacity: .56; }
.listen-repeat-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 26px; }
.listen-repeat-actions button { min-height: 42px; padding: 0 15px; border-radius: 8px; font: 850 12px inherit; cursor: pointer; }
.listen-repeat-back { border: 1px solid #d5e1d6; background: #fff; color: #42644e; }
.listen-repeat-next { min-width: 118px; border: 0; background: #2d8158; color: #fff; }
.listen-repeat-next i { margin-left: 12px; font-style: normal; font-size: 17px; }
.interview-test { max-width: 1120px; min-height: min(760px, calc(100vh - 90px)); margin: 0 auto; border: 1px solid #d9dddd; background: #fff; color: #171d1d; }
.interview-intro-card { max-width: 860px; padding: clamp(44px,8vw,100px) clamp(26px,7vw,78px); margin: 0 auto; }
.interview-intro-card > p { margin: 0 0 18px; color: #087f80; font-size: 11px; font-weight: 900; letter-spacing: .11em; }
.interview-intro-card h1 { margin: 0; font-size: clamp(34px,5vw,52px); font-weight: 550; letter-spacing: -.045em; }
.interview-intro-card > div { height: 1px; margin: 21px 0 47px; background: #e2e5e5; }
.interview-intro-card h2 { max-width: 800px; margin: 0 0 25px; color: #556061; font-size: clamp(18px,2.2vw,25px); font-weight: 450; line-height: 1.55; }
.interview-intro-card button, .interview-next-button { min-height: 47px; padding: 0 20px; border: 0; border-radius: 7px; background: #087f80; color: #fff; font: 850 13px inherit; cursor: pointer; }
.interview-intro-card button { margin-top: 35px; }
.interview-intro-card button i, .interview-next-button i, .interview-actions i { margin-left: 12px; font-style: normal; font-size: 18px; }
.interview-briefing, .interview-question-screen { max-width: 900px; padding: clamp(36px,5vw,64px) 24px 52px; margin: 0 auto; text-align: center; }
.interview-briefing > p { max-width: 880px; margin: 0 auto 38px; font-size: clamp(23px,3vw,34px); font-weight: 800; line-height: 1.28; letter-spacing: -.025em; }
.interview-briefing figure, .interview-question-screen figure { width: min(100%, 510px); aspect-ratio: 4 / 3; overflow: hidden; margin: 0 auto 23px; background: #ece9e3; }
.interview-briefing img, .interview-question-screen img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.interview-audio-button { min-height: 42px; padding: 0 15px; margin: 0 9px 0 0; border: 1px solid #b6d5d2; border-radius: 6px; background: #f5fbfa; color: #087f80; font: 800 12px inherit; cursor: pointer; }
.interview-question-screen > p { margin: 0 0 12px; font-size: clamp(28px,4vw,44px); font-weight: 850; letter-spacing: -.045em; }
.interview-question-screen > small { display: block; margin-bottom: 24px; color: #087f80; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.interview-question-audio { width: min(100%, 510px); display: flex; align-items: center; gap: 12px; padding: 10px 13px; box-sizing: border-box; margin: 0 auto 14px; border: 1px solid #d8e5e3; border-radius: 7px; color: #5d6e6c; font-size: 11px; text-align: left; }
.interview-question-audio button { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 50%; background: #087f80; color: #fff; cursor: pointer; }
.interview-response-time { margin-top: 22px; }
.interview-actions { width: min(100%, 510px); display: flex; justify-content: space-between; gap: 12px; margin: 30px auto 0; }
.interview-actions button { min-height: 43px; padding: 0 15px; border: 1px solid #cddad8; border-radius: 7px; background: #fff; color: #3c5955; font: 850 12px inherit; cursor: pointer; }
.interview-actions button:last-child { border-color: #087f80; background: #087f80; color: #fff; }
.listen-repeat-exam { max-width: 1120px; min-height: min(760px, calc(100vh - 90px)); overflow: visible; border: 1px solid #d9dddd; border-radius: 0; box-shadow: none; color: #171d1d; }
.listen-repeat-question-screen { max-width: 900px; padding: clamp(36px,5vw,64px) 24px 52px; margin: 0 auto; text-align: center; }
.listen-repeat-question-screen > p { margin: 0 0 12px; font-size: clamp(28px,4vw,44px); font-weight: 850; letter-spacing: -.045em; }
.listen-repeat-question-screen > small { display: block; margin-bottom: 24px; color: #087f80; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.listen-repeat-question-screen figure { width: min(100%, 510px); aspect-ratio: 4 / 3; overflow: hidden; margin: 0 auto 23px; background: #ece9e3; }
.listen-repeat-question-screen figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.listen-repeat-exam-audio { width: min(100%, 510px); box-sizing: border-box; margin: 0 auto 14px; text-align: left; }
.listen-repeat-exam-actions { margin-top: 30px; }
.interview-editor { padding: 21px; border: 1px solid #cfe3df; border-radius: 15px; background: #f8fcfb; }
.interview-editor > header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.interview-editor > header div { display: grid; gap: 5px; }
.interview-editor > header span, .interview-editor-question > b { color: #087f80; font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.interview-editor > header b { color: #254942; font-size: 15px; }
.interview-editor > header small { max-width: 340px; color: #677d78; font-size: 11px; line-height: 1.5; text-align: right; }
.interview-editor-background, .interview-editor-question { display: grid; gap: 10px; min-width: 0; padding: 15px; border: 1px solid #dceae7; border-radius: 10px; background: #fff; }
.interview-editor-background > b { color: #254942; font-size: 13px; }
.interview-editor-question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.interview-editor textarea { width: 100%; min-width: 0; box-sizing: border-box; border-color: #d7e5e2; }
@media (max-width: 700px) { .interview-intro-card { padding-top: 52px; } .interview-intro-card > div { margin: 20px 0 32px; } .interview-briefing > p { font-size: 23px; } .interview-editor { padding: 15px; } .interview-editor > header { display: grid; } .interview-editor > header small { text-align: left; } .interview-editor-question-grid { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .listen-repeat-test { border-radius: 12px; } .listen-repeat-header { grid-template-columns: 1fr auto; padding: 0 17px; } .listen-repeat-header > strong { display: none; } .listen-repeat-body { grid-template-columns: 1fr; } .listen-repeat-guide { border-right: 0; border-bottom: 1px solid #dce9db; } .listen-repeat-guide > div { display: none; } .listen-repeat-stage { min-height: 580px; } }
@media (max-width: 500px) { .listen-repeat-header { min-height: 58px; } .listen-repeat-guide { padding: 26px 22px; } .listen-repeat-stage { padding: 22px 16px; } .listen-repeat-stage figure { width: min(100%, 340px); } .listen-audio-player { grid-template-columns: 42px minmax(0,1fr) auto; } .listen-audio-player > i { display: none; } .listen-response-time { margin-top: 20px; } .listen-response-time-head { font-size: 15px; } .listen-stop-overlay { padding: 18px; } .listen-stop-overlay section { min-height: 270px; padding: 34px 28px; border-radius: 24px; } .listen-stop-overlay section > div { margin: 20px 0 35px; } }

/* Aguacate Speaking product page */
.speaking-route {
  --sp-cream: #fffdf5;
  --sp-ink: #18352b;
  --sp-green: #58bd72;
  --sp-green-dark: #2a7c58;
  --sp-yellow: #ffd95a;
  --sp-coral: #ff8d77;
  --sp-blue: #8dd8e8;
  --sp-paper: #f3f9ee;
  background: var(--sp-cream);
}

.speaking-page {
  min-height: 100vh;
  overflow: hidden;
  background: var(--sp-cream);
  color: var(--sp-ink);
  font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.speaking-page *, .speaking-page *::before, .speaking-page *::after { box-sizing: border-box; }
.speaking-header { width: min(1180px, calc(100% - 56px)); min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; border-bottom: 1px solid rgba(24,53,43,.14); }
.speaking-header .simple-brand, .speaking-footer .simple-brand { color: var(--sp-ink) !important; }
.speaking-nav { display: flex; align-items: center; gap: 38px; }
.speaking-nav a { color: var(--sp-ink); font-size: 12px; font-weight: 850; text-decoration: none; }
.speaking-nav a:hover { color: var(--sp-green-dark); }
.speaking-nav .speaking-nav-cta { min-height: 40px; display: inline-flex; align-items: center; gap: 18px; padding: 0 16px; border: 1.5px solid var(--sp-ink); border-radius: 999px; }
.speaking-nav .speaking-nav-cta:hover { background: var(--sp-ink); color: white; }

.speaking-hero { width: min(1180px, calc(100% - 56px)); min-height: 650px; display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(30px, 6vw, 82px); margin: 0 auto; padding: 62px 0 76px; }
.speaking-kicker { margin: 0 0 20px; color: var(--sp-green-dark); font-size: 10px; font-weight: 950; letter-spacing: .16em; }
.speaking-kicker span { margin-right: 8px; color: var(--sp-coral); font-size: 8px; }
.speaking-hero h1 { margin: 0; font-size: clamp(59px, 7vw, 94px); font-weight: 750; line-height: .88; letter-spacing: -.075em; }
.speaking-hero h1 em { color: var(--sp-green-dark); font-style: normal; }
.speaking-lead { max-width: 440px; margin: 28px 0 0; color: #66766b; font-size: 16px; line-height: 1.8; }
.speaking-hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.speaking-primary-button { min-height: 52px; display: inline-flex; align-items: center; gap: 34px; padding: 0 22px; border-radius: 999px; background: var(--sp-green); box-shadow: 0 5px 0 var(--sp-green-dark); color: white; font-size: 13px; font-weight: 950; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.speaking-primary-button:hover { transform: translateY(3px); box-shadow: 0 2px 0 var(--sp-green-dark); }
.speaking-microcopy { color: #77847a; font-size: 10px; line-height: 1.35; }
.speaking-microcopy b { color: var(--sp-ink); font: italic 21px Georgia, serif; }

.speaking-hero-stage { position: relative; min-height: 500px; }
.speaking-hero-stage { width: min(620px, 100%); min-height: 0; margin: 0; justify-self: end; }
.speaking-hero-stage img { width: 100%; height: auto; display: block; filter: drop-shadow(0 21px 17px rgba(42, 124, 88, .12)); }
.speaking-stage-sun { position: absolute; width: 440px; height: 410px; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-7deg); border-radius: 46% 54% 45% 55%; background: var(--sp-yellow); }
.speaking-stage-sun::after { content: ""; position: absolute; inset: 25px; border: 2px dashed rgba(24,53,43,.16); border-radius: inherit; }
.speaking-stage-mascot { position: absolute; z-index: 2; width: 180px; left: 50%; bottom: 22px; transform: translateX(-50%) rotate(2deg); padding: 20px 25px 0; border-radius: 52% 48% 29% 29%; background: var(--sp-green); box-shadow: 0 11px 0 var(--sp-green-dark); }
.speaking-stage-mascot img { width: 100%; height: 248px; display: block; object-fit: contain; object-position: bottom; }
.speaking-bubble { position: absolute; z-index: 4; border: 2px solid var(--sp-ink); background: white; box-shadow: 5px 5px 0 var(--sp-ink); }
.speaking-bubble-one { width: 220px; left: 0; top: 75px; padding: 18px 21px; border-radius: 18px 18px 18px 4px; rotate: -6deg; }
.speaking-bubble-one small { display: block; margin-bottom: 8px; color: var(--sp-coral); font-size: 8px; font-weight: 950; letter-spacing: .13em; }
.speaking-bubble-one strong { font-size: 19px; line-height: 1.25; }
.speaking-bubble-two { width: 152px; right: 1%; top: 145px; display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-radius: 18px 18px 4px 18px; rotate: 7deg; }
.speaking-bubble-two span { font-size: 10px; font-weight: 900; }
.speaking-bubble-two b { color: var(--sp-green-dark); font: italic 25px Georgia, serif; }
.speaking-recorder-card { position: absolute; z-index: 5; right: 0; bottom: 8px; min-width: 248px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--sp-ink); border-radius: 14px; background: #fff; box-shadow: 5px 5px 0 rgba(24,53,43,.2); rotate: -4deg; }
.speaking-rec-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--sp-coral); box-shadow: 0 0 0 5px rgba(255,141,119,.18); }
.speaking-recorder-card time { color: #708076; font-size: 9px; font-weight: 900; }
.speaking-wave { height: 36px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.speaking-wave i { width: 3px; height: var(--wave); display: block; border-radius: 5px; background: var(--sp-green-dark); }
.speaking-recorder-card .speaking-wave { flex: 1; }
.speaking-recorder-card .speaking-wave i:nth-child(3n) { background: var(--sp-coral); }
.speaking-doodle { position: absolute; z-index: 3; font-weight: 900; }
.speaking-doodle-one { right: 12%; top: 45px; color: var(--sp-coral); font-size: 34px; rotate: 12deg; }
.speaking-doodle-two { left: 9%; bottom: 65px; color: var(--sp-green-dark); font-size: 31px; rotate: -35deg; }

.speaking-marquee { overflow: hidden; padding: 15px 0; border-block: 2px solid var(--sp-ink); background: var(--sp-green); white-space: nowrap; }
.speaking-marquee div { width: max-content; color: var(--sp-ink); font-size: 10px; font-weight: 950; letter-spacing: .14em; word-spacing: 9px; animation: speaking-scroll 22s linear infinite; }
.speaking-marquee span { color: var(--sp-cream); margin: 0 16px; }
@keyframes speaking-scroll { to { transform: translateX(-40%); } }

.speaking-process { padding: 110px max(28px, calc((100vw - 1180px) / 2)) 124px; background: var(--sp-paper); }
.speaking-section-heading { display: grid; grid-template-columns: .7fr 1.15fr 1fr; align-items: end; gap: 28px; margin-bottom: 48px; }
.speaking-section-heading > p { margin: 0; color: var(--sp-green-dark); font-size: 9px; font-weight: 950; letter-spacing: .17em; }
.speaking-section-heading h2 { margin: 0; font-size: clamp(38px, 4.5vw, 58px); line-height: .98; letter-spacing: -.06em; }
.speaking-section-heading > span { color: #6c7a70; font-size: 13px; line-height: 1.75; }
.speaking-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.speaking-step-card { min-height: 340px; position: relative; padding: 25px 27px 30px; border: 2px solid var(--sp-ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--sp-ink); }
.speaking-step-card > span { font: italic 17px Georgia, serif; }
.speaking-step-icon { width: 88px; height: 88px; display: grid; place-items: center; margin: 34px auto 38px; border: 2px solid var(--sp-ink); border-radius: 50%; background: rgba(255,255,255,.78); box-shadow: 4px 4px 0 var(--sp-ink); font-size: 34px; font-weight: 950; rotate: -6deg; }
.speaking-step-card:nth-child(2) .speaking-step-icon { rotate: 5deg; }
.speaking-step-card h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.03em; }
.speaking-step-card p { margin: 0; font-size: 13px; line-height: 1.7; }
.speaking-step-yellow { background: var(--sp-yellow); }
.speaking-step-blue { background: var(--sp-blue); }
.speaking-step-coral { background: var(--sp-coral); }

.speaking-demo { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(55px, 8vw, 110px); padding: 115px max(28px, calc((100vw - 1080px) / 2)); background: var(--sp-ink); color: white; }
.speaking-demo-copy h2 { margin: 0; font-size: clamp(48px, 5.5vw, 72px); line-height: .94; letter-spacing: -.065em; }
.speaking-demo-copy h2 em { color: var(--sp-yellow); font-style: normal; }
.speaking-demo-copy > p:not(.speaking-kicker) { max-width: 390px; margin: 24px 0 28px; color: #bdc9c0; font-size: 14px; line-height: 1.8; }
.speaking-demo-copy ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.speaking-demo-copy li { display: flex; align-items: center; gap: 13px; font-size: 12px; font-weight: 750; }
.speaking-demo-copy li b { color: var(--sp-coral); font: italic 13px Georgia, serif; }
.speaking-demo-device { position: relative; padding: 27px 30px 25px; border: 3px solid var(--sp-ink); border-radius: 28px; background: var(--sp-cream); box-shadow: 12px 12px 0 var(--sp-yellow); color: var(--sp-ink); rotate: 2deg; }
.speaking-device-top { display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.speaking-device-top b { color: var(--sp-green-dark); }
.speaking-device-progress { height: 5px; margin: 15px 0 34px; overflow: hidden; border-radius: 5px; background: #dfe9da; }
.speaking-device-progress i { width: 28%; height: 100%; display: block; background: var(--sp-green); }
.speaking-device-label { margin: 0 0 11px; color: var(--sp-coral); font-size: 8px; font-weight: 950; letter-spacing: .15em; }
.speaking-demo-device h3 { max-width: 520px; margin: 0; font-size: clamp(28px, 3.5vw, 43px); line-height: 1.1; letter-spacing: -.045em; }
.speaking-device-hint { margin: 15px 0 24px; color: #718077; font-size: 12px; }
.speaking-device-wave { min-height: 76px; display: grid; place-items: center; margin-bottom: 21px; border-radius: 14px; background: #edf5e9; }
.speaking-device-wave .speaking-wave i:nth-child(4n) { background: var(--sp-coral); }
.speaking-record-button { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; background: var(--sp-green); box-shadow: 0 4px 0 var(--sp-green-dark); color: white; font: 900 12px inherit; cursor: default; }
.speaking-record-button span { width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; }
.speaking-demo-device > small { display: block; margin-top: 13px; color: #8a968d; font-size: 9px; text-align: center; }

.speaking-scenes { padding: 112px max(28px, calc((100vw - 1180px) / 2)) 126px; }
.speaking-section-heading.compact { grid-template-columns: .6fr 2fr; align-items: end; }
.speaking-scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.speaking-scene-card { min-height: 390px; display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 25px 27px; border: 2px solid var(--sp-ink); border-radius: 22px; transition: transform .2s ease, box-shadow .2s ease; }
.speaking-scene-card:hover { transform: translateY(-5px); box-shadow: 7px 7px 0 var(--sp-ink); }
.speaking-scene-card::after { content: ""; width: 170px; height: 170px; position: absolute; right: -35px; bottom: -45px; border: 2px dashed rgba(24,53,43,.28); border-radius: 48% 52% 45% 55%; rotate: 12deg; }
.speaking-scene-card > span { align-self: end; font: italic 18px Georgia, serif; }
.speaking-scene-card > p { margin: 38px 0 13px; font-size: 9px; font-weight: 950; letter-spacing: .15em; }
.speaking-scene-card h3 { margin: 0; font-size: clamp(38px, 4vw, 53px); line-height: .95; letter-spacing: -.06em; }
.speaking-scene-card small { max-width: 220px; margin-top: 18px; font-size: 12px; line-height: 1.65; }
.speaking-scene-card b { margin-top: auto; font-size: 10px; letter-spacing: .08em; }
.scene-exam { background: var(--sp-green); }
.scene-campus { background: var(--sp-yellow); }
.scene-world { background: var(--sp-blue); }

.speaking-final-cta { min-height: 540px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 100px 24px 80px; background: var(--sp-coral); text-align: center; }
.speaking-final-cta::before, .speaking-final-cta::after { content: "✦"; position: absolute; color: var(--sp-yellow); font-size: 50px; }
.speaking-final-cta::before { left: 11%; top: 27%; rotate: -14deg; }
.speaking-final-cta::after { right: 13%; bottom: 22%; rotate: 11deg; }
.speaking-cta-mascot { width: 86px; height: 86px; position: absolute; left: 13%; bottom: -3px; overflow: hidden; padding: 7px 10px 0; border-radius: 48% 52% 0 0; background: var(--sp-green); box-shadow: 5px 0 0 var(--sp-green-dark); rotate: -7deg; }
.speaking-cta-mascot img { width: 100%; height: 96px; object-fit: contain; object-position: bottom; }
.speaking-final-cta > p { margin: 0 0 16px; font-size: 9px; font-weight: 950; letter-spacing: .18em; }
.speaking-final-cta h2 { margin: 0; font-size: clamp(55px, 7vw, 88px); line-height: .91; letter-spacing: -.075em; }
.speaking-final-cta > a { min-height: 49px; display: inline-flex; align-items: center; gap: 30px; margin-top: 30px; padding: 0 21px; border: 2px solid var(--sp-ink); border-radius: 999px; background: var(--sp-yellow); box-shadow: 4px 4px 0 var(--sp-ink); color: var(--sp-ink); font-size: 12px; font-weight: 950; text-decoration: none; }
.speaking-final-note { margin-top: 20px; font-size: 10px; font-weight: 750; }

.speaking-footer { width: min(1180px, calc(100% - 56px)); min-height: 105px; display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.speaking-footer > div { display: flex; gap: 28px; margin-left: auto; }
.speaking-footer > div a { color: var(--sp-ink); font-size: 11px; font-weight: 850; text-decoration: none; }
.speaking-footer > small { color: #728078; font-size: 9px; }

@media (max-width: 900px) {
  .speaking-hero { grid-template-columns: 1fr; padding-top: 72px; }
  .speaking-hero-stage { width: min(620px, 100%); margin: 0 auto; }
  .speaking-section-heading { grid-template-columns: 1fr 2fr; }
  .speaking-section-heading > span { grid-column: 2; }
  .speaking-step-grid, .speaking-scene-grid { grid-template-columns: 1fr; }
  .speaking-step-card { min-height: 280px; }
  .speaking-step-icon { margin: 24px auto; }
  .speaking-demo { grid-template-columns: 1fr; }
  .speaking-section-heading.compact { grid-template-columns: 1fr; }
  .speaking-scene-card { min-height: 330px; }
  .speaking-footer { flex-wrap: wrap; padding: 28px 0; }
  .speaking-footer > small { width: 100%; }
}

@media (max-width: 640px) {
  .speaking-header { width: calc(100% - 32px); min-height: 70px; }
  .speaking-nav a:not(.speaking-nav-cta) { display: none; }
  .speaking-nav .speaking-nav-cta { min-height: 36px; }
  .speaking-hero { width: calc(100% - 32px); min-height: auto; padding: 58px 0 74px; }
  .speaking-hero h1 { font-size: clamp(55px, 17vw, 74px); }
  .speaking-lead { font-size: 15px; }
  .speaking-hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .speaking-hero-stage { min-height: 0; }
  .speaking-stage-sun { width: 310px; height: 300px; }
  .speaking-stage-mascot { width: 135px; bottom: 25px; }
  .speaking-stage-mascot img { height: 185px; }
  .speaking-bubble-one { width: 184px; left: 0; top: 58px; }
  .speaking-bubble-two { right: 0; top: 176px; }
  .speaking-recorder-card { min-width: 210px; right: -4px; bottom: 0; }
  .speaking-doodle-one { right: 4%; top: 25px; }
  .speaking-process, .speaking-scenes { padding: 76px 16px 86px; }
  .speaking-section-heading { grid-template-columns: 1fr; }
  .speaking-section-heading > span { grid-column: auto; }
  .speaking-section-heading h2 { font-size: 42px; }
  .speaking-demo { padding: 78px 16px 86px; }
  .speaking-demo-device { padding: 23px 20px 22px; border-radius: 22px; box-shadow: 7px 7px 0 var(--sp-yellow); }
  .speaking-demo-device h3 { font-size: 28px; }
  .speaking-device-wave .speaking-wave i:nth-child(n+20) { display: none; }
  .speaking-final-cta { min-height: 500px; }
  .speaking-final-cta::before { left: 5%; top: 20%; }
  .speaking-final-cta::after { right: 5%; bottom: 15%; }
  .speaking-cta-mascot { left: 6%; }
  .speaking-footer { width: calc(100% - 32px); align-items: flex-start; }
  .speaking-footer > div { width: 100%; order: 3; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .speaking-marquee div { animation: none; }
}

/* Compact Speaking entry, aligned with the Writing landing page */
.speaking-simple-page { background: #fffdf5; color: #18352b; }
.speaking-simple-hero { min-height: 100svh; position: relative; overflow: hidden; background: radial-gradient(circle at 84% 18%, rgba(88,189,114,.12), transparent 28%), radial-gradient(circle at 76% 78%, rgba(255,217,90,.16), transparent 25%), #fffdf5; }
.speaking-simple-header { width: min(1180px, calc(100% - 64px)); min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 auto; padding: 16px 0; }
.speaking-simple-header .brand { display: inline-flex; align-items: center; gap: 13px; color: #18352b; text-decoration: none; }
.speaking-simple-header .brand .avocado-logo { width: 44px; height: 52px; }
.speaking-simple-header .brand > span { display: grid; gap: 3px; }
.speaking-simple-header .brand b { font-size: 18px; letter-spacing: -.03em; }
.speaking-simple-header .brand small { color: #718077; font-size: 10px; font-weight: 700; }
.speaking-account-button { min-height: 44px; padding: 0 19px; border: 0; border-radius: 999px; background: #fff3bd; color: #18352b; font: 850 12px inherit; cursor: pointer; }
.speaking-simple-inner { width: min(1180px, calc(100% - 64px)); min-height: calc(100svh - 140px); display: grid; grid-template-columns: minmax(460px, 1.04fr) minmax(400px, .96fr); align-items: center; gap: clamp(54px, 7vw, 104px); margin: 0 auto; padding: 42px 0 72px; }
.speaking-simple-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 25px; }
.speaking-simple-tags span { min-height: 32px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px; background: #eef7e9; color: #2a7c58; font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.speaking-simple-copy h1 { margin: 0; color: #18352b; font-size: clamp(50px, 5vw, 70px); line-height: 1.05; letter-spacing: -.055em; }
.speaking-simple-copy h1 em { color: #2a7c58; font-style: normal; }
.speaking-simple-copy > p { margin: 23px 0 0; color: #66766b; font-size: 16px; line-height: 1.75; }
.speaking-simple-actions { display: flex; align-items: center; gap: 13px; margin-top: 38px; }
.speaking-main-button, .speaking-secondary-button { min-height: 52px; min-width: 170px; display: inline-flex; align-items: center; justify-content: center; padding: 0 23px; border: 0; border-radius: 999px; font: 850 13px inherit; text-decoration: none; cursor: pointer; }
.speaking-main-button { background: #58bd72; color: white; }
.speaking-secondary-button { background: #eef3e9; color: #18352b; }
.speaking-welcome { color: #2a7c58; font-size: 13px; font-weight: 800; }
.speaking-simple-visual { width: min(600px, 100%); min-height: 0; margin: 0; justify-self: end; background: radial-gradient(ellipse at 54% 88%, rgba(42,124,88,.14) 0 24%, transparent 55%); }
.speaking-simple-visual img { width: 100%; height: auto; display: block; filter: drop-shadow(0 21px 17px rgba(42,124,88,.11)); }
.speaking-home-link { position: absolute; right: max(32px, calc((100vw - 1180px) / 2)); bottom: 26px; color: #2a7c58; font-size: 12px; font-weight: 850; text-decoration: none; }
.speaking-home-link span { margin-left: 8px; }
.speaking-course-section { padding: 92px max(32px, calc((100vw - 1180px) / 2)) 108px; background: #f3f9ee; }
.speaking-course-section > p { margin: 0 0 9px; color: #2a7c58; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.speaking-course-section > h2 { margin: 0 0 32px; font-size: clamp(32px, 3.6vw, 45px); letter-spacing: -.05em; }
.speaking-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.speaking-course-card { min-height: 292px; position: relative; padding: 25px 28px; overflow: hidden; border: 0; border-radius: 22px; background: white; box-shadow: 0 8px 0 rgba(42,124,88,.08); }
.speaking-course-card::after { content: ""; width: 145px; height: 145px; position: absolute; right: -30px; bottom: -45px; border-radius: 50%; background: #fff3bd; }
.speaking-course-card:nth-child(2)::after { background: #e5f5ed; }
.speaking-course-card > span { color: #2a7c58; font: italic 19px Georgia, serif; }
.speaking-course-card h3 { margin: 27px 0 6px; font-size: 27px; letter-spacing: -.04em; }
.speaking-course-card > b { color: #758279; font-size: 11px; }
.speaking-course-card p { margin: 17px 0 21px; color: #637268; font-size: 13px; line-height: 1.7; }
.speaking-course-card button { position: relative; z-index: 1; padding: 0; border: 0; border-bottom: 1px solid #18352b; background: transparent; color: #18352b; font: 850 12px inherit; cursor: pointer; }
.speaking-course-card button i { margin-left: 18px; font-size: 17px; font-style: normal; }
.speaking-simple-footer { padding: 25px; color: #718077; background: #fffdf5; font-size: 11px; text-align: center; }
.speaking-journey-page { min-height: 100vh; display: grid; place-items: center; position: relative; padding: 28px; background: radial-gradient(circle at 11% 14%, rgba(141,216,232,.21), transparent 23%), radial-gradient(circle at 90% 85%, rgba(255,217,90,.24), transparent 24%), #fffdf5; }
.speaking-journey-back { position: absolute; top: 24px; left: 28px; color: #2a7c58; }
.speaking-journey-card { width: min(900px, 100%); padding: clamp(27px, 5vw, 48px); border-radius: 18px; background: white; box-shadow: 12px 12px 0 #ffd95a; }
.speaking-journey-card .center-brand { margin-bottom: 22px; }
.speaking-journey-eyebrow { margin: 0 0 9px; color: #2a7c58; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-align: center; }
.speaking-journey-card h1 { margin: 0; font-size: clamp(30px, 4.2vw, 47px); line-height: 1.08; letter-spacing: -.05em; text-align: center; }
.speaking-journey-copy { max-width: 570px; margin: 15px auto 30px; color: #69786d; font-size: 13px; line-height: 1.7; text-align: center; }
.speaking-entry-page { min-height: 100vh; display: grid; place-items: center; position: relative; padding: 28px; background: radial-gradient(circle at 10% 15%, rgba(141,216,232,.24), transparent 20%), radial-gradient(circle at 90% 80%, rgba(255,217,90,.25), transparent 22%), #fffdf5; }
.speaking-entry-page > .link-button { position: absolute; top: 24px; left: 28px; color: #2a7c58; }
.speaking-entry-card { width: min(520px, 100%); padding: clamp(25px, 5vw, 42px); border-radius: 18px; background: white; box-shadow: 12px 12px 0 #ffd95a; text-align: center; }
.speaking-entry-card .center-brand { margin-bottom: 20px; }
.speaking-entry-card h1 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.speaking-entry-card > p { margin: 12px auto 23px; color: #68776d; font-size: 13px; line-height: 1.7; }
.speaking-entry-card .login-form-card { text-align: left; }
.speaking-entry-card > .link-button { margin-top: 17px; }
.speaking-login-access { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 11px; max-width: 460px; margin: 0 auto 16px; }
.speaking-login-access .identity-tab { margin: 0; }
.speaking-login-access .admin-icon-button { width: 38px; height: 38px; margin: 0; }
.speaking-plan { display: grid; gap: 8px; padding: 20px; margin: 24px 0; border-radius: 14px; background: #eef7e9; text-align: left; }
.speaking-plan b { color: #2a7c58; font-size: 13px; }
.speaking-plan strong { font-size: 25px; }
.speaking-plan span { color: #68776d; font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) { .speaking-simple-header, .speaking-simple-inner { width: calc(100% - 32px); } .speaking-simple-header { min-height: 76px; } .speaking-simple-header .brand small { display: none; } .speaking-simple-inner { min-height: auto; grid-template-columns: 1fr; gap: 16px; padding: 48px 0 82px; } .speaking-simple-copy h1 { font-size: clamp(43px, 13vw, 59px); } .speaking-simple-actions { flex-wrap: wrap; margin-top: 28px; } .speaking-simple-visual { width: min(480px, 100%); justify-self: center; } .speaking-home-link { right: 20px; bottom: 18px; } .speaking-course-section { padding: 70px 16px 78px; } .speaking-course-grid { grid-template-columns: 1fr; } .speaking-journey-page { padding: 20px; } .speaking-journey-back { top: 14px; left: 16px; } .speaking-journey-card { box-shadow: 7px 7px 0 #ffd95a; } .speaking-entry-page { padding: 20px; } .speaking-entry-page > .link-button { top: 14px; left: 16px; } .speaking-entry-card { box-shadow: 7px 7px 0 #ffd95a; } }

/* Speaking learner workspace */
.speaking-workspace { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); background: #f7faf5; color: #18352b; font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", sans-serif; }
.speaking-sidebar { min-height: 100vh; display: flex; flex-direction: column; padding: 27px 18px 20px; background: #18352b; color: white; }
.speaking-sidebar-brand { display: inline-flex; align-items: center; gap: 10px; padding: 0 8px; color: white; text-decoration: none; font-size: 15px; font-weight: 900; line-height: 1.03; }
.speaking-sidebar-brand .avocado-logo { width: 34px; height: 42px; }
.speaking-sidebar-brand b { color: #8fdfa2; }
.speaking-user { display: flex; align-items: center; gap: 10px; margin: 42px 8px 28px; padding: 12px 0; border-block: 1px solid rgba(255,255,255,.12); }
.speaking-user > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #ffd95a; color: #18352b; font-size: 14px; font-weight: 950; }
.speaking-user div { display: grid; gap: 2px; }
.speaking-user b { font-size: 12px; }
.speaking-user small { color: #aec5b4; font-size: 9px; }
.speaking-side-nav { display: grid; gap: 5px; }
.speaking-side-nav button { min-height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: #d5e3d7; font: 800 13px inherit; text-align: left; cursor: pointer; }
.speaking-side-nav button i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.09); color: #8fdfa2; font-size: 10px; font-style: normal; }
.speaking-side-nav button:hover, .speaking-side-nav button.active { background: rgba(143,223,162,.15); color: white; }
.speaking-side-nav button.active i { background: #8fdfa2; color: #18352b; }
.speaking-side-nav > span { min-height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border-radius: 10px; background: rgba(143,223,162,.15); color: white; font-size: 13px; }
.speaking-side-nav > span i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #8fdfa2; color: #18352b; font-size: 10px; font-style: normal; }
.speaking-sidebar-bottom { display: grid; gap: 8px; margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.speaking-sidebar-bottom a, .speaking-sidebar-bottom button { padding: 0; border: 0; background: transparent; color: #d5e3d7; font: 800 12px inherit; text-align: left; text-decoration: none; cursor: pointer; }
.speaking-work-main { min-width: 0; padding: clamp(32px, 5vw, 68px); }
.speaking-admin-bank-grid { max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 auto; }
.speaking-admin-bank { min-width: 0; min-height: 390px; display: flex; flex-direction: column; overflow: hidden; padding: 27px; border: 1px solid #dde9df; border-radius: 18px; background: #fff; box-shadow: 8px 8px 0 rgba(42,124,88,.07); }
.speaking-admin-bank.toefl { border-color: #dce7ba; box-shadow: 8px 8px 0 rgba(255,217,90,.37); }
.speaking-admin-bank header { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.speaking-admin-bank header > span { color: #2a7c58; font: italic 20px Georgia,serif; }
.speaking-admin-bank header p { margin: 0 0 4px; color: #2a7c58; font-size: 10px; font-weight: 950; letter-spacing: .09em; }
.speaking-admin-bank header h2 { margin: 0; overflow-wrap: anywhere; font-size: 23px; letter-spacing: -.04em; }
.speaking-admin-bank header > b { padding: 8px 10px; border-radius: 999px; background: #eef7e9; color: #2a7c58; font-size: 10px; white-space: nowrap; }
.speaking-admin-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 13px; }
.speaking-admin-tags i { padding: 6px 9px; border-radius: 999px; background: #f4f7f3; color: #567161; font-size: 10px; font-style: normal; font-weight: 800; }
.speaking-admin-bank ol { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.speaking-admin-bank li { padding: 0; border-bottom: 1px solid #edf1ed; }
.speaking-admin-bank-question { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; }
.speaking-admin-bank-question > div { min-width: 0; display: grid; gap: 3px; }
.speaking-admin-bank-question p, .speaking-admin-question-item p { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; margin: 0; }
.speaking-admin-bank-question button, .speaking-admin-question-item button { border: 0; border-radius: 999px; background: #eef6ef; color: #277653; font: 850 10px inherit; white-space: nowrap; cursor: pointer; }
.speaking-admin-bank-question button { padding: 6px 8px; }
.speaking-admin-bank-question button:last-child, .speaking-admin-question-item button:last-child { background: transparent; }
.speaking-admin-bank-question button:hover, .speaking-admin-question-item button:hover { color: #164b34; background: #e2f0e4; }
.speaking-admin-bank li span { min-width: 0; overflow: hidden; color: #40594a; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.speaking-admin-bank li b { max-width: 128px; overflow: hidden; color: #2a7c58; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.speaking-admin-bank footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 21px; }
.speaking-admin-bank footer span { color: #7a897f; font-size: 10px; }
.speaking-admin-bank footer button { padding: 0; border: 0; background: transparent; color: #216b47; font: 900 11px inherit; cursor: pointer; }
.speaking-admin-bank footer i { margin-left: 8px; font-size: 15px; font-style: normal; }
.speaking-work-top { max-width: 1040px; margin: 0 auto 36px; }
.speaking-work-top > p { margin: 0 0 8px; color: #2a7c58; font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.speaking-work-top h1 { max-width: 100%; margin: 0; overflow-wrap: anywhere; font-size: clamp(28px, 4vw, 47px); letter-spacing: -.055em; }
.speaking-work-top > span { display: block; margin-top: 12px; color: #6c7a70; font-size: 13px; }
.speaking-work-top.with-back { padding-top: 2px; }
.speaking-text-back { margin: 0 0 22px; padding: 0; border: 0; background: transparent; color: #2a7c58; font: 850 12px inherit; cursor: pointer; }
.speaking-library-grid { max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 auto; }
.speaking-library-card { min-height: 285px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 27px 29px; border: 0; border-radius: 18px; background: white; box-shadow: 0 8px 0 rgba(42,124,88,.09); color: #18352b; text-align: left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.speaking-library-card:hover { transform: translateY(-3px); box-shadow: 0 12px 0 rgba(42,124,88,.11); }
.speaking-library-card::after { content: ""; width: 175px; height: 175px; position: absolute; right: -38px; bottom: -55px; border-radius: 48% 52% 55% 45%; background: #fff3bd; }
.speaking-library-card.toefl::after { background: #dff4f6; }
.speaking-card-index { color: #2a7c58; font: italic 19px Georgia, serif; }
.speaking-library-card h2 { margin: 23px 0 5px; font-size: 28px; letter-spacing: -.04em; }
.speaking-library-card b { color: #76847b; font-size: 11px; }
.speaking-library-card p { margin: 17px 0 0; color: #637268; font-size: 13px; line-height: 1.7; }
.speaking-library-card small { position: relative; z-index: 1; color: #18352b; font-size: 11px; font-weight: 900; }
.speaking-library-card small i { margin-left: 13px; color: #2a7c58; font-size: 17px; font-style: normal; }
.speaking-question-list { max-width: 1040px; display: grid; gap: 11px; margin: 0 auto; }
.speaking-question-row { min-height: 112px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 23px; border-radius: 13px; background: white; box-shadow: 0 4px 0 rgba(42,124,88,.05); }
.speaking-question-row > span { color: #2a7c58; font: italic 20px Georgia, serif; }
.speaking-question-row p { margin: 0 0 5px; color: #2a7c58; font-size: 10px; font-weight: 900; letter-spacing: .07em; }
.speaking-question-row h3 { margin: 0 0 5px; font-size: 18px; }
.speaking-question-row b { display: block; color: #65746a; font-size: 12px; font-weight: 650; line-height: 1.55; }
.speaking-question-row button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: #eef7e9; color: #2a7c58; font: 850 11px inherit; white-space: nowrap; cursor: pointer; }
.speaking-question-row button i { margin-left: 8px; font-size: 15px; font-style: normal; }
.speaking-practice-card { max-width: 820px; padding: clamp(28px, 5vw, 52px); margin: 0 auto; border-radius: 20px; background: white; box-shadow: 10px 10px 0 #ffd95a; }
.speaking-practice-card > span { color: #2a7c58; font-size: 10px; font-weight: 950; letter-spacing: .13em; }
.speaking-practice-card > p { margin: 24px 0 9px; color: #74827a; font-size: 12px; }
.speaking-practice-card h2 { max-width: 720px; margin: 0; font-size: clamp(28px, 4vw, 43px); line-height: 1.16; letter-spacing: -.045em; }
.speaking-practice-card > div { display: flex; gap: 10px; margin: 25px 0; }
.speaking-practice-card > div b { padding: 8px 10px; border-radius: 999px; background: #eef7e9; color: #2a7c58; font-size: 11px; }
.speaking-practice-card > button, .speaking-empty-state button { min-height: 48px; padding: 0 19px; border: 0; border-radius: 999px; background: #58bd72; color: white; font: 900 12px inherit; cursor: pointer; }
.speaking-empty-state { max-width: 620px; display: grid; justify-items: center; margin: 84px auto 0; text-align: center; }
.speaking-empty-state img { width: 80px; height: 100px; object-fit: contain; }
.speaking-empty-state h2 { margin: 15px 0 8px; font-size: 25px; }
.speaking-empty-state p { max-width: 360px; margin: 0 0 19px; color: #68776d; font-size: 13px; line-height: 1.7; }
.speaking-tracking-grid { max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 auto; }
.speaking-tracking-grid article { display: grid; gap: 15px; min-height: 168px; padding: 23px; border-radius: 14px; background: white; }
.speaking-tracking-grid span { color: #65746a; font-size: 12px; }
.speaking-tracking-grid b { color: #2a7c58; font: 34px Georgia, serif; }
.speaking-tracking-grid i { color: #8a968e; font-size: 10px; font-style: normal; }
.speaking-admin-main { overflow: hidden; }
.speaking-admin-page-head { max-width: 1040px; display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 auto 28px; }
.speaking-admin-page-head > div { min-width: 0; }
.speaking-admin-page-head p { margin: 0 0 8px; color: #2a7c58; font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.speaking-admin-page-head h1 { max-width: 100%; margin: 0; overflow-wrap: anywhere; font-size: clamp(26px, 4vw, 45px); line-height: 1.13; letter-spacing: -.055em; }
.speaking-admin-page-head > div > span { display: block; margin-top: 11px; color: #6c7a70; font-size: 13px; line-height: 1.6; }
.speaking-admin-page-head .speaking-text-back { position: absolute; align-self: flex-start; margin: -28px 0 0; }
.speaking-admin-page-head.editor-head { display: block; padding-top: 29px; }
.speaking-admin-page-head.editor-head .speaking-text-back { margin-top: -29px; }
.speaking-admin-add, .speaking-admin-save { flex: 0 0 auto; min-height: 43px; padding: 0 17px; border: 0; border-radius: 999px; background: #2a7c58; color: #fff; font: 900 12px inherit; white-space: nowrap; cursor: pointer; box-shadow: 0 5px 0 rgba(42,124,88,.14); }
.speaking-admin-question-list { max-width: 1040px; display: grid; gap: 10px; margin: 0 auto; }
.speaking-admin-question-item { width: 100%; min-height: 76px; box-sizing: border-box; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 16px 20px; border: 1px solid #e6eee7; border-radius: 13px; background: #fff; color: #18352b; text-align: left; transition: border-color .16s ease, transform .16s ease; }
.speaking-admin-question-item:hover { border-color: #8ac9a2; transform: translateY(-1px); }
.speaking-admin-question-item > span { color: #2a7c58; font: italic 18px Georgia,serif; }
.speaking-admin-question-item div { min-width: 0; }
.speaking-admin-question-item b, .speaking-admin-question-item small { display: block; overflow-wrap: anywhere; }
.speaking-admin-question-item b { font-size: 14px; line-height: 1.4; }
.speaking-admin-question-item small { margin-top: 4px; color: #708074; font-size: 11px; }
.speaking-admin-preview-canvas { max-width: 1040px; min-width: 0; margin: 0 auto; }
.speaking-editor { max-width: 1040px; padding: clamp(18px, 3vw, 30px); margin: 0 auto; border: 1px solid #e4ece5; border-radius: 18px; background: #fff; box-shadow: 8px 8px 0 rgba(42,124,88,.06); }
.speaking-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.speaking-editor .field { display: grid; gap: 8px; min-width: 0; }
.speaking-editor .field > span { color: #465c4d; font-size: 12px; font-weight: 850; }
.speaking-editor .wide { grid-column: 1 / -1; }
.speaking-editor .input, .speaking-editor .textarea { width: 100%; min-width: 0; box-sizing: border-box; border-color: #d9e4da; background: #fbfdfb; }
.speaking-editor .textarea { min-height: 94px; line-height: 1.6; resize: vertical; }
.speaking-mode-panel[hidden] { display: none !important; }
.listen-repeat-editor { padding: 21px; border: 1px solid #dbe9cc; border-radius: 15px; background: linear-gradient(120deg, #fbfdf7, #f7fbf2); }
.listen-repeat-editor > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.listen-repeat-editor > header div { display: grid; gap: 5px; }
.listen-repeat-editor > header span { color: #2a7c58; font-size: 10px; font-weight: 950; letter-spacing: .13em; }
.listen-repeat-editor > header b { color: #244e39; font-size: 16px; }
.listen-repeat-editor > header small { color: #718074; font-size: 11px; }
.listen-repeat-slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.listen-repeat-editor-slot { min-width: 0; display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 10px; padding: 14px; border: 1px solid #e0eadb; border-radius: 12px; background: #fff; }
.listen-repeat-editor-slot > b { color: #2a7c58; font: italic 17px Georgia, serif; padding-top: 2px; }
.listen-repeat-editor-slot > label { min-width: 0; display: grid; gap: 7px; }
.listen-repeat-editor-slot label span { color: #506654; font-size: 11px; font-weight: 850; }
.listen-repeat-editor-slot .textarea { min-height: 74px; font-size: 12px; }
.listen-slot-actions, .listen-slot-preview, .listen-repeat-editor-slot > small { grid-column: 2; min-width: 0; }
.listen-slot-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.listen-slot-actions button { min-height: 35px; padding: 0 10px; border: 0; border-radius: 999px; background: #e8f3e5; color: #2a7c58; font: 900 10px inherit; white-space: nowrap; cursor: pointer; }
.listen-slot-actions button:disabled { opacity: .65; cursor: wait; }
.listen-slot-preview { min-height: 42px; display: grid; place-items: center; padding: 5px 8px; border-radius: 8px; background: #f1f5ef; }
.listen-slot-preview.empty { color: #829084; font-size: 10px; }
.listen-slot-preview audio { width: 100%; max-width: 255px; height: 30px; }
.listen-repeat-editor-slot > small { color: #728075; font-size: 10px; line-height: 1.45; }
.speaking-tts-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 260px) auto; align-items: end; gap: 17px; padding: 19px 21px; margin-top: 22px; border: 1px solid #dbe9cc; border-radius: 14px; background: linear-gradient(110deg, #f6fbef, #fffdf1); }
.speaking-tts-copy { min-width: 0; display: grid; gap: 5px; }
.speaking-tts-copy > span { color: #2a7c58; font-size: 10px; font-weight: 950; letter-spacing: .13em; }
.speaking-tts-copy b { color: #244e39; font-size: 15px; }
.speaking-tts-copy small, .speaking-tts-panel > p { color: #718074; font-size: 11px; line-height: 1.55; }
.speaking-tts-panel .field { display: grid; gap: 7px; min-width: 0; }
.speaking-tts-panel .field > span { color: #526856; font-size: 11px; font-weight: 850; }
.speaking-tts-panel .input { min-width: 0; box-sizing: border-box; border-color: #d8e4ce; background: #fff; }
.speaking-tts-generate { min-height: 42px; padding: 0 15px; border: 0; border-radius: 999px; background: #2a7c58; color: #fff; font: 900 11px inherit; white-space: nowrap; cursor: pointer; }
.speaking-tts-generate:hover { background: #216b47; }
.speaking-tts-generate:disabled { opacity: .66; cursor: wait; }
.speaking-tts-generate i { margin-left: 7px; font-style: normal; }
.speaking-tts-panel > p { grid-column: 1 / -1; margin: -5px 0 0; }
.speaking-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 25px; }
.speaking-media-panel { min-width: 0; padding: 18px; border: 1px dashed #b9d0be; border-radius: 14px; background: #f8fbf8; }
.speaking-media-panel > div:first-child { display: grid; gap: 3px; }
.speaking-media-panel b { color: #244e39; font-size: 13px; }
.speaking-media-panel > div:first-child span { color: #78887e; font-size: 10px; }
.speaking-upload { width: max-content; display: block; margin: 15px 0; padding: 8px 11px; border-radius: 999px; background: #e6f3e7; color: #2a7c58; font-size: 11px; font-weight: 900; cursor: pointer; }
.speaking-upload input { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0 0 0 0); }
.speaking-image-preview, .speaking-audio-preview { min-height: 116px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #eef3ee; }
.speaking-image-preview.empty, .speaking-audio-preview.empty { color: #89968d; font-size: 11px; }
.speaking-image-preview img { width: 100%; height: 178px; object-fit: cover; }
.speaking-audio-preview audio { width: min(100%, 330px); }
.speaking-text-import-note { min-height: 116px; display: grid; place-items: center; padding: 0 14px; border-radius: 10px; background: #eef3ee; color: #708074; font-size: 11px; line-height: 1.65; text-align: center; }
.speaking-editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; margin-top: 28px; }
.speaking-editor-save-status { flex: 1; margin: 0 auto 0 0; color: #63806d; font-size: 11px; line-height: 1.45; }
.speaking-editor-cancel { min-height: 43px; padding: 0 17px; border: 1px solid #d4e1d6; border-radius: 999px; background: #fff; color: #55705e; font: 850 12px inherit; cursor: pointer; }
@media (max-width: 850px) { .speaking-workspace { grid-template-columns: 1fr; } .speaking-sidebar { min-height: auto; padding: 15px 16px; } .speaking-sidebar-brand { padding: 0; } .speaking-user { display: none; } .speaking-side-nav { grid-template-columns: repeat(4, 1fr); margin: 14px 0 0; } .speaking-side-nav button, .speaking-side-nav > span { justify-content: center; padding: 0 4px; } .speaking-side-nav button span { display: none; } .speaking-sidebar-bottom { display: flex; justify-content: space-between; margin-top: 14px; padding: 12px 0 0; } .speaking-work-main { padding: 34px 16px; } .speaking-library-grid, .speaking-tracking-grid, .speaking-admin-bank-grid { grid-template-columns: 1fr; } .speaking-question-row { grid-template-columns: 32px minmax(0,1fr); gap: 11px; } .speaking-question-row button { grid-column: 2; width: max-content; } }
@media (max-width: 800px) { .speaking-media-grid, .speaking-tts-panel, .listen-repeat-slot-grid { grid-template-columns: 1fr; } .speaking-tts-generate { width: 100%; } .speaking-tts-panel > p { grid-column: auto; margin: 0; } }
@media (max-width: 640px) { .speaking-admin-bank { padding: 20px; } .speaking-admin-bank header { grid-template-columns: 28px minmax(0, 1fr); } .speaking-admin-bank header > b { grid-column: 2; justify-self: start; } .speaking-admin-bank header h2 { font-size: 21px; overflow-wrap: anywhere; } .speaking-admin-page-head { display: grid; align-items: start; gap: 17px; padding-top: 28px; } .speaking-admin-page-head .speaking-text-back { position: static; margin: -28px 0 0; } .speaking-admin-page-head.editor-head { padding-top: 0; } .speaking-admin-page-head.editor-head .speaking-text-back { margin: 0 0 5px; } .speaking-admin-add { width: 100%; } .speaking-editor-grid { grid-template-columns: 1fr; } .speaking-editor .wide { grid-column: auto; } .speaking-editor { padding: 18px; } .listen-repeat-editor { padding: 15px; } .listen-repeat-editor > header { display: grid; align-items: start; } .speaking-editor-actions { align-items: stretch; flex-direction: column-reverse; } .speaking-editor-actions button { width: 100%; } .speaking-editor-save-status { text-align: center; } .speaking-admin-bank-question { align-items: start; flex-direction: column; } .speaking-admin-question-item { grid-template-columns: 30px minmax(0,1fr); gap: 10px; } .speaking-admin-question-item p { grid-column: 2; } }

/* Writing homepage — soft, spacious composition aligned with the logo mascot */
.writing-route .landing-hero {
  min-height: 100svh !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(88, 189, 114, 0.12), transparent 28%),
    radial-gradient(circle at 76% 78%, rgba(255, 217, 90, 0.14), transparent 25%),
    var(--writing-cream) !important;
}

.writing-route .public-header {
  width: min(1180px, calc(100% - 64px)) !important;
  min-height: 92px !important;
  padding: 16px 0 !important;
  border: 0 !important;
}

.writing-route .public-header .brand {
  gap: 13px;
}

.writing-route .public-login {
  min-height: 44px;
  padding: 0 19px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--writing-yellow-soft);
  box-shadow: none !important;
  color: var(--writing-ink);
}

.writing-route .hero-inner {
  width: min(1180px, calc(100% - 64px)) !important;
  min-height: calc(100svh - 138px) !important;
  grid-template-columns: minmax(460px, 1.04fr) minmax(400px, 0.96fr) !important;
  gap: clamp(54px, 7vw, 104px) !important;
  align-items: center !important;
  padding: 42px 0 72px !important;
}

.writing-route .hero-copy {
  max-width: 620px !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.writing-route .hero-stats {
  order: -1 !important;
  gap: 9px;
  margin: 0 0 25px !important;
}

.writing-route .hero-stats span {
  min-height: 32px;
  padding: 0 13px;
  border: 0 !important;
  border-radius: 999px !important;
  background: #eef7e9 !important;
  color: var(--writing-green-dark) !important;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.writing-route .landing-title {
  max-width: 620px !important;
  gap: 11px !important;
  color: var(--writing-ink) !important;
  font-size: clamp(50px, 5vw, 70px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.055em !important;
}

.writing-route .landing-title span:last-child {
  color: var(--writing-green-dark) !important;
  -webkit-text-stroke: 0 !important;
}

.writing-route .hero-actions {
  gap: 13px !important;
  margin-top: 38px !important;
}

.writing-route .hero-btn {
  min-width: 170px;
  min-height: 52px;
  padding: 0 23px;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.writing-route .hero-btn:not(.primary) {
  background: #eef3e9;
  color: var(--writing-ink);
}

.writing-route .hero-btn:not(.primary):hover,
.writing-route .public-login:hover {
  background: var(--writing-yellow-soft);
  color: var(--writing-ink);
}

.writing-route .hero-visual {
  order: 2;
  width: min(540px, 100%) !important;
  min-height: 0 !important;
  justify-self: end !important;
  padding: 0 !important;
  border: 0 !important;
  background: radial-gradient(ellipse at 54% 88%, rgba(42, 124, 88, 0.14) 0 24%, transparent 55%);
  box-shadow: none !important;
}

.writing-route .hero-visual::before,
.writing-route .hero-visual::after {
  content: none !important;
}

.writing-route .hero-visual picture {
  width: 100% !important;
}

.writing-route .hero-visual img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.writing-route .writing-home-link {
  min-height: 38px;
  margin-bottom: 20px;
  border: 0;
  background: rgba(238, 247, 233, 0.72);
}

@media (max-width: 980px) {
  .writing-route .public-header,
  .writing-route .hero-inner {
    width: min(720px, calc(100% - 48px)) !important;
  }

  .writing-route .hero-inner {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    padding: 54px 0 72px !important;
  }

  .writing-route .hero-copy {
    order: 1;
    margin: 0 auto !important;
    text-align: center;
  }

  .writing-route .hero-stats,
  .writing-route .hero-actions {
    justify-content: center;
  }

  .writing-route .hero-visual {
    order: 2;
    width: min(520px, 100%) !important;
    justify-self: center !important;
  }
}

@media (max-width: 640px) {
  .writing-route .public-header,
  .writing-route .hero-inner {
    width: min(100% - 32px, 720px) !important;
  }

  .writing-route .public-header {
    min-height: 76px !important;
    padding: 10px 0 !important;
  }

  .writing-route .hero-inner {
    gap: 36px !important;
    padding: 46px 0 58px !important;
  }

  .writing-route .hero-stats {
    margin-bottom: 20px !important;
  }

  .writing-route .landing-title {
    gap: 7px !important;
    font-size: clamp(38px, 11vw, 48px) !important;
    line-height: 1.07 !important;
  }

  .writing-route .hero-actions {
    gap: 11px !important;
    margin-top: 30px !important;
  }

  .writing-route .hero-btn {
    width: 100%;
  }

  .writing-route .hero-visual {
    width: min(430px, 100%) !important;
  }
}

/* Final writing hero override for the die-cut illustration */
.writing-route .hero-visual img {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

/* Simplified product-first AguacateLab home */
.lab-home-simple {
  --simple-cream: #fffdf5;
  --simple-ink: #18352b;
  --simple-green: #58bd72;
  --simple-green-dark: #2a7c58;
  --simple-yellow: #ffd95a;
  --simple-coral: #ff8d77;
  --simple-blue: #8dd8e8;
  background: var(--simple-cream);
  color: var(--simple-ink);
  font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.simple-header {
  width: min(1120px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(24, 53, 43, .12);
}
.simple-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--simple-ink) !important; font-size: 21px; font-weight: 900; letter-spacing: -.055em; text-decoration: none; }
.simple-brand .avocado-logo { width: 34px; height: 42px; }
.simple-brand > span > span { color: var(--simple-green-dark); }
.simple-nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 52px); margin-left: auto; font-size: 13px; font-weight: 800; }
.simple-nav a { color: var(--simple-ink); text-decoration: none; }
.simple-nav a:hover { color: var(--simple-green-dark); }
.simple-login { min-height: 38px; display: inline-flex; align-items: center; gap: 9px; padding: 0 15px; border: 1.5px solid var(--simple-ink); border-radius: 999px; color: var(--simple-ink); font-size: 12px; font-weight: 900; text-decoration: none; }
.simple-login:hover { background: var(--simple-ink); color: white; }

.simple-hero { width: min(1120px, calc(100% - 48px)); min-height: 590px; margin: 0 auto; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(30px, 7vw, 92px); padding: 48px 0 72px; }
.simple-hero-copy { position: relative; z-index: 2; }
.simple-eyebrow { margin: 0 0 22px; color: var(--simple-green-dark); font-size: 11px; font-weight: 950; letter-spacing: .14em; }
.simple-eyebrow span { margin-right: 8px; color: var(--simple-coral); }
.simple-hero h1 { margin: 0; color: var(--simple-ink); font: 700 clamp(50px, 6vw, 78px)/1.02 "Avenir Next", "PingFang SC", sans-serif; letter-spacing: -.075em; }
.simple-hero h1 em, .simple-product-card h3 em, .speaking-coming-soon h1 em { color: var(--simple-green-dark); font-style: normal; }
.simple-hero-copy > p:not(.simple-eyebrow) { max-width: 390px; margin: 26px 0 0; color: #66766b; font-size: 16px; line-height: 1.8; }
.simple-start { min-height: 48px; display: inline-flex; align-items: center; gap: 24px; margin-top: 29px; padding: 0 20px; border-radius: 999px; background: var(--simple-green); box-shadow: 0 4px 0 var(--simple-green-dark); color: white !important; font-size: 13px; font-weight: 900; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.simple-start:hover { transform: translateY(3px); box-shadow: 0 1px 0 var(--simple-green-dark); }

.simple-hero-art { position: relative; min-height: 415px; }
.simple-sun { position: absolute; width: min(360px, 70vw); height: min(360px, 70vw); left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 42% 58% 55% 45%; background: var(--simple-yellow); rotate: -10deg; }
.simple-sun::after { content: ""; position: absolute; inset: 22px; border: 2px dashed rgba(24,53,43,.18); border-radius: inherit; }
.simple-mascot { position: absolute; z-index: 2; left: 50%; bottom: 12px; transform: translateX(-50%) rotate(3deg); width: 170px; padding: 20px 26px 0; border-radius: 52% 48% 30% 30%; background: var(--simple-green); box-shadow: 0 10px 0 var(--simple-green-dark); }
.simple-mascot img { width: 100%; height: 230px; display: block; object-fit: contain; object-position: bottom; filter: drop-shadow(0 9px 0 rgba(42,124,88,.18)); }
.simple-sparkle { position: absolute; z-index: 3; color: var(--simple-coral); font-size: 31px; }
.sparkle-one { top: 38px; left: 17%; rotate: 16deg; }
.sparkle-two { right: 10%; bottom: 74px; color: var(--simple-green-dark); font-size: 22px; }
.simple-chat { position: absolute; z-index: 4; padding: 13px 17px; border: 2px solid var(--simple-ink); border-radius: 17px 17px 17px 5px; background: white; color: var(--simple-ink); font-size: 13px; font-weight: 900; box-shadow: 4px 4px 0 var(--simple-ink); }
.chat-one { top: 72px; left: 8%; rotate: -7deg; }
.chat-two { right: 1%; top: 161px; rotate: 7deg; }
.chat-two span { margin-left: 6px; color: var(--simple-coral); }
.simple-word-card { position: absolute; z-index: 4; right: 2%; bottom: 28px; display: grid; gap: 3px; min-width: 145px; padding: 15px 17px; border-radius: 13px; background: white; box-shadow: 5px 5px 0 rgba(24,53,43,.16); rotate: -5deg; }
.simple-word-card small { color: var(--simple-coral); font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.simple-word-card strong { font-size: 21px; }
.simple-word-card span { color: #7c8b80; font: 11px Georgia, serif; }

.simple-products { padding: 86px max(24px, calc((100vw - 1120px) / 2)) 100px; background: #f2f9ed; }
.simple-section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.simple-section-title p { margin: 0; color: var(--simple-green-dark); font-size: 10px; font-weight: 950; letter-spacing: .15em; }
.simple-section-title h2 { margin: 0; color: var(--simple-ink); font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -.055em; }
.simple-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.simple-product-card { position: relative; min-height: 370px; overflow: hidden; display: block; padding: 25px 28px; border-radius: 25px; color: var(--simple-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.simple-product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 0 rgba(24,53,43,.13); }
.writing-card { background: var(--simple-green); }
.speaking-card { background: var(--simple-yellow); }
.product-card-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 950; }
.product-number { font: italic 18px Georgia, serif; }
.product-status { padding: 7px 9px; border-radius: 999px; background: rgba(255,255,255,.72); font-size: 9px; letter-spacing: .1em; }
.product-card-copy { position: relative; z-index: 2; margin-top: 34px; }
.product-card-copy h3 { margin: 0; font-size: clamp(34px, 4vw, 49px); line-height: .95; letter-spacing: -.075em; }
.product-card-copy h3 em { color: white; }
.speaking-card .product-card-copy h3 em { color: var(--simple-green-dark); }
.product-card-copy p { margin: 18px 0; font-size: 14px; font-weight: 700; line-height: 1.65; }
.product-arrow { display: inline-flex; align-items: center; gap: 20px; padding-bottom: 5px; border-bottom: 1.5px solid currentColor; font-size: 12px; font-weight: 950; }
.product-arrow b { font-size: 18px; }
.writing-mockup, .speaking-mockup { position: absolute; right: -3px; bottom: -24px; width: 230px; height: 145px; padding: 17px 18px; border: 3px solid var(--simple-ink); border-radius: 20px 0 0 0; background: #fffdf5; rotate: -7deg; box-shadow: 7px 7px 0 rgba(24,53,43,.22); }
.mockup-bar { display: flex; gap: 5px; margin-bottom: 17px; }
.mockup-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--simple-coral); }
.mockup-bar i:nth-child(2) { background: var(--simple-yellow); }
.mockup-bar i:nth-child(3) { background: var(--simple-green); }
.mockup-lines { display: grid; gap: 8px; }
.mockup-lines span { width: 89%; height: 7px; display: block; border-radius: 9px; background: #d7ead8; }
.mockup-lines span:nth-child(2) { width: 72%; background: #a8dce5; }
.mockup-lines span:nth-child(3) { width: 82%; background: #ffcdc0; }
.mockup-lines .short { width: 43%; }
.writing-mockup b { position: absolute; right: 20px; bottom: 20px; color: var(--simple-green-dark); font: 700 30px Georgia, serif; }
.writing-mockup small { position: absolute; right: 20px; bottom: 11px; color: #78877c; font-size: 8px; }
.speaking-mockup { display: grid; align-content: center; justify-items: center; gap: 13px; rotate: 7deg; background: #fff5c7; }
.speaking-mockup span { font-size: 16px; font-weight: 950; }
.speaking-mockup b { color: var(--simple-coral); font-size: 11px; letter-spacing: 3px; }
.sound-wave { display: flex; align-items: center; gap: 4px; height: 35px; }
.sound-wave i { width: 5px; height: 14px; border-radius: 8px; background: var(--simple-green-dark); }
.sound-wave i:nth-child(2), .sound-wave i:nth-child(6) { height: 25px; }
.sound-wave i:nth-child(3), .sound-wave i:nth-child(5) { height: 34px; background: var(--simple-coral); }
.sound-wave i:nth-child(4) { height: 20px; }
.simple-proof { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 32px 24px; color: var(--simple-green-dark); }
.simple-proof p { margin: 0; font-size: 14px; font-weight: 850; }
.simple-proof span { color: var(--simple-coral); }
.simple-footer { width: min(1120px, calc(100% - 48px)); min-height: 86px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(24,53,43,.12); color: #6a7b70; font-size: 11px; }
.simple-footer .simple-brand { font-size: 16px; }
.simple-footer .simple-brand .avocado-logo { width: 24px; height: 30px; }

.speaking-coming-soon { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 0; padding: 30px; text-align: center; color: var(--simple-ink); background: var(--simple-cream); font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", sans-serif; }
.speaking-coming-soon > .simple-brand { position: absolute; top: 28px; left: 32px; }
.speaking-coming-art { position: relative; width: 260px; height: 230px; margin-bottom: 18px; }
.speaking-coming-art .simple-sun { width: 220px; height: 220px; }
.speaking-coming-art .simple-mascot { width: 120px; padding: 12px 18px 0; }
.speaking-coming-art .simple-mascot img { height: 165px; }
.speaking-coming-art .chat-one { top: 34px; left: 10px; }
.speaking-coming-soon h1 { margin: 0; font-size: clamp(52px, 8vw, 78px); line-height: .91; letter-spacing: -.08em; }
.speaking-coming-soon > p:not(.simple-eyebrow) { color: #6a7b70; }
.speaking-coming-soon .simple-start { margin-top: 16px; }

@media (max-width: 760px) {
  .simple-header { width: calc(100% - 32px); min-height: 70px; }
  .simple-nav { display: none; }
  .simple-login { margin-left: auto; }
  .simple-hero { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 10px; min-height: auto; padding: 58px 0 78px; }
  .simple-hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .simple-hero-art { min-height: 350px; margin-top: 12px; }
  .simple-sun { width: 290px; height: 290px; }
  .simple-mascot { width: 145px; }
  .simple-mascot img { height: 205px; }
  .simple-word-card { right: 0; bottom: 12px; }
  .simple-products { padding: 68px 16px 78px; }
  .simple-section-title { display: block; }
  .simple-section-title h2 { margin-top: 8px; }
  .simple-product-grid { grid-template-columns: 1fr; }
  .simple-product-card { min-height: 350px; }
  .simple-footer { width: calc(100% - 32px); flex-wrap: wrap; padding: 22px 0; }
  .simple-footer > span { order: 3; width: 100%; }
  .simple-footer > small { margin-left: auto; }
  .speaking-coming-soon > .simple-brand { top: 20px; left: 18px; }
}

/* Writing product skin: same friendly palette as the AguacateLab home */
.writing-route {
  --writing-cream: #fffdf5;
  --writing-ink: #18352b;
  --writing-green: #58bd72;
  --writing-green-dark: #2a7c58;
  --writing-yellow: #ffd95a;
  --writing-yellow-soft: #fff3bd;
  --writing-coral: #ff8d77;
  --writing-blue: #8dd8e8;
  --writing-line: #dbe8d5;
  background: var(--writing-cream);
  color: var(--writing-ink);
}

.writing-route .public-page,
.writing-route .public-step {
  background: var(--writing-cream);
}
.writing-route .public-step {
  background-image: radial-gradient(circle at 12% 14%, rgba(141, 216, 232, .26) 0 7%, transparent 7.2%), radial-gradient(circle at 92% 84%, rgba(255, 217, 90, .28) 0 10%, transparent 10.2%);
}
.writing-route .step-card,
.writing-route .login-card,
.writing-route .payment-card,
.writing-route .modal,
.writing-route .grading-dialog {
  border: 2px solid var(--writing-ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--writing-yellow);
}
.writing-route .center-brand > span,
.writing-route .brand-name {
  color: var(--writing-ink);
}
.writing-route .step-title,
.writing-route .page-title,
.writing-route .section-title {
  color: var(--writing-ink);
}
.writing-route .eyebrow {
  color: var(--writing-green-dark);
}
.writing-route .btn,
.writing-route .identity-tab,
.writing-route .account-pill,
.writing-route .link-button,
.writing-route .course-entry-back-button {
  border-radius: 999px;
}
.writing-route .btn.primary,
.writing-route .identity-tab.active,
.writing-route .email-retry-btn {
  border-color: var(--writing-green-dark);
  background: var(--writing-green);
  color: #fff;
  box-shadow: 0 3px 0 var(--writing-green-dark);
}
.writing-route .btn.primary:hover,
.writing-route .identity-tab.active:hover,
.writing-route .email-retry-btn:hover {
  border-color: var(--writing-green-dark);
  background: var(--writing-green-dark);
  color: #fff;
}
.writing-route .course-card,
.writing-route .plan-card {
  border: 2px solid var(--writing-ink);
  border-radius: 20px;
  background: #fffdf5;
  box-shadow: 0 5px 0 rgba(42, 124, 88, .18);
}
.writing-route .course-card:hover,
.writing-route .plan-card:hover,
.writing-route .plan-card.active {
  border-color: var(--writing-green-dark);
  box-shadow: 0 7px 0 var(--writing-yellow);
  transform: translateY(-3px);
}
.writing-route .course-icon {
  border: 0;
  border-radius: 999px;
  background: var(--writing-green);
  color: #fff;
}
.writing-route .input,
.writing-route .textarea,
.writing-route .select {
  border-color: var(--writing-line);
  border-radius: 14px;
  background: #fffdf5;
}
.writing-route .input:focus,
.writing-route .textarea:focus,
.writing-route .select:focus {
  border-color: var(--writing-green);
  outline-color: rgba(88, 189, 114, .35);
}
.writing-route .identity-tab,
.writing-route .account-pill {
  border-color: var(--writing-line);
  background: #fffdf5;
}
.writing-route .identity-tab:hover,
.writing-route .account-pill:hover,
.writing-route .option:hover {
  border-color: var(--writing-green);
  background: #eef9e9;
}

.writing-route .sidebar {
  background: var(--writing-green-dark);
  border-color: var(--writing-yellow);
}
.writing-route .side-brand {
  border-bottom-color: rgba(255, 217, 90, .35);
}
.writing-route .nav-button.active,
.writing-route .nav-button:hover {
  border-color: var(--writing-yellow);
  background: var(--writing-yellow);
  color: var(--writing-ink);
}
.writing-route .nav-symbol {
  border-radius: 999px;
}
.writing-route .main {
  background: radial-gradient(circle at 98% 2%, rgba(141, 216, 232, .2), transparent 22%), var(--writing-cream);
}
.writing-route .stat,
.writing-route .card,
.writing-route .assignment-row,
.writing-route .question,
.writing-route .table-wrap,
.writing-route .empty {
  border-color: var(--writing-line);
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(42, 124, 88, .08);
}
.writing-route .stat {
  border-top-color: var(--writing-yellow);
}
.writing-route .stat-value,
.writing-route .score,
.writing-route .ielts-band-score,
.writing-route .ielts-criterion-head span {
  color: var(--writing-green-dark);
}
.writing-route .tag,
.writing-route .tag.done,
.writing-route .tag.pending,
.writing-route .tag.review {
  border-color: var(--writing-line);
  border-radius: 999px;
  background: var(--writing-yellow-soft);
  color: var(--writing-green-dark);
}
.writing-route .progress,
.writing-route .grading-progress-track,
.writing-route .ielts-band-bar {
  background: #e4efe0;
}
.writing-route .progress span,
.writing-route .grading-progress-track span,
.writing-route .ielts-band-bar span,
.writing-route .learning-trend-bars > div > span {
  background: var(--writing-green);
}
.writing-route th {
  background: var(--writing-green-dark);
}
.writing-route tr:hover td {
  background: #eef9e9;
}
.writing-route .sentence-chip {
  border-color: var(--writing-green-dark);
  border-radius: 999px;
  background: var(--writing-green);
  color: #fff;
  box-shadow: 0 3px 0 var(--writing-green-dark);
}
.writing-route .sentence-chip:hover {
  border-color: var(--writing-green-dark);
  background: var(--writing-green-dark);
}
.writing-route .sentence-slot.filled,
.writing-route .sentence-response-fill {
  border-color: var(--writing-green);
  color: var(--writing-green-dark);
  background: #f2faef;
}
.writing-route .writing-workspace,
.writing-route .email-writing-workspace,
.writing-route .discussion-writing-workspace {
  border: 2px solid var(--writing-ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--writing-yellow);
}
.writing-route .writing-prompt-panel,
.writing-route .email-prompt-panel,
.writing-route .discussion-prompt-panel {
  background: var(--writing-green-dark);
}
.writing-route .writing-editor-panel,
.writing-route .email-editor-panel,
.writing-route .discussion-response-panel {
  background: #fffdf5;
}
.writing-route .writing-submit .btn,
.writing-route .writing-submit button {
  border-radius: 999px;
}
.writing-route .modal-backdrop,
.writing-route .grading-overlay {
  background: rgba(24, 53, 43, .68);
}
.writing-route .toast {
  border: 0;
  border-radius: 999px;
  background: var(--writing-green-dark);
  box-shadow: 0 5px 0 var(--writing-yellow);
}

.writing-home-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  margin: 0 auto 24px;
  padding: 0 18px;
  border: 1.5px solid var(--writing-ink, #18352b);
  border-radius: 999px;
  color: var(--writing-ink, #18352b);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.writing-home-link:hover {
  background: var(--writing-green-dark, #2a7c58);
  color: #fff;
  transform: translateY(-2px);
}

.writing-route .hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.writing-route .hero-visual::before,
.writing-route .hero-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.writing-route .hero-visual::before {
  width: 390px;
  height: 390px;
  border: 2px solid rgba(255, 217, 90, .9);
  box-shadow: 0 0 0 18px rgba(255, 217, 90, .14), 0 0 0 42px rgba(141, 216, 232, .12);
}
.writing-route .hero-visual::after {
  width: 26px;
  height: 26px;
  right: 10%;
  top: 12%;
  background: var(--writing-coral, #ff8d77);
  box-shadow: -320px 260px 0 -8px var(--writing-green, #58bd72), 250px 300px 0 -10px var(--writing-yellow, #ffd95a);
}
.writing-route .hero-visual picture {
  position: relative;
  z-index: 1;
  display: block;
  width: min(560px, 100%);
}
.writing-route .hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

@media (max-width: 640px) {
  .writing-route .hero-visual {
    min-height: 355px;
  }
  .writing-route .hero-visual::before {
    width: 270px;
    height: 270px;
  }
  .writing-route .hero-visual::after {
    right: 7%;
    top: 8%;
  }
  .writing-route .hero-visual picture {
    width: min(390px, 100%);
  }
}

@media (max-width: 640px) {
  .writing-route .step-card,
  .writing-route .login-card,
  .writing-route .payment-card,
  .writing-route .modal,
  .writing-route .grading-dialog {
    border-radius: 20px;
    box-shadow: 5px 5px 0 var(--writing-yellow);
  }
}

/* AguacateLab brand home */
.lab-home {
  --lab-cream: #f7f1e5;
  --lab-paper: #fffaf0;
  --lab-green: #274326;
  --lab-green-dark: #192f1c;
  --lab-lime: #c9e265;
  --lab-gold: #dfa845;
  --lab-ink: #1e271f;
  min-height: 100vh;
  overflow: hidden;
  color: var(--lab-ink);
  background: var(--lab-cream);
  font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lab-home a { color: inherit; text-decoration: none; }
.lab-header {
  width: min(1240px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(39, 67, 38, 0.2);
}
.lab-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 22px; font-weight: 850; letter-spacing: -0.04em; }
.lab-brand > .avocado-logo { width: 34px; height: 42px; }
.lab-brand > span > span { color: #a36d18; }
.lab-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); font-size: 14px; font-weight: 700; }
.lab-nav a { position: relative; }
.lab-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--lab-green); transition: right .2s ease; }
.lab-nav a:hover::after { right: 0; }
.lab-header-cta { justify-self: end; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--lab-green); font-size: 13px; font-weight: 800; transition: .2s ease; }
.lab-header-cta:hover { background: var(--lab-green); color: white; }

.lab-hero { width: min(1240px, calc(100% - 64px)); min-height: 690px; margin: 0 auto; display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(44px, 7vw, 96px); align-items: center; padding: 66px 0 82px; }
.lab-hero-copy { position: relative; z-index: 2; }
.lab-kicker { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; color: #8b671f; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.lab-kicker span { width: 28px; height: 2px; display: inline-block; background: var(--lab-gold); }
.lab-hero h1 { margin: 0; color: var(--lab-green-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(62px, 7.2vw, 104px); font-weight: 500; line-height: .92; letter-spacing: -.065em; }
.lab-hero h1 em, .lab-products h3 em, .lab-closing h2 em { color: #a66f18; font-weight: 500; }
.lab-lead { max-width: 570px; margin: 30px 0 0; color: #655f54; font-size: 17px; line-height: 1.9; }
.lab-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.lab-cta-primary { min-height: 56px; display: inline-flex; align-items: center; gap: 30px; padding: 0 25px; background: var(--lab-green); color: white !important; font-weight: 800; box-shadow: 7px 7px 0 var(--lab-gold); transition: transform .2s ease, box-shadow .2s ease; }
.lab-cta-primary:hover { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--lab-gold); }
.lab-cta-secondary { padding: 12px 0 8px; border-bottom: 1px solid; font-size: 14px; font-weight: 800; }
.lab-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(39, 67, 38, .18); }
.lab-trust-row div { display: grid; gap: 4px; }
.lab-trust-row strong { color: #a66f18; font: italic 18px Georgia, serif; }
.lab-trust-row span { color: #6d675c; font-size: 11px; font-weight: 700; }
.lab-hero-art { position: relative; padding: 0 24px 28px 0; }
.lab-image-frame { position: relative; overflow: hidden; background: var(--lab-green); box-shadow: 24px 24px 0 var(--lab-green); }
.lab-image-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); pointer-events: none; }
.lab-image-frame img { width: 100%; height: auto; aspect-ratio: 1 / .94; display: block; object-fit: cover; filter: saturate(.83) contrast(.96); }
.lab-image-tag { position: absolute; top: 18px; right: 18px; padding: 9px 12px; background: rgba(255,250,240,.9); backdrop-filter: blur(8px); color: var(--lab-green); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.lab-float-card { position: absolute; z-index: 3; background: var(--lab-paper); border: 1px solid rgba(39,67,38,.18); box-shadow: 8px 8px 0 rgba(223,168,69,.86); }
.lab-float-top { top: 22%; left: -48px; width: 225px; display: flex; align-items: center; gap: 12px; padding: 15px; }
.lab-float-top > span { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--lab-green); color: var(--lab-lime); }
.lab-float-top div { display: grid; gap: 3px; }
.lab-float-card b { font-size: 13px; }
.lab-float-card small { color: #777064; font-size: 10px; line-height: 1.4; }
.lab-float-bottom { right: -20px; bottom: 0; width: 190px; display: grid; gap: 7px; padding: 15px; }
.lab-mini-progress { height: 6px; background: #e5ddcf; }
.lab-mini-progress i { width: 72%; height: 100%; display: block; background: var(--lab-gold); }

.lab-marquee { overflow: hidden; padding: 15px 0; background: var(--lab-green); color: #f7f1e5; transform: rotate(-1deg) scale(1.02); }
.lab-marquee div { width: max-content; font-size: 12px; font-weight: 900; letter-spacing: .17em; word-spacing: 22px; animation: lab-scroll 24s linear infinite; }
.lab-marquee span { color: var(--lab-lime); }
@keyframes lab-scroll { to { transform: translateX(-35%); } }

.lab-products { width: min(1160px, calc(100% - 64px)); margin: 0 auto; padding: 132px 0; }
.lab-section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.lab-section-heading h2, .lab-method h2, .lab-closing h2 { margin: 0; color: var(--lab-green-dark); font: 500 clamp(42px, 5.4vw, 72px)/1.02 Georgia, serif; letter-spacing: -.045em; }
.lab-section-heading > p { margin: 0 0 8px; color: #6b655a; font-size: 16px; line-height: 1.85; }
.lab-feature-product { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 540px; background: var(--lab-green); color: white; }
.lab-product-copy { position: relative; padding: clamp(40px, 5vw, 70px); }
.lab-live-label { position: absolute; top: 0; right: 0; padding: 10px 14px; background: var(--lab-lime); color: var(--lab-green-dark); font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.lab-product-index { margin: 0 0 34px; color: #d8b66b; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.lab-product-copy h3 { margin: 0; font: 500 clamp(48px, 5vw, 70px)/.92 Georgia, serif; letter-spacing: -.05em; }
.lab-product-copy h3 em { color: var(--lab-lime); }
.lab-product-copy > p:not(.lab-product-index) { margin: 28px 0; color: rgba(255,255,255,.72); line-height: 1.8; }
.lab-product-copy ul { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; color: rgba(255,255,255,.87); font-size: 13px; }
.lab-product-copy li span { margin-right: 9px; color: var(--lab-lime); }
.lab-product-copy > a { display: inline-flex; gap: 22px; margin-top: 34px; padding-bottom: 7px; border-bottom: 1px solid var(--lab-lime); color: var(--lab-lime); font-size: 13px; font-weight: 850; }
.lab-product-visual { position: relative; min-height: 420px; overflow: hidden; }
.lab-product-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.lab-score-card { position: absolute; left: 24px; bottom: 24px; min-width: 150px; display: grid; padding: 18px; background: rgba(255,250,240,.92); color: var(--lab-green); backdrop-filter: blur(8px); }
.lab-score-card strong { font: 500 38px Georgia, serif; }
.lab-score-card span { font-size: 11px; font-weight: 900; }
.lab-score-card small { margin-top: 7px; color: #a66f18; }
.lab-upcoming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.lab-upcoming-grid article { min-height: 180px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; padding: 34px; border: 1px solid rgba(39,67,38,.22); background: rgba(255,250,240,.55); }
.lab-upcoming-grid article > span { color: #a66f18; font: italic 20px Georgia, serif; }
.lab-upcoming-grid small { color: #8a6926; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.lab-upcoming-grid h3 { margin: 9px 0; font: 500 27px Georgia, serif; }
.lab-upcoming-grid p { margin: 0; color: #716b60; font-size: 13px; line-height: 1.65; }
.lab-upcoming-grid article > b { font-size: 20px; }

.lab-method { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; padding: 120px max(32px, calc((100vw - 1160px) / 2)); background: var(--lab-green-dark); color: white; }
.lab-kicker-light { color: var(--lab-lime); }
.lab-method h2 { color: white; }
.lab-method-intro > p:last-child { max-width: 500px; margin: 30px 0 0; color: rgba(255,255,255,.62); line-height: 1.85; }
.lab-method-list { border-top: 1px solid rgba(255,255,255,.22); }
.lab-method-list article { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.lab-method-list article > b { color: var(--lab-lime); font: italic 19px Georgia, serif; }
.lab-method-list h3 { margin: 0 0 7px; color: var(--lab-lime); font: 500 25px Georgia, serif; }
.lab-method-list p { margin: 0; color: rgba(255,255,255,.62); font-size: 13px; }

.lab-closing { padding: 130px 32px; text-align: center; background: var(--lab-paper); }
.lab-closing > img { width: 54px; height: auto; }
.lab-closing > p { margin: 22px 0 18px; color: #98701e; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.lab-closing h2 { font-size: clamp(50px, 7vw, 88px); }
.lab-closing a { min-height: 56px; display: inline-flex; align-items: center; gap: 28px; margin-top: 38px; padding: 0 25px; background: var(--lab-green); color: white; font-weight: 800; box-shadow: 7px 7px 0 var(--lab-gold); }
.lab-footer { min-height: 170px; display: grid; grid-template-columns: 1.2fr 1fr auto auto; gap: 40px; align-items: center; padding: 40px max(32px, calc((100vw - 1240px) / 2)); background: var(--lab-green); color: white; }
.lab-brand-footer > span > span { color: var(--lab-lime); }
.lab-footer > p { margin: 0; color: rgba(255,255,255,.6); font-size: 12px; }
.lab-footer > div { display: flex; gap: 24px; font-size: 12px; font-weight: 800; }
.lab-footer > small { color: rgba(255,255,255,.42); white-space: nowrap; }

@media (max-width: 900px) {
  .lab-header { grid-template-columns: 1fr auto; }
  .lab-nav { display: none; }
  .lab-hero { grid-template-columns: 1fr; padding-top: 54px; }
  .lab-hero-copy { max-width: 720px; }
  .lab-hero-art { width: min(700px, 92%); margin: 0 auto; }
  .lab-section-heading, .lab-feature-product, .lab-method { grid-template-columns: 1fr; }
  .lab-feature-product { min-height: auto; }
  .lab-product-visual { min-height: 420px; }
  .lab-method { gap: 64px; }
  .lab-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .lab-header, .lab-hero, .lab-products { width: min(100% - 36px, 1240px); }
  .lab-header { min-height: 76px; }
  .lab-brand { font-size: 19px; }
  .lab-brand > .avocado-logo { width: 27px; height: 34px; }
  .lab-header-cta { padding: 10px 12px; font-size: 11px; }
  .lab-header-cta span { display: none; }
  .lab-hero { min-height: auto; gap: 62px; padding: 56px 0 74px; }
  .lab-hero h1 { font-size: clamp(56px, 18vw, 78px); }
  .lab-lead { font-size: 15px; }
  .lab-trust-row { grid-template-columns: 1fr; }
  .lab-trust-row div { grid-template-columns: 34px 1fr; align-items: center; }
  .lab-hero-art { width: calc(100% - 20px); padding-right: 10px; }
  .lab-image-frame { box-shadow: 12px 12px 0 var(--lab-green); }
  .lab-float-top { left: -10px; top: auto; bottom: 62px; transform: scale(.85); transform-origin: left bottom; }
  .lab-float-bottom { right: -8px; bottom: -34px; transform: scale(.82); transform-origin: right bottom; }
  .lab-products { padding: 104px 0; }
  .lab-section-heading { gap: 26px; margin-bottom: 42px; }
  .lab-section-heading h2, .lab-method h2 { font-size: 43px; }
  .lab-product-copy { padding: 38px 28px 45px; }
  .lab-product-visual { min-height: 270px; }
  .lab-upcoming-grid { grid-template-columns: 1fr; }
  .lab-upcoming-grid article { padding: 26px; }
  .lab-method { padding: 94px 24px; }
  .lab-closing { padding: 100px 22px; }
  .lab-footer { grid-template-columns: 1fr; gap: 24px; text-align: left; }
}

/* Homepage composition: balanced type, whitespace, and artwork */
.landing-hero {
  min-height: 100svh !important;
  background:
    radial-gradient(circle at 91% 12%, rgba(214, 168, 75, 0.18), transparent 24%),
    linear-gradient(105deg, #fffaf0 0 58%, #314a2d 58% 100%) !important;
}

.public-header {
  width: min(1200px, calc(100% - 64px)) !important;
  min-height: 88px !important;
  padding: 10px 0 !important;
}

.hero-inner {
  width: min(1200px, calc(100% - 64px)) !important;
  min-height: calc(100svh - 88px) !important;
  margin: 0 auto !important;
  grid-template-columns: minmax(480px, 1.05fr) minmax(420px, 0.95fr) !important;
  gap: clamp(54px, 6vw, 92px) !important;
  align-items: center !important;
  padding: 46px 0 74px !important;
}

.hero-copy {
  max-width: 610px !important;
  gap: 0 !important;
  align-content: center !important;
  padding-left: 28px !important;
  border-left: 4px solid var(--accent) !important;
}

.hero-stats {
  order: -1 !important;
  margin-bottom: 24px !important;
}

.hero-stats span {
  min-height: 34px;
  padding: 0 13px;
  background: rgba(255, 250, 240, 0.78);
  font-size: 12px;
}

.landing-title {
  max-width: 600px !important;
  gap: 10px !important;
  font-size: clamp(50px, 5vw, 68px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.05em !important;
}

.hero-actions {
  margin-top: 36px !important;
  gap: 12px !important;
}

.hero-btn {
  min-width: 168px;
  min-height: 56px;
  padding: 0 22px;
}

.hero-visual {
  width: 100% !important;
  max-width: 554px !important;
  justify-self: end !important;
}

.hero-visual picture {
  display: block;
}

.hero-visual img {
  aspect-ratio: 1 / 0.94 !important;
  object-position: center !important;
  box-shadow: 13px 13px 0 var(--accent), 0 28px 70px rgba(32, 50, 31, 0.24) !important;
}

@media (max-width: 980px) {
  .landing-hero {
    background:
      radial-gradient(circle at 86% 5%, rgba(214, 168, 75, 0.18), transparent 22%),
      linear-gradient(180deg, #fffaf0 0 70%, #314a2d 70% 100%) !important;
  }

  .public-header,
  .hero-inner {
    width: min(720px, calc(100% - 48px)) !important;
  }

  .hero-inner {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    padding: 48px 0 76px !important;
  }

  .hero-copy {
    max-width: 680px !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    border-left: 0 !important;
  }

  .hero-stats {
    justify-content: center;
    margin-bottom: 20px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-visual {
    width: min(600px, 100%) !important;
    justify-self: center !important;
  }
}

@media (max-width: 640px) {
  .public-header,
  .hero-inner {
    width: min(100% - 28px, 720px) !important;
  }

  .public-header {
    min-height: 74px !important;
    padding: 8px 0 !important;
  }

  .hero-inner {
    gap: 34px !important;
    padding: 38px 0 54px !important;
  }

  .hero-stats {
    margin-bottom: 18px;
  }

  .landing-title {
    gap: 7px !important;
    font-size: clamp(38px, 11vw, 48px) !important;
    line-height: 1.04 !important;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-visual img {
    aspect-ratio: 1 / 0.96 !important;
    box-shadow: 8px 8px 0 var(--accent), 0 18px 42px rgba(32, 50, 31, 0.2) !important;
  }
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

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

.assignment-question-groups {
  display: grid;
  gap: 12px;
}

.assignment-question-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfb;
}

.assignment-question-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  color: #244b35;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.assignment-question-group summary::-webkit-details-marker {
  display: none;
}

.assignment-question-group summary::after {
  content: "+";
  order: 3;
  font-size: 22px;
  line-height: 1;
}

.assignment-question-group[open] summary::after {
  content: "−";
}

.assignment-question-group summary b {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.assignment-question-options {
  max-height: 360px;
  overflow: auto;
  padding: 0 12px 12px;
}

.assignment-target-option {
  align-items: flex-start;
  border: 1px solid #dce8df;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbf9;
}

.assignment-target-option span,
.option span {
  min-width: 0;
}

.assignment-target-option strong,
.assignment-target-option small,
.option span > strong,
.option span > small {
  display: block;
}

.assignment-target-option small,
.option span > small,
.table-secondary {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.learning-prediction-grid {
  margin-bottom: 22px;
}

.prediction-card {
  display: grid;
  gap: 7px;
  min-height: 142px;
  align-content: center;
  background: linear-gradient(145deg, #f2faf5, #f6f4ff);
}

.prediction-card span {
  color: #52705f;
  font-weight: 750;
}

.prediction-card strong {
  color: #183f2d;
  font-size: 32px;
}

.prediction-card small {
  color: var(--muted);
}

.learning-tracking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 18px;
}

.learning-advice-card ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 24px;
}

.learning-advice-card li {
  padding-left: 5px;
}

.learning-advice-card li::marker {
  color: var(--accent);
  font-weight: 800;
}

.learning-advice-card li p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.learning-trend-bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 210px;
  padding: 20px 8px 0;
  border-bottom: 1px solid var(--line);
}

.learning-trend-bars > div {
  position: relative;
  display: flex;
  flex: 1;
  height: 100%;
  min-width: 38px;
  align-items: end;
  justify-content: center;
}

.learning-trend-bars > div > span {
  width: min(46px, 72%);
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, #46b477, #238859);
}

.learning-trend-bars small {
  position: absolute;
  bottom: -23px;
  color: var(--muted);
  white-space: nowrap;
}

.learning-trend-bars b {
  position: absolute;
  top: -4px;
  color: #315e46;
  font-size: 12px;
}

.learning-progress-card {
  padding-bottom: 42px;
}

.modal-user-stats {
  margin-bottom: 18px;
}

.learning-record-table .question-cell {
  max-width: 360px;
}

@media (max-width: 820px) {
  .assignment-target-grid,
  .learning-tracking-layout {
    grid-template-columns: 1fr;
  }
}

[data-toefl-template-fields][hidden] {
  display: none;
}

.admin-question-textarea {
  min-height: 150px;
}

.toefl-file-groups {
  display: grid;
  gap: 18px;
}

.toefl-file-group {
  display: grid;
  gap: 12px;
}

.toefl-filter-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.toefl-filter-control .select {
  min-width: 210px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn.danger {
  color: #9f1d1d;
  border-color: #f1c6c6;
  background: #fff8f8;
}

.btn.danger:hover {
  background: #ffecec;
  border-color: #e8a8a8;
}

.library-management-group {
  border-color: #d6e6d4;
  background: linear-gradient(180deg, #fbfefb 0%, #ffffff 46%);
}

.assignment-management-group {
  border-color: #d3e4e5;
  background: linear-gradient(180deg, #fbfdfd 0%, #ffffff 46%);
}

.library-management-group .tag {
  background: #edf7ea;
  color: #356d35;
  border-color: #d4e9d0;
}

.assignment-management-group .tag {
  background: #edf7f7;
  color: #356d6f;
  border-color: #d1e6e8;
}

.compact-empty {
  min-height: 96px;
}

.toefl-file-form {
  align-items: start;
}

.toefl-build-slots {
  display: grid;
  gap: 16px;
}

.admin-question-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.admin-slot-title {
  margin: 0;
  font-size: 16px;
}

.avatar-upload-field {
  align-self: stretch;
}

.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-upload-preview {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.avatar-upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-upload-field {
  display: grid;
  gap: 10px;
}

.image-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.image-upload-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.image-upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-upload-preview-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 96px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.image-upload-preview-list img {
  width: 150px;
  height: 92px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.empty-preview-list {
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.image-upload-value[hidden] {
  display: none;
}

.empty {
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.5);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  min-width: 240px;
  max-width: 360px;
  border-radius: 8px;
  background: #101929;
  color: white;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.answer-summary {
  display: grid;
  gap: 12px;
}

.answer-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.answer-item p {
  margin: 6px 0;
  line-height: 1.7;
}

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

.ielts-result-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.ielts-band-card,
.ielts-result-summary,
.ielts-criterion-card,
.ielts-report-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(36, 69, 49, 0.06);
}

.ielts-band-card {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.ielts-band-score {
  font-size: 64px;
  line-height: 1;
  font-weight: 850;
  color: var(--primary);
}

.ielts-band-label {
  color: var(--muted);
  font-weight: 700;
}

.ielts-result-summary {
  padding: 20px;
}

.ielts-result-summary h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ielts-result-summary p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.ielts-result-metrics,
.ielts-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ielts-result-metrics span,
.ielts-mini-metrics span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 700;
}

.ielts-criteria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ielts-criterion-card {
  padding: 16px;
}

.ielts-criterion-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ielts-criterion-head span {
  color: var(--primary);
  font-size: 22px;
  font-weight: 850;
}

.ielts-band-bar {
  height: 8px;
  border-radius: 999px;
  background: #edf3ec;
  overflow: hidden;
  margin: 12px 0;
}

.ielts-band-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #78bd5a);
}

.ielts-criterion-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.ielts-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.ielts-result-main,
.ielts-result-side {
  display: grid;
  gap: 18px;
}

.ielts-report-section {
  padding: 18px;
}

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

.ielts-evaluation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel-soft);
}

.ielts-evaluation-card h4 {
  margin: 0 0 12px;
  font-size: 18px;
}

.ielts-evaluation-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  line-height: 1.6;
}

.ielts-evaluation-card.strength {
  border-color: #cfebc9;
  background: #fbfefb;
}

.ielts-evaluation-card.needs {
  border-color: #eadfca;
  background: #fffdf8;
}

.ielts-sentence-list {
  display: grid;
  gap: 10px;
}

.ielts-sentence-card {
  border: 1px solid var(--line);
  border-left: 4px solid #f0c64a;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.ielts-sentence-card.good {
  border-left-color: #5bbf76;
}

.ielts-sentence-card summary {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 14px;
  list-style: none;
}

.ielts-sentence-card summary::-webkit-details-marker {
  display: none;
}

.ielts-feedback-type {
  width: max-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: #9d7320;
  background: #fff8dc;
  border: 1px solid #f1dc8d;
  font-weight: 850;
  font-size: 13px;
}

.ielts-sentence-card.good .ielts-feedback-type {
  color: #2f7b44;
  background: #edf9ef;
  border-color: #cdebd4;
}

.ielts-sentence-card summary strong {
  font-weight: 700;
  color: var(--text);
}

.ielts-sentence-card[open] summary {
  border-bottom: 1px solid var(--line);
  background: #fffdf7;
}

.ielts-sentence-card.good[open] summary {
  background: #fbfefb;
}

.ielts-sentence-card-body {
  background: var(--panel-soft);
}

.ielts-sentence-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.ielts-sentence-panel {
  min-height: 92px;
  border: 1px solid #e8ece5;
  border-radius: 8px;
  padding: 12px;
  background: white;
  line-height: 1.65;
}

.ielts-sentence-note {
  margin: 0 14px 14px;
  border: 1px solid #efdf9f;
  border-radius: 8px;
  padding: 12px;
  background: #fffdf5;
  line-height: 1.6;
}

.ielts-inline-highlight {
  background: #fff1a8;
  border-bottom: 2px solid #e2bf32;
  border-radius: 3px;
  padding: 0 2px;
}

.ielts-pro-lock {
  display: grid;
  gap: 12px;
  border: 1px solid #d5e6d3;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #fbfefb 0%, #ffffff 100%);
}

.ielts-pro-lock p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ielts-pro-badge {
  width: max-content;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  font-weight: 850;
}

.ielts-result-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.ielts-result-item-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.ielts-result-item-head h4 {
  margin: 4px 0 0;
  font-size: 18px;
}

.ielts-prompt-preview {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.65;
}

.ielts-feedback-box {
  border: 1px solid #dbe8d9;
  border-radius: 8px;
  background: white;
  padding: 12px;
  line-height: 1.7;
}

.ielts-answer-draft {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
  white-space: pre-wrap;
  line-height: 1.75;
}

.ielts-answer-draft + .ielts-answer-draft {
  margin-top: 12px;
}

.ielts-action-list {
  display: grid;
  gap: 10px;
}

.ielts-action-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .ielts-result-hero,
  .ielts-result-layout,
  .ielts-overall-grid,
  .ielts-sentence-compare {
    grid-template-columns: 1fr;
  }

  .ielts-criteria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ielts-criteria-grid {
    grid-template-columns: 1fr;
  }

  .ielts-band-score {
    font-size: 52px;
  }
}

/* TOEFL results */
.sentence-result-hero {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 28px 30px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #173f39, #2e8872);
  box-shadow: var(--shadow);
}

.sentence-result-hero strong {
  display: block;
  font-size: 54px;
  line-height: 1;
}

.sentence-result-hero strong span,
.sentence-result-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.sentence-result-progress {
  height: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}

.sentence-result-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #b8f176;
}

.sentence-advice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sentence-advice-grid article {
  padding: 16px;
  border-radius: 12px;
  background: #f0f8f3;
}

.sentence-advice-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.sentence-result-list {
  display: grid;
  gap: 12px;
}

.sentence-result-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid #42a46a;
  border-radius: 14px;
  background: var(--panel);
}

.sentence-result-item.incorrect { border-left-color: #dc725f; }
.sentence-result-item p { margin: 5px 0; line-height: 1.6; }
.sentence-result-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e8f5ec; font-weight: 900; }
.sentence-result-item.incorrect .sentence-result-number { background: #fff0ed; color: #b64e42; }
.sentence-student-response { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 10px; }
.sentence-student-response > strong { white-space: nowrap; }
.sentence-response-original { display: grid; gap: 7px; min-width: 0; }
.sentence-response-lead { color: #58665e; line-height: 1.6; }
.sentence-response-pattern { color: var(--ink); line-height: 1.9; white-space: normal; }
.sentence-response-fill { display: inline-block; margin: 0 3px; padding: 0 5px 1px; border-bottom: 2px solid #39a06b; color: #176b4c; font-weight: 800; }
.sentence-response-fill.incorrect { border-bottom-color: #df735f; color: #ad493d; }
.sentence-response-punctuation { margin-left: -3px; }

.email-retry-btn {
  color: #fff;
  border-color: #5c6ee8;
  background: #5c6ee8;
}

.email-report-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-radius: 22px;
  background: linear-gradient(130deg, #eef2ff 0%, #fbf8ff 58%, #e9faf6 100%);
  border: 1px solid #dbe0ff;
}

.email-report-hero h2 { margin: 4px 0 8px; font-size: 28px; }
.email-report-hero p { margin: 0; line-height: 1.7; }
.email-score-orb { display: grid; place-items: center; align-content: center; width: 126px; height: 126px; border-radius: 38% 62% 55% 45% / 44% 42% 58% 56%; color: white; background: linear-gradient(145deg, #536be6, #7456c8); box-shadow: 0 16px 34px rgba(83, 107, 230, 0.25); }
.email-score-orb span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.email-score-orb strong { font-size: 44px; line-height: 1; }
.email-score-orb small { opacity: .8; }
.email-report-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.email-report-tags span { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.72); color: #56607c; font-size: 12px; }

.email-radar-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .65fr);
  gap: 30px;
  margin-top: 22px;
  padding: 26px;
  border-radius: 18px;
}

.email-radar { width: 100%; max-width: 500px; height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: #dce3f1; stroke-width: 1.5; }
.radar-axis { stroke: #cad3e4; stroke-width: 1.2; }
.radar-data { fill: rgba(64, 194, 165, .25); stroke: #24b595; stroke-width: 3; }
.radar-dot { fill: #24b595; stroke: white; stroke-width: 2; }
.email-radar text { fill: #4264c6; font-size: 14px; font-weight: 800; }
.email-dimension-list { display: grid; align-content: center; gap: 10px; }
.email-dimension-list > div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #f3f6ff; }
.email-dimension-list strong { color: #4964c7; }
.email-dimension-list small { min-width: 46px; padding: 4px 7px; text-align: center; border-radius: 7px; color: #126a58; background: #dcf6ee; }
.email-dimension-list p { grid-column: 1 / -1; margin: 0; color: #68718f; font-size: 12px; line-height: 1.55; }

.email-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.email-original-panel,
.email-error-panel,
.email-sentence-panel,
.email-learning-section { border-radius: 18px; }
.email-original-text { min-height: 520px; padding: 24px; border-radius: 14px; background: #fffdf8; border: 1px solid #eee5d6; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.9; }
.email-original-text.annotated { white-space: normal; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 18px; line-height: 2.15; }
.email-annotation-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.email-annotation-legend span { display: inline-flex; align-items: center; gap: 5px; }
.email-annotation-legend span::before { content: ""; width: 18px; height: 4px; border-radius: 4px; background: #ee715a; }
.email-annotation-legend .format::before { background: #8b6cdb; }
.email-annotation-legend .punctuation::before { background: #3978ef; }
.email-annotation-legend .vocabulary::before { background: #13b895; }
.email-annotation-legend .syntax::before { height: 18px; border-radius: 50%; background: #536ee7; }
.email-annotation-legend .good::before { background: #23bb82; }
.email-inline-annotation { padding: 0 1px; border-radius: 2px; color: inherit; background: transparent; text-decoration-line: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; cursor: help; }
.email-inline-annotation.grammar { text-decoration-color: #ed7158; background: rgba(237,113,88,.07); }
.email-inline-annotation.format { text-decoration-color: #8968da; background: rgba(137,104,218,.08); }
.email-inline-annotation.punctuation { text-decoration-color: #3478ef; background: rgba(52,120,239,.07); }
.email-inline-annotation.vocabulary { text-decoration-color: #0fb491; background: rgba(15,180,145,.07); }
.email-inline-annotation.good { color: #079c70; text-decoration-style: wavy; text-decoration-color: #16bf8d; background: rgba(22,191,141,.08); }
.email-syntax-marker { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin: 0 3px; padding: 0 5px; border-radius: 999px; color: #fff; background: #536ee7; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 11px; font-weight: 900; line-height: 1; vertical-align: super; cursor: help; }
.email-correction-column { display: grid; gap: 16px; }
.email-error-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.email-error-grid > div { padding: 10px 5px; border-radius: 10px; text-align: center; background: #fff1ee; }
.email-error-grid span { display: block; min-height: 32px; color: #8a5b55; font-size: 11px; }
.email-error-grid strong { color: #c95545; font-size: 22px; }
.email-sentence-feedback { display: grid; gap: 9px; }
.email-sentence-feedback details { border: 1px solid #e1e5f1; border-radius: 12px; overflow: hidden; background: #fbfcff; }
.email-sentence-feedback summary { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 8px; align-items: center; padding: 12px; cursor: pointer; font-weight: 700; }
.email-sentence-feedback summary span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: #6074d9; font-size: 12px; }
.email-sentence-feedback details > p,
.email-sentence-feedback details > div { margin: 0; padding: 0 14px 12px; color: var(--muted); line-height: 1.65; }
.email-sentence-feedback details > div { margin: 0 12px 12px; padding: 11px; border-radius: 8px; color: #195b4d; background: #e9f8f2; }
.email-annotation-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.email-annotation-summary > span { padding: 7px 10px; border-radius: 9px; color: #7c4339; background: #fff0ed; font-size: 12px; font-weight: 700; }
.email-annotation-summary > span.format { color: #5f47aa; background: #f1edff; }
.email-annotation-summary > span.punctuation { color: #285fbd; background: #eaf2ff; }
.email-annotation-summary > span.vocabulary { color: #087c66; background: #e4faf4; }
.email-annotation-summary > span.syntax { color: #4056bd; background: #edf0ff; }
.email-annotation-summary strong { margin-left: 4px; }
.email-annotation-list { display: grid; gap: 10px; max-height: 720px; overflow: auto; padding-right: 3px; }
.email-annotation-list article { padding: 14px; border: 1px solid #ebeef5; border-left: 4px solid #ef765e; border-radius: 12px; background: #fff; }
.email-annotation-list article.format { border-left-color: #8b6cdb; }
.email-annotation-list article.punctuation { border-left-color: #3978ef; }
.email-annotation-list article.vocabulary { border-left-color: #13b895; }
.email-annotation-list article.syntax { border-left-color: #536ee7; }
.email-annotation-list article.good { border-left-color: #23bb82; background: #f3fcf8; }
.email-annotation-list header { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.email-annotation-list header b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: #536ee7; font-size: 12px; }
.email-annotation-list header i { width: 9px; height: 9px; border-radius: 50%; background: #ef765e; }
.email-annotation-list article.format header i { background: #8b6cdb; }
.email-annotation-list article.punctuation header i { background: #3978ef; }
.email-annotation-list article.vocabulary header i { background: #13b895; }
.email-annotation-list article.good header i { background: #23bb82; }
.email-annotation-list blockquote { margin: 10px 0; padding: 8px 10px; border-radius: 8px; color: #3e4659; background: #f5f6f9; font-style: normal; line-height: 1.55; }
.email-annotation-list article > p { margin: 8px 0; color: var(--muted); line-height: 1.6; }
.email-annotation-list article > div { padding: 9px 10px; border-radius: 8px; color: #195b4d; background: #eaf8f3; line-height: 1.6; }

.email-learning-section { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); gap: 24px; margin-top: 22px; padding: 26px; }
.email-suggestion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.email-suggestion-grid article { padding: 16px; border-radius: 14px; background: #f4f2ff; }
.email-suggestion-grid article > span { display: inline-block; padding: 4px 9px; border-radius: 999px; color: #5d4db4; background: #e6e1ff; font-weight: 800; font-size: 12px; }
.email-suggestion-grid ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.65; }
.email-suggestion-grid li + li { margin-top: 10px; }
.email-suggestion-grid li strong { display: block; color: #4d5270; font-size: 13px; font-weight: 700; }
.email-suggestion-grid li small { display: block; margin-top: 3px; color: #737a96; font-size: 12px; font-style: italic; line-height: 1.55; }

.email-rewrite-section { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 28px; margin-top: 22px; padding: 30px; border-radius: 22px; color: white; background: linear-gradient(135deg, #283767, #4e568f); }
.email-rewrite-section h3 { margin: 6px 0 10px; font-size: 26px; }
.email-rewrite-section p { color: rgba(255,255,255,.76); line-height: 1.7; }
.email-rewrite-section article { padding: 22px; border-radius: 15px; color: #27304f; background: #fff; line-height: 1.85; }
.email-rewrite-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.email-rewrite-meta span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 700; }
.email-rewrite-content { display: grid; gap: 14px; }
.email-rewrite-improvements { padding: 18px 20px; border-radius: 15px; color: #27304f; background: #f1f4ff; }
.email-rewrite-improvements h4 { margin: 0 0 10px; color: #303b72; font-size: 15px; }
.email-rewrite-improvements ul { display: grid; gap: 9px; margin: 0; padding-left: 20px; }
.email-rewrite-improvements li { color: #525b7e; line-height: 1.5; }
.email-rewrite-improvements li strong { display: block; font-size: 13px; }
.email-rewrite-improvements li small { display: block; margin-top: 2px; color: #747c9b; font-size: 12px; }

@media (max-width: 980px) {
  .email-review-layout,
  .email-radar-section,
  .email-learning-section,
  .email-rewrite-section { grid-template-columns: 1fr; }
  .email-original-text { min-height: 320px; }
}

@media (max-width: 640px) {
  .sentence-result-hero,
  .email-report-hero { grid-template-columns: 1fr; }
  .sentence-advice-grid,
  .email-suggestion-grid { grid-template-columns: 1fr; }
  .sentence-result-item { grid-template-columns: 36px minmax(0, 1fr); }
  .sentence-result-item > .tag { grid-column: 2; justify-self: start; }
  .sentence-student-response { grid-template-columns: 1fr; gap: 6px; }
  .email-error-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-score-orb { width: 106px; height: 106px; }
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #e8edf4;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

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

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.compact-item:last-child {
  border-bottom: 0;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .landing-title,
  .landing-subtitle {
    text-align: center;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-art {
    min-height: auto;
    padding: 0 24px 32px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow: hidden;
  }

  .nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    max-width: 100%;
  }

  .nav-button {
    flex: 0 0 auto;
  }

  .grid.cols-3,
  .grid.cols-4,
  .grid.cols-2,
  .split,
  .writing-workspace,
  .email-writing-workspace,
  .discussion-writing-workspace {
    grid-template-columns: 1fr;
  }

  .writing-prompt-panel {
    position: static;
    max-height: none;
  }

  .email-prompt-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .discussion-prompt-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .writing-panel {
    min-height: auto;
  }

  .ielts-task1-sheet {
    padding: 20px 16px;
  }

  .ielts-task1-visuals figure {
    min-height: 180px;
    padding: 8px;
  }

  .writing-textarea {
    min-height: 520px;
    height: 520px;
  }

  .writing-textarea.discussion-writing-textarea {
    min-height: 120px;
    height: 120px;
  }

  .sentence-lead {
    font-size: 22px;
  }

  .sentence-pattern {
    font-size: 22px;
  }

  .sentence-slot {
    min-width: 92px;
    min-height: 46px;
    padding: 0 14px;
  }

  .sentence-chip {
    font-size: 18px;
  }

  .email-intro,
  .email-closing,
  .email-meta p,
  .email-bullets li {
    font-size: 14px;
  }

  .discussion-intro,
  .discussion-bullets li,
  .discussion-minimum,
  .discussion-professor-text,
  .discussion-post-text {
    font-size: 15px;
  }

  .discussion-post {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .discussion-post-avatar {
    width: 74px;
    height: 74px;
  }

  .discussion-professor-avatar {
    width: 118px;
    height: 118px;
  }

  .discussion-professor-name,
  .discussion-post-name {
    font-size: 16px;
  }

  .discussion-toolbar {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding-bottom: 12px;
  }

  .discussion-editor-meta {
    margin: 14px 0 10px;
  }

  .discussion-toolbar-actions {
    flex-wrap: wrap;
  }

  .discussion-tool-btn {
    min-width: 72px;
    min-height: 46px;
    font-size: 15px;
  }

  .discussion-word-count-bottom {
    font-size: 12px;
    padding: 7px 14px 9px;
  }

  .discussion-writing-textarea {
    min-height: 120px;
    font-size: 15px;
  }

  .email-toolbar {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding-bottom: 12px;
  }

  .email-toolbar-actions {
    flex-wrap: wrap;
  }

  .email-tool-btn {
    min-width: 72px;
    min-height: 46px;
    font-size: 15px;
  }

  .email-word-count {
    font-size: 14px;
  }

  .textarea.email-writing-textarea {
    min-height: 220px;
    font-size: 15px;
  }

  .email-word-count {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .public-header {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .landing-title {
    font-size: clamp(34px, 9vw, 42px);
    gap: 6px;
  }

  .hero-btn {
    width: 100%;
  }

  .course-grid,
  .plan-grid,
  .identity-tabs,
  .pay-methods,
  .qr-wrap {
    grid-template-columns: 1fr;
  }

  .qr-wrap {
    justify-items: center;
    text-align: center;
  }

  .public-step {
    padding: 72px 14px 24px;
  }

  .public-step > .link-button {
    left: 14px;
  }

  .role-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-head,
  .assignment-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .page-title {
    font-size: 24px;
  }
}

/* IELTS official-descriptor report */
.ielts-report-hero-modern {
  border-color: #d8e8df;
  background: linear-gradient(130deg, #edf8f1 0%, #f8fbff 54%, #f3f0ff 100%);
}

.ielts-score-orb {
  border-radius: 50% 42% 54% 46% / 46% 55% 45% 54%;
  background: linear-gradient(145deg, #16845f, #496acb);
  box-shadow: 0 16px 34px rgba(32, 112, 85, 0.23);
}

.email-report-tags span.met {
  color: #17664d;
  background: #e2f7ec;
}

.email-report-tags span.under {
  color: #a34a3e;
  background: #fff0ed;
}

.ielts-radar-section {
  border-color: #dce9e2;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
}

.ielts-radar-section .radar-data {
  fill: rgba(39, 151, 111, 0.22);
  stroke: #238c69;
}

.ielts-radar-section .radar-dot {
  fill: #238c69;
}

.ielts-radar-section .email-radar text,
.ielts-dimension-list strong {
  fill: #266752;
  color: #266752;
}

.ielts-dimension-list > div {
  background: #f0f8f4;
}

.ielts-original-text {
  background: #fffefb;
}

.ielts-error-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ielts-overall-section {
  margin-top: 22px;
  border-radius: 18px;
}

.ielts-official-reference {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid #3b936f;
  border-radius: 10px;
  color: #53645d;
  background: #f1f8f5;
  line-height: 1.65;
}

.ielts-rewrite-section {
  background: linear-gradient(135deg, #174b43, #344a82);
}

.ielts-rewrite-essay {
  display: grid;
  gap: 18px;
  color: #000;
}

.ielts-rewrite-essay p {
  margin: 0;
  color: #000;
  text-indent: 0;
}

.ielts-suggestion-grid small b {
  margin-right: 4px;
  color: #5b52a3;
  font-style: normal;
}

.ielts-rewrite-lock {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 24px 28px;
  border-radius: 18px;
  background: linear-gradient(120deg, #f0f8f4, #f4f2ff);
}

.ielts-rewrite-lock h3 {
  margin: 10px 0 6px;
}

.ielts-rewrite-lock p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .ielts-rewrite-lock {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Duotone visual system: midnight indigo + electric cyan */
:root {
  --bg: #f4f2ec;
  --panel: #fffefa;
  --panel-soft: #e8f7f4;
  --ink: #111a35;
  --text: #111a35;
  --muted: #5d6477;
  --line: #cbd8d8;
  --primary: #162a5d;
  --primary-strong: #0d1c43;
  --primary-soft: #dce7ee;
  --accent: #26cfbd;
  --accent-strong: #12ae9e;
  --accent-soft: #d9f7f1;
  --coral: #162a5d;
  --coral-soft: #e8edf4;
  --gold: #162a5d;
  --gold-soft: #e8edf4;
  --green: #087c72;
  --green-soft: #d9f7f1;
  --danger: #162a5d;
  --danger-soft: #eef1f6;
  --shadow: 0 22px 60px rgba(17, 26, 53, 0.13);
}

body {
  background:
    linear-gradient(rgba(22, 42, 93, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 42, 93, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

button,
.btn,
.nav-button,
.course-card,
.plan-card,
.identity-tab,
.account-pill,
.option,
.sentence-chip {
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

button:active,
.btn:active,
.course-card:active,
.plan-card:active,
.option:active,
.sentence-chip:active {
  transform: translateY(2px);
}

button:focus-visible,
.btn:focus-visible,
.input:focus,
.textarea:focus,
.select:focus {
  outline: 3px solid rgba(38, 207, 189, 0.38);
  outline-offset: 2px;
}

.avocado-logo,
.admin-icon-button img,
.grading-avocado-dance img {
  filter: none;
}

.public-page {
  background: var(--bg);
}

.landing-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 22%, rgba(38, 207, 189, 0.23), transparent 28%),
    linear-gradient(112deg, #fffefa 0 56%, #162a5d 56% 100%);
}

.landing-hero::before,
.landing-hero::after {
  content: none;
}

.landing-hero::before {
  width: 290px;
  height: 290px;
  right: -110px;
  top: 9%;
  border: 42px solid rgba(38, 207, 189, 0.7);
  border-radius: 50%;
}

.landing-hero::after {
  width: 170px;
  height: 170px;
  left: -74px;
  bottom: -64px;
  background: #26cfbd;
  transform: rotate(18deg);
}

.public-header,
.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-inner {
  z-index: auto;
}

.public-header {
  min-height: 92px;
  border-bottom: 1px solid rgba(22, 42, 93, 0.18);
}

.brand-name,
.side-title {
  letter-spacing: -0.02em;
}

.landing-title {
  max-width: 720px;
  color: var(--primary);
  font-size: clamp(48px, 5.7vw, 78px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.landing-title span:last-child {
  color: transparent;
  -webkit-text-stroke: 2px var(--primary);
}

.hero-copy {
  gap: 34px;
}

.hero-actions {
  gap: 12px;
}

.hero-btn,
.public-login {
  border-radius: 3px;
  border-width: 2px;
  box-shadow: none;
  text-transform: none;
}

.hero-btn {
  min-height: 58px;
}

.btn.primary,
.identity-tab.active,
.email-retry-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn.primary:hover,
.identity-tab.active:hover,
.email-retry-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-strong);
}

.hero-stats span {
  min-height: 36px;
  border: 1px solid var(--primary);
  border-radius: 2px;
  background: transparent;
  color: var(--primary);
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  z-index: 5;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
}

.hero-visual::before {
  content: none;
}

.hero-visual::after {
  content: none;
}

.hero-visual img {
  all: revert;
  position: relative;
  z-index: 6;
  width: 100%;
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 2px solid var(--primary);
  border-radius: 2px;
  box-shadow: 16px 16px 0 var(--accent), 0 28px 70px rgba(4, 12, 35, 0.28);
}

.public-step {
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 66%, rgba(38, 207, 189, 0.22) 66% 82%, transparent 82%),
    var(--bg);
}

.step-card,
.login-card,
.payment-card,
.modal,
.grading-dialog {
  border: 2px solid var(--primary);
  border-radius: 4px;
  box-shadow: 12px 12px 0 var(--accent);
}

.step-title,
.page-title,
.section-title {
  color: var(--primary);
  letter-spacing: -0.03em;
}

.course-card,
.plan-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: 3px;
  background: var(--panel);
}

.course-card::after,
.plan-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

.course-card:hover,
.plan-card:hover,
.plan-card.active {
  transform: translate(-4px, -4px);
  border-color: var(--primary);
  box-shadow: 8px 8px 0 var(--accent);
}

.course-icon {
  border: 1px solid var(--primary);
  border-radius: 2px;
  background: var(--primary);
  color: #fff;
}

.login-form-card,
.identity-tab,
.account-pill,
.input,
.textarea,
.select,
.btn,
.tag,
.feedback,
.table-wrap,
.empty,
.answer-item,
.question,
.card,
.stat,
.assignment-row,
.admin-question-slot,
.image-upload-preview-list {
  border-radius: 3px;
}

.input,
.textarea,
.select {
  border-width: 1px;
  border-color: #aebfc3;
  background: #fffefa;
}

.sidebar {
  background:
    linear-gradient(155deg, rgba(38, 207, 189, 0.16), transparent 38%),
    var(--primary-strong);
  border-right: 6px solid var(--accent);
}

.side-brand {
  border-bottom-color: rgba(38, 207, 189, 0.45);
}

.side-role {
  color: rgba(255, 255, 255, 0.65);
}

.nav-button {
  border: 1px solid transparent;
  border-radius: 2px;
}

.nav-button.active,
.nav-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--primary-strong);
}

.nav-symbol {
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
}

.main {
  background:
    radial-gradient(circle at 98% 2%, rgba(38, 207, 189, 0.18), transparent 22%),
    transparent;
}

.eyebrow {
  color: var(--accent-strong);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stat,
.card,
.assignment-row,
.question,
.table-wrap {
  border-color: var(--line);
  box-shadow: 0 8px 0 rgba(22, 42, 93, 0.055);
}

.stat {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--accent);
}

.stat-value,
.score,
.ielts-band-score,
.ielts-criterion-head span {
  color: var(--primary);
}

.tag,
.tag.done,
.tag.pending,
.tag.review,
.library-management-group .tag,
.assignment-management-group .tag,
.email-report-tags span,
.email-report-tags span.met,
.email-report-tags span.under {
  border-color: var(--line);
  background: var(--accent-soft);
  color: var(--primary);
}

.progress,
.grading-progress-track,
.ielts-band-bar {
  background: #d8e2e4;
}

.progress span,
.grading-progress-track span,
.ielts-band-bar span,
.learning-trend-bars > div > span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

th {
  background: var(--primary);
  color: #fff;
}

tr:hover td {
  background: rgba(38, 207, 189, 0.08);
}

.option:hover,
.account-pill:hover,
.course-entry-back-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sentence-chip {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.sentence-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-strong);
}

.sentence-slot.filled,
.sentence-response-fill {
  border-color: var(--accent-strong);
  color: var(--primary);
}

.writing-workspace,
.email-writing-workspace,
.discussion-writing-workspace {
  border: 2px solid var(--primary);
  box-shadow: 10px 10px 0 rgba(38, 207, 189, 0.5);
}

.writing-prompt-panel,
.email-prompt-panel,
.discussion-prompt-panel {
  background: var(--primary);
  color: #fff;
}

.writing-prompt-panel .writing-title,
.writing-prompt-panel .writing-prompt-text,
.email-prompt-panel *,
.discussion-prompt-panel * {
  color: inherit;
}

.email-prompt-card,
.discussion-prompt-card {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.discussion-post-avatar,
.discussion-professor-avatar {
  filter: none;
}

.modal-backdrop,
.grading-overlay {
  background: rgba(13, 28, 67, 0.72);
  backdrop-filter: blur(5px);
}

.toast {
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--primary-strong);
}

.prediction-card,
.library-management-group,
.assignment-management-group,
.ielts-report-hero-modern,
.ielts-radar-section,
.ielts-rewrite-lock,
.email-report-hero,
.sentence-result-hero {
  border-color: var(--line);
  background: linear-gradient(145deg, var(--panel), var(--accent-soft));
}

.email-score-orb,
.ielts-score-orb {
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 16px 34px rgba(22, 42, 93, 0.24);
}

.email-rewrite-section,
.ielts-rewrite-section {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
}

@media (max-width: 980px) {
  .landing-hero {
    background:
      radial-gradient(circle at 85% 8%, rgba(38, 207, 189, 0.24), transparent 25%),
      linear-gradient(180deg, #fffefa 0 72%, #162a5d 72% 100%);
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    width: min(720px, 100%);
    margin: 0 auto;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 5px solid var(--accent);
  }
}

@media (max-width: 640px) {
  .landing-hero {
    background: linear-gradient(180deg, #fffefa 0 78%, #162a5d 78% 100%);
  }

  .public-header {
    min-height: 76px;
  }

  .public-header .small {
    display: none;
  }

  .landing-title {
    font-size: clamp(40px, 12vw, 56px);
  }

  .landing-title span {
    white-space: normal;
  }

  .landing-title span:last-child {
    -webkit-text-stroke-width: 1.3px;
  }

  .hero-copy {
    gap: 24px;
  }

  .hero-visual {
    box-shadow: none;
  }

  .hero-visual img {
    box-shadow: 9px 9px 0 var(--accent), 0 20px 48px rgba(4, 12, 35, 0.24);
  }

  .hero-visual::before {
    inset: 0 0 10px 10px;
  }

  .hero-visual::after {
    inset: 10px 10px 0 0;
  }

  .step-card,
  .login-card,
  .payment-card,
  .modal,
  .grading-dialog {
    box-shadow: 6px 6px 0 var(--accent);
  }
}

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

/* Final brand palette: avocado green + warm honey */
.public-step {
  background:
    linear-gradient(135deg, transparent 0 66%, rgba(214, 168, 75, 0.18) 66% 82%, transparent 82%),
    var(--bg);
}

:root {
  --bg: #f6f0e5;
  --panel: #fffaf0;
  --panel-soft: #f3ead6;
  --ink: #20271f;
  --text: #20271f;
  --muted: #6e685b;
  --line: #d8cdb8;
  --primary: #314a2d;
  --primary-strong: #20321f;
  --primary-soft: #e4eadc;
  --accent: #d6a84b;
  --accent-strong: #a86f18;
  --accent-soft: #f5e5bd;
  --green: #314a2d;
  --green-soft: #e4eadc;
  --shadow: 0 22px 60px rgba(49, 74, 45, 0.14);
}

body {
  background:
    linear-gradient(rgba(49, 74, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 74, 45, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

.landing-hero {
  background:
    radial-gradient(circle at 79% 22%, rgba(214, 168, 75, 0.2), transparent 28%),
    linear-gradient(112deg, #fffaf0 0 56%, #314a2d 56% 100%);
}

.landing-hero::before,
.landing-hero::after,
.hero-visual::before,
.hero-visual::after {
  content: none;
}

.public-header {
  border-bottom-color: rgba(49, 74, 45, 0.2);
}

.step-card,
.login-card,
.payment-card,
.modal,
.grading-dialog {
  box-shadow: 12px 12px 0 var(--accent);
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 6;
  opacity: 1;
  visibility: visible;
  filter: none;
  border-color: var(--primary);
  box-shadow: 16px 16px 0 var(--accent), 0 28px 70px rgba(32, 50, 31, 0.25);
}

.sidebar {
  background:
    linear-gradient(155deg, rgba(214, 168, 75, 0.14), transparent 38%),
    var(--primary-strong);
  border-color: var(--accent);
}

.main {
  background: radial-gradient(circle at 98% 2%, rgba(214, 168, 75, 0.16), transparent 22%);
}

.modal-backdrop,
.grading-overlay {
  background: rgba(32, 50, 31, 0.72);
}

.stat,
.card,
.assignment-row,
.question,
.table-wrap {
  box-shadow: 0 8px 0 rgba(49, 74, 45, 0.055);
}

.writing-workspace,
.email-writing-workspace,
.discussion-writing-workspace {
  box-shadow: 10px 10px 0 rgba(214, 168, 75, 0.46);
}

@media (max-width: 980px) {
  .landing-hero {
    background:
      radial-gradient(circle at 85% 8%, rgba(214, 168, 75, 0.2), transparent 25%),
      linear-gradient(180deg, #fffaf0 0 72%, #314a2d 72% 100%);
  }
}

@media (max-width: 640px) {
  .landing-hero {
    background: linear-gradient(180deg, #fffaf0 0 78%, #314a2d 78% 100%);
  }

  .step-card,
  .login-card,
  .payment-card,
  .modal,
  .grading-dialog {
    box-shadow: 6px 6px 0 var(--accent);
  }
}
