/* ui/admin.css — Admin & Security console. Owned by W10.
   EVERY SELECTOR IS PREFIXED `ad-`. These files are concatenated into styles.css at build,
   and an unprefixed rule silently restyles someone else's surface (SHELL_CONTRACT §3.2).

   The visual system is the real Loop IQ product, from the computed-style capture:
     card    #FFF · 0.67px solid #E5E7EB · 12px radius · 24px padding
     pills   9999px · 12px/500 · 2px 8px
     primary filled #271257 · text link #581C87
   Brand: electric indigo #4330F5, depth #271257 / #1A0B3D. Poppins body, Onest display.

   ONE DELIBERATE DEPARTURE: destructive actions. Loop styles "Remove integration" as a
   filled dark-purple primary, visually equal in weight to "Update integration". That is a
   hierarchy bug — the button that destroys something should never look like the button
   that saves it. Ours are ghost buttons with a danger colour, and every one is
   confirm-gated. */

.ad-head { margin-bottom: 20px; }

.ad-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.ad-stat {
  background: #FFF; border: 0.67px solid #E5E7EB; border-radius: 12px;
  padding: 16px 24px; min-width: 148px;
}
.ad-stat-v { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 24px; font-weight: 600; color: #1A0B3D; }
.ad-stat-l { font-size: 12px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: #6B7280; margin-top: 4px; }

/* ---- tabs ---- */
.ad-tabs { display: flex; gap: 4px; border-bottom: 0.67px solid #E5E7EB; margin-bottom: 24px; flex-wrap: wrap; }
.ad-tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 14px; font-family: Poppins, sans-serif; font-size: 14px; font-weight: 500;
  color: #6B7280; cursor: pointer;
}
.ad-tab:hover { color: #271257; }
.ad-tab.on { color: #271257; font-weight: 600; border-bottom-color: #4330F5; }

/* ---- cards ---- */
.ad-card {
  background: #FFF; border: 0.67px solid #E5E7EB; border-radius: 12px;
  padding: 24px; margin-bottom: 24px;
}
.ad-card h3 {
  font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 16px; font-weight: 600;
  color: #1A0B3D; margin: 0 0 4px;
}
.ad-h4 { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 14px; font-weight: 600; color: #1A0B3D; margin: 24px 0 4px; }
.ad-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ad-card-head h3 { margin: 0; }
.ad-card-foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.ad-sub { font-size: 13px; color: #6B7280; margin: 0 0 16px; line-height: 1.55; }
.ad-foot-note { font-size: 12px; color: #6B7280; margin: 12px 0 0; line-height: 1.6; }
.ad-foot-note code, .ad-sub code { background: #F9FAFB; padding: 1px 5px; border-radius: 4px; font-size: 11px; }
.ad-empty { text-align: center; padding: 24px; color: #6B7280; font-size: 13px; }
.ad-empty h3 { margin-bottom: 8px; }

/* ---- ABSENCE. The single most important rule in this file.
   A missing value is never a zero and never a blank cell. It is a sentence, in a visibly
   different colour and style from a real value, so a CEO can never mistake "we cannot see
   this" for "this is zero". Loop's own PRODA card renders `Connected: Invalid Date`. ---- */
.ad-nodata { color: #9CA3AF; font-style: italic; font-size: 12px; }

/* ---- pills ---- */
.ad-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 9999px;
  white-space: nowrap;
}
.ad-pill.sm { font-size: 11px; margin-left: 6px; }
.ad-pill.ok { background: #F1FCF3; color: #1E7735; }
.ad-pill.warn { background: #FFFBEB; color: #B45309; }
.ad-pill.info { background: #EEF2FF; color: #3730A3; }
.ad-pill.neutral { background: #F3F4F6; color: #4B5563; }
.ad-pill.off { background: #F3F4F6; color: #9CA3AF; }
.ad-pill.seed { background: #F5F3FF; color: #6D28D9; font-size: 10px; padding: 1px 6px; }
.ad-pill.role { background: #F5F3FF; color: #4C1D95; }
.ad-pill.role-owner { background: #EDE9FE; color: #4C1D95; }
.ad-pill.role-admin { background: #EEF2FF; color: #3730A3; }
.ad-pill.role-finance { background: #ECFDF5; color: #065F46; }
.ad-pill.role-clinical { background: #EFF6FF; color: #1E40AF; }
.ad-pill.role-facility_manager { background: #FEF3C7; color: #92400E; }
.ad-pill.role-readonly { background: #F3F4F6; color: #4B5563; }

/* ---- buttons ---- */
.ad-btn {
  font-family: Poppins, sans-serif; font-size: 14px; font-weight: 600;
  height: 48px; padding: 0 24px; border-radius: 48px; cursor: pointer; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.ad-btn.primary { background: #271257; color: #FFF; }
.ad-btn.primary:hover { background: #1A0B3D; }
.ad-btn.ghost { background: #FFF; color: #581C87; border: 0.67px solid #E5E7EB; }
.ad-btn.ghost:hover { background: #F9FAFB; }
/* DESTRUCTIVE. Never filled, never primary-weight. It reads as a warning, not as the
   obvious next click. */
.ad-btn.danger { background: #FFF; color: #B42318; border: 0.67px solid #FECDCA; }
.ad-btn.danger:hover { background: #FEF3F2; }

.ad-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: Poppins, sans-serif; font-size: 13px; font-weight: 600; color: #581C87;
}
.ad-link:hover { text-decoration: underline; }
.ad-link.danger { color: #B42318; }

/* ---- tables ---- */
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; color: #6B7280; padding: 8px 12px 8px 0;
  border-bottom: 0.67px solid #E5E7EB; white-space: nowrap;
}
.ad-table td { padding: 12px 12px 12px 0; border-bottom: 0.67px solid #F3F4F6; vertical-align: top; color: #1F2937; }
.ad-table tr.is-off { opacity: .55; }
.ad-table code { font-size: 12px; background: #F9FAFB; padding: 2px 6px; border-radius: 4px; color: #374151; }
.ad-u-name { font-weight: 600; color: #1A0B3D; }
.ad-u-mail { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
.ad-when { color: #6B7280; white-space: nowrap; font-size: 12px; }
.ad-row-actions { text-align: right; white-space: nowrap; }
.ad-row-actions .ad-link + .ad-link { margin-left: 12px; }

.ad-chip {
  display: inline-block; background: #F3F4F6; color: #374151;
  font-size: 11px; padding: 2px 8px; border-radius: 9999px; margin: 0 4px 4px 0;
}
.ad-chip.more { background: #EDE9FE; color: #5B21B6; }
.ad-scope-lvl {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: #6B7280; margin-right: 6px;
}

.ad-tree { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-tree-en {
  display: flex; align-items: center; gap: 8px; background: #F9FAFB;
  border: 0.67px solid #E5E7EB; border-radius: 9999px; padding: 6px 14px; font-size: 12px; color: #374151;
}
.ad-tree-n { color: #6B7280; font-size: 11px; }

/* ---- notes ---- */
.ad-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #F9FAFB; border: 0.67px solid #E5E7EB; border-radius: 12px;
  padding: 14px 16px; font-size: 13px; line-height: 1.6; color: #374151; margin-bottom: 16px;
}
.ad-note svg { flex: 0 0 auto; margin-top: 3px; }
.ad-note.warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.ad-note.ok { background: #F1FCF3; border-color: #BBF7D0; color: #166534; }
.ad-note em, .ad-help { display: block; font-size: 11px; color: #6B7280; margin-top: 4px; font-style: normal; }
.ad-note.warn .ad-help, .ad-note.warn em { color: #A16207; }

/* ---- key/value ---- */
.ad-kv { display: flex; flex-wrap: wrap; gap: 24px; margin: 16px 0; }
.ad-kv > div { font-size: 13px; color: #1F2937; }
.ad-kv span {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; color: #6B7280; margin-bottom: 4px;
}
.ad-kv code { font-size: 12px; background: #F9FAFB; padding: 2px 6px; border-radius: 4px; }

/* ---- forms ---- */
.ad-form { display: flex; flex-direction: column; gap: 14px; }
.ad-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ad-form-2 .ad-wide { grid-column: 1 / -1; }
.ad-form label, .ad-form-2 label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; font-weight: 600; color: #374151;
}
.ad-form input, .ad-form select, .ad-form textarea,
.ad-form-2 input, .ad-form-2 select, .ad-form-2 textarea {
  font-family: Poppins, sans-serif; font-size: 13px; font-weight: 400; color: #1F2937;
  border: 0.67px solid #E5E7EB; border-radius: 8px; padding: 10px 12px; background: #FFF;
}
.ad-form textarea { font-family: ui-monospace, monospace; font-size: 12px; resize: vertical; }
.ad-form input:focus, .ad-form select:focus, .ad-form textarea:focus,
.ad-form-2 input:focus, .ad-form-2 select:focus, .ad-form-2 textarea:focus {
  outline: 2px solid #4330F5; outline-offset: -1px; border-color: #4330F5;
}
.ad-opt { font-weight: 400; color: #9CA3AF; }
.ad-hide { display: none !important; }
.ad-role-blurb { font-size: 12px; color: #6B7280; line-height: 1.6; margin: -4px 0 0; }
.ad-inline { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: #374151; margin: 16px 0; max-width: 320px; }
.ad-inline select { font-family: Poppins, sans-serif; font-size: 13px; font-weight: 400; border: 0.67px solid #E5E7EB; border-radius: 8px; padding: 10px 12px; }
.ad-inline-check { flex-direction: row !important; align-items: center; gap: 8px !important; }

.ad-checks { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.ad-checks.col { flex-direction: column; gap: 10px; margin-top: 8px; }
.ad-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; font-weight: 400; }
.ad-check em { font-style: normal; color: #9CA3AF; font-size: 12px; }
.ad-check code { font-size: 11px; background: #F9FAFB; padding: 2px 6px; border-radius: 4px; }

/* ---- toggle — iOS-style card row (WGS-82) ---- */
.ad-toggle { display: flex; align-items: center; gap: 14px; padding: 13px 0;
             border-bottom: 1px solid #F3F4F6; cursor: pointer; margin: 0; }
.ad-toggle:last-of-type { border-bottom: 0; }
.ad-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ad-sw {
  flex: 0 0 auto; width: 44px; height: 26px; border-radius: 9999px; background: #E5E7EB;
  position: relative; transition: background .18s; flex-shrink: 0;
}
.ad-sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #FFF; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .18s;
}
.ad-toggle input:checked + .ad-sw { background: #271257; }
.ad-toggle input:checked + .ad-sw::after { transform: translateX(18px); }
.ad-toggle span { flex: 1; }
.ad-toggle strong { display: block; font-size: 13px; font-weight: 600; color: #1F2937; }
/* ---- ios-card wrapper for grouped toggles ---- */
.ad-ios-card { background: #fff; border: 1px solid #ececf1; border-radius: 16px;
               padding: 0 20px; margin: 14px 0; box-shadow: 0 1px 2px rgba(20,20,40,.03); }
/* ---- checkbox (multi-select only, not boolean) ---- */

/* ---- permission matrix ---- */
.ad-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ad-role { border: 0.67px solid #E5E7EB; border-radius: 12px; padding: 16px; }
.ad-role-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ad-role-scope { font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #9CA3AF; }
.ad-role p { font-size: 12px; color: #6B7280; line-height: 1.6; margin: 0; }

.ad-matrix-wrap { overflow-x: auto; }
.ad-matrix th { padding: 8px 10px; text-align: center; }
.ad-matrix th:first-child { text-align: left; min-width: 240px; }
.ad-matrix td { padding: 8px 10px; text-align: center; }
.ad-mlabel { text-align: left !important; font-size: 12px; color: #374151; }
.ad-mgroup td {
  background: #F9FAFB; font-size: 10px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; color: #6B7280; padding: 6px 10px !important; text-align: left !important;
}
/* The financial band is tinted, because THIS is the row group that proves the point:
   a Facility Manager sees no cell in it. */
.ad-mgroup.financial td { background: #FFFBEB; color: #92400E; }
.ad-p { font-size: 11px; font-weight: 600; }
.ad-p.edit { color: #1E7735; }
.ad-p.edit svg { vertical-align: -1px; margin-right: 2px; }
.ad-p.view { color: #4B5563; }
.ad-p.none { color: #D1D5DB; }
.ad-p.sm { display: inline; font-size: 11px; }
.ad-appr {
  display: inline-block; margin-left: 4px; width: 14px; height: 14px; line-height: 14px;
  border-radius: 50%; background: #EDE9FE; color: #5B21B6; font-size: 9px; text-align: center;
}
.ad-legend { font-size: 11px; color: #6B7280; display: flex; align-items: center; gap: 2px; }

/* ---- SSO ---- */
.ad-copy { padding: 12px 0; border-bottom: 0.67px solid #F3F4F6; }
.ad-copy:last-child { border-bottom: 0; }
.ad-copy-l { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #6B7280; margin-bottom: 6px; }
.ad-copy-v { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ad-copy-v code { font-size: 12px; background: #F9FAFB; border: 0.67px solid #E5E7EB; padding: 6px 10px; border-radius: 6px; color: #374151; word-break: break-all; }
.ad-copy-n { font-size: 11px; color: #9CA3AF; margin-top: 4px; }
.ad-token { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ad-token code { flex: 1; font-size: 12px; background: #F9FAFB; border: 0.67px solid #E5E7EB; padding: 10px 12px; border-radius: 8px; word-break: break-all; }

/* ---- danger zone ---- */
.ad-danger-zone { border-color: #FECDCA; }
.ad-danger-zone h3 { color: #B42318; }
.ad-danger-zone p { font-size: 13px; color: #6B7280; line-height: 1.6; margin: 0 0 16px; }

/* ---- IP ---- */
.ad-ipnow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ad-ipnow code { font-size: 14px; font-weight: 600; background: #F9FAFB; border: 0.67px solid #E5E7EB; padding: 8px 14px; border-radius: 8px; color: #1A0B3D; }

/* ---- audit ---- */
.ad-filters { display: flex; gap: 8px; }
.ad-filters input, .ad-filters select {
  font-family: Poppins, sans-serif; font-size: 13px; border: 0.67px solid #E5E7EB;
  border-radius: 8px; padding: 8px 12px; background: #FFF; color: #1F2937;
}
.ad-filters input { min-width: 240px; }
.ad-audit td { font-size: 12px; }
.ad-audit tr.k-config { background: #FDFCFF; }
.ad-delta { white-space: nowrap; }
.ad-fld { font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #9CA3AF; margin-bottom: 3px; }
.ad-old { color: #B42318; text-decoration: line-through; font-size: 12px; }
.ad-arrow { color: #9CA3AF; margin: 0 6px; }
.ad-new { color: #1E7735; font-weight: 600; font-size: 12px; }
.ad-reason { color: #4B5563; min-width: 190px; max-width: 260px; white-space: normal; line-height: 1.5; }
.ad-audit th, .ad-audit td { padding-right: 16px; }
.ad-audit td:last-child { white-space: nowrap; }

/* ---- trust panel ---- */
.ad-trust { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 24px; }
.ad-tcard { background: #FFF; border: 0.67px solid #E5E7EB; border-radius: 12px; padding: 20px; }
.ad-tcard.flag { border-color: #FDE68A; background: #FFFDF5; }
.ad-tcard-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ad-tcard-h strong { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 14px; color: #1A0B3D; }
.ad-tcard-v { font-size: 13px; color: #374151; line-height: 1.6; margin-bottom: 10px; }
.ad-tcard-e { font-size: 11px; color: #9CA3AF; line-height: 1.6; border-top: 0.67px solid #F3F4F6; padding-top: 10px; }

/* ---- modal ---- */
.ad-modal-wrap {
  position: fixed; inset: 0; background: rgba(26, 11, 61, .45);
  display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 24px;
}
.ad-modal {
  background: #FFF; border-radius: 12px; padding: 24px; width: 100%; max-width: 520px;
  max-height: 86vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(26, 11, 61, .25);
}
.ad-modal h3 { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 18px; font-weight: 600; color: #1A0B3D; margin: 0 0 12px; }
.ad-modal-body { font-size: 13px; color: #4B5563; line-height: 1.6; }
.ad-modal-body p { margin: 0 0 12px; }
.ad-modal-body code { background: #F9FAFB; padding: 2px 6px; border-radius: 4px; font-size: 12px; color: #B42318; }
.ad-modal-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.ad-modal select[multiple] { min-height: 96px; }

@media (max-width: 720px) {
  .ad-form-2 { grid-template-columns: 1fr; }
  .ad-filters { flex-direction: column; }
  .ad-filters input { min-width: 0; }
}

/* ---- acting-as identity switcher ---- */
.ad-acting {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #F5F3FF; border: 0.67px solid #DDD6FE; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 20px;
}
.ad-acting label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #4C1D95; }
.ad-acting select {
  font-family: Poppins, sans-serif; font-size: 13px; font-weight: 400;
  border: 0.67px solid #DDD6FE; border-radius: 8px; padding: 8px 12px; background: #FFF; color: #1F2937;
}
.ad-acting .ad-help { flex: 1; min-width: 240px; margin: 0; color: #6D28D9; }

/* ---- UAR dashboard ---- */
.ad-uar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 24px; }
.ad-uar-stat { background: #FFF; border: 0.67px solid #E5E7EB; border-radius: 12px; padding: 20px; }
.ad-uar-stat.warn { border-color: #FDE68A; background: #FFFDF5; }
.ad-uar-stat.ok { border-color: #BBF7D0; }
.ad-uar-n { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 28px; font-weight: 600; color: #1A0B3D; }
.ad-uar-stat.warn .ad-uar-n { color: #B45309; }
.ad-uar-l { font-size: 13px; font-weight: 600; color: #374151; margin-top: 2px; }
.ad-uar-h { font-size: 11px; color: #6B7280; line-height: 1.5; margin-top: 6px; }

.ad-prog { height: 6px; background: #F3F4F6; border-radius: 9999px; overflow: hidden; width: 140px; }
.ad-prog span { display: block; height: 100%; background: #4330F5; }

.ad-card-head-actions { display: flex; gap: 12px; }

/* ---- the review table. The evidence column is the whole point of the screen. ---- */
.ad-uar-table td { font-size: 12px; }
.ad-uar-table tr.is-priv { background: #FFFDF5; }
.ad-ev { min-width: 260px; }
.ad-ev-l { font-size: 11px; color: #6B7280; margin-top: 4px; }
.ad-ev-l strong { color: #1F2937; }
.ad-why { margin-top: 6px; }
.ad-why summary { font-size: 11px; color: #581C87; cursor: pointer; font-weight: 600; }
.ad-why ul { margin: 6px 0 0; padding-left: 16px; }
.ad-why li { font-size: 11px; color: #6B7280; line-height: 1.5; }
.ad-proof { color: #1E7735 !important; font-weight: 600; }

.ad-bulkbar {
  display: none; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #FFF; border: 0.67px solid #E5E7EB; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 16px;
}
.ad-bulkbar.on { display: flex; }
.ad-bulkbar span:first-child { font-size: 13px; font-weight: 600; color: #1A0B3D; }
.ad-bulkbar .ad-btn { height: 36px; padding: 0 16px; font-size: 13px; }
.ad-bulkbar .ad-help { flex: 1; min-width: 240px; margin: 0; }
.ad-packlist { margin: 8px 0 0; padding-left: 18px; }
.ad-packlist li { font-size: 12px; margin-bottom: 4px; }

/* ---- pending changes / maker-checker ---- */
.ad-pend { border: 0.67px solid #E5E7EB; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.ad-pend-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ad-pend-h strong { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); color: #1A0B3D; }
.ad-delta.big { font-size: 20px; margin: 12px 0 16px; }
.ad-delta.big .ad-old, .ad-delta.big .ad-new { font-size: 20px; }

/* THE IMPACT BLOCK. What the approver is actually signing. */
.ad-impact { background: #F9FAFB; border: 0.67px solid #E5E7EB; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.ad-impact-h { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 18px; font-weight: 600; color: #1A0B3D; margin-bottom: 10px; }
.ad-impact ul { margin: 0; padding-left: 18px; }
.ad-impact li { font-size: 12px; color: #374151; line-height: 1.7; }
.ad-impact-v {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 12px;
  background: #FEF3F2; border: 0.67px solid #FECDCA; border-radius: 8px;
  padding: 10px 12px; font-size: 12px; font-weight: 600; color: #B42318; line-height: 1.5;
}
/* The honest no-number state. Never a fabricated delta. */
.ad-impact.none { display: flex; gap: 10px; background: #FFFBEB; border-color: #FDE68A; }
.ad-impact.none strong { color: #92400E; font-size: 13px; }
.ad-impact.none p { font-size: 12px; color: #92400E; line-height: 1.6; margin: 6px 0 0; }
.ad-impact.none .ad-help { color: #A16207; margin-top: 6px; }

.ad-reason-box { background: #F9FAFB; border-radius: 8px; padding: 12px; font-size: 12px; color: #374151; line-height: 1.6; margin-bottom: 4px; }
.ad-reason-box span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #9CA3AF; margin-bottom: 4px; }

.ad-toxic { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 0.67px solid #F3F4F6; }
.ad-toxic:last-child { border-bottom: 0; }
.ad-plus { color: #9CA3AF; font-weight: 600; }
.ad-toxic-x { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 11px; font-weight: 600; color: #B42318; }
