/* ============================================================
   OKY — Dashboard (Overview) redesign
   Pixel-perfect implementation of Figma "Dashboard · Overview"
   (file VxR2FoxDAz96FLDaEVdReR, node 1171:11).

   This file intentionally carries its own light/blue palette so it
   can override the legacy dark-nav / green-accent panel without
   touching the global tokens that the other (not-yet-redesigned)
   views still depend on. Nav rules are global (the nav is shared);
   everything else is scoped under `.ov`.
   ============================================================ */

:root {
  --d-ink:        #1a1a1a;
  --d-ink-soft:   #666666;
  --d-muted:      #737373;
  --d-faint:      #999999;
  --d-line:       #f0f3f8;          /* hairline dividers */
  --d-line-2:     #e5e5e5;          /* control borders   */
  --d-card:       #ffffff;
  --d-canvas:     #fafafa;
  --d-blue:       #155dfc;          /* active / link blue */
  --d-blue-600:   #2563eb;          /* primary button     */
  --d-safe-bg:    #f0fdf4;
  --d-safe-ink:   #0d542b;
  --d-safe-soft:  #e6f4ee;
  --d-danger-bg:  #fee8e8;
  --d-danger-ink: #6e0404;
  --d-warn-bg:    #fff4e6;
  --d-warn-ink:   #783500;
  --d-shadow-card: 0 14px 34px -22px rgba(13,18,28,0.18), 0 1px 2px rgba(13,18,28,0.04);
  --d-shadow-soft: 0 8px 20px -16px rgba(13,18,28,0.2),  0 1px 2px rgba(13,18,28,0.04);
  --d-shadow-hero: 0 10px 26px -16px rgba(13,18,28,0.18), 0 1px 2px rgba(13,18,28,0.04);
  --font-mont: 'Montserrat', var(--font-display);
}

/* ----------------------------------------------------------------
   TOP NAV — white bar (overrides panel.css .p-nav*)
   ---------------------------------------------------------------- */
.p-nav {
  background: var(--d-card);
  border-bottom: 1px solid var(--d-line);
}
.p-nav-inner {
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  height: 58px;
  padding: 0 26px;
}

/* brand */
.p-brand {
  gap: 9px;
  color: var(--d-ink);
  font-family: var(--font-mont);
  font-weight: 700;
  text-decoration: none;
}
.p-nav a, .p-nav-menu a { text-decoration: none; }
.p-brand .p-brand-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: none; border-radius: 0;
  color: var(--d-blue);
}
.p-brand .p-brand-mark::after { content: none; }
.p-brand .p-brand-name {
  font-family: var(--font-mont);
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--d-ink);
}
.p-brand .p-brand-sub {
  font-family: var(--font-body);
  font-weight: 500; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--d-faint);
  background: rgba(34,34,34,0.06);
  padding: 3px 6px; border-radius: 5px;
  margin-left: 0;
}

/* org badge — every member: logo/initial + name + role chip, next to the
   brand. Sits inside .p-brand so the brand row keeps its single flex line. */
.p-org-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 6px; padding: 3px 8px 3px 4px;
  border-radius: 99px;
  background: #eef3ff;
  color: var(--d-ink);
  max-width: 260px;
}
.p-org-mark, .p-org-logo {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  background: var(--d-blue); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px;
  object-fit: cover;
}
.p-org-name {
  font-family: var(--font-body); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0; color: var(--d-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-role-chip {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 7px; border-radius: 99px;
  font-family: var(--font-body); font-weight: 600; font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(34,34,34,0.07); color: #555;
  white-space: nowrap;
}
.p-role-chip.owner    { background: #fff4e6; color: #783500; }
.p-role-chip.admin    { background: #e6f4ee; color: #0d542b; }
.p-role-chip.employee { background: rgba(34,34,34,0.07); color: #555; }
@media (max-width: 900px) { .p-org-name { display: none; } .p-org-badge { padding-right: 4px; } }

/* transient toasts (components.js toast()) — bottom-centre stack */
.p-toasts {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 300; pointer-events: none;
}
.p-toast {
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 16px; border-radius: 12px;
  background: var(--d-ink); color: #fff;
  font-family: var(--font-body); font-weight: 500; font-size: 13.5px; line-height: 18px;
  box-shadow: 0 14px 34px -18px rgba(13,18,28,0.5);
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: auto;
}
.p-toast.show { opacity: 1; transform: none; }
.p-toast.ok     { background: #0d542b; }
.p-toast.warn   { background: #783500; }
.p-toast.danger { background: #6e0404; }

/* primary links */
.p-nav-links { gap: 20px; }
.p-nav-links a,
.p-nav-links .p-nav-link {
  padding: 0; border-radius: 0; background: none;
  font-family: var(--font-body);
  font-weight: 500; font-size: 13.5px;
  color: var(--d-ink);
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  height: 58px;
  transition: color .15s;
}
.p-nav-links a:hover,
.p-nav-links .p-nav-link:hover { color: var(--d-blue); background: none; }
.p-nav-links a.active,
.p-nav-links .p-nav-link.active { color: var(--d-blue); background: none; }
.p-nav-links a .count {
  background: var(--d-blue);
  font-family: var(--font-body);
}
.p-nav-links .p-nav-link .chev { transition: transform .15s; opacity: .65; }
.p-nav-group.open .p-nav-link .chev { transform: rotate(180deg); }

/* dropdown menus (Scan ▾ / Account ▾) */
.p-nav-group { position: relative; display: inline-flex; align-items: center; height: 58px; }
.p-nav-menu {
  position: absolute; top: 50px; left: 0;
  min-width: 184px;
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  box-shadow: var(--d-shadow-card);
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 60;
}
.p-nav-menu.right { left: auto; right: 0; }
.p-nav-group.open .p-nav-menu { display: flex; }
.p-nav-menu a {
  height: auto;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--d-ink);
}
.p-nav-menu a:hover { color: var(--d-ink); background: var(--d-line); }
.p-nav-menu .sep { height: 1px; background: var(--d-line); margin: 4px 2px; }

/* right cluster */
.p-nav-end { gap: 12px; }
.p-icon-sq {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(34,34,34,0.07);
  color: #444;
  border: 0; cursor: pointer;
  transition: background .15s, color .15s;
  position: relative;
}
.p-icon-sq:hover { background: rgba(34,34,34,0.12); color: var(--d-ink); }
.p-nav-divider { width: 1px; height: 20px; background: rgba(0,0,0,0.09); }
.p-acct {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 4px; height: 34px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: 13.5px;
  color: var(--d-ink);
}
.p-acct .p-acct-av {
  width: 28px; height: 28px; border-radius: 99px;
  background: var(--d-blue);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-body); font-weight: 700; font-size: 11px;
}
.p-acct .chev { opacity: .6; transition: transform .15s; }
.p-nav-group.open .p-acct .chev { transform: rotate(180deg); }

/* ----------------------------------------------------------------
   PAGE FRAME — Figma uses 80px side gutters + 1280 content @1440
   ---------------------------------------------------------------- */
.p-main.ov-active {
  max-width: 1440px;
  padding: 32px 80px 80px;
  position: relative;
}
@media (max-width: 1200px) { .p-main.ov-active { padding: 28px 40px 64px; } }
@media (max-width: 720px)  { .p-main.ov-active { padding: 20px 18px 56px; } }

/* subtle top-right aura glow from the Figma canvas */
.p-main.ov-active::before {
  content: '';
  position: absolute; top: -120px; right: -40px;
  width: 360px; height: 320px;
  background: radial-gradient(circle at 70% 30%,
              rgba(21,93,252,0.10), rgba(21,93,252,0) 62%);
  pointer-events: none; z-index: 0;
}

.ov { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; }

/* hero + metric row are one group in Figma (20px apart), 24px from the
   rest of the page. */
.ov-metrics-block { display: flex; flex-direction: column; gap: 20px; }

/* ----------------------------------------------------------------
   "Add the browser extension" CTA — shown only to desktop Chromium
   users who don't have the extension installed.
   ---------------------------------------------------------------- */
.ov-ext-banner {
  display: flex; align-items: center; gap: 14px;
  background: var(--d-card);
  border: 1px solid rgba(21,93,252,0.18);
  border-radius: 18px;
  box-shadow: var(--d-shadow-card);
  padding: 16px 18px;
  animation: ov-ext-in .25s ease;
}
@keyframes ov-ext-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ov-ext-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  background: #eef3ff; color: var(--d-blue);
  display: grid; place-items: center;
}
.ov-ext-body { flex: 1; min-width: 0; }
.ov-ext-title {
  font-family: var(--font-mont);
  font-weight: 700; font-size: 16px; color: var(--d-ink);
  margin: 0 0 2px;
}
.ov-ext-sub {
  font-family: var(--font-body);
  font-size: 13px; line-height: 18px; color: var(--d-muted); margin: 0;
}
.ov-ext-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; flex-shrink: 0;
  border-radius: 9px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--d-blue-600); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  transition: background .15s;
}
.ov-ext-btn:hover { background: #1d4fd0; }
.ov-ext-dismiss {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px; border: 0; cursor: pointer;
  background: none; color: var(--d-faint);
  transition: background .15s, color .15s;
}
.ov-ext-dismiss:hover { background: rgba(0,0,0,0.05); color: var(--d-ink); }
@media (max-width: 620px) {
  .ov-ext-banner { flex-wrap: wrap; }
  .ov-ext-btn { order: 3; width: 100%; }
}

/* install instructions modal */
.ov-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,18,28,0.45);
  display: grid; place-items: center;
  padding: 24px;
  animation: ov-ext-in .15s ease;
}
.ov-modal {
  position: relative;
  width: 100%; max-width: 520px;
  background: var(--d-card);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(13,18,28,0.4);
  padding: 24px;
}
.ov-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; border-radius: 8px; cursor: pointer;
  background: none; color: var(--d-faint);
}
.ov-modal-close:hover { background: rgba(0,0,0,0.05); color: var(--d-ink); }
.ov-modal-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.ov-modal-title {
  font-family: var(--font-mont); font-weight: 700; font-size: 18px;
  color: var(--d-ink); margin: 0 0 4px;
}
.ov-modal-sub {
  font-family: var(--font-body); font-size: 13px; line-height: 18px;
  color: var(--d-muted); margin: 0;
}
.ov-modal-steps {
  margin: 0 0 20px; padding-left: 20px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-body); font-size: 13.5px; line-height: 19px;
  color: var(--d-ink);
}
.ov-modal-steps .mono {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--d-line); padding: 1px 6px; border-radius: 5px;
}
.ov-modal-actions { display: flex; align-items: center; gap: 10px; }
.ov-modal-dismiss {
  height: 38px; padding: 0 16px;
  border: 1px solid var(--d-line-2); border-radius: 9px; cursor: pointer;
  background: none; color: var(--d-ink);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
}
.ov-modal-dismiss:hover { background: rgba(0,0,0,0.04); }
.ov-modal-actions .ov-scan-btn { text-decoration: none; }

/* greeting */
.ov-greeting {
  font-family: var(--font-mont);
  font-weight: 700; font-size: 30px;
  line-height: 33px; letter-spacing: -0.025em;
  color: var(--d-ink);
  margin: 0;
}

/* ----------------------------------------------------------------
   HERO — "You're protected" banner
   ---------------------------------------------------------------- */
.ov-hero {
  background: var(--d-card);
  border-radius: 22px;
  box-shadow: var(--d-shadow-hero);
  padding: 20px 18px 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.ov-hero-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--d-safe-soft);
  color: var(--d-safe-ink);
  display: grid; place-items: center;
}
.ov-hero-title {
  font-family: var(--font-mont);
  font-weight: 700; font-size: 24px; line-height: 32px;
  color: var(--d-ink);
  margin: 0 0 6px;
}
.ov-hero-sub {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 20px; color: var(--d-ink-soft);
}
.ov-hero-sub .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #00c950;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   METRIC CARDS
   ---------------------------------------------------------------- */
.ov-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 980px) { .ov-metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ov-metrics { grid-template-columns: 1fr; } }
.ov-metric {
  background: var(--d-card);
  border-radius: 18px;
  box-shadow: var(--d-shadow-soft);
  padding: 16px;
  position: relative; overflow: hidden;
  min-height: 116px;
  /* Figma: label+figure grouped (8px), then 4px down to the sub line. */
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
}
.ov-metric-head { display: flex; flex-direction: column; gap: 8px; }
.ov-metric-label {
  font-family: var(--font-body);
  font-weight: 400; font-size: 12px; line-height: 1;
  text-transform: uppercase;
  color: #737373;
}
.ov-metric-figure { display: flex; align-items: center; gap: 8px; }
.ov-metric-badge {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--d-safe-bg);
  color: var(--d-safe-ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.ov-metric-value {
  font-family: var(--font-mont);
  font-weight: 700; font-size: 30px; line-height: 36px;
  color: var(--d-ink);
}
.ov-metric-sub {
  font-family: var(--font-body);
  font-weight: 400; font-size: 14px; line-height: 20px;
  color: var(--d-muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.ov-metric-sub.good { color: #15803d; }
.ov-metric-sub.warn { color: var(--d-warn-ink); }
.ov-metric .ov-spark {
  position: absolute; right: 16px; bottom: 16px;
  opacity: 0.9; pointer-events: none;
}

/* ----------------------------------------------------------------
   GRID — activity (left) + sidebar (right)
   ---------------------------------------------------------------- */
.ov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.536fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
@media (max-width: 1040px) { .ov-grid { grid-template-columns: 1fr; } }

/* activity card */
.ov-activity {
  background: var(--d-card);
  border: 1px solid rgba(229,229,229,0.55);
  border-radius: 18px;
  box-shadow: var(--d-shadow-card);
  padding: 8px 0;
}
.ov-activity-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
}
.ov-activity-head h3 {
  font-family: var(--font-mont);
  font-weight: 600; font-size: 17px; letter-spacing: -0.025em;
  color: var(--d-ink); margin: 0;
}
.ov-activity-head .live {
  width: 6px; height: 6px; border-radius: 50%; background: #00c950;
  animation: pulse 2s ease-in-out infinite;
}
.ov-activity-head .spacer { flex: 1; }
.ov-viewall {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  color: var(--d-ink-soft);
  background: none; border: 0; cursor: pointer;
}
.ov-viewall:hover { color: var(--d-blue); }
.ov-activity-hr { height: 1px; background: var(--d-line); margin: 0 12px; }

.ov-row {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto auto;
  gap: 14px; align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.ov-row:hover { background: #f7f9fc; }
.ov-row-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: #fafafa; border: 1px solid var(--d-line-2);
  color: #555;
  display: grid; place-items: center; flex-shrink: 0;
}
.ov-row-body { min-width: 0; }
.ov-row-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 3px;
}
.ov-row-tag {
  font-family: var(--font-body); font-weight: 500; font-size: 9.5px;
  letter-spacing: 0.06em; color: var(--d-faint);
  width: 40px; flex-shrink: 0;
}
.ov-row-title {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  line-height: 17px; color: var(--d-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-row-sub {
  padding-left: 48px;
  font-family: var(--font-body); font-weight: 400; font-size: 13px;
  line-height: 17px; color: var(--d-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-row-verdict { display: flex; align-items: center; gap: 9px; }
.ov-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 26px; width: 110px; border-radius: 99px;
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
}
.ov-pill.malicious   { background: var(--d-danger-bg); color: var(--d-danger-ink); }
.ov-pill.suspicious  { background: var(--d-warn-bg);   color: var(--d-warn-ink); }
.ov-pill.unreachable { background: var(--d-line);      color: #555; }
.ov-row-score {
  font-family: var(--font-body); font-weight: 400; font-size: 11px;
  color: var(--d-faint); text-align: right; width: 30px;
}
.ov-row-time {
  font-family: var(--font-body); font-weight: 400; font-size: 11px;
  color: var(--d-muted); text-align: right; width: 64px;
}

/* activity empty state — we only surface things that need attention */
.ov-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 4px;
  padding: 40px 24px;
}
.ov-empty-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--d-safe-soft); color: var(--d-safe-ink);
  display: grid; place-items: center; margin-bottom: 6px;
}
.ov-empty h4 {
  font-family: var(--font-mont); font-weight: 600; font-size: 15px;
  color: var(--d-ink); margin: 0;
}
.ov-empty p { font-size: 13px; color: var(--d-muted); margin: 0; max-width: 320px; }

/* ----------------------------------------------------------------
   SIDEBAR
   ---------------------------------------------------------------- */
.ov-side { display: flex; flex-direction: column; gap: 16px; }
.ov-card {
  background: var(--d-card);
  border: 1px solid rgba(229,229,229,0.55);
  border-radius: 18px;
  box-shadow: var(--d-shadow-card);
  padding: 20px;
}
.ov-card-title {
  font-family: var(--font-mont);
  font-weight: 600; font-size: 15px; letter-spacing: -0.025em;
  color: var(--d-ink); margin: 0;
}

/* check-a-link */
.ov-check-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.ov-check-head .avg {
  font-family: var(--font-body); font-size: 11px; color: var(--d-muted);
}
.ov-check-box {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--d-line-2);
  border-radius: 12px;
  padding: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.ov-check-box:focus-within {
  border-color: var(--d-blue);
  box-shadow: 0 0 0 3px rgba(21,93,252,0.12);
}
.ov-check-box input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font-family: var(--font-body); font-size: 13px; color: var(--d-ink);
  padding: 0 8px;
}
.ov-check-box input::placeholder { color: var(--d-faint); }
.ov-scan-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border-radius: 9px; border: 0; cursor: pointer;
  background: var(--d-blue-600); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  transition: background .15s;
}
.ov-scan-btn:hover { background: #1d4fd0; }

/* protection status */
.ov-prot-list { margin-top: 12px; }
.ov-prot-row {
  display: flex; align-items: center; gap: 10px;
  height: 38px;
  border-top: 1px solid var(--d-line);
}
.ov-prot-row:first-child { border-top: 0; }
.ov-prot-row .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ov-prot-row .dot.on  { background: #00c950; box-shadow: 0 0 0 3px rgba(0,201,80,0.15); }
.ov-prot-row .dot.off { background: #cfd6e0; }
.ov-prot-row .name {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: 13.5px; color: var(--d-ink);
}
.ov-prot-row .state {
  font-family: var(--font-body); font-weight: 500; font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-muted);
}
.ov-prot-row .state.action { color: var(--d-blue); cursor: pointer; }

/* "You're protected by <org>" — org members' sidebar card */
.ov-orgcard { display: flex; flex-direction: column; gap: 12px; border-color: rgba(21,93,252,0.18); }
.ov-orgcard-head { display: flex; align-items: center; gap: 12px; }
.ov-orgcard-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: #eef3ff; color: var(--d-blue);
  display: grid; place-items: center; overflow: hidden;
}
.ov-orgcard-text { min-width: 0; }
.ov-orgcard-title {
  font-family: var(--font-mont); font-weight: 700; font-size: 14.5px;
  color: var(--d-ink); margin: 0 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-orgcard-sub {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-body); font-size: 12.5px; color: var(--d-muted);
}
.ov-orgcard-managed {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 8px 10px; border-radius: 9px;
  background: var(--d-line); color: #555;
  font-family: var(--font-body); font-size: 12px; line-height: 16px;
}
.ov-orgcard-managed svg { flex-shrink: 0; margin-top: 2px; }
.ov-orgcard-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--d-line-2); cursor: pointer;
  background: var(--d-card); color: var(--d-ink);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  transition: background .15s;
}
.ov-orgcard-btn:hover { background: var(--d-canvas); }

/* "Managed by <org>" chip — settings.js / setting-packs.js locked controls */
.p-managed-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 8px; border-radius: 99px;
  background: #eef3ff; color: #1e3a8a;
  font-family: var(--font-body); font-weight: 600; font-size: 10.5px;
  letter-spacing: 0.02em; white-space: nowrap; vertical-align: middle;
}
.p-managed { opacity: .55; pointer-events: none; }

/* campaign */
.ov-campaign { display: flex; align-items: center; gap: 13px; }
.ov-campaign-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--d-line); color: #5a6472;
  display: grid; place-items: center; flex-shrink: 0;
}
.ov-campaign-title {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  color: var(--d-ink); margin: 0 0 2px;
}
.ov-campaign-sub {
  font-family: var(--font-body); font-weight: 400; font-size: 12.5px;
  line-height: 17px; color: var(--d-muted); margin: 0;
}
.ov-campaign.alert .ov-campaign-icon { background: var(--d-danger-bg); color: var(--d-danger-ink); }
