/* Holon Admin — design polish layer (2026-11-10). Loaded LAST in <head>, so it wins ties.
   Admin-only: does not touch /shared/ (other tools use the shared shell).
   Goals: one quiet page header per tool, calmer heroes, one font, even cards, no clipped controls. */

/* 1. One font everywhere: buttons/inputs/selects inherit (some fell back to Arial / monospace) */
button, input, select, textarea { font-family: inherit; }
.sidebar .role, .sidebar .role *, #dd-build { font-family: inherit !important; }

/* 2. Page intro strip (registry tools without a hero). Its CSS was lost in the Oct-03 split, so it
      rendered as raw unstyled text. Now a plain, typeset page title — not another navy box. */
.shell-strip { display: flex; align-items: flex-end; gap: 14px; margin: 2px 2px 18px; padding: 0 0 14px;
  border-bottom: 1px solid var(--dd-line-soft, #e4ebf5); background: none; color: var(--dd-ink); }
.shell-strip .name { font-size: 20px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; color: var(--dd-ink); }
.shell-strip .sub { font-size: 13.5px; font-weight: 450; color: var(--dd-dim, #5a6c86); margin-top: 4px; line-height: 1.45; }
.shell-strip .count { margin-left: auto; font-size: 12px; color: var(--dd-dim); white-space: nowrap; }
/* a tool that renders its own hero already has a title — don't stack two */
#tool-area:has(.cop-hero) > .shell-strip, #tool-area:has(.dash-hero) > .shell-strip { display: none; }

/* 3. Heroes: same navy brand, less weight. Smaller padding, no heavy drop shadow, no empty rule
      line when there is no stepper above the title. */
.cop-hero { padding: 18px 24px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, #0b2456 0%, #12357a 60%, #1a4a9e 100%);
  box-shadow: 0 1px 2px rgba(7, 29, 73, .12); }
.cop-hero-head { margin-top: 14px; padding-top: 14px; }
.cop-hero-head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cop-hero-h1 { font-size: 21px; font-weight: 750; }
.cop-hero-sub { font-size: 13.5px; line-height: 1.5; max-width: 860px; }
.cop-hero .cwiz-dot { width: 36px; height: 36px; font-size: 14px; }
.cop-hero .cwiz-ind.active .cwiz-dot { box-shadow: 0 0 0 4px rgba(78, 160, 255, .22); }
.cop-hero .cwiz-lbl { font-size: 10.5px; letter-spacing: .06em; }
.dash-hero { padding: 18px 24px; border-radius: 14px; box-shadow: 0 1px 2px rgba(7, 29, 73, .12); }

/* 4. Top bar: date reads as text, not code; build stamp stays (hover for details) but recedes */
#dd-clock-d { font-family: inherit !important; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--dd-dim); }
#dd-build { font-size: 10px !important; font-weight: 500 !important; opacity: .7; }

/* 5. Menu level switch: "Advanced" was clipped — let the three options share the width evenly */
.lvl-seg { display: flex; gap: 2px; }
.lvl-seg button { flex: 1 1 auto; min-width: 0; padding: 7px 6px; font-size: 11px; white-space: nowrap; letter-spacing: -.005em; }

/* 6. Dashboard KPI row: five equal cards, numbers on one baseline */
.dash-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dash-kpi, .dash-kpi.wide { min-width: 0; padding: 14px 16px; justify-content: space-between; min-height: 76px; }
.dash-kpi b { font-size: 24px; letter-spacing: -.01em; }
.dash-kpi span { font-size: 11.5px; font-weight: 600; color: var(--dd-dim, #5a6c86); }
.dash-kpi.wide { justify-content: center; }
@media (max-width: 1100px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-kpi.wide { grid-column: 1 / -1; } }

/* 7. "How to use" tip box: flat tint, no gradient */
.howto { background: var(--dd-panel2, #f6f9ff); border-color: var(--dd-line-soft, #e4ebf5); }

/* 8. Buttons: one height, consistent weight; tiny targets get a 32px minimum */
.btn-sm { min-height: 32px; font-weight: 650; border-radius: 8px; }
.btn-sm.secondary { font-weight: 600; }

/* 9. Course-picker empty state: plain tint instead of diagonal stripes */
.cop-empty { background: var(--dd-panel2, #f6f9ff) !important; border-width: 1px; }

/* 10. Menu icons: one consistent line-icon set (was a mix of colour emoji and text glyphs, with
       four pairs of tools sharing the same symbol). SVGs inherit the text colour. */
.nav-ic { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; opacity: .78; }
.nav-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn.active .nav-ic, .nav-btn:hover .nav-ic { opacity: 1; }
html:not([data-theme="light"]) .lvl-seg button.on { background: #2a5298 !important; color: #fff !important; }
