/* =========================================================
   RED — RFID Exposure Database
   Brand design system (red / charcoal, bold & branded)
   All styling lives here: CSP forbids inline styles.
   ========================================================= */

:root {
  --psa-primary: #c8102e;      /* brand crimson */
  --psa-bright: #e31837;       /* hover / accents */
  --psa-deep: #8c0b20;         /* pressed / gradients */
  --psa-ink: #14161c;          /* near-black charcoal */
  --psa-ink-soft: #23262f;     /* panels on dark */
  --psa-slate: #4b5058;        /* secondary text */
  --psa-mist: #f5f6f8;         /* page background */
  --psa-line: #e4e6ea;         /* borders */
  --psa-tint: #fdf2f4;         /* pale red wash */
  --psa-radius: 12px;
  --psa-shadow: 0 4px 18px rgba(20, 22, 28, 0.08);
  --psa-shadow-lg: 0 12px 34px rgba(20, 22, 28, 0.14);
  --psa-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: var(--psa-font);
  background-color: var(--psa-mist);
  color: var(--psa-ink);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--psa-ink);
}

a {
  color: var(--psa-primary);
}

a:hover {
  color: var(--psa-bright);
}

/* ---------- Focus rings (brand red, accessible) ---------- */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  border-color: var(--psa-primary);
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(200, 16, 46, 0.45);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--psa-bright), var(--psa-primary) 55%, var(--psa-deep));
  border: none;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(200, 16, 46, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--psa-bright), var(--psa-bright) 55%, var(--psa-primary));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.45);
}

.btn-outline-light {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
  font-weight: 600;
  padding: 0.5rem 1.35rem;
  border-radius: 8px;
  background: transparent;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--psa-primary);
  border-color: #fff;
}

/* ---------- Navbar ---------- */
.psa-navbar {
  background: linear-gradient(90deg, var(--psa-ink) 0%, #1c1f27 60%, #2a1016 100%);
  border-bottom: 3px solid var(--psa-primary);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.psa-navbar .navbar-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.psa-navbar .navbar-brand:hover {
  color: #fff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--psa-bright), var(--psa-deep));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(227, 24, 55, 0.5);
}

/* ---- Logo image (horizontal wordmark) ----
   The artwork sits on a light ground, so on the dark navbar/sidebar it gets a
   small light chip to stay legible. Swap in a transparent light-on-dark variant
   and drop the background rule if you prefer. */
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}

.brand-logo-side {
  height: auto;
  width: 100%;
  max-width: 180px;
}

.brand-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.psa-navbar .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  border-radius: 7px;
  transition: color 0.12s ease, background-color 0.12s ease;
}

.psa-navbar .nav-link:hover,
.psa-navbar .nav-link:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.psa-navbar .navbar-text {
  color: rgba(255, 255, 255, 0.82);
}

.psa-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.psa-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.psa-navbar .dropdown-menu {
  background-color: var(--psa-ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: var(--psa-shadow-lg);
  padding: 0.4rem;
}

.psa-navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
}

.psa-navbar .dropdown-item:hover,
.psa-navbar .dropdown-item:focus {
  background-color: rgba(227, 24, 55, 0.25);
  color: #fff;
}

.nav-cta {
  background: linear-gradient(135deg, var(--psa-bright), var(--psa-deep));
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.4rem 1.1rem !important;
  margin-left: 0.5rem;
  box-shadow: 0 2px 10px rgba(227, 24, 55, 0.4);
}

.nav-cta:hover,
.nav-cta:focus {
  background: linear-gradient(135deg, var(--psa-bright), var(--psa-primary));
  color: #fff !important;
}

/* ---------- Hero ---------- */
.psa-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(227, 24, 55, 0.4), transparent 60%),
    radial-gradient(700px 320px at -10% 110%, rgba(140, 11, 32, 0.5), transparent 60%),
    linear-gradient(150deg, #171a21 0%, var(--psa-ink) 55%, #201017 100%);
  color: #fff;
  border-radius: 0 0 var(--psa-radius) var(--psa-radius);
  padding: 4.5rem 1.5rem 4rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.psa-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--psa-bright), transparent);
}

.psa-hero .hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff8fa1;
  background: rgba(227, 24, 55, 0.16);
  border: 1px solid rgba(227, 24, 55, 0.45);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  margin-bottom: 1.25rem;
}

.psa-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.psa-hero h1 .accent {
  color: var(--psa-bright);
  text-shadow: 0 0 28px rgba(227, 24, 55, 0.55);
}

.psa-hero .hero-lede {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section headings ---------- */
.section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-head .kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--psa-primary);
  margin-bottom: 0.4rem;
}

.section-head h2 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.section-head p {
  color: var(--psa-slate);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Cards ---------- */
.psa-card {
  background: #fff;
  border: 1px solid var(--psa-line);
  border-radius: var(--psa-radius);
  box-shadow: var(--psa-shadow);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.psa-card.accent-top {
  border-top: 4px solid var(--psa-primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--psa-line);
  border-radius: var(--psa-radius);
  box-shadow: var(--psa-shadow);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--psa-ink);
  display: block;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--psa-shadow-lg);
  border-color: rgba(200, 16, 46, 0.4);
  color: var(--psa-ink);
}

.feature-card .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 10px;
  background: var(--psa-tint);
  color: var(--psa-primary);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--psa-slate);
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.55;
}

.feature-card .go {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--psa-primary);
}

/* ---------- Page headers (inner pages) ---------- */
.page-header {
  margin: 0.5rem 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--psa-line);
}

.page-header .kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--psa-primary);
  margin-bottom: 0.3rem;
}

.page-header h1 {
  font-size: 1.85rem;
  margin-bottom: 0.25rem;
}

.page-header h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  margin-top: 0.6rem;
  background: linear-gradient(90deg, var(--psa-bright), var(--psa-deep));
}

.page-header p {
  color: var(--psa-slate);
  margin: 0.5rem 0 0;
  max-width: 700px;
}

/* ---------- Tables ---------- */
.psa-table-card {
  background: #fff;
  border: 1px solid var(--psa-line);
  border-radius: var(--psa-radius);
  box-shadow: var(--psa-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.psa-table-card .table-responsive {
  margin: 0;
}

.psa-table-card table.table {
  margin-bottom: 0;
  font-size: 0.9rem;
  /* Bootstrap paints every cell with an opaque background (white by default), which
     covered our themed row/zebra colors. Make the cell background come from the row
     instead so the card + zebra + hover colors show through in every theme. */
  --bs-table-bg: transparent;
  --bs-table-hover-bg: transparent;
}

.psa-table-card table.table thead th {
  background: var(--psa-ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--psa-primary);
  white-space: nowrap;
  padding: 0.8rem 0.9rem;
}

.psa-table-card table.table tbody td {
  padding: 0.7rem 0.9rem;
  vertical-align: middle;
  border-color: var(--psa-line);
  background-color: transparent;
}

.psa-table-card table.table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

.psa-table-card table.table tbody tr:hover {
  background-color: var(--psa-tint);
}

/* Support inbox: preserve message line breaks and cap the column width. */
.support-message {
  max-width: 420px;
  white-space: pre-wrap;
  word-break: break-word;
}

.record-count {
  display: inline-block;
  background: var(--psa-tint);
  color: var(--psa-deep);
  border: 1px solid rgba(200, 16, 46, 0.25);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin-bottom: 1rem;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--psa-line);
  border-top: 4px solid var(--psa-primary);
  border-radius: var(--psa-radius);
  box-shadow: var(--psa-shadow);
  padding: 1.75rem;
  margin-bottom: 2rem;
  max-width: 640px;
}

.form-card .form-group,
.psa-card .form-group {
  margin-bottom: 1rem;
}

.form-card label,
.psa-card label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--psa-ink);
}

.form-card .form-control,
.psa-card .form-control {
  border-radius: 8px;
  border-color: var(--psa-line);
  padding: 0.55rem 0.8rem;
}

.form-card .form-control:focus,
.psa-card .form-control:focus {
  border-color: var(--psa-primary);
}

/* ---------- Detail lists (Details / Delete pages) ---------- */
.detail-card dl.row {
  margin-bottom: 0;
}

.detail-card dt {
  color: var(--psa-slate);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.55rem 0;
}

.detail-card dd {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--psa-line);
  margin-bottom: 0;
}

/* ---------- Content pages (About / Privacy) ---------- */
.content-page {
  background: #fff;
  border: 1px solid var(--psa-line);
  border-radius: var(--psa-radius);
  box-shadow: var(--psa-shadow);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.content-page h1 {
  font-size: 1.9rem;
}

.content-page h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--psa-tint);
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page h3 {
  font-size: 1.08rem;
  margin-top: 1.5rem;
  color: var(--psa-deep);
}

.content-page p,
.content-page li {
  color: #33363e;
}

.content-page blockquote {
  border-left: 4px solid var(--psa-primary);
  background: var(--psa-tint);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-style: italic;
  color: var(--psa-deep);
}

/* ---------- Map / iframe ---------- */
.iframe-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: var(--psa-radius);
  overflow: hidden;
  box-shadow: var(--psa-shadow-lg);
  border: 1px solid var(--psa-line);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Callout band (download strip) ---------- */
.psa-band {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(227, 24, 55, 0.35), transparent 60%),
    linear-gradient(135deg, var(--psa-ink) 0%, #241118 100%);
  color: #fff;
  border-radius: var(--psa-radius);
  padding: 2.25rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.psa-band h2 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.psa-band p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
  max-width: 640px;
}

/* ---------- Alerts ---------- */
.alert {
  border-radius: 10px;
}

/* Prominent success/confirmation banner on auth pages (e.g. "check your inbox"). */
.auth-notice {
  background: rgba(46, 160, 67, 0.14);
  border: 1px solid rgba(46, 160, 67, 0.45);
  border-left: 4px solid #2ea043;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #d7f5dd;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Prominent warning banner on auth pages (e.g. email domain not allowed). */
.auth-warning {
  background: rgba(227, 24, 55, 0.12);
  border: 1px solid rgba(227, 24, 55, 0.45);
  border-left: 4px solid #e31837;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #ffd7dd;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ---------- Form validation messages ----------
   ASP.NET's validation classes ship unstyled, so on the dark auth pages the error text
   (e.g. "password needs a symbol") was invisible and a failed submit looked like a silent
   reload. Render the summary as a red notice box and field errors in a visible red. The
   framework adds `*-valid` classes when there is no error, so hide the box in that case. */
.validation-summary-errors {
  background: rgba(227, 24, 55, 0.12);
  border: 1px solid rgba(227, 24, 55, 0.5);
  border-left: 4px solid #e31837;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
}
.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}
.validation-summary-errors.validation-summary-valid {
  display: none;
}
.field-validation-error {
  color: #e0475a;
  font-size: 0.88rem;
}
.input-validation-error {
  border-color: #e31837 !important;
}

/* ---------- Footer ---------- */
.psa-footer {
  flex-shrink: 0;
  background: var(--psa-ink);
  border-top: 3px solid var(--psa-primary);
  color: rgba(255, 255, 255, 0.65);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.psa-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.psa-footer a:hover {
  color: var(--psa-bright);
}

.psa-footer .footer-brand {
  color: #fff;
  font-weight: 700;
}

/* ---------- Utility ---------- */
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =========================================================
   Dark landing theme (Shodan-style, scoped to body.landing-dark)
   ========================================================= */

body.landing-dark {
  background:
    radial-gradient(1200px 500px at 90% -5%, rgba(200, 16, 46, 0.14), transparent 60%),
    #101318;
  color: #ced2d9;
}

body.landing-dark h1,
body.landing-dark h2,
body.landing-dark h3,
body.landing-dark h4 {
  color: #f2f3f5;
}

body.landing-dark main a:not(.btn) {
  color: #ff5a72;
}

/* ---- Shodan-style split hero ---- */
.shodan-hero {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 7fr);
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}

@media (max-width: 900px) {
  .shodan-hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
}

.shodan-hero .hero-copy .hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff8fa1;
  background: rgba(227, 24, 55, 0.14);
  border: 1px solid rgba(227, 24, 55, 0.45);
  border-radius: 999px;
  padding: 0.32rem 1rem;
  margin-bottom: 1.1rem;
}

.shodan-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.shodan-hero h1 .accent {
  color: var(--psa-bright);
  text-shadow: 0 0 26px rgba(227, 24, 55, 0.5);
}

.shodan-hero .hero-lede {
  color: #9aa0ab;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
  max-width: 460px;
}

/* ---- WiGLE-style stats strip ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #171b22;
  border: 1px solid #262b35;
  border-bottom: 3px solid var(--psa-primary);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

@media (max-width: 600px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stats-strip .stat {
  padding: 0.85rem 0.5rem;
  text-align: center;
  border-right: 1px solid #262b35;
}

.stats-strip .stat:last-child {
  border-right: none;
}

.stats-strip .stat .label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b93a1;
  margin-bottom: 0.15rem;
}

.stats-strip .stat .value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stats-strip .stat .value.hot {
  color: var(--psa-bright);
}

/* ---- Hero map under the stats strip ---- */
.hero-map {
  border: 1px solid #262b35;
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  background: #0c0e12;
}

.hero-map .iframe-container {
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding-bottom: 62%;
}

.hero-map arcgis-embedded-map {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-map-caption {
  text-align: center;
  color: #7d8492;
  font-size: 0.82rem;
  margin-top: 0.6rem;
}

/* ---- Dark variants of shared components ---- */
body.landing-dark .section-head .kicker {
  color: #ff5a72;
}

body.landing-dark .section-head p {
  color: #9aa0ab;
}

body.landing-dark .feature-card {
  background: #171b22;
  border-color: #262b35;
  color: #e6e8ec;
}

body.landing-dark .feature-card:hover {
  border-color: rgba(227, 24, 55, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  color: #e6e8ec;
}

body.landing-dark .feature-card .feature-icon {
  background: rgba(227, 24, 55, 0.14);
  color: #ff5a72;
}

body.landing-dark .feature-card h3 {
  color: #f2f3f5;
}

body.landing-dark .feature-card p {
  color: #9aa0ab;
}

body.landing-dark .psa-band {
  border: 1px solid #262b35;
}

body.landing-dark .psa-card {
  background: #171b22;
  border-color: #262b35;
  color: #ced2d9;
}

body.landing-dark .psa-footer {
  background: #0c0e12;
}

/* =========================================================
   App shell — logged-in sidebar layout (DeHashed-style)
   Used with body class "landing-dark app-dark" so the dark
   component variants above apply too.
   ========================================================= */

body.app-dark {
  background: #101318;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background: #0c0e12;
  border-right: 1px solid #1d222c;
  padding: 1.25rem 0.85rem;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.app-sidebar .side-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.65rem 1rem;
  text-decoration: none;
}

.app-sidebar .side-brand .brand-mark {
  margin-right: 0;
}

.app-sidebar .side-brand span:last-child {
  color: #f2f3f5;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.side-section-title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d7482;
  padding: 0.9rem 0.65rem 0.35rem;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: #b9bfc9;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
}

body.app-dark main a.side-link,
body.landing-dark main a.side-link {
  color: #b9bfc9;
}

.side-link:hover {
  background: #151a22;
  color: #f2f3f5;
}

.side-link.active {
  background: rgba(227, 24, 55, 0.12);
  border-left-color: var(--psa-bright);
  color: #ff8fa1;
}

.side-link svg {
  width: 17px;
  height: 17px;
  flex: none;
  opacity: 0.85;
}

.side-divider {
  border: none;
  border-top: 1px solid #1d222c;
  margin: 0.8rem 0.4rem;
}

.side-muted-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d8492;
  background: #1a1f28;
  border: 1px solid #262b35;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

/* ---- Main content column ---- */
.app-main {
  flex: 1;
  margin-left: 240px;
  padding: 2.2rem 2.4rem 3rem;
  min-width: 0;
}

.app-main .app-title {
  color: #f2f3f5;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.4rem;
}

@media (max-width: 900px) {
  .app-sidebar {
    position: static;
    width: 100%;
    bottom: auto;
    border-right: none;
    border-bottom: 1px solid #1d222c;
  }

  .app-shell {
    flex-direction: column;
  }

  .app-main {
    margin-left: 0;
    padding: 1.4rem 1rem 2rem;
  }
}

/* ---- Search tabs ---- */
.search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.search-tab {
  display: inline-block;
  padding: 0.38rem 0.95rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #9aa0ab;
  text-decoration: none;
  border: 1px solid transparent;
}

body.landing-dark main a.search-tab {
  color: #9aa0ab;
}

.search-tab:hover {
  color: #f2f3f5;
  background: #171b22;
}

.search-tab.active,
body.landing-dark main a.search-tab.active {
  background: var(--psa-primary);
  color: #fff;
}

/* ---- Search bar ---- */
.search-bar {
  display: flex;
  background: #12151c;
  border: 1px solid #262b35;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}

.search-bar .form-control {
  background: transparent;
  border: none;
  border-radius: 0;
  color: #e6e8ec;
  padding: 0.85rem 1.1rem;
  font-size: 0.98rem;
  box-shadow: none;
}

.search-bar .form-control::placeholder {
  color: #6d7482;
}

.search-bar .form-control:focus {
  background: #151a22;
  color: #e6e8ec;
  box-shadow: none;
  border: none;
}

.search-bar .btn {
  border-radius: 0;
  padding-left: 2.2rem;
  padding-right: 2.2rem;
}

/* ---- Results ---- */
.app-results {
  margin-bottom: 1.6rem;
}

body.app-dark .psa-table-card {
  background: #171b22;
  border: 1px solid #262b35;
}

body.app-dark .psa-table-card table {
  color: #e8eaee;
}

body.app-dark .psa-table-card tbody td {
  border-color: #262b35;
}

/* Zebra-striping + hover for dark themes. The base light stripes (#fafbfc) and pink
   hover tint left every other row nearly white with light text — unreadable. Keep the
   stripes dark here; the light theme re-overrides these below. */
body.app-dark .psa-table-card table.table tbody tr:nth-child(even) {
  background-color: #1e232c;
}
body.app-dark .psa-table-card table.table tbody tr:hover {
  background-color: #2a303b;
}

/* Light theme keeps light stripes (dark text on near-white is fine). */
[data-theme="light"] body.app-dark .psa-table-card table.table tbody tr:nth-child(even) {
  background-color: #f4f6f8;
}
[data-theme="light"] body.app-dark .psa-table-card table.table tbody tr:hover {
  background-color: #eef1f5;
}

/* Palette-matched stripes for Ultra Dark and Dracula. */
[data-theme="ultra-dark"] body.app-dark .psa-table-card table.table tbody tr:nth-child(even) {
  background-color: #14161c;
}
[data-theme="ultra-dark"] body.app-dark .psa-table-card table.table tbody tr:hover {
  background-color: #1c2029;
}
[data-theme="dracula"] body.app-dark .psa-table-card table.table tbody tr:nth-child(even) {
  background-color: #3b3d4f;
}
[data-theme="dracula"] body.app-dark .psa-table-card table.table tbody tr:hover {
  background-color: #565973;
}

.app-results .no-results {
  color: #9aa0ab;
  background: #171b22;
  border: 1px solid #262b35;
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

/* ---- Map panel under the search bar ---- */
.app-map {
  background: #0c0e12;
  border: 1px solid #262b35;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.app-map iframe,
.app-map arcgis-embedded-map {
  display: block;
  width: 100%;
  height: 540px;
  border: none;
}

.app-map-caption {
  color: #7d8492;
  font-size: 0.82rem;
  margin-top: 0.6rem;
}

/* ---- Stub / profile pages ---- */
.app-panel {
  background: #171b22;
  border: 1px solid #262b35;
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  color: #ced2d9;
  max-width: 640px;
}

.app-panel h2 {
  color: #f2f3f5;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.app-panel .status-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid #1d222c;
  font-size: 0.95rem;
}

.app-panel .status-row:last-of-type {
  border-bottom: none;
}

.app-panel .status-row .k {
  color: #9aa0ab;
}

.app-panel .status-row .v {
  color: #f2f3f5;
  font-weight: 600;
}

.app-panel .status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--psa-bright);
  margin-right: 0.45rem;
}

/* ---- Auth pages (Login / Register) ---- */
.auth-wrap {
  max-width: 420px;
  margin: 4rem auto;
}

.auth-wrap .app-panel {
  max-width: none;
}

.auth-wr
/* ---- Authenticator (TOTP) enrollment ---- */
.qr-box {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--psa-line);
  border-radius: var(--psa-radius);
}

.qr-box img {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
}

.shared-key {
  display: inline-block;
  padding: 0.45rem 0.65rem;
  background: var(--psa-ink-soft);
  color: var(--psa-mist);
  border-radius: 8px;
  letter-spacing: 2px;
  font-size: 1.05rem;
}

.recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--psa-ink-soft);
  border-radius: var(--psa-radius);
}

.recovery-code {
  color: var(--psa-mist);
  font-size: 1rem;
  letter-spacing: 1px;
  text-align: center;
}

/* ---- Support contact form ---- */
.support-panel {
  max-width: 640px;
}

.support-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.support-toggle input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.support-toggle label {
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.support-toggle input[type="radio"]:checked + label {
  border-color: var(--psa-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--psa-primary);
}

.support-toggle input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--psa-bright);
  outline-offset: 2px;
}

.support-attach-label {
  display: block;
}

/* ---- Admin UI ---- */
.badge-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--psa-bright), var(--psa-deep));
}

.btn-link-plain,
.btn-link-danger {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link-plain {
  color: var(--psa-primary);
}

.btn-link-danger {
  color: var(--psa-bright);
  font-weight: 600;
}

.btn-link-plain:hover,
.btn-link-danger:hover {
  color: var(--psa-deep);
}

/* ---- Road map ---- */
.roadmap {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.roadmap-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--psa-primary);
  background: var(--psa-tint);
  border-radius: 8px;
}

.roadmap-when {
  min-width: 140px;
  font-weight: 700;
  color: var(--psa-primary);
}

.roadmap-what {
  color: var(--psa-ink);
}

/* ---- Account sub-nav tabs ---- */
.account-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.5rem;
}

.account-tab {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 500;
}

.account-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.account-tab.active {
  color: #fff;
  font-weight: 700;
  background: rgba(227, 24, 55, 0.22);
}

/* =========================================================
   Themes (System / Light / Dark / Dracula)
   System = no overrides (current look). The branded top nav and
   left sidebar stay dark in every theme; the content area, panels,
   tables and public pages recolor.
   ========================================================= */

/* ---- LIGHT: light content area (portal + auth) ---- */
[data-theme="light"] body.landing-dark {
  background: #f5f6f8;
  color: #14161c;
}
[data-theme="light"] body.landing-dark h1,
[data-theme="light"] body.landing-dark h2,
[data-theme="light"] body.landing-dark h3,
[data-theme="light"] body.landing-dark h4 { color: #14161c; }
[data-theme="light"] body.app-dark { background: #eef0f3; }
[data-theme="light"] .app-main .app-title { color: #14161c; }
[data-theme="light"] .app-panel {
  background: #ffffff;
  border-color: #e4e6ea;
  color: #3a3f47;
}
[data-theme="light"] .app-panel h2 { color: #14161c; }
[data-theme="light"] .app-panel .status-row { border-bottom-color: #e4e6ea; }
[data-theme="light"] .app-panel .status-row .k { color: #5b6270; }
[data-theme="light"] .app-panel .status-row .v { color: #14161c; }
[data-theme="light"] body.app-dark .psa-table-card { background: #ffffff; border: 1px solid #e4e6ea; }
[data-theme="light"] body.app-dark .psa-table-card table,
[data-theme="light"] body.app-dark .psa-table-card tbody td { color: #14161c; }
[data-theme="light"] .record-count,
[data-theme="light"] .app-results .no-results,
[data-theme="light"] .auth-alt { color: #5b6270; }
[data-theme="light"] .account-tab { color: #5b6270; }
[data-theme="light"] .account-tab.active { background: rgba(200, 16, 46, 0.12); color: #14161c; }
[data-theme="light"] .account-tabs { border-bottom-color: #e4e6ea; }
[data-theme="light"] body.landing-dark main a.search-tab { color: #5b6270; }
[data-theme="light"] body.landing-dark main a.search-tab.active { color: #14161c; }

/* ---- DARK: darken the public (marketing/docs) pages; portal already dark ---- */
[data-theme="dark"] body:not(.landing-dark) { background: #101318; color: #ced2d9; }
[data-theme="dark"] body:not(.landing-dark) h1,
[data-theme="dark"] body:not(.landing-dark) h2,
[data-theme="dark"] body:not(.landing-dark) h3,
[data-theme="dark"] body:not(.landing-dark) .page-header h1,
[data-theme="dark"] body:not(.landing-dark) .content-page h2,
[data-theme="dark"] body:not(.landing-dark) .content-page h3 { color: #f2f3f5; }
[data-theme="dark"] body:not(.landing-dark) .content-page,
[data-theme="dark"] body:not(.landing-dark) .content-page p,
[data-theme="dark"] body:not(.landing-dark) .content-page li { color: #ced2d9; }
[data-theme="dark"] body:not(.landing-dark) .roadmap-item { background: #171b22; border-left-color: var(--psa-primary); }
[data-theme="dark"] body:not(.landing-dark) .roadmap-what { color: #ced2d9; }

/* ---- DRACULA: recolor portal + public ---- */
[data-theme="dracula"] body.landing-dark,
[data-theme="dracula"] body.app-dark,
[data-theme="dracula"] body:not(.landing-dark) { background: #282a36; color: #f8f8f2; }
[data-theme="dracula"] body.landing-dark h1,
[data-theme="dracula"] body.landing-dark h2,
[data-theme="dracula"] body.landing-dark h3,
[data-theme="dracula"] body.landing-dark h4,
[data-theme="dracula"] body:not(.landing-dark) h1,
[data-theme="dracula"] body:not(.landing-dark) h2,
[data-theme="dracula"] body:not(.landing-dark) h3 { color: #f8f8f2; }
[data-theme="dracula"] body.landing-dark main a:not(.btn),
[data-theme="dracula"] body:not(.landing-dark) a { color: #ff79c6; }
[data-theme="dracula"] .app-main .app-title { color: #f8f8f2; }
[data-theme="dracula"] .app-panel { background: #44475a; border-color: #6272a4; color: #f8f8f2; }
[data-theme="dracula"] .app-panel h2 { color: #f8f8f2; }
[data-theme="dracula"] .app-panel .status-row { border-bottom-color: #6272a4; }
[data-theme="dracula"] .app-panel .status-row .k { color: #bd93f9; }
[data-theme="dracula"] .app-panel .status-row .v { color: #f8f8f2; }
[data-theme="dracula"] body.app-dark .psa-table-card { background: #44475a; border: 1px solid #6272a4; }
[data-theme="dracula"] body.app-dark .psa-table-card table,
[data-theme="dracula"] body.app-dark .psa-table-card tbody td { color: #f8f8f2; }
[data-theme="dracula"] .content-page,
[data-theme="dracula"] .content-page p,
[data-theme="dracula"] .content-page li { color: #f8f8f2; }
[data-theme="dracula"] .account-tab.active { background: rgba(189, 147, 249, 0.25); }
[data-theme="dracula"] .roadmap-item { background: #44475a; border-left-color: #bd93f9; }

/* ---- Dark content pages (About / Road Map / in-portal Docs) ---- */
body.landing-dark .content-page {
  background: #171b22;
  border-color: #262b35;
  box-shadow: none;
}
body.landing-dark .content-page p,
body.landing-dark .content-page li { color: #ced2d9; }
body.landing-dark .content-page h2 { border-bottom-color: rgba(255, 255, 255, 0.10); }
body.landing-dark .content-page h3 { color: #ff8fa1; }
body.landing-dark .content-page code { background: rgba(255, 255, 255, 0.08); color: #f2f3f5; }
body.landing-dark .page-header { border-bottom-color: rgba(255, 255, 255, 0.12); }
body.landing-dark .page-header p { color: #9aa0ab; }
body.landing-dark .roadmap-item { background: #171b22; border-left-color: var(--psa-primary); }
body.landing-dark .roadmap-what { color: #ced2d9; }

/* Light theme: keep these pages' cards light */
[data-theme="light"] body.landing-dark .content-page { background: #ffffff; border-color: #e4e6ea; }
[data-theme="light"] body.landing-dark .content-page p,
[data-theme="light"] body.landing-dark .content-page li { color: #33363e; }
[data-theme="light"] body.landing-dark .content-page h3 { color: var(--psa-deep); }
[data-theme="light"] body.landing-dark .content-page code { background: #f1eff0; color: #14161c; }
[data-theme="light"] body.landing-dark .page-header p { color: #5b6270; }
[data-theme="light"] body.landing-dark .roadmap-item { background: var(--psa-tint); }
[data-theme="light"] body.landing-dark .roadmap-what { color: #14161c; }

/* Dracula theme */
[data-theme="dracula"] body.landing-dark .content-page { background: #44475a; border-color: #6272a4; }
[data-theme="dracula"] body.landing-dark .content-page code { background: rgba(255, 255, 255, 0.08); color: #f8f8f2; }
[data-theme="dracula"] body.landing-dark .content-page h3 { color: #ff79c6; }
[data-theme="dracula"] body.landing-dark .roadmap-item { background: #44475a; border-left-color: #bd93f9; }
[data-theme="dracula"] body.landing-dark .roadmap-what { color: #f8f8f2; }

/* ---- ULTRA DARK: near-black surfaces ---- */
[data-theme="ultra-dark"] body.landing-dark,
[data-theme="ultra-dark"] body.app-dark,
[data-theme="ultra-dark"] body:not(.landing-dark) { background: #05060a; color: #c9ccd2; }
[data-theme="ultra-dark"] body.landing-dark h1,
[data-theme="ultra-dark"] body.landing-dark h2,
[data-theme="ultra-dark"] body.landing-dark h3,
[data-theme="ultra-dark"] body.landing-dark h4,
[data-theme="ultra-dark"] body:not(.landing-dark) h1,
[data-theme="ultra-dark"] body:not(.landing-dark) h2,
[data-theme="ultra-dark"] body:not(.landing-dark) h3,
[data-theme="ultra-dark"] .app-main .app-title { color: #f2f3f5; }
[data-theme="ultra-dark"] .app-sidebar { background: #000000; }
[data-theme="ultra-dark"] .app-panel { background: #0d0f14; border-color: #1c2029; color: #c9ccd2; }
[data-theme="ultra-dark"] .app-panel h2 { color: #f2f3f5; }
[data-theme="ultra-dark"] .app-panel .status-row { border-bottom-color: #1c2029; }
[data-theme="ultra-dark"] .app-panel .status-row .k { color: #8a919c; }
[data-theme="ultra-dark"] .app-panel .status-row .v { color: #f2f3f5; }
[data-theme="ultra-dark"] body.app-dark .psa-table-card { background: #0d0f14; border: 1px solid #1c2029; }
[data-theme="ultra-dark"] body.app-dark .psa-table-card table,
[data-theme="ultra-dark"] body.app-dark .psa-table-card tbody td { color: #e8eaee; }
[data-theme="ultra-dark"] .content-page { background: #0d0f14; border-color: #1c2029; box-shadow: none; }
[data-theme="ultra-dark"] .content-page,
[data-theme="ultra-dark"] .content-page p,
[data-theme="ultra-dark"] .content-page li { color: #c9ccd2; }
[data-theme="ultra-dark"] .content-page h2 { border-bottom-color: rgba(255, 255, 255, 0.08); }
[data-theme="ultra-dark"] .content-page h3 { color: #ff8fa1; }
[data-theme="ultra-dark"] .content-page code { background: rgba(255, 255, 255, 0.06); color: #f2f3f5; }
[data-theme="ultra-dark"] .page-header p { color: #8a919c; }
[data-theme="ultra-dark"] .roadmap-item { background: #0d0f14; border-left-color: var(--psa-primary); }
[data-theme="ultra-dark"] .roadmap-what { color: #c9ccd2; }
[data-theme="ultra-dark"] .record-count,
[data-theme="ultra-dark"] .app-results .no-results { color: #8a919c; }
[data-theme="ultra-dark"] .account-tab.active { background: rgba(200, 16, 46, 0.28); }

/* ---- ULTRA DARK: form controls (no stark-white inputs) ---- */
[data-theme="ultra-dark"] .form-control,
[data-theme="ultra-dark"] .form-select,
[data-theme="ultra-dark"] textarea.form-control {
  background-color: #14171d;
  border-color: #2a2f3a;
  color: #e6e8eb;
}
[data-theme="ultra-dark"] .form-control::placeholder { color: #6b7280; }
[data-theme="ultra-dark"] .form-control:focus,
[data-theme="ultra-dark"] .form-select:focus {
  background-color: #171b22;
  border-color: var(--psa-primary);
  color: #f2f3f5;
  box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.35);
}

/* ---- Live Wiegand decode preview ---- */
.decode-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  align-items: baseline;
  padding: 0.6rem 0.85rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
}
.decode-preview .k {
  width: 100%;
  font-weight: 700;
  color: var(--psa-bright);
  letter-spacing: 0.03em;
}
.parity-ok { color: #4caf7d; font-weight: 600; }
.parity-bad { color: #ff6b6b; font-weight: 600; }
[data-theme="light"] .decode-preview { border-color: var(--psa-line); }

/* ---- Map watermark (app-side branding overlay) ---- */
.iframe-container, .app-map { position: relative; }
.map-watermark {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 4px 9px;
  background: rgba(16, 19, 24, 0.5);
  border-radius: 8px;
  pointer-events: none;
}
.map-watermark img {
  display: block;
  height: 22px;
  width: auto;
  opacity: 0.9;
}

/* ---- Wide record form panel (was an inline style; CSP-blocked) ---- */
.record-form-wide { max-width: 820px; }
