:root {
  color-scheme: light;
  --canvas: #ede8df;
  --surface: #fffdf8;
  --surface-soft: #f6f0e7;
  --ink: #1f2825;
  --muted: #69716c;
  --line: #ded7cc;
  --brand: #1d5b4d;
  --brand-dark: #143f36;
  --brand-soft: #dfece6;
  --accent: #b66b46;
  --danger: #a43c32;
  --warning: #805d17;
  --shadow: 0 24px 70px rgba(31, 40, 37, 0.14);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.92), transparent 34rem),
    var(--canvas);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.prototype-shell {
  position: relative;
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 20px 112px;
  background: var(--surface);
  overflow: hidden;
}

.topbar,
.section-heading,
.dialog-heading,
.memory-meta,
.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  align-items: flex-start;
}

.topbar-actions,
.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
}

.language-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.language-button {
  min-width: 38px;
  min-height: 34px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.language-button.is-active {
  background: var(--surface);
  box-shadow: 0 1px 5px rgba(31, 40, 37, 0.12);
  color: var(--brand-dark);
}

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

h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 7vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.eyebrow,
.card-kicker,
.timeline-date,
.version-label,
.response-option span,
.memory-type {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  place-items: center;
}

.prototype-notice {
  display: flex;
  gap: 9px;
  margin: 22px 0 24px;
  padding: 11px 13px;
  border: 1px solid #d9e5df;
  border-radius: 12px;
  background: #f1f7f4;
  color: #40534c;
  font-size: 0.78rem;
  line-height: 1.45;
}

.test-guide {
  margin-bottom: 20px;
  padding: 17px;
  border: 1px solid #d7c9b7;
  border-radius: 18px;
  background: #fbf5ea;
}

.test-guide h2 {
  margin-bottom: 7px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: 0;
}

.test-guide > p:not(.card-kicker) {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.research-context,
.qa-mode-banner {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.research-context {
  border: 1px solid #d7c9b7;
  background: #fbf5ea;
  color: #5e5549;
}

.qa-mode-banner {
  display: grid;
  gap: 3px;
  border: 1px solid #e1c681;
  background: #fff5d8;
  color: #624b12;
}

.qa-mode-banner[hidden] {
  display: none;
}

.qa-mode-banner strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.progress-row {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7dccd;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 180ms ease;
}

.compact-button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.8rem;
}

.screen {
  animation: fade-in 180ms ease-out;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.relationship-strip {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.relationship-strip strong {
  color: var(--brand);
}

.hero-card,
.change-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--brand);
  box-shadow: 0 18px 40px rgba(29, 91, 77, 0.22);
  color: #fff;
}

.hero-card .card-kicker,
.change-card .version-label {
  color: #c6ddd5;
}

.hero-card h2 {
  color: #fff;
}

.hero-card > p:not(.card-kicker) {
  color: #e0eee8;
  line-height: 1.55;
}

.source-chip,
.detail-source {
  margin: 18px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  line-height: 1.4;
}

.button-row,
.card-actions,
.filter-row,
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.danger-button,
.danger-filled,
.quick-replies button {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.full-button {
  width: 100%;
  margin-top: 18px;
}

.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.hero-card .primary-button,
.change-card .primary-button {
  border-color: #fff;
  background: #fff;
  color: var(--brand-dark);
}

.secondary-button,
.quick-replies button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.hero-card .secondary-button {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.text-button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 750;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(29, 91, 77, 0.35);
  text-underline-offset: 4px;
}

.hero-card .text-button {
  margin-top: 10px;
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.danger-button {
  border: 1px solid #e4c4c0;
  background: transparent;
  color: var(--danger);
}

.danger-filled {
  border: 1px solid var(--danger);
  background: var(--danger);
  color: #fff;
}

.boundary-card,
.conversation-preview,
.memory-card,
.timeline-card,
.comparison-card {
  margin-top: 14px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.boundary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.boundary-card p:last-child,
.section-copy,
.memory-source,
.timeline-card p,
.action-note,
.input-help {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.52;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span:not(.sr-only) {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 99px;
  background: #babeb9;
  transition: background 160ms ease;
}

.switch span:not(.sr-only)::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--brand);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.message {
  max-width: 92%;
  padding: 14px 15px;
  border-radius: 16px 16px 16px 5px;
  background: var(--surface-soft);
  line-height: 1.5;
}

.conversation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
}

.conversation-header h2,
.conversation-header p {
  margin: 0;
}

.conversation-header h2 {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 780;
}

.conversation-header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.atlas-mark {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  place-items: center;
}

.day-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.day-divider::before,
.day-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.chat-thread,
#day-two-thread {
  display: grid;
  gap: 12px;
}

#day-one-response {
  display: grid;
  gap: 12px;
}

.user-message {
  margin-left: auto;
  border-radius: 16px 16px 5px;
  background: var(--brand);
  color: #fff;
}

.scenario-options {
  display: grid;
}

.scenario-options button {
  width: 100%;
  text-align: left;
}

.time-transition {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 24px 0 8px;
  padding: 22px 16px;
  border: 1px solid #d8c9b7;
  border-radius: 18px;
  background: #fbf5ea;
  color: #665b4d;
  text-align: center;
}

.time-transition > span {
  font-size: 1.45rem;
}

.time-transition strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.time-transition small {
  max-width: 290px;
  line-height: 1.45;
}

.return-home-card {
  margin-top: 8px;
  padding: 22px;
  border: 1px solid #c5d8cf;
  border-radius: 22px;
  background: #f2f8f4;
}

.home-relationship {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.76rem;
}

.home-relationship strong {
  color: var(--brand);
}

.home-followup-label {
  margin-top: 0;
  color: var(--brand);
}

.return-home-card h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.return-home-card > p:not(.card-kicker) {
  color: var(--muted);
  line-height: 1.5;
}

.home-milestone {
  display: grid;
  gap: 3px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ccddd5;
}

.home-milestone span {
  color: var(--muted);
  font-size: 0.7rem;
}

.home-milestone strong {
  font-size: 0.84rem;
}

.source-link {
  width: fit-content;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px dashed rgba(29, 91, 77, 0.45);
  background: transparent;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 720;
}

.relationship-summary,
.paywall-hero {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--brand-dark), var(--brand));
  box-shadow: 0 18px 40px rgba(29, 91, 77, 0.2);
  color: #fff;
}

.relationship-summary .card-kicker,
.paywall-hero .card-kicker {
  color: #c6ddd5;
}

.relationship-summary h2,
.paywall-hero h2 {
  color: #fff;
}

.relationship-summary > p:not(.card-kicker),
.paywall-hero > p:not(.card-kicker) {
  color: #e0eee8;
  line-height: 1.55;
}

.journey-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.journey-stats div {
  display: grid;
  gap: 2px;
}

.journey-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.journey-stats span {
  color: #c6ddd5;
  font-size: 0.73rem;
}

.relationship-section-heading {
  margin-top: 26px;
}

.context-heading {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.featured-moment {
  border-color: #c9a78e;
  box-shadow: 0 8px 24px rgba(85, 58, 37, 0.08);
}

.context-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.context-card.is-corrected {
  border-color: #91af9a;
  background: #f2f8f3;
}

.context-card.is-deleted {
  border-color: #c9c3bb;
  background: #f4f2ee;
}

.context-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.1em;
}

.context-value {
  margin-bottom: 6px;
  font-size: 1.04rem;
  font-weight: 760;
}

.paywall-hero {
  margin-bottom: 22px;
}

.plan-options {
  display: grid;
  gap: 11px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-options > legend {
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 760;
}

.plan-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.plan-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(29, 91, 77, 0.11);
}

.plan-card.featured-plan {
  border-color: #b9cfc5;
}

.plan-card input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.plan-card > span {
  display: grid;
  gap: 4px;
}

.plan-card b {
  font-size: 0.88rem;
}

.plan-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.plan-card > strong {
  color: var(--brand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

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

.primary-button.is-selected,
.secondary-button.is-selected {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.quick-replies {
  margin-top: 12px;
}

.quick-replies button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.quick-replies button.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.quick-replies button:disabled:not(.is-selected) {
  opacity: 0.55;
}

.followup-response {
  margin-top: 12px;
  border-left: 3px solid var(--brand);
}

.section-heading {
  align-items: flex-start;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-copy {
  margin: 12px 0 20px;
}

.count-pill,
.permission {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 750;
}

.count-pill.warning {
  background: #f1e6c8;
  color: var(--warning);
}

.memory-card:first-child {
  margin-top: 0;
  border-color: #c9a78e;
  box-shadow: 0 8px 24px rgba(85, 58, 37, 0.08);
}

.memory-value {
  margin-bottom: 6px;
  font-size: 1.04rem;
  font-weight: 700;
}

.memory-source {
  margin-bottom: 14px;
  font-size: 0.76rem;
}

.filter-row {
  margin-bottom: 4px;
}

.filter-button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
}

.filter-button.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.timeline-event {
  position: relative;
  padding-left: 22px;
}

.timeline-event::before {
  position: absolute;
  top: 20px;
  bottom: -18px;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-event:last-child::before {
  display: none;
}

.timeline-marker {
  position: absolute;
  top: 23px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-card {
  margin-top: 12px;
}

.timeline-card p:not(.timeline-date) {
  margin-bottom: 6px;
}

.change-card h3 {
  margin-top: 22px;
}

.version-row > span {
  color: #c6ddd5;
}

.version-row div {
  display: grid;
  gap: 4px;
}

.change-list {
  margin: 0;
  padding-left: 20px;
  color: #e0eee8;
  line-height: 1.65;
}

.comparison-prompt {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.87rem;
}

.response-option {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.response-option p {
  margin: 5px 0 0;
  line-height: 1.5;
}

.new-response {
  border: 1px solid #c3d9cf;
  background: #f0f7f3;
}

.stacked-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.action-note {
  text-align: center;
}

#survey-form {
  display: grid;
  gap: 16px;
}

#survey-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#survey-form legend,
#survey-form > label,
.field-grid label {
  display: grid;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 740;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 11px;
}

.radio-question {
  padding-top: 2px !important;
}

.radio-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.radio-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 650;
}

.radio-options input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
}

.price-card {
  position: relative;
  display: block;
}

.price-card input {
  position: absolute;
  opacity: 0;
}

.price-card span {
  display: grid;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  transition: border 140ms ease, background 140ms ease, transform 140ms ease;
}

.price-card strong {
  margin-bottom: 12px;
  color: var(--brand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
}

.price-card b {
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.price-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.42;
}

.price-card input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(29, 91, 77, 0.12);
  transform: translateY(-1px);
}

textarea,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #b8bcb8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.consent-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--muted);
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.45;
}

.consent-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(16px);
}

.nav-button {
  display: grid;
  gap: 3px;
  padding: 7px 3px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.69rem;
  place-items: center;
}

.nav-button.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 750;
}

.nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

dialog {
  width: min(calc(100% - 32px), 420px);
  max-height: calc(100vh - 32px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  overflow: auto;
}

dialog::backdrop {
  background: rgba(20, 27, 25, 0.48);
  backdrop-filter: blur(3px);
}

dialog label {
  display: block;
  margin: 16px 0 7px;
  font-size: 0.84rem;
  font-weight: 700;
}

dialog input {
  width: 100%;
  padding: 13px;
  border: 1px solid #b8bcb8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

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

.consent-list {
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

details {
  margin: 12px 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 720;
}

pre {
  max-height: 220px;
  margin: 12px 0 0;
  overflow: auto;
  font-size: 0.68rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

#result-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.67rem;
}

.upload-status {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 0.8rem;
}

.upload-status span {
  color: var(--muted);
  line-height: 1.45;
}

.upload-status.is-submitting {
  border-color: #cfb795;
  background: #fff7e8;
}

.upload-status.is-success,
.upload-status.is-deleted {
  border-color: #9ab4a1;
  background: #eef7f0;
}

.upload-status.is-error {
  border-color: #d8a4a0;
  background: #fff0ef;
}

.collector-health-link {
  display: inline-block;
  margin: -4px 0 10px;
  font-size: 0.78rem;
}

#receipt-panel {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px dashed #9ab4a1;
  border-radius: 10px;
  background: #f4faf5;
}

#receipt-panel .input-help {
  margin-top: 0;
}

#receipt-id {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
}

dialog .button-row {
  margin-top: 18px;
}

.detail-source {
  background: var(--surface-soft);
}

.toast {
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: 92px;
  left: 16px;
  width: min(calc(100% - 32px), 420px);
  margin: 0 auto;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 8px 30px rgba(31, 40, 37, 0.24);
  color: #fff;
  font-size: 0.84rem;
  text-align: center;
}

.prototype-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.prototype-footer .text-button {
  font-size: 0.72rem;
}

html[lang^="zh"] body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", ui-sans-serif, sans-serif;
}

html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] .price-card strong {
  font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  letter-spacing: 0;
}

.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;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(182, 107, 70, 0.42);
  outline-offset: 2px;
}

@media (min-width: 700px) {
  body {
    padding: 32px 0;
  }

  .prototype-shell {
    min-height: calc(100vh - 64px);
    border: 1px solid rgba(31, 40, 37, 0.08);
    border-radius: 32px;
    box-shadow: var(--shadow);
  }

  .bottom-nav {
    bottom: 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 0 0 32px 32px;
  }
}

@media (max-width: 390px) {
  .prototype-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar {
    gap: 8px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .language-switch {
    gap: 2px;
  }

  .language-button {
    min-width: 34px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .field-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
