:root {
  color-scheme: light;
  --ink: #172033;
  --ink-soft: #536174;
  --muted: #7b8798;
  --line: #e3e9f2;
  --line-soft: #edf1f6;
  --paper: #ffffff;
  --canvas: #f7f9fc;
  --blue: #3b6fe8;
  --blue-deep: #2e5fd2;
  --blue-soft: #eef4ff;
  --green: #168873;
  --green-soft: #e9f8f3;
  --amber: #b87b20;
  --amber-soft: #fff6e6;
  --coral: #c65c52;
  --coral-soft: #fff1ef;
  --shadow-card: 0 22px 58px rgba(25, 42, 76, .08), 0 2px 8px rgba(25, 42, 76, .03);
  --shadow-button: 0 8px 18px rgba(59, 111, 232, .16);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.shell { margin: 0 auto; max-width: 1040px; padding: 18px 0 42px; position: relative; width: min(100% - 48px, 1040px); }
.topbar { align-items: center; display: flex; justify-content: space-between; left: 0; margin: 0 auto; max-width: 900px; position: absolute; right: 0; top: 27px; }
.wordmark { align-items: center; color: var(--ink); display: inline-flex; font-size: 13px; font-weight: 900; gap: 9px; letter-spacing: .08em; text-decoration: none; }
.wordmark em { color: var(--blue); font-style: normal; }
.wordmark-mark { align-items: center; background: var(--ink); border-radius: 7px; color: #fff; display: inline-flex; font-size: 9px; height: 27px; justify-content: center; letter-spacing: .02em; width: 27px; }
.secure-status { align-items: center; color: var(--green); display: inline-flex; font-size: 11px; font-weight: 800; gap: 7px; }
.secure-status i { background: #36a990; border-radius: 50%; display: inline-block; height: 7px; width: 7px; }

.intro { margin: 0 auto; max-width: 720px; padding: 5px 0 30px; text-align: center; }
.eyebrow, .stage-kicker { align-items: center; color: var(--blue); display: flex; font-size: 11px; font-weight: 900; gap: 8px; letter-spacing: .13em; margin: 0 0 13px; text-transform: uppercase; }
.intro .eyebrow { justify-content: center; }
.eyebrow::before, .stage-kicker::before { background: currentColor; content: ""; display: inline-block; height: 5px; width: 5px; }
.intro h1 { color: var(--ink); font-size: 56px; font-weight: 900; line-height: 1.12; margin: 0; }
.intro > p:last-child { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin: 14px auto 0; max-width: 620px; }

.recharge-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-card); margin: 0 auto; max-width: 900px; padding: 34px 46px 30px; }
.card-topline { align-items: center; color: var(--blue); display: flex; gap: 6px; margin-bottom: 22px; }
.card-topline > span { background: #d5deed; border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.card-topline > span.is-current { background: var(--blue); }
.card-topline b { font-size: 10px; letter-spacing: .1em; margin-left: 8px; }

.steps { background: #fbfcfe; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.step { align-items: center; color: #9aa5b5; display: flex; gap: 9px; min-height: 62px; padding: 10px 13px; position: relative; }
.step + .step { border-left: 1px solid var(--line); }
.step-index { align-items: center; background: #edf1f7; border-radius: 6px; color: #8895a8; display: inline-flex; flex: 0 0 auto; font-size: 10px; font-weight: 900; height: 27px; justify-content: center; width: 27px; }
.step-copy { display: grid; gap: 3px; min-width: 0; }
.step-copy b { font-size: 12px; font-weight: 850; white-space: nowrap; }
.step-copy small { color: inherit; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.step.is-active, .step.is-complete { color: var(--blue); }
.step.is-active .step-index, .step.is-complete .step-index { background: var(--blue); color: #fff; }
.step.is-complete .step-index { font-size: 0; }
.step.is-complete .step-index::after { content: "✓"; font-size: 14px; }
.step.is-active::after { background: var(--blue); bottom: 0; content: ""; height: 3px; left: 12px; position: absolute; right: 12px; }

.notice { border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 8px; font-size: 13px; line-height: 1.55; margin: 16px 0 0; padding: 11px 13px; }
.notice.success { background: var(--green-soft); border-left-color: var(--green); color: #216d60; }
.notice.info { background: var(--blue-soft); border-left-color: var(--blue); color: #405879; }
.notice.error { background: var(--coral-soft); border-left-color: var(--coral); color: #984940; }

.workspace { display: grid; grid-template-columns: 1fr; }
.main-column { min-width: 0; }
.stage { padding: 34px 10px 0; }
.stage-heading { align-items: flex-start; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; margin-bottom: 23px; padding-bottom: 17px; }
.stage-heading h2 { color: var(--ink); font-size: 34px; font-weight: 900; line-height: 1.25; margin: 0; }
.stage-lede { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 8px 0 0; }
.stage-kicker { letter-spacing: .08em; margin-bottom: 9px; }
.stage-kicker::before { height: 5px; width: 5px; }
.stage-number { background: var(--blue-soft); border-radius: 6px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .06em; padding: 8px 10px; white-space: nowrap; }
.stage[hidden] { display: none; }
.recharge-card[data-stage="1"] .steps { display: none; }

label { display: block; font-size: 13px; font-weight: 850; margin-bottom: 9px; }
.input-row { align-items: stretch; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) 146px; }
.input-wrap { position: relative; }
.input-icon { align-items: center; border-right: 1px solid #a7bbe7; color: var(--blue); display: flex; font-size: 22px; font-weight: 900; height: 28px; justify-content: center; left: 12px; line-height: 1; position: absolute; top: 14px; width: 37px; }
input, textarea { background: var(--paper); border: 1px solid #aec2e8; border-radius: 9px; color: var(--ink); outline: none; width: 100%; }
input:hover, textarea:hover { border-color: #7f9fe0; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 111, 232, .13); }
input:disabled, textarea:disabled { background: #f6f8fb; cursor: not-allowed; }
input { min-height: 56px; padding: 0 17px 0 62px; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; min-height: 170px; padding: 15px; resize: vertical; }
.field-hint, .stage-copy { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 10px 0 0; }
.field-hint::before { color: var(--blue); content: "•"; font-weight: 900; margin-right: 6px; }
.form-actions { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) 124px; margin-top: 15px; }

.button { align-items: center; border: 0; border-radius: 8px; cursor: pointer; display: inline-flex; font-size: 14px; font-weight: 850; gap: 10px; justify-content: center; min-height: 52px; padding: 0 17px; transition: background .16s ease, box-shadow .16s ease, transform .16s ease; }
.button:hover:not(:disabled) { box-shadow: var(--shadow-button); transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid #9bb5ff; outline-offset: 2px; }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; }
.button-primary { background: var(--blue); color: #fff; width: 100%; }
.button-primary:hover:not(:disabled) { background: var(--blue-deep); }
.button-secondary { background: var(--blue-soft); color: #385586; }
.button-secondary:hover:not(:disabled) { background: #e2ebff; }
.button-arrow { font-size: 18px; font-weight: 500; line-height: 1; }
.input-row .button { min-width: 0; width: auto; }
.action-button { margin-top: 22px; max-width: 270px; }

.info-grid { background: #f9fbfe; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin-top: 23px; overflow: hidden; }
.info-grid > div { background: rgba(255, 255, 255, .7); padding: 14px 15px; }
.info-grid span, .account-card span, .status-facts span, .confirm-facts dt { color: var(--muted); display: block; font-size: 11px; font-weight: 750; margin-bottom: 5px; }
.info-grid strong, .account-card strong, .status-facts strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.selected-plan { align-items: center; background: var(--blue-soft); border: 1px solid #d8e4ff; border-left: 3px solid var(--blue); border-radius: 8px; color: #385586; display: flex; font-size: 14px; font-weight: 850; margin-bottom: 22px; min-height: 45px; padding: 10px 13px; }
.account-card { align-items: center; background: #f9fbfe; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 15px; grid-template-columns: 42px repeat(3, 1fr); margin-top: 20px; padding: 17px; }
.account-icon { align-items: center; background: var(--blue); border-radius: 8px; color: #fff; display: flex; font-size: 16px; font-weight: 850; height: 36px; justify-content: center; width: 36px; }
.empty-state { align-items: center; background: #f9fbfe; border: 1px dashed #c7d5eb; border-radius: 8px; color: var(--muted); display: flex; font-size: 14px; gap: 11px; line-height: 1.65; padding: 20px; }
.empty-icon { color: var(--blue); font-size: 22px; line-height: 1; }

.service-area { border-top: 1px solid var(--line-soft); margin-top: 34px; padding: 17px 10px 0; }
.service-strip { display: grid; gap: 11px; grid-template-columns: repeat(3, 1fr); }
.service-item { align-items: center; background: #f8faff; border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 11px; min-height: 62px; padding: 11px 13px; }
.service-icon { align-items: center; background: var(--blue-soft); border-radius: 8px; color: var(--blue); display: inline-flex; flex: 0 0 auto; font-size: 20px; font-weight: 900; height: 34px; justify-content: center; width: 34px; }
.service-item strong, .service-item small { display: block; }
.service-item strong { font-size: 12px; margin-bottom: 4px; }
.service-item small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.privacy-note { background: #f7f9fd; border-left: 3px solid #9eb6e8; border-radius: 0 8px 8px 0; margin-top: 15px; padding: 11px 13px; }
.privacy-note strong { font-size: 12px; }
.privacy-note p { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 4px 0 0; }

.status-card { border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 8px; padding: 20px 20px 18px; }
.status-card.success { border-left-color: var(--green); }
.status-card.failed { border-left-color: var(--coral); }
.status-card.review { border-left-color: #7a6b44; }
.status-topline { align-items: center; display: flex; justify-content: space-between; }
.status-topline > span:last-child { color: var(--muted); font-size: 12px; }
.status-badge { background: var(--amber-soft); border-radius: 6px; color: var(--amber); font-size: 12px; font-weight: 850; padding: 6px 9px; }
.status-badge.success { background: var(--green-soft); color: var(--green); }
.status-badge.failed { background: var(--coral-soft); color: var(--coral); }
.status-badge.review { background: #f4f0e7; color: #79653d; }
.status-card h3 { font-size: 22px; letter-spacing: 0; margin: 17px 0 6px; }
.status-card p { color: var(--ink-soft); line-height: 1.7; margin: 0; }
.status-facts { border-top: 1px solid var(--line-soft); display: grid; gap: 15px; grid-template-columns: repeat(3, 1fr); margin-top: 19px; padding-top: 15px; }
.status-card .button { margin-top: 20px; }

.modal { align-items: center; display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 10; }
.modal[hidden] { display: none; }
.modal-backdrop { background: rgba(23, 32, 51, .56); inset: 0; position: absolute; }
.modal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 25px 70px rgba(23, 32, 51, .24); max-width: 520px; padding: 28px; position: relative; width: 100%; }
.modal-heading { align-items: center; border-bottom: 1px solid var(--line-soft); display: flex; gap: 12px; margin-bottom: 18px; padding-bottom: 17px; }
.modal-heading .eyebrow { margin-bottom: 6px; }
.modal-heading h2 { font-size: 23px; letter-spacing: 0; margin: 0; }
.modal-icon { align-items: center; background: var(--amber-soft); border: 1px solid #efd9ae; border-radius: 8px; color: var(--amber); display: inline-flex; font-weight: 900; height: 32px; justify-content: center; width: 32px; }
.modal-card > p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; margin: 0; }
.confirm-facts { border-bottom: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); display: grid; gap: 16px 22px; grid-template-columns: repeat(2, 1fr); margin: 21px 0; padding: 17px 0; }
.confirm-facts div { min-width: 0; }
.confirm-facts dd { font-size: 14px; font-weight: 850; margin: 0; overflow-wrap: anywhere; }
.confirm-check { align-items: flex-start; display: flex; gap: 9px; line-height: 1.55; margin: 0; }
.confirm-check input { accent-color: var(--blue); flex: 0 0 auto; height: 17px; margin-top: 3px; min-height: 17px; padding: 0; width: 17px; }
.confirm-check span { font-size: 13px; font-weight: 650; }
.modal-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1.2fr; margin-top: 23px; }
.modal-actions .button { width: 100%; }

footer { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 24px auto 0; max-width: 900px; padding: 0 2px; text-align: center; }

.mode-tabs { background: #f4f7fc; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 4px; grid-template-columns: 1fr 1fr; margin-bottom: 18px; padding: 4px; }
.mode-tabs button { background: transparent; border: 0; border-radius: 7px; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 850; min-height: 42px; padding: 0 14px; }
.mode-tabs button:hover { color: var(--blue); }
.mode-tabs button.is-active { background: var(--paper); box-shadow: 0 2px 8px rgba(25, 42, 76, .08); color: var(--blue); }

.batch-panel { padding: 17px 10px 0; }
.batch-panel .stage-heading { margin-bottom: 18px; }
.batch-input-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 22px; }
.batch-input-grid label { margin: 0; min-width: 0; }
.batch-input-grid label > span { display: block; margin-bottom: 9px; }
.batch-input-grid textarea { min-height: 230px; }
.batch-input-grid .sensitive-input { -webkit-text-security: disc; }
.batch-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.batch-actions .button { width: auto; }
.batch-actions .button-primary { min-width: 220px; }
.batch-results { margin-top: 25px; }
.batch-summary { display: grid; gap: 8px; grid-template-columns: repeat(5, 1fr); margin-bottom: 14px; }
.batch-summary > div { background: #f8faff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; }
.batch-summary span { color: var(--muted); display: block; font-size: 10px; font-weight: 750; margin-bottom: 4px; }
.batch-summary strong { font-size: 21px; }
.batch-table-wrap { border: 1px solid var(--line); border-radius: 9px; overflow: auto; }
.batch-table { border-collapse: collapse; min-width: 920px; width: 100%; }
.batch-table th, .batch-table td { border-bottom: 1px solid var(--line-soft); font-size: 12px; padding: 11px 12px; text-align: left; vertical-align: top; }
.batch-table th { background: #f7f9fd; color: var(--muted); font-size: 10px; letter-spacing: .04em; position: sticky; top: 0; }
.batch-table tbody tr:last-child td { border-bottom: 0; }
.batch-table td:nth-child(2), .batch-table td:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.batch-table td small { color: var(--muted); display: block; line-height: 1.45; margin-top: 5px; max-width: 190px; }
.batch-status { background: var(--amber-soft); border-radius: 6px; color: var(--amber); display: inline-block; font-size: 10px; font-weight: 850; padding: 5px 7px; white-space: nowrap; }
.batch-status.ready { background: var(--blue-soft); color: var(--blue); }
.batch-status.success { background: var(--green-soft); color: var(--green); }
.batch-status.failed { background: var(--coral-soft); color: var(--coral); }
.batch-status.review { background: #f4f0e7; color: #79653d; }
.batch-confirm { background: #f8faff; border: 1px solid var(--line); border-radius: 9px; margin-top: 14px; padding: 16px; }
.batch-confirm .confirm-check { max-width: 720px; }
.batch-privacy { margin-top: 22px; }

@media (max-width: 900px) {
  .recharge-card { padding-left: 30px; padding-right: 30px; }
}

@media (max-width: 600px) {
  .shell { padding-top: 20px; width: min(100% - 28px, 520px); }
  .topbar { gap: 12px; top: 20px; }
  .wordmark { font-size: 11px; }
  .secure-status { font-size: 10px; }
  .intro { padding: 37px 0 25px; }
  .intro h1 { font-size: 38px; }
  .intro > p:last-child { font-size: 14px; margin-top: 12px; }
  .recharge-card { border-radius: 14px; padding: 24px 18px 23px; }
  .card-topline { margin-bottom: 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { min-height: 57px; padding: 9px 10px; }
  .step + .step { border-left: 0; }
  .step:nth-child(2), .step:nth-child(4) { border-left: 1px solid var(--line); }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .step.is-active::after { left: 10px; right: 10px; }
  .step-copy small { display: none; }
  .stage { padding: 27px 2px 0; }
  .stage-heading { margin-bottom: 20px; padding-bottom: 15px; }
  .stage-heading h2 { font-size: 24px; }
  .stage-lede { font-size: 12px; }
  .stage-number { font-size: 10px; padding: 7px 8px; }
  .input-row, .form-actions { grid-template-columns: 1fr; }
  .input-row .button { width: 100%; }
  .action-button { max-width: none; }
  .info-grid, .account-card, .status-facts, .confirm-facts { grid-template-columns: 1fr; }
  .account-card { align-items: start; }
  .account-icon { grid-row: auto; }
  .service-area { margin-top: 27px; padding-left: 2px; padding-right: 2px; }
  .service-strip { grid-template-columns: 1fr; }
  .modal-card { padding: 22px 20px; }
  .modal-actions { grid-template-columns: 1fr; }
  .batch-input-grid { grid-template-columns: 1fr; }
  .batch-input-grid textarea { min-height: 180px; }
  .batch-summary { grid-template-columns: repeat(2, 1fr); }
  .batch-actions { align-items: stretch; flex-direction: column; }
  .batch-actions .button { width: 100%; }
}


.session-guide {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(31, 111, 235, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.08), rgba(64, 145, 255, 0.035));
}

.session-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.session-guide summary::-webkit-details-marker {
  display: none;
}

.session-guide summary::after {
  content: "⌄";
  margin-left: auto;
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease;
}

.session-guide[open] summary::after {
  transform: rotate(180deg);
}

.session-guide summary small {
  order: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.session-guide-body {
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(31, 111, 235, 0.15);
}

.session-guide-body ol {
  margin: 0;
  padding-left: 22px;
}

.session-guide-body li {
  margin: 0 0 10px;
  padding-left: 4px;
  color: var(--ink);
  line-height: 1.65;
}

.session-guide-body li:last-child {
  margin-bottom: 0;
}

.session-guide-body a {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(31, 111, 235, 0.1);
  font-weight: 800;
  text-decoration: none;
}

.session-guide-body a:hover,
.session-guide-body a:focus-visible {
  background: rgba(31, 111, 235, 0.16);
  text-decoration: underline;
}

.session-guide-body p {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .session-guide summary {
    padding: 14px;
  }

  .session-guide summary small {
    display: none;
  }

  .session-guide-body {
    padding: 14px;
  }
}
