/* Ally Grow seller menu and account journey strip.
   Vendored byte-for-byte with grow-nav.js into Ally Grow, Signals, Connect,
   Briefs, Delivery and Order. Uses only the design-system tokens. */
.grow-nav { display: grid; gap: 2px; margin-top: 22px; }
.grow-label { margin: 18px 12px 6px; color: var(--chrome-muted); font-size: 0.62rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.grow-item {
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--chrome-text);
  font-weight: 550;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.grow-item span:not(.grow-badge) { flex: 1; min-width: 0; }
.grow-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none; }
.grow-item.is-active { background: var(--chrome-raised); color: #fff; font-weight: 650; }
.grow-item.is-active::before { position: absolute; top: 9px; bottom: 9px; left: -12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); content: ""; }
.grow-icon { width: 18px; height: 18px; flex: 0 0 18px; color: var(--chrome-muted); }
.grow-item:hover .grow-icon { color: var(--chrome-text); }
.grow-item.is-active .grow-icon { color: #ff4651; }
.grow-home { min-height: 38px; margin-bottom: 12px; color: #fff; font-weight: 600; }
.grow-section { display: grid; }
.grow-step {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.grow-step:hover { background: rgba(255, 255, 255, 0.05); }
.grow-section.is-current > .grow-step { background: rgba(255, 255, 255, 0.06); }
.grow-step-number {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #4a4545;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.grow-step-icon { width: 13px; height: 13px; }
.grow-section.is-current .grow-step-number { background: var(--brand); box-shadow: 0 0 0 3px rgba(220, 7, 20, 0.28); }
.grow-step-text { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.grow-step-text strong { color: #fff; font-size: 0.84rem; font-weight: 650; }
.grow-step-text small { color: var(--chrome-muted); font-size: 0.72rem; }
.grow-chevron { width: 16px; height: 16px; flex: 0 0 16px; color: var(--chrome-muted); transition: transform 0.12s ease; }
.grow-step[aria-expanded="true"] .grow-chevron { transform: rotate(180deg); }
.grow-items { display: grid; gap: 1px; padding: 2px 0 8px 10px; }
.grow-items[hidden] { display: none; }
.grow-context:empty { display: none; }
.grow-context { display: grid; gap: 1px; margin-top: 6px; }
.grow-step.is-coming, .grow-step.is-coming:hover { min-height: 36px; background: transparent; cursor: default; }
.grow-step.is-coming .grow-step-number { border: 1.5px dashed #6f6867; background: transparent; color: var(--chrome-muted); }
.grow-step.is-coming .grow-step-text strong { color: var(--chrome-muted); font-weight: 550; }
/* A stage in a group with nothing open to the person yet (#741): Pitch, Keep. */
.grow-item.is-coming, .grow-item.is-coming:hover { min-height: 32px; background: transparent; color: var(--chrome-muted); cursor: default; font-weight: 500; }
.grow-item.is-coming small { flex: 0 0 auto; color: var(--chrome-muted); font-size: 0.68rem; opacity: 0.85; }
.grow-coming-mark { width: 18px; height: 18px; flex: 0 0 18px; box-sizing: border-box; border: 1.5px dashed #6f6867; border-radius: 50%; }
.grow-badge { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; }
.grow-badge-quiet { background: rgba(255, 255, 255, 0.14); font-weight: 650; }

/* "Where this account is": one strip, the same in every service. */
.grow-journey { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); }
.grow-journey[hidden] { display: none; }
.grow-journey-title { margin: 0; color: var(--muted); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.grow-journey-loading { margin: 0; color: var(--muted); font-size: 0.82rem; }
.grow-journey-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.grow-journey-step { display: grid; align-content: start; gap: 2px; padding-top: 8px; border-top: 3px solid var(--line); font-size: 0.82rem; }
.grow-journey-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 8px; }
.grow-journey-step .grow-journey-label { color: var(--ink, inherit); font-size: 0.86rem; font-weight: 650; }
.grow-journey-status { color: var(--muted); font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.grow-journey-summary { color: var(--muted); }
.grow-journey-step.is-done { border-top-color: var(--brand); }
.grow-journey-step.is-done .grow-journey-status { color: var(--success); }
.grow-journey-step.is-current { border-top-color: var(--accent); }
.grow-journey-step.is-current .grow-journey-status { color: var(--ccuk-red-strong); }
.grow-journey-step.is-coming { border-top-style: dashed; }
.grow-journey-step.is-coming .grow-journey-label { color: var(--muted); }
.grow-journey-step a { font-weight: 600; }

/* Preview as user: on every seller page while an admin previews as someone else. */
.grow-preview-banner { position: fixed; z-index: 1000; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 12px; max-width: min(640px, calc(100vw - 32px)); padding: 10px 10px 10px 16px; transform: translateX(-50%); border: 1px solid var(--accent); border-radius: 999px; background: var(--chrome); box-shadow: var(--shadow-lg); color: var(--chrome-text); font-size: 0.84rem; }
.grow-preview-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 95, 0, 0.25); }
.grow-preview-text { min-width: 0; display: grid; line-height: 1.25; }
.grow-preview-text strong { overflow: hidden; color: #fff; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.grow-preview-text small { color: var(--chrome-muted); font-size: 0.74rem; }
.grow-preview-end { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 650; white-space: nowrap; }
.grow-preview-end:hover { background: var(--brand); color: #fff; text-decoration: none; }
body.is-grow-previewing { padding-bottom: 76px; }
@media (max-width: 600px) {
  .grow-preview-banner { left: 16px; right: 16px; bottom: 12px; max-width: none; transform: none; border-radius: var(--radius-lg); }
}
/* A scoped seller (the BGP27 rollout) sees only what is open to them. */
body.is-grow-scoped .estate-toggle,
body.is-grow-scoped .estate-links { display: none !important; }
/* The version line under the estate switcher: at least 4.5:1 on the rail (5.3:1; Dafydd, 10 November 2026). */
.sidebar .system-footer small { color: var(--chrome-muted, #a39b9a); }

/* The menu closed to icons (#1040, 24 November 2026). Self-contained: the
   class is set by grow-nav.js, and only at widths where the rail is fixed. */
.grow-flyout-title { display: none; }
.grow-step-dot { display: none; }
.grow-sidebar-head { display: flex; align-items: center; gap: 8px; }
.grow-sidebar-head .brand-lockup { flex: 1 1 auto; min-width: 0; }
.grow-collapse-toggle { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; margin: 0 6px 0 0; padding: 0; border: 1px solid var(--chrome-line, #4a4545); border-radius: var(--radius); background: transparent; color: var(--chrome-muted); cursor: pointer; }
.grow-collapse-toggle:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.grow-collapse-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.grow-collapse-toggle svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .grow-collapse-toggle { display: none; } }
@media (min-width: 861px) {
  .grow-sidebar-head .brand-kicker { display: none; }
  body.grow-collapsed .app-shell { grid-template-columns: 68px minmax(0, 1fr); }
  body.grow-collapsed .sidebar { padding-inline: 10px; }
  body.grow-collapsed .sidebar .brand-lockup { grid-template-columns: 36px; justify-content: center; padding: 0; }
  body.grow-collapsed .sidebar .brand-lockup > div, body.grow-collapsed .sidebar .system-footer, body.grow-collapsed .sidebar .sidebar-note { display: none; }
  body.grow-collapsed .grow-sidebar-head { flex-direction: column; gap: 14px; }
  body.grow-collapsed .grow-sidebar-head .brand-lockup { flex: none; }
  body.grow-collapsed .grow-collapse-toggle { margin: 0 auto; }
  body.grow-collapsed .grow-home { justify-content: center; padding: 0; }
  body.grow-collapsed .grow-home > span { display: none; }
  body.grow-collapsed .grow-home.is-active::before { left: -10px; }
  body.grow-collapsed .grow-step { justify-content: center; padding: 4px 0; }
  body.grow-collapsed .grow-step > .grow-step-text, body.grow-collapsed .grow-step > .grow-chevron, body.grow-collapsed .grow-step > .grow-badge { display: none; }
  body.grow-collapsed .grow-step-number { width: 28px; height: 28px; flex-basis: 28px; }
  body.grow-collapsed .grow-step-icon { width: 15px; height: 15px; }
  /* Something is waiting in this group: a small dot on its icon (#1081). The ring is the rail's own colour, so it reads on the red current group too. */
  body.grow-collapsed .grow-step-number { position: relative; }
  body.grow-collapsed .grow-step-dot { position: absolute; top: -2px; right: -2px; display: block; width: 9px; height: 9px; box-sizing: border-box; border: 2px solid var(--chrome, #2c2929); border-radius: 50%; background: #ff4651; }
  body.grow-collapsed .grow-section.is-current .grow-step-dot { background: #fff; }
  /* A group's pages open beside its icon on hover or keyboard focus. Fixed, so the rail's scrolling does not clip them. */
  /* !important: every site's stylesheet hides [hidden] with !important, and a closed group's pages are [hidden]. */
  body.grow-collapsed .grow-items, body.grow-collapsed .grow-items[hidden] { display: none; }
  body.grow-collapsed .grow-section:hover > .grow-items,
  body.grow-collapsed .grow-section:focus-within > .grow-items {
    position: fixed; left: 62px; z-index: 1300; display: grid !important; gap: 1px; width: 232px; max-height: calc(100vh - 16px); overflow-y: auto;
    padding: 10px 10px 10px 16px; border: 1px solid var(--chrome-line, #4a4545); border-left: 6px solid transparent; background-clip: padding-box;
    border-radius: var(--radius-lg); background-color: var(--chrome); box-shadow: var(--shadow-lg);
  }
  body.grow-collapsed .grow-flyout-title { display: block; margin: 0 0 6px 2px; color: #fff; font-size: 0.84rem; font-weight: 650; }
  body.grow-collapsed .grow-items .grow-item.is-active::before { left: -8px; }
}
