/* NEO Theme Engine / Blue Reference v1 — official visual contract.
   Must be loaded after legacy styles. No external fonts, UI frameworks or network assets.
   Scoped to html[data-neo-theme="neo-blue-reference-v1"]. */
html[data-neo-theme="neo-blue-reference-v1"]{
  color-scheme:light;
  --neo-blue:#0033cc;
  --neo-blue-hi:#0757ff;
  --neo-blue-deep:#00194e;
  --neo-ink:#071733;
  --neo-white:#fff;
  --neo-pale:#edf5ff;
  --neo-blue-line:#c5daff;
  --neo-positive:#00954f;
  --neo-warning:#ed9300;
  --neo-neutral:#8798b2;
  --neo-radius:12px;
  --neo-panel-radius:12px;
  --neo-radius-panel:12px;
  --neo-radius-control:8px;
  --neo-border:rgba(5,65,160,.16);
  --neo-border-strong:rgba(6,54,130,.28);
  --neo-surface:#fff;
  --neo-surface-2:#fff;
  --neo-surface-3:#eaf3ff;
  --neo-text:#071733;
  --neo-text-2:#0b2243;
  --neo-text-3:#435c7d;
  --neo-action:#0033cc;
  --neo-action-text:#fff;
  --neo-focus:#0033cc;
  --neo-sidebar-width:246px;
  --neo-space-1:4px;
  --neo-space-2:8px;
  --neo-space-3:12px;
  --neo-space-4:16px;
  --neo-space-5:20px;
  --neo-space-6:24px;
  font-family:Inter,Arial,system-ui,-apple-system,sans-serif;
  background:#eff6ff;
}
html[data-neo-theme="neo-blue-reference-v1"] *,
html[data-neo-theme="neo-blue-reference-v1"] *::before,
html[data-neo-theme="neo-blue-reference-v1"] *::after{box-sizing:border-box}
html[data-neo-theme="neo-blue-reference-v1"] body{
  color:var(--neo-ink)!important;
  background:radial-gradient(ellipse 67% 31% at 92% -2%,rgba(0,75,255,.26),transparent 85%),linear-gradient(145deg,#f8fbff 0%,#f1f7ff 50%,#e6f2ff 100%)!important;
  font:400 14px/1.5 Inter,Arial,system-ui,sans-serif!important;
  min-width:320px;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(h1,h2,h3,h4,strong){color:var(--neo-ink)!important}
html[data-neo-theme="neo-blue-reference-v1"] :focus-visible{outline:2px solid var(--neo-blue)!important;outline-offset:2px}
html[data-neo-theme="neo-blue-reference-v1"] :is(button,a,summary,[role="button"]){touch-action:manipulation}
html[data-neo-theme="neo-blue-reference-v1"] :is(button,input,select,textarea,dialog,.btn,.card,.panel){box-shadow:none!important}
/* Shared shell: soft navy/blue gradient in brand area; white sidebar fades into shell */
html[data-neo-theme="neo-blue-reference-v1"] .app{
  background:transparent!important;
  grid-template-columns:var(--neo-sidebar-width) minmax(0,1fr)!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .app>.neo-main,
html[data-neo-theme="neo-blue-reference-v1"] .app>main{
  background:transparent!important;
  min-width:0!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar{
  background:linear-gradient(180deg,#092a67 0,#061d4c 105px,#eef5ff 106px,#fff 42%,#e6f2ff 100%)!important;
  border-right:1px solid rgba(16,75,185,.12)!important;
  border-radius:0 16px 28px 0!important;
  overflow:hidden!important;
  box-shadow:4px 0 26px rgba(14,70,151,.08)!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-head{
  min-height:106px!important;
  padding:12px 24px!important;
  background:linear-gradient(128deg,#061a40 5%,#07377f 67%,#075ee8 130%)!important;
  border:0!important;
  border-radius:0!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-head .neo-wordmark{
  background:transparent!important;
  padding:0!important;
  border:0!important;
  width:auto!important;
  box-shadow:none!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-head .neo-brand-official{
  width:126px!important;
  max-width:100%!important;
  height:auto!important;
  background:transparent!important;
  padding:0!important;
  border:0!important;
  filter:none!important;
  object-fit:contain!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-close{
  color:#fff!important;border:1px solid rgba(255,255,255,.6)!important;background:rgba(255,255,255,.06)!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-nav{padding:18px 12px 20px!important}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-group{margin:0 0 17px!important}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-group h2{
  border:0!important;padding:9px 14px!important;
  color:#172d53!important;font-size:10px!important;letter-spacing:.105em!important;
  background:transparent!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-link{
  border:0!important;
  min-height:43px!important;
  border-radius:7px!important;
  padding:10px 13px!important;
  color:var(--neo-ink)!important;
  background:transparent!important;
  font-weight:600!important;
  gap:12px!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-link.active,
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-link[aria-current="page"]{
  background:#d9e9ff!important;color:var(--neo-blue)!important;
  border:0!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-link:hover{background:#e4f0ff!important;color:var(--neo-blue)!important}
html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-foot{
  border-top:1px solid var(--neo-blue-line)!important;
  background:transparent!important;
}
/* Topbar and page content: identical grammar on every route */
html[data-neo-theme="neo-blue-reference-v1"] .neo-topbar{
  background:rgba(255,255,255,.97)!important;
  border:1px solid rgba(15,80,190,.11)!important;
  border-bottom:1px solid rgba(15,80,190,.13)!important;
  border-radius:13px 13px 0 0!important;
  box-shadow:0 5px 22px rgba(26,71,150,.045)!important;
  margin:24px 24px 0!important;
  min-height:65px!important;
  padding:10px 26px!important;
  position:relative!important;
  gap:12px!important;
  z-index:20!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-page-title{
  margin-left:0!important;flex:1 1 auto!important;text-align:left!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-page-title h1{
  font-size:17px!important;font-weight:750!important;line-height:1.2!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-page-title p{
  color:#40577d!important;font-size:11px!important;line-height:1.35!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-menu-button{
  display:inline-flex!important;width:38px!important;height:38px!important;
  flex:0 0 38px!important;border:0!important;
  background:transparent!important;color:#071733!important;
  border-radius:7px!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-main>.content{
  width:min(100%,1660px)!important;
  margin:0 auto!important;
  padding:24px!important;
  background:transparent!important;
}
/* The single official page-title style: blue indicator + gradient halo, no dark box */
html[data-neo-theme="neo-blue-reference-v1"] :is(.neo-page-head,.neo-ops-head,.neo-enterprise-heading,.nm-heading,.v2-connector-heading,.auto-flow-intro,.neo-intro,.v2-page-heading){
  border:0!important;
  border-left:3px solid var(--neo-blue)!important;
  border-radius:0!important;
  background:linear-gradient(90deg,rgba(226,240,255,.9) 0%,rgba(237,246,255,.55) 55%,transparent 100%)!important;
  padding:13px 19px!important;
  gap:15px!important;
  margin-bottom:18px!important;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(.neo-page-head,.neo-ops-head,.neo-enterprise-heading,.nm-heading,.v2-connector-heading,.auto-flow-intro,.neo-intro) h2{
  font-size:clamp(22px,2.4vw,31px)!important;font-weight:760!important;letter-spacing:-.025em!important;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(.eyebrow,.neo-kicker,.nm-kicker,.neo-enterprise-eyebrow){color:#193a79!important;font-weight:750!important;letter-spacing:.09em!important}
/* Reusable surfaces, metrics, rows, action cards and media pickers */
html[data-neo-theme="neo-blue-reference-v1"] :is(.card,.panel,.neo-surface,.dp-panel,.nm-section,.nm-automations,.v2-connector-card,.v2-card,.auth-card,.standalone-card,.install-card){
  background:rgba(255,255,255,.96)!important;
  color:var(--neo-ink)!important;
  border:1px solid var(--neo-blue-line)!important;
  border-radius:var(--neo-radius)!important;
  box-shadow:0 6px 18px rgba(18,83,166,.05)!important;
  min-width:0;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(.mini-stats span,.neo-ops-status-item,.stat,.maint-chips span,.maint-topchips span,.pipeline span,.v2-status-row){
  background:#fff!important;
  border:1px solid var(--neo-blue-line)!important;
  border-left:3px solid var(--neo-blue)!important;
  border-radius:9px!important;
  padding:12px 13px!important;
  color:var(--neo-ink)!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-ops-console{
  border:0!important;border-radius:12px!important;overflow:hidden!important;
  box-shadow:0 7px 30px rgba(18,83,166,.07)!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-ops-console .neo-ops-head{
  background:radial-gradient(ellipse at 87% 3%,rgba(0,89,255,.42),transparent 57%),linear-gradient(105deg,#f9fcff 0%,#eaf4ff 61%,#cbe6ff 100%)!important;
  padding:24px 24px 17px!important;margin:0!important;
  border:0!important;
}
html[data-neo-theme="neo-blue-reference-v1"] .neo-ops-console .neo-ops-head::before{display:none!important;content:none!important}
html[data-neo-theme="neo-blue-reference-v1"] .neo-ops-section h3{
  margin:0 0 12px!important;padding:0 0 8px 12px!important;
  color:var(--neo-ink)!important;border:0!important;border-left:3px solid var(--neo-blue)!important;
  background:transparent!important;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(.neo-ops-list li,.publication-item,.account-item,.text-item){
  border-bottom:1px solid #dce8f8!important;background:transparent!important;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(.neo-ops-list li,.publication-item,.account-item,.text-item):hover{background:#f1f7ff!important}
html[data-neo-theme="neo-blue-reference-v1"] :is(.filters,.neo-toolbar,.nm-filter){
  background:#fff!important;border:1px solid var(--neo-blue-line)!important;border-radius:9px!important;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(.btn,.neo-btn,.nm-button,.neo-enterprise-action,button:not(.neo-menu-button):not(.neo-sidebar-close),input[type="submit"]){
  border-radius:8px!important;min-height:39px;box-shadow:none!important;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(.btn.primary,.neo-btn.primary,.nm-button-primary,.neo-enterprise-action,button.primary,input[type="submit"]){
  color:#fff!important;
  border:1px solid var(--neo-blue)!important;
  background:linear-gradient(115deg,#0657ff 0%,#0033cc 92%)!important;
  font-weight:700!important;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(.btn.secondary,.neo-btn.secondary,.btn.ghost,.nm-button,button.secondary){
  color:var(--neo-ink)!important;background:#fff!important;
  border:1px solid #a5bcdf!important;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  background:#fff!important;border:1px solid #afc8ef!important;
  border-radius:7px!important;color:var(--neo-ink)!important;
  min-height:43px!important;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(input,select,textarea):focus-visible{border-color:#0033cc!important;outline:2px solid rgba(0,51,204,.3)!important}
html[data-neo-theme="neo-blue-reference-v1"] :is(label,.muted,.help,.hint,.card p,.panel p,small){color:#344c70!important}
html[data-neo-theme="neo-blue-reference-v1"] :is(.badge,.pill,.tag,.status,.nm-state){
  border:1px solid #c9dcff!important;color:#163a70!important;
  border-radius:7px!important;background:#f5f9ff!important;
}
html[data-neo-theme="neo-blue-reference-v1"] :is(.table-wrap,.neo-table-wrap,.nm-table-wrap,table){border-color:var(--neo-blue-line)!important;border-radius:8px!important}
html[data-neo-theme="neo-blue-reference-v1"] :is(th,.neo-table th){background:#eff6ff!important;color:#122d60!important}
html[data-neo-theme="neo-blue-reference-v1"] :is(th,td){border-bottom:1px solid #e1ebfa!important}
/* Every dialog, nested window and dropdown is part of the same surface family. */
html[data-neo-theme="neo-blue-reference-v1"] :is(dialog,.modal,[role="dialog"],.connector-dialog){
  background:#fff!important;color:var(--neo-ink)!important;
  border:1px solid #c7dcff!important;border-radius:12px!important;
  box-shadow:0 20px 64px rgba(6,39,110,.23)!important;
  max-width:min(94vw,800px)!important;
}
html[data-neo-theme="neo-blue-reference-v1"] dialog::backdrop{background:rgba(3,28,77,.47)!important;backdrop-filter:blur(3px)}
html[data-neo-theme="neo-blue-reference-v1"] :is(details,.model,.maint-launch-card){border-radius:9px!important;border-color:var(--neo-blue-line)!important}
/* User bubbles use approved saturated blue; assistant bubbles remain white. */
html[data-neo-theme="neo-blue-reference-v1"] .ai-message{border-radius:9px!important;padding:13px 15px!important}
html[data-neo-theme="neo-blue-reference-v1"] .ai-message.from-user{background:linear-gradient(120deg,#0550ee,#0033cc)!important;color:#fff!important}
html[data-neo-theme="neo-blue-reference-v1"] .ai-message.from-user *{color:#fff!important}
html[data-neo-theme="neo-blue-reference-v1"] .ai-message.from-ai{background:#fff!important;border:1px solid #c5d9ef!important}
html[data-neo-theme="neo-blue-reference-v1"] .ai-message.from-ai *{color:#102342!important}
html[data-neo-theme="neo-blue-reference-v1"] .neo-system-footer{border-color:#d1dff0!important;background:transparent!important}
@media(max-width:820px){
  html[data-neo-theme="neo-blue-reference-v1"] .app{display:block!important}
  html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar{
    width:min(296px,82vw)!important;max-width:82vw!important;
    border-radius:0 14px 14px 0!important;
    background:linear-gradient(180deg,#061d4c 0,#083c85 76px,#fff 77px,#eff6ff 100%)!important;
  }
  html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-head{min-height:76px!important;padding:10px 14px!important}
  html[data-neo-theme="neo-blue-reference-v1"] .neo-sidebar-head .neo-brand-official{width:135px!important}
  html[data-neo-theme="neo-blue-reference-v1"] .neo-topbar{
    margin:0!important;border-radius:0!important;min-height:62px!important;
    padding:9px 12px!important;
  }
  html[data-neo-theme="neo-blue-reference-v1"] .neo-main>.content{padding:16px 12px!important}
  html[data-neo-theme="neo-blue-reference-v1"] :is(.neo-page-head,.neo-ops-head,.neo-enterprise-heading,.nm-heading,.v2-connector-heading,.auto-flow-intro,.neo-intro){padding:14px!important}
  html[data-neo-theme="neo-blue-reference-v1"] .neo-ops-console .neo-ops-head{padding:18px 15px!important}
  html[data-neo-theme="neo-blue-reference-v1"] :is(dialog,.modal,[role="dialog"]){max-height:calc(100dvh - 30px)!important;overflow:auto!important}
}
@media(prefers-reduced-motion:reduce){
  html[data-neo-theme="neo-blue-reference-v1"] *,
  html[data-neo-theme="neo-blue-reference-v1"] *::before,
  html[data-neo-theme="neo-blue-reference-v1"] *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
