/* ========================================================================
   HALO CUSTOMER SHELL — GLOBAL SIDEBAR + HEADER
   Tight, production-grade application chrome with restrained enterprise spacing.
   ======================================================================== */
.hj-enterprise-v2.hj-halo-shell {
  --halo-sidebar-width: 252px;
  --halo-header-height: 54px;
  --halo-line: #e8e8e8;
  --halo-line-strong: #dedede;
  --halo-ink: #111111;
  --halo-muted: #66686d;
  --halo-subtle: #8a8d93;
  --halo-canvas: #fafafa;
  --halo-surface: #ffffff;
  --halo-active: #e9e9e9;
  --halo-hover: #f3f3f3;
  --halo-radius: 8px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--halo-sidebar-width) minmax(0, 1fr);
  background: var(--halo-canvas);
  color: var(--halo-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.012em;
}

.hj-enterprise-v2.hj-halo-shell,
.hj-enterprise-v2.hj-halo-shell * {
  box-sizing: border-box;
}

.hj-standalone-body:has(.hj-halo-shell) {
  margin: 0;
  background: var(--halo-canvas, #fafafa);
}

/* Sidebar ---------------------------------------------------------------- */
.hj-enterprise-v2.hj-halo-shell .hj-sidebar {
  position: sticky;
  top: 0;
  z-index: 80;
  width: var(--halo-sidebar-width);
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--halo-surface);
  border-right: 1px solid var(--halo-line);
  color: var(--halo-ink);
  box-shadow: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-brand-row {
  min-height: 64px;
  padding: 10px 14px 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--halo-line);
}

.hj-enterprise-v2.hj-halo-shell .hj-panel-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--halo-ink);
  text-decoration: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-panel-brand-mark {
  width: 27px;
  height: 30px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  filter: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-panel-brand-word {
  width: 78px;
  height: 20px;
  display: block;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-close {
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--halo-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-close:hover {
  background: var(--halo-hover);
  color: var(--halo-ink);
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav {
  min-height: 0;
  flex: 1 1 auto;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: #c7c7c7 transparent;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #c7c7c7;
}

.hj-enterprise-v2.hj-halo-shell .hj-nav-group {
  margin: 14px 0 0;
}

.hj-enterprise-v2.hj-halo-shell .hj-nav-group-primary {
  margin-top: 0;
}

.hj-enterprise-v2.hj-halo-shell .hj-nav-section-toggle {
  width: 100%;
  min-height: 24px;
  margin: 0 0 2px;
  padding: 0 7px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #575a60;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: left;
  cursor: pointer;
}

.hj-enterprise-v2.hj-halo-shell .hj-nav-section-toggle:hover {
  background: var(--halo-hover);
  color: var(--halo-ink);
}

.hj-enterprise-v2.hj-halo-shell .hj-nav-section-toggle svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform .16s ease;
}

.hj-enterprise-v2.hj-halo-shell .hj-nav-group.is-collapsed .hj-nav-section-toggle svg {
  transform: rotate(-90deg);
}

.hj-enterprise-v2.hj-halo-shell .hj-nav-group.is-collapsed .hj-nav-group-items {
  display: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-nav-group-items {
  display: grid;
  gap: 1px;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a {
  position: relative;
  min-height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--halo-radius);
  background: transparent;
  color: #161719;
  text-decoration: none;
  box-shadow: none;
  outline: none;
  transition: background-color .14s ease, color .14s ease;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a:hover {
  background: var(--halo-hover);
  color: #090909;
  transform: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a.is-active {
  background: var(--halo-active);
  color: #080808;
  box-shadow: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a:focus-visible,
.hj-enterprise-v2.hj-halo-shell .hj-global-tabs a:focus-visible,
.hj-enterprise-v2.hj-halo-shell .hj-icon-button:focus-visible,
.hj-enterprise-v2.hj-halo-shell .hj-theme-toggle:focus-visible,
.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile:focus-visible,
.hj-enterprise-v2.hj-halo-shell .hj-sidebar-user:focus-visible,
.hj-enterprise-v2.hj-halo-shell .hj-sidebar-service:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav .hj-nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #65686e;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav .hj-nav-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  stroke-width: 1.8;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a:hover .hj-nav-icon,
.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a.is-active .hj-nav-icon {
  background: transparent;
  color: #26272a;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav .hj-nav-label {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a.is-active .hj-nav-label {
  font-weight: 600;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-footer {
  flex: 0 0 auto;
  padding: 8px 10px 10px;
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--halo-line);
  background: var(--halo-surface);
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-service,
.hj-enterprise-v2.hj-halo-shell .hj-sidebar-user {
  min-width: 0;
  min-height: 42px;
  padding: 5px 7px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--halo-ink);
  text-decoration: none;
  box-shadow: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-service:hover,
.hj-enterprise-v2.hj-halo-shell .hj-sidebar-user:hover {
  background: var(--halo-hover);
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-service-icon,
.hj-enterprise-v2.hj-halo-shell .hj-sidebar-user .hj-user-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f0f0;
  color: #222;
  font-size: 12px;
  font-weight: 700;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-service-icon {
  border-radius: 9px;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-service-icon svg {
  width: 17px;
  height: 17px;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-service > span:nth-child(2),
.hj-enterprise-v2.hj-halo-shell .hj-sidebar-user .hj-user-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-service small,
.hj-enterprise-v2.hj-halo-shell .hj-sidebar-user small {
  color: var(--halo-subtle);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.1;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-service strong,
.hj-enterprise-v2.hj-halo-shell .hj-sidebar-user strong {
  overflow: hidden;
  color: var(--halo-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-service-cue,
.hj-enterprise-v2.hj-halo-shell .hj-sidebar-user-cue {
  color: #8e9095;
  font-size: 14px;
}

/* Header ----------------------------------------------------------------- */
.hj-enterprise-v2.hj-halo-shell .hj-main {
  min-width: 0;
  width: 100%;
  background: var(--halo-canvas);
}

.hj-enterprise-v2.hj-halo-shell .hj-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: var(--halo-header-height);
  height: var(--halo-header-height);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--halo-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
}

.hj-enterprise-v2.hj-halo-shell .hj-topbar-left,
.hj-enterprise-v2.hj-halo-shell .hj-topbar-right {
  min-width: 0;
  display: flex;
  align-items: center;
}

.hj-enterprise-v2.hj-halo-shell .hj-topbar-left {
  flex: 1 1 auto;
  gap: 6px;
}

.hj-enterprise-v2.hj-halo-shell .hj-topbar-right {
  flex: 0 0 auto;
  gap: 6px;
}

.hj-enterprise-v2.hj-halo-shell .hj-global-tabs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-global-tabs::-webkit-scrollbar {
  display: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-global-tabs a {
  min-height: 32px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: transparent;
  color: #494b50;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .14s ease, color .14s ease;
}

.hj-enterprise-v2.hj-halo-shell .hj-global-tabs a:hover {
  background: var(--halo-hover);
  color: var(--halo-ink);
}

.hj-enterprise-v2.hj-halo-shell .hj-global-tabs a.is-active {
  background: #171717;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-icon-button,
.hj-enterprise-v2.hj-halo-shell .hj-theme-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: #252629;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .14s ease, transform .14s ease;
}

.hj-enterprise-v2.hj-halo-shell .hj-icon-button:hover,
.hj-enterprise-v2.hj-halo-shell .hj-theme-toggle:hover {
  background: #e9e9e9;
  color: #101010;
  transform: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-icon-button svg {
  width: 17px;
  height: 17px;
}

.hj-enterprise-v2.hj-halo-shell .hj-command-button {
  background: transparent;
}

.hj-enterprise-v2.hj-halo-shell .hj-theme-toggle {
  isolation: isolate;
  width: 58px;
  min-width: 58px;
  border-radius: 999px;
  grid-template-columns: 1fr 1fr;
  background: #f0f0f0;
  overflow: hidden;
}

.hj-enterprise-v2.hj-halo-shell .hj-theme-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  transform: translateX(26px);
  transition: transform .18s ease;
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-theme-toggle::before {
  transform: translateX(0);
}

.hj-enterprise-v2.hj-halo-shell .hj-theme-track-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #6d7075;
  pointer-events: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-theme-track-icon svg {
  width: 15px;
  height: 15px;
}

.hj-enterprise-v2.hj-halo-shell .hj-theme-glyph {
  display: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-notification-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile {
  min-width: 0;
  min-height: 36px;
  margin-left: 2px;
  padding: 3px 8px 3px 4px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #f6f6f6;
  color: var(--halo-ink);
  text-decoration: none;
  box-shadow: none;
}

.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile:hover {
  background: #eeeeee;
}

.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile .hj-user-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #161616;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile-copy strong {
  max-width: 108px;
  overflow: hidden;
  color: #252629;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile-copy small {
  color: #8b8d92;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.1;
}

.hj-enterprise-v2.hj-halo-shell .hj-profile-caret {
  color: #777a7f;
  font-size: 12px;
}

.hj-enterprise-v2.hj-halo-shell .hj-mobile-nav-toggle,
.hj-enterprise-v2.hj-halo-shell .hj-mobile-brand {
  display: none;
}

/* Keep page content aligned to the new global chrome. */
.hj-enterprise-v2.hj-halo-shell .hj-breadcrumbs,
.hj-enterprise-v2.hj-halo-shell .hj-page-title-row,
.hj-enterprise-v2.hj-halo-shell .hj-page-context,
.hj-enterprise-v2.hj-halo-shell .hj-content,
.hj-enterprise-v2.hj-halo-shell > .hj-main > section,
.hj-enterprise-v2.hj-halo-shell > .hj-main > .hj-service-workspace-nav {
  max-width: 1480px;
}

.hj-enterprise-v2.hj-halo-shell .hj-sidebar-scrim {
  display: none;
}

/* Dark mode -------------------------------------------------------------- */
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] {
  --halo-line: #2a2c30;
  --halo-line-strong: #35373c;
  --halo-ink: #f4f4f4;
  --halo-muted: #b1b3b8;
  --halo-subtle: #85888f;
  --halo-canvas: #111214;
  --halo-surface: #17181a;
  --halo-active: #2b2d30;
  --halo-hover: #222427;
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-panel-brand-mark,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-panel-brand-word,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-mobile-brand img {
  filter: invert(1);
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-topbar {
  background: rgba(23, 24, 26, .95);
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-nav a,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-nav a.is-active,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-service,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-user,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-service strong,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-user strong {
  color: var(--halo-ink);
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-nav .hj-nav-icon,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-nav a.is-active .hj-nav-icon {
  color: #c2c4c8;
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-nav-section-toggle {
  color: #a5a7ad;
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-global-tabs a {
  color: #b8bac0;
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-global-tabs a.is-active {
  background: #f2f2f2;
  color: #111;
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-icon-button,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-topbar-profile,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-theme-toggle {
  background: #232529;
  color: #f0f0f0;
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-topbar-profile-copy strong {
  color: #f2f2f2;
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-theme-toggle::before {
  background: #3b3d42;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-service-icon,
.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-user .hj-user-avatar {
  background: #292b2f;
  color: #fff;
}

.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-notification-count {
  border-color: #17181a;
  background: #fff;
  color: #111;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hj-enterprise-v2.hj-halo-shell {
    --halo-sidebar-width: 252px;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-global-tabs a {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-command-button {
    display: none;
  }
}

@media (max-width: 980px) {
  .hj-enterprise-v2.hj-halo-shell {
    display: block;
    min-height: 100vh;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: min(300px, calc(100vw - 26px));
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 18px 0 50px rgba(0, 0, 0, .14);
  }

  .hj-enterprise-v2.hj-halo-shell.hj-sidebar-open .hj-sidebar {
    transform: translateX(0);
  }

  .hj-enterprise-v2.hj-halo-shell .hj-sidebar-close {
    display: grid;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, .34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
    backdrop-filter: blur(2px);
  }

  .hj-enterprise-v2.hj-halo-shell.hj-sidebar-open .hj-sidebar-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-topbar {
    padding-left: 12px;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-mobile-nav-toggle {
    width: 34px;
    height: 34px;
    padding: 8px;
    display: grid;
    align-content: center;
    gap: 4px;
    border: 0;
    border-radius: 9px;
    background: #f1f1f1;
    cursor: pointer;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-mobile-nav-toggle span {
    width: 17px;
    height: 1.5px;
    display: block;
    border-radius: 99px;
    background: #222;
  }

  .hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-mobile-nav-toggle {
    background: #27292d;
  }

  .hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-mobile-nav-toggle span {
    background: #f3f3f3;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-mobile-brand {
    width: 30px;
    height: 34px;
    display: none;
    align-items: center;
    justify-content: center;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-mobile-brand img {
    width: 24px;
    height: 28px;
    object-fit: contain;
  }
}

@media (max-width: 760px) {
  .hj-enterprise-v2.hj-halo-shell {
    --halo-header-height: 56px;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-topbar {
    padding: 0 10px;
    gap: 8px;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-global-tabs {
    max-width: calc(100vw - 230px);
  }

  .hj-enterprise-v2.hj-halo-shell .hj-global-tabs a {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-global-tabs a:not(.is-active) {
    display: none;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-theme-toggle {
    width: 56px;
    min-width: 56px;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-theme-toggle::before {
    width: 25px;
    height: 25px;
    top: 4px;
    left: 3px;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-theme-toggle::before {
    transform: translateX(25px);
  }

  .hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-theme-toggle::before {
    transform: translateX(0);
  }

  .hj-enterprise-v2.hj-halo-shell .hj-topbar-profile {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 2px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-topbar-profile-copy,
  .hj-enterprise-v2.hj-halo-shell .hj-profile-caret {
    display: none;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-topbar-profile .hj-user-avatar {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 460px) {
  .hj-enterprise-v2.hj-halo-shell .hj-theme-toggle {
    display: none;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-global-tabs {
    max-width: calc(100vw - 155px);
  }

  .hj-enterprise-v2.hj-halo-shell .hj-sidebar-brand-row {
    min-height: 68px;
  }

  .hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav {
    padding-top: 12px;
  }
}

/* ========================================================================
   0.27 dashboard compatibility layer
   The overview keeps its 0.27 dashboard system while the application chrome
   is owned globally by the HALO sidebar/header above.
   ======================================================================== */
.hj-experience-v27.hj-enterprise-v2.hj-halo-shell {
  padding: 0 !important;
  gap: 0 !important;
  align-items: stretch !important;
  overflow: visible !important;
  background: var(--halo-canvas) !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar {
  position: sticky !important;
  inset: auto !important;
  top: 0 !important;
  width: var(--halo-sidebar-width) !important;
  min-width: var(--halo-sidebar-width) !important;
  height: 100vh !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border: 0 !important;
  border-right: 1px solid var(--halo-line) !important;
  border-radius: 0 !important;
  background: var(--halo-surface) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: hidden !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 10px 10px 14px !important;
  display: block !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a {
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #161719 !important;
  box-shadow: none !important;
  transform: none !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a:hover {
  background: var(--halo-hover) !important;
  color: #090909 !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a.is-active {
  background: var(--halo-active) !important;
  color: #080808 !important;
  box-shadow: none !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav .hj-nav-icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  color: #65686e !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav svg {
  width: 19px !important;
  height: 19px !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav .hj-nav-label {
  display: block !important;
  color: inherit !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar-nav a.is-active .hj-nav-label {
  font-weight: 600 !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-main {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 20px 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--halo-canvas) !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 70 !important;
  width: calc(100% + 40px) !important;
  max-width: none !important;
  min-height: var(--halo-header-height) !important;
  height: var(--halo-header-height) !important;
  margin: 0 -20px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--halo-line) !important;
  border-radius: 0 !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: none !important;
  backdrop-filter: saturate(150%) blur(12px) !important;
  -webkit-backdrop-filter: saturate(150%) blur(12px) !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-icon-button {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f3f3f3 !important;
  color: #252629 !important;
  box-shadow: none !important;
  transform: none !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-icon-button:hover {
  background: #e9e9e9 !important;
  color: #101010 !important;
  transform: none !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-icon-button svg {
  width: 16px !important;
  height: 16px !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile {
  min-width: 0 !important;
  width: auto !important;
  height: 36px !important;
  min-height: 36px !important;
  margin-left: 2px !important;
  padding: 3px 8px 3px 4px !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f6f6f6 !important;
  box-shadow: none !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile .hj-user-avatar {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  border-radius: 50% !important;
  background: #161616 !important;
  color: #fff !important;
  font-size: 10px !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 1px !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile-copy strong {
  max-width: 108px !important;
  color: #252629 !important;
  font-size: 10.5px !important;
  line-height: 1.05 !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile-copy small {
  max-width: 108px !important;
  color: #8b8d92 !important;
  font-size: 8.5px !important;
  line-height: 1.05 !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-topbar {
  background: rgba(23,24,26,.95) !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-nav a,
.hj-experience-v27.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-sidebar-nav a.is-active {
  color: var(--halo-ink) !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-icon-button,
.hj-experience-v27.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-topbar-profile {
  background: #232529 !important;
  color: #f0f0f0 !important;
}

.hj-experience-v27.hj-enterprise-v2.hj-halo-shell[data-hj-theme-resolved="dark"] .hj-topbar-profile-copy strong {
  color: #f2f2f2 !important;
}

@media (max-width: 980px) {
  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell {
    display: block !important;
    padding: 0 !important;
  }

  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    top: 0 !important;
    width: min(286px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    height: 100dvh !important;
    transform: translateX(-105%) !important;
    border-right: 1px solid var(--halo-line) !important;
    box-shadow: 18px 0 50px rgba(0,0,0,.14) !important;
  }

  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell.hj-sidebar-open .hj-sidebar {
    transform: translateX(0) !important;
  }

  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-sidebar-close {
    display: grid !important;
  }

  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-main {
    width: 100% !important;
    min-height: 100vh !important;
    padding: 0 14px 22px !important;
  }

  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-topbar {
    width: calc(100% + 28px) !important;
    margin: 0 -14px !important;
    padding: 0 10px !important;
  }

  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-mobile-nav-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 7px !important;
    display: grid !important;
    align-content: center !important;
    gap: 4px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #f1f1f1 !important;
  }
}

@media (max-width: 760px) {
  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-global-tabs {
    max-width: calc(100vw - 218px) !important;
  }

  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-global-tabs a:not(.is-active) {
    display: none !important;
  }

  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 2px !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
  }

  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-topbar-profile-copy,
  .hj-experience-v27.hj-enterprise-v2.hj-halo-shell .hj-profile-caret {
    display: none !important;
  }
}
