/* Approved integrated shell. Visual changes only; keep navigation and permissions. */
@media screen {
  html body.globalrf-ui { --topbar-height: 76px; --sidebar-width: 230px; }
  html body.globalrf-ui .app-shell > .sidebar {
    background: linear-gradient(#202222ed, #202222ed), url("selqon-sidebar-brand-v2.ea9d7e5be6c6.png") center / cover;
    border-right: 1px solid #ffffff0d;
    box-shadow: none;
    padding-inline: 16px;
  }
  html body.globalrf-ui .sidebar .sidebar-header { min-height: 64px; border-bottom: 1px solid #ffffff0d; }
  /* Each group receives the same breathing room above and below its links.
     Extra height is shared evenly; short screens scroll instead of clipping. */
  html body.globalrf-ui .sidebar .sidebar-nav {
    gap: 0; margin-top: 0; padding: 0 3px; justify-content: flex-start;
    scrollbar-gutter: auto;
  }
  html body.globalrf-ui .sidebar .sidebar-nav > .nav-section {
    flex: 1 0 auto; display: grid; align-content: center; gap: 6px;
    padding: 16px 0; margin: 0;
  }
  html body.globalrf-ui .sidebar .nav-section + .nav-section { border-top: 1px solid #ffffff10; }
  html body.globalrf-ui .sidebar .selqon-menu-separator {
    position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; overflow: hidden; clip-path: inset(50%);
  }
  html body.globalrf-ui .sidebar .nav-link {
    color: #c5c9c7; background: transparent; border-color: transparent;
    text-shadow: none; box-shadow: none; border-radius: 5px; min-height: 42px; font-size: 13px; font-weight: 500;
  }
  html body.globalrf-ui .sidebar .nav-link:hover { background: #ffffff08; color: #fff; }
  html body.globalrf-ui .sidebar .nav-link.active { background: #ffffff09; color: #fff; border-color: transparent; box-shadow: inset 2px 0 #eeb50c; }
  html body.globalrf-ui .sidebar .nav-link.active::after { display: none; }
  html body.globalrf-ui .sidebar .nav-link.active .nav-icon { color: #eeb50c; }
  html body.globalrf-ui .sidebar .nav-link:focus-visible { outline: 2px solid #eeb50c; outline-offset: -2px; }
  html body.globalrf-ui .sidebar .sidebar-user { background: transparent; border-radius: 0; border-top: 1px solid #ffffff14; padding: 16px 4px 4px; margin-top: 0; }
  html body.globalrf-ui .sidebar .sidebar-user-copy strong { color: #f1f3ef; font-size: 12px; }
  html body.globalrf-ui .sidebar .sidebar-user-copy small { color: #a3aaa5; font-size: 11px; }
  html body.globalrf-ui .sidebar .sidebar-user .user-avatar { background: #eeb50c; color: #202222; border: 0; }
  html body.globalrf-ui .topbar {
    min-height: 76px; padding: 12px 32px; gap: 20px; background: #202222;
    border-bottom: 1px solid #ffffff08; box-shadow: none; backdrop-filter: none;
  }
  html body.globalrf-ui .topbar::before { display: none; }
  html body.globalrf-ui .topbar .breadcrumb { color: #c2c8c4; font-size: 12px; text-shadow: none; }
  html body.globalrf-ui .topbar .breadcrumb a:first-child { color: #c2c8c4; font-weight: 500; letter-spacing: 0; }
  html body.globalrf-ui .topbar .global-search input { background: #ffffff05; color: #eee; border: 1px solid #ffffff1a; border-radius: 5px; box-shadow: none; backdrop-filter: none; }
  html body.globalrf-ui .topbar .global-search input::placeholder { color: #a5aba7; }
  html.selqon-precision-preview body.globalrf-ui .topbar .global-search input[type="search"] { background: #292b2b !important; color: #eee !important; border-color: #ffffff1a !important; box-shadow: none !important; }
  html body.globalrf-ui .topbar .quick-create > summary { box-shadow: none; }
  html body.globalrf-ui .topbar .company-pill,
  html body.globalrf-ui .topbar .global-search kbd { box-shadow: none; background: transparent; border-color: #ffffff14; backdrop-filter: none; }
  html body.globalrf-ui .main-content { padding: 24px 32px 32px; }
  html.selqon-precision-preview body.globalrf-ui .page-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    min-height: 0; margin: 0 0 24px; padding: 8px 0 20px;
    color: #252525; background: #f3f4f1; border: 0; border-radius: 0; box-shadow: none;
    gap: 20px; text-align: left; overflow: visible;
  }
  html.selqon-precision-preview body.globalrf-ui .page-header::before,
  html.selqon-precision-preview body.globalrf-ui .page-header::after,
  html.selqon-precision-preview body.globalrf-ui .page-header h1::before,
  html.selqon-precision-preview body.globalrf-ui .page-header .eyebrow::before { display: none; }
  html.selqon-precision-preview body.globalrf-ui main#main-content > .page-header > div:first-child {
    max-width: none; min-width: 0; flex: 1 1 360px; padding: 0;
  }
  html.selqon-precision-preview body.globalrf-ui .page-header h1 {
    color: #252525; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.2;
    letter-spacing: -.6px; font-weight: 650; margin: 0 0 8px; padding: 0; text-shadow: none;
  }
  html.selqon-precision-preview body.globalrf-ui .page-header p:not(.eyebrow) { color: #626962; font-size: 13px; line-height: 1.5; margin: 0; max-width: 760px; text-align: left; }
  html.selqon-precision-preview body.globalrf-ui .page-header .eyebrow { color: #737973; font-size: 10px; letter-spacing: 1.6px; margin: 0 0 7px; }
  html.selqon-precision-preview body.globalrf-ui main#main-content > .page-header .button-row,
  html.selqon-precision-preview body.globalrf-ui main#main-content > .page-header > a,
  html.selqon-precision-preview body.globalrf-ui main#main-content > .page-header > button { align-self: center; position: relative; inset: auto; }
  html body.globalrf-ui .app-shell:not(.sidebar-collapsed) .sidebar-header { gap: 4px; }
  html body.globalrf-ui .app-shell.sidebar-collapsed > .sidebar { padding-inline: 10px; }
  html body.globalrf-ui .app-shell.sidebar-collapsed .sidebar-nav { margin-top: 58px; }
  @media (max-width: 1024px) {
    html body.globalrf-ui .topbar { padding-inline: 20px; }
    html body.globalrf-ui .main-content { padding: 20px; }
    html body.globalrf-ui .app-shell.sidebar-collapsed .sidebar-nav { margin-top: 10px; }
  }
  @media (max-width: 680px) {
    html body.globalrf-ui { --topbar-height: 60px; }
    html body.globalrf-ui .topbar { min-height: 60px; padding: 10px 16px; gap: 10px; }
    html body.globalrf-ui .main-content { padding: 18px 16px 28px; }
    html.selqon-precision-preview body.globalrf-ui .page-header { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
    html.selqon-precision-preview body.globalrf-ui main#main-content > .page-header > div:first-child { flex: auto; width: 100%; }
    html.selqon-precision-preview body.globalrf-ui main#main-content > .page-header > a,
    html.selqon-precision-preview body.globalrf-ui main#main-content > .page-header > button { align-self: flex-start; margin-inline: 0; max-width: 100%; box-sizing: border-box; }
  }
}
