.csg-shell,
.csg-modal {
  --csg-ink: #17223b;
  --csg-muted: #637089;
  --csg-line: rgba(23, 34, 59, 0.1);
  --csg-blue: #2f66d5;
  --csg-surface: #fff;
  color: var(--csg-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.csg-shell * { box-sizing: border-box; }
.csg-shell button, .csg-shell a, .csg-modal button, .csg-modal a { -webkit-tap-highlight-color: transparent; }
.csg-shell button:active, .csg-shell a:active, .csg-modal button:active, .csg-modal a:active { transform: scale(.96); }
.csg-shell svg, .csg-modal svg { width: 1.2em; height: 1.2em; display: block; flex: 0 0 auto; }

.csg-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 36px auto 72px;
  padding: 0;
}

.csg-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 60px 48px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 8%, rgba(116, 147, 255, .28), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(255, 199, 126, .2), transparent 28%),
    linear-gradient(135deg, #17223b 0%, #243860 58%, #314d7e 100%);
  color: #fff;
  box-shadow: 0 22px 55px rgba(22, 40, 75, .18), 0 2px 6px rgba(22, 40, 75, .08);
}

.csg-hero::after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  right: 5%;
  top: -76px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025);
}

.csg-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #c9d8ff; }
.csg-eyebrow svg { width: 20px; height: 20px; }
.csg-hero h1 { position: relative; z-index: 1; max-width: 700px; margin: 14px 0 12px; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; color: #fff; }
.csg-hero p { position: relative; z-index: 1; max-width: 680px; margin: 0; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.8; text-wrap: pretty; }

.csg-stage-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 20px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 34px rgba(30, 48, 82, .09), inset 0 0 0 1px rgba(23,34,59,.045);
  backdrop-filter: blur(14px);
}

.csg-stage-tab {
  --tone: #4e7be8;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--csg-ink);
  text-align: left;
  cursor: pointer;
  transition-property: background-color, color, box-shadow, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2,0,0,1);
}
.csg-stage-tab:hover { background: color-mix(in srgb, var(--tone) 7%, white); }
.csg-stage-tab.is-active { background: color-mix(in srgb, var(--tone) 11%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 20%, transparent); }
.csg-stage-tab:focus-visible, .csg-save-stage:focus-visible, .csg-more-toggle:focus-visible, .csg-detail-toggle:focus-visible, .csg-feature-link:focus-visible, .csg-entry a:focus-visible { outline: 3px solid rgba(47,102,213,.35); outline-offset: 3px; }
.csg-stage-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, white); flex: 0 0 auto; }
.csg-stage-icon svg { width: 21px; height: 21px; }
.csg-stage-tab strong { display: block; font-size: 15px; line-height: 1.25; }
.csg-stage-tab small { display: block; margin-top: 5px; color: var(--csg-muted); font-size: 11px; line-height: 1.45; text-wrap: pretty; }
.csg-tone-mint { --tone: #168c75; --tone-soft: #e7f6f1; --tone-deep: #0f6d5c; }
.csg-tone-blue { --tone: #3473dd; --tone-soft: #eaf1ff; --tone-deep: #2456ad; }
.csg-tone-violet { --tone: #7158d7; --tone-soft: #f0edff; --tone-deep: #5440aa; }
.csg-tone-amber { --tone: #ba721d; --tone-soft: #fff3df; --tone-deep: #8c5516; }
.csg-tone-rose { --tone: #be536a; --tone-soft: #ffedf1; --tone-deep: #963e52; }

.csg-stage-panel {
  padding: 46px;
  border-radius: 28px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 5%, white) 0, white 230px);
  box-shadow: 0 18px 46px rgba(30, 48, 82, .09), inset 0 0 0 1px rgba(23,34,59,.06);
}
.csg-stage-panel[hidden], .csg-feature-detail[hidden], .csg-more-content[hidden] { display: none !important; }
.csg-stage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 34px; }
.csg-current-label { display: inline-flex; padding: 6px 11px; border-radius: 999px; color: var(--tone-deep); background: var(--tone-soft); font-size: 12px; font-weight: 750; }
.csg-stage-heading h2 { margin: 13px 0 10px; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.2; letter-spacing: -.035em; color: var(--csg-ink); text-wrap: balance; }
.csg-stage-heading p { max-width: 720px; margin: 0; color: var(--csg-muted); font-size: 16px; line-height: 1.8; text-wrap: pretty; }
.csg-save-stage { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; border: 0; border-radius: 13px; background: var(--csg-ink); color: white; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition-property: background-color, opacity, transform; transition-duration: 160ms; }
.csg-save-stage:hover { background: #24375e; }
.csg-save-stage.is-saved, .csg-save-stage:disabled { color: var(--tone-deep); background: var(--tone-soft); cursor: default; opacity: 1; }
.csg-section-label { display: flex; align-items: baseline; gap: 14px; margin: 0 0 15px; }
.csg-section-label span { font-size: 18px; font-weight: 800; }
.csg-section-label small { color: var(--csg-muted); font-size: 13px; }

.csg-action-list, .csg-more-content { display: grid; gap: 14px; }
.csg-action-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 17px; padding: 24px; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(25,42,74,.07), inset 0 0 0 1px rgba(23,34,59,.055); }
.csg-action-number { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--tone-soft); color: var(--tone-deep); font-size: 15px; font-weight: 850; font-variant-numeric: tabular-nums; }
.csg-action-body h3 { margin: 2px 0 6px; color: var(--csg-ink); font-size: 20px; line-height: 1.35; text-wrap: balance; }
.csg-why { margin: 0; color: var(--csg-muted); font-size: 14px; line-height: 1.7; text-wrap: pretty; }
.csg-support-label { margin: 18px 0 9px; color: #8892a5; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.csg-feature-list { display: grid; gap: 8px; }
.csg-feature-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 15px 15px 15px 17px; border-radius: 15px; background: #f7f8fb; box-shadow: inset 0 0 0 1px rgba(23,34,59,.045); }
.csg-feature-row.is-primary { background: color-mix(in srgb, var(--tone) 6%, white); box-shadow: inset 3px 0 0 var(--tone), inset 0 0 0 1px color-mix(in srgb, var(--tone) 10%, transparent); }
.csg-feature-copy { min-width: 0; }
.csg-feature-kind { display: inline-block; margin-right: 8px; color: var(--tone-deep); font-size: 11px; font-weight: 800; }
.csg-feature-copy strong { font-size: 14px; color: var(--csg-ink); }
.csg-feature-copy p { margin: 4px 0 0; color: var(--csg-muted); font-size: 13px; line-height: 1.58; text-wrap: pretty; }
.csg-detail-toggle { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 10px; color: var(--tone-deep); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; transition-property: background-color, transform; transition-duration: 160ms; }
.csg-detail-toggle:hover { background: rgba(255,255,255,.78); }
.csg-detail-toggle svg, .csg-more-toggle svg { transition: transform 180ms cubic-bezier(.2,0,0,1); }
.csg-detail-toggle[aria-expanded="true"] svg, .csg-more-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.csg-feature-detail { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 13px; border-top: 1px solid var(--csg-line); }
.csg-feature-detail > div > span { color: #8b95a8; font-size: 11px; font-weight: 750; }
.csg-feature-detail p { max-width: 700px; margin: 3px 0 0; color: #56647d; font-size: 13px; line-height: 1.65; }
.csg-feature-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; border-radius: 11px; color: white !important; background: var(--tone-deep); font-size: 12px; font-weight: 750; text-decoration: none !important; white-space: nowrap; transition-property: background-color, box-shadow, transform; transition-duration: 160ms; }
.csg-feature-link:hover { color: white; box-shadow: 0 7px 16px color-mix(in srgb, var(--tone) 24%, transparent); }
.csg-unavailable { color: #9b6b27; font-size: 12px; font-weight: 700; }
.csg-empty-support { padding: 15px 17px; border-radius: 15px; color: #7c6a4d; background: #fff8eb; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(155,107,39,.12); }

.csg-more-wrap { margin-top: 16px; }
.csg-more-toggle { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 1px dashed color-mix(in srgb, var(--tone) 30%, transparent); border-radius: 16px; color: var(--tone-deep); background: color-mix(in srgb, var(--tone) 4%, white); font-size: 14px; font-weight: 750; cursor: pointer; transition-property: background-color, border-color, transform; transition-duration: 160ms; }
.csg-more-toggle:hover { background: color-mix(in srgb, var(--tone) 8%, white); }
.csg-more-content { margin-top: 14px; }
.csg-footer-note { display: flex; align-items: center; gap: 15px; margin-top: 18px; padding: 22px 24px; border-radius: 20px; background: #f6f8fc; color: var(--csg-muted); box-shadow: inset 0 0 0 1px rgba(23,34,59,.045); }
.csg-footer-note > div { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: white; color: var(--csg-blue); box-shadow: 0 6px 16px rgba(26,45,80,.08); }
.csg-footer-note p { margin: 0; font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.csg-footer-note strong { color: var(--csg-ink); }
.csg-live-status { position: fixed; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.csg-entry { --tone: #3473dd; --tone-soft: #eaf1ff; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 18px; width: min(1180px, calc(100% - 40px)); margin: 24px auto; padding: 24px 26px; border-radius: 24px; background: linear-gradient(120deg, color-mix(in srgb, var(--tone) 9%, white), white 70%); color: var(--csg-ink, #17223b); box-shadow: 0 14px 36px rgba(27,44,76,.1), inset 0 0 0 1px color-mix(in srgb, var(--tone) 12%, transparent); font-family: Inter, "PingFang SC", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.csg-entry-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: var(--tone); background: white; box-shadow: 0 8px 20px rgba(27,44,76,.1); }
.csg-entry-icon svg { width: 26px; height: 26px; }
.csg-entry-kicker { color: var(--tone); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.csg-entry h2 { margin: 4px 0 4px; font-size: 21px; line-height: 1.3; color: #17223b; }
.csg-entry p { margin: 0; color: #69758a; font-size: 13px; line-height: 1.55; }
.csg-entry a { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 12px; color: white !important; background: #17223b; text-decoration: none !important; font-size: 13px; font-weight: 750; transition-property: background-color, box-shadow, transform; transition-duration: 160ms; }
.csg-entry a:hover { background: #263a62; box-shadow: 0 8px 18px rgba(23,34,59,.16); }

.csg-modal[hidden] { display: none; }
.csg-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 22px; }
.csg-modal-backdrop { position: absolute; inset: 0; background: rgba(12,20,37,.62); backdrop-filter: blur(7px); }
.csg-modal-card { position: relative; width: min(640px, 100%); max-height: min(780px, calc(100vh - 36px)); overflow: auto; padding: 34px; border-radius: 28px; background: white; color: #17223b; box-shadow: 0 30px 90px rgba(8,17,35,.34); }
.csg-modal-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 13px; background: #f3f5f8; color: #536079; font-size: 27px; line-height: 1; cursor: pointer; transition-property: background-color, color, transform; transition-duration: 160ms; }
.csg-modal-close:hover { background: #e9edf4; color: #17223b; }
.csg-modal-close:focus-visible, .csg-modal-primary:focus-visible, .csg-modal-option:has(input:focus-visible), .csg-modal-secondary a:focus-visible, .csg-modal-secondary button:focus-visible { outline: 3px solid rgba(47,102,213,.36); outline-offset: 3px; }
.csg-modal-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #315ebc; background: #edf3ff; }
.csg-modal-mark svg { width: 25px; height: 25px; }
.csg-modal-card h2 { margin: 16px 48px 8px 0; font-size: 29px; line-height: 1.2; letter-spacing: -.03em; color: #17223b; text-wrap: balance; }
.csg-modal-card > p { margin: 0; color: #69758a; font-size: 14px; line-height: 1.72; text-wrap: pretty; }
.csg-modal-options { display: grid; gap: 8px; margin: 22px 0 18px; }
.csg-modal-option { --tone: #3473dd; --tone-soft: #eaf1ff; position: relative; display: grid; grid-template-columns: 20px 40px minmax(0,1fr); align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 68px; padding: 11px 14px; border-radius: 16px; background: #f7f8fa; box-shadow: inset 0 0 0 1px rgba(23,34,59,.055); cursor: pointer; transition-property: background-color, box-shadow, transform; transition-duration: 160ms; }
.csg-modal-option:hover { background: color-mix(in srgb, var(--tone) 5%, white); }
.csg-modal-option:has(input:checked) { background: var(--tone-soft); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tone) 45%, transparent); }
.csg-modal .csg-modal-option > input[type="radio"] { position: absolute !important; inset: auto !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; overflow: hidden !important; pointer-events: none !important; appearance: none !important; }
.csg-modal-radio { width: 18px; height: 18px; border: 2px solid #aeb6c4; border-radius: 50%; box-shadow: inset 0 0 0 4px white; background: white; }
.csg-modal-option input:checked + .csg-modal-radio { border-color: var(--tone); background: var(--tone); }
.csg-modal-option-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--tone); background: white; }
.csg-modal-option > span:last-child { display: block; width: auto !important; min-width: 0 !important; max-width: none !important; }
.csg-modal-option strong { display: block; color: #17223b; font-size: 14px; line-height: 1.35; }
.csg-modal-option small { display: block; margin-top: 3px; color: #707b90; font-size: 11px; line-height: 1.35; }
.csg-modal-primary { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; background: #17223b; color: white; font-size: 14px; font-weight: 780; cursor: pointer; transition-property: background-color, opacity, transform; transition-duration: 160ms; }
.csg-modal-primary:hover { background: #263a62; }
.csg-modal-primary:disabled { opacity: .38; cursor: not-allowed; }
.csg-modal-secondary { display: flex; justify-content: center; gap: 22px; margin-top: 14px; }
.csg-modal-secondary a, .csg-modal-secondary button { min-height: 40px; display: inline-flex; align-items: center; border: 0; background: transparent; color: #66738b; font-size: 12px; text-decoration: none; cursor: pointer; }
.csg-modal-secondary a:hover, .csg-modal-secondary button:hover { color: #17223b; }
body.csg-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .csg-stage-nav { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .csg-stage-panel { padding: 34px; }
  .csg-stage-heading { flex-direction: column; }
}

@media (max-width: 640px) {
  .csg-shell { width: min(100% - 24px, 1180px); margin-top: 12px; margin-bottom: 44px; }
  .csg-hero { padding: 35px 24px 32px; border-radius: 23px; }
  .csg-hero::after { width: 170px; height: 170px; right: -40px; top: -52px; }
  .csg-hero h1 { font-size: 34px; }
  .csg-hero p { font-size: 15px; line-height: 1.7; }
  .csg-stage-nav { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 7px; border-radius: 19px; gap: 6px; }
  .csg-stage-tab { min-height: 68px; padding: 10px; border-radius: 13px; }
  .csg-stage-icon { width: 34px; height: 34px; border-radius: 10px; }
  .csg-stage-tab small { display: none; }
  .csg-stage-tab strong { font-size: 13px; }
  .csg-stage-panel { padding: 25px 17px; border-radius: 22px; }
  .csg-stage-heading { gap: 18px; padding-bottom: 28px; }
  .csg-stage-heading h2 { font-size: 27px; }
  .csg-stage-heading p { font-size: 14px; }
  .csg-save-stage { width: 100%; }
  .csg-section-label { display: block; }
  .csg-section-label small { display: block; margin-top: 4px; }
  .csg-action-card { grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 18px 14px; border-radius: 17px; }
  .csg-action-number { width: 40px; height: 40px; border-radius: 12px; font-size: 13px; }
  .csg-action-body h3 { font-size: 17px; }
  .csg-feature-row { display: block; padding: 14px; }
  .csg-detail-toggle { margin-top: 7px; }
  .csg-feature-detail { display: block; }
  .csg-feature-link { width: 100%; margin-top: 12px; }
  .csg-footer-note { align-items: flex-start; padding: 18px; }
  .csg-entry { grid-template-columns: 50px minmax(0,1fr); width: min(100% - 24px, 1180px); padding: 20px; border-radius: 20px; }
  .csg-entry-icon { width: 50px; height: 50px; border-radius: 15px; }
  .csg-entry a { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .csg-modal { padding: 10px; align-items: end; }
  .csg-modal-card { max-height: calc(100vh - 10px); padding: 25px 18px 20px; border-radius: 24px 24px 16px 16px; }
  .csg-modal-card h2 { font-size: 25px; }
  .csg-modal-options { gap: 6px; margin-top: 18px; }
  .csg-modal-option { grid-template-columns: 18px 36px minmax(0,1fr); min-height: 62px; padding: 9px 10px; gap: 9px; border-radius: 14px; }
  .csg-modal-option-icon { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .csg-shell *, .csg-modal * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
