* {
  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;
}

.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-head > 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 {
  color: #0f5c34;
  border-color: #98dfbd;
  background: #e6f8ee;
}

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

.status-result-head > span.ready,
.status-result-head > 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-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 {
  color: #073f4b;
  border-color: rgba(0, 124, 123, .32);
  background: linear-gradient(135deg, #eefafa, #ffffff);
  box-shadow: inset 3px 0 0 var(--teal);
}

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

.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));
  }
}

.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);
}
