/* CONNECT_CLOUD_OFFICE_DEEPBLACK_COMPACT_V9
 * Dedicated controls: deep neutral black Dark shell, pinned Products row, and
 * proportionally smaller WORKSPACE only. No sidebar/header/profile geometry changes.
 * Follows V8 soft-elevation, which remains intact in Day.
 */

/* The Dark shell itself is black, not a grey-tinted canvas.
 * Specular reflection is nearly black and is painted only on the parent shell. */
html[data-theme="dark"] .pa-shell.is-executive-rail {
  --co-obsidian-base: #080808;
  --co-obsidian-gloss:
    linear-gradient(116deg, transparent 24%, rgba(255,255,255,.004) 49%, transparent 73%),
    linear-gradient(147deg, #020202 0%, #040404 28%, #070707 53%, #050505 75%, #020202 100%);
  --co-sticky-bg: #080808;
  --cx-canvas: #080808;
  --cx-rail: #262626;
  --cx-surface: #262626;
  --cx-surface-2: #303030;
  --cx-input: #2a2a2a;
  --co-card-fill: #262626;
  --co-card-line: rgba(255,255,255,.08);
  --co-card-hover-line: rgba(255,255,255,.18);
  --co-card-shadow: 0 12px 32px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  --co-card-shadow-hover: 0 18px 42px rgba(0,0,0,.80), 0 4px 14px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.16);
  background: var(--cx-canvas);
  background-color: var(--co-obsidian-base);
}
html[data-theme="dark"]:has(.pa-shell.is-executive-rail),
html[data-theme="dark"] body:has(.pa-shell.is-executive-rail) {
  --co-page-black: #080808;
  background: var(--co-page-black);
  background-color: var(--co-page-black);
}
/* Underlying structural panes stay transparent; never repeat the shell gradient. */
html[data-theme="dark"] .pa-shell.is-executive-rail :is(
  .pa-topbar, .pa-frame, .pa-main
) {
  background: transparent;
  background-color: transparent;
}
/* Sticky page headers still need a solid backplate while scrolling. */
html[data-theme="dark"] .pa-shell.is-executive-rail .pa-view > .pa-head:first-child:not(.cr-do-head) {
  background: var(--co-sticky-bg);
}
/* Profile menu and dialogs match Charcoal Grey theme */
html[data-theme="dark"] body:has(.pa-shell.is-executive-rail) :is(
  .ac-menu, .ac-menu.is-executive, .pa-menu, .pa-dialog, .pa-palette, .pa-sheet
) {
  --co-deepblack-menu: #262626;
  background-color: var(--co-deepblack-menu);
}

/* Products entry is now a fixed dock between scrollable nav and account footer.
 * It cannot scroll away with the category list; switcher is the original handler. */
.pa-shell.is-executive-rail .pa-side-products {
  flex: 0 0 auto;
  min-width: 0;
  margin-top: 0;
  padding: .25rem 0;
  border-top: 1px solid var(--co-layout-line, var(--cx-border-soft));
}
.pa-shell.is-executive-rail .pa-side-products .pa-v2-products {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 100%;
  min-width: 0;
  min-height: max(var(--pa-tap), 2.5rem);
  padding: 0 .6875rem;
  border: 0;
  border-radius: var(--cx-radius-sm);
  background: transparent;
  color: var(--cx-text-2);
  font: inherit;
  font-size: max(13.5px, .945rem);
  font-weight: 480;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--pa-fast) var(--pa-ease), color var(--pa-fast) var(--pa-ease);
}
.pa-shell.is-executive-rail .pa-side-products .pa-v2-products > .pa-ico {
  flex: none;
  margin-inline: .25rem;
  color: var(--cx-text-3);
}
.pa-shell.is-executive-rail .pa-side-products .pa-v2-products > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pa-shell.is-executive-rail .pa-side-products .pa-v2-products:is(:hover, :focus-visible) {
  background: var(--cx-hover);
  color: var(--cx-text);
}
.pa-shell.is-executive-rail .pa-side-products .pa-v2-products:focus-visible {
  outline: 2px solid var(--cx-focus);
  outline-offset: -2px;
}
.pa-shell.is-executive-rail .pa-side-foot {
  margin-top: 0;
  padding-top: .375rem;
  border-top: 0;
}
.pa-shell.is-executive-rail.is-rail .pa-side-products .pa-v2-products {
  justify-content: center;
  padding-inline: 0;
}
.pa-shell.is-executive-rail.is-rail .pa-side-products .pa-v2-products > span {
  display: none;
}

/* 10% smaller cards/sections/buttons/icons/spacing throughout the WORKSPACE.
 * CSS zoom scales layout *and hit boxes* (unlike transform:scale).
 * Keep native 100% width: artificially widening for zoom creates horizontal
 * overflow in Chromium; natural layout preserves the available scrollport.
 * Sidebar, global topbar, account/profile, and body-mounted dialogs are excluded.
 * Large-text preference and narrow/coarse-touch layouts retain original sizing. */
@supports (zoom: 0.9) {
  @media (min-width: 1180px) and (pointer: fine) {
    html:not([data-text-size="large"]) .pa-shell.is-executive-rail .pa-main > .pa-view {
      zoom: .9;
      width: 100%;
      max-width: var(--pa-max);
    }
  }
}
/* Preserve readable body text after the 0.9 workspace scale.
 * This prevents 13px small text from becoming ~11.7px on desktop. */
@supports (zoom: 0.9) {
  @media (min-width: 1180px) and (pointer: fine) {
    html:not([data-text-size="large"]) .pa-shell.is-executive-rail .pa-main > .pa-view {
      --cx-text-body: max(15.3px, 1.06rem);
      --cx-text-small: max(14.45px, 1.005rem);
      --cx-text-meta: max(13.34px, .925rem);
    }
  }
}
/* Keep the scrollport within its original bounds; prevent scaled grid min-width overflow. */
.pa-shell.is-executive-rail .pa-main {
  min-width: 0;
}
@media (forced-colors: active) {
  html[data-theme="dark"] .pa-shell.is-executive-rail {
    background: Canvas;
    color: CanvasText;
  }
  .pa-shell.is-executive-rail .pa-side-products {
    border-top-color: CanvasText;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pa-shell.is-executive-rail .pa-side-products .pa-v2-products {
    transition: none;
  }
}
