/* Verbiro brand layer — intentionally loaded after each page's local styles */
:root {
  --vb-ink: #050508;
  --vb-surface: #0d0d14;
  --vb-surface-2: #151521;
  --vb-border: rgba(255,255,255,.08);
  --vb-cyan: #22d3ee;
  --vb-cyan-light: #67e8f9;
  --vb-violet: #8b5cf6;
  --vb-gradient: linear-gradient(90deg,#22d3ee,#8b5cf6);
  --vb-paper: #f3f4f8;
  --vb-card: #fff;
  --vb-text: #1f2430;
  --vb-muted: #5d6675;
  --vb-radius: 14px;
  --vb-pill: 999px;
  --vb-focus: 0 0 0 3px rgba(34,211,238,.35);
}

* { box-sizing: border-box; }
body {
  /* deeper, subtly tinted paper + faint top glow so dark chrome blends instead of floating on white */
  background:
    radial-gradient(900px 260px at 50% -80px, rgba(34,211,238,.08), rgba(139,92,246,.05) 55%, transparent 75%),
    linear-gradient(180deg, #eceff7 0%, #eff1f8 220px, var(--vb-paper) 480px) fixed !important;
  color: var(--vb-text) !important;
  font-family: "Avenir Next", "Segoe UI", sans-serif !important;
  line-height: 1.5;
}
h1 { color: var(--vb-text) !important; font-weight: 800 !important; letter-spacing: -.03em; }
.subtitle { color: var(--vb-muted) !important; }

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #f2fbfe 0%, #f4f1fe 60%, #f7f4ff 100%) !important;
  color: var(--vb-text) !important;
  border: 1px solid rgba(139,92,246,.18) !important;
  border-radius: var(--vb-radius) !important;
  padding: 10px 22px !important;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(90,80,160,.10), inset 0 -2px 0 rgba(34,211,238,.30) !important;
}
.top-header .logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.top-header .logo-link img { height: 40px; }
.top-header .logo-tagline {
  color: #5d6675 !important;
  font-size: 11px;
  letter-spacing: .3px;
  white-space: nowrap;
  border-left: 1px solid rgba(93,102,117,.28);
  padding-left: 12px;
  margin-left: 4px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
/* Login page has a dark backdrop; flip the dark logo art there only */
body:has(.login-box) img[src="/static/logo.png"] { filter: invert(1) hue-rotate(180deg); }
.header-greeting { color: var(--vb-text) !important; font-weight: 500; }
.header-right a, .nav-bar a, .nav-links a, .nav-link a {
  color: #0e7490 !important;
  text-decoration: none;
  font-weight: 500;
}
.header-right a:hover, .nav-bar a:hover, .nav-links a:hover, .nav-link a:hover { color: #5b35c6 !important; }
.header-right a.sign-out { color: #b3324a !important; }
.header-right a:focus-visible, .nav-bar a:focus-visible, .nav-links a:focus-visible, .nav-link a:focus-visible,
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; box-shadow: var(--vb-focus) !important; }

.nav-bar, .nav-links {
  background: linear-gradient(120deg, #f2fbfe 0%, #f4f1fe 60%, #f7f4ff 100%) !important;
  border: 1px solid rgba(139,92,246,.18) !important;
  border-radius: var(--vb-radius) !important;
  box-shadow: 0 6px 18px rgba(90,80,160,.10) !important;
}
.nav-bar { margin-bottom: 20px; padding: 15px; text-align: center; }
.nav-bar a, .nav-links a { display: inline-block; padding: 7px 12px; border-radius: var(--vb-pill); margin: 0 4px !important; }
.nav-bar a.active, .nav-links a.active { color: #fff !important; background: linear-gradient(90deg,#0e7490,#7c3aed); }

.section, .card, .step-panel {
  background: var(--vb-card) !important;
  border: 1px solid #e5e7ee !important;
  border-radius: var(--vb-radius) !important;
  box-shadow: 0 8px 24px rgba(31,36,48,.07) !important;
}
.wrap header.brand .name { color: #5b35c6 !important; }
.wrap a { color: #0e7490; }
.contact, .wrap .btn {
  background: linear-gradient(90deg,#0e7490,#7c3aed) !important;
  color: #fff !important;
  border-radius: var(--vb-pill) !important;
}
.note, .admin {
  border: 1px solid rgba(34,211,238,.35) !important;
  border-left: 4px solid var(--vb-cyan) !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg,rgba(34,211,238,.10),rgba(139,92,246,.10)) !important;
  color: #263043 !important;
}
.section h2, .card h2, h2 {
  border-bottom: none !important;
  position: relative;
  padding-bottom: 12px !important;
}
.section h2::after, .card h2::after, .step-panel h2::after, .section > h2::after {
  content: ""; display: block; width: 40px; height: 3px; border-radius: 4px;
  position: absolute; left: 0; bottom: 0; background: var(--vb-gradient);
}

button, .btn { border-radius: var(--vb-pill) !important; border: 0; }
button:not([class]), .btn-primary, button.primary, button[type="submit"], .btn-sync, button.sync {
  border: 0 !important;
  background: linear-gradient(90deg,#0e7490,#7c3aed) !important; /* darker gradient: >=4.5:1 with white text */
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(34,211,238,.15) !important;
}
button:not([class]):hover, .btn-primary:hover, button.primary:hover, button[type="submit"]:hover, .btn-sync:hover, button.sync:hover { filter: brightness(1.12); }
/* Copy affordance keeps its utility styling — exempt from the global gradient */
.urlbox button {
  background: #fff !important; color: #0e7490 !important;
  border-left: 1px solid #cfd6dd !important; border-radius: 0 !important; box-shadow: none !important;
}
.urlbox button:hover { background: #eef3f8 !important; filter: none; }
/* Utility/link-style controls keep their page semantics */
button.close-banner, button.collapsible, button.source-toggle {
  background: none !important; border-radius: 8px !important; box-shadow: none !important; color: inherit !important;
}
button.collapsible { background: #eef1f7 !important; color: #283142 !important; width: 100%; text-align: left; }
button.source-toggle { color: #0e7490 !important; text-decoration: underline; padding: 0; }
.btn-secondary, button.secondary, .btn-skip {
  background: #343946 !important; color: #fff !important; box-shadow: none !important;
}
.btn-danger, button.danger { background: #c0394b !important; color: #fff !important; }
.btn-success { background: #16835a !important; color: #fff !important; }
button:disabled, .btn:disabled { opacity: .55; filter: none; }

input[type="checkbox"], input[type="radio"] { border-radius: initial !important; box-shadow: none !important; accent-color: var(--vb-violet); }
input, textarea, select, .bullet-list, .bullet-editor {
  border-radius: 10px !important; border-color: #cbd2df !important; color: var(--vb-text);
}
input:focus, textarea:focus, select:focus, .bullet-list:focus, .bullet-editor:focus {
  outline: none !important; border-color: var(--vb-cyan) !important; box-shadow: var(--vb-focus) !important;
}
label { color: #303746 !important; }
.hint, .helper, .stats, .text-muted { color: var(--vb-muted) !important; }

.pill { border-radius: var(--vb-pill) !important; }
.pill.trialing { background: #dff7fb !important; color: #075968 !important; }
.pill.active { background: #dff5e9 !important; color: #0c5b3b !important; }
.pill.past_due { background: #fff1c9 !important; color: #684b00 !important; }
.pill.expired { background: #ffe0e4 !important; color: #7c1d2b !important; }
.stat, .stat-card, .mailbox-card, .template-card, .profile-item { border-radius: 12px !important; border-color: #e2e6ee !important; }
.stat, .stat-card { background: #f8f9fc !important; }
table th { background: #eef1f7 !important; color: #283142 !important; }
table td, table th { border-color: #e4e7ed !important; }
.status-connected, .status-success, .success, .summary-pass { background: #dff5e9 !important; color: #0c5b3b !important; }
.status-disconnected, .status-warn, .warning, .summary-fail { background: #fff1c9 !important; color: #684b00 !important; }
.status-error, .error, .error-msg { background: #ffe0e4 !important; color: #7c1d2b !important; }

.progress-step.active .circle, .progress-step.done .circle { background: var(--vb-gradient) !important; }
.progress-step.active .label, .progress-step.done .label { color: #5b35c6 !important; }
.progress-connector.done, .progress-connector { background: linear-gradient(90deg,#a5f3fc,#ddd6fe) !important; }
.progress-step .circle { border: 1px solid #d9dcea; }

/* Branded guide/info callouts (replaces flat-blue border-left boxes) */
.helper-text, .step-panel .description, .caution-info, .vb-callout {
  border-left: none !important;
  border: 1px solid rgba(34,211,238,.35) !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(139,92,246,.10)) !important;
  color: #263043 !important;
  position: relative;
  overflow: hidden;
  padding-left: 20px !important;
}
.helper-text::before, .step-panel .description::before, .caution-info::before, .vb-callout::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--vb-gradient);
}
/* Warning flavor stays visually distinct */
.caution-info, .vb-callout.warn {
  border-color: rgba(217,144,0,.45) !important;
  background: linear-gradient(135deg, rgba(255,196,66,.16), rgba(255,146,66,.12)) !important;
  color: #684b00 !important;
}
.caution-info::before, .vb-callout.warn::before { background: linear-gradient(180deg,#f5b942,#e8833a); }
.vb-callout.error {
  border-color: rgba(192,57,75,.45) !important;
  background: linear-gradient(135deg, rgba(255,120,140,.14), rgba(220,60,80,.10)) !important;
  color: #7c1d2b !important;
}
.vb-callout.error::before { background: linear-gradient(180deg,#f27587,#c0394b); }
.sources-list li, .sources-list .source-group { border-left: 3px solid var(--vb-cyan) !important; }

/* Outlook onboarding reminder: quiet, useful, and deliberately distinct from promotion. */
#vb-install-reminder-mount {
  margin: 16px 0 22px;
  transition: opacity .2s ease, transform .2s ease;
}
#vb-install-reminder-mount.is-dismissed { opacity: 0; transform: translateY(-6px); }
.vb-install-reminder {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: linear-gradient(105deg, #f3fbfc 0%, #f5f2ff 100%);
  border: 1px solid rgba(14,116,144,.22);
  border-left: 4px solid var(--vb-cyan);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(42,52,86,.08);
}
.vb-install-reminder__mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #0e7490, #7c3aed);
  color: #fff;
  font-weight: 800;
  letter-spacing: -.04em;
}
.vb-install-reminder__copy { flex: 1; min-width: 0; }
.vb-install-reminder__eyebrow {
  margin-bottom: 2px;
  color: #0e7490;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.vb-install-reminder h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: #20283a !important;
  font-size: 17px;
  letter-spacing: -.02em;
}
.vb-install-reminder h2::after { display: none !important; }
.vb-install-reminder p {
  margin: 3px 0 0;
  color: #5d6675;
  font-size: 13px;
}
.vb-install-reminder__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.vb-install-reminder__install {
  padding: 9px 15px;
  border-radius: 999px;
  background: #0e7490;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.vb-install-reminder__install:hover { background: #095c70; }
.vb-install-reminder__snooze {
  padding: 7px 0;
  border: 0;
  background: transparent !important;
  color: #536071 !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.vb-install-reminder__snooze:hover { color: #5b35c6 !important; text-decoration: underline; }
.vb-install-reminder__snooze:disabled { cursor: wait; text-decoration: none; }
.vb-admin-install-link {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #cfd2e6;
  border-radius: 999px;
  color: #5b35c6 !important;
  background: #f7f5ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.vb-admin-install-link:hover { background: #efebff; }

@media (max-width: 680px) {
  #vb-install-reminder-mount { margin: 14px 0 18px; }
  .vb-install-reminder { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 15px; }
  .vb-install-reminder__copy { flex-basis: calc(100% - 52px); }
  .vb-install-reminder__actions { width: 100%; padding-left: 50px; justify-content: space-between; }
  .vb-admin-install-link { width: 100%; text-align: center; }
}

body:has(.login-box) { background: var(--vb-ink) !important; }
.login-box { border-radius: 16px !important; border: 1px solid #e5e7ee !important; box-shadow: 0 20px 60px rgba(0,0,0,.4) !important; }
.login-box h1 { color: #18202d !important; }
body:has(.login-box) > div:first-child div { color: #a9b2c3 !important; }

@media (max-width: 680px) {
  body { padding: 12px !important; }
  .top-header { padding: 12px 14px !important; flex-wrap: wrap; gap: 12px; }
  .header-right { gap: 9px !important; flex-wrap: wrap; justify-content: flex-end; }
  .top-header .logo-tagline { display: none; }
  .nav-bar a, .nav-links a { margin: 2px !important; font-size: 12px; }
  .section, .card, .step-panel { padding: 18px !important; }
  .input-row, .inline-group { flex-direction: column; }
}