/* Noustiq V10.2.2 — deterministic theme + unified admin control center.
   Loaded after the core stylesheet so browser/OS color preferences cannot
   silently change the product palette. */

:root {
  color-scheme: light;
  --nq-surface:          #ffffff;
  --nq-surface-subtle:   #f7f9fb;
  --nq-surface-sunken:   #eef2f6;
  --nq-surface-raised:   #ffffff;
  --nq-surface-hover:    #f3f6f9;
  --nq-surface-ink:      #07111f;
  --nq-surface-ink-2:    #0b1728;
  --nq-product-bg:       #f4f7fa;
  --nq-product-panel:    #ffffff;
  --nq-product-rail:     #0d1a2a;
  --nq-product-border:   #dde5ed;
  --nq-text:             #14263a;
  --nq-text-strong:      #07111f;
  --nq-text-muted:       #5a6b80;
  --nq-text-subtle:      #7b8b9e;
  --nq-border:           #dfe6ee;
  --nq-border-strong:    #c3ceda;
  --nq-rule:             #eaeff4;
  --nq-brand-accent-deep:#0b7d55;
  --nq-action-text:      #04150e;
  --nq-observed:         #0b7d55;
  --nq-observed-bg:      #e7f8f1;
  --nq-observed-border:  #b6e6d2;
  --nq-verified:         #0a6ea8;
  --nq-verified-bg:      #e8f3fa;
  --nq-verified-border:  #b9dcf0;
  --nq-inferred:         #2f6fed;
  --nq-inferred-bg:      #edf4ff;
  --nq-inferred-border:  #c6dbff;
  --nq-review:           #9a6208;
  --nq-review-bg:        #fdf4e3;
  --nq-review-border:    #f2ddb3;
  --nq-danger:           #b32d20;
  --nq-danger-bg:        #fdedeb;
  --nq-danger-border:    #f5ccc7;
  --nq-unknown:          #64748b;
  --nq-unknown-bg:       #f1f4f8;
  --nq-unknown-border:   #dbe2ea;
  --nq-focus:            #1b6fe0;
  --nq-disabled-bg:      #eef2f6;
  --nq-disabled-text:    #96a3b3;
  --nq-shadow-sm: 0 1px 2px rgba(7,17,31,.06), 0 1px 1px rgba(7,17,31,.04);
  --nq-shadow-md: 0 4px 14px rgba(7,17,31,.07), 0 1px 3px rgba(7,17,31,.05);
  --nq-shadow-lg: 0 16px 40px rgba(7,17,31,.10), 0 3px 10px rgba(7,17,31,.06);
  --nq-shadow-xl: 0 28px 70px rgba(7,17,31,.14), 0 6px 18px rgba(7,17,31,.07);
}

html, body { background:#fff; }

/* Footer: one clean legal row after removing development/version metadata. */
.footer-base { justify-content:flex-start; }

/* Unified admin shell. Existing engines stay focused workspaces behind one
   memorable entry point: /admin/. */
.nq-admin-topbar {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:1rem 0; border-bottom:1px solid var(--nq-border);
}
.nq-admin-brand { display:flex; align-items:center; gap:.65rem; font-weight:700; color:var(--nq-text-strong); }
.nq-admin-actions { display:flex; flex-wrap:wrap; gap:.55rem; align-items:center; }
.nq-admin-hero { padding:2.2rem 0 1.5rem; max-width:78rem; }
.nq-admin-hero h1 { margin-bottom:.6rem; }
.nq-admin-hero p { max-width:68ch; color:var(--nq-text-muted); }
.nq-admin-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.nq-admin-kpi { border:1px solid var(--nq-border); background:var(--nq-surface); border-radius:var(--nq-radius-lg); padding:1rem 1.05rem; }
.nq-admin-kpi strong { display:block; font-size:1.7rem; letter-spacing:-.04em; color:var(--nq-text-strong); }
.nq-admin-kpi span { display:block; margin-top:.15rem; color:var(--nq-text-muted); font-size:.82rem; }
.nq-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.nq-admin-module { display:flex; flex-direction:column; min-width:0; border:1px solid var(--nq-border); border-radius:var(--nq-radius-xl); background:var(--nq-surface); padding:1.25rem; box-shadow:var(--nq-shadow-sm); }
.nq-admin-module-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.nq-admin-module h2 { font-size:1.18rem; margin:0; }
.nq-admin-module p { color:var(--nq-text-muted); margin:.45rem 0 1rem; }
.nq-admin-module .nq-admin-module-actions { margin-top:auto; display:flex; flex-wrap:wrap; gap:.55rem; }
.nq-admin-tag { display:inline-flex; align-items:center; min-height:24px; padding:.2rem .55rem; border:1px solid var(--nq-border); border-radius:999px; color:var(--nq-text-muted); font-size:.72rem; font-weight:650; white-space:nowrap; }
.nq-admin-tag.is-live { color:var(--nq-observed); background:var(--nq-observed-bg); border-color:var(--nq-observed-border); }
.nq-admin-split { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr); gap:1rem; }
.nq-admin-list { margin:0; padding:0; list-style:none; display:grid; gap:.75rem; }
.nq-admin-list li { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding-bottom:.7rem; border-bottom:1px solid var(--nq-rule); }
.nq-admin-list li:last-child { padding-bottom:0; border-bottom:0; }
.nq-admin-list strong { display:block; }
.nq-admin-list small { display:block; color:var(--nq-text-muted); margin-top:.15rem; }
.nq-admin-value { font-family:var(--nq-font-mono); font-size:.75rem; color:var(--nq-text-subtle); white-space:nowrap; }
.nq-admin-section { margin-top:1rem; }
.nq-admin-section > .ce-top { margin-bottom:.85rem; }
.nq-admin-notice { border-left:3px solid var(--nq-brand-accent); padding:.8rem 1rem; background:var(--nq-surface-subtle); border-radius:0 var(--nq-radius) var(--nq-radius) 0; color:var(--nq-text-muted); }

@media (max-width:900px) {
  .nq-admin-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nq-admin-grid, .nq-admin-split { grid-template-columns:1fr; }
}
@media (max-width:560px) {
  .nq-admin-topbar { align-items:flex-start; flex-direction:column; }
  .nq-admin-kpis { grid-template-columns:1fr 1fr; }
  .nq-admin-grid { grid-template-columns:1fr; }
  .nq-admin-module-head { flex-direction:column; gap:.5rem; }
}
@media (max-width:390px) { .nq-admin-kpis { grid-template-columns:1fr; } }
