@charset "UTF-8";

:root {
  --ink: #17283e;
  --muted: #677b93;
  --soft: #93a6bb;
  --line: #dce7f3;
  --blue: #1b63c6;
  --blue-deep: #124d9d;
  --blue-pale: #edf4fc;
  --danger: #c84545;
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 34px 90px -46px rgba(23, 51, 86, 0.45), 0 12px 36px -24px rgba(23, 51, 86, 0.22);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #edf3fa;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 6%, rgba(70, 137, 211, 0.16), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(80, 160, 218, 0.13), transparent 34%),
    linear-gradient(180deg, #f5f9fd 0%, #e9f1fa 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 55%);
}

a {
  color: inherit;
}

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

.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #357acf, #124a94);
  box-shadow: 0 8px 18px -10px rgba(20, 75, 150, 0.8);
  font-size: 15px;
  font-weight: 700;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.header-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ba586;
  box-shadow: 0 0 0 4px rgba(91, 165, 134, 0.12);
}

.entry-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 30px 24px 58px;
}

.entry-card {
  width: min(100%, 640px);
  padding: 44px 48px 38px;
  border: 1px solid rgba(216, 229, 243, 0.95);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(27, 99, 198, 0.55), transparent);
}

.entry-card h1 {
  margin: 0;
  font-size: clamp(27px, 4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.intro {
  margin: 14px 0 32px;
  max-width: 470px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.field {
  margin-bottom: 22px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #3c5067;
  font-size: 13px;
  font-weight: 650;
}

.field-label span:last-child {
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
}

.select-wrap,
.textarea-wrap {
  position: relative;
}

select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background-color: #f8fbfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select {
  height: 50px;
  padding: 0 46px 0 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

select:invalid,
select.is-placeholder {
  color: #9bacc0;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 19px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #71869e;
  border-bottom: 1.5px solid #71869e;
  transform: translateY(-68%) rotate(45deg);
  pointer-events: none;
}

textarea {
  min-height: 196px;
  padding: 16px;
  line-height: 1.75;
  resize: vertical;
}

select:hover,
textarea:hover {
  border-color: #c5d7e9;
  background-color: #fbfdff;
}

select:focus,
textarea:focus {
  border-color: rgba(27, 99, 198, 0.7);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(27, 99, 198, 0.09);
}

textarea::placeholder {
  color: #9bacc0;
}

.field.invalid select,
.field.invalid textarea,
.field.invalid .bank-trigger {
  border-color: rgba(200, 69, 69, 0.7);
  box-shadow: 0 0 0 4px rgba(200, 69, 69, 0.07);
}

.bank-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 46px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background-color: #f8fbfe;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bank-trigger:hover {
  border-color: #c5d7e9;
  background-color: #fbfdff;
}

.bank-trigger:focus-visible,
.bank-trigger[aria-expanded="true"] {
  border-color: rgba(27, 99, 198, 0.7);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(27, 99, 198, 0.09);
}

.bank-trigger.is-placeholder .bank-trigger-label {
  color: #9bacc0;
  font-weight: 500;
}

.bank-trigger-logo {
  width: 25px;
  height: 25px;
  flex: none;
  display: block;
  object-fit: contain;
}

.bank-trigger-logo[hidden] {
  display: none;
}

.bank-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-select.is-open::after {
  transform: translateY(-30%) rotate(225deg);
}

.bank-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 372px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid #dce7f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 56, 94, 0.15);
  overscroll-behavior: contain;
}

.bank-menu[hidden] {
  display: none;
}

.bank-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 9px;
  outline: none;
  color: #294156;
  font-size: 14px;
  cursor: pointer;
}

.bank-option:hover,
.bank-option.is-active {
  background: #f2f7fc;
}

.bank-option[aria-selected="true"] {
  color: #14539f;
  background: #eef5fd;
  font-weight: 600;
}

.bank-option:focus-visible {
  outline: 2px solid rgba(27, 99, 198, 0.55);
  outline-offset: -2px;
}

.bank-option img {
  width: 25px;
  height: 25px;
  flex: none;
  display: block;
  object-fit: contain;
}

.bank-option::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-left: auto;
  margin-right: 4px;
  border-right: 1.8px solid #1b63c6;
  border-bottom: 1.8px solid #1b63c6;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0;
}

.bank-option[aria-selected="true"]::after {
  opacity: 1;
}

.field-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 18px;
  margin-top: 7px;
}

.error {
  display: none;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.field.invalid .error {
  display: block;
}

.char-count {
  margin-left: auto;
  color: #a1b0c1;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.primary {
  min-width: 120px;
  height: 48px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px -18px rgba(18, 77, 157, 0.8);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 20px 34px -18px rgba(18, 77, 157, 0.85);
}

.primary:active {
  transform: translateY(0);
}

.primary svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.primary:hover svg {
  transform: translateX(2px);
}

.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e7eff8;
  color: #8b9caf;
  font-size: 11.5px;
  line-height: 1.65;
}

.secure-note svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: #6f8aa4;
}

:focus-visible {
  outline: 2px solid rgba(27, 99, 198, 0.65);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .site-header {
    padding: 22px 20px;
  }

  .header-meta {
    display: none;
  }

  .entry-main {
    padding: 10px 16px 40px;
    align-items: start;
  }

  .entry-card {
    padding: 32px 24px 28px;
    border-radius: 22px;
  }

  textarea {
    min-height: 164px;
  }

  .primary {
    width: 100%;
  }

  .actions {
    display: block;
  }
}

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

:root {
  --ink: #17283e;
  --muted: #667b92;
  --soft: #98a9bb;
  --line: #e5edf5;
  --brand: #1b63c6;
  --brand-soft: #edf4fc;
  --danger: #c84545;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 36px 90px -48px rgba(23, 51, 86, 0.42), 0 12px 36px -26px rgba(23, 51, 86, 0.2);
}

@supports (color: color-mix(in srgb, red, white)) {
  :root {
    --brand-soft: color-mix(in srgb, var(--brand) 9%, white);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #edf3fa;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 10% -4%, var(--brand-soft), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(120, 173, 219, 0.1), transparent 30%),
    linear-gradient(180deg, #f6fafe 0%, #edf3fa 58%, #eaf1f9 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 48%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.topbar {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(219, 231, 243, 0.78);
  background: rgba(248, 252, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-inner {
  width: 100%;
  max-width: 1200px;
  min-height: 70px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px 0 11px;
  border: 1px solid #dbe7f2;
  border-radius: 10px;
  color: #4d6278;
  background: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 550;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.back-link:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 28%, #dbe7f2);
  background: #fff;
}

.back-link svg {
  width: 14px;
  height: 14px;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #75899e;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.topbar-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 10%, transparent);
}

.page-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 54px;
}

.score-card {
  overflow: hidden;
  border: 1px solid rgba(219, 231, 243, 0.96);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bank-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 42px 30px;
  border-bottom: 1px solid rgba(224, 234, 244, 0.9);
  background:
    linear-gradient(120deg, var(--brand-soft), rgba(255, 255, 255, 0.5) 66%),
    #fff;
}

.bank-header::after {
  content: "";
  position: absolute;
  top: -80px;
  right: 6%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  pointer-events: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.bank-logo-image {
  width: auto;
  height: 52px;
  max-width: clamp(180px, 26vw, 290px);
  flex: none;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.heading-copy {
  min-width: 0;
}

.page-title {
  display: block;
  margin: 0;
  color: #23364b;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.bank-name {
  color: var(--brand);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.title-divider {
  width: 1px;
  height: 38px;
  flex: none;
  background: #d3dfe9;
}

.system-title {
  font-weight: 500;
}

.bank-subtitle {
  margin: 7px 0 0;
  color: #72869b;
  font-size: 12.5px;
  line-height: 1.7;
}

.header-badge {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 14%, #e1eaf3);
  border-radius: 999px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.65);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.header-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.card-body {
  padding: 26px 42px 36px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
}

.section-head h2 {
  margin: 0;
  color: #2a3e54;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: #eaf0f7;
}

.section-note {
  color: #95a6b8;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 46px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 55px;
  border-bottom: 1px solid #eef3f9;
}

.form-row > label {
  flex: 0 0 108px;
  color: #61768c;
  font-size: 12.5px;
  line-height: 1.45;
  transition: color 0.18s ease;
}

.form-row:focus-within > label {
  color: var(--brand);
}

.control {
  position: relative;
  flex: 1;
  min-width: 0;
}

.control input,
.control select {
  display: block;
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #f7fafd;
  font-size: 12.5px;
  line-height: 36px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.control select {
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.control.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 6px;
  height: 6px;
  border-right: 1.4px solid #8296aa;
  border-bottom: 1.4px solid #8296aa;
  transform: translateY(-68%) rotate(45deg);
  pointer-events: none;
}

.control select.is-placeholder {
  color: #9aacbf;
}

.control select option {
  color: var(--ink);
  background: #fff;
}

.control input::placeholder {
  color: #a2b1c2;
  opacity: 1;
}

.control input:hover,
.control select:hover {
  border-color: #dae6f2;
  background: #f9fcff;
}

.control input:focus,
.control select:focus {
  border-color: color-mix(in srgb, var(--brand) 48%, white);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 8%, transparent);
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

.agreement-panel {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid #e8f0f8;
  border-radius: 12px;
  background: rgba(247, 250, 253, 0.86);
}

.agreement {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #52677d;
  font-size: 12.5px;
  line-height: 1.7;
  cursor: pointer;
  user-select: none;
}

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

.check-box {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1.5px solid #bac9d8;
  border-radius: 5px;
  background: #fff;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.check-box svg {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.agreement input:checked + .check-box {
  border-color: var(--brand);
  background: var(--brand);
}

.agreement input:checked + .check-box svg {
  opacity: 1;
  transform: scale(1);
}

.agreement input:focus-visible + .check-box {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.agreement a {
  color: var(--brand);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
}

.agreement a:hover {
  text-decoration-color: var(--brand);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 22px;
}

.btn {
  height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-ghost {
  border: 1px solid #dce7f2;
  color: #62778c;
  background: #fff;
}

.btn-ghost:hover {
  border-color: #c5d7e8;
  color: #34495f;
  background: #f9fcff;
}

.btn-submit {
  min-width: 132px;
  border: 1px solid var(--brand);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 24px -15px color-mix(in srgb, var(--brand) 72%, transparent);
}

.btn-submit svg {
  width: 14px;
  height: 14px;
}

.btn-submit:not(:disabled):hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -15px color-mix(in srgb, var(--brand) 80%, transparent);
}

.btn-submit:not(:disabled):active {
  transform: translateY(0);
}

.btn-submit:disabled {
  border-color: #cbd6e2;
  color: rgba(255, 255, 255, 0.92);
  background: #cbd6e2;
  box-shadow: none;
  cursor: not-allowed;
}

.page-footnote {
  margin: 17px 2px 0;
  color: #97a7b8;
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
  letter-spacing: 0.02em;
}

dialog {
  max-width: calc(100vw - 32px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 32px 90px -24px rgba(9, 28, 52, 0.5);
}

dialog::backdrop {
  background: rgba(12, 29, 50, 0.44);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.agreement-modal {
  width: 590px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid #edf2f7;
}

.modal-kicker {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.icon-button {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e5edf5;
  border-radius: 9px;
  color: #7890a6;
  background: #f8fbfd;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  color: #3f566c;
  background: #f1f6fa;
}

.modal-body {
  max-height: min(52vh, 430px);
  overflow-y: auto;
  padding: 22px 28px;
  color: #5c7186;
  font-size: 13px;
  line-height: 1.9;
}

.modal-body p {
  margin: 0 0 13px;
}

.modal-body h3 {
  margin: 19px 0 5px;
  color: #2d4157;
  font-size: 13.5px;
  font-weight: 650;
}

.modal-body h3:first-of-type {
  margin-top: 6px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px 24px;
  border-top: 1px solid #edf2f7;
}

.modal-actions .btn {
  min-width: 112px;
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.success-modal {
  width: 412px;
  padding: 28px;
}

.prompt-result {
  max-height: 50vh;
  margin: 0 0 22px;
  overflow-y: auto;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.success-modal .btn {
  width: 100%;
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.review-loading {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.review-loading[hidden],
.review-result[hidden] {
  display: none;
}

.review-loading p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.review-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid color-mix(in srgb, var(--brand) 16%, #e9eef5);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: review-spin 0.85s linear infinite;
}

.prompt-result:focus {
  outline: none;
}

@keyframes review-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-spinner {
    animation-duration: 1.6s !important;
  }
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 65%, white);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    min-height: 54px;
  }

  .form-row > label {
    flex-basis: 112px;
  }

  .header-badge {
    display: none;
  }

  .brand-lockup {
    gap: 14px;
  }

  .bank-logo-image {
    height: 46px;
    max-width: clamp(160px, 26vw, 230px);
  }

  .title-divider {
    height: 34px;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    min-height: 62px;
    padding: 0 18px;
  }

  .topbar-meta {
    display: none;
  }

  .page-main {
    padding: 16px 14px 34px;
  }

  .score-card {
    border-radius: 20px;
  }

  .bank-header {
    align-items: flex-start;
    padding: 25px 22px 23px;
  }

  .header-badge {
    display: none;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .bank-logo-image {
    width: auto;
    height: 40px;
    max-width: min(250px, 72vw);
  }

  .page-title {
    font-size: 21px;
  }

  .title-divider {
    display: none;
  }

  .system-title {
    color: #4d6278;
    font-size: 18px;
  }

  .bank-subtitle {
    margin-top: 5px;
    font-size: 11.5px;
  }

  .card-body {
    padding: 21px 22px 28px;
  }

  .form-row {
    gap: 10px;
    min-height: 53px;
  }

  .form-row > label {
    flex-basis: 92px;
    font-size: 12px;
  }

  .agreement-panel {
    padding: 13px 14px;
  }

  .agreement {
    font-size: 12px;
  }

  .form-actions {
    gap: 9px;
  }

  .btn {
    flex: 1;
    padding: 0 14px;
  }

  .agreement-modal {
    width: calc(100vw - 28px);
  }

  .modal-header {
    padding: 22px 20px 17px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-body {
    padding: 19px 20px;
  }

  .modal-actions {
    padding: 16px 20px 21px;
  }

  .success-modal {
    width: calc(100vw - 32px);
    padding: 30px 22px 24px;
  }
}

@media (max-width: 390px) {
  .form-row > label {
    flex-basis: 84px;
    font-size: 11.5px;
  }

  .control input,
  .control select {
    font-size: 12px;
  }
}

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

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .form-actions,
  .agreement-panel,
  .page-footnote,
  body::before {
    display: none !important;
  }

  .score-card {
    box-shadow: none;
    border-color: #ddd;
  }
}
  

/* ---------- single-file view switching ---------- */
.view[hidden] {
  display: none !important;
}

.entry-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

.score-view {
  width: 100%;
  min-height: 100vh;
}

button.back-link {
  font-family: inherit;
  cursor: pointer;
}

body.entry-mode {
  background:
    radial-gradient(circle at 12% 6%, rgba(70, 137, 211, 0.16), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(80, 160, 218, 0.13), transparent 34%),
    linear-gradient(180deg, #f5f9fd 0%, #e9f1fa 100%);
}

body.score-mode {
  background:
    radial-gradient(circle at 10% -4%, var(--brand-soft), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(120, 173, 219, 0.1), transparent 30%),
    linear-gradient(180deg, #f6fafe 0%, #edf3fa 58%, #eaf1f9 100%);
}

