/**
 * Canonical app sidebar — single source for all dash-page layouts.
 * Active item: pill surface, no left accent.
 */

.dash-sidebar {
  width: var(--dash-sidebar-w);
  max-width: var(--dash-sidebar-w);
  margin-inline-start: var(--dash-sidebar-outer-gutter, 0px);
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  background: var(--dash-canvas, var(--dash-bg));
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  border: none;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: width var(--dash-transition), max-width var(--dash-transition), padding var(--dash-transition);
}

body.dash-page:not(.dash-nav-ready) .dash-sidebar {
  transition: none;
}

html.dash-landing-preview .dash-sidebar {
  margin-inline-start: 0;
}

.dash-logo {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 10px;
  padding: 0 52px 32px 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.dash-sidebar-toggle {
  position: absolute;
  top: 24px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-secondary, var(--dash-text-muted));
  cursor: pointer;
  transition: background var(--dash-transition), color var(--dash-transition);
}

.dash-sidebar-toggle:hover,
.dash-sidebar-toggle:focus-visible {
  background: var(--dash-surface);
  color: var(--color-text-secondary, var(--dash-text-muted));
}

.dash-sidebar-toggle:focus-visible,
.dash-nav__link:focus-visible,
.dash-pro:focus-visible,
.dash-pro__dismiss:focus-visible {
  outline: 2px solid var(--dash-focus-ring, var(--dash-accent));
  outline-offset: 2px;
}

.dash-sidebar-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  opacity: 0.58;
}

/* Only the menu scrolls. The plan card sits under it in its own space (.dash-pro-wrap is a sibling of the scroll
   area), so it is always visible and never covers Notifications, Help Center or Settings (UI audit 2026-11-17). */
.dash-sidebar__scroll {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}

@property --dash-nav-fade-top {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --dash-nav-fade-bottom {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

/* The same soft fade at both ends while there is more menu that way (owner, 2026-10-28). */
@supports (animation-timeline: scroll()) {
  .dash-sidebar__scroll {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--dash-nav-fade-top), #000 calc(100% - var(--dash-nav-fade-bottom)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--dash-nav-fade-top), #000 calc(100% - var(--dash-nav-fade-bottom)), transparent 100%);
    animation: dash-nav-scroll-fade linear both, dash-nav-scroll-fade-end linear both;
    animation-timeline: scroll(self block), scroll(self block);
    animation-range: 0 32px, calc(100% - 32px) 100%;
  }
}

@keyframes dash-nav-scroll-fade {
  to {
    --dash-nav-fade-top: 40px;
  }
}

@keyframes dash-nav-scroll-fade-end {
  from {
    --dash-nav-fade-bottom: 40px;
  }
  to {
    --dash-nav-fade-bottom: 0px;
  }
}

.dash-sidebar,
.dash-sidebar * {
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.dash-sidebar::-webkit-scrollbar,
.dash-sidebar *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.dash-nav__link {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  min-height: 44px;
  padding-block: 8px;
  padding-inline-start: 10px;
  padding-inline-end: 18px;
  border-radius: var(--dash-radius-btn);
  color: var(--dash-text-muted);
  text-decoration: none;
  font-size: var(--nv-type-body-size);
  letter-spacing: var(--nv-type-body-tracking);
  font-weight: var(--nv-type-weight-medium);
  line-height: var(--nv-type-body-line);
  box-sizing: border-box;
  transition: background var(--dash-transition), color var(--dash-transition);
}

.dash-nav__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: transparent;
  color: inherit;
}

.dash-nav__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.88;
}

.dash-nav__label {
  min-width: 0;
  flex: 0 1 auto;
}

.dash-nav__link:hover {
  color: var(--dash-text);
  background: var(--dash-surface);
}

.dash-nav__link.is-active {
  color: var(--dash-text);
  background: var(--dash-surface);
}

.dash-nav__link.is-active .dash-nav__icon {
  background: transparent;
}

.dash-nav__link.is-active svg {
  color: var(--dash-icon);
  opacity: 1;
}

.dash-nav__link--parent.is-active {
  color: var(--dash-text);
  background: var(--dash-surface);
}

.dash-nav__link--parent.is-active svg {
  color: var(--dash-icon);
  opacity: 1;
}

/* Nested count, e.g. receipts waiting for review: same pill as the plan badge. */
.dash-nav__count {
  min-width: 20px;
  margin-inline-start: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dash-text) 8%, transparent);
  color: var(--dash-text-muted);
  font-size: 11px;
  font-weight: var(--nv-type-weight-medium);
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.dash-nav__count[hidden] {
  display: none;
}

/* Sidebar trees (Transactions, Settings) — canonical copy of DS .nv-o-sidebar__sub. */

.dash-nav__group,
.dash-nav__sub {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
}

.dash-nav__sub {
  position: relative;
  padding-inline-start: 36px;
}

.dash-nav__sub::before {
  position: absolute;
  top: -4px;
  bottom: 30px;
  left: 24px;
  border-left: 1px solid var(--dash-sidebar-branch);
  content: "";
  pointer-events: none;
}

.dash-nav__sublink {
  position: relative;
  min-height: 40px;
  padding-block: 8px;
  padding-inline-start: 12px;
  padding-inline-end: 18px;
}

.dash-nav__sublink .dash-nav__icon {
  display: none;
}

.dash-nav__sublink::before {
  position: absolute;
  top: calc(50% - 10px);
  left: -12px;
  width: 12px;
  height: 10px;
  border-bottom: 1px solid var(--dash-sidebar-branch);
  border-left: 1px solid var(--dash-sidebar-branch);
  border-bottom-left-radius: 10px;
  content: "";
  pointer-events: none;
}

/* The plan card (docs/product/PLAN_BANNER.md): a neutral surface fill in both themes with a 1 px gradient rim
   (owner 2026-11-19), no glow, video or colour. The rim is a masked ::after ring in the text colour, bright at the
   top left and fading towards the bottom right, so it flips with the theme; it takes no layout and lies over the
   picture's edge. Hover only deepens the fill. */
.dash-pro,
.dash-pro__next {
  --dash-pro-rim: linear-gradient(150deg,
    color-mix(in srgb, var(--dash-text) 42%, transparent),
    color-mix(in srgb, var(--dash-text) 8%, transparent) 45%,
    color-mix(in srgb, var(--dash-text) 4%, transparent) 70%,
    color-mix(in srgb, var(--dash-text) 16%, transparent));
}

.dash-pro::after,
.dash-pro__next::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: var(--dash-pro-rim);
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.dash-pro-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: 16px;
}

.dash-pro {
  display: block;
  padding: var(--spacing-lg);
  /* The star, the title and the line on one centre axis (owner 2026-11-06). */
  text-align: center;
  border: 0;
  border-radius: var(--dash-radius-card);
  background: var(--dash-surface);
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: background var(--dash-transition);
}

.dash-pro:hover {
  background: var(--dash-surface-hover, var(--dash-surface));
}

/* The close × shows on hover of the banner (owner 2026-11-06) and when it has keyboard focus; on a touch screen,
   with no hover, it stays visible. */
@media (hover: hover) {
  .dash-pro-wrap .dash-pro__dismiss {
    opacity: 0;
    transition: opacity var(--dash-transition);
  }

  .dash-pro-wrap:hover .dash-pro__dismiss,
  .dash-pro-wrap:focus-within .dash-pro__dismiss {
    opacity: 1;
  }
}

.dash-pro__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  color: var(--dash-text);
}

.dash-pro__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.dash-pro__title {
  margin: 0 0 6px;
  font-size: var(--nv-type-body-size);
  letter-spacing: var(--nv-type-body-tracking);
  font-weight: var(--nv-type-weight-semibold);
}

.dash-pro__text {
  margin: 0;
  font-size: var(--nv-type-footnote-size);
  letter-spacing: var(--nv-type-footnote-tracking);
  color: var(--dash-text-muted);
  line-height: var(--nv-type-footnote-line);
}

.dash-pro__dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--dash-text-muted);
  cursor: pointer;
  transition: background var(--dash-transition), color var(--dash-transition), transform var(--dash-transition);
}

.dash-pro__dismiss:hover {
  background: var(--dash-surface-hover, var(--dash-surface));
  color: var(--dash-text);
}

.dash-pro__dismiss svg {
  width: 14px;
  height: 14px;
  opacity: 0.44;
  transition: opacity var(--dash-transition);
}

.dash-pro__dismiss:is(:hover, :focus-visible) svg {
  opacity: 0.9;
}

.dash-pro-wrap[hidden] {
  display: none;
}

/* With a picture (owner 2026-11-19, docs/product/PLAN_BANNER.md; full card 2026-11-20): the photo fills the whole card,
   no surface band under it; a smooth fade in the card's surface colour rises from the bottom edge to the middle, and
   the title and the line sit on it at a 20 px inset. A dark badge on the top left corner. The next card in the queue
   lies behind it, a strip of its picture peeking out above (owner 2026-11-19); on hover the two tilt apart and the
   next one shows a little more; × slides the card off and the next one comes forward. One card has nothing behind
   it. The picture replaces the star. Below 1030 px of height (the compaction below) and on the icon rail the card
   keeps its star and shows no stack. */
.dash-pro__media,
.dash-pro__media[hidden],
.dash-pro__next,
.dash-pro__next[hidden],
.dash-pro__badge[hidden] {
  display: none;
}

@media (min-width: 801px) and (min-height: 1030px) {
  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media {
    --dash-pro-inset: 20px;
    margin-top: 24px;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media.has-next {
    margin-top: 32px;
  }

  /* The next card: the same surface and picture, set back (scaled from its top, raised 10 px) so a strip of its
     picture shows above the card in front. */
  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media.has-next .dash-pro__next {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    border-radius: var(--dash-radius-card);
    background: var(--dash-surface);
    transform: translateY(-10px) scale(.92);
    transform-origin: 50% 0;
    /* Set back: see-through, so it reads as the next card and not a second banner (owner 2026-11-19). */
    opacity: .55;
    transition: transform 320ms cubic-bezier(.2, .7, .2, 1), opacity 220ms ease;
    pointer-events: none;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-next .dash-pro__next-media {
    display: block;
    aspect-ratio: 16 / 9;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-next .dash-pro__next-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Set back: a step dimmer than the card in front, in both themes. */
    filter: brightness(.72);
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media.has-next:hover .dash-pro__next {
    opacity: .75;
    transform: translateY(-24px) scale(.94) rotate(3deg);
  }

  /* × on the card in front: it slides off and the next card comes forward into its place. */
  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media.is-leaving .dash-pro {
    opacity: 0;
    transform: translateX(-16px) rotate(-4deg);
    transition: transform 200ms ease-in, opacity 200ms ease-in;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media.has-next.is-leaving .dash-pro__next {
    opacity: 1;
    transform: none;
  }

  /* The photo's old 16:9 height is kept as room above the copy, so the card stays the size it was. */
  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media .dash-pro {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: calc(56.25% + var(--dash-pro-inset)) var(--dash-pro-inset) var(--dash-pro-inset);
    text-align: start;
    transform-origin: 50% 100%;
    transition: background var(--dash-transition), transform 320ms cubic-bezier(.2, .7, .2, 1);
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media:hover .dash-pro {
    transform: rotate(-1.5deg);
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media .dash-pro__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    overflow: hidden;
    background: var(--dash-surface-hover, var(--dash-surface));
  }

  /* The fade: solid surface at the bottom edge, eased so the copy always sits on enough of it, clear by the middle. */
  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media .dash-pro__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
      var(--dash-surface) 0%,
      color-mix(in srgb, var(--dash-surface) 94%, transparent) 14%,
      color-mix(in srgb, var(--dash-surface) 78%, transparent) 26%,
      color-mix(in srgb, var(--dash-surface) 48%, transparent) 38%,
      color-mix(in srgb, var(--dash-surface) 18%, transparent) 46%,
      transparent 52%);
    content: "";
    pointer-events: none;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media .dash-pro__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(.2, .7, .2, 1);
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media .dash-pro:hover .dash-pro__media img {
    transform: scale(1.03);
  }

  /* One of the two pictures (plan-gate.js bannerImage): the dark one, the light one in the light theme. The light
     pictures are shot in daylight, so they need no lift. */
  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap :is(.dash-pro__media, .dash-pro__next-media) img[data-dash-pro-light],
  :root:is(.light, .light-theme):not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap :is(.dash-pro__media, .dash-pro__next-media) img:not([data-dash-pro-light]) {
    display: none;
  }

  :root:is(.light, .light-theme):not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap :is(.dash-pro__media, .dash-pro__next-media) img[data-dash-pro-light] {
    display: block;
  }

  /* The badge: a dark frosted pill on the copy's inset, the × scrim's family, so it labels the picture without
     outshining it (owner 2026-11-19: the white pill was too bright). */
  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media .dash-pro__badge {
    position: absolute;
    top: var(--dash-pro-inset);
    left: var(--dash-pro-inset);
    display: inline-grid;
    height: 22px;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: color-mix(in srgb, #000 40%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, .88);
    font-size: var(--nv-type-caption-size, 11px);
    font-weight: var(--nv-type-weight-semibold, 600);
    line-height: 1;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media .dash-pro__icon {
    display: none;
  }

  /* The × on the picture, centred on the badge's line: a dark scrim so it reads on any photo, in both themes. */
  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media .dash-pro__dismiss {
    top: calc(var(--dash-pro-inset) - 3px);
    right: calc(var(--dash-pro-inset) - 3px);
    background: color-mix(in srgb, #000 42%, transparent);
    color: #fff;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media .dash-pro__dismiss:hover {
    background: color-mix(in srgb, #000 60%, transparent);
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-pro-wrap.has-media .dash-pro__dismiss svg {
    opacity: .9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-pro__media img,
  .dash-pro-wrap.has-media .dash-pro,
  .dash-pro-wrap.has-media .dash-pro__next {
    transition: none !important;
  }

  .dash-pro__media img,
  .dash-pro-wrap.has-media .dash-pro,
  .dash-pro-wrap.has-media:hover .dash-pro__next {
    transform: none !important;
  }

  .dash-pro-wrap.has-media.has-next .dash-pro__next {
    transform: translateY(-10px) scale(.92) !important;
  }
}

@media (min-width: 801px) {
  .dash-sidebar-collapsed .dash-pro__media,
  body.dash-sidebar-collapsed .dash-pro__media {
    display: none !important;
  }
}

/* With the plan card (Free) the whole menu still fits a 1440 × 900 screen, like Plus without a card (UI audit
   2026-11-17): below 1030 px of height the rows drop to the sublink height (40 px), and below 966 px the card folds
   into one row (star and title; the line stays for screen readers). Taller screens and the icon rail keep the
   full card. */
@media (min-width: 801px) and (max-height: 1029px) {
  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-sidebar:has(> .dash-pro-wrap:not([hidden])) .dash-nav__link {
    min-height: 40px;
    padding-block: 6px;
  }
}

@media (min-width: 801px) and (max-height: 965px) {
  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-sidebar > .dash-pro-wrap:not([hidden]) {
    margin-top: 8px;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-sidebar > .dash-pro-wrap .dash-pro {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: var(--dash-radius-btn);
    text-align: start;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-sidebar > .dash-pro-wrap:has(.dash-pro__dismiss:not([hidden])) .dash-pro {
    padding-inline-end: 40px;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-sidebar > .dash-pro-wrap .dash-pro__icon {
    flex: none;
    width: 28px;
    height: 28px;
    margin: 0;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-sidebar > .dash-pro-wrap .dash-pro__icon svg {
    width: 18px;
    height: 18px;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-sidebar > .dash-pro-wrap .dash-pro__title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-sidebar > .dash-pro-wrap .dash-pro__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  :root:not(.dash-sidebar-collapsed) body:not(.dash-sidebar-collapsed) .dash-sidebar > .dash-pro-wrap .dash-pro__dismiss {
    top: 8px;
  }
}

/* Collapsed app sidebar (icon rail). Up to 800px the sidebar is the hamburger drawer and always shows its labels. */
@media (min-width: 801px) {

  :is(html.dash-sidebar-collapsed, .dash-page.dash-sidebar-collapsed) {
    --dash-sidebar-w: 72px;
  }

  .dash-sidebar-collapsed .dash-sidebar {
    padding: 18px 12px;
    align-items: center;
    overflow-x: visible;
  }

  .dash-sidebar-collapsed .dash-sidebar-toggle {
    position: static;
    order: 1;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin: 0 0 16px;
    border-radius: 14px;
    background: transparent;
    color: var(--dash-text-muted);
    box-shadow: none;
  }

  .dash-sidebar-collapsed .dash-sidebar-toggle svg {
    opacity: 0.88;
  }

  .dash-sidebar-collapsed .dash-sidebar-toggle:hover,
  .dash-sidebar-collapsed .dash-sidebar-toggle:focus-visible {
    background: var(--dash-surface);
    color: var(--dash-text-muted);
  }

  .dash-sidebar-collapsed .dash-sidebar > .dash-sidebar-toggle {
    display: grid;
  }

  .dash-sidebar-collapsed .dash-logo {
    display: none;
  }

  .dash-sidebar-collapsed .dash-logo__word,
  .dash-sidebar-collapsed .dash-nav__label,
  .dash-sidebar-collapsed .dash-pro__title,
  .dash-sidebar-collapsed .dash-pro__text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .dash-sidebar-collapsed .dash-nav__sub {
    display: none !important;
  }

  /* Entitlement labels belong to the expanded navigation row. In the compact
     rail the link name is already carried by its accessible label and tooltip;
     keeping the badge in flow widens the 44px control and clips the rail. */
  .dash-sidebar-collapsed .nv-plan-nav-badge {
    display: none !important;
  }

  .dash-sidebar-collapsed .dash-sidebar__scroll {
    order: 2;
    align-items: center;
    gap: 6px;
  }

  .dash-sidebar-collapsed .dash-nav {
    order: 2;
    width: 44px;
    align-items: center;
    gap: 6px;
  }

  .dash-sidebar-collapsed .dash-nav__link,
  .dash-sidebar-collapsed .dash-nav__link--parent,
  .dash-sidebar-collapsed .dash-nav__sublink {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    gap: 0;
    border-radius: 14px;
  }

  .dash-sidebar-collapsed .dash-nav__icon {
    width: 44px;
    height: 44px;
    background: transparent;
  }

  /* The tree is hidden in the rail, so the group parent shows the current section. */
  .dash-sidebar-collapsed .dash-nav__link--parent.has-current {
    color: var(--dash-text);
    background: var(--dash-surface);
  }

  .dash-sidebar-collapsed .dash-nav__link--parent.has-current svg {
    color: var(--dash-icon);
    opacity: 1;
  }

  .dash-sidebar-collapsed .dash-nav__link.is-active .dash-nav__icon,
  .dash-sidebar-collapsed .dash-nav__link--parent.is-active .dash-nav__icon {
    background: transparent;
  }

  .dash-sidebar-collapsed .dash-pro {
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 16px;
  }

  .dash-sidebar-collapsed .dash-pro-wrap {
    order: 5;
    width: 44px;
    height: 44px;
  }

  .dash-sidebar-collapsed .dash-pro__dismiss {
    display: none;
  }

  .dash-sidebar-collapsed .dash-pro__icon {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 14px;
  }

  .dash-sidebar-collapsed .dash-pro__icon svg {
    width: 22px;
    height: 22px;
  }
}

/* Settings sections this account does not see (docs/product/ACCOUNT_TYPES.md, js/plan-access.js). */
html[data-nv-settings-hidden~="team"] .dash-nav a[href="./team.html"],
html[data-nv-settings-hidden~="billing"] .dash-nav a[href="./billing.html"],
html[data-nv-settings-hidden~="api"] .dash-nav a[href="./api.html"],
html[data-nv-settings-hidden~="integrations"] .dash-nav a[href="./integrations.html"],
html[data-nv-settings-hidden~="bank"] [data-get-paid] { display: none !important; }
