.phone-frame {
  width: min(430px, 100%);
  margin: 28px auto;
  padding: 12px;
}

.miniapp {
  position: relative;
  min-height: 844px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 38px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.screen {
  min-height: 714px;
  padding-bottom: 92px;
}

.topbar,
.tabbar {
  position: sticky;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(18px);
}

.topbar {
  top: 0;
  height: 58px;
  padding: 0 var(--space-4);
  border-bottom: 1px solid rgba(23, 63, 52, 0.08);
}

.topbar > strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.icon-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--forest);
  font: 700 17px var(--font-editorial);
}

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 76px;
  border-top: 1px solid var(--line);
}

.tabbar button {
  flex: 1;
  display: grid;
  gap: 2px;
  place-items: center;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  line-height: 1.25;
}

.tabbar .icon {
  width: 19px;
  height: 19px;
}

.tabbar button.active {
  color: var(--forest);
  font-weight: 700;
}

.gold-action,
.primary {
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.gold-action {
  color: var(--forest);
  background: var(--gold);
}

.primary {
  color: white;
  background: var(--forest);
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  color: var(--brick);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.text-action .icon {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 12px;
}

.section-heading h2 {
  margin: 0;
  color: var(--forest);
  font-size: 21px;
  letter-spacing: -0.03em;
}

.section-heading button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.activity-card {
  display: grid;
  grid-template-columns: 44% 1fr;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 52, 0.06);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.activity-card img {
  width: 100%;
  height: 100%;
  min-height: 198px;
  object-fit: cover;
}

.activity-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px;
}

.activity-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.activity-card h3 {
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 17px;
  line-height: 1.35;
}

.activity-card strong {
  margin-bottom: 8px;
  color: var(--brick);
  font-size: 12px;
  line-height: 1.45;
}

.activity-card .text-action {
  margin-top: auto;
}

.page-intro {
  padding: 30px 22px 18px;
}

.page-intro p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-intro h1 {
  margin: 0;
  color: var(--forest);
  font: 700 30px/1.25 var(--font-editorial);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--forest-soft);
}

.segmented button {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.segmented button.active {
  color: white;
  background: var(--forest);
}

.soft-note,
.privacy-callout {
  padding: 16px;
  border-radius: var(--radius-sm);
  color: var(--forest);
  background: var(--gold-soft);
}

.soft-note p,
.privacy-callout p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.demo-note,
.privacy-note,
.screen-footnote {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.status-banner {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius-md);
  color: var(--forest);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.status-banner > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-soft);
}

.status-banner.success > span {
  color: white;
  background: var(--forest);
}

.status-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.secondary-action {
  padding: 0 18px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: var(--forest);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.app-toast {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 88px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 394px;
  margin: auto;
  padding: 13px 14px 13px 18px;
  border-radius: 999px;
  color: white;
  background: var(--forest);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.app-toast button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--forest);
  background: var(--gold);
  font-size: 11px;
  font-weight: 700;
}
