html:not([data-wireframe-ready="true"]) .screen,
html:not([data-wireframe-ready="true"]) .ftr {
  visibility: hidden !important;
}

[hidden] {
  display: none !important;
}

.wf-notice {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 1200;
  width: min(620px, calc(100% - 32px));
  padding: 13px 17px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #0f1e3d;
  background: #fff;
  box-shadow: 0 18px 60px rgba(15, 30, 61, 0.16);
  font-size: 14px;
  font-weight: 600;
}

.wf-notice-error {
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  background: #fff7f7;
}

.wf-notice-warning {
  border-color: rgba(245, 158, 11, 0.38);
  color: #92400e;
  background: #fffbeb;
}

.wf-notice-success {
  border-color: rgba(34, 197, 94, 0.35);
  color: #166534;
  background: #f0fdf4;
}

.wf-inline-state {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.wf-inline-state.error {
  color: var(--red-2);
}

.wf-inline-state.warning {
  color: var(--amber-2);
}

.wf-connect-action {
  margin-left: auto;
  flex: none;
}

.wf-manual-assets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed rgba(15, 30, 61, 0.16);
  border-radius: var(--r-sm);
  background: rgba(15, 30, 61, 0.018);
}

.wf-manual-assets .wf-manual-intro {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 13px;
}

.wf-manual-assets label {
  display: grid;
  gap: 7px;
  color: #1b2a4a;
  font-size: 13px;
  font-weight: 600;
}

.wf-manual-assets input,
.gf-form input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  outline: none;
  color: #0f1e3d;
  background: var(--card-3);
  font: inherit;
}

.wf-manual-assets input:focus,
.gf-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

/* The lead gate is a dialog, so keep its surface and fields fully opaque in
   every interaction state. The source wireframe gives focused inputs a
   translucent navy fill; these higher-specificity rules intentionally
   override that presentation without modifying the supplied HTML. */
.gate.locked .gate-form-wrap {
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.gate-form {
  border-color: rgba(15, 30, 61, 0.12);
  color: #0f1e3d;
  background: #fff;
  box-shadow: 0 40px 100px -34px rgba(15, 30, 61, 0.42);
}

.gate-form h3 {
  color: #0f1e3d;
}

.gate-form > p,
.gate-form .gf-note {
  color: #586173;
}

.gate-form .gf-field label {
  color: #1b2a4a;
}

.gate-form .gf-check {
  border-color: rgba(37, 99, 235, 0.2);
  background: #eff6ff;
}

.gate-form .gf-form input,
.gate-form .gf-form input:hover,
.gate-form .gf-form input:focus,
.gate-form .gf-form input:focus-visible {
  border-color: rgba(15, 30, 61, 0.16);
  color: #0f1e3d;
  caret-color: #0f1e3d;
  background: #fff;
  -webkit-text-fill-color: #0f1e3d;
}

.gate-form .gf-form input:focus,
.gate-form .gf-form input:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.gate-form .gf-form input::placeholder {
  color: #718096;
  -webkit-text-fill-color: #718096;
  opacity: 1;
}

.gate-form .gf-form input:-webkit-autofill,
.gate-form .gf-form input:-webkit-autofill:hover {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #0f1e3d;
  caret-color: #0f1e3d;
}

.gate-form .gf-form input:-webkit-autofill:focus,
.gate-form .gf-form input:-webkit-autofill:focus-visible {
  border-color: var(--green);
  -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(34, 197, 94, 0.16);
  -webkit-text-fill-color: #0f1e3d;
  caret-color: #0f1e3d;
}

.wf-site-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dc-body {
  min-width: 0;
  flex: 1 1 auto;
}

.wf-site-suggestion {
  padding: 7px 11px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.06);
  cursor: pointer;
  font-family: var(--fm);
  font-size: 11px;
}

.wf-site-suggestion:hover,
.wf-site-suggestion[aria-pressed="true"] {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.12);
}

.wf-report-warning {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--r-sm);
  color: #854d0e;
  background: #fffbeb;
  font-size: 13.5px;
}

.wf-report-warning strong {
  color: #713f12;
}

.wf-metric-button {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.wf-metric-button:focus-visible,
.prio-row[role="button"]:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.34);
  outline-offset: 3px;
}

.wf-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 30, 61, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wf-modal-card {
  width: min(540px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid rgba(15, 30, 61, 0.12);
  border-radius: 20px;
  color: #334155;
  background: #fff;
  box-shadow: 0 30px 100px rgba(15, 30, 61, 0.3);
}

.wf-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(15, 30, 61, 0.1);
  background: #fff;
}

.wf-modal-head h2 {
  margin: 0;
  color: #0f1e3d;
  font-size: 18px;
}

.wf-modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 21px;
}

.wf-modal-close:hover {
  color: #0f1e3d;
  background: #e2e8f0;
}

.wf-modal-body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.wf-modal-block .kicker {
  margin-bottom: 6px;
  color: #64748b;
}

.wf-modal-block p {
  color: #334155;
  font-size: 13.5px;
  line-height: 1.65;
}

.wf-modal-action {
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  background: #eff6ff;
}

.wf-modal-action p,
.wf-modal-action .kicker {
  color: #1e40af;
}

.wf-empty {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}

.wf-unsupported {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  background: var(--card-3);
  font-size: 13px;
}

.wf-action-error {
  margin-top: 10px;
  color: var(--red-2);
  font-size: 12.5px;
}

.rep-nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rep-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 720px) {
  .wf-manual-assets {
    grid-template-columns: 1fr;
  }

  .wf-manual-assets .wf-manual-intro {
    grid-column: auto;
  }

  .wf-connect-action {
    width: 100%;
    margin-left: 0;
  }

  .conn-row {
    flex-wrap: wrap;
  }

  .wf-modal {
    padding: 12px;
  }

  .wf-modal-card {
    max-height: calc(100dvh - 24px);
  }
}

@media print {
  .wf-notice,
  .wf-modal,
  .gate-form-wrap {
    display: none !important;
  }
}
