/* ORBIS FORCE INTEL UI/UX V2
   Applies even if an older template is still being rendered.
   Scope: portal visual layer only. No engine/runtime changes. */
:root{
  --ofi-bg:#050914;
  --ofi-bg2:#07152b;
  --ofi-bg3:#0a2348;
  --ofi-blue:#1473e6;
  --ofi-cyan:#30d5ff;
  --ofi-teal:#2dd4bf;
  --ofi-green:#22c55e;
  --ofi-amber:#f59e0b;
  --ofi-red:#ef4444;
  --ofi-ink:#07111f;
  --ofi-muted:#52627a;
  --ofi-line:#dce8f4;
  --ofi-panel:rgba(255,255,255,.94);
  --ofi-panel2:rgba(247,251,255,.95);
  --ofi-radius:24px;
  --ofi-shadow:0 24px 80px rgba(7,17,31,.14);
  --ofi-shadow2:0 10px 34px rgba(7,17,31,.10);
  --ofi-glow:0 0 0 1px rgba(48,213,255,.18),0 22px 70px rgba(20,115,230,.18);
}
html{scroll-behavior:smooth}
body.orbis-force-intel-v2{
  background:
    radial-gradient(circle at 80% -10%, rgba(45,212,191,.18), transparent 28rem),
    radial-gradient(circle at 20% 0%, rgba(20,115,230,.20), transparent 34rem),
    linear-gradient(180deg,#f4f8fc 0%,#eef5fb 54%,#eaf2fb 100%) !important;
  color:var(--ofi-ink) !important;
  text-rendering:optimizeLegibility;
}
body.orbis-force-intel-v2:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(7,17,31,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,17,31,.035) 1px, transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(180deg,rgba(0,0,0,.35),transparent 78%);
  z-index:-1;
}
body.orbis-force-intel-v2 .app-shell{
  background:transparent !important;
}
body.orbis-force-intel-v2 .sidebar{
  background:
    radial-gradient(circle at 20% 0%, rgba(48,213,255,.14), transparent 16rem),
    linear-gradient(180deg,#041126 0%,#061a36 50%,#031024 100%) !important;
  border-right:1px solid rgba(48,213,255,.16) !important;
  box-shadow:18px 0 60px rgba(1,8,20,.22);
}
body.orbis-force-intel-v2 .brand{
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:14px;
}
body.orbis-force-intel-v2 .brand strong{
  letter-spacing:.16em;
  font-weight:950;
}
body.orbis-force-intel-v2 .user-chip,
body.orbis-force-intel-v2 .sidebar-help,
body.orbis-force-intel-v2 .side-nav a,
body.orbis-force-intel-v2 .logout button{
  border:1px solid rgba(180,215,255,.18) !important;
  background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.045)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 12px 34px rgba(0,0,0,.14);
}
body.orbis-force-intel-v2 .side-nav a{
  min-height:54px;
  border-radius:18px;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
body.orbis-force-intel-v2 .side-nav a:hover,
body.orbis-force-intel-v2 .side-nav a.active{
  transform:translateX(3px);
  background:linear-gradient(135deg,rgba(48,213,255,.18),rgba(20,115,230,.22)) !important;
  box-shadow:0 16px 40px rgba(20,115,230,.20);
}
body.orbis-force-intel-v2 .main{
  padding:clamp(18px,3vw,42px) !important;
  max-width:1500px;
}
body.orbis-force-intel-v2 .orbis-force-banner{
  position:sticky;
  top:10px;
  z-index:50;
  margin:0 0 18px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  padding:14px 16px;
  border-radius:20px;
  background:linear-gradient(135deg,rgba(5,14,31,.94),rgba(9,36,78,.91));
  color:white;
  border:1px solid rgba(48,213,255,.25);
  box-shadow:var(--ofi-glow);
  backdrop-filter:blur(18px);
}
body.orbis-force-intel-v2 .orbis-force-banner strong{
  display:block;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
  color:#aeeaff;
}
body.orbis-force-intel-v2 .orbis-force-banner span{
  color:#dbeafe;
  font-size:14px;
}
body.orbis-force-intel-v2 .orbis-force-banner .ofi-badge{
  padding:8px 11px;
  border-radius:999px;
  background:rgba(48,213,255,.13);
  border:1px solid rgba(48,213,255,.24);
  font-size:12px;
  font-weight:900;
  color:#dff9ff;
}

/* Old detail/dashboard template transformation */
body.orbis-force-intel-v2 .hero,
body.orbis-force-intel-v2 .dashpro-hero,
body.orbis-force-intel-v2 .command-hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(48,213,255,.18) !important;
  border-radius:30px !important;
  background:
    radial-gradient(circle at 86% 18%,rgba(48,213,255,.26),transparent 18rem),
    radial-gradient(circle at 15% 15%,rgba(20,115,230,.28),transparent 22rem),
    linear-gradient(135deg,#071426,#0a3977 64%,#1473e6) !important;
  box-shadow:0 30px 90px rgba(8,32,70,.20) !important;
}
body.orbis-force-intel-v2 .hero:after,
body.orbis-force-intel-v2 .dashpro-hero:after,
body.orbis-force-intel-v2 .command-hero:after{
  content:"";
  position:absolute;
  inset:auto -8% -42% 32%;
  height:160px;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.18) 0 1px,transparent 1px 18px);
  transform:rotate(-9deg);
  opacity:.25;
  pointer-events:none;
}
body.orbis-force-intel-v2 .hero h1,
body.orbis-force-intel-v2 .dashpro-hero h1,
body.orbis-force-intel-v2 .command-title{
  letter-spacing:-.045em;
  font-size:clamp(42px,6vw,86px) !important;
  line-height:.92 !important;
}
body.orbis-force-intel-v2 .hero p,
body.orbis-force-intel-v2 .dashpro-hero p,
body.orbis-force-intel-v2 .command-subtitle{
  color:#d7e7ff !important;
  font-size:clamp(15px,1.5vw,19px) !important;
}
body.orbis-force-intel-v2 .panel,
body.orbis-force-intel-v2 .analysis-card,
body.orbis-force-intel-v2 .kpi,
body.orbis-force-intel-v2 .form-card,
body.orbis-force-intel-v2 .command-panel,
body.orbis-force-intel-v2 .command-kpi,
body.orbis-force-intel-v2 .dashpro-card,
body.orbis-force-intel-v2 .dashpro-filter-panel{
  background:var(--ofi-panel) !important;
  border:1px solid rgba(135,165,198,.30) !important;
  border-radius:var(--ofi-radius) !important;
  box-shadow:var(--ofi-shadow2) !important;
  backdrop-filter:blur(14px);
}
body.orbis-force-intel-v2 .panel:hover,
body.orbis-force-intel-v2 .analysis-card:hover,
body.orbis-force-intel-v2 .command-panel:hover{
  box-shadow:var(--ofi-shadow) !important;
}
body.orbis-force-intel-v2 .detail-grid{
  display:grid !important;
  grid-template-columns:minmax(350px,.78fr) minmax(0,1.22fr) !important;
  gap:20px !important;
  align-items:stretch;
}
body.orbis-force-intel-v2 .panel-title h2,
body.orbis-force-intel-v2 .command-panel h2{
  font-size:clamp(22px,2vw,30px) !important;
  letter-spacing:-.03em;
}
body.orbis-force-intel-v2 .analysis-live-grid,
body.orbis-force-intel-v2 .telemetry-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:12px !important;
}
body.orbis-force-intel-v2 .analysis-live-grid > div,
body.orbis-force-intel-v2 .telemetry-card,
body.orbis-force-intel-v2 .metadata-list div,
body.orbis-force-intel-v2 .dashpro-metric,
body.orbis-force-intel-v2 .artifact-card,
body.orbis-force-intel-v2 .science-card{
  border:1px solid rgba(111,156,213,.22) !important;
  background:linear-gradient(180deg,rgba(248,252,255,.98),rgba(239,247,255,.92)) !important;
  border-radius:18px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
body.orbis-force-intel-v2 .metadata-list div{
  padding:14px 0 !important;
}
body.orbis-force-intel-v2 .status.completed,
body.orbis-force-intel-v2 .status.COMPLETED,
body.orbis-force-intel-v2 .status.big.completed,
body.orbis-force-intel-v2 .command-pill.completed{
  background:rgba(34,197,94,.13) !important;
  color:#087036 !important;
  border:1px solid rgba(34,197,94,.22) !important;
}
body.orbis-force-intel-v2 .status.failed,
body.orbis-force-intel-v2 .status.FAILED{
  background:rgba(239,68,68,.12) !important;
  color:#991b1b !important;
  border:1px solid rgba(239,68,68,.22) !important;
}
body.orbis-force-intel-v2 .progress,
body.orbis-force-intel-v2 .progress.large,
body.orbis-force-intel-v2 .command-progress-track{
  height:14px !important;
  border-radius:999px !important;
  background:#dfeaf5 !important;
  overflow:hidden;
  box-shadow:inset 0 1px 3px rgba(7,17,31,.12);
}
body.orbis-force-intel-v2 .progress span,
body.orbis-force-intel-v2 #progressBar,
body.orbis-force-intel-v2 .command-progress-bar{
  background:linear-gradient(90deg,var(--ofi-cyan),var(--ofi-teal),var(--ofi-green)) !important;
  box-shadow:0 0 24px rgba(45,212,191,.38);
}
body.orbis-force-intel-v2 .btn,
body.orbis-force-intel-v2 .command-btn,
body.orbis-force-intel-v2 button,
body.orbis-force-intel-v2 input,
body.orbis-force-intel-v2 select,
body.orbis-force-intel-v2 textarea{
  border-radius:16px !important;
}
body.orbis-force-intel-v2 .btn.primary,
body.orbis-force-intel-v2 .command-btn.primary{
  background:linear-gradient(135deg,#095fc5,#1473e6 55%,#2dd4bf) !important;
  color:white !important;
  border-color:transparent !important;
  box-shadow:0 14px 34px rgba(20,115,230,.28);
}
body.orbis-force-intel-v2 .btn,
body.orbis-force-intel-v2 .command-btn{
  min-height:44px;
  font-weight:900 !important;
  border:1px solid rgba(105,145,190,.28) !important;
}
body.orbis-force-intel-v2 .analysis-console-pro,
body.orbis-force-intel-v2 #logs,
body.orbis-force-intel-v2 pre{
  background:linear-gradient(180deg,#040a14,#071426) !important;
  color:#d6f7ff !important;
  border:1px solid rgba(48,213,255,.18) !important;
  border-radius:22px !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 20px 60px rgba(0,0,0,.15);
  font-size:13px !important;
  line-height:1.55 !important;
}
body.orbis-force-intel-v2 .console-panel{
  border-left:4px solid var(--ofi-cyan) !important;
}
body.orbis-force-intel-v2 .table-wrap,
body.orbis-force-intel-v2 .ofi-table-wrap{
  overflow-x:auto;
  border-radius:18px;
  border:1px solid rgba(111,156,213,.20);
}
body.orbis-force-intel-v2 table{
  min-width:760px;
}
body.orbis-force-intel-v2 .ofi-command-dock{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1000;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
body.orbis-force-intel-v2 .ofi-command-dock button,
body.orbis-force-intel-v2 .ofi-command-dock a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 14px;
  border-radius:16px;
  border:1px solid rgba(48,213,255,.24);
  background:linear-gradient(135deg,rgba(5,14,31,.96),rgba(9,36,78,.93));
  color:#e8fbff;
  font-weight:900;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  text-decoration:none;
}
body.orbis-force-intel-v2 .ofi-cmd-palette{
  position:fixed;
  inset:0;
  z-index:1600;
  display:none;
  place-items:start center;
  padding:10vh 18px 18px;
  background:rgba(2,6,14,.58);
  backdrop-filter:blur(10px);
}
body.orbis-force-intel-v2 .ofi-cmd-palette.open{display:grid}
body.orbis-force-intel-v2 .ofi-cmd-box{
  width:min(720px,100%);
  border-radius:24px;
  background:rgba(255,255,255,.97);
  box-shadow:0 30px 100px rgba(0,0,0,.26);
  border:1px solid rgba(48,213,255,.22);
  overflow:hidden;
}
body.orbis-force-intel-v2 .ofi-cmd-box input{
  width:100%;
  border:0;
  border-bottom:1px solid #dbeafe;
  padding:18px 20px;
  font-size:18px;
  outline:0;
}
body.orbis-force-intel-v2 .ofi-cmd-list a{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:14px 20px;
  color:#0f172a;
  text-decoration:none;
  border-bottom:1px solid #eef5fb;
  font-weight:850;
}
body.orbis-force-intel-v2 .ofi-cmd-list a:hover{background:#eff6ff}
body.orbis-force-intel-v2 .ofi-build-chip{
  position:fixed;
  right:14px;
  bottom:74px;
  z-index:999;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(5,14,31,.88);
  color:#bff6ff;
  border:1px solid rgba(48,213,255,.22);
  font-size:11px;
  font-weight:850;
  letter-spacing:.02em;
  box-shadow:0 12px 34px rgba(0,0,0,.2);
}
@media (max-width:1180px){
  body.orbis-force-intel-v2 .detail-grid,
  body.orbis-force-intel-v2 .command-grid,
  body.orbis-force-intel-v2 .dashpro-layout{
    grid-template-columns:1fr !important;
  }
  body.orbis-force-intel-v2 .analysis-live-grid,
  body.orbis-force-intel-v2 .telemetry-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:820px){
  body.orbis-force-intel-v2 .main{
    padding:86px 14px 24px !important;
  }
  body.orbis-force-intel-v2 .mobile-topbar{
    display:flex !important;
    background:linear-gradient(135deg,#041126,#072454) !important;
    border-bottom:1px solid rgba(48,213,255,.16) !important;
    box-shadow:0 14px 38px rgba(2,8,20,.18);
  }
  body.orbis-force-intel-v2 .sidebar{
    position:fixed !important;
    inset:0 auto 0 0 !important;
    width:min(320px,86vw) !important;
    transform:translateX(-105%);
    transition:transform .22s ease;
    z-index:1200;
    overflow:auto;
  }
  body.orbis-force-intel-v2.sidebar-open .sidebar{transform:translateX(0)}
  body.orbis-force-intel-v2 .sidebar-backdrop{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(2,6,14,.48);
    backdrop-filter:blur(2px);
    z-index:1100;
  }
  body.orbis-force-intel-v2.sidebar-open .sidebar-backdrop{display:block}
  body.orbis-force-intel-v2 .hero,
  body.orbis-force-intel-v2 .dashpro-hero,
  body.orbis-force-intel-v2 .command-hero{
    border-radius:24px !important;
    padding:22px !important;
  }
  body.orbis-force-intel-v2 .hero-actions,
  body.orbis-force-intel-v2 .command-hero-actions,
  body.orbis-force-intel-v2 .dashpro-hero-actions,
  body.orbis-force-intel-v2 .artifact-actions,
  body.orbis-force-intel-v2 .console-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    width:100%;
    gap:10px;
  }
  body.orbis-force-intel-v2 .btn,
  body.orbis-force-intel-v2 .command-btn{
    width:100%;
  }
  body.orbis-force-intel-v2 .analysis-live-grid,
  body.orbis-force-intel-v2 .telemetry-grid{
    grid-template-columns:1fr !important;
  }
  body.orbis-force-intel-v2 .orbis-force-banner{
    grid-template-columns:1fr;
    position:relative;
    top:auto;
  }
  body.orbis-force-intel-v2 .ofi-command-dock{
    left:12px;
    right:12px;
    bottom:12px;
  }
  body.orbis-force-intel-v2 .ofi-command-dock button,
  body.orbis-force-intel-v2 .ofi-command-dock a{
    flex:1;
    min-width:0;
  }
  body.orbis-force-intel-v2 .ofi-build-chip{display:none}
}

