/* EQUINOX INTELLIGENCE — EXECUTIVE REFINEMENT v5.36.0
   Presentation layer only. No workflow, data, authentication or integration logic. */
:root {
  --uv-black:#050607;
  --uv-graphite:#0b0e12;
  --uv-panel:#10151c;
  --uv-panel-2:#151b23;
  --uv-ivory:#f6f1e5;
  --uv-muted:#9ca8b7;
  --uv-gold:#d7aa50;
  --uv-gold-light:#f2d38b;
  --uv-gold-dark:#7d5718;
  --uv-danger:#bd3852;
  --uv-line:rgba(215,170,80,.22);
  --uv-line-soft:rgba(255,255,255,.075);
  --uv-shadow:0 24px 65px rgba(0,0,0,.44);
  --uv-radius:18px;
}

html { background:var(--uv-black); color-scheme:dark; overflow-x:hidden; }
body {
  min-width:0 !important;
  overflow-x:hidden !important;
  color:var(--uv-ivory);
  background:
    radial-gradient(circle at 80% -10%,rgba(54,90,132,.18),transparent 36rem),
    radial-gradient(circle at 7% 24%,rgba(215,170,80,.07),transparent 28rem),
    linear-gradient(145deg,#050607 0%,#0a0e14 50%,#06080b 100%) !important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif !important;
}
body::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.23;
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,black,transparent 75%);
}
* { box-sizing:border-box; }
img,svg { max-width:100%; }

/* Product chrome */
.eq-pro-topbar {
  min-height:86px !important;
  background:linear-gradient(180deg,rgba(15,20,28,.98),rgba(7,10,14,.96)) !important;
  border-bottom:1px solid var(--uv-line) !important;
  box-shadow:0 14px 38px rgba(0,0,0,.3) !important;
  backdrop-filter:blur(18px) saturate(130%);
}
.eq-pro-topbar::after {
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px;
  background:linear-gradient(90deg,transparent,var(--uv-gold),transparent); opacity:.6;
}
.eq-pro-brand,.eq-pro-title { letter-spacing:.04em !important; }
.eq-pro-brand img,.eq-pro-logo { filter:drop-shadow(0 5px 14px rgba(215,170,80,.19)); }
.eq-pro-title::after {
  content:"ULTRA"; display:inline-flex; margin-left:10px; padding:3px 7px; vertical-align:middle;
  border:1px solid rgba(242,211,139,.45); border-radius:999px; color:var(--uv-gold-light);
  background:rgba(215,170,80,.09); font-size:8px; line-height:1; letter-spacing:.18em;
}
.eq-pro-menu-toggle,.eq-pro-menu-button {
  border-color:rgba(242,211,139,.42) !important;
  background:linear-gradient(145deg,rgba(215,170,80,.16),rgba(14,18,24,.92)) !important;
  color:var(--uv-gold-light) !important;
  box-shadow:0 8px 24px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.08) !important;
}
.eq-pro-drawer,.eq-pro-sidebar {
  background:linear-gradient(165deg,#111720 0%,#07090d 68%) !important;
  border-right:1px solid rgba(242,211,139,.25) !important;
  box-shadow:28px 0 70px rgba(0,0,0,.62) !important;
}
.eq-pro-drawer a,.eq-pro-sidebar a { border-radius:12px !important; }
.eq-pro-drawer a:hover,.eq-pro-drawer a.active,.eq-pro-sidebar a:hover,.eq-pro-sidebar a.active {
  color:var(--uv-ivory) !important; border-color:rgba(242,211,139,.3) !important;
  background:linear-gradient(90deg,rgba(215,170,80,.18),rgba(215,170,80,.035)) !important;
}

/* Main canvas and premium surfaces */
main,.wrap,.page { max-width:1580px; width:100%; margin-inline:auto; }
.hero {
  position:relative; overflow:hidden;
  background:linear-gradient(135deg,rgba(20,27,37,.96),rgba(9,12,17,.94)) !important;
  border:1px solid var(--uv-line) !important;
  border-radius:var(--uv-radius) !important;
  box-shadow:var(--uv-shadow),inset 0 1px rgba(255,255,255,.055) !important;
}
.hero::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle at 88% 15%,rgba(215,170,80,.12),transparent 28%),linear-gradient(110deg,transparent 58%,rgba(255,255,255,.022));
}
.hero::after {
  content:""; position:absolute; left:0; top:22px; bottom:22px; width:3px;
  border-radius:4px; background:linear-gradient(var(--uv-gold-light),var(--uv-gold-dark));
  box-shadow:0 0 18px rgba(215,170,80,.42);
}
.hero h1,h1 { color:#fbfaf5 !important; text-shadow:0 4px 24px rgba(0,0,0,.32); letter-spacing:-.025em; }
.eyebrow,.gold { color:var(--uv-gold-light) !important; letter-spacing:.17em !important; }
.muted,.hint { color:var(--uv-muted) !important; }
.panel,.box,.card,.toolbar,.tablewrap,.stats,.layout > section {
  border:1px solid var(--uv-line-soft) !important;
  background:linear-gradient(145deg,rgba(17,23,31,.96),rgba(9,12,17,.94)) !important;
  border-radius:var(--uv-radius) !important;
  box-shadow:0 15px 38px rgba(0,0,0,.23),inset 0 1px rgba(255,255,255,.035) !important;
}
.panel:hover,.card:hover { border-color:rgba(215,170,80,.2) !important; }

/* Metrics */
.stat,.stats > div,.cards > div,.metric,.kpi {
  position:relative; overflow:hidden;
  border:1px solid rgba(215,170,80,.14) !important;
  background:linear-gradient(150deg,rgba(22,29,39,.98),rgba(10,13,18,.96)) !important;
  border-radius:16px !important;
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 12px 30px rgba(0,0,0,.2) !important;
}
.stat::after,.stats > div::after,.cards > div::after,.metric::after,.kpi::after {
  content:""; position:absolute; left:14px; right:14px; top:0; height:1px;
  background:linear-gradient(90deg,transparent,var(--uv-gold),transparent); opacity:.75;
}
.stat strong,.stats strong,.cards strong,.metric strong,.kpi strong { color:var(--uv-gold-light) !important; }

/* Controls */
button,.btn,.action,input,select,textarea { font:inherit; }
button,.btn,.action,a.btn {
  min-height:42px; border-radius:11px !important; font-weight:800 !important;
  letter-spacing:.025em; transition:transform .16s ease,border-color .16s ease,filter .16s ease,box-shadow .16s ease !important;
}
button:not(.danger):not([class*="delete"]),.btn.primary,.action:not(.danger),.save {
  border:1px solid rgba(242,211,139,.58) !important;
}
button:hover,.btn:hover,.action:hover { transform:translateY(-1px); filter:brightness(1.08); }
button:active,.btn:active,.action:active { transform:translateY(0); }
.primary,.save,button[type="submit"] {
  color:#151005 !important;
  background:linear-gradient(135deg,#f3da99 0%,#c6953d 58%,#8a611d 100%) !important;
  box-shadow:0 9px 25px rgba(184,132,38,.18),inset 0 1px rgba(255,255,255,.5) !important;
}
.secondary,.btn:not(.primary):not(.danger),.action:not(.danger) {
  color:var(--uv-ivory) !important; background:linear-gradient(145deg,#181e27,#0c1016) !important;
}
.danger,[class*="delete"],button[onclick*="delete" i] {
  color:#fff !important; border:1px solid rgba(255,142,158,.48) !important;
  background:linear-gradient(135deg,#c83d59,#7b1f33) !important;
  box-shadow:0 8px 22px rgba(135,25,49,.21) !important;
}
input,select,textarea {
  max-width:100%; color:var(--uv-ivory) !important;
  background:rgba(4,7,10,.82) !important;
  border:1px solid rgba(173,187,204,.25) !important;
  border-radius:11px !important;
  box-shadow:inset 0 2px 8px rgba(0,0,0,.22) !important;
}
input:focus,select:focus,textarea:focus {
  outline:none !important; border-color:rgba(242,211,139,.7) !important;
  box-shadow:0 0 0 3px rgba(215,170,80,.12),inset 0 2px 8px rgba(0,0,0,.18) !important;
}
::placeholder { color:#7f8997 !important; opacity:1; }

/* Data-dense CRM views */
table { width:100%; border-collapse:separate !important; border-spacing:0 !important; }
thead th {
  position:sticky; top:0; z-index:2; color:var(--uv-gold-light) !important;
  background:linear-gradient(180deg,#171e28,#10151c) !important;
  border-bottom:1px solid rgba(215,170,80,.3) !important;
  font-size:11px !important; letter-spacing:.12em !important;
}
tbody tr { background:rgba(9,12,17,.42); transition:background .14s ease; }
tbody tr:nth-child(even) { background:rgba(20,27,36,.38); }
tbody tr:hover { background:rgba(215,170,80,.055) !important; }
td { border-bottom:1px solid rgba(255,255,255,.055) !important; }
.badge,.pill,.status,.live {
  border-radius:999px !important; box-shadow:inset 0 1px rgba(255,255,255,.08);
}
.live { color:#82e8bb !important; background:rgba(37,181,122,.09) !important; border-color:rgba(64,220,155,.28) !important; }

/* Login */
body:not([data-eq-module]) .login-card,body:not([data-eq-module]) .card,body:not([data-eq-module]) form {
  border-color:rgba(215,170,80,.3) !important;
  background:linear-gradient(150deg,rgba(18,24,32,.97),rgba(6,8,11,.98)) !important;
  box-shadow:0 35px 90px rgba(0,0,0,.62),inset 0 1px rgba(255,255,255,.06) !important;
}
body:not([data-eq-module]) h1 { background:linear-gradient(90deg,#fff,#e7c77e); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

/* Module polish */
[data-eq-module="command"] .flow,[data-eq-module="command"] .pulse,
[data-eq-module="security"] .finding,[data-eq-module="recovery"] .company-card,
[data-eq-module="leads"] .lead,[data-eq-module="lists"] .list-card {
  border-color:rgba(215,170,80,.14) !important;
  background:linear-gradient(145deg,rgba(18,24,32,.95),rgba(8,11,15,.95)) !important;
  box-shadow:0 12px 32px rgba(0,0,0,.2) !important;
}
[data-eq-module="gnrg"] .actions button { min-width:128px; }
[data-eq-module="review"] .tabs button,[data-eq-module="gnrg"] .tabs button { border-bottom-color:var(--uv-gold) !important; }

/* Prevent visual overflow at every workstation size */
.wrap,.page,main,section,.panel,.hero,.toolbar,.topline,.actions,.grid,.stats,.cards { min-width:0; }
.grid,.stats,.cards { max-width:100%; }
.tablewrap { max-width:100%; overflow:auto; scrollbar-color:var(--uv-gold-dark) #090c10; }
body > * { max-width:100%; }

@media (max-width:1100px) {
  .eq-pro-topbar { min-height:74px !important; }
  .hero { border-radius:15px !important; }
  .hero h1,h1 { font-size:clamp(28px,5vw,48px) !important; }
  .stats,.cards { grid-template-columns:repeat(auto-fit,minmax(150px,1fr)) !important; }
  [data-eq-module="gnrg"] .actions button { min-width:110px; }
}
@media (max-width:700px) {
  :root { --uv-radius:14px; }
  .hero,.panel,.box { padding:18px !important; }
  .topline,.actions,.toolbar { gap:9px !important; }
  button,.btn,.action { min-height:44px; }
  .eq-pro-title::after { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}

/* v5.36 — final executive refinement. Visual-only, intentionally conservative. */
.eq-pro-title::after { display:none !important; content:none !important; }
.eq-pro-topbar {
  height:72px !important; min-height:72px !important; padding-inline:20px !important;
  background:linear-gradient(180deg,rgba(13,17,23,.985),rgba(7,9,13,.985)) !important;
}
body[data-eq-module] { padding-top:72px !important; }
.eq-pro-brandmark img { width:40px !important; height:40px !important; }
.eq-pro-brandmark b { color:#e5bd70 !important; }
.eq-pro-kicker { color:#8994a2 !important; letter-spacing:.15em !important; }
.eq-pro-live { color:#a6d8ba !important; background:rgba(48,166,111,.055) !important; }
[data-eq-module="command"] .hero > .live { display:none !important; }

/* One restrained visual language: gold identifies action, color identifies status only. */
body[data-eq-module] :where(.panel,.box,.card,.toolbar,.tablewrap) {
  border-color:rgba(255,255,255,.085) !important;
  box-shadow:0 14px 34px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.026) !important;
}
body[data-eq-module] .hero {
  border-color:rgba(215,170,80,.18) !important;
  border-left:2px solid rgba(215,170,80,.68) !important;
  border-radius:16px !important;
  box-shadow:0 18px 42px rgba(0,0,0,.22) !important;
}
body[data-eq-module] :where(.stat,.kpi,.metric,.stats>div,.cards>div) {
  border-color:rgba(255,255,255,.085) !important;
  border-top:1px solid rgba(215,170,80,.24) !important;
  border-radius:13px !important;
  background:linear-gradient(155deg,rgba(19,25,33,.98),rgba(10,13,18,.98)) !important;
  box-shadow:0 9px 24px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.03) !important;
}
body[data-eq-module] :where(.stat,.kpi,.metric,.stats>div,.cards>div)::after { opacity:.28 !important; }
body[data-eq-module] :where(.stat,.kpi,.metric,.stats>div,.cards>div) strong { color:#f2eee5 !important; }

/* Company dashboards */
body[data-eq-module="gnrg"] .top {
  min-height:94px !important; padding:14px 18px !important;
  border-color:rgba(215,170,80,.16) !important;
}
body[data-eq-module="gnrg"] .top .brand { gap:18px !important; }
body[data-eq-module="gnrg"] .top .brand img {
  width:180px !important; height:64px !important; padding:10px 14px !important;
  object-fit:contain !important; object-position:center !important;
  background:#f4f1e9 !important; border:1px solid rgba(215,170,80,.24) !important;
  border-radius:12px !important; filter:none !important; box-shadow:0 8px 22px rgba(0,0,0,.2) !important;
}
body[data-eq-module="gnrg"] .top .brand h1 { font-size:clamp(22px,2.35vw,34px) !important; line-height:1.08 !important; }
body[data-eq-module="gnrg"] .stats { gap:8px !important; }
body[data-eq-module="gnrg"] .stat { min-height:102px !important; padding:15px !important; }
body[data-eq-module="gnrg"] .stat strong { color:#f1ede4 !important; }
body[data-eq-module="gnrg"] .stat:nth-child(2) strong,
body[data-eq-module="gnrg"] .stat:nth-child(3) strong { color:#e9c77f !important; }
body[data-eq-module="gnrg"] .stat.sales strong { color:#83d5a5 !important; }
body[data-eq-module="gnrg"] .stat.noshow strong,
body[data-eq-module="gnrg"] .stat.notclose strong,
body[data-eq-module="gnrg"] .stat.credit strong,
body[data-eq-module="gnrg"] .stat.rep strong { color:#dda0a5 !important; }
body[data-eq-module="gnrg"] .stat:nth-child(n) { border-top-color:rgba(215,170,80,.24) !important; }
body[data-eq-module="gnrg"] .stat.sales { border-top-color:rgba(92,196,137,.5) !important; }
body[data-eq-module="gnrg"] :where(.stat.noshow,.stat.notclose,.stat.credit,.stat.rep) { border-top-color:rgba(205,101,112,.42) !important; }

body[data-eq-module="gnrg"] .toolbar { padding:13px !important; border-radius:14px !important; }
body[data-eq-module="gnrg"] .view-toggle button {
  min-height:40px !important; background:#11161d !important;
  color:#c7ced7 !important; border-color:rgba(255,255,255,.11) !important;
  box-shadow:none !important;
}
body[data-eq-module="gnrg"] .view-toggle button.active {
  background:linear-gradient(135deg,#d5a84f,#8b611c) !important;
  color:#160f05 !important; border-color:#e1c179 !important;
  box-shadow:0 6px 17px rgba(141,96,20,.18) !important;
}
body[data-eq-module="gnrg"] #tableView { border-radius:14px !important; }
body[data-eq-module="gnrg"] #tableView thead th {
  color:#c9b27f !important; background:linear-gradient(180deg,#161c24,#10151c) !important;
  border-bottom-color:rgba(215,170,80,.18) !important; letter-spacing:.09em !important;
}
body[data-eq-module="gnrg"] #tableView .actions button.ghost {
  background:linear-gradient(145deg,#171d25,#0d1117) !important;
  color:#e8e4da !important; border-color:rgba(215,170,80,.26) !important;
  box-shadow:none !important;
}
body[data-eq-module="gnrg"] #tableView .actions button.gold {
  background:linear-gradient(135deg,#d8ad58,#8c621e) !important;
  color:#160f05 !important; border-color:#e4c57e !important;
  box-shadow:0 5px 14px rgba(123,81,14,.16) !important;
}
body[data-eq-module="gnrg"] #tableView .actions button.reject {
  background:linear-gradient(135deg,#a93b4e,#702131) !important;
  color:#fff !important; border-color:rgba(238,117,137,.48) !important;
  box-shadow:none !important;
}

/* Keep the assistant useful without letting it cover metrics or status controls. */
body[data-eq-module="gnrg"] #equinoxia-launcher {
  top:auto !important; bottom:18px !important; right:18px !important;
  width:54px !important; height:54px !important; opacity:.94;
}
body[data-eq-module="gnrg"] #equinoxia-panel {
  top:auto !important; bottom:84px !important; right:18px !important;
  height:min(600px,calc(100vh - 108px)) !important;
}

/* Root login: fit normal laptop screens and avoid duplicated branding. */
body:not([data-eq-module]) .page {
  padding:28px clamp(28px,4.5vw,72px) 78px !important;
  gap:clamp(34px,5vw,76px) !important;
}
body:not([data-eq-module]) .login-card {
  max-height:calc(100vh - 104px); overflow-y:auto !important;
  padding:27px 32px 25px !important; border-radius:20px !important;
}
body:not([data-eq-module]) .login-card > .logo { display:none !important; }
body:not([data-eq-module]) .brand-kicker { text-align:center; margin-top:0 !important; }
body:not([data-eq-module]) .login-card h1 { margin:14px 0 5px !important; font-size:clamp(27px,2.4vw,34px) !important; }
body:not([data-eq-module]) .login-card .sub { margin:0 0 17px !important; }
body:not([data-eq-module]) .login-card form {
  background:transparent !important; border:0 !important; border-radius:0 !important;
  box-shadow:none !important; padding:0 !important;
}
body:not([data-eq-module]) .login-card input { min-height:43px !important; }
body:not([data-eq-module]) .login-card button { min-height:43px !important; }
body:not([data-eq-module]) .jai-wrap summary { width:56px !important; height:56px !important; }
body:not([data-eq-module]) .jai-wrap summary img { width:50px !important; height:50px !important; }

/* Secondary controls should support the content instead of competing with it. */
body[data-eq-module] button.ghost,
body[data-eq-module] .btn:not(.primary):not(.danger),
body[data-eq-module] .action.secondary {
  background:linear-gradient(145deg,#171d25,#0d1117) !important;
  color:#e6e2d9 !important; border-color:rgba(255,255,255,.13) !important;
  box-shadow:none !important;
}
body[data-eq-module] input,body[data-eq-module] select,body[data-eq-module] textarea {
  background:#090d12 !important; border-color:rgba(255,255,255,.15) !important;
}

@media(max-width:1100px) {
  .eq-pro-topbar { height:64px !important; min-height:64px !important; }
  body[data-eq-module] { padding-top:64px !important; }
  body[data-eq-module="gnrg"] .top .brand img { width:160px !important; height:58px !important; }
}
@media(max-width:700px) {
  .eq-pro-topbar { height:58px !important; min-height:58px !important; padding-inline:9px !important; }
  body[data-eq-module] { padding-top:58px !important; }
  body[data-eq-module="gnrg"] .top .brand { align-items:flex-start !important; }
  body[data-eq-module="gnrg"] .top .brand img { width:148px !important; height:56px !important; }
  body:not([data-eq-module]) .login-card { max-height:none; padding:24px 20px !important; }
  body:not([data-eq-module]) .page { padding:22px 16px 40px !important; }
}
