:root {
  color-scheme: light;
  --paper: #f2f7fc;
  --surface: #ffffff;
  --surface-muted: #e7f1fa;
  --control-muted: #e5eef6;
  --control-muted-hover: #d7e6f2;
  --ink: #101820;
  --muted: #4b6275;
  --placeholder: #50677a;
  --line: #cbdce9;
  --control-line: #71899c;
  --accent: #0067b2;
  --accent-hover: #004f8a;
  --accent-fill: #0072c6;
  --accent-fill-hover: #005b9e;
  --accent-soft: #dceefd;
  --on-accent: #ffffff;
  --danger: #b42318;
  --danger-fill: #b42318;
  --on-danger: #ffffff;
  --focus: #006fbe;
  --focus-ring: rgba(0, 111, 190, 0.2);
  --danger-ring: rgba(180, 35, 24, 0.16);
  --qr-surface: #ffffff;
  --toast-background: #101820;
  --toast-ink: #ffffff;
  --backdrop: rgba(8, 24, 36, 0.54);
  --shadow: 0 14px 36px rgba(19, 70, 105, 0.14);
  --app-shadow: 0 24px 70px rgba(19, 70, 105, 0.18);
  --composer-shadow: 0 8px 24px rgba(19, 70, 105, 0.08);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #08131d;
  --surface: #0f202d;
  --surface-muted: #142a3a;
  --control-muted: #1a3040;
  --control-muted-hover: #223d50;
  --ink: #f4f8fb;
  --muted: #aabfce;
  --placeholder: #91aaba;
  --line: #2d4659;
  --control-line: #7891a4;
  --accent: #5cc3f7;
  --accent-hover: #8dd7fb;
  --accent-fill: #006eae;
  --accent-fill-hover: #005b91;
  --accent-soft: #173c52;
  --on-accent: #ffffff;
  --danger: #ff9b92;
  --danger-fill: #b42318;
  --on-danger: #ffffff;
  --focus: #61c4f5;
  --focus-ring: rgba(97, 196, 245, 0.24);
  --danger-ring: rgba(255, 155, 146, 0.22);
  --qr-surface: #ffffff;
  --toast-background: #eaf4fa;
  --toast-ink: #0a1822;
  --backdrop: rgba(0, 7, 13, 0.7);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  --app-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  --composer-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

.app-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  background: var(--surface);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.app-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: calc(64px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  padding: env(safe-area-inset-top) 20px 0;
  background: var(--surface);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.app-brand-name {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.text-button,
.small-button,
.icon-button,
.danger-button {
  border: 0;
  background: transparent;
}

.text-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
}

.text-button:hover {
  color: var(--accent-hover);
  background: var(--surface-muted);
}

.app-shell {
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  padding: 28px 20px calc(18px + env(safe-area-inset-bottom));
}

.view {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.app-footer {
  flex: 0 0 auto;
  width: 100%;
  padding: 0 20px calc(12px + env(safe-area-inset-bottom));
  color: var(--muted);
  background: var(--paper);
  text-align: center;
}

.app-footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

.app-footer a:hover {
  color: var(--accent);
}

.app-footer a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

:is(h1, h2, h3)[tabindex="-1"]:focus {
  outline: none;
}

h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.screen-heading {
  margin-bottom: 24px;
}

.screen-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.setup-summary {
  max-width: 34ch;
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.setup-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px 10px 10px;
  background: var(--surface-muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.4;
}

.setup-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.setup-step-copy {
  display: grid;
  gap: 2px;
  padding: 2px 0;
}

.setup-step-copy strong {
  font-size: 0.86rem;
  font-weight: 680;
}

.setup-step-copy > span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
}

.setup-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.4;
  text-underline-offset: 3px;
}

.setup-learn-more:hover {
  color: var(--accent-hover);
}

.setup-learn-more:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.setup-start-button {
  margin-top: 14px;
}

.setup-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.setup-privacy-note:hover {
  color: var(--accent);
}

.setup-legal-note {
  margin-top: 7px;
}

.setup-privacy-note:focus-visible,
.settings-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.setup-local-note {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
}

.setup-form {
  gap: 22px;
}

.setup-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
}

.setup-more-options {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.setup-more-options summary {
  min-height: 52px;
  padding: 16px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.setup-more-options summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.setup-more-fields {
  display: grid;
  gap: 20px;
  padding: 2px 0 22px;
}

.generator-view {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.generator-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
}

.payment-composer {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--composer-shadow);
  overflow: hidden;
}

.receive-account-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--surface-muted);
  text-align: left;
  transition: color 120ms ease, background 120ms ease;
}

.receive-account-button:hover {
  color: var(--accent);
  background: var(--control-muted-hover);
}

.receive-account-button:focus-visible {
  border-radius: 12px 12px 0 0;
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.receive-account-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.receive-account-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.receive-account-button strong {
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 680;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receive-account-chevron {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 450;
  line-height: 1;
}

.create-actions {
  display: grid;
  margin-top: 16px;
}

.generator-form > .form-error {
  margin: 12px 0 0;
}

form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

.composer-field {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  transition: background 120ms ease;
}

.composer-field:focus-within {
  background: var(--surface-muted);
}

.field label,
.select-label {
  font-size: 0.8125rem;
  font-weight: 650;
}

.field label span,
.field small {
  color: var(--muted);
  font-weight: 500;
}

.field input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input:hover,
select:hover {
  border-color: var(--muted);
}

.field input:focus,
select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}

.field input::placeholder {
  color: var(--placeholder);
}

.field small {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.amount-control {
  display: flex;
  align-items: center;
  min-height: 68px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  transition: outline-color 120ms ease, box-shadow 120ms ease;
}

.amount-control:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.amount-control:has(input[aria-invalid="true"]) {
  outline-color: var(--danger);
}

.amount-control:has(input[aria-invalid="true"]):focus-within {
  outline-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-ring);
}

.amount-control > span {
  margin-right: 10px;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
}

.amount-control input {
  min-width: 0;
  min-height: 66px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: clamp(2rem, 10vw, 2.55rem);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.045em;
  outline: none;
}

.amount-control input:focus,
.amount-control input:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
}

.reference-field input {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
}

.reference-field input:hover,
.reference-field input:focus {
  border: 0;
  box-shadow: none;
}

.reference-field input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.reference-field input[aria-invalid="true"]:focus-visible {
  outline-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-ring);
}

.form-error {
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.form-error:empty {
  display: none;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.field-warning {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.4;
}

.field-warning:empty {
  display: none;
}

.reference-clean-button {
  justify-self: start;
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field input[aria-invalid="true"]:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-ring);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.88rem;
  font-weight: 680;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.primary-button {
  border: 1px solid var(--accent-fill);
  color: var(--on-accent);
  background: var(--accent-fill);
  box-shadow: none;
}

.primary-button:hover {
  border-color: var(--accent-fill-hover);
  background: var(--accent-fill-hover);
}

.primary-button:active {
  box-shadow: none;
  transform: translateY(1px);
}

.secondary-button {
  border: 1px solid var(--control-line);
  color: var(--ink);
  background: var(--surface);
}

.secondary-button:hover {
  border-color: var(--muted);
  background: var(--surface-muted);
}

.scan-instruction {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.verification-notice {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 10px;
  background: var(--accent-soft);
}

.verification-notice strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.35;
}

.verification-notice p {
  margin: 5px 0 4px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.verification-notice a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  text-underline-offset: 3px;
}

.verification-notice a:hover {
  color: var(--accent-hover);
}

.verification-notice a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.qr-card {
  width: 100%;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 6vw, 26px);
  background: var(--qr-surface);
  box-shadow: var(--shadow);
}

#qr-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
}

.result-share-button {
  margin: 0 0 22px;
}

.payment-details {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  overflow: hidden;
}

.payment-details > div {
  display: grid;
  grid-template-columns: minmax(82px, 0.7fr) minmax(0, 1.7fr);
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.payment-details > div:last-child {
  border-bottom: 0;
}

.payment-details dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.payment-details dd {
  min-width: 0;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 620;
  overflow-wrap: anywhere;
  text-align: right;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.privacy-intro,
.legal-intro {
  max-width: 38ch;
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.privacy-content,
.legal-content {
  border-top: 1px solid var(--line);
}

.privacy-content section,
.legal-content section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-content h2,
.legal-content h2 {
  margin: 0 0 7px;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.privacy-content p,
.legal-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.privacy-back-button,
.legal-back-button {
  margin-top: 24px;
}

.legal-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  text-underline-offset: 3px;
}

.legal-credit:hover {
  color: var(--accent-hover);
}

.legal-credit:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

dialog {
  color: var(--ink);
}

.sheet-dialog {
  width: min(calc(100% - 24px), 520px);
  max-height: min(88vh, 760px);
  max-height: min(88dvh, 760px);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: auto;
}

.sheet-dialog::backdrop {
  background: var(--backdrop);
}

.dialog-header,
.section-heading,
.account-row,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dialog-header {
  align-items: flex-start;
}

.dialog-header h2 {
  margin: 7px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.icon-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--control-muted);
  font-size: 1.35rem;
  line-height: 1;
}

.icon-button:hover {
  color: var(--ink);
  background: var(--control-muted-hover);
}

.dialog-intro {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.account-select-fieldset {
  min-width: 0;
  margin: 18px 0 0;
  border: 0;
  padding: 0;
}

.account-select-list {
  border-top: 1px solid var(--line);
}

.account-choice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  cursor: pointer;
}

.account-choice:hover {
  background: var(--surface-muted);
}

.account-choice:hover .account-choice-meta strong {
  color: var(--accent);
}

.account-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.account-choice-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-choice-meta strong {
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}

.account-choice-meta span {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.settings-section {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.settings-section h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 680;
}

.settings-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface-muted);
  text-decoration: none;
}

.settings-link > span:first-child {
  display: grid;
  gap: 3px;
}

.settings-link strong {
  font-size: 0.875rem;
  font-weight: 680;
}

.settings-link strong + span {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.settings-link > span:last-child {
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.settings-link:hover {
  background: var(--control-muted-hover);
}

.small-button {
  min-height: 44px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 650;
}

.small-button:hover {
  border-color: var(--muted);
}

.accounts-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.account-row {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.account-meta {
  min-width: 0;
}

.account-meta strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
}

.account-meta span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.account-actions button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--control-line);
  border-radius: 7px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--control-muted);
  font-size: 0.8125rem;
  font-weight: 620;
}

.account-actions button:hover {
  background: var(--control-muted-hover);
}

.default-badge {
  margin-top: 6px !important;
  color: var(--accent) !important;
  font-size: 0.8125rem !important;
  font-weight: 680;
}

.select-label {
  display: block;
  margin-bottom: 8px;
}

.privacy-section {
  margin-bottom: 20px;
}

.danger-button {
  min-height: 44px;
  margin-top: 8px;
  padding: 0;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 650;
  text-align: left;
}

.dialog-actions {
  margin-top: 2px;
}

.dialog-actions > * {
  flex: 1 1 0;
}

.monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--toast-ink);
  background: var(--toast-background);
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  font-weight: 620;
  text-align: center;
}

noscript {
  display: block;
  width: min(100% - 32px, 520px);
  margin: 16px auto 0;
  border-radius: 8px;
  padding: 14px;
  color: var(--on-danger);
  background: var(--danger-fill);
}

@media (min-width: 700px) {
  .app-window {
    width: min(calc(100% - 32px), 560px);
    margin: 16px auto 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--app-shadow);
  }

  .app-header {
    position: static;
    min-height: 70px;
    border-radius: 18px 18px 0 0;
    padding-right: 24px;
    padding-left: 24px;
  }

  .app-shell {
    padding: 36px 36px 28px;
  }

  .sheet-dialog {
    padding: 26px;
  }
}

@media (max-width: 420px) {
  .account-row {
    display: grid;
  }

  .account-actions {
    width: 100%;
  }

  .account-actions button {
    flex: 1;
  }
}

@media (max-width: 350px) {
  .result-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
