@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
:root {
  --navy: #1F3A5F; --navy-600: #2A4A74; --gold: #C9A24D; --ink: #111827; --line: #E5E7EB; --fill: #F9FAFB;
  --muted: #6B7280; --red: #B42318; --red-bg: #FEF3F2; --green: #067647; --green-bg: #ECFDF3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", "Open Sans", Arial, sans-serif; color: var(--ink); background: var(--fill); -webkit-font-smoothing: antialiased; }
main { max-width: 680px; margin: 0 auto; padding: 40px 20px 56px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px rgba(16,24,40,.06); }
.head { background: var(--navy); color: #fff; padding: 28px 32px; position: relative; }
.head::after { content: ""; position: absolute; left: 32px; bottom: 0; width: 56px; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0; }
.eyebrow { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.head h1 { color: #fff; margin: 0; font-size: 26px; line-height: 1.25; }
.head p { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.5; }
.body { padding: 28px 32px 32px; }
h1, h2 { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; color: var(--navy); }
p { line-height: 1.55; }
.muted { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.full { grid-column: 1 / -1; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
label .req { color: var(--red); margin-left: 2px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #D0D5DD; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #9CA3AF; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,77,.18); }
.invalid input, .invalid select, .invalid textarea { border-color: var(--red); }
.invalid input:focus, .invalid textarea:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.err { color: var(--red); font-size: 13px; margin-top: 6px; }
.err:empty { display: none; }
.banner { display: flex; gap: 10px; align-items: flex-start; background: var(--red-bg); color: var(--red); border: 1px solid #FECDCA; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 16px; }
.banner:empty { display: none; }
.extra { border: 1px dashed #D0D5DD; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; background: var(--fill); }
.extra[open] { border-style: solid; background: #fff; }
.extra summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--navy); list-style: none; display: flex; align-items: center; gap: 8px; }
.extra summary::-webkit-details-marker { display: none; }
.extra summary .plus { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #EEF2F7; font-size: 14px; line-height: 1; transition: transform .15s; }
.extra[open] summary .plus { transform: rotate(45deg); }
.extra .inner { margin-top: 16px; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
button { font: inherit; font-weight: 600; font-size: 16px; padding: 13px 26px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 1px 2px rgba(16,24,40,.1); transition: background .15s, transform .05s; }
button:hover { background: var(--navy-600); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .65; cursor: default; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.state { text-align: center; padding: 44px 32px 40px; }
.icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.icon svg { width: 28px; height: 28px; }
.icon.ok { background: var(--green-bg); color: var(--green); }
.icon.bad { background: var(--red-bg); color: var(--red); }
.icon.info { background: #EEF2F7; color: var(--navy); }
.state h1 { margin: 0 0 8px; font-size: 24px; }
.state p { margin: 6px auto; max-width: 440px; color: #374151; }
.ref { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; background: var(--fill); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; margin-top: 4px; color: var(--navy); }
.state button { margin-top: 22px; min-width: 260px; }
.foot { text-align: center; margin-top: 24px; font-size: 12px; color: var(--muted); }
.foot b { color: var(--navy); font-family: "Montserrat", Arial, sans-serif; } .foot b span { color: var(--gold); }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #F2F4F7 25%, #E5E7EB 37%, #F2F4F7 63%); background-size: 400% 100%; animation: sh 1.2s ease infinite; margin: 10px 0; }
@keyframes sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (max-width: 560px) {
  main { padding: 0 0 32px; }
  .card { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .head { padding: 24px 20px; }
  .head::after { left: 20px; }
  .head h1 { font-size: 22px; }
  .body { padding: 22px 20px 26px; }
  .grid { grid-template-columns: 1fr; }
  .actions button { width: 100%; }
  .state { padding: 40px 20px 36px; }
  .state button { width: 100%; min-width: 0; }
}
