/* ═══════════════════════════════════════════════════════════════════════════
   Side navigation — "Airy Light" skin (owner pick, 6 Oct 2026; option D of the mockup
   https://claude.ai/artifact/DumwG1LVohknXWhFGTekKV, built from the Financo reference).

   LOOK AND FEEL ONLY. Structure, sizes, items, counts, states and behaviour stay exactly as
   public/js/dual-pane-sidebar.js injects them; this file only repaints. It is linked from
   index.html BEFORE the sidebar's runtime-injected <style>, so every selector carries
   `html body` to outrank those single-class rules without !important (one exception: the
   section caption, whose colour the JS writes inline).

   The recipe: white ground, one hairline on the right edge and above the footer, rows with
   no chrome at rest, generous vertical air, light grey captions, a thin tree line under the
   open group where the screen you are on is simply bold with a short dark tick. Counts are
   small brand-navy badges (one blue only). The only brand colour on the panel is that badge.

   Sibling skin: dual-pane-navy.css (option B). Link exactly one of the two.
   ═══════════════════════════════════════════════════════════════════════════ */

html body .ct-dp-secondary,
html body .ct-dp-rail {
  --ground: #ffffff;
  --hair: #eef0f4;
  --ink: #0f172a;        /* open / current / selected */
  --text: #475569;       /* rows at rest */
  --sub: #94a3b8;        /* sub-screens at rest */
  --cap: #a3a9b7;        /* captions, chevrons, counts' digits, toggles */
  --wash: #f8fafc;       /* hover */
  --badge: #274186;      /* the one blue: count badges */
  --tree: #e2e8f0;
}

/* ── Panel ── */
html body .ct-dp-secondary { background: var(--ground); border-right: 1px solid var(--hair); color: var(--ink); }
html body .ct-dp-secondary-header-row { padding: 16px 10px 8px 18px; }
html body .ct-dp-secondary-header { color: var(--cap); font-size: 11px; letter-spacing: .06em; }
html body .ct-dp-secondary-toggle { border-color: var(--hair); color: var(--cap); }
html body .ct-dp-secondary-toggle:hover { background: var(--wash); color: var(--text); border-color: #e2e8f0; }
html body .ct-dp-secondary-list { padding: 4px 12px 16px; scrollbar-width: thin; scrollbar-color: #e2e8f0 transparent; }

/* ── Accordion layout ── */
html body .ct-dp-acc-sec {
  padding: 18px 6px 8px; font-size: 11px; font-weight: 500; letter-spacing: .02em;
  text-transform: none; color: var(--cap) !important;
}
html body .ct-dp-acc-sec:first-child { padding-top: 6px; }
html body .ct-dp-acc {
  padding: 10px 6px; margin: 0; border-radius: 8px; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--text); border-color: transparent;
}
html body .ct-dp-acc:hover { background: var(--wash); border-color: transparent; color: var(--ink); }
html body .ct-dp-acc-icon { opacity: 1; color: #64748b; }
html body .ct-dp-acc-icon svg { width: 17px; height: 17px; stroke-width: 1.75; }   /* one stroke everywhere (review §2.7) */
html body .ct-dp-acc.open { background: transparent; border-color: transparent; color: var(--ink); font-weight: 600; }
html body .ct-dp-acc.open .ct-dp-acc-icon,
html body .ct-dp-acc.current .ct-dp-acc-icon,
html body .ct-dp-acc:hover .ct-dp-acc-icon { color: var(--ink); }
/* The group that holds the screen you are on gets the soft brand fill — both reference products
   mark the active item with a tinted pill, and bold alone is invisible from a metre away. The
   sub-screen below keeps its bold label and dark tick: two signals, one blue. (review §2.7) */
html body .ct-dp-acc.current { background: var(--badge-soft, #e9eef8); color: var(--badge); font-weight: 600; }
html body .ct-dp-acc.current:hover { background: var(--badge-soft, #e9eef8); color: var(--badge); }
html body .ct-dp-acc.current .ct-dp-acc-icon, html body .ct-dp-acc.current:hover .ct-dp-acc-icon { color: var(--badge); }
html body .ct-dp-acc.current .ct-dp-acc-car { color: var(--badge); }
html body .ct-dp-acc.current::before { display: none; }
html body .ct-dp-acc-n {
  background: var(--badge); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
html body .ct-dp-acc-car { color: var(--cap); }
html body .ct-dp-acc.open .ct-dp-acc-car { color: var(--text); }
html body .ct-dp-acc-body { padding: 0 0 4px 0; }

html body .ct-dp-subitems { padding: 2px 0 6px; margin: 0 0 0 20px; position: relative; }
html body .ct-dp-subitems::before { left: 0; top: 4px; bottom: 10px; width: 1px; background: var(--tree); }
html body .ct-dp-subitem {
  padding: 7px 8px 7px 24px; margin: 0; border-radius: 6px; font-size: 13px; color: var(--sub); position: relative;
}
html body .ct-dp-subitem::after { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--tree); }
html body .ct-dp-subitem:hover { background: transparent; color: var(--ink); }
html body .ct-dp-subitem.active { background: transparent; color: var(--ink); font-weight: 700; }
html body .ct-dp-subitem.active::after { width: 14px; height: 2px; background: var(--ink); left: -1px; }
html body .ct-dp-subitem-icon { opacity: .8; }
html body .ct-dp-subgroup { color: var(--cap); text-transform: none; letter-spacing: .02em; font-size: 11px; font-weight: 500; }

/* ── The screens under an open group: the accordion renders them as .ct-dp-item rows
      inside .ct-dp-acc-body. They hang off a 1px tree line with a tick per row; the one
      you are on is bold near-black with a 2px dark tick. No fill (option D). ── */
html body .ct-dp-acc-body { position: relative; margin: 0 0 4px 22px; padding: 2px 0 6px 0; }
html body .ct-dp-acc-body::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 10px; width: 1px; background: var(--tree); }
html body .ct-dp-acc-body .ct-dp-item {
  position: relative; margin: 0; padding: 7px 8px 7px 22px; border-radius: 6px; gap: 8px;
  background: transparent; border-color: transparent; color: var(--sub); box-shadow: none; font-size: 13px;
}
html body .ct-dp-acc-body .ct-dp-item::after { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--tree); }
/* icons stay (owner, 6 Oct 2026) — smaller and quiet, dark with the label when current */
html body .ct-dp-acc-body .ct-dp-item .ct-dp-item-icon { opacity: .75; }
html body .ct-dp-acc-body .ct-dp-item .ct-dp-item-icon svg { width: 15px !important; height: 15px !important; stroke-width: 1.75; }
html body .ct-dp-acc-body .ct-dp-item.active .ct-dp-item-icon,
html body .ct-dp-acc-body .ct-dp-item:hover .ct-dp-item-icon { opacity: 1; }
html body .ct-dp-acc-body .ct-dp-item:hover { background: transparent; border-color: transparent; color: var(--ink); box-shadow: none; }
html body .ct-dp-acc-body .ct-dp-item.active { background: transparent; color: var(--ink); border-color: transparent; box-shadow: none; }
html body .ct-dp-acc-body .ct-dp-item.active::after { width: 14px; height: 2px; background: var(--ink); left: -1px; }
html body .ct-dp-acc-body .ct-dp-item.active .ct-dp-item-label { font-weight: 700; }
html body .ct-dp-acc-body .ct-dp-item-badge { background: var(--badge); color: #fff; border-color: transparent; }

/* ── Card rows elsewhere (rail layout remnants): the same three signals ── */
html body .ct-dp-item { background: transparent; border-color: transparent; color: var(--text); box-shadow: none; }
html body .ct-dp-item:hover { background: var(--wash); border-color: transparent; color: var(--ink); box-shadow: none; }
html body .ct-dp-item.active { background: transparent; color: var(--ink); border-color: transparent; box-shadow: inset 2px 0 0 var(--ink); }
html body .ct-dp-item.active .ct-dp-item-label { font-weight: 700; }
html body .ct-dp-item-desc { color: var(--cap); }
html body .ct-dp-item-badge { background: var(--badge); color: #fff; border-color: transparent; }
html body .ct-dp-item.active .ct-dp-item-badge { background: var(--badge); color: #fff; border-color: transparent; }
html body .ct-dp-chev { color: var(--cap); }
html body .ct-dp-chev:hover { background: var(--wash); color: var(--ink); }
html body .ct-dp-chev.expanded, html body .ct-dp-item.active .ct-dp-chev { color: var(--ink); }

/* ── Icon rail (64px) — light, like the panel. AiyaHR keeps its own dark rail
      (brand-theme.css sets it with !important, which these rules do not fight). ── */
html body .ct-dp-rail { background: var(--ground); border-right: 1px solid var(--hair); }
html body .ct-dp-rail-icons { padding: 10px 0; }
html body .ct-dp-rail-btn { width: 40px; height: 40px; margin: 4px 12px; border-radius: 10px; color: var(--cap); }
html body .ct-dp-rail-btn svg { width: 18px; height: 18px; stroke-width: 1.75; }
html body .ct-dp-rail-btn:hover { background: var(--wash); color: var(--ink); }
/* current group: a soft brand-tinted pill, no bar — the collapsed twin of the bold row */
html body .ct-dp-rail-btn.active { background: #e9eef8; color: var(--badge); box-shadow: none; }
/* hairline between sections, the collapsed twin of the captions */
html body .ct-dp-rail-sep { height: 1px; margin: 8px 16px; background: var(--hair); }
html body .ct-dp-rail-expand { color: #64748b; }
html body .ct-dp-rail-expand:hover { background: var(--wash); color: var(--ink); }

/* ── Footer ── the product lockup (navy artwork) on white, as shipped before. ── */
html body .ct-dp-footer { background: var(--ground); border-top: 1px solid var(--hair); padding: 12px 12px; }
html body .ct-dp-footer:hover { background: var(--wash); }
html body .ct-dp-footer-label { color: var(--cap); }
html body .ct-dp-footer-pill { background: var(--wash); border-color: var(--hair); color: var(--text); }
html body .ct-dp-footer-version { color: #c5cad4; }

@media (prefers-reduced-motion: reduce) {
  html body .ct-dp-acc, html body .ct-dp-subitem, html body .ct-dp-item { transition: none; }
}
