@font-face {
  font-family: "Noto Sans SC Local";
  src: url("./assets/fonts/noto-sans-sc-subset.woff2") format("woff2");
  font-weight: 400 950;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-ui: "Noto Sans SC Local", "PingFang SC", "Microsoft YaHei";
  --bg: #FFFDF8;
  --surface: #FFFDF8;
  --surface-soft: #FFF8EF;
  --ink: #20322F;
  --muted: #6A7673;
  --line: #E9DDD0;
  --teal: #156C57;
  --teal-soft: #DFF3EE;
  --amber: #FFF2D4;
  --peach: #FCE8E0;
  --paper: #FFF9EF;
  --shadow: 0 8px 24px rgba(180, 140, 90, 0.12);
  --shadow-soft: 0 16px 44px rgba(180, 140, 90, 0.16);
  --radius-lg: 28px;
  --radius-md: 24px;
  --radius-sm: 20px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #FFF2D4 0, #FFFDF8 210px, #FFFDF8 58%, #DFF3EE 150%);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.5;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.app-shell {
  width: min(462px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 16px 0 36px;
}

.hero,
.panel,
.dialog {
  border: 1px solid rgba(180, 140, 90, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: 526px;
  padding: 28px 22px 22px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.86) 43%, rgba(255, 253, 248, 0.22) 78%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.1) 0%, rgba(255, 253, 248, 0.92) 100%),
    url("./assets/hero-mom-homework-v2.png") center / cover no-repeat;
}

.hero::after {
  content: "今晚先稳住";
  position: absolute;
  right: 18px;
  top: 16px;
  padding: 7px 12px;
  border: 1px dashed rgba(180, 140, 90, 0.42);
  border-radius: 999px;
  background: rgba(255, 242, 212, 0.9);
  color: #7A5420;
  font-size: 12px;
  font-weight: 900;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.02) 0%, rgba(255, 253, 248, 0.5) 54%, rgba(255, 253, 248, 0.98) 100%);
}

.hero-copy-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
}

.brand-mark {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 7px 12px;
  border: 1px solid rgba(21, 108, 87, 0.18);
  border-radius: 999px;
  background: rgba(223, 243, 238, 0.82);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 37px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 16em;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 750;
}

.hero-action {
  display: inline;
  margin: 0;
  padding-bottom: 3px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 900;
  background:
    linear-gradient(transparent 64%, rgba(255, 242, 212, 0.95) 0);
}

.warm-note {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 16px;
  border: 1px dashed rgba(180, 140, 90, 0.34);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(8px);
}

.warm-note span {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.warm-note strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.panel {
  margin-top: 24px;
  padding: 20px;
}

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

.flow-block {
  margin-bottom: 24px;
}

.flow-block.last-flow {
  margin-bottom: 16px;
}

.flow-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.flow-label span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: #7A5420;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(180, 140, 90, 0.18);
}

.flow-hint {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.entry-tabs,
.choice-grid {
  display: grid;
  gap: 10px;
}

.entry-tabs {
  grid-template-columns: 1fr;
}

.grade-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

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

.entry-tab,
.choice-button {
  position: relative;
  border: 1px solid rgba(180, 140, 90, 0.2);
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(180, 140, 90, 0.08);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.entry-tab {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  min-height: 72px;
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: left;
}

.entry-tab::before {
  content: "";
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 34% 36%, rgba(255, 255, 255, 0.82) 0 2px, transparent 3px),
    var(--peach);
  box-shadow: inset 0 0 0 1px rgba(180, 140, 90, 0.16);
}

.entry-tab strong {
  font-size: 16px;
}

.entry-tab span {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.choice-button {
  min-height: 52px;
  padding: 10px 9px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.grade-grid .choice-button {
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 13px;
}

.situation-grid .choice-button {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(255, 248, 239, 0.95));
}

.entry-tab.active,
.choice-button.active {
  border-color: rgba(21, 108, 87, 0.38);
  background: var(--teal-soft);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.usage-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(180, 140, 90, 0.2);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: #76532B;
  font-size: 13px;
  font-weight: 850;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FFFEFA;
  color: var(--ink);
  outline: none;
}

textarea:focus {
  border-color: rgba(21, 108, 87, 0.38);
  box-shadow: 0 0 0 4px rgba(223, 243, 238, 0.78);
}

.primary-button,
.secondary-button,
.ghost-button,
.link-button,
.history-actions button,
.feedback-buttons button,
.price-grid button,
.close-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 900;
}

.primary-button {
  width: 100%;
  min-height: 58px;
  background: var(--teal);
  color: #FFFDF8;
  font-size: 17px;
  box-shadow: 0 12px 26px rgba(21, 108, 87, 0.18);
}

.primary-button:hover {
  background: #0F5D4B;
}

.compact-primary {
  width: calc(100% - 28px);
  min-height: 52px;
  margin: 0 14px;
  font-size: 16px;
}

.secondary-button,
.ghost-button,
.link-button {
  padding: 0 14px;
  border-color: rgba(180, 140, 90, 0.24);
  background: #FFFEFA;
  color: var(--teal);
}

.ghost-button {
  min-width: 56px;
  background: var(--amber);
  color: #7A5420;
}

.link-button {
  min-height: 30px;
  padding: 0 8px;
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
}

.recorder-drawer,
.refine-drawer {
  margin: 6px 0 16px;
  border: 1px solid rgba(180, 140, 90, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.94);
}

.refine-drawer {
  margin-top: 16px;
  padding-bottom: 14px;
}

.recorder-drawer summary,
.refine-drawer summary {
  padding: 14px 15px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.recorder-drawer summary::-webkit-details-marker,
.refine-drawer summary::-webkit-details-marker,
.card-more summary::-webkit-details-marker {
  display: none;
}

.recorder-drawer summary::after,
.refine-drawer summary::after {
  content: "可选";
  float: right;
  color: #7A5420;
  font-size: 12px;
}

.recorder-drawer[open] summary,
.refine-drawer[open] summary {
  border-bottom: 1px dashed rgba(180, 140, 90, 0.28);
}

.recorder {
  display: grid;
  gap: 10px;
  margin: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FFFEFA;
}

.recorder-title {
  margin-bottom: 3px;
  font-weight: 850;
}

.recorder-copy,
.status-line,
.dialog-note {
  margin: 0 14px 10px;
  color: var(--muted);
  font-size: 13px;
}

.recorder-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-field {
  margin: 0 14px 14px;
}

audio {
  width: calc(100% - 28px);
  margin: 0 14px 10px;
}

.empty-state {
  min-height: 188px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed rgba(180, 140, 90, 0.34);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 242, 212, 0.42));
  color: var(--muted);
  text-align: center;
}

.rescue-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(180, 140, 90, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 253, 248, 0.96)),
    url("./assets/result-card-bg-v1.png") center / cover no-repeat;
}

.card-header {
  padding: 15px 16px;
  border: 1px dashed rgba(180, 140, 90, 0.28);
  border-radius: var(--radius-md);
  background: rgba(255, 242, 212, 0.74);
  backdrop-filter: blur(6px);
}

.card-tag {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.card-header h3 {
  margin-bottom: 0;
  color: var(--teal);
  font-size: 18px;
  line-height: 1.28;
}

.scene-summary {
  margin-bottom: 0;
  padding: 13px 15px;
  border: 1px dashed rgba(180, 140, 90, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-size: 13px;
}

.card-section {
  padding: 15px;
  border: 1px solid rgba(180, 140, 90, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 250, 0.88);
  backdrop-filter: blur(6px);
}

.card-section span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.card-section p {
  margin-bottom: 0;
  font-size: 16px;
}

.card-section.insight {
  border-style: dashed;
  background: rgba(223, 243, 238, 0.74);
}

.card-section.insight p {
  color: #2F4C46;
  font-size: 15px;
  font-weight: 760;
}

.card-section ol {
  margin: 0;
  padding-left: 22px;
}

.card-section li + li {
  margin-top: 7px;
}

.card-section.primary {
  border-color: rgba(21, 108, 87, 0.2);
  background: var(--teal-soft);
  box-shadow: var(--shadow);
}

.card-section.primary span {
  color: var(--teal);
}

.card-section.primary p {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.44;
  font-weight: 900;
}

.card-section.warning {
  border-color: rgba(106, 118, 115, 0.16);
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
}

.card-section.warning span {
  color: var(--muted);
}

.card-section.warning p {
  color: var(--muted);
  font-size: 14px;
}

.card-more {
  border: 1px dashed rgba(180, 140, 90, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.78);
}

.card-more summary {
  padding: 13px 15px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.card-more .card-section {
  margin: 0 12px 12px;
  box-shadow: none;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.result-actions .secondary-button {
  min-height: 48px;
  padding: 0 6px;
  font-size: 13px;
  line-height: 1.12;
  white-space: nowrap;
}

.result-actions .secondary-button:nth-child(2) {
  background: var(--teal);
  color: #FFFDF8;
  box-shadow: 0 8px 18px rgba(21, 108, 87, 0.14);
}

.feedback-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(180, 140, 90, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 248, 239, 0.86);
}

.feedback-title {
  margin-bottom: 12px;
  font-weight: 900;
}

.feedback-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.feedback-buttons button {
  min-height: 40px;
  padding: 0 8px;
  border-color: rgba(180, 140, 90, 0.22);
  background: #FFFEFA;
  color: var(--ink);
  font-size: 13px;
}

.feedback-buttons button.active {
  border-color: rgba(21, 108, 87, 0.36);
  background: var(--teal-soft);
}

#feedbackNote {
  margin-top: 10px;
}

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

.history-item {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(180, 140, 90, 0.18);
  border-radius: var(--radius-md);
  background: #FFFEFA;
}

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

.history-item strong {
  display: block;
  margin: 2px 0 4px;
}

.history-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.history-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.history-actions button {
  min-height: 38px;
  padding: 0 10px;
  border-color: rgba(180, 140, 90, 0.22);
  background: #FFFEFA;
  color: var(--ink);
}

.empty-history {
  margin-bottom: 0;
  color: var(--muted);
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 12px;
  background: rgba(32, 50, 47, 0.42);
  z-index: 10;
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 24px;
}

.dialog h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.dialog p {
  color: var(--muted);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  min-height: 38px;
  background: var(--amber);
  color: var(--ink);
}

.price-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.price-grid button {
  padding: 15px;
  border: 1px solid rgba(180, 140, 90, 0.22);
  border-radius: var(--radius-md);
  background: #FFFEFA;
  color: var(--ink);
  text-align: left;
}

.price-grid .recommended-price {
  border-color: rgba(21, 108, 87, 0.24);
  background: var(--teal-soft);
}

.price-grid span,
.price-grid strong {
  display: block;
}

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

.price-grid strong {
  margin-top: 4px;
  font-size: 18px;
}

.price-grid small {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-weight: 850;
}

.payment-order {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(21, 108, 87, 0.28);
  border-radius: var(--radius-md);
  background: rgba(255, 248, 239, 0.92);
}

.payment-order p {
  margin: 0 0 8px;
  font-size: 13px;
}

.payment-order code {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: #FFFEFA;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  word-break: break-all;
}

.payment-qr-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(223, 243, 238, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.payment-qr-box img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: #fff;
}

.payment-qr-box figcaption {
  margin: 0;
}

.payment-confirm {
  width: 100%;
  margin-top: 12px;
}

.dialog-note {
  margin: 14px 0 0;
}

@media (min-width: 860px) {
  body {
    display: grid;
    place-items: start center;
  }

  .app-shell {
    padding-top: 24px;
  }
}

@media (max-width: 390px) {
  .app-shell {
    width: min(100vw - 18px, 462px);
  }

  .hero {
    min-height: 502px;
    padding: 24px 18px 18px;
  }

  h1 {
    font-size: 33px;
  }

  .panel {
    padding: 18px;
  }

  .grade-grid {
    gap: 6px;
  }

  .choice-button {
    font-size: 13px;
  }

  .card-section.primary p {
    font-size: 23px;
  }
}

/* R15 live v2: approved static storyboard wired to real logic. */
body {
  background:
    radial-gradient(circle at 18% 8%, rgba(252, 232, 224, 0.9), transparent 28%),
    linear-gradient(180deg, #fff7e5 0, var(--bg) 42%, #eef8f4 100%);
}

.app-shell {
  width: min(390px, calc(100vw - 16px));
  padding: 0 0 36px;
}

.hero,
.panel {
  border-color: rgba(180, 140, 90, 0.2);
  border-radius: 38px;
  box-shadow: 0 18px 48px rgba(180, 140, 90, 0.14);
}

.hero {
  display: grid;
  grid-template-rows: 430px 1fr auto;
  min-height: 844px;
  margin-top: 0;
  padding: 0 24px 26px;
  background: rgba(255, 253, 248, 0.96);
}

.hero::after,
.hero-shade,
.warm-note {
  display: none;
}

.hero-art {
  width: calc(100% + 48px);
  margin-left: -24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0) 48%, rgba(255, 253, 248, 0.94) 94%),
    url("./assets/hero-mom-homework-v2.png") 62% 50% / cover no-repeat;
}

.hero-copy-wrap {
  align-self: end;
  width: 100%;
}

.hero-copy-wrap h1 {
  margin: 0;
  color: var(--ink);
  font-size: 43px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  width: 13.5em;
  max-width: none;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.5;
}

.main-cta {
  display: grid;
  width: 100%;
  min-height: 62px;
  place-items: center;
  margin-top: 26px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fffdf8;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(21, 108, 87, 0.22);
}

.input-panel,
.result-panel {
  padding: 20px;
}

.quiet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.quiet-header span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 14px;
  font-weight: 950;
}

.quiet-header strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 920;
}

.flow-block {
  margin-bottom: 17px;
}

.question-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.entry-tabs,
.grade-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

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

.entry-tab,
.choice-button {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(180, 140, 90, 0.18);
  border-radius: 22px;
  background: #fffaf0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 9px 20px rgba(180, 140, 90, 0.09);
}

.entry-tab {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}

.entry-tab::before {
  display: none;
}

.entry-tab strong {
  font-size: 13px;
}

.entry-tab span {
  display: none;
}

.grade-grid .choice-button {
  aspect-ratio: auto;
  min-height: 48px;
  border-radius: 22px;
  font-size: 13px;
}

.situation-grid .choice-button {
  min-height: 46px;
  padding: 0 14px;
  text-align: left;
}

.entry-tab.active,
.choice-button.active {
  border-color: rgba(21, 108, 87, 0.28);
  background: var(--teal-soft);
  color: var(--teal);
  box-shadow: 0 12px 28px rgba(21, 108, 87, 0.14);
  transform: none;
}

.soft-input {
  display: block;
  margin: 2px 0 18px;
}

.soft-input span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.soft-input small {
  display: block;
  margin: -2px 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.soft-input textarea {
  width: 100%;
  min-height: 92px;
  resize: none;
  padding: 14px 16px;
  border: 1px solid rgba(21, 108, 87, 0.2);
  border-radius: 24px;
  background: rgba(223, 243, 238, 0.42);
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.55;
}

.soft-input textarea::placeholder {
  color: #9b8571;
}

.form-cta {
  margin-top: 26px;
}

.situation-picker {
  margin-top: 4px;
}

.situation-picker summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(180, 140, 90, 0.2);
  border-radius: 26px;
  background: #fffaf0;
  color: var(--ink);
  font-weight: 920;
  box-shadow: 0 9px 20px rgba(180, 140, 90, 0.09);
  cursor: pointer;
  list-style: none;
}

.situation-picker summary::-webkit-details-marker {
  display: none;
}

.situation-picker summary::after {
  content: "⌄";
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
}

.situation-picker[open] summary::after {
  transform: rotate(180deg);
}

.situation-picker summary span {
  color: var(--muted);
  font-size: 13px;
}

.situation-picker summary strong {
  color: var(--teal);
  font-size: 15px;
}

.situation-picker .situation-grid {
  margin-top: 10px;
}

.empty-state {
  min-height: 220px;
  border-radius: 30px;
}

.rescue-card {
  gap: 0;
  padding: 18px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 249, 239, 0.96)),
    url("./assets/result-card-bg-v1.png") center / cover no-repeat;
  box-shadow: 0 18px 48px rgba(180, 140, 90, 0.14);
}

.insight-line {
  margin: 2px 0 14px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.45;
}

.say-box {
  padding: 20px 18px;
  border: 1px solid rgba(21, 108, 87, 0.08);
  border-radius: 28px;
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px rgba(21, 108, 87, 0.08);
}

.say-box span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.say-box p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(27px, 7.8vw, 33px);
  font-weight: 950;
  line-height: 1.24;
}

.micro-steps h2 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.micro-steps ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.micro-steps li {
  position: relative;
  padding: 10px 12px 10px 38px;
  border-radius: 18px;
  background: rgba(255, 242, 212, 0.52);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.micro-steps li::before {
  content: counter(list-item);
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fffdf8;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.avoid-section {
  margin-top: 14px;
  padding-top: 2px;
}

.avoid-section h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
}

.avoid-section p,
.why-line {
  margin: 0;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(106, 118, 115, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.5;
}

.why-line {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: var(--teal);
}

.fallback-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 242, 212, 0.72);
  color: #7a5420;
  font-size: 12px;
  font-weight: 820;
}

.result-actions {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.result-actions .secondary-button {
  min-height: 50px;
  border-radius: 999px;
  background: #fff9ef;
  color: var(--teal);
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(180, 140, 90, 0.12);
}

.result-actions .secondary-button.solid {
  background: var(--teal);
  color: #fffdf8;
}

.hidden-action {
  display: none !important;
}

.feedback-panel {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(223, 243, 238, 0.58);
}

.feedback-buttons {
  display: inline-flex;
  gap: 8px;
}

.feedback-buttons button {
  min-width: 76px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.feedback-buttons button.active {
  background: #fffdf8;
  box-shadow: 0 6px 14px rgba(180, 140, 90, 0.1);
}

@media (max-width: 430px) {
  .app-shell {
    width: min(390px, 100vw);
    padding-top: 0;
  }

  .hero,
  .panel {
    border-radius: 32px;
  }

  .hero-copy-wrap h1 {
    font-size: 41px;
  }
}
