:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172837;
  background: #f3f6f8;
  font-size: 16px;
  --muted: #526777;
  --line: #dce5eb;
  --accent: #116962;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.top { background: #122936; color: #f5fafb; }
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  min-height: 66px;
  margin: auto;
  padding: 10px 24px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 650; }
.mark {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 9px;
  background: #214954;
  color: #9ce4cf;
}
.account { display: flex; align-items: center; gap: 12px; min-width: 0; color: #d7e5eb; font-size: .85rem; }
.account span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiet {
  border: 1px solid #55717f;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.shell { max-width: 808px; margin: 0 auto; padding: 45px 24px 64px; }
.narrow { max-width: 500px; }
.intro { margin-bottom: 25px; }
h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.25; }
p { margin: 0; line-height: 1.6; }
.intro p, .actions p, .empty { color: var(--muted); }
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px #1432420a;
}
.section { padding: 24px 28px; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 1.08rem; }
.step, .count { color: #145d54; background: #e5f4ee; }
.step { display: grid; place-items: center; height: 28px; width: 28px; border-radius: 8px; font-weight: 650; }
.count { margin-left: auto; padding: 4px 8px; border-radius: 20px; font-size: .8rem; }
.fields { display: grid; gap: 14px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
input, select, textarea {
  display: block;
  width: 100%;
  min-height: 43px;
  border: 1px solid #b7c6d0;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  padding: 9px 11px;
}
input::placeholder, textarea::placeholder { color: #627785; opacity: 1; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid #198f7c; outline-offset: 2px; }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
}
.actions p { margin-right: auto; font-size: .85rem; }
.primary, .secondary {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
}
.primary { color: #fff; background: var(--accent); }
.primary:hover { background: #0d5751; }
.primary:disabled { background: #6e7d83; cursor: default; }
.secondary { border-color: #b7c6d0; color: #254b58; background: #fff; }
.secondary:hover { background: #eef5f6; }
.alert { margin-bottom: 15px; border: 1px solid #ecc1b6; border-radius: 8px; padding: 10px 12px; color: #842d24; background: #fff4f0; }
.details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 20px; margin: 0; }
.details dt { font-weight: 600; }
.details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reference { font-family: ui-monospace, monospace; font-size: .9rem; }
@media (max-width: 560px) {
  .top-inner, .shell { padding-left: 16px; padding-right: 16px; }
  .top-inner { gap: 10px; }
  .account span { display: none; }
  .shell { padding-top: 31px; }
  .section, .actions { padding: 18px; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .details { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .details dd:not(:last-child) { margin-bottom: 9px; }
  .actions p { width: 100%; }
}
