.scanner-setup {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.scanner-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(340px, 0.56fr);
  gap: 28px;
  align-items: start;
}

.scanner-setup h2 {
  margin-bottom: 12px;
}

.scanner-setup p {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

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

.scanner-safety-list li {
  position: relative;
  min-height: 42px;
  padding: 11px 12px 11px 42px;
  color: var(--ink-soft);
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.scanner-safety-list li::before {
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 999px;
  content: "";
}

.scanner-safety-list li::after {
  position: absolute;
  top: 17px;
  left: 19px;
  width: 10px;
  height: 6px;
  content: "";
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.scanner-deploy-panel {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(7, 20, 47, 0.06);
}

.scanner-auth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scanner-auth-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.scanner-auth-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.scanner-auth-actions .button-secondary {
  min-height: 40px;
  padding: 0 14px;
  color: #085529;
  background: #e8f8ef;
  border-color: #21c56f;
  box-shadow: none;
}

.scanner-inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.scanner-inline-control .button-secondary {
  color: #085529;
  background: #e8f8ef;
  border-color: #21c56f;
  box-shadow: none;
}

.scanner-inline-control .button-secondary:hover,
.scanner-inline-control .button-secondary:focus-visible {
  background: #d8f3e3;
  border-color: #168a48;
}

.scanner-inline-control .button-secondary:disabled {
  cursor: not-allowed;
  color: #8da2c0;
  background: #edf2f7;
  border-color: #d6e1ef;
}

.scanner-inline-control input,
.scanner-deploy-panel input,
.scanner-deploy-panel select {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cbd8e9;
  border-radius: 6px;
  font: inherit;
}

.scanner-inline-control input,
.scanner-deploy-panel input {
  padding: 0 12px;
}

.scanner-deploy-panel select {
  padding: 0 12px;
}

.scanner-deploy-link {
  width: fit-content;
}

.scanner-deploy-link.is-disabled {
  cursor: not-allowed;
  color: #8da2c0;
  background: #edf2f7;
  border-color: #d6e1ef;
  box-shadow: none;
}

.scanner-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1020px) {
  .scanner-setup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .scanner-deploy-link {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .scanner-auth-row {
    grid-template-columns: 1fr;
  }

  .scanner-auth-actions,
  .scanner-auth-actions .button {
    width: 100%;
  }

  .scanner-inline-control {
    grid-template-columns: 1fr;
  }
}
