/* ============================================================
   Ohio Design System × HQ Brands Agency
   Single source of truth for Ohio-themed UI across the app.

   Activation: wrap page content in <div class="ohio-page">.
   No global pollution — selectors are scoped to .ohio-page.

   Tokens derived from canonical Ohio theme v3.7.1 (Colabrio
   --clb-* variables), with the agency palette mapped onto
   Ohio's semantic roles:

     Brandeis Blue  #0961E9  → primary (CTA, links, focus, brand)
     Police Blue    #384C69  → dark neutral (dark buttons, muted strong)
     Vivid Lime     #B4E809  → accent (highlights, AI badges, decor)
     Lust           #E82409  → danger (errors, urgent states)
     Ghost White    #F8FBFF  → page paper (cool subtle off-white)

   Maintain Ohio's structural tokens verbatim:
     - radius base 0.5rem (8px), button radius 8px (NOT pill)
     - button height 2.75rem with 1.25rem side padding
     - title font DM Sans 600
     - body system stack 1.025rem / line-height 1.6
     - fluid headings via clamp()
     - transitions cubic-bezier(.645,.045,.355,1) 0.35s
   ============================================================ */

/* ─── Tokens ───────────────────────────────────────────── */
.ohio-page {
  /* Brand palette (agency) */
  --ohio-paper:        #F8FBFF;
  --ohio-primary:      #0961E9;
  --ohio-primary-dark: #0651C2;
  --ohio-primary-50:   color-mix(in srgb, #0961E9 50%, transparent);
  --ohio-dark:         #384C69;
  --ohio-dark-hover:   #2c3d56;
  --ohio-accent:       #B4E809;
  --ohio-accent-dark:  #95C407;
  --ohio-danger:       #E82409;
  --ohio-danger-dark:  #C41D08;

  /* Neutrals (Ohio canonical) */
  --ohio-black:        #111013;
  --ohio-black-light:  #1c1b1e;
  --ohio-grey:         #5a5961;
  /* was #888790 — 3.55:1 on white, below AA for the small labels that use it
     (card stat keys, placeholders, muted values). 5.03:1 and still clearly a
     step lighter than --ohio-grey. */
  --ohio-grey-light:   #6f6e78;
  --ohio-placeholder:  #6f6e78;
  --ohio-success:      #29A366;
  --ohio-warning:      #EC8013;

  /* ── INK: text colours for the soft-tint chip pattern ────────────────────
     The app-wide chip is `background: color-mix(<semantic> 10-16%, transparent)`
     with `color: var(<same semantic>)`. That pairing is a fill colour used as a
     text colour on a wash of itself, and it fails AA everywhere it appears:
     success 2.77 · warning 2.35 · danger 3.83 · lime-on-white 2.06.
     A semantic colour has two jobs — paint a shape, and be read as text — and
     one hex cannot do both. These are the reading half. Use --ohio-<x> for the
     fill and --ohio-ink-<x> for any text or icon sitting on that fill. */
  --ohio-ink-success:  #0C6E3F;   /* 5.45:1 on a 14% success tint */
  --ohio-ink-warning:  #8A4B06;   /* 5.83:1 on a 16% warning tint */
  --ohio-ink-danger:   #B71C08;   /* 5.65:1 on a 10% danger tint  */
  --ohio-ink-primary:  #0651C2;   /* 5.94:1 on a 12% primary tint */
  --ohio-ink-accent:   #111013;   /* 9.19:1 on solid lime — never white */

  /* Surfaces */
  --ohio-fill:         color-mix(in srgb, var(--ohio-grey) 8%, transparent);
  --ohio-fill-strong:  color-mix(in srgb, var(--ohio-grey) 12%, transparent);
  --ohio-fill-input:   color-mix(in srgb, var(--ohio-grey) 10%, transparent);
  --ohio-border:       color-mix(in srgb, var(--ohio-grey) 16%, transparent);
  --ohio-border-soft:  color-mix(in srgb, var(--ohio-grey) 10%, transparent);

  /* Radii (Ohio canonical) */
  --ohio-radius-xs:    4px;
  --ohio-radius:       8px;
  --ohio-radius-lg:    16px;
  --ohio-radius-xl:    20px;
  --ohio-radius-pill:  999px;

  /* Buttons (Ohio canonical) */
  --ohio-btn-h:        2.75rem;
  --ohio-btn-h-sm:     2.25rem;
  --ohio-btn-h-lg:     3.25rem;
  --ohio-btn-px:       1.25rem;
  --ohio-btn-px-sm:    1rem;

  /* Spacers (Ohio scale) */
  --ohio-s-05: 0.25rem;
  --ohio-s-1:  0.5rem;
  --ohio-s-2:  0.75rem;
  --ohio-s-3:  1rem;
  --ohio-s-4:  1.25rem;
  --ohio-s-5:  1.5rem;
  --ohio-s-6:  1.75rem;
  --ohio-s-7:  2rem;
  --ohio-s-8:  2.25rem;
  --ohio-s-9:  2.5rem;

  /* Type */
  --ohio-font-title: 'DM Sans', sans-serif;
  --ohio-font-body:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ohio-text:       var(--ohio-black-light);
  --ohio-text-grey:  var(--ohio-grey);
  --ohio-fz-body:    1.025rem;
  --ohio-lh-body:    1.6;

  /* Motion (Ohio canonical) */
  --ohio-ease:       cubic-bezier(.645,.045,.355,1);
  --ohio-dur:        .35s;
  --ohio-dur-fast:   .2s;

  /* Apply at root of scope */
  background: transparent;
  color: var(--ohio-text);
  font-family: var(--ohio-font-body);
  font-size: var(--ohio-fz-body);
  line-height: var(--ohio-lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ───────────────────────────────────────── */
.ohio-page h1, .ohio-page h2, .ohio-page h3,
.ohio-page h4, .ohio-page h5, .ohio-page h6 {
  font-family: var(--ohio-font-title);
  font-weight: 600;
  color: var(--ohio-black);
  margin: 0;
}
.ohio-page h1 {
  font-size: clamp(2.7rem, calc(4.5vw + .25rem), 4.5rem);
  letter-spacing: -0.045em; line-height: 1;
}
.ohio-page h2 {
  font-size: clamp(1.96rem, calc(3.15vw + .25rem), 3.06rem);
  letter-spacing: -0.04em;  line-height: 1.05;
}
.ohio-page h3 {
  font-size: clamp(1.5rem, calc(2.25vw + .25rem), 2.08rem);
  letter-spacing: -0.035em; line-height: 1.15;
}
.ohio-page h4 {
  font-size: clamp(1.24rem, calc(1.5vw + .25rem), 1.41rem);
  letter-spacing: -0.03em;  line-height: 1.2;
}
.ohio-page h5 {
  font-size: clamp(1.08rem, calc(1.25vw + .25rem), 1.18rem);
  letter-spacing: -0.025em; line-height: 1.3;
}
.ohio-page h6 {
  font-size: 1.025rem;
  letter-spacing: -0.02em;  line-height: 1.4;
}

/* Editorial pretitle / subtitle */
.ohio-page .ohio-pretitle {
  font-family: var(--ohio-font-title);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ohio-grey);
  margin-bottom: 6px;
}
.ohio-page .ohio-subtitle {
  color: var(--ohio-grey);
  font-size: 0.95rem;
  max-width: 60ch;
  margin: 0;
}

/* Editorial page header */
.ohio-page .ohio-header {
  padding: var(--ohio-s-8) 0 var(--ohio-s-6);
  border-bottom: 1px solid var(--ohio-border);
  margin-bottom: var(--ohio-s-7);
}
.ohio-page .ohio-header-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* ─── Buttons (Ohio canonical) ─────────────────────────── */
.ohio-page .btn,
.ohio-page .ohio-btn {
  font-family: var(--ohio-font-title) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  min-height: var(--ohio-btn-h);
  padding: 0 var(--ohio-btn-px) !important;
  border: 2px solid transparent !important;
  border-radius: var(--ohio-radius) !important;
  background: var(--ohio-dark);
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ohio-dur) var(--ohio-ease),
              color var(--ohio-dur) var(--ohio-ease),
              border-color var(--ohio-dur) var(--ohio-ease),
              box-shadow var(--ohio-dur) var(--ohio-ease),
              transform var(--ohio-dur-fast) var(--ohio-ease);
  letter-spacing: -0.005em;
}
.ohio-page .btn:hover, .ohio-page .ohio-btn:hover {
  background: var(--ohio-primary);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(9,97,233,0.22);
}
.ohio-page .btn:active, .ohio-page .ohio-btn:active { transform: translateY(0); }

/* Size variants */
.ohio-page .btn-sm {
  min-height: var(--ohio-btn-h-sm) !important;
  padding: 0 var(--ohio-btn-px-sm) !important;
  font-size: 0.85rem !important;
}
.ohio-page .btn-lg {
  min-height: var(--ohio-btn-h-lg) !important;
  padding: 0 1.5rem !important;
  font-size: 1rem !important;
}
.ohio-page .btn-icon {
  width: var(--ohio-btn-h) !important;
  min-width: var(--ohio-btn-h);
  padding: 0 !important;
}
.ohio-page .btn-sm.btn-icon { width: var(--ohio-btn-h-sm) !important; }

/* Primary (Brandeis Blue) */
.ohio-page .btn-primary {
  background: var(--ohio-primary) !important;
  border-color: var(--ohio-primary) !important;
  color: #fff !important;
}
.ohio-page .btn-primary:hover {
  background: var(--ohio-primary-dark) !important;
  border-color: var(--ohio-primary-dark) !important;
  box-shadow: 0 6px 18px rgba(9,97,233,0.30);
}

/* Outline */
.ohio-page .btn-outline-primary {
  background: transparent !important;
  border-color: var(--ohio-primary) !important;
  color: var(--ohio-primary) !important;
}
.ohio-page .btn-outline-primary:hover {
  background: var(--ohio-primary) !important;
  color: #fff !important;
}
.ohio-page .btn-outline-secondary {
  background: transparent !important;
  border-color: var(--ohio-black) !important;
  color: var(--ohio-black) !important;
}
.ohio-page .btn-outline-secondary:hover {
  background: var(--ohio-black) !important;
  color: #fff !important;
}
.ohio-page .btn-outline-success { border-color: var(--ohio-success) !important; color: var(--ohio-success) !important; background: transparent !important; }
.ohio-page .btn-outline-success:hover { background: var(--ohio-success) !important; color: #fff !important; }
.ohio-page .btn-outline-danger  { border-color: var(--ohio-danger) !important; color: var(--ohio-danger) !important; background: transparent !important; }
.ohio-page .btn-outline-danger:hover { background: var(--ohio-danger) !important; color: #fff !important; }

/* Ghost (transparent, color only) */
.ohio-page .btn-ghost-primary, .ohio-page .btn-ghost-secondary, .ohio-page .btn-ghost-danger {
  background: transparent !important;
  border-color: transparent !important;
}
.ohio-page .btn-ghost-primary { color: var(--ohio-primary) !important; }
.ohio-page .btn-ghost-primary:hover { background: color-mix(in srgb, var(--ohio-primary) 10%, transparent) !important; transform: none; box-shadow: none; }
.ohio-page .btn-ghost-secondary { color: var(--ohio-grey) !important; }
.ohio-page .btn-ghost-secondary:hover { background: var(--ohio-fill) !important; transform: none; box-shadow: none; color: var(--ohio-black) !important; }
.ohio-page .btn-ghost-danger { color: var(--ohio-danger) !important; }
.ohio-page .btn-ghost-danger:hover { background: color-mix(in srgb, var(--ohio-danger) 10%, transparent) !important; transform: none; box-shadow: none; }

.ohio-page .btn-success { background: var(--ohio-success) !important; border-color: var(--ohio-success) !important; color: #fff !important; }
.ohio-page .btn-danger  { background: var(--ohio-danger)  !important; border-color: var(--ohio-danger)  !important; color: #fff !important; }
.ohio-page .btn-warning { background: var(--ohio-warning) !important; border-color: var(--ohio-warning) !important; color: #fff !important; }

/* Restore btn-group joining (outer corners pill-flat per radius) */
.ohio-page .btn-group .btn { border-radius: 0 !important; }
.ohio-page .btn-group > .btn:first-child { border-top-left-radius: var(--ohio-radius) !important; border-bottom-left-radius: var(--ohio-radius) !important; }
.ohio-page .btn-group > .btn:last-child  { border-top-right-radius: var(--ohio-radius) !important; border-bottom-right-radius: var(--ohio-radius) !important; }
.ohio-page .btn-group > .btn:not(:last-child) { border-right: 0 !important; }

/* ─── Forms (Ohio canonical — FILLED default, not outlined) ─ */
.ohio-page .form-control,
.ohio-page .form-select,
.ohio-page input[type="text"],
.ohio-page input[type="email"],
.ohio-page input[type="number"],
.ohio-page input[type="date"],
.ohio-page input[type="search"],
.ohio-page input[type="tel"],
.ohio-page input[type="password"],
.ohio-page input[type="url"],
.ohio-page textarea,
.ohio-page select {
  background: var(--ohio-fill-input) !important;
  border: 0 !important;
  color: var(--ohio-black) !important;
  min-height: var(--ohio-btn-h);
  padding: 0 var(--ohio-s-3) !important;
  font-family: var(--ohio-font-body) !important;
  font-size: 0.96rem !important;
  border-radius: var(--ohio-radius) !important;
  transition: background-color var(--ohio-dur) var(--ohio-ease),
              box-shadow var(--ohio-dur) var(--ohio-ease);
  box-shadow: none !important;
}
.ohio-page textarea {
  min-height: 80px;
  padding: 0.75rem var(--ohio-s-3) !important;
}
.ohio-page .form-control:focus,
.ohio-page .form-select:focus,
.ohio-page input:focus,
.ohio-page textarea:focus,
.ohio-page select:focus {
  background: var(--ohio-fill-strong) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ohio-primary) 18%, transparent) !important;
}
.ohio-page .form-control::placeholder,
.ohio-page input::placeholder,
.ohio-page textarea::placeholder { color: var(--ohio-placeholder) !important; }

.ohio-page .form-control-sm, .ohio-page .form-select-sm,
.ohio-page input.form-control-sm, .ohio-page select.form-select-sm {
  min-height: var(--ohio-btn-h-sm) !important;
  padding: 0 var(--ohio-s-2) !important;
  font-size: 0.85rem !important;
  border-radius: var(--ohio-radius-xs) !important;
}

.ohio-page .form-label {
  font-family: var(--ohio-font-title);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ohio-grey);
  margin-bottom: 6px;
}
.ohio-page .input-group-text {
  background: var(--ohio-fill);
  border: 0;
  color: var(--ohio-grey);
  font-weight: 600;
  border-radius: var(--ohio-radius);
}

/* Outlined variant (opt-in) — Ohio's `-outlined` style */
.ohio-page .form-control.-outlined,
.ohio-page .form-select.-outlined {
  background: transparent !important;
  border: 2px solid var(--ohio-border) !important;
}
.ohio-page .form-control.-outlined:focus { border-color: var(--ohio-primary) !important; }

/* ─── Cards ─────────────────────────────────────────────── */
.ohio-page .card,
.ohio-page .ohio-card {
  background: #FFFFFF !important;
  border: 1px solid var(--ohio-border) !important;
  border-radius: var(--ohio-radius-lg) !important;
  box-shadow: none !important;
  color: var(--ohio-text);
  transition: box-shadow var(--ohio-dur) var(--ohio-ease),
              border-color var(--ohio-dur-fast) var(--ohio-ease),
              transform var(--ohio-dur-fast) var(--ohio-ease);
}
.ohio-page .card:hover { box-shadow: 0 8px 28px rgba(17,16,19,0.08) !important; }
.ohio-page .card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--ohio-border) !important;
  padding: 18px 24px;
}
.ohio-page .card-footer {
  background: transparent !important;
  border-top: 1px solid var(--ohio-border) !important;
  padding: 18px 24px;
}
.ohio-page .card-body  { padding: 24px; }
.ohio-page .card-title {
  font-family: var(--ohio-font-title) !important;
  font-weight: 600 !important;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ohio-black);
  margin: 0;
}

/* ─── KPI cards (editorial) ────────────────────────────── */
.ohio-page .ohio-kpi { position: relative; }
.ohio-page .ohio-kpi .ohio-kpi-label {
  font-family: var(--ohio-font-title);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ohio-grey);
  font-weight: 600;
  margin-bottom: 8px;
}
.ohio-page .ohio-kpi .ohio-kpi-value {
  font-family: var(--ohio-font-title);
  font-size: clamp(1.5rem, calc(1.6vw + .5rem), 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ohio-black);
  font-feature-settings: 'tnum' 1;
  word-break: break-word;
}
.ohio-page .ohio-kpi .ohio-kpi-hint { font-size: 12px; color: var(--ohio-grey); margin-top: 6px; }
.ohio-page .ohio-kpi-value.text-success { color: var(--ohio-success) !important; }
.ohio-page .ohio-kpi-value.text-danger  { color: var(--ohio-danger)  !important; }
.ohio-page .ohio-kpi-value.text-warning { color: var(--ohio-warning) !important; }
.ohio-page .ohio-kpi-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.ohio-page .ohio-kpi-icon.is-primary { background: color-mix(in srgb, var(--ohio-primary) 10%, transparent); color: var(--ohio-primary); }
.ohio-page .ohio-kpi-icon.is-success { background: color-mix(in srgb, var(--ohio-success) 14%, transparent); color: var(--ohio-success); }
.ohio-page .ohio-kpi-icon.is-danger  { background: color-mix(in srgb, var(--ohio-danger)  10%, transparent); color: var(--ohio-danger);  }
.ohio-page .ohio-kpi-icon.is-warning { background: color-mix(in srgb, var(--ohio-warning) 16%, transparent); color: var(--ohio-warning); }
.ohio-page .ohio-kpi-icon.is-accent  { background: color-mix(in srgb, var(--ohio-accent)  22%, transparent); color: #6e9000; }

/* ─── Badges ────────────────────────────────────────────── */
.ohio-page .badge,
.ohio-page .ohio-badge {
  font-family: var(--ohio-font-title);
  font-weight: 600;
  border-radius: var(--ohio-radius-pill);
  padding: 4px 10px;
  letter-spacing: 0.02em;
  font-size: 11px;
}
.ohio-page .badge.bg-success, .ohio-page .ohio-badge.is-success { background: var(--ohio-success) !important; color: #fff !important; }
.ohio-page .badge.bg-danger,  .ohio-page .ohio-badge.is-danger  { background: var(--ohio-danger)  !important; color: #fff !important; }
.ohio-page .badge.bg-warning, .ohio-page .ohio-badge.is-warning { background: var(--ohio-warning) !important; color: #fff !important; }
.ohio-page .badge.bg-primary, .ohio-page .ohio-badge.is-primary { background: var(--ohio-primary) !important; color: #fff !important; }

/* Soft tints (Tabler -lt suffix) — text uses --ohio-ink-*, never the fill colour */
.ohio-page .badge.bg-blue-lt    { background: color-mix(in srgb, var(--ohio-primary) 14%, transparent) !important; color: var(--ohio-ink-primary) !important; }
.ohio-page .badge.bg-green-lt   { background: color-mix(in srgb, var(--ohio-success) 14%, transparent) !important; color: var(--ohio-ink-success) !important; }
.ohio-page .badge.bg-yellow-lt  { background: color-mix(in srgb, var(--ohio-warning) 16%, transparent) !important; color: var(--ohio-ink-warning) !important; }
.ohio-page .badge.bg-red-lt     { background: color-mix(in srgb, var(--ohio-danger)  10%, transparent) !important; color: var(--ohio-ink-danger) !important; }
.ohio-page .badge.bg-purple-lt  { background: color-mix(in srgb, #7646DD 16%, transparent) !important; color: #4c2d95 !important; }
.ohio-page .badge.bg-secondary-lt { background: var(--ohio-fill-strong) !important; color: var(--ohio-grey) !important; }
.ohio-page .badge.bg-lime-lt    { background: color-mix(in srgb, var(--ohio-accent) 22%, transparent) !important; color: #4a6200 !important; }

/* ─── Tables ────────────────────────────────────────────── */
.ohio-page .table { color: var(--ohio-text) !important; }
.ohio-page .table > :not(caption) > * > * {
  background: transparent !important;
  border-bottom-color: var(--ohio-border) !important;
  color: var(--ohio-text) !important;
}
.ohio-page .table thead th {
  font-family: var(--ohio-font-title);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ohio-grey);
  background: var(--ohio-fill) !important;
  border-bottom: 1px solid var(--ohio-border) !important;
  padding: 14px 16px;
}
.ohio-page .table tbody td { padding: 14px 16px; }
.ohio-page .table tbody tr:hover { background: color-mix(in srgb, var(--ohio-primary) 4%, transparent) !important; }
.ohio-page .table .fw-bold, .ohio-page .table .fw-medium { font-family: var(--ohio-font-title); }

/* ─── Radio-card pattern (used in Direction toggle etc.) ── */
.ohio-page .ohio-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
}
.ohio-page .ohio-radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ohio-border);
  border-radius: var(--ohio-radius-lg);
  background: #FFFFFF;
  cursor: pointer;
  margin: 0;
  min-width: 0;
  transition: border-color var(--ohio-dur-fast) var(--ohio-ease),
              background-color var(--ohio-dur-fast) var(--ohio-ease),
              box-shadow var(--ohio-dur-fast) var(--ohio-ease),
              transform var(--ohio-dur-fast) var(--ohio-ease);
  user-select: none;
}
.ohio-page .ohio-radio-card:hover { border-color: var(--ohio-black); transform: translateY(-1px); }
.ohio-page .ohio-radio-card .icon-tile {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
  background: var(--ohio-fill);
  color: var(--ohio-black);
}
.ohio-page .ohio-radio-card .label-block { min-width: 0; }
.ohio-page .ohio-radio-card .title {
  font-family: var(--ohio-font-title);
  font-weight: 600; font-size: 0.95rem;
  color: var(--ohio-black); line-height: 1.2;
}
.ohio-page .ohio-radio-card .sub {
  font-size: 11px; color: var(--ohio-grey);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 500; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ohio-page .btn-check:checked + .ohio-radio-card.is-credit {
  border-color: var(--ohio-success);
  background: color-mix(in srgb, var(--ohio-success) 6%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ohio-success) 14%, transparent);
}
.ohio-page .btn-check:checked + .ohio-radio-card.is-debit {
  border-color: var(--ohio-danger);
  background: color-mix(in srgb, var(--ohio-danger) 5%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ohio-danger) 12%, transparent);
}
.ohio-page .btn-check:checked + .ohio-radio-card.is-primary {
  border-color: var(--ohio-primary);
  background: color-mix(in srgb, var(--ohio-primary) 5%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ohio-primary) 14%, transparent);
}
.ohio-page .ohio-radio-card.is-credit .icon-tile  { background: color-mix(in srgb, var(--ohio-success) 14%, transparent); color: var(--ohio-success); }
.ohio-page .ohio-radio-card.is-debit  .icon-tile  { background: color-mix(in srgb, var(--ohio-danger)  10%, transparent); color: var(--ohio-danger);  }
.ohio-page .ohio-radio-card.is-primary .icon-tile { background: color-mix(in srgb, var(--ohio-primary) 10%, transparent); color: var(--ohio-primary); }
.ohio-page .btn-check:focus-visible + .ohio-radio-card {
  outline: 2px solid var(--ohio-primary);
  outline-offset: 2px;
}

/* ─── Editorial bordered "stat tile" (share-preview-like) ── */
.ohio-page .ohio-stat-tile {
  background: var(--ohio-fill);
  border: 1px solid var(--ohio-border);
  border-radius: var(--ohio-radius-lg);
  padding: 14px 18px;
}
.ohio-page .ohio-stat-tile .label {
  font-family: var(--ohio-font-title);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ohio-grey);
  margin-bottom: 4px;
}
.ohio-page .ohio-stat-tile .value {
  font-family: var(--ohio-font-title);
  font-weight: 700; font-size: 1.4rem;
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum' 1;
}
.ohio-page .ohio-stat-tile .value.is-success { color: var(--ohio-success); }
.ohio-page .ohio-stat-tile .value.is-primary { color: var(--ohio-primary); }
.ohio-page .ohio-stat-tile .value.is-danger  { color: var(--ohio-danger);  }
.ohio-page .ohio-stat-tile .divider { border-right: 1px solid var(--ohio-border); }

/* ─── Modal ─────────────────────────────────────────────── */
.ohio-page .modal-content,
.modal.ohio-modal .modal-content {
  border-radius: var(--ohio-radius-xl) !important;
  border: 1px solid var(--ohio-border) !important;
  box-shadow: 0 20px 60px rgba(17,16,19,0.18) !important;
}
.ohio-page .modal-title, .modal.ohio-modal .modal-title {
  font-family: var(--ohio-font-title) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ohio-black);
}
.ohio-page .modal-header { border-bottom-color: var(--ohio-border) !important; padding: 20px 24px; }
.ohio-page .modal-body   { padding: 24px; }
.ohio-page .modal-footer { border-top-color: var(--ohio-border) !important; padding: 16px 24px; background: var(--ohio-fill) !important; border-radius: 0 0 var(--ohio-radius-xl) var(--ohio-radius-xl); }

/* ─── Empty state ───────────────────────────────────────── */
.ohio-page .empty-title {
  font-family: var(--ohio-font-title);
  font-weight: 600;
  color: var(--ohio-black);
}
.ohio-page .empty-subtitle { color: var(--ohio-grey); }

/* ─── Text utilities ────────────────────────────────────── */
.ohio-page .text-muted    { color: var(--ohio-grey) !important; }
.ohio-page .text-primary  { color: var(--ohio-primary) !important; }
.ohio-page .text-success  { color: var(--ohio-success) !important; }
.ohio-page .text-warning  { color: var(--ohio-warning) !important; }
.ohio-page .text-danger   { color: var(--ohio-danger)  !important; }
.ohio-page .text-accent   { color: #6e9000 !important; }

/* ─── Pill select (used for partner / context selectors) ── */
.ohio-page .ohio-pill-select {
  min-width: 240px;
  border-radius: var(--ohio-radius-pill) !important;
  padding-left: 18px !important;
  padding-right: 36px !important;
  background-color: var(--ohio-fill) !important;
  border: 0 !important;
  font-family: var(--ohio-font-title);
  font-weight: 500;
}

/* ─── Responsive tweaks ─────────────────────────────────── */
@media (max-width: 768px) {
  .ohio-page .ohio-header { padding: 24px 0 16px; margin-bottom: 16px; }
  .ohio-page .ohio-pill-select { min-width: 100%; }
}

/* ============================================================
   MOTION SYSTEM — extracted verbatim from Ohio v3.7.1
   Signature animations: intro reveal, fade directions, spinner,
   skeleton shimmer. Respects prefers-reduced-motion.
   ============================================================ */

/* Signature intro reveal — y +3.25rem with fade */
@keyframes ohio-slide-up {
  from { transform: translateY(3.25rem); opacity: 0; }
  to   { transform: translateY(0);        opacity: 1; }
}

/* Directional micro-reveals (2rem translate) */
@keyframes ohio-fade-up    { from { opacity: 0; transform: translate3d(0,  2rem, 0); } to { opacity: 1; transform: none; } }
@keyframes ohio-fade-down  { from { opacity: 0; transform: translate3d(0, -2rem, 0); } to { opacity: 1; transform: none; } }
@keyframes ohio-fade-left  { from { opacity: 0; transform: translate3d( 2rem, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes ohio-fade-right { from { opacity: 0; transform: translate3d(-2rem, 0, 0); } to { opacity: 1; transform: none; } }

/* Spinner (SVG circle) */
@keyframes ohio-spin       { 100% { transform: rotate(360deg); } }
@keyframes ohio-spin-dash {
  0%   { stroke-dasharray: 1, 150;  stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Skeleton shimmer */
@keyframes ohio-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* Reveal helpers — wrap any container, children stagger automatically */
.ohio-page .ohio-reveal > *,
.ohio-page [data-ohio-reveal] > * {
  opacity: 0;
  will-change: transform, opacity;
  animation-name: ohio-slide-up;
  animation-duration: var(--ohio-dur);
  animation-timing-function: var(--ohio-ease);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}
.ohio-page .ohio-reveal > *:nth-child(1) { animation-delay: 0.05s; }
.ohio-page .ohio-reveal > *:nth-child(2) { animation-delay: 0.10s; }
.ohio-page .ohio-reveal > *:nth-child(3) { animation-delay: 0.15s; }
.ohio-page .ohio-reveal > *:nth-child(4) { animation-delay: 0.20s; }
.ohio-page .ohio-reveal > *:nth-child(5) { animation-delay: 0.25s; }
.ohio-page .ohio-reveal > *:nth-child(6) { animation-delay: 0.30s; }
.ohio-page .ohio-reveal > *:nth-child(7) { animation-delay: 0.35s; }
.ohio-page .ohio-reveal > *:nth-child(8) { animation-delay: 0.40s; }

/* Direction modifiers */
.ohio-page .ohio-fade-up    { animation-name: ohio-fade-up; }
.ohio-page .ohio-fade-down  { animation-name: ohio-fade-down; }
.ohio-page .ohio-fade-left  { animation-name: ohio-fade-left; }
.ohio-page .ohio-fade-right { animation-name: ohio-fade-right; }

/* Card hover (Ohio signature lift) */
.ohio-page .ohio-card-hover,
.ohio-page .card.ohio-card-hover {
  transition: transform var(--ohio-dur-fast) var(--ohio-ease),
              box-shadow var(--ohio-dur) var(--ohio-ease),
              border-color var(--ohio-dur-fast) var(--ohio-ease);
  cursor: pointer;
}
.ohio-page .ohio-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(17,16,19,0.10) !important;
  border-color: var(--ohio-border) !important;
}
.ohio-page .ohio-card-hover:active { transform: translateY(0); }

/* Image hover scale (Ohio signature 1.06× zoom on parent hover) */
.ohio-page .ohio-img-zoom { overflow: hidden; }
.ohio-page .ohio-img-zoom > img,
.ohio-page .ohio-img-zoom > .ohio-img-inner {
  transition: transform var(--ohio-dur) var(--ohio-ease);
  display: block; width: 100%;
}
.ohio-page .ohio-img-zoom:hover > img,
.ohio-page .ohio-img-zoom:hover > .ohio-img-inner {
  transform: scale3d(1.06, 1.06, 1.06);
}

/* ─── Loading states ─────────────────────────────────────── */

/* Spinner (use with inline SVG) */
.ohio-spinner {
  display: inline-block;
  width: 1.5rem; height: 1.5rem;
  animation: ohio-spin 2s linear infinite;
}
.ohio-spinner-lg { width: 2.5rem; height: 2.5rem; }
.ohio-spinner-sm { width: 1rem;   height: 1rem; }
.ohio-spinner .path {
  stroke: var(--ohio-primary, currentColor);
  stroke-linecap: round;
  stroke-width: 4;
  fill: none;
  animation: ohio-spin-dash 1.5s ease-in-out infinite;
}

/* Skeleton — content placeholders */
.ohio-skeleton {
  position: relative;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ohio-grey, #888) 8%, transparent) 0%,
    color-mix(in srgb, var(--ohio-grey, #888) 14%, transparent) 50%,
    color-mix(in srgb, var(--ohio-grey, #888) 8%, transparent) 100%);
  background-size: 200% 100%;
  animation: ohio-shimmer 1.4s linear infinite;
  border-radius: var(--ohio-radius, 8px);
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}
.ohio-skeleton-line   { height: 0.9em; margin: 0.5em 0; }
.ohio-skeleton-line.is-short  { width: 40%; }
.ohio-skeleton-line.is-medium { width: 70%; }
.ohio-skeleton-title  { height: 1.5em; margin-bottom: 0.5em; width: 60%; }
.ohio-skeleton-card   { height: 8rem; border-radius: var(--ohio-radius-lg, 16px); }

/* Page-level preloader overlay (toggle .is-loading on .ohio-page) */
.ohio-page .ohio-preloader-overlay {
  position: fixed; inset: 0;
  background: var(--ohio-paper, #F8FBFF);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--ohio-dur) var(--ohio-ease);
}
.ohio-page.is-loading .ohio-preloader-overlay {
  opacity: 1; pointer-events: auto;
}

/* Reduced motion — kill all animations */
@media (prefers-reduced-motion: reduce) {
  .ohio-page .ohio-reveal > *,
  .ohio-page [data-ohio-reveal] > *,
  .ohio-page .ohio-fade-up,
  .ohio-page .ohio-fade-down,
  .ohio-page .ohio-fade-left,
  .ohio-page .ohio-fade-right { animation: none; opacity: 1; transform: none; }
  .ohio-page .ohio-card-hover { transition: none; }
  .ohio-page .ohio-card-hover:hover { transform: none; }
  .ohio-page .ohio-img-zoom:hover > img,
  .ohio-page .ohio-img-zoom:hover > .ohio-img-inner { transform: none; }
  .ohio-spinner, .ohio-skeleton { animation: none; }
}

/* ============================================================
   VISUAL STATUS LANGUAGE — .pm-* chips / rails / badges / dots
   Slice 1. Canonical map lives in includes/pm_status_language.php
   (PHP) and is mirrored to JS as window.PM_STATUS_LANG by layout.php.

   Deliberately UNSCOPED (not under .ohio-page): a status chip must
   read identically anywhere it appears — task card, calendar cell,
   AND the global notification dropdown which renders outside any
   .ohio-page wrapper. To survive that, the six tones are declared on
   the component roots themselves (rule_ohio_only_no_tabler #14), each
   resolving an --ohio-* token first and falling back to its on-brand
   hex when the token isn't in scope. Zero off-brand hex; zero Tabler.

   Two axes: TONE drives colour (--tone-c / --tone-ink), the Tabler
   `ti` icon drives type. Colour is never the only signal — every
   chip/badge/dot pairs colour with an icon and a text (or aria) label.
   ============================================================ */
.pm-chip, .pm-rail, .pm-badge, .pm-dot, .pm-dot-wrap, .pm-sbar {
  /* the six tone FIELDS — token first, on-brand fallback second */
  --pm-ontrack:   var(--ohio-primary, #0961E9);
  --pm-done:      var(--ohio-success, #29A366);
  --pm-attention: var(--ohio-warning, #EC8013);
  --pm-danger:    var(--ohio-danger,  #E82409);
  --pm-waiting:   var(--ohio-dark,    #384C69);
  --pm-elite:     var(--ohio-accent,  #B4E809);
  /* ── The reading half of every tone ───────────────────────────────────
     A tone field is chosen to PAINT A SHAPE. The same hex used to carry
     text, or to be read as text, is a different job with a contrast floor,
     and one hex cannot do both — the --ohio-ink-* set exists for exactly
     this reason a few hundred lines up.

     The block below used to claim "the label must always read AA" while
     handing back the FILL colour for `done` and `attention`. Measured:

       .pm-badge  white on #29A366 (done)      3.22:1   needs 4.5
       .pm-badge  white on #EC8013 (attention) 2.74:1   needs 4.5
       .pm-badge  white on #E82409 (danger)    4.48:1   needs 4.5
       .pm-cap    white on #EC8013             2.74:1   needs 3.0
       .pm-sbar-nudge  #29A366 on white        3.22:1   needs 4.5
       .pm-sbar-nudge  #EC8013 on white        2.74:1   needs 4.5
       .pm-sbar-nudge  #6e9000 on white        3.72:1   needs 4.5
       .pm-dot         #EC8013 on white        2.74:1   needs 3.0
       .pm-dot         #B4E809 on white        1.45:1   needs 3.0   ← invisible

     Nine failures across every surface that renders a status. The values
     here are the shades this design system already recorded for reading
     (--ohio-ink-*), not new invented colours, and they clear 4.95–8.73:1
     in BOTH directions — as text on white and as a field under white text.

     --pm-*        the brand field. Unchanged. Identity.
     --pm-*-solid  white (or navy, for lime) sits ON it.
     --pm-*-ink    it sits ON white.                                        */
  --pm-ontrack-solid:   #0651C2;
  --pm-done-solid:      #0C6E3F;
  --pm-attention-solid: #8A4B06;
  --pm-danger-solid:    #B71C08;
  --pm-waiting-solid:   var(--ohio-dark, #384C69);
  --pm-elite-solid:     var(--ohio-accent, #B4E809);  /* lime keeps navy ink on it */

  --pm-ontrack-ink:   #0651C2;
  --pm-done-ink:      #0C6E3F;
  --pm-attention-ink: #8A4B06;
  --pm-danger-ink:    #B71C08;
  --pm-waiting-ink:   var(--ohio-dark, #384C69);
  --pm-elite-ink:     #5C7A00;   /* lime, dark enough to be seen on white */
  --pm-hairline:  var(--ohio-border, #E6EEF9);
  --pm-body:      color-mix(in srgb, #384C69 84%, #fff);  /* calm body ink */
  --pm-font:      var(--ohio-font-title, 'DM Sans', sans-serif);
}

/* ── tone → colour assignment ──────────────────────────────────────
   Direction C "Segmented". Each tone resolves THREE props read by all
   components:
     --tone-c   = the loud tone field (the solid cap)
     --tone-ink = AA text ink on white/ghost (labels, nudge text)
     --tone-cap = ink on the SOLID cap (white for 5 tones; for lime
                  `elite` it's Police Blue for AA — lime-on-white /
                  white-on-lime is never used).
   The .pm-sbar insight surface + .pm-chip status capsule both read
   only these props — never a literal — so one swap propagates. */
.pm-chip.tone-ontrack,   .pm-rail.tone-ontrack,   .pm-badge.tone-ontrack,   .pm-dot.tone-ontrack,   .pm-sbar.tone-ontrack   { --tone-c: var(--pm-ontrack);   --tone-solid: var(--pm-ontrack-solid);   --tone-ink: var(--pm-ontrack-ink);   --tone-cap: #fff; }
.pm-chip.tone-done,      .pm-rail.tone-done,      .pm-badge.tone-done,      .pm-dot.tone-done,      .pm-sbar.tone-done      { --tone-c: var(--pm-done);   --tone-solid: var(--pm-done-solid);      --tone-ink: var(--pm-done-ink);      --tone-cap: #fff; }
.pm-chip.tone-attention, .pm-rail.tone-attention, .pm-badge.tone-attention, .pm-dot.tone-attention, .pm-sbar.tone-attention { --tone-c: var(--pm-attention);   --tone-solid: var(--pm-attention-solid); --tone-ink: var(--pm-attention-ink); --tone-cap: #fff; }
.pm-chip.tone-danger,    .pm-rail.tone-danger,    .pm-badge.tone-danger,    .pm-dot.tone-danger,    .pm-sbar.tone-danger    { --tone-c: var(--pm-danger);   --tone-solid: var(--pm-danger-solid);    --tone-ink: var(--pm-danger-ink);    --tone-cap: #fff; }
.pm-chip.tone-waiting,   .pm-rail.tone-waiting,   .pm-badge.tone-waiting,   .pm-dot.tone-waiting,   .pm-sbar.tone-waiting   { --tone-c: var(--pm-waiting);   --tone-solid: var(--pm-waiting-solid);   --tone-ink: var(--pm-waiting-ink);   --tone-cap: #fff; }
.pm-chip.tone-elite,     .pm-rail.tone-elite,     .pm-badge.tone-elite,     .pm-dot.tone-elite,     .pm-sbar.tone-elite     { --tone-c: var(--pm-elite);   --tone-solid: var(--pm-elite-solid);     --tone-ink: var(--pm-elite-ink);     --tone-cap: var(--pm-waiting); }

/* ── Chip · STATUS mode — two-tone "Segmented" capsule ───────────────
   A solid tone CAP (white icon on the full tone colour) fused to a
   calm white label cell. One rounded capsule, two cells, overflow
   hidden. The PHP helper wraps the icon in .pm-cap and the label in
   .pm-chip-label; a plain `> .ti` (legacy callers) falls back to a
   small inline cap so nothing renders bare. */
.pm-chip {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--pm-font);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--tone-c) 30%, var(--pm-hairline));
  vertical-align: middle;
}
.pm-chip > .pm-cap {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 24px;
  flex-shrink: 0;
  /* --tone-solid, not --tone-c: a white glyph sits here, and on the raw
     attention field that is 2.74:1 — under the 3:1 an icon needs. One rule for
     all six tones rather than patching the one that fails, so a future change
     to a brand hex cannot silently reopen it. */
  background: var(--tone-solid, var(--tone-c));
  color: var(--tone-cap);
}
.pm-chip > .pm-cap > .ti { font-size: 14px; line-height: 1; }
.pm-chip > .pm-chip-label {
  display: flex;
  align-items: center;
  padding: 5px 11px 5px 9px;
  color: var(--pm-body);
  letter-spacing: -0.005em;
}
/* legacy: a bare `> .ti` with no .pm-cap wrapper → inline tone cap */
.pm-chip > .ti {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 24px;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  background: var(--tone-solid, var(--tone-c));
  color: var(--tone-cap);
}
.pm-chip.pm-sm { font-size: 11px; }
.pm-chip.pm-sm > .pm-cap, .pm-chip.pm-sm > .ti { width: 20px; }
.pm-chip.pm-sm > .pm-cap > .ti { font-size: 12px; }
.pm-chip.pm-sm > .ti { font-size: 12px; }
.pm-chip.pm-sm > .pm-chip-label { padding: 3px 9px 3px 7px; }

/* ── Rail: RETIRED. The rejected left-rail look folds into the
   Segmented capsule so it disappears everywhere at once. ── */
.pm-rail {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--pm-font);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--tone-c) 30%, var(--pm-hairline));
  color: var(--pm-body);
  padding: 5px 11px;
}

/* ── Badge: solid filled pill for dense tables / counts ── */
.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--pm-font);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--tone-cap);
  /* 11px/600 white text — this needs the full 4.5:1 of normal text, and on the
     raw fields it was 3.22 (done), 2.74 (attention) and 4.48 (danger). */
  background: var(--tone-solid, var(--tone-c));
  border: 1px solid transparent;
  vertical-align: middle;
}
.pm-badge > .ti { font-size: 13px; line-height: 1; flex-shrink: 0; }

/* ── Dot: tone-coloured marker for ultra-dense surfaces ── */
.pm-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  /* A 9px dot carries its meaning in colour alone — the aria-label serves a
     screen reader, not a sighted person with low vision — so its SHAPE has to
     clear 3:1 against the page. The raw fields do not: attention 2.74:1, elite
     1.45:1, and a lime dot on white is in practice not there at all.
     
     The fill stays the brand field, because the dot IS the tone — the demo page
     scales this very class to 40px as the palette swatch and prints the hex
     underneath it, so recolouring the fill would make that card lie. The
     contrast comes from a ring in the tone's own reading ink instead: the edge
     is what makes the shape findable, and identity is left alone. */
  background: var(--tone-c);
  box-shadow: inset 0 0 0 1.5px var(--tone-ink, var(--tone-c));
  flex-shrink: 0;
  vertical-align: middle;
}
.pm-dot-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pm-font);
  font-weight: 600;
  font-size: 12px;
  color: var(--ohio-text, #1c1b1e);
}
.pm-dot-wrap .pm-dot-label { line-height: 1.2; }

/* ── INSIGHT mode — segmented bar: tone cap | sentence | nudge cell ──
   The home Pulse and any "one calm read" surface. A 54px solid tone
   cap leads, the sentence rides a calm white body, and the optional
   ability-nudge sits in its own cell divided off by a hairline. */
.pm-sbar {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pm-hairline);
  box-shadow: 0 1px 0 rgba(56,76,105,.03);
  font-family: var(--pm-font);
}
.pm-sbar > .pm-cap {
  display: grid;
  place-items: center;
  width: 54px;
  flex-shrink: 0;
  /* Same rule as the chip cap, and it has to be the same rule: a white 24px
     glyph on the raw attention field is 2.74:1, under the 3:1 an icon needs.
     "white sits on --tone-solid, always" is one invariant to remember and one
     line to check; two nearly-identical cap rules with different sources is how
     the fix lands on one of them and not the other. */
  background: var(--tone-solid, var(--tone-c));
  color: var(--tone-cap);
}
.pm-sbar > .pm-cap > .ti { font-size: 24px; line-height: 1; }
.pm-sbar-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  min-width: 0;
  flex: 1;
}
.pm-sbar-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pm-body);
  font-weight: 500;
  flex: 1;
  min-width: 0;
}
.pm-sbar-line b { font-weight: 700; color: var(--ohio-black-light, #1c1b1e); }
.pm-sbar-nudge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-left: 16px;
  border-left: 1px solid var(--pm-hairline);
  color: var(--tone-ink);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.pm-sbar-nudge > .ti { font-size: 16px; line-height: 1; }

/* ── Interactive affordances (when a chip/rail is a link/button) ── */
a.pm-chip, button.pm-chip, a.pm-rail {
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--ohio-dur-fast, .2s) var(--ohio-ease, ease),
              box-shadow var(--ohio-dur-fast, .2s) var(--ohio-ease, ease);
}
a.pm-chip:hover, button.pm-chip:hover, a.pm-rail:hover {
  border-color: color-mix(in srgb, var(--tone-c) 55%, var(--pm-hairline));
}
a.pm-chip:focus-visible, button.pm-chip:focus-visible, a.pm-rail:focus-visible {
  outline: 2px solid var(--tone-c);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .pm-sbar { transition: transform .2s var(--ohio-ease, ease), box-shadow .2s var(--ohio-ease, ease); }
  a.pm-sbar:hover, .pm-sbar.is-hoverable:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -16px rgba(56,76,105,.5); }
}
@media (prefers-reduced-motion: reduce) {
  a.pm-chip, button.pm-chip, a.pm-rail, .pm-sbar { transition: none; }
}

/* phone — the insight body stacks; the nudge drops its divider/wraps */
@media (max-width: 430px) {
  .pm-sbar-body { flex-direction: column; align-items: flex-start; gap: 9px; padding: 13px 15px; }
  .pm-sbar-nudge { padding-left: 0; border-left: none; white-space: normal; }
  .pm-sbar-line { font-size: 14.5px; }
}

/* ── Tom Select lives INSIDE a field we have already painted ───────────────
   The .ohio-page input rule above fills every input with --ohio-fill-input,
   using !important. Tom Select replaces a <select> with its own control and
   puts a real <input> inside it for typing — so that rule paints a second,
   grey box inside the first one. It shows up as a grey pill sitting next to
   the selected value in every Ohio page that has a searchable select.
   Same specificity as the rule above, declared after it, so it wins. */
.ohio-page .ts-control > input,
.ohio-page .ts-dropdown-content input,
.ohio-page .ts-dropdown input{
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  min-width:0 !important;
  box-shadow:none !important;
}
