.brand strong {
  font-size: 16px;
  letter-spacing: .015em;
}

.brand small {
  letter-spacing: .12em;
}

.scan-card.leader-card {
  border-color: #c6baff;
  box-shadow: 0 10px 28px rgba(118, 87, 255, .08);
}

.scan-flags .leader-flag {
  background: #e8f9f0;
  color: #087443;
}

.topbar nav {
  gap: 13px;
}

.topbar nav > a.nav-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 10px 13px;
  border: 1px solid #e3e6ec;
  border-radius: 10px;
  background: #f7f8fb;
  color: #4b5567 !important;
}

.topbar nav > a.nav-switch.active {
  border-color: #a996ff;
  background: #f1edff;
  color: #6045d8 !important;
  box-shadow: 0 5px 14px rgba(118, 87, 255, .1);
}

.scanner-actions {
  flex-wrap: wrap;
}

.scanner-back {
  color: #4d5667;
}

.safety-tools-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 13px;
  padding: 15px 20px;
  border-radius: 12px;
  background: var(--lime);
  color: #101728;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .025em;
  box-shadow: 0 12px 28px rgba(157, 255, 0, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}

.safety-tools-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(157, 255, 0, .3);
}

.scanner-preview {
  transition: border-color .25s ease, box-shadow .25s ease;
}

.scanner-preview.is-running {
  border-color: #a996ff;
  box-shadow: 0 25px 65px rgba(80, 59, 181, .18);
}

.preview-ready.is-running {
  background: #f0ebff;
  color: #6045d8;
  animation: scanner-pulse 1.15s ease-in-out infinite;
}

.preview-search strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
}

.preview-progress i {
  transition: width .28s ease;
}

.scanner-live-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.scanner-live-button.is-disabled {
  cursor: default;
  opacity: .72;
}

.preview-cards > a {
  display: grid;
  grid-template-columns: 25px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.preview-cards > a:hover {
  border-color: #a996ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(80, 59, 181, .1);
}

.preview-cards > a > strong {
  font-size: 12px;
}

.preview-cards .preview-empty {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  grid-template-columns: 1fr;
  color: #8a93a3;
  text-align: center;
}

.preview-cards .preview-empty span {
  font-size: 9px;
  font-weight: 650;
}

@keyframes scanner-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

@media (max-width: 900px) {
  .topbar nav > a.nav-switch {
    display: inline-flex !important;
  }
}

@media (max-width: 560px) {
  .topbar nav > a.nav-switch {
    display: inline-flex !important;
    min-width: auto;
    padding: 9px 10px;
    font-size: 10px;
  }

  .topbar nav .nav-button {
    display: none;
  }

  .brand strong {
    max-width: 190px;
    font-size: 12px;
  }

  .brand small {
    font-size: 7px;
  }

  .safety-tools-button {
    width: 100%;
    align-self: stretch;
  }
}
