:root {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #262c27;
  background: #f5f5ef;
  --text: #262c27;
  --muted: #535d54;
  --line: #d9dfd5;
  --paper: #fffefa;
  --green: #204d3a;
  --focus: #13664e;
  --warm: #f4f0e1;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
h1, h2, p, ol, dl, dd { margin: 0; }
p { line-height: 1.6; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .66; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.container { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.masthead { background: #172e25; color: #f8faf4; }
.bar { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font-size: 1.12rem; font-weight: 730; letter-spacing: .04em; }
.network { color: #e0eae1; font-size: .9rem; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 43px 0 25px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; line-height: 1.09; }
.intro p { margin-top: 10px; color: var(--muted); }
.phase { display: grid; gap: 5px; border-left: 3px solid #ad8a4b; padding: 9px 0 8px 15px; }
.phase strong { font-size: 1.05rem; }
.phase span, .muted, small { color: var(--muted); font-size: .9rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr); align-items: start; gap: 21px; padding-bottom: 44px; }
.primary { min-width: 0; display: grid; gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
h2 { font-size: 1.28rem; line-height: 1.3; margin-bottom: 9px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; margin-top: 21px; }
.full { grid-column: 1 / -1; }
label { min-width: 0; display: grid; gap: 6px; font-weight: 660; }
input, textarea {
  width: 100%;
  border: 1px solid #b5c0b4;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  min-height: 45px;
  font-weight: 400;
}
input::placeholder { color: #637368; }
small { line-height: 1.38; font-weight: 400; }
.eligibility { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  padding: 9px 16px;
  color: white;
  font-weight: 660;
  text-decoration: none;
  line-height: 1.4;
}
.solid:hover { background: #153b2a; }
.signing > button, .signing > a, .signing > form, #copy-fallback { margin-top: 13px; }
#recover { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
#recover label { flex: 1 1 235px; }
.notice { padding: 10px 12px; background: var(--warm); border-radius: 7px; line-height: 1.5; overflow-wrap: anywhere; }
.signing .notice { margin-top: 12px; }
.error { margin-bottom: 16px; color: #73321e; background: #fbeadf; }
.steps { display: grid; padding: 0; margin-top: 15px; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e8ede6;
  color: var(--green);
  font-weight: 730;
  font-size: .86rem;
}
.steps li.current::before { background: var(--green); color: white; }
.steps li > div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.steps strong { line-height: 1.45; font-weight: 670; }
.steps span { color: var(--muted); font-size: .85rem; line-height: 1.43; }
.steps .step-result { color: var(--green); font-size: .83rem; overflow-wrap: anywhere; }
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.fee-grid > div { border: 1px solid var(--line); background: #eef2e9; border-radius: 9px; padding: 13px; }
.fee-grid dt, .records dt { color: var(--muted); font-size: .86rem; }
.fee-grid dd { color: var(--green); font-weight: 730; font-variant-numeric: tabular-nums; margin-top: 4px; overflow-wrap: anywhere; }
.records > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.records dd { margin-top: 4px; font-family: Consolas, ui-monospace, monospace; font-size: .88rem; overflow-wrap: anywhere; }
details { margin-top: 13px; }
summary { font-weight: 660; color: var(--green); padding: 8px 0; }
@media (max-width: 780px) {
  .container { width: calc(100% - 34px); }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 30px; }
  .card { padding: 18px; }
}
@media (max-width: 490px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .bar { min-height: 53px; }
  #recover .solid { width: 100%; }
}
