:root {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f2f5fa;
  color: #172c49;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #236dd6; outline-offset: 4px; }
.frame { max-width: 1180px; padding: 0 40px; margin: 0 auto; }

.bar {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dbe4f0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 690; font-size: .96rem; }
.brand-divider { color: #687d98; margin: 0 5px; }
.brand-mark { position: relative; width: 30px; height: 30px; border-radius: 9px; background: #205ba9; }
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 7px;
  border: 1.7px solid #f1f7ff;
  border-radius: 8px;
  transform: rotate(-42deg);
}
.brand-mark::before { top: 8px; left: 11px; }
.brand-mark::after { top: 15px; left: 7px; }

.layout {
  margin: clamp(36px, 10vh, 96px) 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr);
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 65px #18385f12;
}
.main-panel {
  min-width: 0;
  min-height: 455px;
  padding: clamp(32px, 6vw, 78px) clamp(24px, 5.5vw, 64px);
  align-content: center;
}
h1 { margin: 12px 0 16px; font-size: clamp(2.35rem, 5.8vw, 4.1rem); letter-spacing: -.045em; line-height: 1.16; }
.intro { max-width: 33ch; margin: 0; color: #4a607c; font-size: 1rem; line-height: 1.85; }
.actions { margin-top: 26px; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; }
.primary, .quiet {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 11px 17px;
  font-size: .94rem;
  font-weight: 675;
  line-height: 1.45;
}
.primary { background: #205ba9; color: #fff; }
.primary:hover { background: #184884; }
.primary:disabled, .primary[aria-disabled="true"] { opacity: .65; pointer-events: none; }
.quiet { color: #294a70; border-color: #d4dfec; background: #fff; white-space: nowrap; }
.quiet:hover { background: #eaf1fb; }
.hint, .notice { margin: 12px 0 0; font-size: .875rem; line-height: 1.65; }
.hint { color: #4a607c; }
.notice { color: #27558d; }
.notice[data-error] { color: #962e35; }
.side-panel { display: flex; flex-direction: column; border-left: 1px solid #e0eafa; background: #eaf2ff; }
.diagram {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  flex: 1;
  background:
    radial-gradient(ellipse at 74% 16%, #c2dbff, transparent 70%),
    linear-gradient(#8eafe326 1px, transparent 1px),
    linear-gradient(90deg, #8eafe326 1px, transparent 1px),
    #e3eeff;
  background-size: auto, 29px 29px, 29px 29px, auto;
}
.diagram::before, .diagram::after {
  content: "";
  position: absolute;
  height: 2px;
  top: 48%;
  left: 23%;
  width: 54%;
  border-top: 2px dotted #6b96cd;
}
.diagram::after {
  height: 76%;
  width: 48%;
  left: 26%;
  top: 12%;
  border: 1px solid #b0caed;
  border-radius: 50%;
}
.orb { position: absolute; z-index: 1; width: 24px; height: 24px; top: 48%; border-radius: 50%; transform: translate(-50%, -50%); }
.orb-first { left: 23%; background: #f9fcff; border: 2px solid #6a94ce; }
.orb-middle { left: 50%; width: 48px; height: 48px; background: #205ba9; border: 8px solid #fff; box-shadow: 0 0 0 2px #6a94ce, 0 8px 14px #284f8333; }
.orb-last { left: 77%; background: #f9fcff; border: 2px solid #6a94ce; }
.guide { padding: 25px clamp(25px, 4vw, 44px) 33px; }
h2 { font-size: 1.03rem; margin: 0 0 14px; }
.steps { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.steps li { display: flex; align-items: center; gap: 11px; color: #405d81; font-size: .91rem; }
.steps i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #6485ad; }
.steps [aria-current="step"] { color: #143f78; font-weight: 700; }
.steps [aria-current="step"] i { background: #235ca8; border-color: #235ca8; box-shadow: 0 0 0 3px #cddffc; }
.steps .done i { background: #527da9; border-color: #527da9; }

.link-view { display: grid; gap: 9px; margin-top: 27px; }
.link-view label { font-size: .88rem; font-weight: 660; }
.link-view select, .link-field input {
  width: 100%;
  padding: 11px;
  border: 1px solid #b8cbe2;
  border-radius: 9px;
  color: #233d60;
  background: #f7faff;
}
.link-view select { max-width: 270px; }
.link-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.link-field input { min-width: 0; font-family: ui-monospace, monospace; font-size: .85rem; }
.link-field .primary { white-space: nowrap; }
.link-view .hint { margin-top: 1px; }
.noscript { color: #962e35; }

@media (max-width: 720px) {
  .frame { padding: 0 17px; }
  .bar { min-height: 67px; }
  .layout { margin: 24px 0 32px; border-radius: 18px; grid-template-columns: 1fr; }
  .main-panel { min-height: 320px; padding: 34px 23px; }
  .side-panel { display: grid; grid-template-columns: minmax(0, .7fr) minmax(173px, 1fr); border-left: 0; border-top: 1px solid #dce7fa; }
  .guide { padding: 22px 17px; }
  .diagram { min-height: 130px; }
  .quiet { min-height: 40px; padding: 8px 11px; }
}

@media (max-width: 350px) {
  .side-panel { grid-template-columns: 1fr; }
  .diagram { display: none; }
  .link-field { grid-template-columns: 1fr; }
}
