/* ============================================================
   OKY — Organization pages (corporate dashboard)
   docs/auth/corporate-multitenant.md §7 — org overview, threats,
   members, policies, sign-in & domains, billing, audit, create.

   Reuses the dashboard.css --d-* palette + the .ov page frame
   (.ov-active gutters, aura glow) and the same surface language as
   the redesigned screens (18px cards, Montserrat titles, blue
   accents). Every class is prefixed `pg-org-` so nothing collides
   with the shared sheets. Loaded on demand (link#pg-org-css) by
   js/org.js — index.html stays shared/untouched.
   ============================================================ */

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

/* ----------------------------------------------------------------
   HEADER — title / subtitle / right-side actions
   ---------------------------------------------------------------- */
.pg-org-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.pg-org-head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pg-org-title {
  font-family: var(--font-mont);
  font-weight: 700; font-size: 30px;
  line-height: 33px; letter-spacing: -0.025em;
  color: var(--d-ink);
  margin: 0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.pg-org-sub {
  font-family: var(--font-body);
  font-weight: 400; font-size: 14px; line-height: 20px;
  color: var(--d-muted);
  margin: 0;
}
.pg-org-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* superadmin "acting as" banner — slim, amber, always first in the page */
.pg-org-super {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #fff4e6; color: #783500;
  border: 1px solid rgba(120,53,0,0.18);
  font-family: var(--font-body); font-weight: 500; font-size: 13px; line-height: 18px;
}
.pg-org-super svg { flex-shrink: 0; }
.pg-org-super b { font-weight: 700; }

/* ----------------------------------------------------------------
   BUTTONS / INPUTS — the org pages are form-heavy
   ---------------------------------------------------------------- */
.pg-org-btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--d-line-2); background: var(--d-card);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  color: var(--d-ink); text-decoration: none; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.pg-org-btn:hover { background: var(--d-canvas); }
.pg-org-btn:disabled { opacity: .55; cursor: not-allowed; }
.pg-org-btn.primary { background: var(--d-blue-600); border-color: var(--d-blue-600); color: #fff; }
.pg-org-btn.primary:hover { background: var(--d-blue); border-color: var(--d-blue); }
.pg-org-btn.danger { color: var(--d-danger-ink); border-color: rgba(110,4,4,0.25); }
.pg-org-btn.danger:hover { background: var(--d-danger-bg); }
.pg-org-btn.ghost { border-color: transparent; background: none; color: var(--d-blue); }
.pg-org-btn.ghost:hover { background: #eef3ff; }
.pg-org-btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.pg-org-btn.xs { height: 22px; padding: 0 6px; font-size: 11.5px; border-radius: 6px; }
.pg-org-btn.icon { width: 30px; padding: 0; }

.pg-org-input, .pg-org-select, .pg-org-textarea {
  appearance: none;
  width: 100%; box-sizing: border-box;
  height: 38px; padding: 0 12px;
  border: 1px solid var(--d-line-2); border-radius: 9px;
  background: var(--d-card);
  font-family: var(--font-body); font-size: 13.5px; color: var(--d-ink);
  transition: border-color .15s, box-shadow .15s;
}
.pg-org-textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 19px; resize: vertical; }
.pg-org-input:focus, .pg-org-select:focus, .pg-org-textarea:focus {
  outline: none;
  border-color: var(--d-blue);
  box-shadow: 0 0 0 3px rgba(21,93,252,0.12);
}
.pg-org-input:disabled, .pg-org-select:disabled, .pg-org-textarea:disabled {
  background: var(--d-canvas); color: var(--d-muted); cursor: not-allowed;
}
.pg-org-input::placeholder, .pg-org-textarea::placeholder { color: var(--d-faint); }
.pg-org-select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.pg-org-input.mono, .pg-org-textarea.mono { font-family: var(--font-mono); font-size: 12.5px; }
.pg-org-input.sm, .pg-org-select.sm { height: 32px; font-size: 13px; }
/* In a table cell the select must not take the full column width. */
.pg-org-table .pg-org-select.sm { width: auto; max-width: 220px; }

/* blue switch (the legacy .switch is accent-green) */
.pg-org-switch {
  position: relative; display: inline-block; flex-shrink: 0;
  width: 40px; height: 22px; cursor: pointer;
  background: #d5dbe4; border-radius: 999px;
  transition: background .2s;
}
.pg-org-switch::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.pg-org-switch.on { background: var(--d-blue-600); }
.pg-org-switch.on::after { left: 21px; }
.pg-org-switch.disabled { opacity: .5; cursor: not-allowed; }

/* ----------------------------------------------------------------
   CARDS / GRID
   ---------------------------------------------------------------- */
.pg-org-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;
}
.pg-org-card.flush { padding: 0; overflow: hidden; }
.pg-org-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.pg-org-card.flush .pg-org-card-head { padding: 16px 20px 0; margin-bottom: 12px; }
.pg-org-card-title {
  font-family: var(--font-mont);
  font-weight: 600; font-size: 15px; letter-spacing: -0.025em;
  color: var(--d-ink); margin: 0;
}
.pg-org-card-sub {
  font-family: var(--font-body); font-size: 12.5px; line-height: 17px;
  color: var(--d-muted); margin: 2px 0 0;
}
.pg-org-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.536fr) minmax(0, 1fr);
  gap: 12px; align-items: start;
}
.pg-org-grid.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 1040px) { .pg-org-grid, .pg-org-grid.even { grid-template-columns: 1fr; } }
.pg-org-stack { display: flex; flex-direction: column; gap: 12px; }

/* ----------------------------------------------------------------
   METRIC TILES — threats today / 7d / 30d, seats
   ---------------------------------------------------------------- */
.pg-org-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
@media (max-width: 980px) { .pg-org-metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pg-org-metrics { grid-template-columns: 1fr; } }
.pg-org-metric {
  background: var(--d-card);
  border: 1px solid rgba(229,229,229,0.55);
  border-radius: 18px;
  box-shadow: var(--d-shadow-soft);
  padding: 16px 18px;
  min-height: 100px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.pg-org-metric-label {
  font-family: var(--font-body);
  font-weight: 400; font-size: 12px; line-height: 1;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--d-muted);
}
.pg-org-metric-value {
  font-family: var(--font-mont);
  font-weight: 700; font-size: 30px; line-height: 33px;
  color: var(--d-ink);
}
.pg-org-metric-sub {
  font-family: var(--font-body);
  font-weight: 400; font-size: 13px; line-height: 18px;
  color: var(--d-muted);
}
.pg-org-metric-sub.good   { color: #15803d; }
.pg-org-metric-sub.warn   { color: var(--d-warn-ink); }
.pg-org-metric-sub.danger { color: var(--d-danger-ink); }
.pg-org-metric-sub.link   { color: var(--d-blue); cursor: pointer; }

/* ----------------------------------------------------------------
   COVERAGE / USAGE BARS
   ---------------------------------------------------------------- */
.pg-org-cov { display: flex; flex-direction: column; gap: 12px; }
.pg-org-cov-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; }
.pg-org-cov-name { font-family: var(--font-body); font-size: 13.5px; color: var(--d-ink); display: inline-flex; align-items: center; gap: 8px; }
.pg-org-cov-name svg { color: var(--d-muted); }
.pg-org-cov-val { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; color: var(--d-ink-soft); white-space: nowrap; }
.pg-org-cov-val .req { color: var(--d-warn-ink); font-weight: 500; }
.pg-org-bar { height: 8px; border-radius: 4px; background: var(--d-line); overflow: hidden; }
.pg-org-bar-fill { height: 100%; border-radius: 4px; background: var(--d-blue-600); transition: width .3s ease; }
.pg-org-bar-fill.good { background: #16a34a; }
.pg-org-bar-fill.warn { background: #f59e0b; }
.pg-org-bar-fill.danger { background: #dc2626; }
.pg-org-bar.lg { height: 10px; border-radius: 5px; }

/* verdict split — stacked bar + legend (same as apps risk breakdown) */
.pg-org-split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--d-line); margin-bottom: 14px; }
.pg-org-split-seg { height: 100%; }
.pg-org-split-seg.malicious  { background: #dc2626; }
.pg-org-split-seg.suspicious { background: #f59e0b; }
.pg-org-legend { display: flex; flex-wrap: wrap; gap: 18px; }
.pg-org-legend-item { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 13px; color: var(--d-ink-soft); }
.pg-org-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pg-org-legend-dot.malicious  { background: #dc2626; }
.pg-org-legend-dot.suspicious { background: #f59e0b; }
.pg-org-legend-dot.email { background: var(--d-blue-600); }
.pg-org-legend-dot.url   { background: #7c3aed; }
.pg-org-legend b { color: var(--d-ink); font-weight: 600; }

/* 14-day bar chart (inline SVG) */
.pg-org-chart { width: 100%; height: auto; max-height: 190px; display: block; }
.pg-org-chart .bar { fill: var(--d-blue-600); }
.pg-org-chart .bar.zero { fill: var(--d-line-2); }
.pg-org-chart .bar.today { fill: var(--d-blue); }
.pg-org-chart .lbl { font-family: var(--font-body); font-size: 10px; fill: var(--d-faint); }
.pg-org-chart .val { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; fill: var(--d-ink-soft); }
.pg-org-chart .grid { stroke: var(--d-line); stroke-width: 1; }

/* ----------------------------------------------------------------
   LISTS / ROWS (top members, invites, domains)
   ---------------------------------------------------------------- */
.pg-org-list { display: flex; flex-direction: column; }
.pg-org-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 8px 0;
  border-top: 1px solid var(--d-line);
}
.pg-org-row:first-child { border-top: 0; }
.pg-org-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pg-org-row-title { font-family: var(--font-body); font-weight: 500; font-size: 13.5px; color: var(--d-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-org-row-sub { font-family: var(--font-body); font-size: 12px; line-height: 16px; color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-org-row-num { font-family: var(--font-mont); font-weight: 700; font-size: 16px; color: var(--d-ink); }
.pg-org-row-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pg-org-avatar {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: #eef3ff; color: var(--d-blue);
  display: grid; place-items: center;
  font-family: var(--font-body); font-weight: 700; font-size: 11.5px;
}
.pg-org-rank { width: 20px; font-family: var(--font-body); font-size: 12px; color: var(--d-faint); text-align: right; }

/* status chips (verified / pending / expired / role) */
.pg-org-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 99px;
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  background: var(--d-line); color: #555; white-space: nowrap;
}
.pg-org-chip.ok     { background: var(--d-safe-soft);  color: var(--d-safe-ink); }
.pg-org-chip.warn   { background: var(--d-warn-bg);    color: var(--d-warn-ink); }
.pg-org-chip.danger { background: var(--d-danger-bg);  color: var(--d-danger-ink); }
.pg-org-chip.blue   { background: #eef3ff;             color: var(--d-blue); }
.pg-org-chip.muted  { background: var(--d-line);       color: var(--d-muted); }

/* kind tag (EMAIL / URL) in the threat feed */
.pg-org-tag {
  font-family: var(--font-body); font-weight: 500; font-size: 9.5px;
  letter-spacing: 0.06em; color: var(--d-faint); text-transform: uppercase;
}

/* ----------------------------------------------------------------
   TABLE — members / audit / threats
   ---------------------------------------------------------------- */
.pg-org-table-wrap { overflow-x: auto; }
.pg-org-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.pg-org-table th {
  text-align: left; padding: 10px 14px;
  font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--d-muted); border-bottom: 1px solid var(--d-line);
  white-space: nowrap;
}
.pg-org-table td {
  padding: 11px 14px; font-size: 13.5px; color: var(--d-ink);
  border-bottom: 1px solid var(--d-line); vertical-align: middle;
}
.pg-org-table tr:last-child td { border-bottom: 0; }
.pg-org-table tbody tr:hover td { background: #f7f9fc; }
.pg-org-table td.muted { color: var(--d-muted); font-size: 12.5px; }
.pg-org-table td.mono { font-family: var(--font-mono); font-size: 12px; }
.pg-org-table td.num { text-align: right; font-weight: 600; }
.pg-org-table td.right, .pg-org-table th.right { text-align: right; }
.pg-org-table td.nowrap { white-space: nowrap; }
.pg-org-table .ellip { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Exact flagged URL, one line under the host it belongs to. Muted and
   monospace so the host stays the primary read, with a copy button so the
   admin re-checks THAT URL and not its apex. */
.pg-org-threat-url {
  display: flex; align-items: center; gap: 6px;
  margin-top: 3px; color: var(--d-muted); font-size: 11.5px;
}
.pg-org-threat-url .ellip { max-width: 300px; display: block; }
.pg-org-threat-url .mono { font-family: var(--font-mono); }
.pg-org-threat-url .pg-org-btn { flex: none; color: var(--d-muted); }
.pg-org-table td.you { color: var(--d-blue); }

/* coverage icons per member: ext / mobile / mailbox */
.pg-org-covicons { display: inline-flex; gap: 6px; }
.pg-org-covicon {
  width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--d-line); color: #b0b7c3;
}
.pg-org-covicon.on { background: var(--d-blue-600); color: #fff; }
.pg-org-covicon.stale { background: var(--d-warn-bg); color: var(--d-warn-ink); }
/* gone = the browser confirmed the removal. Distinct from stale on
   purpose: "took it off" and "laptop has been shut" must not look alike
   to an admin scanning the column. */
.pg-org-covicon.gone { background: var(--d-danger-bg); color: var(--d-danger-ink); }
.pg-org-covicon.req { box-shadow: inset 0 0 0 1px rgba(120,53,0,0.35); }

/* filters row */
.pg-org-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pg-org-filters .spacer { flex: 1; }
.pg-org-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 10px; background: var(--d-line); }
.pg-org-tab {
  appearance: none; cursor: pointer; border: 0; background: none;
  height: 28px; padding: 0 11px; border-radius: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--d-muted);
  transition: background .12s, color .12s;
}
.pg-org-tab:hover { color: var(--d-ink); }
.pg-org-tab.active { background: var(--d-card); color: var(--d-blue); font-weight: 600; box-shadow: 0 1px 2px rgba(13,18,28,0.08); }
.pg-org-filters .pg-org-select { width: auto; height: 34px; font-size: 13px; }
.pg-org-filters .pg-org-input { width: 220px; height: 34px; font-size: 13px; }

/* pagination */
.pg-org-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-top: 1px solid var(--d-line);
  font-family: var(--font-body); font-size: 12.5px; color: var(--d-muted);
}
.pg-org-pager-btns { display: flex; gap: 6px; }

/* ----------------------------------------------------------------
   BANNERS (trial / plan / getting started / errors)
   ---------------------------------------------------------------- */
.pg-org-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: 14px 18px;
}
.pg-org-banner-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px;
  background: #eef3ff; color: var(--d-blue);
  display: grid; place-items: center;
}
.pg-org-banner.warn { border-color: rgba(120,53,0,0.2); }
.pg-org-banner.warn .pg-org-banner-icon { background: var(--d-warn-bg); color: var(--d-warn-ink); }
.pg-org-banner.danger { border-color: rgba(110,4,4,0.25); }
.pg-org-banner.danger .pg-org-banner-icon { background: var(--d-danger-bg); color: var(--d-danger-ink); }
.pg-org-banner.ok .pg-org-banner-icon { background: var(--d-safe-soft); color: var(--d-safe-ink); }
.pg-org-banner-body { flex: 1; min-width: 0; }
.pg-org-banner-title { font-family: var(--font-mont); font-weight: 700; font-size: 15px; color: var(--d-ink); margin: 0 0 2px; }
.pg-org-banner-sub { font-family: var(--font-body); font-size: 13px; line-height: 18px; color: var(--d-muted); margin: 0; }
@media (max-width: 620px) { .pg-org-banner { flex-wrap: wrap; } .pg-org-banner .pg-org-btn { width: 100%; } }

/* inline error / notice boxes inside cards */
.pg-org-error, .pg-org-note, .pg-org-success {
  padding: 10px 12px; border-radius: 10px;
  font-family: var(--font-body); font-size: 13px; line-height: 18px;
}
.pg-org-error   { background: var(--d-danger-bg); color: var(--d-danger-ink); }
.pg-org-note    { background: #eef3ff; color: #1e3a8a; }
.pg-org-note.warn { background: var(--d-warn-bg); color: var(--d-warn-ink); }
.pg-org-success { background: var(--d-safe-bg); color: var(--d-safe-ink); }
.pg-org-error:empty, .pg-org-note:empty, .pg-org-success:empty { display: none; }

/* getting-started checklist */
.pg-org-check { display: flex; flex-direction: column; }
.pg-org-check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--d-line);
}
.pg-org-check-item:first-child { border-top: 0; }
.pg-org-check-dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--d-line-2); color: transparent;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
}
.pg-org-check-item.done .pg-org-check-dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.pg-org-check-item.todo .pg-org-check-dot { color: var(--d-faint); }
.pg-org-check-text { flex: 1; min-width: 0; }
.pg-org-check-title { font-family: var(--font-body); font-weight: 500; font-size: 13.5px; color: var(--d-ink); }
.pg-org-check-item.done .pg-org-check-title { color: var(--d-muted); text-decoration: line-through; }
.pg-org-check-sub { font-family: var(--font-body); font-size: 12px; color: var(--d-muted); }

/* ----------------------------------------------------------------
   FORMS — policies / auth / create
   ---------------------------------------------------------------- */
.pg-org-form { display: flex; flex-direction: column; }
.pg-org-field {
  display: grid; grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 16px; align-items: start;
  padding: 14px 0; border-top: 1px solid var(--d-line);
}
.pg-org-field:first-child { border-top: 0; }
.pg-org-field.row { align-items: center; }
@media (max-width: 720px) { .pg-org-field { grid-template-columns: 1fr; gap: 8px; } }
.pg-org-field-label { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--d-ink); }
.pg-org-field-hint { font-family: var(--font-body); font-size: 12px; line-height: 17px; color: var(--d-muted); margin-top: 3px; }
.pg-org-field-hint.warn { color: var(--d-warn-ink); }
.pg-org-field-ctl { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-org-field-ctl.inline { flex-direction: row; align-items: center; flex-wrap: wrap; }
.pg-org-field-ctl .pg-org-input, .pg-org-field-ctl .pg-org-select { max-width: 460px; }
.pg-org-actions { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--d-line); margin-top: 6px; flex-wrap: wrap; }
.pg-org-actions .status { font-family: var(--font-body); font-size: 12.5px; color: var(--d-muted); }

/* radio cards (join policy / login method) */
.pg-org-radios { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.pg-org-radio {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--d-line-2); background: var(--d-card);
  transition: border-color .12s, background .12s;
}
.pg-org-radio:hover { background: var(--d-canvas); }
.pg-org-radio.checked { border-color: var(--d-blue); background: #f5f8ff; }
.pg-org-radio.disabled { opacity: .55; cursor: not-allowed; }
.pg-org-radio input { margin: 3px 0 0; accent-color: var(--d-blue-600); }
.pg-org-radio-title { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--d-ink); }
.pg-org-radio-sub { font-family: var(--font-body); font-size: 12px; line-height: 17px; color: var(--d-muted); margin-top: 2px; }

/* pack picker (locked setting packs) */
.pg-org-packs { display: grid; gap: 10px; max-width: 620px; }
.pg-org-pack {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--d-line-2); border-left-width: 4px;
  background: var(--d-card);
}
.pg-org-pack.checked { background: #f5f8ff; box-shadow: 0 0 0 1px var(--d-blue) inset; }
.pg-org-pack input { accent-color: var(--d-blue-600); }
.pg-org-pack-name { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--d-ink); }
.pg-org-pack-desc { font-family: var(--font-body); font-size: 12px; line-height: 17px; color: var(--d-muted); margin-top: 2px; }

/* copy box (TXT record / redirect URI) */
.pg-org-copy {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 12px; border-radius: 10px;
  background: var(--d-canvas); border: 1px solid var(--d-line-2);
  font-family: var(--font-mono); font-size: 12px; color: var(--d-ink);
  max-width: 640px;
}
.pg-org-copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; }
.pg-org-copy .pg-org-btn { flex-shrink: 0; }
.pg-org-dns { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-family: var(--font-body); font-size: 12.5px; color: var(--d-muted); align-items: center; }
.pg-org-dns b { color: var(--d-ink); font-weight: 600; }

/* group → role map editor */
.pg-org-map { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.pg-org-map-row { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; align-items: center; }
.pg-org-map-row .pg-org-input, .pg-org-map-row .pg-org-select { height: 34px; font-size: 13px; }

/* key/value blocks (billing) */
.pg-org-kv { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.pg-org-kv > div { padding: 11px 0; border-top: 1px solid var(--d-line); font-family: var(--font-body); font-size: 13.5px; }
.pg-org-kv > div:nth-child(-n+2) { border-top: 0; }
.pg-org-kv .k { color: var(--d-muted); }
.pg-org-kv .v { color: var(--d-ink); font-weight: 600; text-align: right; }

/* invite results (bulk) */
.pg-org-results { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.pg-org-result { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 12.5px; color: var(--d-ink); }
.pg-org-result .who { font-family: var(--font-mono); font-size: 12px; }
.pg-org-result a { color: var(--d-blue); font-size: 12px; }

/* org create — centered narrow card */
.pg-org-create { max-width: 560px; margin: 0 auto; width: 100%; }
.pg-org-create .pg-org-field { grid-template-columns: 1fr; gap: 6px; }
.pg-org-domain-claim {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--d-canvas); border: 1px dashed var(--d-line-2);
  font-family: var(--font-body); font-size: 13px; color: var(--d-ink-soft);
}
.pg-org-domain-claim b { font-family: var(--font-mono); font-weight: 600; color: var(--d-ink); }

/* audit meta */
.pg-org-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--d-muted); word-break: break-word; }

/* ----------------------------------------------------------------
   EMPTY / LOADING
   ---------------------------------------------------------------- */
.pg-org-loading { padding: 60px 0; text-align: center; font-family: var(--font-body); color: var(--d-muted); }
.pg-org-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px; padding: 44px 24px;
}
.pg-org-empty-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--d-safe-soft); color: var(--d-safe-ink);
  display: grid; place-items: center; margin-bottom: 8px;
}
.pg-org-empty-icon.neutral { background: #eef3ff; color: var(--d-blue); }
.pg-org-empty h4 {
  font-family: var(--font-mont); font-weight: 600; font-size: 17px;
  letter-spacing: -0.025em; color: var(--d-ink); margin: 0;
}
.pg-org-empty p {
  font-family: var(--font-body); font-size: 13px; line-height: 19px;
  color: var(--d-muted); margin: 0; max-width: 400px;
}
.pg-org-empty .pg-org-btn { margin-top: 10px; }

/* deployment configs (Organization → Deployment)
 *
 * Config payloads an admin pastes into a console. They scroll inside
 * their own box rather than widening the page: an Intune .reg line and
 * a Chrome update URL are both long, and the layout must not depend on
 * how long the extension id happens to be.
 */
.pg-org-code {
  margin: 0; padding: 12px 14px; max-width: 100%;
  border-radius: 10px; border: 1px solid var(--d-line-2);
  background: var(--d-canvas); overflow-x: auto;
}
.pg-org-code code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12px; line-height: 18px; color: var(--d-ink);
  white-space: pre; display: block;
}
.pg-org-field-ctl > .pg-org-code + .pg-org-btn { align-self: flex-start; }

/* ----------------------------------------------------------------
   THREAT FEED — origin chips, clickable rows, detail popup, notes
   ---------------------------------------------------------------- */

/* Origin: was a person exposed, or did OKY look on its own?
   `live` (clicked / inbox / checked) reads as something that happened
   to somebody; `quiet` (background / re-checked / api) reads as
   housekeeping. The colour difference is the whole point of the column
   — an admin scans it, they do not read it. */
.pg-org-origin {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 8px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  letter-spacing: .01em; white-space: nowrap;
}
.pg-org-origin.live  { background: #eef3ff; color: var(--d-blue); }
.pg-org-origin.quiet { background: var(--d-line); color: var(--d-muted); }

/* Note badge on a feed row: this finding has written context. */
.pg-org-notecount {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 6px; padding: 0 6px; height: 20px; border-radius: 999px;
  background: var(--d-line); color: var(--d-muted);
  font-size: 11px; font-weight: 600;
}

/* Rows open the detail popup. `quiet` rows (background scans) are
   dimmed so that including them never makes the list of things that
   actually happened harder to read. */
.pg-org-row-click { cursor: pointer; }
.pg-org-row-click:hover { background: var(--d-canvas); }
.pg-org-row-click.quiet td { opacity: .72; }
.pg-org-row-click.quiet:hover td { opacity: 1; }

/* Detail popup — wider than the shared .ov-modal (a URL, a redirect
   chain and a note thread need the room) and scrollable, because the
   note thread grows without bound. */
.pg-org-detail-overlay { z-index: 240; }
.pg-org-detail {
  max-width: 680px;
  max-height: min(86vh, 900px);
  overflow-y: auto;
}
.pg-org-detail-grid {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 0; margin-bottom: 4px;
  border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line);
}
.pg-org-detail-row { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.pg-org-detail-row .k {
  flex: 0 0 148px;
  font-family: var(--font-body); font-size: 12.5px; color: var(--d-muted);
}
.pg-org-detail-row .v {
  flex: 1 1 auto; min-width: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 13.5px; line-height: 19px; color: var(--d-ink);
}
.pg-org-detail-row .v .mono { font-family: var(--font-mono); font-size: 12.5px; word-break: break-all; }
.pg-org-detail-sec { padding: 14px 0; border-bottom: 1px solid var(--d-line); }
.pg-org-detail-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.pg-org-detail-sec h5 {
  font-family: var(--font-mont); font-weight: 600; font-size: 13px;
  color: var(--d-ink); margin: 0 0 10px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}

/* Redirect chain: numbered because the ORDER is the finding — a short
   link that ends up three hops away on a different registrable domain
   is the story an admin needs to see at a glance. */
.pg-org-chain {
  margin: 0; padding-left: 20px;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12.5px; color: var(--d-ink);
}
.pg-org-chain li { word-break: break-all; }

/* Outcome chip — what the member did after the warning. Red when the
   site was reached anyway: that is the row to follow up on. */
.pg-org-outcome {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 6px; font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  white-space: nowrap; vertical-align: middle;
}
.pg-org-outcome.bad  { background: #fdecec; color: #b42318; }
.pg-org-outcome.good { background: #e8f7ee; color: #157347; }

/* "Where they were": title first, host in mono under the same row. */
.pg-org-page { display: inline-flex; flex-direction: column; min-width: 0; gap: 1px; }
.pg-org-page b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-org-page .mono { color: var(--d-muted); font-size: 12px; }

/* Screenshot: full width, bordered, click-through to full size. Fixed
   aspect box while loading so the popup does not jump when it lands. */
.pg-org-shot {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--d-line); border-radius: 12px; overflow: hidden;
  background: var(--d-canvas);
}
.pg-org-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pg-org-shot-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 12.5px; color: var(--d-muted);
}

/* Timeline: the member's other threats around this one. Rows are
   clickable and swap the popup to that threat. */
.pg-org-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pg-org-timeline-row {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 6px 8px; border-radius: 8px; cursor: pointer;
  font-family: var(--font-body); font-size: 12.5px;
}
.pg-org-timeline-row:hover { background: var(--d-canvas); }
.pg-org-timeline-row .muted { color: var(--d-muted); flex: 0 0 auto; }
.pg-org-timeline-host { flex: 1 1 auto; min-width: 0; font-family: var(--font-mono); font-size: 12px; color: var(--d-ink); }

.pg-org-evidence {
  margin: 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-body); font-size: 13.5px; line-height: 19px; color: var(--d-ink);
}

/* How OKY checked it: numbered steps; each step lists its checks with a
   result chip. Steps OKY never reached are folded to one quiet line. */
.pg-org-trail-summary {
  margin: 0 0 10px; font-family: var(--font-body); font-size: 13px; line-height: 18px; color: var(--d-muted);
}
.pg-org-trail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-org-trail-stage {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; row-gap: 6px; align-items: baseline;
  padding: 8px 10px; border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-card, #fff);
}
.pg-org-trail-stage.quiet { background: var(--d-canvas); border-style: dashed; }
.pg-org-trail-stage.quiet .pg-org-trail-name { color: var(--d-muted); font-weight: 500; }
.pg-org-trail-stage.quiet > .pg-org-card-sub { grid-column: 2; margin: 0; }
.pg-org-trail-num {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--d-line); font-family: var(--font-mono); font-size: 11px; color: var(--d-muted); align-self: start;
}
.pg-org-trail-name { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--d-ink); }
.pg-org-trail-checks { grid-column: 2; display: flex; flex-direction: column; gap: 6px; }
.pg-org-trail-check { padding: 6px 0 0; border-top: 1px solid var(--d-line); }
.pg-org-trail-check:first-child { border-top: 0; padding-top: 0; }
.pg-org-trail-check.skipped { opacity: .6; }
.pg-org-trail-check-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pg-org-trail-check-name { font-family: var(--font-body); font-size: 13px; color: var(--d-ink); flex: 1 1 auto; min-width: 0; }
.pg-org-trail-check-head .pg-org-card-sub { margin: 0; }
.pg-org-trail-findings {
  margin: 4px 0 0; padding-left: 16px;
  font-family: var(--font-body); font-size: 12.5px; line-height: 17px; color: var(--d-ink);
}

.pg-org-notes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.pg-org-note {
  background: var(--d-canvas);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  padding: 10px 12px;
}
.pg-org-note-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 12px; margin-bottom: 5px;
}
.pg-org-note-head b { font-weight: 600; color: var(--d-ink); }
.pg-org-note-head .muted { color: var(--d-muted); }
.pg-org-note-head > button { margin-left: auto; }
.pg-org-note-body {
  font-family: var(--font-body); font-size: 13.5px; line-height: 19px;
  color: var(--d-ink); white-space: pre-wrap; word-break: break-word;
}
.pg-org-note-add { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pg-org-note-add .pg-org-textarea { min-height: 68px; }

/* "Include background scans" — a checkbox rather than another tab
   because it is orthogonal to the day/kind/verdict segments, and
   stacking a fourth segmented control read as a fourth filter axis. */
.pg-org-check {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 10px; border-radius: 10px;
  background: var(--d-line);
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  color: var(--d-muted); cursor: pointer; user-select: none;
}
.pg-org-check input { accent-color: var(--d-blue-600); cursor: pointer; margin: 0; }
.pg-org-check:has(input:checked) { color: var(--d-ink); }

/* "Not protected (N)" tab. Tinted amber when the count is non-zero so
   the number reads as something to act on, not a neutral filter — the
   whole complaint was that unprotected members were invisible among
   forty healthy rows. */
.pg-org-tab.alert { color: var(--d-warn-ink); }
.pg-org-tab.alert.active { background: var(--d-warn-bg); color: var(--d-warn-ink); }

/* Report to OKY (popup section + reports page). The thread reads like a
   conversation: org messages left-aligned on canvas, OKY's on blue tint,
   the decision message carries the status chip. */
.pg-org-reports-inline { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pg-org-report-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-body); font-size: 12.5px; color: var(--d-ink);
}
.pg-org-report-row .muted { color: var(--d-muted); }
.pg-org-report-kind { font-weight: 500; }
.pg-org-report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-org-report-actions .pg-org-btn svg { margin-right: 4px; vertical-align: -2px; }
.pg-org-report-form {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
  padding: 12px; border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-canvas);
  font-family: var(--font-body); font-size: 13px;
}
.pg-org-report-form b { font-weight: 600; }
.pg-org-report-form .pg-org-select { width: auto; height: 30px; font-size: 12.5px; margin-left: 6px; }
.pg-org-report-form-btns { display: flex; gap: 8px; align-items: center; }
.pg-org-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.pg-org-msg {
  max-width: 88%; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--d-line); background: var(--d-canvas);
}
.pg-org-msg.oky { align-self: flex-end; background: #eef3ff; border-color: #dbe6ff; }
.pg-org-msg.decision { border-width: 2px; }
.pg-org-msg-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-body); font-size: 12px; margin-bottom: 4px;
}
.pg-org-msg-head b { font-weight: 600; color: var(--d-ink); }
.pg-org-msg-head .muted { color: var(--d-muted); }
.pg-org-msg-body {
  font-family: var(--font-body); font-size: 13.5px; line-height: 19px;
  color: var(--d-ink); white-space: pre-wrap; word-break: break-word;
}
.pg-org-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 720px) { .pg-org-form-grid { grid-template-columns: 1fr; } }
.pg-org-seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--d-line); }
.pg-org-seg-btn {
  height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: var(--d-muted);
}
.pg-org-seg-btn.active { background: #fff; color: var(--d-ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pg-org-seg-count { font-weight: 600; margin-left: 2px; }

/* ----------------------------------------------------------------
   TELEGRAM ALERTS — own bot + connected chats (js/org-telegram.js)
   ---------------------------------------------------------------- */
/* numbered step badge next to a card title */
.pg-org-tg-step-head { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.pg-org-tg-step {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef3ff; color: var(--d-blue);
  font-family: var(--font-body); font-weight: 700; font-size: 11.5px;
}
/* @BotFather how-to */
.pg-org-tg-steps {
  margin: 0 0 14px; padding-left: 20px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-body); font-size: 13.5px; line-height: 19px; color: var(--d-ink);
}
.pg-org-tg-steps a, .pg-org-tg-bot a { color: var(--d-blue); text-decoration: none; }
.pg-org-tg-steps a:hover, .pg-org-tg-bot a:hover { text-decoration: underline; }
.pg-org-tg-steps code, .pg-org-tg-lead code { font-family: var(--font-mono); font-size: 12.5px; }
/* token input + Show, then the save row */
.pg-org-tg-token { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.pg-org-tg-bot + .pg-org-tg-chips + .pg-org-tg-token,
.pg-org-tg-confirm + .pg-org-tg-token { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--d-line); }
.pg-org-tg-token-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pg-org-tg-token-row .pg-org-input { flex: 1; min-width: 0; }
.pg-org-tg-bot { padding-top: 0; }
.pg-org-tg-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
/* long chips (delivery paused / token rejected / paused chat) may wrap */
.pg-org-chip.wrap { white-space: normal; height: auto; min-height: 22px; padding: 3px 9px; line-height: 15px; }
.pg-org-chip.wrap svg { flex-shrink: 0; }
/* in-page confirm (no browser dialogs) */
.pg-org-tg-confirm {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--d-danger-bg); border: 1px solid rgba(110,4,4,0.18);
}
.pg-org-tg-confirm-text { flex: 1; min-width: 220px; font-family: var(--font-body); font-size: 13px; line-height: 18px; color: var(--d-danger-ink); }
.pg-org-tg-confirm-text b { font-weight: 700; }
.pg-org-tg-confirm-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pg-org-tg-confirm .pg-org-btn:not(.danger) { background: var(--d-card); }
.pg-org-tg-inline-confirm { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 12.5px; color: var(--d-danger-ink); }
/* step 2 */
.pg-org-tg-off { opacity: .6; }
.pg-org-tg-chats-head { flex-wrap: wrap; }
.pg-org-tg-connect { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 20px 16px; }
.pg-org-tg-panel-wrap { padding: 0 20px 16px; }
.pg-org-tg-panel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 16px; border-radius: 14px;
  background: #f5f8ff; border: 1px solid #dbe6ff;
}
.pg-org-tg-panel .pg-org-radios, .pg-org-tg-panel .pg-org-copy { width: 100%; box-sizing: border-box; }
.pg-org-tg-panel .pg-org-copy { background: var(--d-card); }
.pg-org-tg-panel .pg-org-error { width: 100%; box-sizing: border-box; }
.pg-org-tg-panel-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pg-org-tg-open { box-sizing: border-box; min-height: 44px; height: auto; padding: 10px 20px; font-size: 14px; border-radius: 10px; max-width: 100%; white-space: normal; text-align: center; }
.pg-org-tg-lead { margin: 0; font-family: var(--font-body); font-size: 13.5px; line-height: 19px; color: var(--d-ink); }
.pg-org-tg-wait {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-body); font-size: 12.5px; color: var(--d-muted);
}
.pg-org-tg-wait #tg-countdown { font-variant-numeric: tabular-nums; }
.pg-org-tg-wait > span:nth-child(2) { flex: 1 1 140px; min-width: 0; }
.pg-org-tg-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--d-blue-600); animation: pg-org-tg-pulse 1.2s ease-in-out infinite; }
@keyframes pg-org-tg-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* links table */
.pg-org-tg-chat { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pg-org-tg-chat-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-org-tg-paused-chip { margin-top: 6px; }
.pg-org-tg-paused td { color: var(--d-muted); }
.pg-org-tg-paused .pg-org-tg-chat, .pg-org-tg-paused .pg-org-select { opacity: .7; }
.pg-org-tg-err { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--d-warn-ink); cursor: help; }
.pg-org-tg-table .ellip { max-width: 240px; }
/* "What gets sent" */
.pg-org-tg-list {
  margin: 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-body); font-size: 13px; line-height: 19px; color: var(--d-ink-soft);
}
/* mobile: chat rows stack as cards, no horizontal scroll */
@media (max-width: 720px) {
  .pg-org-tg-bot { flex-wrap: wrap; }
  .pg-org-tg-bot .pg-org-row-actions { width: 100%; padding-left: 42px; flex-wrap: wrap; }
  .pg-org-tg-connect, .pg-org-tg-panel-wrap { padding-left: 16px; padding-right: 16px; }
  .pg-org-tg-connect .pg-org-btn { flex: 1 1 auto; }
  .pg-org-tg-open { width: 100%; }
  .pg-org-tg-table thead { display: none; }
  .pg-org-tg-table, .pg-org-tg-table tbody, .pg-org-tg-table tr, .pg-org-tg-table td { display: block; width: 100%; box-sizing: border-box; }
  .pg-org-tg-table tr { padding: 12px 16px; border-bottom: 1px solid var(--d-line); }
  .pg-org-tg-table tr:last-child { border-bottom: 0; }
  .pg-org-tg-table td { padding: 3px 0; border-bottom: 0; text-align: left; white-space: normal; }
  .pg-org-tg-table td.right { text-align: left; padding-top: 8px; }
  .pg-org-tg-table td[data-label]:not([data-label=""])::before {
    content: attr(data-label); display: block;
    font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-faint);
  }
  .pg-org-tg-table td[data-label="Chat"]::before { display: none; }
  .pg-org-tg-table .ellip { max-width: 100%; }
  .pg-org-tg-table tbody tr:hover td { background: none; }
  .pg-org-tg-inline-confirm { flex-wrap: wrap; }
}
