:root {
  color-scheme: light;
  --green-950: #063d34;
  --green-900: #075344;
  --green-800: #08705a;
  --green-700: #0b8065;
  --green-600: #12936f;
  --green-100: #dff5ea;
  --green-50: #eef9f4;
  --orange: #ff812b;
  --orange-soft: #fff0e4;
  --ink: #18251f;
  --muted: #65716b;
  --line: #dfe8e2;
  --surface: #ffffff;
  --background: #f3f8f4;
  --shadow: 0 14px 34px rgba(14, 67, 52, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(115, 215, 165, 0.22), transparent 25rem),
    linear-gradient(180deg, #f8fbf8 0, var(--background) 22rem, #eef5ef 100%);
  overscroll-behavior-y: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.app-shell {
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(248, 251, 248, 0.86);
  box-shadow: 0 0 60px rgba(6, 61, 52, 0.06);
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--green-900);
  font-size: 18px;
}

.boot-screen strong {
  font-size: 28px;
}

.boot-screen span {
  color: var(--muted);
}

.brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: white;
  background: linear-gradient(145deg, var(--green-700), var(--green-950));
  box-shadow: 0 14px 30px rgba(8, 112, 90, 0.25);
  font-size: 30px;
  font-weight: 800;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  background: rgba(250, 252, 250, 0.94);
  border-bottom: 1px solid rgba(215, 228, 218, 0.9);
  backdrop-filter: blur(14px);
}

.topbar-title {
  min-width: 0;
  text-align: center;
}

.topbar-title strong {
  display: block;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-900);
  background: transparent;
  cursor: pointer;
  font-size: 25px;
}

.icon-button:active {
  background: var(--green-100);
  transform: scale(0.96);
}

.page {
  padding: 18px 18px calc(34px + var(--safe-bottom));
}

.page.with-bottom-action {
  padding-bottom: calc(116px + var(--safe-bottom));
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 225px;
  padding: 26px 24px;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 88% 16%, rgba(202, 255, 178, 0.48), transparent 7rem),
    radial-gradient(circle at 78% 80%, rgba(255, 194, 105, 0.26), transparent 8rem),
    linear-gradient(140deg, #09644f 0%, #0a8264 62%, #17a373 100%);
  box-shadow: 0 20px 42px rgba(8, 112, 90, 0.24);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  content: "";
  border-radius: 60% 40% 58% 42%;
  background: rgba(255, 255, 255, 0.09);
  transform: rotate(-18deg);
}

.home-hero::before {
  right: -38px;
  bottom: -72px;
  width: 190px;
  height: 185px;
}

.home-hero::after {
  right: 36px;
  top: -55px;
  width: 140px;
  height: 110px;
}

.hero-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-brand-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--green-900);
  background: #d5ff9b;
  font-weight: 900;
}

.home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 28px 0 10px;
  font-size: clamp(30px, 8vw, 43px);
  line-height: 1.13;
  letter-spacing: -0.03em;
}

.home-hero p {
  position: relative;
  z-index: 1;
  max-width: 370px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
}

.home-section-title {
  margin: 28px 4px 14px;
}

.home-section-title h2 {
  margin: 0 0 4px;
  font-size: 23px;
}

.home-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.role-grid {
  display: grid;
  gap: 15px;
}

.role-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 70px 1fr 34px;
  align-items: center;
  min-height: 132px;
  padding: 20px;
  border: 1px solid #e1ebe4;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.role-card::after {
  position: absolute;
  right: -38px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  content: "";
  border-radius: 50%;
  background: var(--green-50);
}

.role-card.farm::after {
  background: var(--orange-soft);
}

.role-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background: linear-gradient(145deg, #d7f6e6, #effbf5);
  color: var(--green-800);
  font-size: 22px;
  font-weight: 800;
}

.role-card.farm .role-icon {
  color: #a94707;
  background: linear-gradient(145deg, #ffe4c5, #fff5ea);
}

.role-copy {
  position: relative;
  z-index: 1;
  padding: 0 10px;
}

.role-copy strong {
  display: block;
  margin-bottom: 7px;
  color: var(--green-900);
  font-size: 26px;
}

.role-copy span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.role-arrow {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--orange);
  font-size: 20px;
  font-weight: 900;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0 0;
  padding: 15px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.trust-strip span {
  padding: 0 5px;
  color: var(--green-900);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.service-hero {
  position: relative;
  overflow: hidden;
  min-height: 165px;
  padding: 23px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eef9e8, #f8fff5 65%, #e9f5dc);
  border: 1px solid #dbead5;
}

.service-hero.farm {
  background: linear-gradient(135deg, #fff7e9, #f7fff4 70%, #e7f5dc);
  border-color: #ece4ce;
}

.service-hero::after {
  position: absolute;
  right: -12px;
  top: -15px;
  width: 145px;
  height: 145px;
  content: "叶";
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(8, 112, 90, 0.1);
  background: rgba(255, 255, 255, 0.42);
  font-size: 62px;
  font-weight: 900;
  transform: rotate(10deg);
}

.service-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 800;
}

.service-hero h1 {
  position: relative;
  z-index: 1;
  margin: 15px 0 6px;
  color: var(--green-900);
  font-size: 29px;
  line-height: 1.2;
}

.service-hero p {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin: 0;
  color: #53665c;
  font-size: 15px;
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 3px 13px;
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

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

.help-card {
  min-height: 154px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(20, 69, 54, 0.06);
  cursor: pointer;
  text-align: left;
}

.help-card:active,
.role-card:active,
.action-card:active {
  transform: translateY(1px) scale(0.99);
}

.help-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
}

.tone-green { color: #08715a; background: #e5f7ed; }
.tone-blue { color: #2c67b1; background: #eaf2ff; }
.tone-orange { color: #b34e0b; background: #fff0e3; }
.tone-lime { color: #498214; background: #eff8df; }
.tone-purple { color: #7045b5; background: #f2ebff; }
.tone-yellow { color: #9c6d00; background: #fff6d8; }

.help-card strong {
  display: block;
  margin-bottom: 6px;
  color: #18281f;
  font-size: 18px;
  line-height: 1.25;
}

.help-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ai-banner {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #d9eadf;
  border-radius: 21px;
  background: linear-gradient(100deg, #f7fff9, #edf9ee);
  box-shadow: 0 10px 26px rgba(15, 91, 65, 0.08);
}

.ai-orb {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, #113b34, #1fb476);
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.ai-banner strong,
.ai-banner span {
  display: block;
}

.ai-banner strong {
  margin-bottom: 3px;
  font-size: 16px;
}

.ai-banner span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pill-button,
.primary-button,
.secondary-button,
.text-button {
  min-height: 46px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.pill-button {
  padding: 0 16px;
  color: white;
  background: linear-gradient(120deg, #0b8a65, #45af1d);
  box-shadow: 0 7px 16px rgba(18, 147, 111, 0.2);
  white-space: nowrap;
}

.primary-button {
  width: 100%;
  padding: 0 22px;
  color: white;
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  box-shadow: 0 10px 22px rgba(8, 112, 90, 0.22);
  font-size: 17px;
}

.primary-button.orange {
  background: linear-gradient(120deg, #ff7a22, #ffa32a);
  box-shadow: 0 10px 22px rgba(255, 129, 43, 0.22);
}

.primary-button:disabled {
  color: #98a49e;
  background: #e3e9e5;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-button {
  width: 100%;
  padding: 0 22px;
  color: var(--green-900);
  background: var(--green-50);
  border: 1px solid #cfe9dc;
  font-size: 16px;
}

.text-button {
  padding: 0 13px;
  color: var(--green-800);
  background: transparent;
}

.action-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.action-card {
  display: grid;
  grid-template-columns: 50px 1fr 30px;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.action-card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 14px;
  font-weight: 900;
}

.action-card strong,
.action-card span {
  display: block;
}

.action-card strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.action-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.action-card-arrow {
  color: var(--orange);
  font-size: 23px;
  font-weight: 900;
  text-align: center;
}

.notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 16px;
  color: #5b4a16;
  background: #fff8dc;
  border: 1px solid #eee2ae;
  font-size: 14px;
  line-height: 1.65;
}

.notice.green {
  color: var(--green-950);
  background: var(--green-50);
  border-color: #d2e9dd;
}

.guide-list {
  position: relative;
  display: grid;
  gap: 13px;
}

.guide-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(145deg, var(--green-700), var(--green-950));
  font-size: 20px;
  font-weight: 900;
}

.guide-step h3 {
  margin: 0 0 6px;
  color: var(--green-900);
  font-size: 19px;
}

.guide-step p {
  margin: 0;
  color: #4f5f56;
  font-size: 15px;
  line-height: 1.65;
}

.guide-check {
  grid-column: 2;
  display: flex;
  gap: 7px;
  margin-top: 2px;
  color: #6d5d21;
  font-size: 13px;
  line-height: 1.55;
}

.course-card {
  overflow: hidden;
  border-radius: 25px;
  border: 1px solid #dce9df;
  background: white;
  box-shadow: var(--shadow);
}

.course-card-head {
  padding: 24px;
  color: white;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 238, 170, 0.24), transparent 7rem),
    linear-gradient(140deg, #07594a, #11936c);
}

.course-card-head small {
  color: #cbf2df;
  font-size: 13px;
  font-weight: 800;
}

.course-card-head h1 {
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

.course-card-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 15px;
  line-height: 1.65;
}

.course-progress-wrap {
  padding: 19px 22px 4px;
}

.course-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e6eee8;
  appearance: none;
}

progress::-webkit-progress-bar {
  background: #e6eee8;
  border-radius: 999px;
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-700), #68bd3f);
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-700), #68bd3f);
}

.lesson-list {
  display: grid;
  gap: 8px;
  padding: 17px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 10px 11px;
  border-radius: 16px;
  color: var(--ink);
  background: #f7faf7;
  border: 1px solid transparent;
  text-align: left;
}

button.lesson-row {
  cursor: pointer;
}

.lesson-row.locked {
  opacity: 0.48;
  cursor: not-allowed;
}

.lesson-row.current {
  background: var(--green-50);
  border-color: #cce6d8;
}

.lesson-row.done {
  background: #f0f9f3;
}

.lesson-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--green-900);
  background: white;
  border: 1px solid #d9e8de;
  font-weight: 900;
}

.lesson-row.done .lesson-index {
  color: white;
  background: var(--green-700);
  border-color: var(--green-700);
}

.lesson-row strong,
.lesson-row small {
  display: block;
}

.lesson-row strong {
  margin-bottom: 3px;
  font-size: 16px;
}

.lesson-row small {
  color: var(--muted);
  font-size: 12px;
}

.lesson-state {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
}

.lesson-head {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: white;
  background: linear-gradient(140deg, var(--green-900), var(--green-600));
}

.lesson-head-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cef0e1;
  font-size: 13px;
  font-weight: 700;
}

.lesson-head h1 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.lesson-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.68;
}

.lesson-section {
  margin-bottom: 13px;
  padding: 19px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: white;
}

.lesson-section h2 {
  margin: 0 0 12px;
  color: var(--green-900);
  font-size: 19px;
}

.lesson-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-section li {
  position: relative;
  padding-left: 25px;
  color: #3f4d46;
  font-size: 16px;
  line-height: 1.65;
}

.lesson-section li::before {
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 4px 9px 4px 9px;
  background: #70bd42;
  transform: rotate(15deg);
}

.takeaway {
  margin: 16px 0;
  padding: 18px;
  border-left: 5px solid var(--orange);
  border-radius: 5px 17px 17px 5px;
  color: #4a3e20;
  background: #fff7e9;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.ack-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #d7e6dc;
  background: white;
}

.ack-label {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  align-items: start;
  margin-bottom: 16px;
  cursor: pointer;
}

.ack-label input {
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--green-700);
}

.ack-label span {
  color: #34443b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.completion-card {
  padding: 27px 22px;
  border: 1px solid #d8e7dc;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}

.completion-badge {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 26px;
  color: white;
  background: linear-gradient(145deg, #0b8a65, #76b92f);
  box-shadow: 0 14px 28px rgba(11, 138, 101, 0.22);
  font-size: 34px;
  font-weight: 900;
}

.completion-card h1 {
  margin: 0 0 9px;
  color: var(--green-900);
  font-size: 28px;
}

.completion-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.bottom-action {
  position: fixed;
  z-index: 18;
  left: 50%;
  bottom: 0;
  width: min(600px, 100%);
  padding: 12px 18px calc(12px + var(--safe-bottom));
  border-top: 1px solid rgba(218, 229, 221, 0.9);
  background: rgba(250, 252, 250, 0.94);
  backdrop-filter: blur(15px);
  transform: translateX(-50%);
}

.chat-shell {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100vh - 69px);
  padding-bottom: var(--safe-bottom);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  padding: 18px 16px 22px;
}

.chat-intro {
  padding: 18px;
  border-radius: 22px;
  color: var(--green-950);
  background: linear-gradient(135deg, #eff9ea, #f8fff5);
  border: 1px solid #dbead6;
}

.chat-intro strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.chat-intro p {
  margin: 0;
  color: #53665b;
  font-size: 14px;
  line-height: 1.6;
}

.demo-label {
  display: inline-flex;
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #795000;
  background: #fff0bd;
  font-size: 11px;
  font-weight: 800;
}

.preset-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.preset-button {
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--green-900);
  background: white;
  border: 1px solid #cde4d7;
  cursor: pointer;
  font-size: 13px;
}

.message {
  max-width: 87%;
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.68;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.assistant {
  align-self: flex-start;
  border: 1px solid #dfe8e2;
  border-bottom-left-radius: 5px;
  background: white;
}

.message.user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  color: white;
  background: var(--green-700);
}

.message.error {
  color: #842828;
  background: #fff0f0;
  border-color: #f0caca;
}

.chat-composer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 12px 14px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(250, 252, 250, 0.96);
  backdrop-filter: blur(14px);
}

.chat-composer textarea {
  min-height: 48px;
  max-height: 120px;
  resize: none;
  padding: 12px 14px;
  border: 1px solid #cfddd4;
  border-radius: 17px;
  outline: none;
  color: var(--ink);
  background: white;
  font-size: 16px;
  line-height: 1.4;
}

.chat-composer textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(18, 147, 111, 0.12);
}

.send-button {
  min-width: 68px;
  padding: 0 15px;
  border-radius: 17px;
  color: white;
  background: var(--green-700);
  cursor: pointer;
  font-weight: 800;
}

.send-button:disabled {
  background: #aebbb4;
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 0 0;
  background: rgba(11, 27, 21, 0.48);
  animation: fade-in 160ms ease-out;
}

.modal-sheet {
  width: min(600px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 10px 20px calc(24px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: white;
  box-shadow: 0 -20px 50px rgba(5, 31, 21, 0.24);
  animation: sheet-up 190ms ease-out;
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #d9e0dc;
}

.modal-sheet h2 {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 25px;
}

.modal-sheet > p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 14px;
}

.modal-sheet ul {
  display: grid;
  gap: 11px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.modal-sheet li {
  position: relative;
  padding-left: 25px;
  color: #35433b;
  font-size: 16px;
  line-height: 1.65;
}

.modal-sheet li::before {
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
}

.modal-actions {
  display: grid;
  gap: 10px;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(28px + var(--safe-bottom));
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 12px 17px;
  border-radius: 999px;
  color: white;
  background: rgba(20, 31, 26, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  font-size: 14px;
  text-align: center;
  animation: fade-in 150ms ease-out;
}

.error-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.error-screen h1 {
  margin: 4px 0;
  color: var(--green-900);
  font-size: 25px;
}

.error-screen p {
  max-width: 370px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.65;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 560px) {
  .page {
    padding-right: 25px;
    padding-left: 25px;
  }

  .help-grid {
    gap: 14px;
  }

  .home-hero {
    padding: 30px;
  }
}

@media (max-width: 365px) {
  .page {
    padding-right: 13px;
    padding-left: 13px;
  }

  .help-grid {
    gap: 9px;
  }

  .help-card {
    min-height: 148px;
    padding: 14px;
  }

  .ai-banner {
    grid-template-columns: 45px 1fr;
  }

  .ai-orb {
    width: 45px;
    height: 45px;
  }

  .ai-banner .pill-button {
    grid-column: 1 / -1;
  }
}

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