/* Layout and wallet: one card proportion across desktop, tablet and phone. */
:root {
  --muted: #68766e;
}
body {
  background:
    radial-gradient(ellipse at 92% 0%, #e7eddf 0, transparent 48%), #f6f7f3;
}
main {
  max-width: 1680px;
  padding-inline: clamp(24px, 3.1vw, 52px);
}
#content {
  min-width: 0;
}
nav button .nav-label {
  font-size: 13px;
}
.page-heading {
  gap: 20px;
}
.page-heading > div:first-child {
  min-width: 0;
}
.subtitle {
  font-size: 13px;
  line-height: 1.6;
}
.summary-grid {
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
}
.summary {
  min-width: 0;
}
.amount {
  font-size: clamp(24px, 2.35vw, 36px);
  overflow-wrap: anywhere;
}
.summary-foot {
  line-height: 1.5;
}
.columns {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
}
.panel,
.tx-text {
  min-width: 0;
}
.tx-text b,
.tx-text small {
  overflow-wrap: anywhere;
}
.tx-amount {
  flex-shrink: 0;
}
.transaction {
  gap: 12px;
}
.tx-text b {
  font-size: 13px;
}
.tx-text small {
  font-size: 11px;
  line-height: 1.5;
}
.tx-amount {
  font-size: 13px;
}
.tag {
  font-size: 9px;
}
.legend-row {
  font-size: 11px;
}
.section-heading h2 {
  font-size: 17px;
}
.section-heading p {
  font-size: 12px;
}
.wallet-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.1fr);
  border: 1px solid #dfe5da;
  border-radius: 19px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 24px #243b2c03;
}
.wallet-display {
  background: radial-gradient(ellipse at 50% 35%, #f5f6ee, #e6ebde);
  padding: 23px 28px 15px;
  min-width: 0;
}
.wallet-display-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #7b876c;
}
.wallet-display-heading span:last-child {
  letter-spacing: 0;
}
.wallet-stack {
  position: relative;
  width: min(100%, 340px);
  height: calc(214px + (var(--stack-count) - 1) * 43px + 28px);
  margin: 25px auto 0;
  isolation: isolate;
}
.bank-card.wallet-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 1.586;
  border-radius: 16px;
  box-sizing: border-box;
  padding: 21px 23px;
  text-align: left;
  background: var(--card-bg);
  color: var(--card-ink);
  border: 1px solid #ffffff25;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  box-shadow: 0 12px 30px #172c2526;
  transition:
    transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s;
}
.bank-card.wallet-card:before {
  display: none;
}
.wallet-card .card-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.11;
}
.pattern-orbit .card-art {
  background: repeating-radial-gradient(
    ellipse at 95% 5%,
    transparent 0 29px,
    var(--card-art) 30px 50px
  );
}
.pattern-weave .card-art {
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 18px,
      var(--card-art) 18px 19px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0 18px,
      var(--card-art) 18px 19px
    );
}
.pattern-contour .card-art {
  background: repeating-radial-gradient(
    ellipse at -20% 140%,
    transparent 0 16px,
    var(--card-art) 17px 19px
  );
}
.wallet-card .card-top {
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}
.wallet-card .card-top b {
  font:
    650 clamp(13px, 4.6cqw, 16px) Manrope,
    sans-serif;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wallet-card .card-top .currency-badge {
  font-size: 10px;
  display: inline-flex;
  opacity: 1;
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 3px 6px;
}
.wallet-card .card-provider {
  display: block;
  margin-top: 14px;
  font-size: clamp(10px, 3.4cqw, 12px);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wallet-card .card-provider > span {
  display: block;
  font-size: 10px;
}
.wallet-card .card-bottom {
  margin-top: auto;
  gap: 8px;
  align-items: flex-end;
  min-width: 0;
}
.wallet-card .card-bottom > span:first-child {
  min-width: 0;
}
.wallet-card .card-label {
  font-size: 9px;
  display: block;
  margin-bottom: 4px;
}
.wallet-card .card-bottom strong {
  font:
    600 clamp(16px, 7cqw, 25px) Manrope,
    sans-serif;
  letter-spacing: -0.7px;
  display: block;
  white-space: nowrap;
}
.wallet-card .card-kind {
  font-size: 9px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding-bottom: 4px;
}
.wallet-card .card-tail {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.3px;
}
.wallet-card .card-tail > span:last-child {
  font-size: 15px;
  line-height: 1;
}
.wallet-stack > .wallet-card {
  position: absolute;
  top: calc(var(--card-index) * 43px);
  left: 0;
  z-index: calc(var(--card-index) + 1);
}
.wallet-stack > .wallet-card:hover,
.wallet-stack > .wallet-card:focus-visible {
  transform: translateY(-13px);
  box-shadow: 0 16px 35px #172c2538;
  z-index: 8;
}
.wallet-pocket {
  position: absolute;
  inset: auto -12px 0;
  height: 57px;
  z-index: 7;
  background: linear-gradient(130deg, #344a3e, #243b31);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 20px #243b3122;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 23px;
  color: #e3e8db;
  border: 1px solid #1b3328;
  pointer-events: none;
}
.wallet-pocket:before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed #bdc9b425;
  border-top: 0;
  border-radius: 0 0 15px 15px;
  pointer-events: none;
}
.wallet-pocket > span {
  font: 750 23px Manrope;
  letter-spacing: -1px;
}
.pocket-dot {
  color: #b5c899;
}
.wallet-pocket small {
  font-size: 7px;
  color: #ccd5c6;
  letter-spacing: 1.8px;
  margin: 0;
}
.wallet-hint {
  font-size: 11px;
  text-align: center;
  color: #708067;
  margin: 17px 0 0;
}
.wallet-hint span {
  margin-left: 6px;
}
.wallet-accounts {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wallet-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.wallet-list-heading h3 {
  font: 650 14px Manrope;
  margin: 0;
}
.wallet-list-heading > span {
  font-size: 10px;
  color: #7e887b;
}
.account-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #edf0e9;
  background: white;
  color: var(--ink);
  text-align: left;
  border-radius: 0;
  transition: background 0.2s;
}
.account-row:hover {
  background: #f7f9f3;
}
.account-marker {
  width: 40px;
  height: 45px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--marker);
  color: var(--marker-ink);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px #00000008;
  font-size: 20px;
}
.account-name {
  min-width: 0;
  flex: 1;
}
.account-name > b {
  font-size: 13px;
  font-weight: 600;
  display: block;
  overflow-wrap: anywhere;
}
.account-name > small {
  font-size: 10px;
  line-height: 1.5;
}
.account-money {
  text-align: right;
  min-width: 0;
  max-width: 48%;
}
.account-money > b {
  font: 650 14px Manrope;
  overflow-wrap: anywhere;
}
.account-money > small {
  font-size: 9px;
  line-height: 1.5;
}
.row-chevron {
  font-size: 21px;
  color: #9ba890;
}
.add-wallet-account {
  border: 1px dashed #cbd6c2;
  border-radius: 9px;
  padding: 13px;
  background: #fafcf7;
  color: var(--green);
  font-size: 12px;
  text-align: center;
  width: 100%;
  margin-top: auto;
  min-height: 44px;
}
.account-row + .add-wallet-account {
  margin-top: 18px;
}
.wallet-empty {
  text-align: center;
  padding: 35px;
}
.wallet-empty p {
  color: var(--muted);
}
.wallet-empty-icon {
  font-size: 40px;
  color: #a4ba85;
  margin-bottom: 10px;
}
.rate-note {
  line-height: 1.6;
  margin: 10px 0 20px;
}
.bank-card.wallet-card:active {
  transform: translateY(-18px);
}
dialog {
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
}
body:has(dialog[open]) {
  overflow: hidden;
}
#account-dialog {
  width: min(850px, calc(100% - 40px));
  padding: 28px;
  border-radius: 24px;
  background: #fbfcf8;
}
#account-dialog .modal-head {
  gap: 18px;
}
#account-dialog .modal-head .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}
#account-dialog-title {
  font-size: 22px;
  overflow-wrap: anywhere;
}
#account-dialog .icon-btn {
  flex-shrink: 0;
}
.account-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
.account-hero {
  width: 100%;
  max-width: 355px;
  margin-inline: auto;
}
.account-hero .wallet-card {
  cursor: default;
  transform: none;
}
.account-hero .wallet-card:hover {
  transform: none;
}
.private-label {
  font-size: 11px;
  color: #60754e;
  margin-bottom: 16px;
}
.account-facts dl {
  margin: 0;
}
.account-facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #e7ebe1;
  font-size: 12px;
}
.account-facts dt {
  color: #7d8976;
  flex-shrink: 0;
}
.account-facts dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.account-facts dd .link {
  padding: 0;
  font-size: 11px;
}
.account-actions {
  display: flex;
  gap: 10px;
  margin: 25px 0;
  flex-wrap: wrap;
}
.account-actions > button {
  flex: 1;
  white-space: nowrap;
  min-height: 44px;
}
.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: #eef2e7;
  padding: 17px;
  border-radius: 12px;
}
.account-stat-grid small {
  font-size: 10px;
  margin: 0 0 7px;
}
.account-stat-grid b {
  font: 650 15px Manrope;
  overflow-wrap: anywhere;
}
.account-history {
  max-height: 290px;
  overflow: auto;
}
.account-receipts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-note {
  font-size: 10px;
  line-height: 1.7;
  color: #74816e;
  margin: 20px 0 0;
}
.account-history .transaction {
  padding: 14px 0;
}
.account-history .transaction .icon-btn {
  display: none;
}
.appearance-fields {
  border: 1px solid #e1e7dc;
  border-radius: 12px;
  padding: 16px;
  margin: 23px 0 0;
  background: #f5f7f0;
}
.appearance-fields legend {
  font: 650 13px Manrope;
  padding: 0 7px;
}
.appearance-fields .account-hero {
  max-width: 300px;
  margin: 7px auto 20px;
}
.appearance-fields small {
  font-size: 11px;
  line-height: 1.6;
}
.colour-controls {
  display: flex;
  align-items: center;
  gap: 13px;
}
.colour-controls input[type="color"] {
  padding: 3px;
  width: 45px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 8px;
}
.colour-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.colour-swatch {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ccd3c7;
}
.colour-swatch:hover {
  outline: 2px solid #758c66;
}
.appearance-modal {
  width: min(490px, calc(100% - 32px));
}
@keyframes card-pop {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(-3deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}
.card-pop {
  animation: card-pop 0.4s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.icon-btn {
  min-width: 36px;
  min-height: 36px;
}
.primary,
.secondary {
  min-height: 42px;
}
.receipt-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
input,
select,
textarea {
  font-size: 16px;
}
@media (min-width: 1600px) {
  main {
    margin-right: auto;
  }
  .wallet-board {
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.3fr);
  }
  .wallet-stack {
    width: 355px;
    height: calc(224px + (var(--stack-count) - 1) * 43px + 28px);
  }
}
@media (max-width: 1180px) {
  .wallet-board {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr);
  }
  .wallet-display {
    padding: 22px 20px 15px;
  }
  .wallet-accounts {
    padding: 22px 18px;
  }
  .account-row {
    gap: 9px;
  }
  .account-money > b {
    font-size: 12px;
  }
  .account-name > b {
    font-size: 12px;
  }
  .row-chevron {
    display: none;
  }
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .chart-wrap {
    max-width: 440px;
  }
  .donut {
    width: 135px;
    height: 135px;
  }
  .legend-row {
    font-size: 12px;
  }
  .wallet-card .card-provider {
    margin-top: 10px;
  }
  .wallet-stack {
    height: calc(200px + (var(--stack-count) - 1) * 43px + 28px);
  }
}
@media (max-width: 900px) {
  .wallet-board {
    grid-template-columns: minmax(0, 1fr);
  }
  .wallet-display {
    padding-inline: 28px;
  }
  .wallet-accounts {
    padding: 22px 25px;
  }
  .wallet-stack {
    width: 340px;
    max-width: 100%;
    height: calc(214px + (var(--stack-count) - 1) * 43px + 28px);
  }
  .wallet-display-heading {
    max-width: 440px;
    margin: auto;
  }
  .wallet-hint {
    margin-bottom: 8px;
  }
  .account-row {
    padding: 15px 0;
  }
  .account-money > b {
    font-size: 14px;
  }
  .account-name > b {
    font-size: 14px;
  }
  .summary-label {
    font-size: 11px;
  }
  .summary-foot {
    font-size: 10px;
  }
  .page-heading .actions .secondary {
    display: inline-block;
  }
}
@media (max-width: 560px) {
  main {
    padding: 0 16px calc(88px + env(safe-area-inset-bottom));
    margin: 0;
  }
  .page-heading {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin: 23px 0;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .subtitle {
    font-size: 12px;
    max-width: none;
  }
  .page-heading .actions {
    width: 100%;
    gap: 10px;
  }
  .page-heading .actions button {
    flex: 1;
    font-size: 13px;
    min-height: 44px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .summary.main-summary {
    grid-column: 1/-1;
  }
  .summary .amount {
    font-size: 25px;
  }
  .summary.main-summary .amount {
    font-size: 36px;
  }
  .summary-label {
    font-size: 11px;
  }
  .summary-foot {
    font-size: 10px;
  }
  .section-heading {
    gap: 12px;
    align-items: center;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 11px;
    max-width: 230px;
  }
  .section-heading .link {
    white-space: nowrap;
    padding: 10px 0;
    font-size: 11px;
  }
  .wallet-board {
    border-radius: 16px;
  }
  .wallet-display {
    padding: 21px 23px 13px;
  }
  .wallet-stack {
    width: 100%;
    max-width: 340px;
    height: calc(
      (100vw - 80px) / 1.586 + (var(--stack-count) - 1) * 43px + 28px
    );
    max-height: 328px;
    margin-top: 20px;
  }
  .bank-card.wallet-card {
    padding: 18px 20px;
    border-radius: 14px;
  }
  .wallet-card .card-top b {
    font-size: 15px;
  }
  .wallet-card .card-bottom strong {
    font-size: clamp(16px, 6.8cqw, 25px);
  }
  .wallet-card .card-provider {
    font-size: 11px;
    margin-top: 11px;
  }
  .wallet-card .card-provider > span {
    font-size: 9px;
  }
  .wallet-card .card-label {
    font-size: 8px;
  }
  .wallet-card .card-tail {
    font-size: 7px;
    margin-top: 8px;
  }
  .wallet-pocket {
    inset-inline: -8px;
    height: 49px;
    padding-inline: 20px;
  }
  .wallet-pocket > span {
    font-size: 22px;
  }
  .wallet-pocket small {
    font-size: 6px;
  }
  .wallet-accounts {
    padding: 20px 17px;
  }
  .account-marker {
    width: 34px;
    height: 39px;
    font-size: 18px;
  }
  .account-name > b {
    font-size: 12px;
  }
  .account-money > b {
    font-size: 12px;
  }
  .account-name > small {
    font-size: 9px;
  }
  .account-money > small {
    font-size: 9px;
  }
  .account-row {
    gap: 10px;
    min-height: 72px;
  }
  .wallet-list-heading h3 {
    font-size: 13px;
  }
  .rate-note {
    font-size: 10px;
  }
  .transaction {
    gap: 10px;
  }
  .tx-text b {
    font-size: 12px;
  }
  .tx-text small {
    font-size: 10px;
  }
  .tx-amount {
    font-size: 12px;
  }
  .tx-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .panel {
    padding: 18px;
  }
  .chart-wrap {
    gap: 20px;
  }
  .legend-row {
    font-size: 10px;
  }
  .donut {
    width: 122px;
    height: 122px;
  }
  .donut-center {
    font-size: 16px;
  }
  .receipt-banner {
    flex-wrap: wrap;
  }
  .receipt-banner p {
    max-width: 210px;
    font-size: 10px;
  }
  .receipt-banner button {
    font-size: 11px;
    min-height: 40px;
  }
  .header-right {
    gap: 7px;
  }
  .header-right .icon-btn {
    font-size: 18px;
    width: 34px;
    min-width: 34px;
  }
  .demo {
    font-size: 8px;
    padding: 6px 8px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin-inline: 6px;
  }
  aside {
    height: calc(68px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #ffffffed;
    backdrop-filter: blur(12px);
  }
  nav button {
    padding: 8px 2px;
  }
  nav button .nav-label {
    font-size: 10px;
  }
  nav button span:first-child {
    font-size: 21px;
  }
  footer {
    font-size: 9px;
    padding-bottom: 8px;
  }
  #toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
    max-width: calc(100% - 32px);
    width: max-content;
    text-align: center;
    font-size: 12px;
  }
  #account-dialog {
    width: calc(100% - 18px);
    padding: 21px 17px;
    border-radius: 20px;
    max-height: calc(100dvh - 24px);
  }
  .account-detail-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .account-hero {
    max-width: 355px;
  }
  .account-hero .wallet-card {
    padding: 21px 23px;
  }
  .account-facts {
    padding: 0 3px;
  }
  .private-label {
    margin-bottom: 8px;
  }
  .account-facts dl > div {
    font-size: 12px;
    padding: 9px 0;
  }
  .account-actions {
    gap: 7px;
    margin-block: 19px;
  }
  .account-actions button {
    font-size: 11px;
    padding: 10px 8px;
  }
  .account-stat-grid {
    padding: 14px;
    gap: 8px;
  }
  .account-stat-grid b {
    font-size: 13px;
  }
  .account-stat-grid small {
    font-size: 9px;
  }
  #account-dialog-title {
    font-size: 20px;
  }
  .appearance-fields {
    padding: 13px;
  }
  .receipt-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
  .settings-box .secondary {
    margin-bottom: 8px;
  }
  .login-wrap h1 {
    font-size: 29px;
  }
  .login-wrap {
    margin: 35px auto;
  }
  .login-panel {
    padding: 22px;
  }
  .bank-card.wallet-card:active {
    transform: translateY(-8px);
  }
}
@media (max-width: 360px) {
  .wallet-display {
    padding-inline: 17px;
  }
  .wallet-stack {
    height: calc(
      (100vw - 68px) / 1.586 + (var(--stack-count) - 1) * 43px + 28px
    );
  }
  .bank-card.wallet-card {
    padding: 15px 17px;
  }
  .wallet-card .card-provider {
    margin-top: 8px;
  }
  .wallet-card .card-tail {
    font-size: 6.5px;
  }
  .header-right .demo {
    max-width: 94px;
    line-height: 1.4;
  }
  .breadcrumb {
    max-width: 95px;
  }
  .account-actions {
    flex-wrap: wrap;
  }
  .account-actions button:last-child {
    flex-basis: 100%;
  }
  .chart-wrap {
    gap: 12px;
  }
  .donut {
    width: 105px;
    height: 105px;
  }
  .donut-center {
    font-size: 14px;
  }
  .account-name > small {
    font-size: 8px;
  }
  .account-money > b {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

#preview-auth:not([hidden]) { display: grid; gap: .5rem; margin-top: 1rem; }
#preview-banner:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
#preview-banner h2, #preview-banner p { margin: .25rem 0; }
#preview-tutorial { flex: 1 0 100%; border-top: 1px solid var(--line); padding-top: .75rem; }
.preview-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: .5rem; }
.preview-tabs button { min-width: 0; min-height: 44px; background: #f4f7f4; color: inherit; border: 1px solid transparent; border-radius: .65rem; padding: .5rem .65rem; font: inherit; font-weight: 650; cursor: pointer; }
.preview-tabs button:hover { background: #edf4ef; }
.preview-tabs button[aria-selected="true"] { background: #214e43; color: #fff; }
.preview-tabs button:focus-visible { outline: 2px solid #214e43; outline-offset: 2px; }
.preview-cta { display: flex; flex-wrap: wrap; gap: .5rem; }
.preview-cta button, .tour-actions button { min-height: 44px; }
#preview-banner #preview-tip { margin: .6rem 0 0; }
#wallet-tour {
  width: min(32rem, calc(100% - 2rem));
  max-height: min(60dvh, calc(100% - 2rem));
  inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) auto;
  margin: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow: auto;
}
#wallet-tour::backdrop { background: #142c2726; backdrop-filter: blur(1px); }
.tour-progress { color: #456b5f; font-size: .85rem; font-weight: 700; }
#wallet-tour h2 { margin: .4rem 0; }
#tour-description { line-height: 1.55; }
#tour-controls { display: grid; gap: .65rem; }
#tour-controls dt { font-weight: 700; color: #214e43; }
#tour-controls dd { margin: .15rem 0 0; }
.tour-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: 1.25rem; }
@media (max-width: 560px) {
  .preview-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .preview-tabs button { padding-inline: .25rem; font-size: .85rem; }
  .preview-cta { width: 100%; }
  .preview-cta button { flex: 1 1 auto; }
  #wallet-tour { inset: auto .75rem max(.75rem, env(safe-area-inset-bottom)) .75rem; width: auto; max-height: 52dvh; }
  .tour-actions button { flex: 1 1 auto; }
}
.tutorial-steps { display: grid; gap: .65rem 1.6rem; padding-inline-start: 1.4rem; line-height: 1.5; }
#content { scroll-margin-top: 1rem; }
@media (max-width: 850px) { #preview-auth:not([hidden]) { display: none; } }
