:root {
  color-scheme: light;
  --page-bg: #f7f9fa;
  --surface: #fff;
  --surface-soft: #f2f7f5;
  --text: #202d32;
  --muted: #697b82;
  --border: #e1e8e8;
  --accent: #0a8569;
  --accent-hover: #08705a;
  --accent-soft: #e6f4ef;
  --danger: #b42324;
  --danger-soft: #fff1f0;
  --warning: #8e500f;
  --warning-soft: #fff8eb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--page-bg); font-size: 14px; line-height: 1.65; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button, input, textarea, a, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #85ccba; outline-offset: 4px; }
button { cursor: pointer; }
.site-header, .page, .site-footer { width: min(100% - 48px, 1040px); margin-inline: auto; }
.site-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 17px; font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { flex: 0 0 34px; padding: 7px; background: var(--accent-soft); border-radius: 8px; }
.brand-divider { margin-inline: 10px; color: #c4cfd0; font-weight: 400; }
.brand-section { font-size: 14px; font-weight: 500; }
.help-link { color: var(--muted); font-size: 13px; white-space: nowrap; }
.help-link span { margin-left: 5px; }
.page-heading { padding: 33px 0 25px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; font-weight: 600; }
.service-dot { width: 6px; height: 6px; border-radius: 50%; background: #0e9878; }
h1, h2, p { margin: 0; }
h1 { margin-top: 8px; font-size: 29px; line-height: 1.4; font-weight: 700; }
.page-heading p { color: var(--muted); margin-top: 7px; font-size: 14px; }
.workspace { display: grid; grid-template-columns: 254px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: clip; min-height: 455px; box-shadow: 0 4px 18px #233c3515; }
.step-rail { min-width: 0; padding: 28px 25px; background: #f4f8f7; border-right: 1px solid var(--border); }
.rail-heading { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.wizard-steps { list-style: none; margin: 0; padding: 0; }
.wizard-steps li { display: flex; gap: 12px; align-items: flex-start; position: relative; min-height: 90px; color: #8a999d; }
.wizard-steps li:last-child { min-height: 54px; }
.wizard-steps li:not(:last-child)::after { position: absolute; content: ""; left: 14px; top: 37px; bottom: 10px; width: 1px; background: #d8e3e0; }
.step-marker { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid #d5dfdd; border-radius: 50%; background: #fff; color: #83928f; font-size: 13px; font-weight: 600; }
.wizard-steps strong { display: block; font-weight: 600; font-size: 14px; line-height: 30px; }
.wizard-steps div > span { display: block; font-size: 12px; line-height: 1.6; }
.wizard-steps .is-current { color: var(--text); }
.wizard-steps .is-current .step-marker { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 0 0 4px #0a856910; }
.wizard-steps .is-done { color: var(--accent); }
.wizard-steps .is-done .step-marker { border-color: #9fcdbc; background: var(--accent-soft); color: var(--accent); }
.rail-note { border-top: 1px solid #dfe8e5; padding-top: 19px; margin-top: 26px; font-size: 12px; color: var(--muted); }
.rail-note > span { font-size: 17px; color: var(--accent); }
.rail-note p { margin: 5px 0 9px; }
.form-pane { min-width: 0; padding: 32px 40px; }
.section-index { color: var(--muted); font-size: 12px; }
.step-content h2 { font-size: 23px; line-height: 1.45; margin-top: 7px; font-weight: 650; outline: none; }
.section-description { color: var(--muted); font-size: 13px; margin-top: 8px; margin-bottom: 27px; }
label:not(.acknowledgement) { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
input:not([type="checkbox"]), textarea { width: 100%; min-width: 0; border: 1px solid #cfdcda; border-radius: 6px; padding: 12px 14px; color: var(--text); background: #fff; transition: border-color .16s; }
input:not([type="checkbox"]) { height: 49px; }
input::placeholder, textarea::placeholder { color: #94a3a5; opacity: 1; }
#redeem-code { font: 15px ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
textarea { resize: vertical; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; min-height: 148px; max-height: 360px; overflow-wrap: anywhere; }
input:not([type="checkbox"]):focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #0a856912; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-help { margin-top: 9px; font-size: 12px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--danger); margin-top: 10px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 22px; border: 1px solid transparent; border-radius: 6px; padding: 10px 21px; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; }
.button > span { font-size: 17px; line-height: 1; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--accent-hover); }
.button-secondary { color: #4a6267; border-color: #d7e1df; background: #fff; }
.button-secondary:hover:not(:disabled) { background: #f5f8f7; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.privacy-note { border-top: 1px solid #edf1f0; padding-top: 17px; margin-top: 29px; color: #7a8d8c; font-size: 12px; }
.session-links { display: flex; flex-wrap: wrap; gap: 10px 23px; margin-top: -9px; margin-bottom: 22px; font-size: 13px; }
.session-links span { padding-left: 4px; }
.confirmation { margin: 22px 0; font-size: 13px; }
.confirmation > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid #edf1f0; }
.confirmation dt { color: var(--muted); }
.confirmation dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.monospace { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.notice { border-left: 3px solid #a3c1d5; background: #f0f6fa; padding: 13px 15px; font-size: 12px; overflow-wrap: anywhere; }
.notice strong { display: block; font-size: 13px; line-height: 1.65; }
.notice p { margin-top: 4px; }
.notice a { display: inline-block; margin-top: 9px; font-weight: 650; text-decoration: underline; color: inherit; }
.notice-info { color: #436272; }
.notice-warning { border-color: #d79936; background: var(--warning-soft); color: var(--warning); }
.notice-danger { border-color: #d44445; background: var(--danger-soft); color: var(--danger); }
.notice-success { border-color: #28a27e; background: #edf9f3; color: #16613d; }
.notice-manual { border: 2px solid #cb3939; border-left-width: 5px; background: #fff1ed; padding: 16px; color: #9e1d21; }
.notice-manual strong { font-size: 16px; font-weight: 750; }
.notice-manual p { font-size: 14px; font-weight: 650; line-height: 1.8; }
.acknowledgement { display: flex; gap: 10px; align-items: flex-start; margin-top: 21px; color: #51666a; font-size: 12px; cursor: pointer; }
.acknowledgement input { flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.progress-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 11px; }
.progress-head strong { font-weight: 600; overflow-wrap: anywhere; }
.progress-head > span { color: var(--accent); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.progress-track { height: 7px; overflow: hidden; background: #e6eeeb; border-radius: 6px; }
#progress-fill { display: block; width: 10%; height: 100%; background: var(--accent); transition: width .35s ease; border-radius: inherit; }
.recharge-progress.is-failed #progress-fill { background: #c64747; }
.recharge-progress.is-warning #progress-fill { background: #b66a14; }
.progress-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 20px 0 0; padding: 0; list-style: none; }
.progress-steps li { text-align: center; font-size: 11px; color: #879892; white-space: nowrap; }
.progress-steps li > span { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 7px; border: 1px solid #d7e3de; border-radius: 50%; color: #84948f; font-size: 11px; background: #fff; }
.progress-steps .is-done { color: var(--accent); }
.progress-steps .is-done > span { background: var(--accent-soft); border-color: #a7d0c2; color: var(--accent); }
.progress-steps .is-current { color: var(--accent); font-weight: 600; }
.progress-steps .is-current > span { background: var(--accent); border-color: var(--accent); color: #fff; }
.progress-steps .is-error { color: var(--danger); font-weight: 600; }
.progress-steps .is-error > span { color: #fff; background: #c64747; border-color: #c64747; }
.progress-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 15px; font-size: 11px; color: var(--muted); margin: 18px 0 22px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px 0; margin-top: 20px; border-bottom: 1px solid var(--border); }
.gpt-stat { display: flex; align-items: center; gap: 13px; justify-content: center; }
.gpt-stat + .gpt-stat { border-left: 1px solid var(--border); }
.stat-icon { width: 28px; font-size: 24px; line-height: 1.2; flex-shrink: 0; }
.gpt-stat strong { display: block; font-size: 19px; line-height: 1.4; font-weight: 650; color: #29423d; }
.gpt-stat div > span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.help-section { padding: 8px 0 0; }
details { scroll-margin-top: 20px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary h2 { font-size: 15px; font-weight: 600; }
summary p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.details-toggle { color: var(--accent); font-size: 23px; font-weight: 400; width: 26px; text-align: center; flex-shrink: 0; }
details[open] .details-toggle { transform: rotate(45deg); }
.guide-body { border-top: 1px solid var(--border); padding: 22px 0 18px; }
.guide-body > p { color: #536b70; font-size: 13px; margin: 18px 0; }
.cancel-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; gap: 15px; }
.cancel-path li { border-bottom: 1px solid #dce7e1; padding-bottom: 13px; color: #355149; font-size: 13px; }
.cancel-path li > span { display: inline-grid; place-items: center; width: 23px; height: 23px; background: var(--accent-soft); color: var(--accent); border-radius: 50%; font-size: 11px; margin-right: 8px; }
.cancel-guide-image { display: block; width: min(100%, 780px); height: auto; margin: 24px auto 0; border: 1px solid var(--border); border-radius: 6px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 15px; color: #84928f; font-size: 11px; padding: 25px 0; border-top: 1px solid var(--border); margin-top: 10px; }
.noscript { padding: 30px; text-align: center; color: var(--danger); }
@media (max-width: 740px) {
  .site-header, .page, .site-footer { width: min(100% - 32px, 560px); }
  .site-header { min-height: 70px; }
  .brand { font-size: 16px; gap: 9px; }
  .brand-divider { margin-inline: 7px; }
  .brand-section { font-size: 12px; }
  .help-link { font-size: 12px; }
  .page-heading { padding: 25px 0 20px; }
  h1 { font-size: 25px; }
  .page-heading p { font-size: 13px; }
  .workspace { display: block; min-height: 0; }
  .step-rail { padding: 21px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .rail-heading, .rail-note { display: none; }
  .wizard-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wizard-steps li, .wizard-steps li:last-child { min-height: 0; align-items: center; justify-content: center; gap: 8px; }
  .wizard-steps li:not(:last-child)::after, .wizard-steps div > span { display: none; }
  .wizard-steps strong { font-size: 12px; line-height: 26px; white-space: nowrap; }
  .step-marker { flex-basis: 25px; width: 25px; height: 25px; font-size: 11px; }
  .form-pane { padding: 25px 22px 28px; }
  .step-content h2 { font-size: 21px; }
  .section-description { margin-bottom: 22px; }
  .confirmation > div { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; padding: 24px 0; margin-top: 2px; }
  .gpt-stat:nth-child(3) { border-left: 0; }
  .gpt-stat { gap: 12px; justify-content: start; padding-left: 14px; }
  .gpt-stat:nth-child(even) { padding-left: 22px; }
  .gpt-stat strong { font-size: 18px; }
  .stat-icon { font-size: 22px; width: 26px; }
  .cancel-path { gap: 13px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice-manual strong { font-size: 15px; }
  .notice-manual p { font-size: 13px; }
}
@media (max-width: 370px) {
  .site-header, .page, .site-footer { width: calc(100% - 24px); }
  .form-pane { padding-inline: 16px; }
  .step-rail { padding-inline: 9px; }
  .wizard-steps li { gap: 5px; }
  .wizard-steps strong { font-size: 11px; }
  .progress-steps li { font-size: 10px; }
  .button { padding-inline: 16px; gap: 12px; }
  .brand-section, .brand-divider { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
