:root {
  font-family: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #152641;
  background: #f1f5fb;
  line-height: 1.55;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }

.brand-bar { background: #0f2547; color: #fff; }
.brand-wrap {
  max-width: 1120px;
  margin: auto;
  min-height: 76px;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark { flex: none; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: .04em; }
.brand span { color: #becde6; font-size: 10px; letter-spacing: .16em; }
.product-label { color: #e2ecff; font-size: 14px; }

.main { width: min(100% - 36px, 600px); margin: 0 auto; padding: 58px 0 32px; }
.intro { margin-bottom: 24px; }
.eyebrow { color: #3058a4; font-size: 13px; font-weight: 650; letter-spacing: .08em; }
h1 { margin: 5px 0 8px; font-size: clamp(33px, 6vw, 48px); line-height: 1.15; }
.intro p { margin: 0; color: #4d607d; }
.panel {
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 18px;
  box-shadow: 0 12px 32px #192e5010;
  padding: clamp(20px, 5vw, 32px);
}
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
label { display: block; margin: 0 0 7px; font-weight: 650; }
label:not(:first-child) { margin-top: 22px; }
input, textarea, button { font: inherit; }
input, textarea {
  display: block;
  width: 100%;
  border: 1px solid #a6b9d5;
  border-radius: 10px;
  padding: 12px 14px;
  color: inherit;
  background: #fcfdff;
}
textarea { min-height: 148px; resize: vertical; overflow-wrap: anywhere; }
input::placeholder, textarea::placeholder { color: #596f8c; }
:focus-visible { outline: 3px solid #3769d2; outline-offset: 2px; }
.field-hint { color: #4d607d; font-size: 13px; margin: 8px 0 0; }
button { cursor: pointer; border-radius: 10px; font-weight: 650; }
button:disabled { cursor: wait; opacity: .72; }
.primary {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  padding: 10px 14px;
  color: #fff;
  background: #2154b5;
  border: 1px solid #2154b5;
}
.primary:not(:disabled):hover { background: #1a448f; }
.notice, .receipt { margin-top: 18px; padding: 14px 16px; border: 1px solid #d5e3fa; border-radius: 12px; background: #f4f8ff; }
.notice { color: #234170; margin-bottom: 0; overflow-wrap: anywhere; }
.notice[data-tone="error"] { color: #862836; background: #fff2f4; border-color: #edcdd3; }
.receipt:first-child, form[hidden] ~ .receipt { margin-top: 0; }
.receipt-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.receipt h2 { margin: 0; font-size: 18px; }
.status-badge { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 650; background: #dbe8ff; color: #204478; }
.status-badge[data-state="succeeded"] { background: #d4f4e4; color: #135541; }
.status-badge[data-state="failed"] { background: #fbe0e7; color: #802b3e; }
.status-badge[data-state="unknown"] { background: #fff1d6; color: #704e0e; }
.receipt-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 14px 0 0; }
.receipt-meta div { min-width: 0; }
.receipt-meta dt { color: #4d607d; font-size: 13px; }
.receipt-meta dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.secondary { margin-top: 12px; min-height: 40px; padding: 7px 13px; color: #234d9c; background: #fff; border: 1px solid #a6b9d5; }
.footer-note { margin: 18px 0 0; color: #4d607d; font-size: 13px; text-align: center; }

@media (max-width: 560px) {
  .brand-wrap { min-height: 68px; padding-inline: 18px; }
  .main { padding-top: 34px; }
}
