/* Behavly's sign-in page and its screens in wp-admin (inc/bv-users.php): the site's navy, Behavly blue and gold, Poppins
   and Inter, and none of WordPress's own chrome. Loaded only on wp-login.php and admin.php?page=behavly. */
:root {
  --bv-navy: #0b1220; --bv-navy2: #111b30; --bv-ink: #0f172a; --bv-text: #334155; --bv-muted: #64748b; --bv-line: #e2e8f0;
  --bv-soft: #f6f8fb; --bv-blue: #3b82f6; --bv-blue-d: #2563eb; --bv-blue-l: #dbeafe; --bv-gold: #e0a526;
  --bv-green: #15803d; --bv-green-l: #dcfce7; --bv-red: #b91c1c; --bv-red-l: #fee2e2; --bv-amber-l: #fef3c7;
  --bv-display: Poppins, Inter, ui-sans-serif, system-ui, sans-serif; --bv-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --bv-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

/* ---------------------------------------------------------------------------------------------- sign-in page */
body.login { background: linear-gradient(160deg, var(--bv-navy) 0%, var(--bv-navy2) 55%, #1a2a4a 100%); font-family: var(--bv-body); color: var(--bv-text); }
body.login #login { width: min(400px, 100% - 32px); padding: 9vh 0 40px; }
body.login h1 a { background: url(img/icon.png) no-repeat left center / 40px 40px; width: auto; height: 44px; text-indent: 0; padding-left: 52px;
  display: inline-flex; align-items: center; font: 600 28px/1 var(--bv-display); color: #fff; letter-spacing: -.01em; margin: 0 0 24px; }
body.login h1 { text-align: center; }
body.login form { border: 0; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); padding: 28px 28px 30px; margin-top: 0; border-top: 4px solid var(--bv-gold); }
body.login label { font: 500 14px/1.4 var(--bv-body); color: var(--bv-ink); }
body.login form .input, body.login input[type=text], body.login input[type=password], body.login input[type=email] {
  font: 400 16px/1.4 var(--bv-body); padding: 10px 12px; border: 1.5px solid var(--bv-line); border-radius: 10px; box-shadow: none; background: #fff; }
body.login form .input:focus, body.login input:focus { border-color: var(--bv-blue); box-shadow: 0 0 0 3px var(--bv-blue-l); outline: 0; }
body.login .button-primary, body.login .button.button-large { background: var(--bv-blue); border: 0; border-radius: 10px; font: 600 15px/1 var(--bv-body);
  padding: 12px 20px; height: auto; min-height: 0; box-shadow: none; text-shadow: none; }
body.login .button-primary:hover, body.login .button-primary:focus { background: var(--bv-blue-d); }
body.login .wp-pwd .button.wp-hide-pw { color: var(--bv-muted); }
body.login #nav, body.login #backtoblog { text-align: center; padding: 0; }
body.login #nav a, body.login #backtoblog a { color: #cbd5e1; font: 500 14px/1.6 var(--bv-body); text-decoration: none; }
body.login #nav a:hover, body.login #backtoblog a:hover { color: #fff; text-decoration: underline; }
body.login #backtoblog { margin-top: 10px; }
body.login .bv-lede { color: #cbd5e1; text-align: center; font: 400 15px/1.55 var(--bv-body); margin: -8px 0 20px; }
body.login .message, body.login .notice, body.login #login_error { border-radius: 12px; border-left: 4px solid var(--bv-blue); box-shadow: none; font: 400 14px/1.5 var(--bv-body); }
body.login #login_error { border-left-color: var(--bv-red); }
body.login .privacy-policy-page-link a { color: #94a3b8; }

/* ---------------------------------------------------------------------------------------------- wp-admin: no WordPress chrome */
body.bv-app { background: var(--bv-soft); }
html.wp-toolbar:has(body.bv-app) { padding-top: 0; }
body.bv-app #wpadminbar, body.bv-app #adminmenumain, body.bv-app #wpfooter, body.bv-app #screen-meta, body.bv-app #screen-meta-links,
body.bv-app .notice, body.bv-app .update-nag, body.bv-app .updated, body.bv-app .error:not(.bv-keep) { display: none !important; }
body.bv-app #wpcontent, body.bv-app #wpbody-content { margin-left: 0; padding: 0; }
body.bv-app #wpbody-content { padding-bottom: 60px; }
@media screen and (max-width: 782px) { html.wp-toolbar:has(body.bv-app) { padding-top: 0; } body.bv-app #wpbody { padding-top: 0; } }

.bv-shell { font: 400 15px/1.6 var(--bv-body); color: var(--bv-text); }
.bv-shell a { color: var(--bv-blue-d); }
.bv-shell h1 { font: 600 clamp(26px, 3.4vw, 36px)/1.15 var(--bv-display); color: var(--bv-ink); letter-spacing: -.015em; margin: 0 0 18px; padding: 0; }
.bv-shell h2 { font: 600 21px/1.3 var(--bv-display); color: var(--bv-ink); margin: 0 0 14px; }
.bv-shell .h2 { font: 600 21px/1.3 var(--bv-display); color: var(--bv-ink); margin: 0 0 10px; }
.bv-shell p { font-size: 15px; }

.bv-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 0 max(20px, calc((100% - 1180px) / 2)); height: 64px;
  background: var(--bv-navy); border-bottom: 3px solid var(--bv-gold); }
.bv-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font: 600 20px/1 var(--bv-display); }
.bv-logo img { border-radius: 7px; }
.bv-top nav { display: flex; gap: 4px; flex: 1; }
.bv-top nav a { color: #cbd5e1 !important; text-decoration: none; font: 500 14px/1 var(--bv-body); padding: 9px 12px; border-radius: 8px; }
.bv-top nav a:hover { color: #fff !important; background: rgba(255, 255, 255, .07); }
.bv-top nav a.on { color: #fff !important; background: rgba(59, 130, 246, .25); }
.bv-who { display: flex; align-items: center; gap: 14px; color: #94a3b8; font-size: 13px; }
.bv-who a { color: #fff !important; text-decoration: none; font-weight: 600; border: 1px solid rgba(255, 255, 255, .25); padding: 7px 12px; border-radius: 8px; }
.bv-who a:hover { border-color: #fff; }

.bv-main { width: min(1180px, 100% - 40px); margin: 28px auto 0; }
.bv-card { background: #fff; border: 1px solid var(--bv-line); border-radius: 16px; box-shadow: var(--bv-shadow); padding: 26px 28px; margin: 0 0 22px; }
.bv-hero { background: linear-gradient(135deg, #fff 0%, #fff 55%, var(--bv-blue-l) 140%); border-top: 4px solid var(--bv-blue); }
.bv-eyebrow { font: 600 12px/1 var(--bv-body) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--bv-blue-d); margin: 0 0 12px; }
.bv-as { margin: 34px 0 12px; color: var(--bv-muted); }
.bv-muted { color: var(--bv-muted); font-size: 14px; }
.bv-back { margin: 0 0 14px; }
.bv-back a { text-decoration: none; font-weight: 600; }
.bv-flash { background: var(--bv-green-l); color: #14532d; border: 1px solid #86efac; border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; font-weight: 500; }
.bv-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.bv-row h2 { margin: 0; }

.bv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 4px 0 18px; }
.bv-stat { background: #fff; border: 1px solid var(--bv-line); border-radius: 12px; padding: 14px 16px; }
.bv-stat b { display: block; font: 600 26px/1.1 var(--bv-display); color: var(--bv-ink); }
.bv-stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--bv-muted); }

.bv-btn, .bv-shell .btn.btn-blue { display: inline-flex; align-items: center; gap: 8px; background: var(--bv-blue); color: #fff !important; border: 1.5px solid var(--bv-blue);
  border-radius: 10px; padding: 11px 18px; font: 600 14px/1 var(--bv-body); text-decoration: none; cursor: pointer; }
.bv-btn:hover, .bv-shell .btn.btn-blue:hover { background: var(--bv-blue-d); border-color: var(--bv-blue-d); }
.bv-ghost, .bv-shell .btn.btn-ghost { background: #fff; color: var(--bv-ink) !important; border: 1.5px solid var(--bv-line); }
.bv-ghost:hover, .bv-shell .btn.btn-ghost:hover { background: #fff; border-color: var(--bv-ink); }
.bv-small { padding: 8px 12px; font-size: 13px; }
.bv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.bv-foot { border-top: 1px solid var(--bv-line); margin-top: 18px; padding-top: 16px; }
.bv-shell .linkish { background: none; border: 0; color: var(--bv-blue-d); font: 600 13px/1 var(--bv-body); cursor: pointer; padding: 4px 2px; }

.bv-table { overflow-x: auto; }
.bv-shell table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bv-shell th { text-align: left; font: 600 12px/1.2 var(--bv-body); letter-spacing: .06em; text-transform: uppercase; color: var(--bv-muted); padding: 10px 12px; border-bottom: 1px solid var(--bv-line); background: var(--bv-soft); }
.bv-shell td { padding: 12px; border-bottom: 1px solid var(--bv-line); vertical-align: top; }
.bv-shell tr:hover td { background: #fafcff; }
.bv-shell td .note { color: var(--bv-muted); font-size: 13px; margin-top: 2px; }
.bv-url { word-break: break-all; max-width: 420px; }
.bv-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 600 12px/1.4 var(--bv-body); background: var(--bv-soft); color: var(--bv-text); border: 1px solid var(--bv-line); }
.bv-done, .bv-active { background: var(--bv-green-l); color: #14532d; border-color: #bbf7d0; }
.bv-failed, .bv-canceled, .bv-past_due, .bv-expired { background: var(--bv-red-l); color: #7f1d1d; border-color: #fecaca; }
.bv-queued, .bv-running, .bv-verify { background: var(--bv-amber-l); color: #78350f; border-color: #fde68a; }

.bv-form label, .bv-shell .check-form label { display: flex; flex-direction: column; gap: 6px; font: 500 13px/1.3 var(--bv-body); color: var(--bv-ink); }
.bv-form input[type=email], .bv-form input[type=text], .bv-form input[type=number], .bv-form input[type=password], .bv-form select,
.bv-shell .check-form input, .bv-shell .check-form select, .bv-shell .check-form textarea, .bv-search input, .bv-shell .row-form select {
  font: 400 14px/1.4 var(--bv-body); padding: 9px 11px; border: 1.5px solid var(--bv-line); border-radius: 9px; background: #fff; box-shadow: none; min-height: 40px; max-width: 100%; }
.bv-form input:focus, .bv-form select:focus, .bv-shell .check-form :is(input, select, textarea):focus, .bv-search input:focus { border-color: var(--bv-blue); box-shadow: 0 0 0 3px var(--bv-blue-l); outline: 0; }
.bv-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.bv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; align-items: end; }
.bv-grid .bv-wide { grid-column: 1 / -1; }
.bv-grid p { margin: 0; }
.bv-form .bv-tick, .bv-shell .tick { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; min-height: 40px; }
.bv-shell .check-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; align-items: end; margin-top: 14px; }
.bv-shell .check-form label:first-of-type:has(textarea) { grid-column: 1 / -1; }
.bv-shell .check-form .btn { justify-self: start; }
.bv-shell .row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bv-search { display: flex; gap: 8px; }
.bv-inline { display: inline; }

@media (max-width: 782px) {
  .bv-top { height: auto; flex-wrap: wrap; gap: 10px; padding: 12px 16px; position: static; }
  .bv-top nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .bv-who span { display: none; }
  .bv-main { width: calc(100% - 32px); margin-top: 18px; }
  .bv-card { padding: 20px 18px; }
}
