/* NOVIQ V13.2 — unified visual system + deterministic post-login entry.
   Loaded last on purpose. It resolves legacy V5.1 overview hiding without renaming
   historical modules, and aligns active V10–V13 surfaces to one calm palette. */
html[data-noviq-v132="true"]{
  --nq132-bg:#060912;
  --nq132-bg-deep:#040711;
  --nq132-surface:#0b1120;
  --nq132-surface-2:#101827;
  --nq132-surface-3:#151f31;
  --nq132-line:rgba(174,194,255,.11);
  --nq132-line-strong:rgba(174,194,255,.19);
  --nq132-text:#f5f7fb;
  --nq132-muted:#8d9aaf;
  --nq132-accent:#9fb5ff;
  --nq132-accent-strong:#c0ccff;
  --nq132-violet:#b3a3ff;
  --nq132-ok:#78dca8;
  --nq132-warn:#f2c978;
  --nq132-bad:#ff8b94;
  --nq10-bg:var(--nq132-bg);
  --nq10-card:var(--nq132-surface);
  --nq10-card2:var(--nq132-surface-2);
  --nq10-line:var(--nq132-line);
  --nq10-text:var(--nq132-text);
  --nq10-muted:var(--nq132-muted);
  --nq10-orange:var(--nq132-accent);
  --nq10-orange2:var(--nq132-accent-strong);
  --nq11-bg:rgba(11,17,32,.88);
  --nq11-line:var(--nq132-line);
  --nq11-soft:rgba(174,194,255,.055);
  --nq11-text:var(--nq132-text);
  --nq11-muted:var(--nq132-muted);
  --nq11-accent:var(--nq132-accent);
}

html[data-noviq-v132="true"],
html[data-noviq-v132="true"] body{
  min-height:100%;
  background:
    radial-gradient(circle at 50% -12%,rgba(114,145,238,.16),transparent 34%),
    radial-gradient(circle at 92% 8%,rgba(155,124,238,.08),transparent 25%),
    linear-gradient(180deg,var(--nq132-bg) 0%,var(--nq132-bg-deep) 100%)!important;
  color:var(--nq132-text);
}

/* Critical V13.2 entry fix.
   V5.1 hid every direct overview child except the old Apple HUD with !important.
   V10 mounts #nq100Home into that exact location. This final rule intentionally wins. */
html[data-noviq-v132="true"] .app-view[data-view-panel="overview"] > #nq100Home{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative;
  z-index:2;
}
html[data-noviq-v132="true"] .app-view[data-view-panel="overview"] > #noviqAppleHud,
html[data-noviq-v132="true"] .app-view[data-view-panel="overview"] > #v91LuxuryDashboard{
  display:none!important;
}
html[data-noviq-v132="true"] #betaArea{min-height:100svh}
html[data-noviq-v132="true"] .dashboard-main{width:min(100%,1040px);padding-left:18px;padding-right:18px}

/* Primary NOVIQ ONE surface */
html[data-noviq-v132="true"] .nq100-home{max-width:960px}
html[data-noviq-v132="true"] .nq100-top{border-bottom-color:rgba(174,194,255,.055)}
html[data-noviq-v132="true"] .nq100-brand>span{
  background:linear-gradient(145deg,#dbe5ff 0%,#9fb5ff 58%,#a99cf4 100%);
  color:#07101e;
  box-shadow:0 10px 34px rgba(118,149,241,.20)
}
html[data-noviq-v132="true"] .nq100-mini,
html[data-noviq-v132="true"] .nq100-avatar{
  background:rgba(13,20,34,.82);
  border-color:var(--nq132-line);
  color:#a9b7cb
}
html[data-noviq-v132="true"] .nq100-avatar{color:var(--nq132-accent-strong)}
html[data-noviq-v132="true"] .nq100-eyebrow,
html[data-noviq-v132="true"] .nq100-result-head small,
html[data-noviq-v132="true"] .nq100-section-head>button,
html[data-noviq-v132="true"] .nq100-knowledge small,
html[data-noviq-v132="true"] .nq100-authority-card small,
html[data-noviq-v132="true"] .nq100-one-workspace>small{
  color:var(--nq132-accent)
}
html[data-noviq-v132="true"] .nq100-hero h1 span{color:#8f9cb0}
html[data-noviq-v132="true"] .nq100-hero>p{color:#929fb2}
html[data-noviq-v132="true"] .nq100-one,
html[data-noviq-v132="true"] .nq100-one-workspace form{
  border-color:rgba(174,194,255,.14);
  background:linear-gradient(180deg,rgba(16,24,39,.98),rgba(8,13,23,.99));
  box-shadow:0 30px 100px rgba(0,0,0,.40),0 1px 0 rgba(255,255,255,.035) inset
}
html[data-noviq-v132="true"] .nq100-one:focus-within{
  border-color:rgba(159,181,255,.42);
  box-shadow:0 34px 110px rgba(0,0,0,.44),0 0 0 3px rgba(159,181,255,.07)
}
html[data-noviq-v132="true"] .nq100-send,
html[data-noviq-v132="true"] .nq100-one-workspace form button:last-child,
html[data-noviq-v132="true"] .nq100-authority-card button{
  background:linear-gradient(145deg,#dbe5ff,#9fb5ff)!important;
  color:#07101c!important;
  box-shadow:0 8px 26px rgba(111,143,235,.16)
}
html[data-noviq-v132="true"] .nq100-mic.is-listening{
  color:var(--nq132-accent-strong)!important;
  background:rgba(159,181,255,.09)!important
}
html[data-noviq-v132="true"] .nq100-quick button,
html[data-noviq-v132="true"] .nq100-now-card,
html[data-noviq-v132="true"] .nq100-life-card,
html[data-noviq-v132="true"] .nq100-cap,
html[data-noviq-v132="true"] .nq100-answer,
html[data-noviq-v132="true"] .nq100-workspace-answer{
  border-color:var(--nq132-line);
  background-color:var(--nq132-surface)
}
html[data-noviq-v132="true"] .nq100-now-card,
html[data-noviq-v132="true"] .nq100-life-card{
  background:linear-gradient(145deg,rgba(16,24,39,.94),rgba(8,13,23,.97))
}
html[data-noviq-v132="true"] .nq100-life-card{
  background:
    radial-gradient(circle at 100% 0,rgba(159,181,255,.07),transparent 40%),
    linear-gradient(145deg,rgba(16,24,39,.94),rgba(8,13,23,.97))
}
html[data-noviq-v132="true"] .nq100-now-card>span,
html[data-noviq-v132="true"] .nq100-life-card .nq100-icon,
html[data-noviq-v132="true"] .nq100-result-row>span{
  background:rgba(159,181,255,.085);
  color:var(--nq132-accent)
}
html[data-noviq-v132="true"] .nq100-action{
  border-color:rgba(159,181,255,.25);
  background:rgba(159,181,255,.08);
  color:#cbd6ff
}
html[data-noviq-v132="true"] .nq100-knowledge,
html[data-noviq-v132="true"] .nq100-authority-card,
html[data-noviq-v132="true"] .nq100-proactive{
  border-color:rgba(159,181,255,.16);
  background:linear-gradient(120deg,rgba(159,181,255,.065),rgba(179,163,255,.025))
}
html[data-noviq-v132="true"] .nq100-one-orb{
  background:radial-gradient(circle,#dbe5ff,#9fb5ff 62%,#7668c6);
  box-shadow:0 0 64px rgba(125,153,240,.18)
}

/* Outcome / process / bureaucracy / infrastructure cards use the same material. */
html[data-noviq-v132="true"] .nq110-lifeos,
html[data-noviq-v132="true"] .nq120-bureau,
html[data-noviq-v132="true"] .nq130-mission,
html[data-noviq-v132="true"] .nq130-answer,
html[data-noviq-v132="true"] .nq115-life-row,
html[data-noviq-v132="true"] .dashboard-card{
  border-color:var(--nq132-line)!important;
  background:linear-gradient(180deg,rgba(15,23,38,.92),rgba(8,13,23,.96))!important;
  box-shadow:none
}
html[data-noviq-v132="true"] .nq110-signal,
html[data-noviq-v132="true"] .nq110-thread,
html[data-noviq-v132="true"] .nq110-status-grid article,
html[data-noviq-v132="true"] .nq130-metrics span,
html[data-noviq-v132="true"] .nq130-next,
html[data-noviq-v132="true"] .nq130-progress{
  border-color:rgba(174,194,255,.085);
  background:rgba(174,194,255,.035)
}
html[data-noviq-v132="true"] .nq115-life-row:hover{
  border-color:rgba(159,181,255,.24)!important;
  background:linear-gradient(180deg,rgba(20,30,48,.96),rgba(10,16,27,.98))!important
}
html[data-noviq-v132="true"] .nq115-life-row>span,
html[data-noviq-v132="true"] .nq110-signal>span,
html[data-noviq-v132="true"] .nq110-thread-top>span{
  color:var(--nq132-accent);
  background:rgba(159,181,255,.09)
}
html[data-noviq-v132="true"] .nq115-text-button{color:var(--nq132-accent)!important}
html[data-noviq-v132="true"] .nq120-bureau-head button,
html[data-noviq-v132="true"] .nq120-answer button,
html[data-noviq-v132="true"] .nq130-head button,
html[data-noviq-v132="true"] .nq130-answer button{
  border:1px solid rgba(159,181,255,.14);
  background:rgba(159,181,255,.10);
  color:#dce5ff
}
html[data-noviq-v132="true"] .nq120-autofill i{
  background:linear-gradient(90deg,var(--nq132-accent) var(--nq120-progress),rgba(255,255,255,.08) var(--nq120-progress))
}

/* Navigation */
html[data-noviq-v132="true"] .v91-bottom{
  background:rgba(8,13,23,.92)!important;
  border-color:var(--nq132-line)!important;
  box-shadow:0 20px 70px rgba(0,0,0,.46)!important
}
html[data-noviq-v132="true"] .v91-bottom button.active{
  color:#eef3ff!important;
  background:rgba(159,181,255,.06)!important
}
html[data-noviq-v132="true"] .v91-bottom .v91-one-nav>span:first-child{
  background:linear-gradient(145deg,#dbe5ff,#9fb5ff)!important;
  color:#07101c!important;
  box-shadow:0 7px 24px rgba(111,143,235,.20)!important
}

/* Recovery UI should look like the same product, not a legacy orange screen. */
html[data-noviq-v132="true"] .nq100-recovery{
  border-color:rgba(159,181,255,.35);
  background:var(--nq132-surface)
}
html[data-noviq-v132="true"] .nq100-recovery small{color:var(--nq132-accent)}
html[data-noviq-v132="true"] .nq100-recovery button:first-child{
  background:linear-gradient(145deg,#dbe5ff,#9fb5ff);
  color:#07101c
}

@media(max-width:760px){
  html[data-noviq-v132="true"] .dashboard-main{padding-left:12px;padding-right:12px}
  html[data-noviq-v132="true"] .nq100-home{padding-top:8px}
}
