:root {
  color-scheme: light;
  --ink: #192136;
  --muted: #606981;
  --faint: #737e96;
  --line: #e6e9f2;
  --surface: #fff;
  --bg: #f6f7fb;
  --accent: #5844d9;
  --dark-accent: #4b36c5;
  --soft: #efedff;
  --sidebar: 238px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; }
a { color: var(--dark-accent); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #a49af7; outline-offset: 3px;
}
[hidden] { display: none !important; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
.visually-hidden { position: absolute; height: 1px; width: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.layout { min-height: 100vh; }
.sidebar {
  display: flex; position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 3;
  flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 25px 17px 17px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); margin: 0 6px 39px; }
.brand-mark {
  width: 40px; height: 40px; background: linear-gradient(150deg, #7361f0, #5140d0);
  border-radius: 11px; color: #fff; display: inline-grid; place-items: center; flex: none;
  box-shadow: 0 5px 12px #5b48d331;
}
.brand strong { display: block; font-size: 16px; letter-spacing: -.25px; white-space: nowrap; }
.brand small { display: block; color: var(--faint); font-size: 11px; margin-top: 4px; letter-spacing: .04em; }
.nav-caption { margin: 0 11px 11px; color: var(--faint); font-size: 11px; letter-spacing: .05em; font-weight: 600; }
.nav-secondary { margin-top: 27px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 11px; margin-bottom: 5px; border-radius: 8px;
  padding: 12px 11px; color: #505970; font-weight: 550; white-space: nowrap;
}
.sidebar nav a:hover { background: #f6f5fc; color: var(--dark-accent); }
.sidebar nav a[aria-current] { background: var(--soft); color: var(--dark-accent); font-weight: 700; }
.nav-end { margin-left: auto; opacity: 0; }
.sidebar nav a:hover .nav-end, .sidebar nav a[aria-current] .nav-end { opacity: 1; }
.sidebar-bottom { margin-top: auto; }
.side-help {
  background: #f8f8fc; border: 1px solid #eeeef6; padding: 12px 9px;
  display: flex; align-items: center; gap: 9px; border-radius: 10px; color: var(--ink);
}
.side-help:hover { border-color: #ccc4ff; }
.help-icon { color: var(--accent); display: grid; place-items: center; width: 29px; height: 29px; background: var(--soft); border-radius: 7px; flex: none; }
.side-help strong, .side-help small { display: block; white-space: nowrap; }
.side-help strong { font-size: 12px; }
.side-help small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.side-help > svg { margin-left: auto; color: var(--faint); }
.workspace { margin-left: var(--sidebar); min-width: 0; }
.topbar {
  display: flex; height: 66px; padding: 0 32px; gap: 14px; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--line);
}
.breadcrumb, .account { display: flex; gap: 11px; align-items: center; }
.breadcrumb { color: var(--faint); font-size: 13px; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.account { gap: 16px; margin-left: auto; }
.account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--dark-accent); background: var(--soft); font-weight: 700; }
.login-button {
  display: inline-flex; align-items: center; gap: 6px; color: var(--dark-accent); background: #f1efff;
  border: 1px solid #e9e5ff; border-radius: 8px; font-weight: 650; padding: 8px 13px;
}
.login-button:hover { background: #e8e3ff; }
.text-button { border: 0; background: transparent; color: var(--dark-accent); padding: 7px 3px; font-weight: 650; }
.text-button:hover { color: #372396; text-decoration: underline; }
.account .text-button { color: #515a71; }
.menu-toggle { display: none; }
.content { max-width: 1520px; margin: 0 auto; padding: 28px 32px 0; }
.hero {
  position: relative; overflow: hidden; isolation: isolate; min-height: 214px;
  border-radius: 16px; display: flex; align-items: center; padding: 28px 33px; color: #fff;
  background: linear-gradient(110deg, #292263 0%, #392a82 50%, #5038a6 100%);
  box-shadow: 0 8px 22px #30226714;
}
#network-visual { position: absolute; inset: 0 0 0 auto; width: 59%; height: 100%; z-index: -1; }
.hero-copy { max-width: 64%; }
.hero-tag {
  width: fit-content; display: flex; align-items: center; gap: 6px; border: 1px solid #d9d1fc42;
  background: #c4b5ff1d; color: #eee9ff; border-radius: 20px; padding: 5px 10px; font-size: 11px;
  font-weight: 650; letter-spacing: .05em;
}
.hero h1 { margin-top: 13px; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.045em; line-height: 1.23; font-weight: 760; }
.hero p { color: #e0d9ff; margin-top: 11px; font-size: 14px; line-height: 1.65; }
.survey-layout { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(245px, 1fr); gap: 22px; align-items: start; margin-top: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 4px #25345506; }
.survey-card { padding: 22px 23px 0; min-width: 0; }
.stepper { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.step {
  display: flex; align-items: center; gap: 8px; padding: 0;
  background: none; border: 0; color: #56617b; font-size: 13px; white-space: nowrap; font-weight: 600;
}
.step.current, .step.done { color: var(--dark-accent); }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eef0f6; font-size: 12px; }
.step.current .step-number { background: var(--accent); color: #fff; box-shadow: 0 3px 8px #5440cc2a; }
.step.done .step-number { background: var(--soft); }
.step-line { flex: 1; height: 1px; background: #e6e7f1; }
.panel-title { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; margin-bottom: 17px; }
.panel-title h2, .info-heading h2, .tips h2, .section-heading { font-size: 17px; line-height: 1.4; }
.panel-title p, .info-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.5; }
.step-count { color: var(--dark-accent); background: #f2efff; padding: 5px 8px; font-size: 11px; border-radius: 5px; white-space: nowrap; font-weight: 650; }
fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.scenario-grid, .field-grid, .ip-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.scenario {
  position: relative; cursor: pointer; display: flex; gap: 10px; align-items: center;
  border: 1px solid #e5e8f1; border-radius: 9px; padding: 12px 10px; min-height: 72px;
}
.scenario:hover { border-color: #aaa0ef; }
.scenario:has(:checked) { border-color: #7a65ee; background: #f7f5ff; box-shadow: 0 0 0 1px #7a65ee27; }
.scenario:has(:focus-visible) { outline: 3px solid #a49af7; outline-offset: 2px; }
.scenario input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scenario-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; color: #6855db; background: #f0edff; flex-shrink: 0; }
.scenario:has(:checked) .scenario-icon { background: #e9e3ff; }
.scenario-copy { flex: 1; }
.scenario-copy strong, .scenario-copy small, .outputs strong, .outputs small { display: block; }
.scenario-copy strong { font-size: 13px; margin-bottom: 4px; }
.scenario-copy small { font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.choice-mark { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid #c9cbdd; background: #fff; color: transparent; border-radius: 4px; flex: none; align-self: flex-start; margin-top: 1px; }
.scenario:has(:checked) .choice-mark { border-color: #6854e7; background: #6854e7; color: #fff; }
.field { display: grid; gap: 8px; color: var(--ink); font-weight: 650; margin: 0 0 14px; min-width: 0; }
.field small { color: var(--faint); font-size: 11px; font-weight: 500; margin-left: 4px; }
.company-field { margin-top: 18px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid #dfe3ed; background: #fff; border-radius: 8px;
  color: var(--ink); padding: 10px 11px; min-height: 40px; font-weight: 450;
}
.field input::placeholder, .field textarea::placeholder { color: #79839a; }
.field textarea { resize: vertical; }
.field-grid { column-gap: 15px; row-gap: 3px; }
.region-field { margin-bottom: 18px; }
.region-field legend { font-weight: 700; }
.region-field p { margin: 5px 0 10px; color: var(--muted); font-size: 12px; }
.region-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.region, .inline-check { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.region { border: 1px solid var(--line); border-radius: 7px; padding: 7px 5px; font-size: 12px; }
.region:has(:checked) { background: var(--soft); border-color: #afa1fb; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.ip-grid { margin-bottom: 17px; }
.ip-option { display: flex; gap: 7px; align-items: flex-start; padding: 12px 9px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.ip-option:has(:checked) { border-color: #a99bf6; background: #f7f5ff; }
.ip-option strong, .ip-option small { display: block; }
.ip-option small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 13px;
  border-top: 1px solid var(--line); padding: 15px 0; margin-top: 15px;
}
.example { margin-right: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.button {
  min-height: 40px; display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  padding: 8px 13px; border-radius: 8px; border: 1px solid transparent; font-weight: 650; font-size: 13px;
}
.button.primary { background: var(--accent); color: #fff; box-shadow: 0 3px 7px #5844d926; }
.button.primary:hover { background: var(--dark-accent); }
.button.secondary { background: #fff; color: var(--dark-accent); border-color: #e0def4; }
.button.secondary:hover { background: #f7f5ff; }
.full { width: 100%; margin-top: 8px; }
.survey-aside { display: grid; gap: 15px; }
.info-card, .tips { padding: 18px; }
.info-heading { display: flex; align-items: center; gap: 10px; }
.info-icon { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 9px; }
.lavender { background: var(--soft); color: var(--dark-accent); }
.outputs { display: grid; gap: 14px; padding: 15px 0 0; margin: 15px 0 0; border-top: 1px solid var(--line); list-style: none; }
.outputs li { display: flex; align-items: center; gap: 10px; }
.output-icon { display: inline-grid; place-items: center; flex: none; color: #6250d4; background: #f5f3ff; width: 32px; height: 32px; border-radius: 7px; }
.outputs strong { font-size: 13px; }
.outputs small { color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.5; }
.tips { border-radius: 12px; border: 1px solid #e4defc; background: linear-gradient(145deg, #f0edff, #f7f4ff); }
.tips-title { display: flex; align-items: center; gap: 8px; color: #4f3abc; }
.tips h2 { font-size: 14px; }
.tips p { margin: 8px 0 12px; color: #5d5480; font-size: 12px; line-height: 1.75; }
.tips a { display: inline-flex; gap: 5px; align-items: center; font-weight: 650; font-size: 12px; }
.tips a:hover, .table-scroll a:hover, .auth-switch a:hover { text-decoration: underline; }
footer { padding: 22px 0; color: #69758b; font-size: 11px; text-align: center; }
footer span { margin: 0 5px; }
.notice { border: 1px solid; padding: 10px 12px; border-radius: 8px; margin: 0 0 14px; line-height: 1.6; font-size: 13px; }
.notice svg { margin-right: 4px; }
.notice.danger { background: #fff1f4; border-color: #f6c9d3; color: #912a46; }
.notice.success { background: #e9fbf3; border-color: #b7e9d3; color: #14604b; }
.notice.subtle { background: #f3f0ff; border-color: #e7e0ff; color: #4f3f8e; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.page-heading h1, .auth-card h1 { font-size: 29px; line-height: 1.3; letter-spacing: -.04em; }
.page-heading p, .auth-card > p { margin-top: 7px; color: var(--muted); line-height: 1.65; }
.auth-wrap { display: grid; place-items: center; min-height: min(620px, 80vh); }
.auth-card { width: min(100%, 420px); padding: 29px; }
.auth-card h1 { margin-top: 14px; }
.auth-card form { margin-top: 21px; }
.auth-switch { text-align: center; font-size: 13px; padding-top: 10px; }
.article { padding: 24px; max-width: 980px; }
.article h2 { font-size: 17px; margin-bottom: 7px; }
.article p { line-height: 1.8; color: #535d76; }
.article p + h2 { margin-top: 20px; }
.article p + p { margin-top: 8px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; text-align: left; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: var(--muted); background: #fafaff; }
td { font-size: 13px; }
td small { display: block; margin-top: 5px; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty h2 { color: var(--ink); margin-top: 10px; font-size: 17px; }
.empty p { margin: 8px 0 14px; }
.metrics, .quote-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; margin-bottom: 16px; }
.metric, .quote-option { padding: 16px; }
.metric span { display: flex; align-items: center; gap: 7px; color: var(--dark-accent); font-size: 12px; }
.metric strong { display: block; margin: 6px 0; font-size: 24px; }
.metric em { font-size: 13px; font-style: normal; }
.metric small { color: var(--muted); }
.section-heading { margin: 0 0 11px; }
.option-heading { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.option-heading h3 { font-size: 17px; }
.tag { color: var(--dark-accent); background: var(--soft); border-radius: 5px; font-size: 10px; font-weight: 700; padding: 3px 6px; }
.tag.sample { color: #735227; background: #fff2d8; }
.option-total { color: var(--dark-accent); font-size: 25px; font-weight: 750; margin: 7px 0; word-break: break-word; }
.option-total small { font-size: 12px; color: var(--muted); }
.quote-option dl { font-size: 12px; margin: 10px 0 0; }
.quote-option dl div { display: flex; justify-content: space-between; gap: 7px; padding: 6px 0; border-top: 1px solid var(--line); }
.quote-option dt { color: var(--muted); }
.quote-option dd { margin: 0; text-align: right; }
.quote-issues { color: #79511f; padding-left: 17px; margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.user-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-layout { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.8fr); gap: 15px; align-items: start; }
.admin-editor { padding: 17px; }
.admin-layout h2 { font-size: 16px; margin-bottom: 15px; }
.admin-list h2 { padding: 17px 17px 0; }
.inline-check { margin-bottom: 10px; }
@media (min-width: 1280px) {
  .content { padding-right: 37px; padding-left: 37px; }
  .survey-card { padding-right: 26px; padding-left: 26px; }
  .scenario { padding-right: 13px; padding-left: 13px; }
}
@media (max-width: 1120px) {
  :root { --sidebar: 200px; }
  .content, .topbar { padding-right: 21px; padding-left: 21px; }
  .survey-layout { gap: 13px; grid-template-columns: minmax(0, 2.1fr) minmax(218px, 1fr); }
  .scenario-icon { width: 30px; height: 30px; }
  .scenario-icon svg { width: 17px; }
  .scenario { gap: 6px; }
}
@media (max-width: 950px) {
  .survey-layout { grid-template-columns: minmax(0,1fr); }
  .survey-aside { grid-template-columns: 1fr 1fr; align-items: start; }
  .metrics, .quote-options { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 740px) {
  .sidebar { transform: translateX(-100%); box-shadow: 2px 0 18px #19213621; top: 56px; }
  .sidebar.open { transform: none; }
  .workspace { margin-left: 0; }
  .topbar { height: 56px; }
  .menu-toggle { display: inline-grid; place-items: center; background: var(--soft); border: 0; color: var(--dark-accent); border-radius: 6px; width: 32px; height: 32px; }
  .content, .topbar { padding-left: 14px; padding-right: 14px; }
  .content { padding-top: 15px; }
  .hero { min-height: 171px; padding: 22px 17px; }
  .hero-copy { max-width: 87%; }
  #network-visual { opacity: .65; width: 73%; }
  .survey-layout { margin-top: 13px; }
  .account { gap: 9px; }
  .breadcrumb { gap: 5px; }
}
@media (max-width: 460px) {
  .survey-card { padding: 14px 11px 0; }
  .scenario { padding: 7px 5px; align-items: center; }
  .scenario-grid, .field-grid, .ip-grid { gap: 7px; }
  .scenario-icon { width: 25px; height: 26px; }
  .choice-mark { width: 14px; height: 14px; }
  .choice-mark svg { width: 11px; }
  .stepper { gap: 6px; }
  .step { gap: 4px; font-size: 12px; }
  .step-number { width: 22px; height: 22px; }
  .region-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .form-actions { gap: 7px; flex-wrap: wrap; }
  .button { padding-left: 8px; padding-right: 8px; }
  .survey-aside, .metrics, .quote-options { grid-template-columns: minmax(0,1fr); }
  .account-name { display: none; }
  .page-heading h1 { font-size: 23px; }
}

.question-group {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaff;
}
.question-group summary { cursor: pointer; color: var(--dark-accent); font-weight: 650; }
.question-group summary small, .region-field legend small { color: var(--muted); font-weight: 450; margin-left: 4px; }
.question-group[open] summary { margin-bottom: 13px; }
.question-group .field:last-child, .question-group .region-field:last-child { margin-bottom: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 7px; margin-top: 7px; }
.field-help { margin-bottom: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-bottom: 0; }
.brief-grid div { border-top: 1px solid var(--line); padding-top: 8px; overflow-wrap: anywhere; }
.brief-grid dt { color: var(--muted); font-size: 12px; }
.brief-grid dd { margin: 4px 0 0; white-space: pre-wrap; }
.quote-issues + .section-heading { margin-top: 12px; }
@media (max-width: 460px) {
  .stepper { gap: 4px; }
  .step { font-size: 11px; gap: 3px; }
  .step-number { width: 19px; height: 19px; font-size: 10px; }
  .brief-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .sidebar, .topbar, .page-heading .button, footer { display: none !important; }
  .workspace { margin: 0; }
  .content { padding: 0; }
  .card { box-shadow: none; }
  .article { max-width: none; }
  .guide-checklist { break-inside: avoid; }
}
.guide-checklist { margin-top: 18px; }
