:root {
  --primary: #0b6b4b;
  --primary-dark: #084f39;
  --ink: #17201d;
  --muted: #5f6b66;
  --bg: #faf8f2;
  --surface: #ffffff;
  --border: #d8ded9;
  --soft: #eef5f1;
  --warning: #b96a00;
  --warning-soft: #fff4df;
  --error: #b42318;
  --info: #155eef;
  --shadow: 0 24px 60px rgba(23, 32, 29, 0.16);
  --spring: cubic-bezier(0.18, 1.35, 0.32, 1);
  --gutter: 20px;
  --card-pad: 16px;
  --stack-gap: 16px;
  --section-gap: 24px;
  --card-shadow: 0 8px 20px rgba(23, 32, 29, 0.06);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(11, 107, 75, 0.12), transparent 30%),
    linear-gradient(135deg, #f5f0e6 0%, #e5eee9 100%);
  color: var(--ink);
  font-family: "Noto Sans", Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.prototype-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px);
  gap: 0;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px;
}

.phone-frame {
  width: min(100%, 390px);
  height: min(860px, calc(100vh - 40px));
  min-height: 720px;
  margin: 0 auto;
  background: #111916;
  border: 10px solid #111916;
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.status-bar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.status-icons {
  font-size: 12px;
}

.app {
  height: calc(100% - 34px);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 16px var(--gutter) 12px;
  background: var(--bg);
}

.app-header h1 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
}

.back-button {
  opacity: 0;
  pointer-events: none;
}

.app:not([data-screen="home"]):not([data-screen="splash"]) .back-button {
  opacity: 1;
  pointer-events: auto;
}

.app[data-screen="home"] .app-header {
  grid-template-columns: 44px minmax(0, 1fr);
}

.app[data-screen="home"] .back-button {
  display: none;
}

.app[data-screen="splash"] .app-header {
  display: none;
}

.profile-photo {
  justify-self: start;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  transition: transform 220ms var(--spring), box-shadow 220ms ease;
}

.profile-photo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
}

.profile-photo:active {
  transform: scale(0.92);
}

.screen-stack {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 10px var(--gutter) 28px;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 360ms var(--spring);
}

.screen.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.screen.has-footer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.screen-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px var(--gutter) 18px;
}

.screen-heading {
  margin: 6px 0 20px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 28px;
  line-height: 1.14;
}

.splash-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 34px 26px;
  background:
    linear-gradient(180deg, rgba(238, 245, 241, 0.9), rgba(250, 248, 242, 0.95)),
    var(--bg);
}

.splash-logo {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 40px rgba(11, 107, 75, 0.24);
}

.splash-logo svg {
  width: 52px;
  height: 52px;
}

.splash-screen h1 {
  margin: 10px 0 12px;
  font-size: 34px;
  line-height: 1.05;
}

.splash-copy,
.splash-note {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.splash-screen .big-action {
  margin-top: 34px;
}

.splash-note {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.home-screen {
  padding-top: 10px;
}

.balance-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  margin-top: var(--stack-gap);
  padding: var(--card-pad);
  background: #123f31;
  color: #fff;
  border-radius: 8px;
}

.balance-summary span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.balance-summary strong {
  font-size: 28px;
  line-height: 1;
}

.balance-summary button {
  grid-row: 1 / 3;
  grid-column: 2;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
}

.senior-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(11, 107, 75, 0.2);
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 800;
}

.toggle-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: inset 0 0 0 4px #cce9dd;
}

.hero-action {
  margin-top: var(--section-gap);
}

.big-action {
  margin-top: 12px;
  width: 100%;
  height: 74px;
  font-size: 22px;
}

.primary-action,
.secondary-action,
.quick-action,
.choice,
.text-button,
.cancel-link,
.amount-chips button,
.keypad button {
  border-radius: 8px;
  border: 0;
}

.primary-action {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.primary-action:disabled {
  background: #afbbb6;
  color: #eef1ef;
  cursor: not-allowed;
}

.primary-action:active,
.secondary-action:active,
.quick-action:active,
.recipient-card:active,
.keypad button:active {
  transform: translateY(1px);
}

.danger-action {
  background: var(--error);
}

.secondary-action {
  min-height: 48px;
  padding: 0 14px;
  background: #e8f0ff;
  color: var(--info);
  font-weight: 800;
}

.secondary-action.wide {
  width: 100%;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: var(--stack-gap);
}

.quick-action {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  transition: transform 220ms var(--spring), box-shadow 220ms ease, border-color 220ms ease;
}

.quick-action svg {
  color: var(--primary);
}

.help-card {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  background: #e8f0ff;
  border: 1px solid #cbdbff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  color: var(--info);
  text-align: left;
}

.help-card strong,
.help-card small {
  display: block;
}

.help-card strong {
  color: var(--ink);
  font-size: 16px;
}

.help-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.profile-hero img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

.profile-hero h2 {
  margin: 4px 0 2px;
  font-size: 26px;
}

.profile-hero span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.bank-card,
.add-bank-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  color: var(--ink);
  text-align: left;
}

.bank-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.bank-card h3 {
  margin: 10px 0 4px;
  font-size: 18px;
}

.bank-card p,
.bank-card small,
.add-bank-card small {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.add-bank-card {
  margin-top: 12px;
  border-style: dashed;
}

.add-bank-card svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
  justify-self: center;
}

.add-bank-card strong,
.add-bank-card small {
  display: block;
}

.profile-actions {
  display: grid;
  gap: 10px;
  margin-top: var(--stack-gap);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: var(--section-gap) 0 12px;
}

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

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

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

.recipient-card {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--card-shadow);
  transition: transform 220ms var(--spring), box-shadow 220ms ease, border-color 220ms ease;
}

.selectable .recipient-card {
  grid-template-columns: 52px 1fr;
}

.recipient-card.is-selected {
  border-color: var(--primary);
  background: #f2fbf7;
}

.avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff3ea;
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 900;
}

.avatar.amber {
  background: #ffe8be;
  color: #7a4300;
}

.avatar.blue {
  background: #e1eaff;
  color: #17429b;
}

.recipient-card strong,
.selected-person strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.recipient-card small,
.recipient-card em,
.selected-person small,
.selected-person em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.safety-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid rgba(11, 107, 75, 0.18);
  border-radius: 8px;
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.safety-note svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.review-warning {
  background: var(--warning-soft);
  border-color: rgba(185, 106, 0, 0.24);
  color: #754400;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.input-shell {
  min-height: 58px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.input-shell:focus-within {
  border-color: var(--primary);
}

.input-shell svg {
  color: var(--muted);
}

.input-shell input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
}

.helper {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.helper.centered {
  text-align: center;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  padding: 5px;
  border-radius: 8px;
  background: #eef0eb;
}

.choice {
  min-height: 46px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.choice.is-selected {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(23, 32, 29, 0.08);
}

.sticky-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  margin: 0;
  padding: 12px var(--gutter) 18px;
  background: linear-gradient(180deg, rgba(250, 248, 242, 0), var(--bg) 20%);
}

.screen.has-footer .sticky-footer {
  position: static;
  flex: 0 0 auto;
  padding: 12px var(--gutter) 18px;
  border-top: 1px solid rgba(216, 222, 217, 0.8);
  background: var(--bg);
  box-shadow: 0 -14px 24px rgba(23, 32, 29, 0.08);
}

.footer-helper {
  min-height: 20px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.selected-person,
.secure-banner {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.text-button,
.cancel-link {
  min-height: 44px;
  padding: 0 8px;
  background: transparent;
  color: var(--info);
  font-weight: 800;
}

.amount-display {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  margin: var(--section-gap) 0 0;
  min-height: 84px;
  color: var(--ink);
  transform-origin: center;
}

.amount-display.is-pulsing {
  animation: amount-pop 260ms var(--spring);
}

.amount-display span {
  font-size: 32px;
  font-weight: 800;
}

.amount-display output {
  font-size: clamp(32px, 10vw, 36px);
  font-weight: 900;
  line-height: 1;
}

.amount-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: var(--stack-gap);
}

.amount-chips button {
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: var(--stack-gap);
}

.keypad button {
  min-height: 58px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.keypad button svg {
  margin: 0 auto;
}

.keypad button[data-clear],
.text-key {
  font-size: 15px;
  color: var(--muted);
}

.review-amount {
  display: grid;
  gap: 6px;
  margin: 10px 0 var(--stack-gap);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.review-amount small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.review-amount strong {
  font-size: clamp(32px, 10vw, 36px);
  line-height: 1;
}

.review-card,
.receipt-card {
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.review-row {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.review-row:last-child {
  border-bottom: 0;
}

.review-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.review-row strong {
  font-size: 17px;
  line-height: 1.28;
}

.balance-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: var(--stack-gap);
  padding: 14px;
  background: #eef4ff;
  border: 1px solid #cbdbff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.balance-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.balance-card strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.secure-banner {
  grid-template-columns: 32px 1fr;
  background: var(--soft);
  border-color: rgba(11, 107, 75, 0.2);
  color: var(--primary-dark);
  font-size: 16px;
  line-height: 1.35;
}

.secure-banner svg {
  width: 28px;
  height: 28px;
}

.pin-helper {
  margin: var(--section-gap) 0 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
  transform-origin: center;
}

.pin-dots.is-pulsing {
  animation: pin-bump 240ms var(--spring);
}

.pin-dots span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: transparent;
}

.pin-dots span.is-filled {
  border-color: var(--primary);
  background: var(--primary);
}

.error-message {
  min-height: 24px;
  margin: 0;
  color: var(--error);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.pin-keypad {
  margin-top: 10px;
  margin-bottom: 0;
}

.pin-footer {
  display: grid;
  gap: 8px;
}

.cancel-link {
  display: block;
  min-height: 38px;
  margin: 0 auto;
  color: var(--error);
}

.success-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 42px auto 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  animation: success-pop 560ms var(--spring) both;
}

.success-mark svg {
  width: 48px;
  height: 48px;
}

.success-sparks {
  position: relative;
  width: 110px;
  height: 1px;
  margin: 0 auto 10px;
}

.success-sparks span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: spark 720ms var(--spring) 130ms both;
}

.success-sparks span:nth-child(1) { --x: -44px; --y: -20px; background: var(--primary); }
.success-sparks span:nth-child(2) { --x: -28px; --y: 10px; background: var(--info); }
.success-sparks span:nth-child(3) { --x: -6px; --y: -28px; background: var(--warning); }
.success-sparks span:nth-child(4) { --x: 18px; --y: 12px; background: var(--primary); }
.success-sparks span:nth-child(5) { --x: 36px; --y: -18px; background: var(--info); }
.success-sparks span:nth-child(6) { --x: 48px; --y: 6px; background: var(--warning); }

.success-title {
  margin: 0;
  max-width: 100%;
  padding: 0 8px;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 8vw, 32px);
  line-height: 1.14;
  text-align: center;
}

.success-copy {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}

.success-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.centered-button {
  display: block;
  margin: 14px auto 0;
}

.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px;
  background: rgba(23, 32, 29, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.bottom-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-panel {
  width: min(100%, 370px);
  padding: 10px var(--gutter) var(--gutter);
  background: var(--surface);
  border-radius: 16px 16px 10px 10px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: transform 200ms ease;
}

.bottom-sheet.is-open .sheet-panel {
  transform: translateY(0);
}

.screen.is-active .quick-action,
.screen.is-active .recipient-card,
.screen.is-active .review-card,
.screen.is-active .balance-card,
.screen.is-active .bank-card,
.screen.is-active .add-bank-card {
  animation: rise-spring 420ms var(--spring) both;
}

.screen.is-active .quick-action:nth-child(2),
.screen.is-active .recipient-card:nth-child(2) {
  animation-delay: 45ms;
}

.screen.is-active .quick-action:nth-child(3),
.screen.is-active .recipient-card:nth-child(3) {
  animation-delay: 90ms;
}

.screen.is-active .quick-action:nth-child(4) {
  animation-delay: 135ms;
}

@keyframes rise-spring {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes amount-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes pin-bump {
  0% { transform: translateY(0); }
  45% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes success-pop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  58% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spark {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.4);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), var(--y)) scale(1);
  }
}

.sheet-handle {
  width: 54px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--border);
}

.sheet-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.sheet-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.balance-result {
  color: var(--ink) !important;
  font-size: 18px !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  max-width: min(340px, calc(100vw - 32px));
  padding: 12px 16px;
  background: #17201d;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.prototype-notes {
  display: none;
  max-width: 420px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(216, 222, 217, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.prototype-notes h2 {
  margin: 8px 0 12px;
  font-size: 34px;
  line-height: 1.05;
}

.prototype-notes p,
.prototype-notes li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.prototype-notes ol {
  margin: 18px 0 0;
  padding-left: 20px;
}

@media (max-width: 860px) {
  .prototype-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 16px;
  }

  .prototype-notes {
    order: -1;
    max-width: 390px;
    margin: 0 auto;
    padding: 18px;
  }

  .prototype-notes h2 {
    font-size: 25px;
  }

  .phone-frame {
    height: min(800px, calc(100vh - 24px));
    min-height: 680px;
  }
}

@media (max-width: 430px) {
  .prototype-shell {
    padding: 0;
  }

  .prototype-notes {
    display: none;
  }

  .phone-frame {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }
}

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