/* ============================================================
   Najm Technology — Technology Division portal stylesheet
   ============================================================ */
:root {
  --font: "DIN Next LT Arabic", "IBM Plex Sans Arabic", "Tajawal", "Noto Naskh Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;

  /* portal (light) */
  /* ---- Najm brand tokens (from najm.sa, 2026-10-01; "derived" = computed, not on the site) ---- */
  --bg: #f2f3f2;           /* Najm surface-2 */
  --card: #ffffff;
  --border: #e3e6e4;       /* derived: Najm border on white */
  --border-2: #ebefed;     /* Najm surface-3 */
  --text: #28282a;         /* Najm text */
  --muted: #555559;        /* Najm text-muted */
  --muted-2: #8e9090;      /* derived */
  --primary: #33835c;      /* Najm primary green: buttons, active nav, links */
  --primary-2: #2a6e4d;    /* Najm primary hover */
  --primary-50: #edf4f0;   /* derived: light green tint */
  --primary-100: #cdddd5;  /* Najm primary tint */
  --accent: #cca447;       /* Najm gold (dark) */
  --accent-soft: #e6c068;  /* Najm gold: accent on dark backgrounds */
  --ink: #19191a;          /* Najm dark surface-2: welcome, login, deck */
  --ink-2: #242826;        /* Najm dark surface */
  --ink-3: #2f3a34;        /* derived: green-tinted charcoal */
  --sidebar-w: 240px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 22, 50, 0.04), 0 1px 8px rgba(20, 22, 50, 0.04);
  --shadow-lg: 0 12px 40px rgba(20, 22, 50, 0.12);

  --green: #16a34a; --green-bg: #dcfce7; --green-fg: #15803d;
  --blue: #2563eb; --blue-bg: #dbeafe; --blue-fg: #1d4ed8;
  --amber: #d97706; --amber-bg: #fef3c7; --amber-fg: #b45309;
  --red: #dc2626; --red-bg: #fee2e2; --red-fg: #b91c1c;
  --purple: #7c3aed; --purple-bg: #ede9fe; --purple-fg: #6d28d9;
  --slate-bg: #f1f3f9; --slate-fg: #475569;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.bold { font-weight: 700; }
.med { font-weight: 500; }
.ico { flex-shrink: 0; vertical-align: middle; }
.text-primary { color: var(--primary); }
.text-green { color: var(--green-fg); }
.text-red { color: var(--red-fg); }
.text-amber { color: var(--amber-fg); }
.text-blue { color: var(--blue-fg); }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.gap-4 { gap: 4px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.grow { flex: 1; min-width: 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.rtl { direction: rtl; unicode-bidi: plaintext; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-weight: 500; font-size: 13px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { background: #f7f8fc; border-color: #d9dce8; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--slate-bg); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 11px; border-radius: 6px; }
.btn-icon { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 7px; }
.btn-icon.danger { color: var(--red); }
.btn-icon.danger:hover { background: var(--red-bg); border-color: var(--red-bg); }
.btn.locked { border-style: dashed; color: var(--muted); background: #fafbfe; box-shadow: none; }
.btn.locked:hover { background: var(--red-bg); border-color: #fca5a5; color: var(--red-fg); }
.form-error { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: var(--red-bg); color: var(--red-fg); font-size: 12px; }
.demo-accounts { margin-top: 16px; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; font-size: 11.5px; }
.demo-accounts summary { cursor: pointer; font-weight: 500; color: var(--muted); }
.demo-accounts table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.demo-accounts td { padding: 3px 4px; border-top: 1px solid var(--border-2); }
.demo-accounts td.u { font-family: var(--mono); color: var(--primary); cursor: pointer; }
.demo-accounts td.u:hover { text-decoration: underline; }
/* Keycloak-style SSO dialog */
.kc { background: #fff; border-radius: 6px; width: 100%; max-width: 420px; padding: 28px 32px 32px; box-shadow: var(--shadow-lg); animation: pop .2s; font-family: "Segoe UI", system-ui, sans-serif; color: #333; position: relative; }
.kc .kc-logo { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #2b2f6b; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.kc h2 { text-align: center; font-size: 20px; font-weight: 600; color: #333; }
.kc .realm { text-align: center; font-size: 12px; color: #777; margin: 4px 0 26px; }
.kc input[type=text], .kc input[type=password] { width: 100%; border: none; border-bottom: 1px solid #ccc; padding: 8px 4px; font-size: 13px; outline: none; margin-bottom: 14px; background: transparent; }
.kc input:focus { border-bottom-color: #3d8bcd; }
.kc label.rem { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; margin: 4px 0 16px; }
.kc .kc-btn { width: 100%; height: 36px; border-radius: 18px; border: 1px solid #3d8bcd; background: #fff; color: #3d8bcd; font-size: 14px; font-weight: 500; }
.kc .kc-btn:hover { background: #3d8bcd; color: #fff; }
.kc .kc-err { background: #fde8e8; color: #b91c1c; border-radius: 4px; padding: 8px 10px; font-size: 12px; margin-bottom: 14px; }
.kc .kc-hint { margin-top: 18px; font-size: 11px; color: #888; text-align: center; }
.kc .kc-x { position: absolute; right: 10px; top: 10px; border: none; background: none; color: #999; cursor: pointer; }
.btn-grad { background: linear-gradient(90deg, var(--primary), #5dc08d); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(51, 131, 92, .35); }
.btn-grad:hover { filter: brightness(1.08); background: linear-gradient(90deg, var(--primary), #5dc08d); }

/* ---------- Inputs ---------- */
.input, .select, .textarea {
  height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: 13px; outline: none; width: 100%;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,131,92, .12); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' 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 8px center;
}
.textarea { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: 12px; font-weight: 500; color: var(--text); }
.field.req > label::after { content: " *"; color: var(--red); }
.input-wrap { position: relative; }
.input-wrap .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.input-wrap .input { padding-left: 30px; }
.input-wrap .btn-icon.suffix { position: absolute; right: 3px; top: 2px; height: 28px; width: 28px; }
.switch { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #cfd3e0; border: none; transition: background .15s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--primary); }
.switch.on::after { left: 18px; }
.checkbox { width: 15px; height: 15px; accent-color: var(--primary); margin: 0; }

/* ---------- Pills & chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 500; line-height: 16px; white-space: nowrap;
  background: var(--slate-bg); color: var(--slate-fg);
}
.pill.green { background: var(--green-bg); color: var(--green-fg); }
.pill.blue { background: var(--blue-bg); color: var(--blue-fg); }
.pill.amber { background: var(--amber-bg); color: var(--amber-fg); }
.pill.red { background: var(--red-bg); color: var(--red-fg); }
.pill.purple { background: var(--purple-bg); color: var(--purple-fg); }
.pill.indigo { background: var(--primary-50); color: var(--primary); }
.pill.solid { background: var(--primary-2); color: #fff; }
.pill.solid-indigo { background: var(--primary); color: #fff; }
.pill.solid-red { background: #e11d48; color: #fff; }
.pill.solid-green { background: #16a34a; color: #fff; }
.pill.solid-amber { background: #d97706; color: #fff; }
.pill.solid-blue { background: #2563eb; color: #fff; }
.pill.outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.pill.round { border-radius: 999px; }
.pill.lg { font-size: 12px; padding: 4px 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card); font-size: 12px; font-weight: 500; cursor: pointer;
}
.chip:hover { background: #f7f8fc; }
.chip.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.chip .cnt { font-weight: 700; color: var(--text); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--green); flex-shrink: 0; }
.dot.blue { background: var(--blue); } .dot.red { background: var(--red); } .dot.amber { background: var(--amber); } .dot.grey { background: #cbd5e1; } .dot.purple { background: var(--purple); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--slate-bg); color: var(--slate-fg); }
.badge.indigo { background: var(--primary-50); color: var(--primary); }
.badge.green { background: var(--green-bg); color: var(--green-fg); }
.badge.red { background: var(--red-bg); color: var(--red-fg); }
.badge.purple { background: var(--primary-2); color: #fff; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.card-h.bordered { border-bottom: 1px solid var(--border-2); }
.card-title { display: flex; align-items: center; gap: 10px; }
.card-title h3 { font-size: 14px; font-weight: 700; }
.card-title .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.card-b { padding: 16px; }
.card-b.tight { padding: 8px 12px; }
.card-b.flush { padding: 0; }
.icon-tile { width: 32px; height: 32px; border-radius: 9px; background: var(--primary-50); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-tile.lg { width: 36px; height: 36px; border-radius: 10px; }
.icon-tile.sm { width: 26px; height: 26px; border-radius: 7px; }
.icon-tile.green { background: var(--green-bg); color: var(--green-fg); }
.icon-tile.red { background: var(--red-bg); color: var(--red-fg); }
.icon-tile.amber { background: var(--amber-bg); color: var(--amber-fg); }
.icon-tile.blue { background: var(--blue-bg); color: var(--blue-fg); }
.icon-tile.purple { background: var(--purple-bg); color: var(--purple-fg); }
.icon-tile.grey { background: var(--slate-bg); color: var(--slate-fg); }

/* ---------- Page header ---------- */
.page-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-h .lead { display: flex; gap: 12px; align-items: flex-start; }
.page-h .label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.page-h h1 { font-size: 20px; line-height: 1.2; margin-top: 2px; }
.page-h .desc { font-size: 12px; color: var(--muted); margin-top: 4px; max-width: 720px; }
.page-h .actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.page-h.plain h1 { font-size: 22px; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; gap: 14px; margin-bottom: 16px; }
.kpis.c4 { grid-template-columns: repeat(4, 1fr); }
.kpis.c3 { grid-template-columns: repeat(3, 1fr); }
.kpis.c5 { grid-template-columns: repeat(5, 1fr); }
.kpis.c6 { grid-template-columns: repeat(6, 1fr); }
.kpi { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 16px; min-height: 84px; }
.kpi .k-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi .k-val { font-size: 24px; font-weight: 700; margin-top: 4px; line-height: 1.1; }
.kpi .k-sub { font-size: 11px; margin-top: 4px; color: var(--muted); }
.kpi .k-ico { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary); opacity: .9; }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #60a5fa, var(--primary)); }
.kpi.g2::after { background: linear-gradient(90deg, var(--accent-soft), var(--accent)); }
.kpi.g3::after { background: linear-gradient(90deg, #3c91bc, #246b8e); }
.kpi.g4::after { background: linear-gradient(90deg, #fb923c, #ef4444); }
.kpi.g5::after { background: linear-gradient(90deg, #34d399, #10b981); }
.kpi.g6::after { background: linear-gradient(90deg, #f472b6, var(--accent)); }
.kpi.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,131,92,.12); }
.kpi .k-glow { position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(51,131,92,.10), transparent 70%); pointer-events: none; }

/* ---------- Filter bar ---------- */
.filterbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; flex-wrap: wrap; }
.filterbar .ico.lead { color: var(--muted); margin-left: 4px; }
.filterbar .select, .filterbar .input { width: auto; min-width: 140px; }
.filterbar .input-wrap { flex: 1; min-width: 200px; }
.filterbar .input-wrap .input { width: 100%; }
.filterbar .spacer { flex: 1; }

/* ---------- Segmented tabs ---------- */
.segtabs { display: inline-flex; gap: 2px; padding: 3px; background: #eceefb; border-radius: 9px; margin-bottom: 16px; flex-wrap: wrap; }
.segtabs button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 7px; border: none; background: transparent; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.segtabs button:hover { color: var(--text); }
.segtabs button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(20,22,50,.1); }
.segtabs.wide { display: flex; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs-line button { height: 36px; padding: 0 12px; border: none; background: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-line button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Tables ---------- */
.tbl-wrap { overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; background: #fafbfe; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text); }
.tbl th .ico { opacity: .5; margin-left: 3px; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.tbl tbody tr:hover { background: #fafbff; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td.mono, .tbl .mono { font-family: var(--mono); font-size: 12px; }
.tbl .link { color: var(--primary); font-weight: 500; cursor: pointer; }
.tbl .link:hover { text-decoration: underline; }
.tbl .actions { display: flex; gap: 2px; justify-content: flex-end; }
.tbl .actions .btn-icon { width: 26px; height: 26px; border-color: transparent; color: var(--muted); }
.tbl .actions .btn-icon:hover { background: var(--slate-bg); color: var(--text); }
.tbl .actions .btn-icon.danger { color: var(--red); }
.tbl.compact td { padding: 7px 10px; }
.tbl .sticky-first { position: sticky; left: 0; background: #fff; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border-2); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.pager { display: flex; align-items: center; gap: 4px; }
.pager button { height: 26px; min-width: 26px; padding: 0 8px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 12px; }
.pager button:hover { background: var(--slate-bg); color: var(--text); }
.pager button.active { background: var(--primary); color: #fff; }
.pager button:disabled { opacity: .4; pointer-events: none; }

/* ---------- Empty state ---------- */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px 20px; gap: 6px; }
.empty .icon-tile { margin-bottom: 6px; }
.empty .t { font-size: 13px; font-weight: 700; }
.empty .d { font-size: 12px; color: var(--muted); max-width: 360px; }

/* ---------- Layout grids ---------- */
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.side { grid-template-columns: 1fr 1fr; align-items: start; }
.grid.side-2 { grid-template-columns: 1fr 340px; align-items: start; }
.form-grid { display: grid; gap: 14px; }
.form-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.form-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.form-grid.c6 { grid-template-columns: repeat(6, 1fr); }
.form-grid .span2 { grid-column: span 2; }

/* ---------- Progress ---------- */
.progress { height: 6px; border-radius: 999px; background: #e9ebf3; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), #5dc08d); }
.progress.green > i { background: linear-gradient(90deg, #22c55e, #16a34a); }
.progress.thin { height: 4px; }
.progress.lg { height: 8px; }

/* ---------- Toasts / modals / sheets ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 12.5px; min-width: 240px; animation: pop .2s ease-out; }
.toast .ico { color: var(--green); }
.toast.err .ico { color: var(--red); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 25, .45); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; overflow: hidden; }
.modal.lg { max-width: 900px; }
.modal.sm { max-width: 460px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-2); }
.modal-h h3 { font-size: 15px; }
.modal-b { padding: 18px; overflow: auto; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--border-2); display: flex; justify-content: flex-end; gap: 8px; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(10,10,25,.35); z-index: 900; animation: fade .15s; }
.sheet { position: absolute; top: 0; right: 0; bottom: 0; width: 560px; max-width: 95vw; background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Skeleton ---------- */
.skel { background: linear-gradient(90deg, #eef0f6 25%, #f7f8fc 50%, #eef0f6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; height: 12px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Dropdown menu ---------- */
.menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: none; background: none; border-radius: 7px; text-align: left; font-size: 13px; }
.menu button:hover { background: var(--slate-bg); }

/* ============================================================
   PORTAL SHELL
   ============================================================ */
.shell { min-height: 100vh; display: grid; grid-template-rows: 56px 1fr; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 14px; position: sticky; top: 0; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 34px; height: 34px; color: var(--primary); }
.brand .t1 { font-size: 13px; font-weight: 700; line-height: 1.1; }
.brand .t2 { font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.topbar .right { display: flex; align-items: center; gap: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; background: #e8f1ff; color: #1d4ed8; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.live-pill i { width: 6px; height: 6px; background: #1d4ed8; border-radius: 2px; }
.auto-refresh { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); }
.bell { position: relative; }
.bell i { position: absolute; top: 4px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; border: 1.5px solid #fff; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.user-btn { display: flex; align-items: center; gap: 8px; border: none; background: none; font-weight: 500; font-size: 13px; padding: 4px 6px; border-radius: 8px; position: relative; }
.user-btn:hover { background: var(--slate-bg); }

.body { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: calc(100vh - 56px); }
.body.collapsed { grid-template-columns: 0 1fr; }
.sidebar { background: #fff; border-right: 1px solid var(--border); padding: 10px 8px; overflow: hidden; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; transition: width .2s; }
.body.collapsed .sidebar { display: none; }
.nav-item { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 400; border: none; background: none; width: 100%; text-align: left; transition: all .15s; position: relative; }
.nav-item:hover { background: rgba(241,243,249,.8); color: var(--text); transform: translateX(2px); }
.nav-item.active { background: linear-gradient(90deg, rgba(51,131,92,.15), rgba(51,131,92,.08), transparent); color: var(--primary); font-weight: 700; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 16px; border-radius: 999px; background: var(--primary); }
.nav-item .ni { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: rgba(241,243,249,.7); color: var(--muted); flex-shrink: 0; }
.nav-item.active .ni { background: var(--primary); color: #fff; }
.nav-item:hover .ni { background: var(--primary-50); color: var(--primary); }
.nav-item.sub { height: 30px; padding-left: 14px; font-size: 12.5px; }
.nav-item.sub .ni { width: 18px; height: 18px; border-radius: 5px; }
.nav-item.sub3 { height: 26px; padding-left: 44px; font-size: 12px; }
.nav-search { margin: 8px 2px 10px; }
.nav-group { margin-top: 2px; }
.nav-group-btn { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px; border: none; background: none; border-radius: 8px; text-align: left; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--slate-fg); }
.nav-group-btn:hover { background: rgba(241,243,249,.8); }
.nav-group-btn.open { color: var(--primary); }
.nav-group-btn .lbl { flex: 1; line-height: 1.1; }
.nav-group-btn .ico.chev { transition: transform .15s; }
.nav-group-btn.open .ico.chev { transform: rotate(90deg); }
.nav-children { display: none; padding: 2px 0 6px 4px; }
.nav-children.open { display: block; }
.nav-sub-group { margin: 4px 0 2px 16px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; display: flex; align-items: center; gap: 6px; height: 24px; }

.main { min-width: 0; position: relative; background: var(--bg); }
.main::before { content: ""; position: fixed; right: -200px; bottom: -200px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(251,191,36,.10), rgba(51,131,92,.05) 45%, transparent 70%); pointer-events: none; z-index: 0; }
.crumbbar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.7); font-size: 12px; position: relative; z-index: 1; }
.crumbbar .sep { color: var(--muted-2); display: inline-flex; }
.crumbbar .cur { font-weight: 500; }
.crumbbar .crumb-link { color: var(--muted); cursor: pointer; }
.crumbbar .crumb-link:hover { color: var(--text); }
.page { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 22px 24px 40px; }
.page.wide { max-width: 1400px; }
.page.full { max-width: none; }
.footer { text-align: center; font-size: 12px; color: var(--muted); padding: 28px 0 8px; }

/* Dashboard specifics */
.promo { position: relative; overflow: hidden; border-radius: 14px; padding: 20px 24px; background: linear-gradient(100deg, #edf4f0 0%, #f4f1e6 55%, #f7f0dc 100%); border: 1px solid var(--primary-100); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.promo h2 { font-size: 22px; margin: 6px 0 4px; }
.promo p { font-size: 12.5px; color: var(--muted); max-width: 560px; }
.promo .art { position: relative; width: 190px; height: 110px; flex-shrink: 0; }
.promo .art .orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--accent-soft)); box-shadow: 0 10px 30px rgba(51,131,92,.3); }
.promo .art .r { position: absolute; font-size: 54px; right: 40px; top: 10px; transform: rotate(-20deg); filter: drop-shadow(0 8px 12px rgba(51,131,92,.35)); }
.promo .close { position: absolute; right: 10px; top: 10px; }
.health-row .svc { font-weight: 700; }
.health-row .env { font-size: 11px; color: var(--muted); }
.attn-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-2); }
.attn-row:last-child { border-bottom: none; }
.attn-row .t { font-size: 12.5px; font-weight: 500; }
.attn-row .s { font-size: 11px; color: var(--muted); }
.attn-row .time { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.ai-box { min-height: 200px; border: 1px solid var(--border-2); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fcfcff; }
.ai-msg { max-width: 92%; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; }
.ai-msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 3px; }
.ai-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.ai-msg .mini-tbl { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 12px; }
.ai-msg .mini-tbl th, .ai-msg .mini-tbl td { border: 1px solid var(--border); padding: 3px 6px; text-align: left; }
.ai-msg code { font-family: var(--mono); font-size: 11.5px; background: rgba(51,131,92,.1); padding: 1px 4px; border-radius: 4px; }

/* Health check cards */
.hc-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.hc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.hc-card.analyzing { background: linear-gradient(180deg, var(--primary-50), #fff); border-color: var(--primary-100); }
.hc-card .lbl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 8px; }
.hc-card .txt { font-size: 12px; margin-top: 2px; }

/* OCP node card */
.node-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.node-card .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 8px; }
.node-card .kv .k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.node-card .kv .v { font-size: 12px; }
.node-card .cond { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.node-card .cond .pill { font-size: 10.5px; background: #eef5ff; color: #1e40af; }
.node-card .taint { margin-top: 6px; }
.node-card .taint .pill { font-size: 10.5px; border: 1px solid var(--border); background: #fff; color: var(--text); }

/* Service directory cards */
.svc-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; }
.svc-card .name { font-weight: 700; font-size: 13px; }
.svc-card .code { font-size: 10.5px; color: var(--muted); letter-spacing: .05em; margin-top: 1px; }
.svc-card .lab { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* Deployment cards */
.dep-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.dep-card .title { font-size: 12.5px; }
.dep-card .ver { font-size: 11px; color: var(--muted); }
.dep-card .ver b { color: var(--text); font-weight: 500; font-family: var(--mono); font-size: 11px; }

/* Pipeline steps */
.step { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: #fff; font-size: 13px; font-weight: 500; }
.step .st { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.step.running .st { color: var(--primary); }
.step.done .st { background: var(--green-bg); color: var(--green-fg); }
.step.error .st { background: var(--red-bg); color: var(--red-fg); }
.step .res { margin-left: auto; font-size: 11px; color: var(--muted); }
.step-arrow { text-align: center; color: var(--muted-2); padding: 4px 0; }
.step-out { border: 1px solid var(--border); border-top: none; border-radius: 0 0 10px 10px; padding: 10px 14px; margin-top: -1px; background: #fafbfe; font-size: 12px; white-space: pre-wrap; font-family: var(--mono); max-height: 220px; overflow: auto; }

/* Wizard */
.wizard-steps { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; }
.wizard-steps .ws { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; color: var(--muted); font-weight: 500; flex: 1; justify-content: center; }
.wizard-steps .ws.active { background: var(--primary-50); color: var(--primary); }
.wizard-steps .ws.done { color: var(--green-fg); }
.wizard-steps .line { flex: 0 0 24px; height: 1px; background: var(--border); }

/* Thiqah migration */
.step-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 500; background: #eef5ff; color: #1e40af; border: 1px solid #dbeafe; }
.step-chip.full { background: #e8f7ee; color: #166534; border-color: #d1fae5; }

/* Executive */
.exec-team-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.exec-team-chips .pill { background: var(--primary); color: #fff; font-size: 10.5px; }
.deck-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--primary-100); border-radius: 12px; background: linear-gradient(90deg, var(--primary-50), var(--primary-50)); margin-bottom: 12px; }
.deck { position: relative; aspect-ratio: 16 / 8; background: radial-gradient(circle at 20% 20%, var(--ink-3) 0%, var(--ink-2) 45%, var(--ink) 100%); border-radius: 16px; overflow: hidden; color: #fff; border: 6px solid var(--ink); box-shadow: var(--shadow-lg); }
.deck .stars { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px), radial-gradient(rgba(147,197,253,.35) 1px, transparent 1px); background-size: 90px 90px, 140px 140px; background-position: 0 0, 40px 60px; opacity: .6; }
.deck .slide { position: absolute; inset: 0; padding: 36px 48px; display: flex; flex-direction: column; animation: fade .3s; }
.deck .timer { position: absolute; left: 22px; top: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-family: var(--mono); font-size: 12px; }
.deck .timer .pill { font-size: 9px; background: rgba(255,255,255,.12); color: #cbd5e1; }
.deck .logo { position: absolute; right: 24px; top: 16px; width: 28px; height: 28px; color: #fff; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; }
.deck .navbtn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; display: flex; align-items: center; justify-content: center; }
.deck .navbtn:hover { background: rgba(255,255,255,.14); }
.deck .navbtn.l { left: 14px; } .deck .navbtn.r { right: 14px; }
.deck .dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 5px; }
.deck .dots i { width: 5px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.3); transition: width .2s; }
.deck .dots i.on { width: 22px; background: var(--accent); }
.deck .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--primary), #5dc08d); }
.deck .title-slide { align-items: center; justify-content: center; text-align: center; }
.deck .title-slide h1 { font-size: 58px; font-weight: 700; letter-spacing: -.02em; margin-top: 12px; }
.deck .title-slide h1 span { background: linear-gradient(90deg, var(--accent-soft), #5dc08d, #3c91bc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.deck .title-slide .sub { font-size: 18px; color: #cbd5e1; margin-top: 8px; }
.deck .tiles { display: flex; gap: 14px; margin-top: 28px; }
.deck .tile { width: 150px; height: 84px; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.deck .tile b { font-size: 32px; line-height: 1; }
.deck .tile span { font-size: 10px; letter-spacing: .1em; margin-top: 4px; opacity: .9; }
.deck .tile.g { background: linear-gradient(135deg, #10b981, #059669); } .deck .tile.p { background: linear-gradient(135deg, var(--accent), var(--primary-2)); } .deck .tile.k { background: linear-gradient(135deg, #3c91bc, #246b8e); }
.deck .team-head { display: flex; align-items: flex-start; gap: 14px; }
.deck .team-head .ti { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #5dc08d); display: flex; align-items: center; justify-content: center; }
.deck .team-head h2 { font-size: 34px; }
.deck .team-head .tag { color: var(--accent-soft); font-size: 13px; }
.deck .team-head .upd { margin-left: auto; text-align: right; font-size: 10px; color: #94a3b8; letter-spacing: .1em; }
.deck .team-head .upd b { display: block; color: #e2e8f0; font-size: 12px; letter-spacing: 0; }
.deck .stats { display: flex; gap: 14px; margin-top: 18px; }
.deck .stat { flex: 1; border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.deck .stat b { font-size: 32px; display: block; line-height: 1; }
.deck .stat span { font-size: 10px; letter-spacing: .12em; color: #94a3b8; }
.deck .lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; flex: 1; min-height: 0; }
.deck .lst { border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 10px 12px; overflow: auto; }
.deck .lst h4 { font-size: 10.5px; letter-spacing: .12em; color: #cbd5e1; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.deck .item { border-radius: 8px; background: rgba(255,255,255,.05); padding: 6px 8px; margin-bottom: 5px; cursor: pointer; }
.deck .item:hover { background: rgba(255,255,255,.1); }
.deck .item .h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.deck .item .d { font-size: 10.5px; color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck .item .pct { font-size: 10px; color: #cbd5e1; margin-left: 4px; }
.deck .pill.wip { background: #1d4ed8; color: #fff; } .deck .pill.done { background: #15803d; color: #fff; } .deck .pill.block { background: #b91c1c; color: #fff; } .deck .pill.hold { background: #b45309; color: #fff; }
.deck .hint { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: 10px; color: #64748b; }
.deck.fullscreen { position: fixed; inset: 0; z-index: 950; border-radius: 0; aspect-ratio: auto; border: none; }
.exec-hero { border-radius: 14px; padding: 22px 26px; color: #fff; background: linear-gradient(100deg, var(--ink-2) 0%, var(--primary) 60%, #5dc08d 100%); display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.exec-hero .lbl { font-size: 10px; letter-spacing: .2em; opacity: .8; }
.exec-hero h2 { font-size: 26px; margin-top: 4px; }
.exec-hero .big { text-align: right; }
.exec-hero .big b { font-size: 44px; line-height: 1; }
.exec-hero .big span { font-size: 10px; letter-spacing: .12em; display: block; opacity: .85; }
.team-sec { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: #fff; }
.team-sec .th { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #fff; background: linear-gradient(90deg, var(--primary), #0ea5e9); cursor: pointer; }
.team-sec .th h3 { font-size: 15px; }
.team-sec .th .sub { font-size: 11px; opacity: .85; }
.team-sec .tb { padding: 16px; }
.prog-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fafbff; }
.prog-card .big { font-size: 30px; font-weight: 700; color: var(--primary); }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.stat3 > div { text-align: center; padding: 12px; border-radius: 10px; background: #f6f7fb; }
.stat3 b { display: block; font-size: 22px; color: var(--primary); }
.stat3 span { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.act-item { border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.act-item .num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--primary); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.sub-items { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-top: 8px; font-size: 11.5px; }
.sub-items > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0; }
.sub-items .p { font-weight: 700; color: var(--primary); }
.sub-items .p.full { color: var(--green-fg); }

/* Service design diagram */
.diagram { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 10px; }
.diagram .n { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: #fff; font-size: 12px; font-weight: 500; text-align: center; min-width: 110px; }
.diagram .n.p { border-color: var(--primary-100); background: var(--primary-50); color: var(--primary); }
.diagram .n small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; }
.diagram .arrow { color: var(--muted-2); }
.diagram .stack { display: flex; flex-direction: column; gap: 6px; }

/* bars chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 0 4px; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; }
.bars .b i { display: block; border-radius: 2px 2px 0 0; }
.bars .b .g { background: #4ade80; } .bars .b .a { background: #fbbf24; } .bars .b .r { background: #f87171; }
.hbar { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 8px; }
.hbar .lb { width: 150px; text-align: right; color: var(--muted); }
.hbar .tr { flex: 1; height: 14px; background: #eef0f6; border-radius: 4px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; }
.hbar .vl { width: 40px; font-weight: 700; }

/* upload zone */
.dropzone { border: 1.5px dashed #cfd3e0; border-radius: 12px; padding: 28px; text-align: center; background: rgba(255,255,255,.6); }
.dropzone .t { font-weight: 700; font-size: 13px; margin-top: 8px; }
.dropzone .d { font-size: 11.5px; color: var(--muted); margin: 4px auto 12px; max-width: 420px; }

/* log rows */
.log-row { display: grid; grid-template-columns: 24px 150px 60px 170px 1fr 24px; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--border-2); font-size: 12px; }
.log-row:hover { background: #fafbff; }
.log-row .msg { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-json { grid-column: 1 / -1; background: var(--ink); color: var(--primary-100); font-family: var(--mono); font-size: 11px; padding: 10px 12px; border-radius: 8px; white-space: pre; overflow: auto; }

/* ============================================================
   PUBLIC PAGES (dark)
   ============================================================ */
.public { background: var(--ink); color: #fff; min-height: 100vh; position: relative; overflow-x: hidden; }
.public .glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .55; }
.public .glow.a { width: 520px; height: 520px; left: 55%; top: -120px; background: radial-gradient(circle, rgba(51,131,92,.55), transparent 70%); }
.public .glow.b { width: 480px; height: 480px; right: -140px; top: 40%; background: radial-gradient(circle, rgba(42,110,77,.5), transparent 70%); }
.public .glow.c { width: 400px; height: 400px; left: -160px; top: 60%; background: radial-gradient(circle, rgba(93,192,141,.25), transparent 70%); }
.pub-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pub-nav { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid rgba(255,255,255,.06); }
.pub-nav .links { display: flex; gap: 22px; font-size: 13px; color: #c7c9d9; }
.pub-nav .links a:hover { color: #fff; }
.pub-brand { display: flex; align-items: center; gap: 10px; }
.pub-brand .logo { width: 34px; height: 34px; color: #fff; }
.pub-brand .t1 { font-size: 14px; font-weight: 700; line-height: 1.1; }
.pub-brand .t2 { font-size: 8.5px; letter-spacing: .25em; color: #9a9ab5; margin-top: 2px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.hero .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); font-size: 11px; color: #c7c9d9; }
.hero h1 { font-size: 56px; line-height: 1.02; letter-spacing: -.02em; margin-top: 22px; }
.hero h1 .accent { color: var(--accent-soft); }
.caret { display: inline-block; width: 2px; height: .9em; background: var(--accent-soft); margin-left: 4px; vertical-align: -0.1em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero p.lead { font-size: 14.5px; color: #b3b5c9; margin-top: 18px; max-width: 480px; }
.hero .cta { display: flex; gap: 10px; margin-top: 24px; }
.btn-outline-dark { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); color: #fff; }
.btn-outline-dark:hover { background: rgba(255,255,255,.09); }
.hero .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }
.hero .stat .ic { color: var(--accent-soft); }
.hero .stat b { display: block; font-size: 20px; margin-top: 8px; }
.hero .stat span { font-size: 11.5px; color: #9a9ab5; }
.cockpit { border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); position: relative; }
.cockpit .h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #c7c9d9; padding: 2px 4px 10px; }
.cockpit .live { display: inline-flex; align-items: center; gap: 6px; color: #86efac; font-size: 11px; }
.cockpit .live i { width: 6px; height: 6px; border-radius: 2px; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.cockpit .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 12px 12px 8px; }
.mini .l { font-size: 11px; color: #9a9ab5; }
.mini .v { font-size: 22px; font-weight: 700; margin-top: 2px; }
.mini svg { width: 100%; height: 34px; margin-top: 2px; }
.cockpit .ai { margin-top: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 10px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background .15s; }
.cockpit .ai:hover { background: rgba(255,255,255,.08); }
.cockpit .ai .t { font-size: 11px; color: #9a9ab5; }
.cockpit .ai .q { font-size: 12.5px; }
.cockpit .ai .ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(230,192,104,.15); color: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.cockpit .ai .arrow { margin-left: auto; color: var(--accent-soft); }
.section { padding: 64px 0; border-top: 1px solid rgba(255,255,255,.06); }
.section .lbl { font-size: 10.5px; letter-spacing: .22em; color: var(--accent-soft); font-weight: 700; }
.section h2 { font-size: 32px; line-height: 1.12; margin-top: 12px; letter-spacing: -.01em; }
.section h2 .accent { color: var(--accent-soft); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.sec-head p { font-size: 13.5px; color: #b3b5c9; }
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 28px; }
.cap { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); }
.cap .num { font-size: 10.5px; color: var(--accent-soft); letter-spacing: .1em; width: 22px; padding-top: 4px; }
.cap .ic { color: var(--accent-soft); padding-top: 2px; }
.cap h4 { font-size: 14px; }
.cap p { font-size: 12.5px; color: #9a9ab5; margin-top: 3px; }
.wf { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.timeline { position: relative; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.12); }
.tl-step { position: relative; padding: 0 0 30px 0; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: -24px; top: 4px; width: 7px; height: 7px; border: 1px solid var(--accent-soft); background: var(--ink); }
.tl-step .s { font-size: 10px; letter-spacing: .18em; color: var(--accent-soft); display: flex; align-items: center; gap: 8px; }
.tl-step h4 { font-size: 16px; margin-top: 6px; }
.tl-step p { font-size: 12.5px; color: #9a9ab5; margin-top: 4px; }
.marquee { overflow: hidden; margin-top: 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 40px; width: max-content; animation: marq 28s linear infinite; }
.marquee .lg { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #c7c9d9; white-space: nowrap; }
.marquee .lg .ic { width: 20px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cta-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; border-radius: 18px; border: 1px solid rgba(230,192,104,.25); background: linear-gradient(120deg, rgba(42,110,77,.35), rgba(25,25,26,.5) 60%, rgba(7,7,15,.6)); padding: 36px; margin-top: 8px; position: relative; overflow: hidden; }
.cta-card h2 { font-size: 26px; }
.cta-card p { font-size: 13px; color: #b3b5c9; margin: 8px 0 18px; max-width: 420px; }
.portal-art { position: relative; height: 200px; display: flex; align-items: center; justify-content: center; }
.portal-art .frame { width: 70px; height: 130px; border: 3px solid var(--accent-soft); border-radius: 6px; box-shadow: 0 0 30px var(--primary-2), inset 0 0 30px rgba(51,131,92,.6); background: linear-gradient(180deg, rgba(230,192,104,.35), rgba(42,110,77,.6)); animation: floaty 4s ease-in-out infinite; }
.portal-art .base { position: absolute; bottom: 20px; width: 220px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, rgba(230,192,104,.6), transparent 70%); filter: blur(4px); }
.portal-art .ring { position: absolute; bottom: 22px; width: 190px; height: 22px; border-radius: 50%; border: 1px solid rgba(230,192,104,.5); }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.pub-footer { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 30px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 60px; font-size: 12px; color: #9a9ab5; }
.pub-footer .links { display: flex; gap: 18px; }
.pub-footer .links a:hover { color: #fff; }
/* AI demo modal (dark) */
.ai-demo { background: #0e0c1f; color: #fff; border: 1px solid rgba(230,192,104,.25); border-radius: 14px; width: 100%; max-width: 680px; height: 82vh; max-height: 720px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .2s; }
.ai-demo .hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(51,131,92,.12); }
.ai-demo .hd .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--primary-2); display: flex; align-items: center; justify-content: center; }
.ai-demo .hd .t { font-size: 13px; font-weight: 700; }
.ai-demo .hd .s { font-size: 11px; color: #a5a8c0; display: flex; align-items: center; gap: 6px; }
.ai-demo .hd .s i { width: 6px; height: 6px; background: #22c55e; border-radius: 2px; }
.ai-demo .hd .x { margin-left: auto; color: #a5a8c0; background: none; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.ai-demo .body { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-demo .m { max-width: 88%; font-size: 12.5px; line-height: 1.55; }
.ai-demo .m.u { align-self: flex-end; background: var(--primary-2); padding: 7px 12px; border-radius: 12px 12px 3px 12px; }
.ai-demo .m.b { align-self: flex-start; display: flex; gap: 10px; }
.ai-demo .m.b .av { width: 26px; height: 26px; border-radius: 7px; background: rgba(230,192,104,.2); color: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-demo .m.b .tx { white-space: pre-wrap; }
.ai-demo .m.b code { font-family: var(--mono); font-size: 11px; background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 4px; }
.ai-demo .m.b table { border-collapse: collapse; margin: 6px 0; font-size: 12px; }
.ai-demo .m.b td, .ai-demo .m.b th { border: 1px solid rgba(255,255,255,.15); padding: 2px 8px; text-align: left; }
.ai-demo .chips { display: flex; gap: 8px; padding: 8px 14px; flex-wrap: wrap; }
.ai-demo .chips button { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e5e7f5; border-radius: 8px; padding: 6px 10px; font-size: 12px; }
.ai-demo .chips button:hover { background: rgba(255,255,255,.12); }
.ai-demo .in { display: flex; gap: 8px; padding: 10px 14px 14px; }
.ai-demo .in input { flex: 1; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; padding: 0 12px; outline: none; }
.ai-demo .in button { width: 36px; height: 36px; border-radius: 8px; background: var(--primary-2); border: none; color: #fff; display: flex; align-items: center; justify-content: center; }
.typing { display: inline-flex; gap: 3px; } .typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-soft); animation: bounce 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

/* login */
.login { display: grid; grid-template-columns: 52% 48%; min-height: 100vh; }
.login .left { background: var(--ink); color: #fff; position: relative; padding: 28px 32px; display: flex; flex-direction: column; overflow: hidden; }
.login .left .mid { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.login .left .lbl { font-size: 10px; letter-spacing: .25em; color: #a5a8c0; font-weight: 700; }
.login .left h1 { font-size: 34px; line-height: 1.08; margin-top: 12px; }
.login .left h1 .accent { color: var(--accent-soft); }
.login .stats { display: flex; gap: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); width: 320px; }
.login .stats b { display: block; font-size: 20px; }
.login .stats span { font-size: 11px; color: #9a9ab5; }
.login .copy { font-size: 11px; color: #9a9ab5; margin-top: 18px; }
.login .right { background: #fff; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login .right::before { content: ""; position: absolute; right: -180px; top: -180px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(230,192,104,.55), rgba(93,192,141,.25) 45%, transparent 70%); filter: blur(30px); }
.login .right::after { content: ""; position: absolute; right: -100px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(205,221,213,.7), transparent 70%); filter: blur(30px); }
.login-form { position: relative; width: 340px; }
.login-form h2 { font-size: 24px; }
.login-form .sub { font-size: 12px; color: var(--muted); margin: 4px 0 18px; }
.login-form .cap { text-align: center; font-size: 11px; color: var(--muted); margin-top: 6px; }
.login-form .divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.login-form .divider::before, .login-form .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-form .links { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.login-form .links a { color: var(--text); display: block; margin-bottom: 6px; }
.login-form .links a:hover { color: var(--primary); }

/* wizard standalone */
.wizard-page { max-width: 640px; margin: 0 auto; padding: 16px 20px 40px; }

@media (max-width: 1100px) {
  .kpis.c6 { grid-template-columns: repeat(3, 1fr); }
  .kpis.c5 { grid-template-columns: repeat(3, 1fr); }
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero, .sec-head, .wf, .cap-list, .cta-card, .login { grid-template-columns: 1fr; }
  .body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .kpis.c4, .kpis.c3 { grid-template-columns: repeat(2, 1fr); }
  .grid.side, .grid.side-2, .grid.c2, .form-grid.c2, .form-grid.c3 { grid-template-columns: 1fr; }
}

/* ============================================================
   NAJM LIGHT LANDING — overrides the dark public theme above
   to match najm.sa: white page, grey section bands, green CTAs,
   16px cards with soft shadows, dark headings with green accent.
   ============================================================ */
.public { background: #fff; color: var(--text); }
.public .glow { opacity: .35; }
.public .glow.a { background: radial-gradient(circle, rgba(93,192,141,.35), transparent 70%); }
.public .glow.b { background: radial-gradient(circle, rgba(230,192,104,.30), transparent 70%); }
.public .glow.c { background: radial-gradient(circle, rgba(60,145,188,.18), transparent 70%); }
.pub-nav { border-bottom: 1px solid var(--border); height: 72px; }
.pub-nav .links { color: var(--muted); font-size: 14px; font-weight: 500; }
.pub-nav .links a:hover { color: var(--primary); }
.pub-brand .logo { color: var(--primary); }
.pub-brand .t1 { color: var(--text); font-size: 15px; }
.pub-brand .t2 { color: var(--muted); }
.public .btn-grad { background: var(--primary); box-shadow: none; border-radius: 12px; padding-left: 18px; padding-right: 18px; }
.public .btn-grad:hover { background: var(--primary-2); filter: none; }
.public .btn-outline-dark { background: transparent; border: 1px solid rgba(177,179,179,.6); color: var(--text); border-radius: 12px; }
.public .btn-outline-dark:hover { background: transparent; border-color: var(--primary); color: var(--primary); }
.hero .tag { border-color: var(--primary-100); background: var(--primary-50); color: var(--primary); font-weight: 500; }
.hero h1 { color: var(--text); }
.hero h1 .accent, .section h2 .accent { color: var(--primary); }
.caret { background: var(--primary); }
.hero p.lead { color: #4a484b; font-size: 15.5px; }
.hero .stats { border-top-color: var(--border); }
.hero .stat .ic { color: var(--primary); }
.hero .stat b { color: var(--text); }
.hero .stat span { color: var(--muted); }
.cockpit { background: #fff; border: 1px solid transparent; border-radius: 16px; box-shadow: 0 7px 21px rgba(0,0,0,.1), 0 0 0 1px rgba(177,179,179,.2); }
.cockpit .h { color: var(--text); font-weight: 500; }
.cockpit .live { color: var(--primary); }
.cockpit .live i { background: var(--primary); box-shadow: none; }
.mini { background: #f2f3f2; border-color: transparent; }
.mini .l { color: var(--muted); }
.mini .v { color: var(--text); }
.cockpit .ai { background: var(--primary-50); border-color: var(--primary-100); }
.cockpit .ai:hover { background: var(--primary-100); }
.cockpit .ai .t { color: var(--muted); }
.cockpit .ai .q { color: var(--text); }
.cockpit .ai .ic { background: var(--primary); color: #fff; }
.cockpit .ai .arrow { color: var(--primary); }
.public .section { border-top: none; }
.public .section .lbl { color: var(--primary); }
.public .section h2 { color: var(--text); font-size: 36px; }
.sec-head p, .cap p, .tl-step p { color: #4a484b; }
/* full-width grey bands, like najm.sa's "beige" sections */
.public #workflows, .public #cta { background: #f2f3f2; box-shadow: 0 0 0 100vmax #f2f3f2; clip-path: inset(0 -100vmax); }
.cap { border-top-color: var(--border); }
.cap .num { color: var(--accent); font-weight: 700; }
.cap .ic { color: var(--primary); }
.cap h4, .tl-step h4 { color: var(--text); }
.timeline { border-left-color: var(--primary-100); }
.tl-step::before { border-color: var(--primary); background: var(--primary); border-radius: 50%; width: 9px; height: 9px; left: -25px; }
.tl-step .s { color: var(--primary); font-weight: 700; }
.marquee .lg { color: var(--text); font-weight: 500; }
.cta-card { background: var(--primary); border: none; border-radius: 20px; color: #fff; }
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255,255,255,.85); }
.cta-card .btn-grad { background: #fff; color: var(--primary); }
.cta-card .btn-grad:hover { background: #f2f3f2; }
.portal-art .frame { border-color: var(--accent-soft); box-shadow: 0 0 30px rgba(230,192,104,.6); background: linear-gradient(180deg, rgba(230,192,104,.45), rgba(255,255,255,.15)); }
.portal-art .base { background: radial-gradient(ellipse, rgba(230,192,104,.7), transparent 70%); }
.portal-art .ring { border-color: rgba(255,255,255,.5); }
.pub-footer { border-top-color: var(--border); color: var(--muted); }
.pub-footer .links a:hover { color: var(--primary); }

/* login left panel in Najm green */
.login .left { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-2) 100%); }
.login .left .glow.a { background: radial-gradient(circle, rgba(230,192,104,.35), transparent 70%); }
.login .left .lbl, .login .stats span, .login .copy { color: rgba(255,255,255,.75); }
.login .stats { border-top-color: rgba(255,255,255,.25); }
.login .left .pub-brand .logo { color: #fff; }
.login-form .btn-dark { background: var(--primary); border-color: var(--primary); border-radius: 12px; }
.login-form .btn-dark:hover { background: var(--primary-2); }

@media (max-width: 720px) {
  .pub-nav .links { display: none; }
  .hero h1 { font-size: 38px; }
  .public .section h2 { font-size: 28px; }
  .pub-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pub-footer .links { flex-wrap: wrap; }
}

/* Service Directory: database status chip */
.db-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted); white-space: nowrap; }
.db-chip a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.db-chip.on { border-color: var(--primary-100); background: var(--primary-50); color: var(--primary-2); }
.db-chip.ro { border-color: #f1e2b8; background: #fbf6e8; color: #8a6d1f; }
.db-chip.local { background: #f2f3f2; }

/* Operations & Resilience pages */
.dept-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dept-stats b { display: block; font-size: 22px; line-height: 1.1; }
.dept-stats span { font-size: 11px; color: var(--muted); }
.split-bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--border-2); }
.split-bar i { display: block; height: 100%; }
.split-bar .perm { background: var(--primary); }
.split-bar .out { background: #3c91bc; }
.sec-list { margin-top: 12px; border-top: 1px solid var(--border-2); }
.sec-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px solid var(--border-2); }
.unit-list { display: flex; flex-direction: column; gap: 4px; }
.unit-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 1px solid var(--border-2); border-radius: 8px; background: #fafbfa; font-size: 12.5px; text-align: left; color: var(--text); }
.unit-row:hover { border-color: var(--primary-100); background: var(--primary-50); }
.unit-row b { color: var(--primary); }
.sec-lead { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.mt-16 { margin-top: 16px; }
.draft-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px solid #f1e2b8; background: #fbf6e8; color: #6b5414; font-size: 12.5px; }
.draft-bar.stale { border-color: #f2c4c4; background: #fdf0f0; color: #8a2b2b; }
.draft-bar .grow { flex: 1; }
/* org tree in the sidebar */
.nav-item.org-sec { gap: 6px; font-weight: 600; color: var(--text); }
.nav-item.sub4 { height: 24px; padding-left: 62px; font-size: 11.5px; color: var(--muted); }
.nav-item.sub4:hover, .nav-item.sub4.active { color: var(--primary); }
.nav-item.sub4.active { background: var(--primary-50); font-weight: 600; }
.unit-row.static { cursor: default; background: transparent; }
.unit-row.static:hover { border-color: var(--border-2); background: transparent; }
.org-card .card-b { display: flex; flex-direction: column; }
.nav-item.org-sec, .nav-item.sub4 { height: auto; min-height: 24px; padding-top: 4px; padding-bottom: 4px; line-height: 1.25; white-space: normal; text-align: left; align-items: center; }
.nav-item.org-sec { margin-top: 4px; }
.nav-item.org-sec { align-items: flex-start; }
.nav-item.org-sec svg { flex: none; margin-top: 2px; }

/* portal mark: a full-colour tile, outlined on green backgrounds */
.brand .logo, .pub-brand .logo { border-radius: 9px; }
.login .left .pub-brand .logo { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.deck .logo svg { border-radius: 5px; }
.deck .logo { width: auto; height: auto; }
.deck .logo svg { flex: none; }
