:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #edf3fb;
  color: #10233f;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 2%, rgba(55, 137, 255, 0.18), transparent 32rem),
    linear-gradient(180deg, #f5f9ff 0%, #eaf1fa 100%);
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 42px 20px 36px;
}

.hero {
  padding: 8px 4px 26px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #0969ed, #0645ad);
  box-shadow: 0 10px 26px rgba(4, 81, 190, 0.25);
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.eyebrow,
.step {
  margin: 0 0 4px;
  color: #1767d8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.intro {
  max-width: 650px;
  margin: 22px 0 16px;
  color: #4a5f7b;
  font-size: 16px;
  line-height: 1.7;
}

.notice {
  padding: 13px 15px;
  border: 1px solid #f4c96e;
  border-radius: 14px;
  background: #fff9e9;
  color: #745008;
  font-size: 13px;
  line-height: 1.55;
}

.notice strong {
  display: block;
  color: #573b03;
}

.card {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid rgba(145, 167, 196, 0.42);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(46, 76, 116, 0.08);
  backdrop-filter: blur(12px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.status-dot {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f8ee;
  color: #14733d;
  font-size: 12px;
  font-weight: 750;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}

.tool-chip {
  min-height: 44px;
  border: 1px solid #ced9e8;
  border-radius: 12px;
  background: #f9fbfe;
  color: #34506f;
  cursor: pointer;
  font-weight: 700;
  transition: 150ms ease;
}

.tool-chip:hover {
  border-color: #5f9df2;
  transform: translateY(-1px);
}

.tool-chip.active {
  border-color: #075fdf;
  background: #eaf3ff;
  color: #0753c1;
  box-shadow: inset 0 0 0 1px #075fdf;
}

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

.field {
  display: grid;
  gap: 7px;
  color: #314d6d;
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cbd7e6;
  border-radius: 12px;
  outline: none;
  background: #fbfdff;
  color: #142b49;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input {
  min-height: 46px;
  padding: 0 13px;
}

.field textarea {
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  border-color: #1670ed;
  box-shadow: 0 0 0 3px rgba(22, 112, 237, 0.12);
}

.field small {
  color: #71839a;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

code {
  color: #0753c1;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}

.summary div {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f1f6fc;
}

.summary dt {
  color: #73859c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary dd {
  overflow: hidden;
  margin: 5px 0 0;
  color: #153457;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 16px;
}

.primary-button,
.secondary-button {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  border: 1px solid #075bd1;
  background: linear-gradient(145deg, #0b6df0, #0753bd);
  box-shadow: 0 10px 22px rgba(4, 86, 196, 0.22);
  color: white;
}

.secondary-button {
  border: 1px solid #c7d4e4;
  background: white;
  color: #214b7e;
}

.primary-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}

.error {
  margin: 12px 0 0;
  color: #b22020;
  font-size: 13px;
  font-weight: 650;
}

.checklist {
  padding: 22px 6px;
}

.checklist h2 {
  margin-bottom: 14px;
}

.checklist ol {
  margin: 0;
  padding-left: 22px;
  color: #496079;
  line-height: 1.8;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px 0;
  border-top: 1px solid rgba(122, 148, 181, 0.28);
  color: #7b8da4;
  font-size: 11px;
}

@media (max-width: 580px) {
  .shell {
    padding: 26px 14px 30px;
  }

  .card {
    padding: 18px;
    border-radius: 19px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fields,
  .actions {
    grid-template-columns: 1fr;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 5px;
  }
}

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