* {
  box-sizing: border-box;
}

:root {
  --bg: #eef3f4;
  --panel: #ffffff;
  --panel-soft: #f7fafb;
  --ink: #111820;
  --muted: #596873;
  --muted-2: #819099;
  --line: #dbe6e8;
  --line-strong: #c6d5d8;
  --teal: #007c7b;
  --teal-2: #18bbb5;
  --teal-soft: #e9f8f7;
  --navy: #0f2434;
  --navy-2: #193244;
  --gold: #c79636;
  --gold-soft: #fff4d8;
  --danger: #b42335;
  --success: #138a5a;
  --shadow: 0 18px 42px rgba(15, 36, 52, .10);
  --shadow-soft: 0 8px 24px rgba(15, 36, 52, .07);
  --radius: 8px;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(15, 36, 52, .035) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(0deg, rgba(15, 36, 52, .028) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(135deg, #fbfcfd 0%, #eef3f4 48%, #e5ecee 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 54%, rgba(255,255,255,.72) 54% 55%, transparent 55%),
    linear-gradient(42deg, transparent 0 70%, rgba(0,124,123,.06) 70% 71%, transparent 71%);
  opacity: .55;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  position: relative;
  max-width: 1460px;
  margin: 0 auto;
  padding: 22px 28px 46px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(220, 230, 230, .82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.announcement-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  margin-bottom: 16px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(199, 150, 54, .72);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #102737, #17394a);
  box-shadow: 0 10px 26px rgba(15, 36, 52, .16);
}

.announcement-label {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 78px;
  padding: 0 18px;
  color: #172431;
  font-size: 14px;
  letter-spacing: .08em;
  background: linear-gradient(135deg, #f5cc78, #d9a647);
}

.announcement-viewport {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-text {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  padding-right: 48px;
  font-size: 14px;
  font-weight: 650;
  line-height: 46px;
  animation: announcement-scroll 22s linear infinite;
  will-change: transform;
}

.announcement-bar:hover .announcement-text {
  animation-play-state: paused;
}

@keyframes announcement-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-text {
    display: block;
    min-width: 0;
    padding: 0 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: none;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo,
.mini-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  color: transparent;
  font-weight: 900;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, #ffffff, #eff8f8);
  border: 1px solid rgba(0, 124, 123, .22);
  box-shadow: 0 8px 22px rgba(0, 124, 123, .12);
}

.logo::before,
.mini-logo::before,
.guide-icon::before,
.feature-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--navy) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 38%, var(--teal) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 25%, var(--teal-2) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 78%, var(--navy) 0 2px, transparent 3px);
  box-shadow:
    9px 0 0 -7px var(--teal),
    -9px 0 0 -7px var(--teal);
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  font-size: 18px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 760;
  color: var(--teal);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 760;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6fafb;
}

.tab {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 720;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, #027d7b, #0d5964);
  box-shadow: 0 8px 18px rgba(0, 124, 123, .18);
}

.tab-link:hover {
  color: var(--navy);
  background: #edf4f5;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 30px 34px;
  border: 1px solid rgba(220, 230, 230, .82);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(112deg, rgba(255,255,255,.96) 0 52%, rgba(16,35,50,.95) 52% 100%);
  box-shadow: 0 18px 44px rgba(15, 36, 52, .09);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 52%, rgba(16,170,163,.16) 52% 100%),
    linear-gradient(135deg, transparent 0 72%, rgba(255,255,255,.16) 72% 73%, transparent 73%);
  pointer-events: none;
}

.hero h2,
.hero p {
  position: relative;
  max-width: 640px;
}

.hero h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: #30414a;
  font-size: 17px;
  line-height: 1.7;
}

.hero-image {
  padding: 0;
  background: #fff;
}

.hero-image::before {
  display: none;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 1px);
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 11px 15px;
  border: 1px solid rgba(199, 150, 54, .36);
  border-radius: var(--radius);
  color: #685116;
  background: rgba(255, 244, 216, .76);
  box-shadow: 0 6px 18px rgba(199, 150, 54, .08);
  font-size: 14px;
  line-height: 1.65;
}

.layout {
  display: grid;
  grid-template-columns: minmax(340px, .42fr) minmax(620px, .78fr);
  align-items: start;
  gap: 18px;
}

.layout.status-layout {
  grid-template-columns: 1fr;
}

.flow,
.panel {
  border: 1px solid rgba(219, 230, 232, .92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 38px rgba(15, 36, 52, .08);
  backdrop-filter: blur(16px);
}

.flow {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.status-layout .flow {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(220px, .76fr) minmax(560px, 1.9fr);
  gap: 14px;
  align-items: stretch;
  min-height: 0;
}

.status-layout .flow-head,
.status-layout .current-plan {
  margin: 0;
}

.status-layout .flow-head {
  padding: 0 16px 0 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.status-layout .steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-layout .step-pill {
  min-height: 88px;
}

.flow-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mini-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.flow-head h3 {
  margin: 2px 0 0;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 760;
}

.current-plan {
  position: relative;
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbfb, #ffffff);
}

.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

#flowPlan {
  display: block;
  margin: 3px 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 760;
}

.steps {
  display: grid;
  gap: 10px;
}

.step-pill {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-pill.active {
  border-color: rgba(0, 124, 123, .38);
  background: linear-gradient(135deg, #f0fbfa, #fff);
  box-shadow: inset 3px 0 0 var(--teal), 0 8px 20px rgba(0, 124, 123, .08);
}

.step-no {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #eef2f2;
  font-size: 14px;
  font-weight: 760;
}

.step-pill.active .step-no {
  color: #fff;
  background: linear-gradient(135deg, #027d7b, #0f2434);
}

.step-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.25;
}

.step-pill > div:last-child {
  min-width: 0;
}

.flow-tip {
  margin-top: auto;
  padding: 16px;
  border-radius: var(--radius);
  color: #dceced;
  background:
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.flow-tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 900;
}

.panel {
  padding: 24px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-title h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.18;
  font-weight: 760;
}

.status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.status-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.refresh-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px 7px 9px;
  border: 1px solid rgba(0, 124, 123, .22);
  border-radius: 999px;
  color: #075c63;
  background: linear-gradient(135deg, #ffffff, #eefafa);
  box-shadow: 0 8px 18px rgba(0, 124, 123, .08);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}

.refresh-status-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 124, 123, .12);
}

.refresh-status-btn:disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
}

.refresh-status-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #027d7b, #0f2434);
  font-size: 14px;
  line-height: 1;
}

.refresh-status-btn.loading .refresh-status-icon {
  animation: statusRefreshSpin .85s linear infinite;
}

@keyframes statusRefreshSpin {
  to {
    transform: rotate(360deg);
  }
}

.step-card {
  position: relative;
  display: none;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-card.active-step,
.step-card.complete-step {
  display: block;
}

.step-card.locked {
  opacity: .74;
  background: #f7fafa;
}

.step-card.future-step {
  display: none;
}

.step-card.complete-step {
  padding: 13px 15px;
  border-color: rgba(0, 123, 120, .2);
  background: linear-gradient(135deg, rgba(233, 248, 247, .72), #fff);
}

.step-card.complete-step .step-content {
  display: none;
}

.completion-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-card.complete-step .completion-summary {
  display: flex;
}

.completion-summary strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 760;
}

.completion-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.completion-summary > span {
  flex: 0 0 auto;
  min-width: 68px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--success);
  background: #effbf4;
  font-weight: 720;
  text-align: center;
}

.step-guide {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f8fbfb);
}

.guide-icon,
.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 124, 123, .18);
  border-radius: 8px;
  color: transparent;
  background: var(--teal-soft);
  font-size: 0;
  font-weight: 760;
}

.step-guide strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 760;
}

.step-guide p {
  margin: 0;
}

.field {
  margin-top: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: stretch;
}

.status-query-row {
  grid-template-columns: minmax(0, 1fr) 140px 118px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

textarea {
  min-height: 142px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 124, 123, .11);
}

.btn,
.link-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.btn {
  border: 0;
  padding: 11px 17px;
  color: #fff;
  background: linear-gradient(135deg, #027d7b, #0d5964);
  box-shadow: 0 9px 20px rgba(0, 124, 123, .16);
}

.btn:hover,
.link-btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  color: #738087;
  background: #e5ecec;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn.secondary {
  color: var(--teal);
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: none;
}

.btn.ghost {
  color: #53616a;
  border: 1px solid #d7e1e4;
  background: #f7fafb;
  box-shadow: none;
}

.btn.ghost:hover {
  color: #0f2434;
  border-color: #bfccd0;
  background: #eef4f5;
}

.btn.back-btn {
  min-width: 112px;
  color: #53616a;
  border-color: #d7e1e4;
  background: #f7fafb;
  font-weight: 760;
}

.btn.back-btn:hover {
  color: #0f2434;
  border-color: #bfccd0;
  background: #eef4f5;
}

.action-top {
  margin-top: 14px;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.step-actions .btn.back-btn,
.actions .btn.back-btn {
  min-width: 112px;
}

.step-actions .btn:not(.back-btn),
.actions .btn:not(.back-btn) {
  min-width: 148px;
}

.link-btn {
  padding: 10px 14px;
  border: 1px solid rgba(0, 124, 123, .24);
  color: #065f63;
  background: linear-gradient(135deg, #eefafa, #fff);
}

.credential-title {
  align-items: center;
}

.credential-action-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  max-width: min(100%, 620px);
}

.credential-login-alert {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 153, 0, .44);
  border-left: 5px solid #ff9900;
  border-radius: 8px;
  color: #7a3f00;
  background: linear-gradient(135deg, #fff8e6, #fffdf6);
  box-shadow: 0 8px 18px rgba(217, 118, 0, .10);
  font-size: 13px;
  line-height: 1.35;
}

.credential-login-alert strong {
  color: #5f3100;
  font-size: 14px;
  font-weight: 860;
}

.credential-login-alert span {
  color: #8a5a13;
  font-weight: 680;
}

.credential-link-btn {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #ff9900, #d97600);
  box-shadow: 0 12px 24px rgba(217, 118, 0, .24);
  font-size: 15px;
}

.credential-link-btn::before {
  content: "↗";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  color: #7a3f00;
  background: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 900;
}

.credential-link-btn:hover {
  box-shadow: 0 16px 28px rgba(217, 118, 0, .30);
}

.result {
  display: none;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.65;
}

.result.success {
  display: block;
  color: #0f5c34;
  border: 1px solid #98dfbd;
  background: #effbf4;
}

.result.error {
  display: block;
  color: #8a1f1f;
  border: 1px solid #ffb4b4;
  background: #fff0f0;
}

.result.info {
  display: block;
  color: #17475e;
  border: 1px solid #b9ddea;
  background: #eef8fb;
}

.result.warning {
  display: block;
  color: #714b0b;
  border: 1px solid #e7c26f;
  background: #fff9e8;
}

.action-required-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-result-head > strong {
  font-size: 16px;
}

.status-result-actions { display: inline-flex; align-items: center; gap: 9px; }
.copy-result-shot {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid #9ad9b7;
  border-radius: 9px;
  color: #0e6c3e;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.copy-result-shot:hover { background: #effbf4; transform: translateY(-1px); }

.status-result-head > span,
.status-result-actions > span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

.status-result-head > span.success,
.status-result-actions > span.success {
  color: #0f5c34;
  border-color: #98dfbd;
  background: #e6f8ee;
}

.status-result-head > span.error,
.status-result-actions > span.error {
  color: #8a1f1f;
  border-color: #ffb4b4;
  background: #ffe4e4;
}

.status-result-head > span.ready,
.status-result-head > span.processing,
.status-result-actions > span.ready,
.status-result-actions > span.processing {
  color: #075c63;
  border-color: rgba(0, 124, 123, .25);
  background: #e7f7f6;
}

.status-result-message {
  margin: 10px 0 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.65;
}

.status-result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.status-result-meta > div {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .76);
}

.status-result-meta b,
.status-result-meta span {
  display: block;
}

.status-result-meta b {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.status-result-meta span {
  font-size: 13px;
}

.action-required-head > strong {
  color: #3f3218;
  font-size: 16px;
}

.action-required-head > span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid #dfb554;
  border-radius: 999px;
  color: #714b0b;
  background: #fff3ca;
  font-size: 12px;
  font-weight: 760;
}

.action-required-message {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(199, 150, 54, .38);
  border-radius: 10px;
  color: #714b0b;
  background: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.65;
}

.action-required-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.action-required-meta > div {
  padding: 11px 12px;
  border: 1px solid rgba(199, 150, 54, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.action-required-meta b,
.action-required-meta span {
  display: block;
}

.action-required-meta b {
  margin-bottom: 3px;
  color: #8a6b32;
  font-size: 12px;
}

.action-required-meta span {
  color: #493817;
  font-size: 13px;
}

.customer-next-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.customer-next-action .btn {
  min-width: 180px;
}

.summary-card,
.summary-item,
.bill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.summary-card {
  margin-top: 12px;
  padding: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.summary-item {
  padding: 11px;
  background: #fff;
}

.summary-item b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.task-progress-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 124, 123, .18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f4fbfb);
}

.task-progress-card.success {
  border-color: rgba(19, 138, 90, .25);
  background: linear-gradient(135deg, #ffffff, #f0fbf4);
}

.task-progress-card.attention {
  border-color: rgba(199, 150, 54, .35);
  background: linear-gradient(135deg, #ffffff, #fff8e6);
}

.task-progress-card.action-required {
  border-color: rgba(199, 150, 54, .48);
  background: linear-gradient(135deg, #fffdf7, #fff4d8);
}

.task-action-stopped {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(199, 150, 54, .38);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.task-action-stopped > span {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b7791f;
  font-weight: 900;
}

.task-action-stopped strong,
.task-action-stopped small {
  display: block;
}

.task-action-stopped strong {
  color: #714b0b;
  font-size: 14px;
}

.task-action-stopped small {
  margin-top: 2px;
  color: #80622d;
  font-size: 12px;
}

.task-progress-card.error {
  border-color: rgba(180, 35, 53, .24);
  background: linear-gradient(135deg, #ffffff, #fff4f4);
}

.task-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.task-progress-head b,
.task-progress-head span {
  display: block;
}

.task-progress-head b {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
}

.task-progress-head span {
  color: #0a6064;
  font-size: 13px;
  font-weight: 720;
}

.task-progress-updated {
  flex: 0 0 auto;
  color: var(--muted-2) !important;
  font-size: 12px !important;
  font-weight: 520 !important;
  white-space: nowrap;
}

.task-live-status {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #277177 !important;
  font-size: 12px !important;
  font-weight: 680 !important;
}

.task-live-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #39b7ae;
  box-shadow: 0 0 0 0 rgba(57, 183, 174, .5);
  animation: task-live-pulse 1.7s ease-out infinite;
}

.task-live-meter {
  height: 4px;
  overflow: hidden;
  margin: -2px 0 12px;
  border-radius: 999px;
  background: #dcefee;
}

.task-live-meter span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #32b6ad 35%, #a7eee8 65%, transparent);
  animation: task-live-sweep 1.9s ease-in-out infinite;
}

.task-step-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.task-step {
  min-height: 58px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.task-step-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c7d4d8;
  background: #fff;
}

.task-step.done {
  color: #0f5c34;
  border-color: rgba(19, 138, 90, .22);
  background: #f3fbf6;
}

.task-step.done .task-step-dot {
  border-color: var(--success);
  background:
    linear-gradient(135deg, transparent 48%, #fff 48% 58%, transparent 58%),
    var(--success);
}

.task-step.current {
  position: relative;
  overflow: hidden;
  color: #073f4b;
  border-color: rgba(0, 124, 123, .32);
  background: linear-gradient(135deg, #eefafa, #ffffff);
  box-shadow: inset 3px 0 0 var(--teal);
}

.task-progress-card.processing .task-step.current::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(103, 218, 209, .22) 48%, transparent 70%);
  transform: translateX(-120%);
  animation: task-step-shimmer 2.2s ease-in-out infinite;
}

.task-step.current .task-step-dot {
  border-color: var(--teal);
  background: radial-gradient(circle at center, var(--teal-2) 0 4px, #fff 5px);
  animation: task-current-pulse 1.6s ease-out infinite;
}

@keyframes task-live-pulse {
  70% { box-shadow: 0 0 0 7px rgba(57, 183, 174, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 183, 174, 0); }
}

@keyframes task-live-sweep {
  from { transform: translateX(-125%); }
  to { transform: translateX(310%); }
}

@keyframes task-step-shimmer {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes task-current-pulse {
  70% { box-shadow: 0 0 0 7px rgba(61, 166, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 166, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .task-live-status i,
  .task-live-meter span,
  .task-progress-card.processing .task-step.current::after,
  .task-step.current .task-step-dot { animation: none; }
  .task-live-meter span { width: 58%; transform: translateX(20%); }
}

.bill-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.bill {
  padding: 14px;
  background: #fff;
}

.bill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bill-status {
  border-radius: 999px;
  padding: 5px 10px;
  color: #875b12;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 720;
}

.bill-status.success {
  color: #166534;
  background: #dcfce7;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
}

.feature strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.feature .muted {
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 18, 15, .56);
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(680px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 760;
}

.agreement {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #33423d;
  background: var(--panel-soft);
  line-height: 1.75;
}

.agreement-next-hint {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(199, 150, 54, .28);
  border-radius: 10px;
  color: #725817;
  background: #fff8e8;
  font-size: 13px;
  line-height: 1.55;
}

.recharge-confirm-prompt {
  margin: 4px 0 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.recharge-confirm-prompt.subscription-expiry-note {
  font-weight: 400;
}

.recharge-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recharge-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 94px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.recharge-choice-card:hover,
.recharge-choice-card:has(input:checked) {
  border-color: var(--teal);
  background: #f0fbfa;
  box-shadow: 0 8px 20px rgba(0, 124, 123, .1);
}

.recharge-choice-card input[type="radio"],
.recharge-choice-card input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
  accent-color: var(--teal);
}

.recharge-choice-card strong,
.recharge-choice-card small {
  display: block;
}

.recharge-choice-card strong {
  color: var(--ink);
  font-size: 16px;
}

.recharge-choice-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.recharge-choice-card.single-choice {
  align-items: center;
  min-height: 64px;
}

.recharge-choice-card.single-choice input[type="checkbox"] {
  margin-top: 0;
}

.close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-weight: 760;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.small {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(320px, 48vw);
  object-fit: contain;
}

.hero {
  margin-bottom: 16px;
  padding: 0;
  border: 1px solid rgba(219, 230, 232, .92);
  border-radius: 10px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 36, 52, .035) 1px, transparent 1px) 0 0 / 86px 86px,
    linear-gradient(0deg, rgba(15, 36, 52, .028) 1px, transparent 1px) 0 0 / 86px 86px,
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,247,248,.94));
  box-shadow: 0 16px 42px rgba(15, 36, 52, .08);
}

.hero::before {
  display: none;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .82fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  padding: clamp(32px, 4.6vw, 54px) clamp(36px, 6vw, 76px) 24px;
}

.hero-copy {
  min-width: 0;
}

.hero-logo {
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin-bottom: 14px;
}

.hero h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: #4b5b66;
  font-size: 18px;
  line-height: 1.75;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 124, 123, .18);
  border-radius: 999px;
  color: #0a6064;
  background: rgba(233, 248, 247, .78);
  font-size: 14px;
  font-weight: 720;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  --hero-icon-size: clamp(52px, 5.4vw, 76px);
  --hero-panel-gap: clamp(8px, 1vw, 12px);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(70, 111, 127, .62);
  border-radius: 22px;
  color: #dff7f5;
  background: linear-gradient(135deg, #102332, #152c3e);
  box-shadow: 0 22px 50px rgba(15, 36, 52, .2);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -18% -50% 28%;
  height: 180px;
  background: radial-gradient(circle, rgba(24, 187, 181, .3), transparent 64%);
  pointer-events: none;
}

.hero-panel-head {
  display: flex;
  justify-content: space-between;
  gap: clamp(10px, 1.4vw, 16px);
  margin-bottom: clamp(18px, 2.4vw, 28px);
  font-size: clamp(15px, 1.55vw, 18px);
  font-weight: 760;
}

.hero-panel-head b {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid rgba(24, 187, 181, .32);
  border-radius: 999px;
  color: #7df2e7;
  font-size: 12px;
  font-weight: 720;
}

.hero-pipeline {
  display: grid;
  grid-template-columns: var(--hero-icon-size) minmax(24px, 1fr) var(--hero-icon-size) minmax(24px, 1fr) var(--hero-icon-size);
  gap: var(--hero-panel-gap);
  align-items: center;
}

.hero-pipe-icon {
  display: grid;
  place-items: center;
  width: var(--hero-icon-size);
  height: var(--hero-icon-size);
  border: 1px solid rgba(24, 187, 181, .34);
  border-radius: clamp(14px, 1.4vw, 18px);
  color: #7df2e7;
  background: rgba(255,255,255,.06);
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 760;
}

.hero-pipe-icon.ai {
  color: #fff;
  background:
    radial-gradient(circle at 50% 50%, rgba(24,187,181,.78), transparent 28%),
    rgba(255,255,255,.06);
}

.hero-pipe-icon.done {
  font-size: clamp(28px, 3vw, 36px);
}

.hero-pipe-line {
  height: clamp(3px, .42vw, 4px);
  border-radius: 999px;
  background: linear-gradient(90deg, #18bbb5, rgba(24,187,181,.15));
}

.hero-progress {
  height: clamp(6px, .7vw, 8px);
  margin-top: clamp(18px, 2.2vw, 24px);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.hero-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18bbb5, #7df2e7);
}

.hero-panel-foot {
  margin-top: clamp(10px, 1.4vw, 14px);
  color: #9db5bd;
  font-size: clamp(12px, 1.15vw, 14px);
}

.hero-flow-strip {
  display: block;
  width: min(1420px, calc(100% - 92px));
  height: auto;
  margin: 0 auto 32px;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(15, 36, 52, .10);
}

@media (max-width: 1080px) {
  .shell {
    padding: 18px 16px 38px;
  }

  .status-layout .flow {
    grid-template-columns: minmax(200px, .7fr) minmax(220px, .8fr) minmax(500px, 1.6fr);
    overflow-x: auto;
  }

  .status-layout .steps {
    min-width: 500px;
  }

  .task-step-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow,
  .panel {
    min-height: auto;
  }

  .flow-tip {
    margin-top: 16px;
  }
}

@media (max-width: 920px) {
  .hero {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow {
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 36, 52, .06);
  }

  .status-layout .flow {
    display: block;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .flow-head,
  .current-plan,
  .flow-tip,
  .status-layout .flow-head,
  .status-layout .current-plan {
    display: none;
  }

  .steps,
  .status-layout .steps {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .step-pill,
  .status-layout .step-pill {
    min-height: 44px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
  }

  .step-no {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .step-title {
    font-size: 13px;
    line-height: 1.2;
  }

  .step-pill .muted {
    display: none;
  }
}

@media (max-width: 720px) {
  .status-result-meta,
  .action-required-meta {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 12px 10px 30px;
  }

  .topbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
  }

  .hero {
    display: none;
  }

  .hero-main {
    padding: 26px 20px 18px;
  }

  .hero-logo {
    width: min(460px, 100%);
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero-panel {
    padding: 18px;
  }

  .hero-pipeline {
    grid-template-columns: 58px 1fr 58px 1fr 58px;
  }

  .hero-pipe-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 13px;
  }

  .hero-flow-strip {
    width: calc(100% - 28px);
    margin-bottom: 22px;
  }

  .layout {
    gap: 10px;
  }

  .flow {
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 36, 52, .06);
  }

  .flow-head,
  .current-plan,
  .flow-tip,
  .status-layout .flow-head,
  .status-layout .current-plan {
    display: none;
  }

  .steps,
  .status-layout .steps {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .step-pill,
  .status-layout .step-pill {
    min-height: 44px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
  }

  .step-no {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .step-title {
    font-size: 13px;
    line-height: 1.2;
  }

  .step-pill .muted {
    display: none;
  }

  .panel {
    padding: 14px;
  }

  .input-row,
  .status-query-row,
  .summary-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .status-title-actions,
  .task-progress-head {
    align-items: stretch;
    flex-direction: column;
  }

  .credential-action-row {
    width: 100%;
    max-width: none;
    flex-direction: column;
  }

  .credential-link-btn {
    width: 100%;
  }

  .step-actions,
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .recharge-choice-grid {
    grid-template-columns: 1fr;
  }

  .step-actions .btn,
  .step-actions .btn:not(.ghost),
  .actions .btn,
  .actions .btn:not(.ghost) {
    width: 100%;
    min-width: 0;
  }

  .task-progress-updated {
    white-space: normal;
  }

  .task-step-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .steps,
  .status-layout .steps {
    gap: 5px;
  }

  .step-pill,
  .status-layout .step-pill {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-height: 68px;
    padding: 7px 4px;
    text-align: center;
  }

  .step-title {
    width: 100%;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.25;
  }
}

.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(23, 71, 94, .22);
  border-radius: 999px;
  color: #111827;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
}
.inline-action:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Customer-page visual refresh: presentation only; all form and API behavior stays unchanged. */
:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f7f9fd;
  --ink: #172033;
  --muted: #69758a;
  --muted-2: #8f99a9;
  --line: #e4e9f2;
  --line-strong: #cad3e2;
  --teal: #2864dc;
  --teal-2: #4e8cff;
  --teal-soft: #eef4ff;
  --navy: #16213a;
  --navy-2: #23385e;
  --gold: #d38a25;
  --gold-soft: #fff7e8;
  --success: #16845b;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(30, 53, 91, .12);
  --shadow-soft: 0 8px 24px rgba(30, 53, 91, .08);
}

body {
  background:
    radial-gradient(circle at 4% 0%, rgba(94, 138, 255, .15), transparent 28rem),
    radial-gradient(circle at 94% 9%, rgba(103, 203, 196, .13), transparent 25rem),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 58%, #edf2f9 100%);
}

body::before { background: linear-gradient(120deg, transparent 0 65%, rgba(255,255,255,.78) 65% 66%, transparent 66%); opacity: .65; }
.shell { max-width: 1360px; padding: 28px 28px 54px; }
.topbar { min-height: 78px; padding: 13px 18px; border-color: rgba(220, 227, 240, .92); border-radius: 18px; background: rgba(255,255,255,.88); }
.brand-logo { width: min(210px, 46vw); height: auto; }
.tabs { gap: 4px; padding: 4px; border-color: #e8edf5; background: #f5f7fb; }
.tab { min-width: 98px; padding: 10px 17px; color: #5f6b80; font-size: 14px; }
.tab.active { background: linear-gradient(135deg, #386ee0, #244caa); box-shadow: 0 7px 16px rgba(45, 89, 191, .24); }
.tab-link:hover { color: #244caa; background: #e9effd; }

.notice { margin-bottom: 18px; padding: 13px 16px; border-color: #f1d596; border-radius: 14px; color: #745320; background: linear-gradient(105deg, #fff9ec, #fffdf8); box-shadow: 0 8px 18px rgba(180, 123, 26, .07); }
.notice > strong { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; color: #fff; background: #d18a28; font-size: 13px; }
.layout { grid-template-columns: minmax(286px, .35fr) minmax(580px, .82fr); gap: 22px; }
.flow, .panel { border-color: rgba(223, 229, 240, .95); border-radius: 20px; background: rgba(255,255,255,.91); box-shadow: var(--shadow-soft); }
.flow { padding: 22px; }
.panel { padding: 28px; }
.flow-head { padding-bottom: 18px; margin-bottom: 18px; }
.mini-logo { border-radius: 14px; border-color: rgba(40,100,220,.16); background: linear-gradient(145deg, #f6f9ff, #e9f0ff); box-shadow: none; }
.mini-logo::before, .guide-icon::before { border-color: var(--teal); }
.eyebrow { color: #5376be; font-size: 11px; letter-spacing: .1em; }
.flow-head h3 { font-size: 21px; }
.current-plan { padding: 16px; border-color: #e5eaf3; border-radius: 14px; background: linear-gradient(135deg, #f5f8ff, #fff); }
#flowPlan { color: #244caa; font-size: 20px; }
.steps { gap: 9px; }
.step-pill { min-height: 72px; padding: 11px; border-color: #e8edf4; border-radius: 14px; background: rgba(255,255,255,.72); }
.step-pill.active { border-color: rgba(55,110,224,.33); background: linear-gradient(135deg, #f0f5ff, #fff); box-shadow: inset 3px 0 0 #386ee0, 0 8px 18px rgba(49, 94, 190, .08); }
.step-no { width: 32px; height: 32px; color: #6e7b92; background: #edf1f7; }
.step-pill.active .step-no { background: linear-gradient(135deg, #4b82ee, #294fae); }
.step-title { font-size: 15px; }

.submit-overview { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 20px 22px; overflow: hidden; position: relative; border: 1px solid rgba(116, 151, 232, .28); border-radius: 18px; color: #f5f8ff; background: linear-gradient(125deg, #1d2f54, #284e99); box-shadow: 0 14px 30px rgba(30, 60, 126, .18); }
.submit-overview::after { content: ""; position: absolute; width: 190px; height: 190px; right: 25%; top: -120px; border: 32px solid rgba(151, 183, 255, .11); border-radius: 50%; pointer-events: none; }
.submit-overview-copy, .overview-checklist { position: relative; z-index: 1; }
.overview-kicker { display: block; margin-bottom: 5px; color: #bcd1ff; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.submit-overview strong { display: block; font-size: 19px; line-height: 1.35; }
.submit-overview p { max-width: 570px; margin: 7px 0 0; color: #d6e1f9; font-size: 13px; line-height: 1.6; }
.overview-checklist { display: grid; grid-template-columns: 1fr; gap: 7px; min-width: 178px; padding: 12px 14px; border: 1px solid rgba(220,231,255,.2); border-radius: 13px; background: rgba(255,255,255,.08); font-size: 13px; }
.overview-checklist span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.overview-checklist i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #274d98; background: #dce8ff; font-size: 11px; font-style: normal; font-weight: 800; }

.section-title { align-items: center; margin-bottom: 18px; padding-bottom: 15px; }
.section-title h3 { font-size: 25px; letter-spacing: -.02em; }
.status-badge { min-height: 30px; padding: 6px 11px; border-color: #d8e4fc; color: #315cac; background: #f0f5ff; }
.step-card { margin-bottom: 14px; padding: 18px; border-color: #e4eaf3; border-radius: 16px; background: #fff; }
.step-card.complete-step { border-color: #bde9d3; background: linear-gradient(135deg, #f3fcf7, #fff); }
.step-guide { gap: 13px; padding: 14px; border-color: #e3eaf5; border-radius: 13px; background: linear-gradient(135deg, #f7f9fe, #fff); }
.guide-icon { border-color: #d5e2fd; border-radius: 11px; background: #edf3ff; }
.step-guide strong { color: #283956; }
.field { margin-top: 17px; }
.field label { margin-bottom: 9px; color: #34425b; font-size: 13px; }
input, textarea { border-color: #d5ddea; border-radius: 10px; padding: 13px 14px; background: #fcfdff; }
input:hover, textarea:hover { border-color: #b9c7df; }
input:focus, textarea:focus { border-color: #4a7fec; box-shadow: 0 0 0 4px rgba(70, 123, 234, .13); background: #fff; }
.btn, .link-btn { min-height: 46px; border-radius: 10px; }
.btn { background: linear-gradient(135deg, #3d75e7, #264caa); box-shadow: 0 10px 20px rgba(42, 80, 175, .19); }
.btn:hover { box-shadow: 0 14px 26px rgba(42, 80, 175, .26); }
.btn.ghost { color: #53637b; border-color: #d9e0ec; background: #f8faff; }
.btn.ghost:hover { color: #244caa; border-color: #bfcde4; background: #edf3ff; }
.credential-login-alert { border-color: #f3d08c; border-left-color: #eaa027; border-radius: 11px; }
.credential-link-btn { background: linear-gradient(135deg, #ed9c18, #cc7210); box-shadow: 0 10px 22px rgba(204, 114, 16, .22); }
.result { border-radius: 12px; }
.status-overview { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; padding: 14px 16px; border: 1px solid #dce7fb; border-radius: 14px; color: #385070; background: linear-gradient(110deg, #f4f8ff, #fbfdff); }
.status-overview-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #568af1, #315cac); font-size: 22px; }
.status-overview strong { display: block; margin-top: 1px; color: #2b4267; font-size: 14px; }
.status-overview p { margin: 3px 0 0; color: #6b7a91; font-size: 13px; line-height: 1.55; }
.summary-card, .summary-item { border-radius: 13px; }
.modal { padding: 16px; background: rgba(16, 28, 51, .52); backdrop-filter: blur(4px); }
.modal-card { max-width: 640px; border-color: #e2e8f2; border-radius: 20px; box-shadow: 0 24px 70px rgba(8, 20, 45, .3); }

@media (max-width: 920px) {
  .shell { padding: 18px 16px 40px; }
  .layout { gap: 12px; }
  .flow, .panel { border-radius: 16px; }
  .panel { padding: 20px; }
  .submit-overview { align-items: flex-start; flex-direction: column; }
  .overview-checklist { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell { padding: 12px 10px 32px; }
  .topbar { min-height: 0; padding: 12px; border-radius: 15px; }
  .submit-overview { margin-bottom: 18px; padding: 17px; border-radius: 15px; }
  .submit-overview strong { font-size: 17px; }
  .overview-checklist { gap: 5px; padding: 10px; font-size: 11px; }
  .overview-checklist span { gap: 5px; }
  .overview-checklist i { width: 17px; height: 17px; font-size: 10px; }
  .section-title h3 { font-size: 22px; }
  .panel { padding: 14px; }
  .step-card { padding: 14px; }
  .status-overview { margin-bottom: 18px; padding: 13px; }
}

/* Approved recharge workspace direction: dark process rail + focused light workspace. */
body {
  background:
    radial-gradient(circle at 2% 0%, rgba(80, 117, 193, .20), transparent 34rem),
    linear-gradient(180deg, #edf2f8 0%, #f7f9fc 42%, #e9eef6 100%);
}
body::before { display: none; }
.shell { max-width: 1320px; padding: 28px 28px 56px; }
.topbar {
  min-height: 72px;
  margin-bottom: 20px;
  padding: 12px 20px;
  border: 0;
  border-radius: 18px;
  color: #edf4ff;
  background: #121f38;
  box-shadow: 0 14px 32px rgba(18, 31, 56, .18);
}
.brand { gap: 12px; }
.brand-mark {
  width: 27px;
  height: 27px;
  display: block;
  position: relative;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #72dccf;
  transform: rotate(45deg);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 3px solid #121f38;
  border-radius: 4px;
}
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { color: #f5f8fe; font-size: 17px; letter-spacing: .02em; }
.brand-copy small { color: #9fb2d4; font-size: 11px; }
.tabs { border: 0; background: rgba(255,255,255,.09); }
.tab { color: #b6c5df; }
.tab.active { color: #122039; background: #f6f8fd; box-shadow: none; }
.tab-link:hover { color: #fff; background: rgba(255,255,255,.10); }
.announcement-bar { margin-bottom: 20px; border: 0; border-radius: 14px; box-shadow: 0 10px 20px rgba(18, 31, 56, .12); }

.layout { grid-template-columns: 268px minmax(0, 1fr); gap: 0; align-items: stretch; }
.flow, .panel { border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.flow {
  min-height: 600px;
  padding: 34px 22px;
  color: #dce7fa;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(160deg, #182b4b 0%, #12203a 68%, #0d1830 100%);
}
.panel {
  padding: 38px clamp(26px, 5vw, 62px);
  border-radius: 0 20px 20px 0;
  background: #f9fbfe;
}
.flow-head { min-height: 56px; margin: 0 0 32px; padding: 0; border: 0; }
.flow-head .eyebrow { color: #91a8cf; }
.flow-head h3 { margin-top: 5px; color: #f5f8fe; font-size: 21px; }
.flow-duration { margin: 7px 0 0; color: #90a3c4; font-size: 12px; }
.current-plan { margin-bottom: 24px; padding: 15px; border-color: rgba(190, 210, 242, .16); border-radius: 13px; background: rgba(255,255,255,.07); }
.current-plan .muted, .step-pill .muted { color: #9cafcf; }
#flowPlan { color: #fff; font-size: 19px; }
.steps { position: relative; gap: 9px; }
.steps::before { content: ""; position: absolute; z-index: 0; top: 40px; bottom: 40px; left: 22px; width: 1px; background: rgba(124, 158, 214, .52); }
.step-pill { position: relative; z-index: 1; min-height: 62px; padding: 8px 5px; border: 0; border-radius: 10px; color: #9dafcd; background: transparent; }
.step-pill.active { color: #fff; background: rgba(255,255,255,.08); box-shadow: none; }
.step-no { width: 35px; height: 35px; color: #b9c9e5; border: 1px solid #5976a7; background: #1a2e50; }
.step-pill.active .step-no { color: #142642; background: #72dccf; }
.step-title { color: inherit; font-size: 14px; }

.page-heading { margin-bottom: 26px; }
.page-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; color: #748198; font-size: 12px; }
.system-live { display: inline-flex; align-items: center; gap: 7px; color: #428a80; }
.system-live i { width: 7px; height: 7px; border-radius: 50%; background: #52cabb; }
.page-heading h2 { margin: 0; color: #1a2943; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -.045em; }
.page-heading p { max-width: 580px; margin: 10px 0 0; color: #69778c; font-size: 14px; line-height: 1.75; }
.section-title { display: none; }
.step-card { padding: 24px; border: 1px solid #e0e7f1; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(29, 50, 83, .07); }
.step-card.complete-step { border-color: #bfe8d4; background: #fff; }
.step-guide { padding: 14px 0 18px; border: 0; border-bottom: 1px solid #e8edf5; border-radius: 0; background: transparent; }
.guide-icon { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #e9f0ff; }
.guide-icon::before {
  content: none;
}
.guide-icon-mark { display: block; width: 20px; height: 20px; fill: #295eae; }
.guide-icon-check { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.guide-icon-submit { display: block; width: 21px; height: 21px; fill: none; stroke: #295eae; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.step-guide strong { color: #2a3b58; }
.notice.notice-step { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f0d79f; border-radius: 12px; color: #775827; background: #fff9ec; box-shadow: none; }
.notice.notice-step > strong { width: 20px; height: 20px; flex-basis: 20px; background: #d69a36; font-size: 12px; }
.field label { color: #33445f; }
input, textarea { border-color: #ccd7e7; border-radius: 11px; background: #fcfdff; }
input:focus, textarea:focus { border-color: #5682df; box-shadow: 0 0 0 4px rgba(86, 130, 223, .13); }
.btn { background: #295eae; box-shadow: 0 9px 18px rgba(41, 94, 174, .19); }
.btn:hover { background: #214f97; box-shadow: 0 12px 22px rgba(41, 94, 174, .24); }
.btn.ghost { color: #52637f; background: #f5f7fb; }
.credential-login-alert { background: #fffaf0; }
.credential-link-btn { background: #d98a18; box-shadow: 0 10px 20px rgba(207, 128, 22, .22); }
.completion-summary { padding: 2px; }
.status-overview { padding: 18px; border-color: #dce6f5; border-radius: 15px; background: #f2f6fc; }
.status-overview-icon { background: #295eae; }
.status-query-row { margin-top: 20px; }
.modal { background: rgba(11, 24, 46, .58); }

/* Status view uses a distinct horizontal stepper; it must never inherit the submit rail's vertical connector. */
.status-layout .flow {
  display: grid;
  grid-template-columns: minmax(210px, 268px) minmax(0, 1fr);
  gap: 22px;
  min-height: 0;
  padding: 22px 28px;
  border-radius: 20px;
  align-items: center;
}
.status-layout .flow-head { display: none; }
.status-layout .current-plan {
  margin: 0;
  padding: 16px;
  border-color: rgba(190, 210, 242, .17);
  background: rgba(255,255,255,.08);
}
.status-layout .steps {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.status-layout .steps::before { display: none; }
.status-layout .step-pill {
  min-height: 62px;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 5px;
  border-radius: 10px;
}
.status-layout .step-pill:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 25px;
  left: 43px;
  right: -40px;
  height: 1px;
  background: rgba(124, 158, 214, .52);
}
.status-layout .step-no { position: relative; z-index: 1; }

/* Progress lookup is action-first: the stepper is quiet context, never the page focal point. */
.status-layout .flow {
  color: #33445f;
  border: 1px solid #e2e8f1;
  background: #f8fafd;
  box-shadow: 0 8px 22px rgba(30, 51, 84, .05);
}
.layout.status-layout { gap: 14px; }
.status-layout .current-plan {
  border-color: #dfe7f2;
  background: #fff;
}
.status-layout .current-plan .muted { color: #718098; }
.status-layout #flowPlan { color: #243b61; }
.status-layout .steps { gap: 0; align-items: start; }
.status-layout .step-pill {
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 35px auto;
  justify-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #65748a;
  text-align: center;
  background: transparent;
}
.status-layout .step-pill.active { color: #28598d; background: transparent; }
.status-layout .step-pill .step-no {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  color: #52709a;
  border-color: #9eb0ca;
  background: #f7faff;
}
.status-layout .step-pill.active .step-no { color: #123d60; border-color: #72dccf; background: #72dccf; }
.status-layout .step-pill > div:last-child { grid-row: 2; grid-column: 1; }
.status-layout .step-pill .step-title { color: inherit; font-size: 13px; }
.status-layout .step-pill .muted { margin-top: 3px; color: #8794a8; font-size: 11px; }
.status-layout .step-pill:not(:last-child)::after {
  z-index: 0;
  top: 17px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  background: #cbd7e7;
}
.status-layout .panel {
  border: 1px solid #e1e7f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(29, 50, 83, .06);
}
.status-layout .status-overview {
  margin-bottom: 24px;
  border: 0;
  background: #f5f8fc;
}
.status-layout .status-query-row {
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #dce5f0;
  border-radius: 15px;
  background: #f8faff;
  box-shadow: 0 8px 20px rgba(32, 57, 96, .05);
}
.status-layout .status-query-row input { min-height: 48px; background: #fff; }
.status-layout .status-query-row .btn { min-height: 48px; }

.agreement-check {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  color: #31415d;
  background: #f8faff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.agreement-check:hover,
.agreement-check:has(input:checked) {
  border-color: #8dafe8;
  background: #f1f6ff;
  box-shadow: 0 5px 14px rgba(42, 88, 165, .08);
}
.agreement-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #295eae;
}

@media (max-width: 920px) {
  .shell { padding: 18px 16px 42px; }
  .layout { grid-template-columns: 1fr; gap: 12px; }
  .flow { min-height: 0; padding: 13px; border-radius: 16px; }
  .panel { padding: 24px 20px; border-radius: 16px; }
  .flow-head, .current-plan { display: none; }
  .steps::before { display: none; }
  .status-layout .step-pill:not(:last-child)::after { display: none; }
  .status-layout .flow { padding: 13px; background: #f8fafd; }
  .layout.status-layout { gap: 12px; }
  .status-layout .panel { border-radius: 16px; }
  .status-layout .step-pill { min-height: 52px; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: 1fr; justify-items: start; gap: 6px; padding: 7px; text-align: left; }
  .status-layout .step-pill .step-no { grid-row: 1; grid-column: 1; width: 24px; height: 24px; }
  .status-layout .step-pill > div:last-child { grid-row: 1; grid-column: 2; }
  .status-layout .step-pill .muted { display: none; }
  .status-layout .status-query-row { padding: 0; border: 0; background: transparent; box-shadow: none; }
}

@media (max-width: 720px) {
  .shell { padding: 10px 10px 32px; }
  .topbar { padding: 12px; border-radius: 15px; }
  .brand-copy small { display: none; }
  .tabs { width: auto; }
  .tab { min-width: 0; padding: 9px 10px; font-size: 12px; }
  .panel { padding: 24px 15px; }
  .page-context { margin-bottom: 19px; }
  .page-heading h2 { font-size: 26px; }
  .page-heading p { font-size: 13px; }
  .step-card { padding: 16px; border-radius: 15px; }
  .notice.notice-step { font-size: 13px; }
}

/* 2026 refresh: a focused operations workspace, shared by submit and status views. */
body {
  color: #1c2944;
  background:
    radial-gradient(circle at 8% 2%, rgba(123, 97, 255, .16), transparent 27rem),
    radial-gradient(circle at 94% 10%, rgba(55, 205, 189, .12), transparent 25rem),
    #f5f6fb;
}

.shell { max-width: 1380px; padding: 26px 24px 52px; }
.topbar {
  min-height: 78px;
  padding: 12px 16px 12px 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  color: #f9fbff;
  background: linear-gradient(125deg, #131b37 0%, #202c58 57%, #26386a 100%);
  box-shadow: 0 20px 44px rgba(22, 32, 69, .19);
}
.brand { gap: 11px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-color: rgba(139, 235, 222, .36); background: rgba(130, 230, 215, .12); box-shadow: none; transform: none; }
.brand-mark::before, .brand-mark::after { content: none; }
.brand-mark-icon { display: block; width: 25px; height: 25px; fill: none; stroke: #aaf9ef; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.35; filter: drop-shadow(0 0 5px rgba(170,249,239,.38)); }
.brand-mark-icon circle { fill: #fff; stroke: none; }
.brand-copy strong { color: #fff; font-size: 16px; letter-spacing: .01em; }
.brand-copy small { color: #aebcdd; }
.tabs { gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(9, 15, 36, .26); }
.tab, .tab-link { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 9px; color: #bdc8e4; background: transparent; font-weight: 720; }
.tab:hover, .tab-link:hover { color: #fff; background: rgba(255,255,255,.09); }
.tab.active { color: #172042; background: #f4f7ff; box-shadow: 0 5px 14px rgba(0,0,0,.16); }

.layout { grid-template-columns: minmax(260px, .55fr) minmax(0, 1.72fr); gap: 18px; align-items: stretch; }
.flow, .panel { border: 0; box-shadow: 0 18px 44px rgba(38, 51, 91, .10); }
.flow {
  position: relative;
  overflow: hidden;
  padding: 25px 20px;
  border-radius: 22px;
  color: #e5ecff;
  background: linear-gradient(160deg, #172143 0%, #1d2b57 50%, #27366b 100%);
}
.flow::before { content: ""; position: absolute; width: 230px; height: 230px; right: -115px; bottom: -105px; border: 1px solid rgba(145, 177, 255, .18); border-radius: 50%; box-shadow: 0 0 0 28px rgba(145, 177, 255, .045), 0 0 0 56px rgba(145, 177, 255, .03); }
.flow-head { position: relative; z-index: 1; padding: 0 4px 20px; margin: 0 0 18px; border-color: rgba(200,214,255,.18); }
.flow-head h3 { color: #fff; font-size: 24px; letter-spacing: -.025em; }
.flow-duration { color: #aebcdd; }
.eyebrow { color: #8297c8; letter-spacing: .12em; }
.current-plan { position: relative; z-index: 1; padding: 15px; margin-bottom: 22px; border: 1px solid rgba(184,204,255,.16); border-radius: 15px; background: rgba(255,255,255,.07); }
.current-plan .muted { color: #aebcdd; }
#flowPlan { color: #8be5da; font-size: 22px; }
.steps { position: relative; z-index: 1; gap: 10px; }
.steps::before { display: none; }
.step-pill { position: relative; z-index: 1; min-height: 70px; grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 11px 10px; border: 1px solid rgba(177,195,238,.12); border-radius: 14px; color: #b6c2df; background: rgba(255,255,255,.035); }
.step-pill:not(:last-child)::after { display: none; }
.step-pill:hover { border-color: rgba(177,195,238,.22); background: rgba(255,255,255,.07); }
.step-pill.active { border-color: rgba(126, 225, 212, .22); background: linear-gradient(110deg, rgba(119,224,211,.19), rgba(125,145,250,.11)); box-shadow: none; }
.step-no { position: relative; z-index: 1; width: 38px; height: 38px; color: #c3d0ed; border: 1px solid rgba(188,204,244,.45); background: rgba(255,255,255,.07); }
.step-pill.active .step-no { color: #15214a; background: #80e1d4; box-shadow: 0 0 0 5px rgba(128,225,212,.10); }
.step-title { color: inherit; font-size: 15px; }
.step-pill .muted { color: #95a6cd; font-size: 12px; }
.panel { padding: 34px; border-radius: 22px; background: rgba(255,255,255,.91); backdrop-filter: blur(18px); }
.page-context { color: #6d7fa6; }
.system-live { padding: 6px 9px; border-radius: 999px; color: #2d8d82; background: #e8faf7; }
.page-heading h2, .section-title h3 { color: #1c2944; letter-spacing: -.035em; }
.page-heading h2 { font-size: clamp(30px, 3.1vw, 42px); }
.page-heading p { color: #677593; }
.section-title { padding-bottom: 14px; border-bottom: 1px solid #e8ebf4; }
.status-badge { border-color: #dce4f6; color: #4a6190; background: #f3f6fd; }
.step-card { padding: 22px; border: 1px solid #e7eaf3; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(39,55,93,.045); }
.step-card.active-step { border-color: #d9e2f4; box-shadow: 0 18px 38px rgba(58,78,130,.09); }
.notice.notice-step { border-color: #f1dca8; border-left: 4px solid #e8ae3b; background: #fffaf0; }
.step-guide { padding: 16px 0 20px; border: 0; border-bottom: 1px solid #e8ebf3; border-radius: 0; background: transparent; }
.guide-icon { background: linear-gradient(145deg, #edf3ff, #e4edff); }
.input-row, .status-query-row { gap: 10px; }
input, textarea { border-color: #d8dfed; background: #fbfcff; }
input:focus, textarea:focus { border-color: #7888e4; box-shadow: 0 0 0 4px rgba(120,136,228,.13); }
.btn { background: linear-gradient(135deg, #5266d6, #3e4db3); box-shadow: 0 10px 21px rgba(62,77,179,.22); }
.btn:hover { background: linear-gradient(135deg, #4558c5, #3543a2); }
.btn.ghost { color: #53647f; background: #f5f7fc; }

/* Task progress is deliberately a different workspace, not a recycled top stepper. */
.layout.status-layout { grid-template-columns: minmax(244px, .53fr) minmax(0, 1.74fr); gap: 18px; }
.status-layout .flow { display: flex; flex-direction: column; min-height: 640px; padding: 25px 20px; background: linear-gradient(165deg, #121c39, #213462 63%, #284379); }
.status-layout .flow-head { display: flex; }
.status-layout .current-plan { display: block; }
.status-layout .steps { display: grid; grid-template-columns: 1fr; gap: 10px; min-width: 0; }
.status-layout .steps::before { display: block; }
.status-layout .step-pill { min-height: 70px; display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: 1fr; justify-items: stretch; gap: 12px; padding: 11px 10px; text-align: left; }
.status-layout .step-pill > div:last-child { grid-row: 1; grid-column: 2; }
.status-layout .step-pill .step-no { grid-row: 1; grid-column: 1; align-self: center; }
.status-layout .step-pill .step-title { color: inherit; font-size: 15px; }
.status-layout .step-pill .muted { display: block; margin-top: 3px; color: #95a6cd; font-size: 12px; }
.status-layout .step-pill:not(:last-child)::after { display: none; }
.status-layout .panel { padding: 34px; border-radius: 22px; }
.status-layout .status-overview { margin: 0 0 28px; padding: 20px; border: 0; border-radius: 17px; color: #d9e4ff; background: linear-gradient(120deg, #1b2850, #2e4278); box-shadow: 0 14px 28px rgba(31,47,91,.13); }
.status-layout .status-overview-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; color: #1a2a52; background: #93e6db; }
.status-overview-mark { display: block; width: 25px; height: 25px; fill: none; stroke: #1c315e; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.15; }
.status-layout .status-overview strong { color: #fff; font-size: 16px; }
.status-layout .status-overview p { color: #bdcae9; }
.status-layout .section-title { margin-bottom: 17px; }
.status-layout .status-query-row { margin-top: 18px; padding: 10px; border: 1px solid #e4e8f2; border-radius: 16px; background: #f5f7fc; box-shadow: none; }
.status-layout .status-query-row input { min-height: 48px; border-color: transparent; background: #fff; }
.status-layout .status-query-row .btn { min-height: 48px; }
.status-layout .result.info { margin-top: 20px; }
.task-progress-card { border-color: #dce4f2; border-radius: 16px; background: #f8faff; }
.task-progress-card.processing { border-color: #bdc9ef; background: linear-gradient(135deg, #f8faff, #f2fbfb); }

@media (max-width: 920px) {
  .shell { padding: 18px 15px 38px; }
  .layout, .layout.status-layout { grid-template-columns: 1fr; gap: 12px; }
  .flow, .status-layout .flow { min-height: 0; padding: 12px; border-radius: 17px; }
  .flow::before { display: none; }
  .flow-head, .status-layout .flow-head, .current-plan, .status-layout .current-plan { display: none; }
  .steps, .status-layout .steps { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .steps::before, .status-layout .steps::before { display: none; }
  .step-pill:not(:last-child)::after { display: none; }
  .step-pill, .status-layout .step-pill { min-height: 60px; grid-template-columns: 1fr; grid-template-rows: 25px auto; justify-items: center; gap: 5px; padding: 7px 4px; text-align: center; }
  .step-pill > div:last-child, .status-layout .step-pill > div:last-child { grid-row: 2; grid-column: 1; }
  .step-pill .step-no, .status-layout .step-pill .step-no { grid-row: 1; grid-column: 1; width: 25px; height: 25px; font-size: 12px; }
  .step-pill .muted, .status-layout .step-pill .muted { display: none; }
  .step-pill .step-title, .status-layout .step-pill .step-title { width: 100%; font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
  .panel, .status-layout .panel { padding: 26px 20px; border-radius: 18px; }
}

@media (max-width: 620px) {
  .shell { padding: 10px 10px 30px; }
  .topbar { min-height: 0; padding: 11px; border-radius: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy small { display: none; }
  .tabs { width: auto; }
  .tab, .tab-link { min-height: 34px; padding: 7px 9px; font-size: 12px; }
  .tab-link { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .panel, .status-layout .panel { padding: 23px 15px; }
  .page-heading h2 { font-size: 27px; }
  .step-card { padding: 16px; }
  .status-layout .status-overview { padding: 16px; border-radius: 15px; }
  .status-layout .status-query-row { padding: 0; border: 0; background: transparent; }
  .task-step-track { grid-template-columns: 1fr; }
}

/* The processing steps are a connected activity rail, not a second set of cards. */
.task-progress-card {
  margin-top: 22px;
  padding: 18px 2px 0;
  border: 0;
  border-top: 1px solid #dce5f0;
  border-radius: 0;
  background: transparent;
}
.task-progress-card.processing { border-color: #cbd8ef; background: transparent; }
.task-progress-head { margin-bottom: 9px; }
.task-live-meter { margin: 0 0 18px; height: 3px; background: #dce8ef; }
.task-step-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 0;
  padding: 0 6px;
}
.task-step-track::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 8%;
  left: 8%;
  height: 2px;
  border-radius: 99px;
  background: #d7e1ea;
}
.task-step {
  position: relative;
  z-index: 1;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 27px auto;
  justify-items: center;
  gap: 7px;
  padding: 0 4px;
  border: 0 !important;
  border-radius: 0;
  color: #7a899e;
  text-align: center;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.3;
}
.task-step-dot { grid-row: 1; grid-column: 1; width: 16px; height: 16px; border-width: 2px; background: #f7f9fc; }
.task-step > span:last-child { grid-row: 2; grid-column: 1; max-width: 94px; }
.task-step.done { color: #177d61; }
.task-step.done .task-step-dot { border-color: #19946f; background: #19946f; }
.task-step.current { color: #283f85; overflow: visible; }
.task-step.current .task-step-dot { border-color: #5266d6; background: radial-gradient(circle at center, #5266d6 0 4px, #fff 5px); }
.task-progress-card.processing .task-step.current::after { display: none; }
.task-step.pending .task-step-dot { border-color: #c6d1df; background: #f8faff; }

@media (max-width: 720px) {
  .task-step-track { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 18px; }
  .task-step-track::before { display: none; }
}

@media (max-width: 620px) {
  .task-progress-card { margin-top: 18px; padding-top: 16px; }
  .task-step-track { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 4px; }
  .task-step-track::before { display: block; top: 14px; bottom: 14px; left: 11px; width: 2px; height: auto; right: auto; }
  .task-step { min-height: 48px; grid-template-columns: 26px minmax(0,1fr); grid-template-rows: 1fr; justify-items: start; align-items: center; gap: 10px; padding: 0; text-align: left; }
  .task-step-dot { grid-row: 1; grid-column: 1; width: 17px; height: 17px; }
  .task-step > span:last-child { grid-row: 1; grid-column: 2; max-width: none; }
}

/* Keep the lookup rail as one coherent guide instead of mixing card styles. */
@media (min-width: 921px) {
  .status-layout .flow { padding: 26px 20px; }
  .status-layout .flow-head {
    display: block;
    padding: 0 4px 17px;
    margin: 0 0 16px;
    border: 0;
    border-bottom: 1px solid rgba(190, 207, 248, .17);
  }
  .status-layout .flow-head h3 { font-size: 23px; }
  .status-layout .current-plan {
    margin: 0 0 14px;
    padding: 15px;
    border-color: rgba(185, 207, 255, .18);
    border-radius: 15px;
    background: rgba(255,255,255,.075);
  }
  .status-layout .current-plan .muted { color: #a9b8d9; }
  .status-layout #flowPlan { color: #8be5da; }
  .status-layout .steps { width: 100%; gap: 9px; }
  .status-layout .steps::before { display: none; }
  .status-layout .step-pill {
    width: 100%;
    box-sizing: border-box;
    min-height: 66px;
    padding: 10px 11px;
    border-color: rgba(178, 197, 240, .13);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
  }
  .status-layout .step-pill.active { border-color: rgba(129, 228, 214, .25); background: linear-gradient(100deg, rgba(106,225,210,.17), rgba(126,146,247,.08)); }
  .status-layout .step-pill .step-title { color: #dce7ff; }
  .status-layout .step-pill .muted { color: #9eafd3; }
}

/* Recharge failures need a clear, calm warning hierarchy instead of a subdued notice. */
#statusResult.result.warning {
  padding: 22px;
  border: 1px solid #dce4ef;
  border-radius: 18px;
  color: #273955;
  background: #fff;
  box-shadow: 0 15px 30px rgba(31, 58, 103, .08);
}

#statusResult.result.warning .action-required-head {
  align-items: flex-start;
  margin: -2px 0 16px;
}

#statusResult.result.warning .action-required-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

#statusResult.result.warning .action-required-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #506a9d;
  background: #edf3ff;
  box-shadow: inset 0 0 0 1px rgba(72, 103, 157, .12);
}

#statusResult.result.warning .action-required-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

#statusResult.result.warning .action-required-title small,
#statusResult.result.warning .action-required-title strong {
  display: block;
}

#statusResult.result.warning .action-required-title small {
  margin-bottom: 3px;
  color: #7283a1;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .02em;
}

#statusResult.result.warning .action-required-head > .action-required-title strong {
  color: #233b63;
  font-size: 20px;
  line-height: 1.25;
}

#statusResult.result.warning .action-required-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #d5dfef;
  border-radius: 999px;
  color: #52647f;
  background: #f6f8fc;
  font-size: 12px;
  font-weight: 800;
}

#statusResult.result.warning .action-required-message {
  margin: 0;
  padding: 15px 17px 15px 19px;
  border: 1px solid #eeabb0;
  border-left: 5px solid #d92d3a;
  border-radius: 12px;
  color: #b4232d;
  background: #fff8f8;
  font-size: 16px;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(184, 35, 48, .08);
  line-height: 1.72;
}

#statusResult.result.warning .action-required-meta { margin-top: 14px; }

#statusResult.result.warning .action-required-meta > div {
  border-color: #e1e7f0;
  background: #f9fbfe;
}

#statusResult.result.warning .action-required-meta b { color: #73829a; }
#statusResult.result.warning .action-required-meta span { color: #30415c; }

#statusResult.result.warning .customer-next-action { margin-top: 17px; }

#statusResult.result.warning .customer-next-action .btn {
  min-height: 46px;
  padding-inline: 20px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #385fc0, #294b9b);
  box-shadow: 0 10px 20px rgba(42, 75, 155, .23);
}

#statusResult.result.warning .customer-next-action .btn:hover {
  background: linear-gradient(135deg, #456dcd, #3157ae);
  transform: translateY(-1px);
}

@media (max-width: 620px) {
  #statusResult.result.warning { padding: 17px 15px; border-radius: 15px; }
  #statusResult.result.warning .action-required-head { gap: 12px; margin-bottom: 14px; }
  #statusResult.result.warning .action-required-title { align-items: flex-start; gap: 10px; }
  #statusResult.result.warning .action-required-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  #statusResult.result.warning .action-required-icon svg { width: 21px; height: 21px; }
  #statusResult.result.warning .action-required-title small { font-size: 11px; line-height: 1.35; }
  #statusResult.result.warning .action-required-head > .action-required-title strong { font-size: 18px; }
  #statusResult.result.warning .action-required-badge { padding: 6px 9px; font-size: 11px; }
  #statusResult.result.warning .action-required-message { padding: 13px 13px 13px 15px; font-size: 15px; line-height: 1.68; }
  #statusResult.result.warning .customer-next-action { display: block; }
  #statusResult.result.warning .customer-next-action .btn { width: 100%; }
}

/* A live route makes multi-minute processing feel active without changing the task-state model. */
.task-progress-card.processing {
  position: relative;
  padding: 22px 4px 3px;
  border-top: 0;
}

.task-progress-card.processing::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9ae3da, #4d69d1 44%, #9ae3da);
  background-size: 220% 100%;
  animation: task-route-glow 3.2s linear infinite;
}

.task-progress-card.processing .task-live-status {
  width: fit-content;
  margin-top: 9px;
  padding: 5px 9px;
  border: 1px solid #c6e9e4;
  border-radius: 999px;
  color: #177d73;
  background: #f0fbfa;
}

.task-progress-card.processing .task-live-meter {
  height: 7px;
  margin: 17px 0 21px;
  border: 0;
  background: #dfe8f0;
  box-shadow: inset 0 1px 2px rgba(31, 62, 111, .08);
}

.task-progress-card.processing .task-live-meter span {
  width: 36%;
  background: linear-gradient(90deg, transparent, #55cfc1 22%, #516bd2 52%, #9cebe0 76%, transparent);
  filter: saturate(1.08);
  animation: task-live-route 2.1s ease-in-out infinite;
}

.task-progress-card.processing .task-step-track {
  --active-route: 0%;
  padding: 0 5.8%;
}

.task-progress-card.processing .task-step-track:has(.task-step:nth-child(2).current) { --active-route: 20%; }
.task-progress-card.processing .task-step-track:has(.task-step:nth-child(3).current) { --active-route: 40%; }
.task-progress-card.processing .task-step-track:has(.task-step:nth-child(4).current) { --active-route: 60%; }
.task-progress-card.processing .task-step-track:has(.task-step:nth-child(5).current) { --active-route: 80%; }
.task-progress-card.processing .task-step-track:has(.task-step:nth-child(6).current) { --active-route: 100%; }

.task-progress-card.processing .task-step-track::before {
  top: 16px;
  right: 9.5%;
  left: 9.5%;
  height: 3px;
  background: #d9e3ee;
}

.task-progress-card.processing .task-step-track::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 16px;
  left: 9.5%;
  width: calc(81% * var(--active-route) / 100);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #21a082, #5ad0c2 58%, #4f6bd3);
  box-shadow: 0 0 10px rgba(63, 161, 174, .34);
  transition: width .55s cubic-bezier(.22,.75,.25,1);
}

.task-progress-card.processing .task-step {
  min-height: 66px;
  grid-template-rows: 33px auto;
  gap: 8px;
  color: #8290a5;
  font-weight: 760;
}

.task-progress-card.processing .task-step-dot {
  width: 22px;
  height: 22px;
  border: 3px solid #c8d5e2;
  background: #fff;
  box-shadow: 0 0 0 4px #f8fbfd;
}

.task-progress-card.processing .task-step.done { color: #187d67; }
.task-progress-card.processing .task-step.done .task-step-dot { border-color: #1a9a78; background: #1a9a78; box-shadow: 0 0 0 4px #f4fbf8; }

.task-progress-card.processing .task-step.current { color: #2b4797; }
.task-progress-card.processing .task-step.current .task-step-dot {
  border-color: #506ddd;
  background: radial-gradient(circle, #5874e0 0 4px, #fff 5px);
  box-shadow: 0 0 0 5px rgba(99, 125, 224, .13), 0 0 20px rgba(74, 103, 209, .32);
  animation: task-current-orbit 1.8s ease-in-out infinite;
}

.task-progress-card.processing .task-step.current > span:last-child::after {
  content: "处理中";
  display: block;
  margin-top: 3px;
  color: #6277b9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

@keyframes task-route-glow { to { background-position: 220% 0; } }
@keyframes task-live-route { 0% { transform: translateX(-115%); } 55% { transform: translateX(165%); } 100% { transform: translateX(165%); } }
@keyframes task-current-orbit { 0%,100% { transform: scale(1); } 50% { transform: scale(1.13); } }

@media (max-width: 720px) {
  .task-progress-card.processing .task-step-track { padding: 0; }
  .task-progress-card.processing .task-step-track::before,
  .task-progress-card.processing .task-step-track::after { display: none; }
}

@media (max-width: 620px) {
  .task-progress-card.processing { padding: 19px 0 2px; }
  .task-progress-card.processing .task-live-meter { margin: 14px 0 18px; }
  .task-progress-card.processing .task-step-track { padding-left: 4px; }
  .task-progress-card.processing .task-step-track { --mobile-route-height: 0px; }
  .task-progress-card.processing .task-step-track:has(.task-step:nth-child(2).current) { --mobile-route-height: 56px; }
  .task-progress-card.processing .task-step-track:has(.task-step:nth-child(3).current) { --mobile-route-height: 112px; }
  .task-progress-card.processing .task-step-track:has(.task-step:nth-child(4).current) { --mobile-route-height: 168px; }
  .task-progress-card.processing .task-step-track:has(.task-step:nth-child(5).current) { --mobile-route-height: 224px; }
  .task-progress-card.processing .task-step-track:has(.task-step:nth-child(6).current) { --mobile-route-height: 280px; }
  .task-progress-card.processing .task-step-track::before {
    display: block;
    top: 27px;
    right: auto;
    bottom: 27px;
    left: 12px;
    width: 3px;
    height: auto;
    background: #d9e3ee;
  }
  .task-progress-card.processing .task-step-track::after {
    display: block;
    top: 27px;
    right: auto;
    bottom: auto;
    left: 12px;
    width: 3px;
    height: var(--mobile-route-height);
    background: linear-gradient(180deg, #20a083, #54d0c0 58%, #4f6bd3);
  }
  .task-progress-card.processing .task-step { min-height: 56px; grid-template-rows: 1fr; }
  .task-progress-card.processing .task-step-dot { width: 19px; height: 19px; border-width: 2px; }
  .task-progress-card.processing .task-step.current > span:last-child::after { display: inline; margin: 0 0 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .task-progress-card.processing::before,
  .task-progress-card.processing .task-live-meter span,
  .task-progress-card.processing .task-step.current .task-step-dot { animation: none; }
  .task-progress-card.processing .task-live-meter span { width: 64%; transform: translateX(14%); }
}
