:root {
  --np-ink: #14243a;
  --np-muted: #5b6a7f;
  --np-soft: #f4f7fa;
  --np-soft-2: #e8f4ff;
  --np-line: #dfe8f2;
  --np-brand: #0a4d87;
  --np-navy: #040f3b;
  --np-dark: #202024;
  --np-teal: #0f9b8e;
  --np-cyan: #6bc6db;
  --np-success: #1b8e3e;
  --np-warning: #b84a00;
  --np-danger: #b3261e;
  --np-shadow: 0 18px 50px rgba(20, 36, 58, 0.14);
}

@font-face {
  font-family: "Posterama";
  src: url("/posterama.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.neurona-access {
  margin: 0;
  color: var(--np-ink);
  background:
    linear-gradient(180deg, #f5fbff 0%, #ffffff 56%, #ffffff 100%);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.kmpp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px clamp(18px, 5vw, 56px) 8px;
  background: transparent;
  color: var(--np-dark);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--np-dark);
  text-decoration: none;
}

.brand-brain {
  width: 50px;
  height: 50px;
  display: block;
  flex: 0 0 auto;
}

.brand-word {
  color: var(--np-dark);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-status i {
  color: #7fe3c3;
  font-size: 17px;
}

.access-workspace {
  width: min(650px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 3vw, 28px) clamp(16px, 5vw, 28px) 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  justify-content: center;
}

.verification-workspace {
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
}

.app-panel,
.visual-panel {
  border: 1px solid rgba(223, 232, 242, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--np-shadow);
}

.app-panel {
  padding: clamp(20px, 4vw, 30px);
  text-align: center;
}

.panel-svg-icon {
  width: 38px;
  height: 38px;
  display: block;
  margin: 0 auto 12px;
}

.app-panel h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.03;
  font-weight: 800;
  color: var(--np-ink);
}

.lead-copy {
  margin: 0 auto;
  max-width: 430px;
  color: var(--np-muted);
  font-size: 16px;
  line-height: 1.58;
}

.action-row {
  display: grid;
  gap: 12px;
  margin: 22px 0 18px;
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--np-brand), #116fb8);
  box-shadow: 0 12px 28px rgba(10, 77, 135, 0.28);
}

.secondary-action {
  color: var(--np-brand);
  background: #eaf4ff;
  border: 1px solid #cfe4fa;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action.disabled,
.primary-action[aria-disabled="true"] {
  opacity: 0.72;
  transform: none;
}

.browser-note {
  min-height: 0;
  color: var(--np-warning);
  font-size: 13px;
  font-weight: 700;
}

.camera-frame {
  position: relative;
  min-height: 330px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #d9e6f2;
  background:
    radial-gradient(circle at 50% 42%, rgba(107, 198, 219, 0.26), transparent 42%),
    linear-gradient(145deg, #102342, #071222);
}

.camera-frame video {
  width: 100%;
  height: min(54vh, 440px);
  min-height: 330px;
  display: block;
  object-fit: cover;
}

.scan-reticle {
  pointer-events: none;
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scan-reticle::before,
.scan-reticle::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-color: #7fe3c3;
}

.scan-reticle::before {
  top: 0;
  left: 0;
  border-top: 4px solid #7fe3c3;
  border-left: 4px solid #7fe3c3;
  border-top-left-radius: 14px;
}

.scan-reticle::after {
  right: 0;
  bottom: 0;
  border-right: 4px solid #7fe3c3;
  border-bottom: 4px solid #7fe3c3;
  border-bottom-right-radius: 14px;
}

.scan-caption,
.form-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--np-muted);
  font-size: 13px;
}

.scan-caption i,
.form-caption i {
  color: var(--np-teal);
  font-size: 17px;
}

.visual-panel {
  display: none;
}

.visual-art {
  display: none;
}

.mini-stack {
  display: none;
}

.mini-card {
  display: none;
}

.mini-card i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--np-brand);
  background: #eaf4ff;
  font-size: 20px;
}

.mini-card strong {
  display: block;
  color: var(--np-ink);
  font-size: 14px;
}

.mini-card span {
  display: block;
  margin-top: 2px;
  color: var(--np-muted);
  font-size: 12px;
  line-height: 1.35;
}

.meta-card {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #e3ebf4;
  border-radius: 18px;
  background: #f7f9fc;
}

.meta-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.meta-row i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eaf4ff;
  color: var(--np-brand);
  font-size: 18px;
}

.meta-row small {
  display: block;
  color: var(--np-muted);
  font-size: 12px;
  line-height: 1.2;
}

.meta-row strong {
  display: block;
  color: var(--np-ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.verification-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(48px, 1fr));
  gap: 10px;
  margin: 18px 0 10px;
}

.verification-input {
  width: 100%;
  height: 62px;
  border: 1px solid #cfe0ef;
  border-radius: 18px;
  color: var(--np-ink);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.verification-input:focus {
  border-color: var(--np-brand);
  box-shadow: 0 0 0 4px rgba(10, 77, 135, 0.12);
}

.instruction-copy {
  margin: 18px 0 0;
  padding: 0;
  color: var(--np-muted);
  font-size: 14px;
  line-height: 1.58;
  text-align: center;
}

.hidden-control {
  display: none;
}

@media (max-width: 860px) {
  .app-topbar {
    min-height: 64px;
  }

  .topbar-status span {
    display: none;
  }

  .app-panel h1 {
    margin-top: 14px;
  }
}

@media (max-width: 520px) {
  .app-topbar {
    padding: 12px 16px;
  }

  .brand-brain {
    width: 44px;
    height: 44px;
  }

  .access-workspace {
    padding: 16px 12px 28px;
    gap: 14px;
  }

  .app-panel,
  .visual-panel {
    border-radius: 20px;
  }

  .camera-frame,
  .camera-frame video {
    min-height: 300px;
  }

  .verification-input {
    height: 56px;
  }
}
