/* Larger content area for desktop screens. */
.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(120px, 1fr);
  gap: 18px;
}

.topbar .tabs {
  margin: 0;
  background: rgba(247, 255, 252, .9);
}

.topbar .queue {
  justify-self: end;
}

.header-card .progress-steps {
  margin-top: 26px;
}

/* Present the header, workflow and active tool as one continuous card. */
.header-card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header-card ~ .tab-panel,
.header-card ~ .tab-panel.active {
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top-color: transparent;
}

.logo {
  width: 54px;
  height: 54px;
  padding: 2px;
  overflow: visible;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.progress-item.completed {
  color: #009f9c;
}

.progress-item.completed > span {
  border-color: var(--teal);
  color: transparent;
  background: var(--soft);
  position: relative;
}

.progress-item.completed > span::after {
  content: "\2713";
  position: absolute;
  color: #009f9c;
  font-size: 18px;
  font-weight: 900;
}

.panel.stage-two > .step:first-child,
.panel.stage-two > #verifyForm {
  display: none;
}

.panel.stage-two #verified > .success {
  margin-bottom: 26px;
  animation: success-slide-down 1s cubic-bezier(.22, 1, .36, 1) both;
}

.panel.stage-two #verified .second {
  margin-top: 0;
}

.success > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 75%;
  justify-content: flex-end;
}

.success > span small {
  color: var(--muted);
  font-weight: 500;
}

.danger-link {
  color: #c2415a;
}

.challenge-panel,
.waiting-challenge {
  border-color: rgba(0, 139, 214, .28);
  background: linear-gradient(135deg, #f7fffc, #f3f8ff);
}

.challenge-panel p,
.waiting-challenge p {
  color: var(--muted);
  line-height: 1.7;
}

.waiting-challenge {
  max-width: 650px;
  margin: 22px auto 0;
  padding: 20px;
  border: 1px solid rgba(0, 139, 214, .28);
  border-radius: 14px;
  text-align: left;
}

.waiting-challenge h3 {
  margin: 0 0 6px;
  color: #087e9a;
}

.waiting-challenge .primary {
  display: block;
  width: 100%;
  margin: 16px auto 0;
}

.waiting-panel.terminal .waiting-spinner {
  display: none;
}

.waiting-panel.completed h2 {
  color: #008c72;
  font-size: 28px;
}

.waiting-panel.terminal #manualRefreshBtn {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 54, 76, .42);
  backdrop-filter: blur(5px);
}

.modal-card {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 54, 76, .26);
  animation: modal-in .28s ease-out both;
}

.modal-card h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

.modal-intro {
  margin: 0 0 20px;
  color: var(--muted);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  margin-top: 20px;
}

.secondary {
  border: 1px solid #cfe3e5;
  border-radius: 12px;
  padding: 14px;
  color: #315967;
  background: #fff;
  cursor: pointer;
}

.waiting-panel {
  padding: 34px 20px 12px;
  text-align: center;
}

.waiting-panel h2 {
  margin: 14px 0 8px;
}

.waiting-panel > p {
  max-width: 600px;
  margin: 0 auto 20px;
  color: var(--muted);
  line-height: 1.7;
}

.waiting-spinner {
  width: 48px;
  height: 48px;
  margin: auto;
  border: 4px solid rgba(0, 201, 183, .16);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.waiting-task-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin: 0 auto 6px;
}

.waiting-task-info > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fffd;
}

.recharge-again {
  display: block;
  width: min(650px, 100%);
  margin: 20px auto 0;
}

.waiting-task-info span,
.waiting-task-info strong {
  display: block;
}

.waiting-task-info span {
  color: var(--muted);
  font-size: 12px;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.demo-captcha-brand {
  color: #008fa2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.robot-check {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid #cfe3e5;
  border-radius: 12px;
  background: #f8fbfc;
  cursor: pointer;
}

.robot-check input {
  width: 24px;
  height: 24px;
  accent-color: var(--teal);
}

.robot-check span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.robot-check i {
  color: #78909a;
  font-size: 9px;
  font-style: normal;
  line-height: 1.15;
  text-align: center;
}

@keyframes success-slide-down {
  from {
    opacity: 0;
    transform: translateY(-28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel.stage-two #verified > .success {
    animation: none;
  }
}

.session-guide {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 201, 183, .24);
  border-radius: 12px;
  color: #466f7d;
  background: linear-gradient(135deg, #f3fffb, #f5fbff);
  font-size: 14px;
  line-height: 1.7;
}

.session-guide a {
  color: #008fa2;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.session-guide a:hover {
  text-decoration: underline;
}

.account-preview {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(0, 201, 183, .28);
  border-radius: 13px;
  background: rgba(0, 201, 183, .16);
}

.account-preview > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 13px 16px;
  background: #f8fffd;
}

.account-preview span {
  color: var(--muted);
}

.account-preview strong {
  overflow-wrap: anywhere;
  color: var(--ink);
}

.account-warning {
  margin: 0;
  padding: 13px 16px;
  color: #b45309;
  background: #fff8e8;
}

.result h3 {
  margin: 0 0 22px;
  font-size: 22px;
}

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

.result-item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 201, 183, .16);
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fffd, #f7fbff);
}

.result-item span,
.result-item strong {
  display: block;
}

.result-item span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.result-item strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.result-item .result-status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 99px;
  color: #00836f;
  background: rgba(25, 231, 124, .14);
}

@media (max-width: 600px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .topbar .tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .topbar .tabs button {
    flex: 1;
    padding-inline: 5px;
  }

  .header-card .progress-steps {
    margin-top: 16px;
  }

  .account-preview > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions,
  .waiting-task-info {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) {
  .shell {
    width: min(980px, calc(100% - 32px));
  }

  .header-card,
  .notice {
    width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .panel,
  .result {
    width: min(980px, 100%);
    max-width: 980px;
    padding: 38px 42px;
  }

  .step {
    gap: 17px;
    margin-bottom: 27px;
  }

  .step > span {
    flex-basis: 42px;
    height: 42px;
    font-size: 17px;
  }

  .step h2,
  .panel h2 {
    font-size: 22px;
  }

  .step p,
  label {
    font-size: 14px;
  }

  form {
    gap: 18px;
  }

  input,
  textarea {
    padding: 15px 16px;
    font-size: 15px;
  }

  .primary {
    padding: 15px;
    font-size: 16px;
  }

  .footer-card {
    width: min(980px, 100%);
    max-width: 980px;
  }
}
