/* The setup wizard's one sidebar (app.js renderSetupRail, setup.js renderSetup). While a Business is in setup
   the shell's rail is the wizard's navy progress column, and what the white rail held is folded into it: the
   brand, the Business card and its switcher, the three steps with the illustration, and the account at the
   foot. Everything is set in the column's own terms (onboarding.css .lw-rail): its navy, Lite Inter, white
   at the column's three strengths (100% for what is current, 75% for what can be pressed, 60% for what is
   said quietly), gold only for the step the person is on. Its controls answer as the column's step marks
   change, .2s ease; what opens from it opens on the step change's curve, 180ms. It does not collapse.
   On a phone it is the drawer, as the white rail is. Loaded last. */
.tenant-shell.in-setup {
  --sb-navy: #0d2741;
  --sb-raise: #13304f;
  --sb-line: rgb(255 255 255 / 14%);
  --sb-quiet: rgb(255 255 255 / 60%);
  --sb-soft: rgb(255 255 255 / 75%);
  --sb-wash: rgb(255 255 255 / 7%);
  --sb-wash-strong: rgb(255 255 255 / 11%);
  --sb-gold: #f5c66c;
  --sb-ease: cubic-bezier(.22, .7, .3, 1);
  --lw-navy: #0d2741;
  --lw-gold: #f5c66c;
}

/* ---------- The column ---------- */
.tenant-shell.in-setup #rail {
  width: 17.5rem;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 26px 20px 18px;
  border-right: 0;
  background: var(--sb-navy);
  box-shadow: none;
  color: #fff;
  font-family: "Lite Inter", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.tenant-shell.in-setup #rail::before, .tenant-shell.in-setup #rail::after { display: none; }
.tenant-shell.in-setup .app-frame { margin-left: 17.5rem; }
.tenant-shell.in-setup #rail *, .tenant-shell.in-setup #rail *::before, .tenant-shell.in-setup #rail *::after { box-sizing: border-box; }

/* The brand, the sign-in page's white wordmark (onboarding.css .auth-brand), at the column's left edge. */
.tenant-shell.in-setup .rail-brand-row { display: flex; height: auto; min-height: 40px; align-items: center; margin: 0 0 22px; padding: 0 10px; }
.tenant-shell.in-setup .setup-brand { display: flex; align-items: center; }
.tenant-shell.in-setup .setup-brand img { width: auto; height: 28px; }

/* ---------- The Business card ----------
   The white rail's card in the column's terms: no fill at rest, a hairline of the column's white, the name in
   white 600, its product line quiet. The whole card opens the switcher; the chevron turns over as it does. */
.tenant-shell.in-setup #rail .rail-workspace {
  display: grid;
  width: auto;
  min-height: 64px;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  margin: 0;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--sb-line);
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  transform: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.tenant-shell.in-setup #rail .rail-workspace::before, .tenant-shell.in-setup #rail .rail-workspace::after { display: none; }
.tenant-shell.in-setup #rail .rail-workspace-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 10px; background: var(--sb-wash-strong); color: #fff; box-shadow: none; }
.tenant-shell.in-setup #rail .rail-workspace-icon .icon { width: 18px; height: 18px; }
.tenant-shell.in-setup #rail .rail-workspace-copy { display: grid; min-width: 0; gap: 2px; opacity: 1; }
.tenant-shell.in-setup #rail .lacak-business-trigger { display: block; min-width: 0; height: auto; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.tenant-shell.in-setup #rail .lacak-business-trigger span { display: block; overflow: hidden; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.tenant-shell.in-setup #rail .rail-workspace-copy small { display: block; color: var(--sb-quiet); font-size: 12px; font-weight: 500; line-height: 1.3; }
.tenant-shell.in-setup #rail .rail-workspace .business-chevron { stroke: var(--sb-soft); transition: transform 180ms var(--sb-ease); }
.tenant-shell.in-setup #rail .rail-workspace:hover { border-color: rgb(255 255 255 / 24%); background: var(--sb-wash); }
.tenant-shell.in-setup #rail .rail-workspace:has([aria-expanded="true"]) { border-color: rgb(255 255 255 / 30%); background: var(--sb-wash-strong); }
.tenant-shell.in-setup #rail .rail-workspace:has(:focus-visible) { border-color: var(--sb-gold); box-shadow: 0 0 0 1px var(--sb-gold); }

/* ---------- The steps and the illustration ----------
   The column's own (onboarding.css .lw-progress, .lw-steps, .lw-rail-art), under the card. The illustration
   sits at the foot of what height is left above the account; when the window is short the column scrolls. */
.tenant-shell.in-setup .rail-setup { display: flex; min-height: 0; flex: 1 0 auto; flex-direction: column; margin-top: 30px; padding: 0 10px; }
.tenant-shell.in-setup .rail-setup :where(header, ol, li) { margin: 0; padding: 0; list-style: none; }
.tenant-shell.in-setup .rail-setup .lw-progress-title { margin-bottom: 14px; }
.tenant-shell.in-setup .rail-setup .lw-steps { gap: 4px; }
.tenant-shell.in-setup .rail-setup .lw-step { min-height: 72px; }
.tenant-shell.in-setup .rail-setup .lw-rail-art { min-height: 0; flex: 0 0 auto; max-height: 36vh; margin: auto 0 0; padding-top: 20px; }

/* ---------- The account ----------
   The white rail's account card in the column's terms, at the foot. Its menu opens beside it
   on a desktop and above it in the phone's drawer, as before. */
.tenant-shell.in-setup #rail .rail-account {
  position: relative;
  display: grid;
  width: auto;
  min-height: 62px;
  flex: 0 0 auto;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  margin: 18px 0 0;
  padding: 10px 12px 10px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.tenant-shell.in-setup #rail .rail-account .rail-avatar .avatar { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: var(--sb-wash-strong); color: #fff; font-size: 12px; font-weight: 600; box-shadow: none; }
.tenant-shell.in-setup #rail .rail-account-copy { display: grid; min-width: 0; gap: 2px; opacity: 1; }
.tenant-shell.in-setup #rail .rail-account-copy strong { overflow: hidden; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.tenant-shell.in-setup #rail .rail-account-copy small { overflow: hidden; color: var(--sb-quiet); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.tenant-shell.in-setup #rail .rail-account > .icon { width: 16px; height: 16px; color: var(--sb-soft); }
.tenant-shell.in-setup #rail .rail-account:hover { border-color: var(--sb-line); background: var(--sb-wash); transform: none; }
.tenant-shell.in-setup #rail .rail-account[aria-expanded="true"], .tenant-shell.in-setup #rail .rail-account[aria-expanded="true"]:hover { border-color: rgb(255 255 255 / 30%); background: var(--sb-wash-strong); }
.tenant-shell.in-setup #rail .rail-account:focus-visible { outline: none; border-color: var(--sb-gold); box-shadow: 0 0 0 1px var(--sb-gold); }

/* A short window: the steps close up. */
@media (max-height: 760px) {
  .tenant-shell.in-setup .rail-setup .lw-step { min-height: 60px; }
  .tenant-shell.in-setup .rail-setup .lw-step-mark { width: 40px; height: 40px; }
  .tenant-shell.in-setup .rail-setup .lw-step + .lw-step::before { left: 19.6px; top: -10px; height: 20px; }
}

/* ---------- What opens from the column ----------
   The Business list and the account menu, in the column's raised navy: the rows' words in white, their
   quiet lines at the column's 60%, the current Business on the column's wash with a gold tick, the chosen
   language in the current step's gold. They open on the column's step-change curve, 180ms, and leave as
   before. The phone's Business sheet stays the dialogs' sheet, white, over the page. */
.biz-pop.is-navy { border-color: rgb(255 255 255 / 12%); background: #13304f; box-shadow: 0 22px 52px rgb(2 12 28 / 45%), 0 2px 8px rgb(2 12 28 / 30%); color: #fff; font-family: "Lite Inter", Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.biz-pop.is-navy.entering { animation-duration: 180ms; animation-timing-function: cubic-bezier(.22, .7, .3, 1); }
.biz-pop.is-navy .biz-org { background: #13304f; color: rgb(255 255 255 / 60%); }
@container scroll-state(stuck: top) { .biz-pop.is-navy .biz-org-in { border-bottom-color: rgb(255 255 255 / 10%); } }
.biz-pop.is-navy .biz-group + .biz-group { border-top-color: rgb(255 255 255 / 10%); }
.biz-pop.is-navy .biz-row { color: #fff; transition: background-color .2s ease; }
@media (hover: hover) { .biz-pop.is-navy .biz-row:hover { background: rgb(255 255 255 / 7%); } }
.biz-pop.is-navy .biz-row.is-current, .biz-pop.is-navy .biz-row.is-current:hover { background: rgb(255 255 255 / 11%); }
.biz-pop.is-navy .biz-copy strong, .biz-pop.is-navy .biz-row.is-current strong { color: #fff; }
.biz-pop.is-navy .biz-row.is-current strong { font-weight: 700; }
.biz-pop.is-navy .biz-row.is-blocked strong { color: rgb(255 255 255 / 75%); }
.biz-pop.is-navy .biz-copy small { color: rgb(255 255 255 / 60%); }
.biz-pop.is-navy .biz-check { color: #f5c66c; }
.biz-pop.is-navy .biz-row:focus-visible { outline-color: #f5c66c; }
.biz-pop.is-navy .biz-loading, .biz-pop.is-navy .biz-empty p { color: rgb(255 255 255 / 60%); }
.biz-pop.is-navy .biz-empty strong { color: #fff; }

.tenant-shell .lacak-account-menu.is-navy { --ink: #fff; --muted: rgb(255 255 255 / 60%); --line: rgb(255 255 255 / 12%); --soft: rgb(255 255 255 / 7%); border-color: var(--line); background: #13304f; box-shadow: 0 22px 52px rgb(2 12 28 / 45%), 0 2px 8px rgb(2 12 28 / 30%); font-family: "Lite Inter", Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.lacak-account-menu.is-navy.entering { animation-duration: 180ms; animation-timing-function: cubic-bezier(.22, .7, .3, 1); }
.lacak-account-menu.is-navy .account-menu-avatar { background: rgb(255 255 255 / 11%); color: #fff; font-size: 10px; font-weight: 600; }
.lacak-account-menu.is-navy .account-menu-names strong { font-weight: 600; }
.lacak-account-menu.is-navy .account-menu-icon { background: rgb(255 255 255 / 9%); color: #fff; }
.lacak-account-menu.is-navy .account-menu-arrow { color: rgb(255 255 255 / 60%); }
.tenant-shell .lacak-account-menu.is-navy button[role="menuitem"] { color: #fff; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.lacak-account-menu.is-navy .account-menu-lang-copy strong { font-weight: 600; }
.tenant-shell .lacak-account-menu.is-navy button[data-action="sign-out"] { color: #ffb4ae; }
.lacak-account-menu.is-navy button[data-action="sign-out"] .account-menu-icon { background: rgb(255 140 130 / 14%); color: #ffb4ae; }
.tenant-shell .lacak-account-menu.is-navy button[data-action="sign-out"]:hover { background: rgb(255 140 130 / 10%); }
.tenant-shell .lacak-account-menu.is-navy .lang-segment button { font-weight: 700; transition: background-color .2s ease, color .2s ease; }
.tenant-shell .lacak-account-menu.is-navy .lang-segment button:hover { color: #fff; }
.tenant-shell .lacak-account-menu.is-navy .lang-segment button[aria-checked="true"] { background: #f5c66c; color: #0d2741; }
.lacak-account-menu.is-navy button:focus-visible { outline-color: #f5c66c; }

/* ---------- The phone's drawer ----------
   The same column slid in from the left, over the page, with the drawer's ✕ drawn in the column's terms. */
@media (max-width: 640px) {
  .tenant-shell.in-setup .app-frame { margin-left: 0; }
  .tenant-shell.in-setup #rail, .tenant-shell.in-setup.rail-collapsed #rail { width: min(300px, calc(100vw - 48px)); padding: 20px 16px 16px; }
  .tenant-shell.in-setup.drawer-open #rail { box-shadow: 18px 0 48px rgb(2 12 28 / 35%); }
  .tenant-shell.in-setup .rail-brand-row { min-height: 40px; margin-bottom: 20px; }
  .tenant-shell.in-setup .sidebar-close { top: 16px; right: 14px; border-color: var(--sb-line); background: transparent; color: #fff; transition: background-color .2s ease, border-color .2s ease; }
  .tenant-shell.in-setup .sidebar-close:hover { border-color: rgb(255 255 255 / 24%); background: var(--sb-wash); }
  .tenant-shell.in-setup .sidebar-close:focus-visible { outline: 2px solid var(--sb-gold); outline-offset: 2px; }
  .tenant-shell.in-setup #rail .rail-workspace { min-height: 64px; }
  .tenant-shell.in-setup .rail-setup { margin-top: 26px; }
  .tenant-shell.in-setup .rail-setup .lw-step { min-height: 60px; }
  .tenant-shell.in-setup .rail-setup .lw-step-mark { width: 40px; height: 40px; }
  .tenant-shell.in-setup .rail-setup .lw-step + .lw-step::before { left: 19.6px; top: -10px; height: 20px; }
  .tenant-shell.in-setup .rail-setup .lw-rail-art { max-height: 26vh; }
  .tenant-shell.in-setup #rail .rail-account { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .tenant-shell.in-setup #rail *, .biz-pop.is-navy, .lacak-account-menu.is-navy { animation: none !important; transition: none !important; }
}
