.ctp-page {
  --wh-sidebar-top: #32445d;
  --wh-sidebar-bottom: #405d7d;
  background: linear-gradient(180deg, var(--wh-sidebar-top) 0%, var(--wh-sidebar-bottom) 100%);
}

.ctp-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 18px 48px;
  font-family: "Manrope", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: #17243a;
}

.ctp-card {
  background: #fff;
  border: 1px solid #d7e3f2;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(26, 58, 93, 0.08);
  padding: 24px;
  margin-bottom: 25px;
}

.ctp-hero {
  background:
    radial-gradient(circle at top right, rgba(45, 126, 221, 0.14), transparent 28%),
    linear-gradient(180deg, #fcfeff 0%, #f4fafe 100%);
}

.ctp-logo {
  display: block;
  height: 76px;
  width: auto;
  margin: 0 0 18px;
}

.ctp-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: #6280a6;
  font-weight: 800;
}

.ctp-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.02;
  color: #39506d;
}

.ctp-subtitle {
  margin: 10px 0 0;
  color: #5f7190;
  font-size: 1rem;
  max-width: 760px;
}

.ctp-form {
  margin-top: 24px;
}

.ctp-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: #47627f;
}

.ctp-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.ctp-input {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #bed1e8;
  padding: 0 16px;
  font-size: 1rem;
}

.ctp-btn {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(115deg, #0f5f93 0%, #1f89cf 52%, #23a1e8 100%);
  cursor: pointer;
}

#ctp-alert {
  margin-top: 14px;
}

.ctp-alert {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.ctp-alert.error {
  background: #ffe2e2;
  color: #8f2130;
}

.ctp-alert.success {
  background: #e0f6e8;
  color: #116438;
}

.ctp-hidden {
  display: none;
}

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

.ctp-result-title {
  margin: 0;
  font-size: 1.8rem;
}

.ctp-status-note {
  margin: 6px 0 0;
  color: #607089;
}

.ctp-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  background: #eef3fb;
  color: #33445d;
}

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

.ctp-stat,
.ctp-panel {
  border: 1px solid #deebf8;
  border-radius: 16px;
  padding: 16px;
  background: #fbfdff;
}

.ctp-stat-label {
  display: block;
  color: #6981a3;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  margin-bottom: 6px;
}

.ctp-stat-value {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.ctp-section-title {
  margin: 0 0 12px;
  color: #247fbf;
  font-size: 1.2rem;
}

.ctp-timeline-wrap {
  margin-top: 18px;
}

.ctp-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ctp-step {
  position: relative;
  border: 1px solid #deebf8;
  border-radius: 16px;
  padding: 16px 14px 14px;
  background: #fbfdff;
}

.ctp-step::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -12px;
  width: 24px;
  height: 2px;
  background: #d6e5f6;
}

.ctp-step:first-child::before {
  display: none;
}

.ctp-step-badge {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #c2d4e9;
  margin-bottom: 10px;
}

.ctp-step.active .ctp-step-badge,
.ctp-step.done .ctp-step-badge {
  background: #33d400;
}

.ctp-step.exception .ctp-step-badge {
  background: #d9485f;
}

.ctp-step-title {
  font-weight: 800;
  color: #243754;
  margin-bottom: 4px;
}

.ctp-step-meta {
  color: #6b7c95;
  font-size: 0.88rem;
}

.ctp-panels {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ctp-panel h3 {
  margin: 0 0 12px;
  color: #247fbf;
}

.ctp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ctp-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eaf1f9;
  padding-bottom: 8px;
}

.ctp-list span {
  color: #607089;
}

.ctp-history {
  display: grid;
  gap: 10px;
}

.ctp-history-item {
  border: 1px solid #dbe8f5;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.ctp-history-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #607089;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.ctp-history-status {
  font-weight: 800;
}

@media (max-width: 760px) {
  .ctp-app {
    padding: 18px 10px 28px;
  }

  .ctp-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .ctp-logo {
    height: 58px;
    margin-bottom: 14px;
  }

  .ctp-input-row,
  .ctp-grid,
  .ctp-panels,
  .ctp-timeline {
    grid-template-columns: 1fr;
  }

  .ctp-result-head,
  .ctp-list li,
  .ctp-history-meta {
    display: grid;
    gap: 8px;
  }

  .ctp-btn {
    width: 100%;
  }
}
