:root {
  color-scheme: light;
  --bg: #f4f7f9;
  --card: #ffffff;
  --line: #d9e3ea;
  --ink: #102027;
  --muted: #5f7380;
  --brand: #00796b;
  --brand-ink: #ffffff;
  --alert: #ad1457;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #ffffff, transparent 40%),
    radial-gradient(circle at 90% 80%, #d7f1ea, transparent 35%),
    var(--bg);
}

.shell {
  width: min(920px, calc(100% - 2rem));
  margin: 2.5rem auto 4rem;
}

.title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
}

.subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.4;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 16px 36px rgba(16, 32, 39, 0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input,
select,
button,
textarea {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

button {
  border: none;
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
}

button.primary {
  background: var(--brand);
  color: var(--brand-ink);
}

button.secondary {
  background: #eef6f4;
  color: #184a44;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.result {
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfdfd;
}

.link-block {
  display: block;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.3;
  word-break: break-all;
}

.note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.warn {
  border: 1px solid #f7d4e2;
  background: #fff6fb;
  color: var(--alert);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}

.bank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.bank-btn {
  text-align: left;
  background: #f7fbfc;
  border: 1px solid var(--line);
  color: var(--ink);
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .grid,
  .bank-list {
    grid-template-columns: 1fr;
  }

  .shell {
    width: calc(100% - 1rem);
    margin-top: 1rem;
  }
}

