:root {
  color-scheme: light;
  --ink: #171f32;
  --secondary: #555f76;
  --line: #dce3ef;
  --blue: #3155dd;
  --blue-dark: #2443bd;
  --canvas: #f5f7fc;
  --white: #ffffff;
  --green: #0a6b57;
  --good-bg: #e3f7f0;
  --shadow: 0 20px 52px rgba(35, 56, 97, .08);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
[hidden] { display: none !important; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #7191ff; outline-offset: 3px; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1216px; margin: auto; padding: 0 24px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.identity, .top nav { display: flex; align-items: center; gap: 12px; }
.identity { font-size: 18px; font-weight: 750; color: var(--ink); white-space: nowrap; letter-spacing: -.02em; }
.identity-detail, .top nav { color: var(--secondary); font-size: 14px; }
.identity-divider { height: 20px; width: 1px; background: var(--line); }
.mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--blue); }
.mark span { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 3px #ffffff40; }
.top nav a { white-space: nowrap; }
#app { max-width: 1216px; margin: 0 auto; padding: 34px 24px 70px; }
.loading { padding: 42px; color: var(--secondary); text-align: center; }
.gate { min-height: 525px; display: grid; grid-template-columns: 1.22fr 1fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); margin-top: 22px; }
.gate-intro { padding: clamp(30px, 6vw, 76px); position: relative; background: radial-gradient(ellipse at 87% 90%, #e4ebff 0, transparent 55%), linear-gradient(145deg,#eef2ff,#f8faff 65%); color: #172551; display: flex; flex-direction: column; justify-content: center; }
.gate-intro h1 { font-size: clamp(35px, 5.2vw, 62px); line-height: 1.12; letter-spacing: -.052em; }
.eyebrow { color: var(--blue-dark); font-size: 13px; font-weight: 760; letter-spacing: .11em; }
.gate-items { display: grid; gap: 10px; margin-top: 30px; color: #203466; }
.gate-items span { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.gate-items span::before { content: ""; width: 9px; height: 9px; border: 2px solid #6b88ef; border-radius: 50%; }
.gate-action { align-self: center; padding: clamp(26px, 5vw, 74px); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; }
h2 { font-size: 23px; letter-spacing: -.025em; }
h3 { font-size: 16px; }
p + p { margin-top: 8px; }
.hint { color: var(--secondary); font-size: 14px; }
.lead { color: var(--secondary); max-width: 620px; margin-top: 8px; }
.gate-action .button { display: block; margin: 23px 0 13px; text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 10px; padding: 9px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 675; text-decoration: none; white-space: normal; }
.button:hover { background: #f0f3fb; text-decoration: none; }
.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.primary:hover { background: var(--blue-dark); }
.subtle { background: transparent; }
.hero { padding-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.hero label { display:grid; gap: 5px; }
.layout { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.panel, .rail { background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 12px 28px rgba(38, 61, 102, .045); }
.panel { padding: clamp(18px, 3.2vw, 32px); }
.rail { padding: 10px; display: grid; gap: 4px; }
.rail button { display: flex; align-items: center; gap: 10px; padding: 11px; border: 0; border-radius: 10px; color: #3c4761; background: transparent; font-size: 14px; text-align: left; }
.rail button:hover { background: #f2f5ff; }
.rail button[aria-current="step"] { background: #eaf0ff; color: #263eb0; font-weight: 725; }
.step { width: 24px; height: 24px; border-radius: 7px; background: #eef1f7; display: grid; place-items: center; font-size: 12px; }
[aria-current] .step { background: #dce6ff; }
.badge { width: fit-content; font-size: 12px; padding: 4px 9px; font-weight: 700; color: #40507b; border-radius: 999px; background: #edf2fd; }
.badge.ok { background: var(--good-bg); color: var(--green); }
.heading-row, .tile, .row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.heading-row { margin-bottom: 20px; }
.tile { padding: 14px 0; border-top: 1px solid var(--line); }
.tile p { margin-top: 3px; }
.tile:last-child { padding-bottom: 0; }
.list { margin-top: 20px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .7fr); gap: 19px; }
.form, .field, .group { display: grid; gap: 8px; align-content: start; }
.form, .group { gap: 14px; }
.field > span, label > span { font-weight: 650; font-size: 13px; }
input:not([type=color]):not([type=checkbox]), textarea, select { width: 100%; border: 1px solid #cbd5e7; border-radius: 9px; padding: 9px 11px; background: #fcfdff; color: var(--ink); min-width: 0; }
textarea { resize: vertical; min-height: 110px; }
input[type=color] { width: 75px; height: 43px; padding: 4px; background: #fcfdff; border: 1px solid #cbd5e7; border-radius: 9px; }
input[type=file] { font-size: 12px; }
.brand-preview { background: #f1f5ff; border: 1px solid #dfe7fb; border-radius: 15px; padding: 13px; align-self: start; }
.brand-preview .mini { border-radius: 13px; padding: 13px; background: #fff; margin-top: 8px; overflow-wrap: anywhere; }
.preview-profile { display: flex; align-items: center; gap: 9px; }
.preview-profile img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.preview-swatch { width: 12px; height: 12px; display: inline-block; vertical-align: middle; }
.preview-banner { width: 100%; max-height: 95px; object-fit: cover; border-radius: 9px; margin-top: 10px; }
.preview-modules { display: grid; gap: 7px; margin: 12px 0; }
.preview-modules span { background: #f0f3fb; color: #27385e; padding: 7px 9px; border-radius: 7px; font-size: 12px; }
.block { background: #f4f7fd; border: 1px solid #dee7f6; border-radius: 11px; padding: 14px; }
.order-id { color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.error { color: #972d27; padding: 7px 0; }
code { overflow-wrap: anywhere; }
#notice { position: fixed; right: 18px; bottom: 18px; z-index: 2; border: 1px solid #a5b5e4; background: #152747; color: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); max-width: calc(100vw - 36px); }
@media (max-width: 780px) {
  .gate { grid-template-columns: 1fr; min-height: 0; margin-top: 0; }
  .gate-intro { padding-block: 28px; }
  .gate-items { margin-top: 16px; }
  .layout { grid-template-columns: 1fr; }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail button { gap: 5px; justify-content: center; padding: 7px 4px; min-height: 42px; }
  .step { display: none; }
}
@media (max-width: 550px) {
  .top-inner { padding-inline: 14px; gap: 8px; }
  .top nav { gap: 8px; font-size: 12px; }
  .identity { gap: 7px; font-size: 15px; }
  .identity-divider, .identity-detail { display: none; }
  #app { padding: 22px 13px 44px; }
  .hero, .heading-row { align-items: flex-start; }
  .hero { flex-direction: column; }
  .brand-grid { grid-template-columns: minmax(0, 1fr); }
}

summary{cursor:pointer;font-weight:700}
