:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #10162e;
  background: #f6f7f9;
  font-synthesis: none;
  --blue: #3155e7;
  --muted: #657086;
  --border: #dce0e8;
  --surface: #fff;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button,
a {
  touch-action: manipulation;
}
button {
  min-height: 44px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #91a6ff;
  outline-offset: 3px;
}
input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: inherit;
  padding: 11px 13px;
  font-size: 16px;
  transition: border-color 0.15s;
}
input:focus,
select:focus {
  border-color: var(--blue);
}
input::placeholder {
  color: #8a91a2;
}
input[aria-invalid="true"] {
  border-color: #bc3248;
}
svg {
  flex-shrink: 0;
}
button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px 14px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #10162e;
  font-weight: 750;
  font-size: 27px;
  letter-spacing: -1px;
  min-height: 44px;
}
.brand svg {
  width: 31px;
  height: 31px;
  color: var(--blue);
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.help-button {
  border: 0;
  background: #e8eeff;
  color: var(--blue);
  border-radius: 50%;
  font-weight: 700;
  font-size: 20px;
  width: 44px;
}
.intro {
  padding: 20px 4px 24px;
}
.intro h1 {
  font-size: clamp(32px, 8.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  margin: 0 0 12px;
  font-weight: 750;
}
.intro p {
  margin: 0;
  color: #566078;
  font-size: 16px;
  line-height: 1.5;
}
.workspace {
  display: grid;
  gap: 16px;
  align-items: start;
}
.payment-card {
  padding: 18px;
  background: white;
  border: 1px solid #eceef2;
  border-radius: var(--radius);
  box-shadow: 0 3px 12px #17264802;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  margin: -8px 0 2px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 7px;
}
.label-row label {
  margin: 0;
}
.text-button {
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  text-underline-offset: 3px;
}
.label-row .text-button {
  text-decoration: underline;
}
.text-button:hover {
  text-decoration: underline;
}
.field {
  margin-top: 19px;
}
.field-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 7px 0 0;
}
.amount-wrap {
  display: flex;
  align-items: center;
  position: relative;
}
.amount-wrap input {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  height: 64px;
  padding-right: 62px;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.amount-wrap span {
  position: absolute;
  right: 15px;
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}
.amount-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.amount-shortcuts button {
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--blue);
  background: #fff;
  font-size: 14px;
  font-weight: 650;
}
.amount-shortcuts button:hover,
.amount-shortcuts button[aria-pressed="true"] {
  background: #edf1ff;
  border-color: #9aacf5;
}
.optional {
  font-weight: 400;
  color: #657086;
}
.primary,
.secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9px;
  padding: 12px 14px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.primary {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  margin-top: 20px;
}
.primary:hover {
  background: #2446d3;
}
.primary svg {
  width: 18px;
}
.secondary {
  background: white;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.secondary:hover {
  background: #f4f6ff;
}
.result-card {
  padding: 24px 18px 18px;
  background: #e7f0ff;
  border-radius: var(--radius);
  text-align: center;
  scroll-margin-top: 16px;
  outline: none;
}
.result-card h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
.result-card.empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  background: #eaf0fc;
}
.empty-icon {
  width: 84px;
  height: 84px;
  margin: 10px auto 24px;
  background: #fff9;
  border-radius: 21px;
  display: grid;
  place-items: center;
}
.empty-icon svg {
  width: 51px;
  fill: none;
  stroke: #7890d4;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty p {
  font-size: 15px;
  line-height: 1.6;
  color: #62708b;
}
.empty-footnote {
  display: block;
  font-size: 12px;
  color: #667791;
  margin-top: 30px;
}
.result-card canvas {
  display: block;
  background: #fff;
  width: min(100%, 260px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 10px;
  image-rendering: pixelated;
}
.result-amount {
  font-weight: 750;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 16px 0 8px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.result-name {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.result-iban {
  font-size: 13px;
  line-height: 1.6;
  color: #596780;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.result-detail {
  font-size: 13px;
  color: #596780;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 5px 0;
}
.result-card .secondary {
  margin-top: 20px;
}
.scan-note {
  font-size: 12px;
  line-height: 1.6;
  color: #596780;
  margin: 12px auto 0;
  max-width: 300px;
}
.result-card .text-button {
  font-size: 12px;
  min-height: 44px;
}
footer {
  text-align: center;
  padding: 22px 8px 28px;
  color: #667086;
  font-size: 11px;
  line-height: 1.6;
}
footer p {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
footer svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
footer > span {
  display: block;
  margin-top: 6px;
  color: #798297;
}
.notice {
  padding: 13px 16px;
  background: #fff3d6;
  border: 1px solid #edd6a4;
  color: #65501c;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.error {
  color: #a72139;
  background: #fff0f2;
  padding: 11px 12px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0 0;
}
dialog {
  border: 1px solid #e7eaf1;
  border-radius: 20px;
  padding: 24px;
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  color: #10162e;
  box-shadow: 0 20px 100px #131b3833;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #10182b66;
  backdrop-filter: blur(4px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.dialog-heading h2 {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.close-button {
  border: 0;
  padding-bottom: 5px;
  border-radius: 50%;
  background: #f0f3f8;
  min-width: 44px;
  font-size: 27px;
  line-height: 1;
  color: #637088;
}
.section-caption {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: var(--blue);
}
.dialog-intro,
dialog > p,
.help-steps p {
  font-size: 14px;
  line-height: 1.6;
  color: #657086;
}
.account-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.account-row {
  border: 1px solid #e2e6ef;
  border-radius: 10px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.account-row > div:first-child {
  flex: 1;
  min-width: 160px;
}
.account-row strong,
.account-row span {
  display: block;
  overflow-wrap: anywhere;
}
.account-row strong {
  font-size: 14px;
}
.account-row span {
  font-size: 12px;
  line-height: 1.5;
  color: #657086;
  margin-top: 3px;
}
.account-row .row-actions {
  display: flex;
  gap: 15px;
}
.account-row button {
  font-size: 12px;
}
.danger {
  color: #af2940;
}
h3 {
  font-size: 16px;
  margin: 24px 0 14px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 20px;
}
.form-actions .primary {
  margin: 0;
}
.form-actions .secondary {
  width: auto;
}
.privacy-note {
  font-size: 12px !important;
  padding-top: 15px;
  border-top: 1px solid #ebedf3;
  margin-top: 24px;
}
.help-steps {
  padding-left: 23px;
  margin-top: 25px;
}
.help-steps li {
  padding-left: 6px;
  margin-bottom: 22px;
}
.help-steps li::marker {
  color: var(--blue);
  font-weight: 700;
}
.help-steps p {
  margin: 6px 0;
}
.toast {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #17213d;
  color: white;
  border-radius: 12px;
  padding: 13px 20px;
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 14px;
  box-shadow: 0 5px 30px #10162e22;
}
.copy-fallback {
  width: 100%;
  height: 150px;
  font: 14px monospace;
}
footer {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}
@media (min-width: 720px) {
  .shell {
    width: min(100% - 64px, 1040px);
  }
  .header {
    padding-block: 26px;
  }
  .intro {
    padding: 28px 0 30px;
  }
  .intro h1 {
    font-size: 46px;
    letter-spacing: -1.8px;
  }
  .intro p {
    font-size: 18px;
  }
  .workspace {
    grid-template-columns: 1.08fr 1fr;
    gap: 28px;
  }
  .payment-card {
    padding: 28px;
  }
  .result-card {
    padding: 28px;
  }
  .result-card.empty {
    min-height: 462px;
  }
  .field {
    margin-top: 23px;
  }
  .amount-wrap input {
    height: 76px;
    font-size: 42px;
  }
  .primary {
    margin-top: 26px;
  }
  .result-card canvas {
    width: 248px;
  }
  footer {
    padding-top: 30px;
  }
}
@media (max-width: 360px) {
  .shell {
    width: calc(100% - 24px);
  }
  .payment-card {
    padding: 14px;
  }
  .intro p {
    font-size: 14px;
  }
  .result-amount {
    font-size: 32px;
  }
  dialog {
    padding: 18px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .result-card {
    transition: background 0.2s;
  }
  button {
    transition:
      background 0.15s,
      box-shadow 0.15s;
  }
  dialog[open] {
    animation: appear 0.18s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
