/* SWPM v0.7.9.8.52+53+54 — Claude shell/sidebar/header parity + collapsible icon rail
   Scope: visual shell only. No routes, permissions, PM Bridge, invoice, Fiken,
   pricing, cost or persistence behavior is changed by this layer. */

:root {
  --swpm-shell-sidebar-w: 272px;
  --swpm-shell-topbar-h: 78px;
}

/* App shell */
.swpm-body .swpm-app-shell {
  min-height: 100vh;
  background: var(--swpm-bg);
}
.swpm-body .swpm-main {
  margin-left: var(--swpm-shell-sidebar-w);
  min-height: 100vh;
  background: var(--swpm-bg);
}

/* Sidebar: align with Claude shell-v3 rhythm. */
.swpm-body .swpm-sidebar,
body.swpm .swpm-sidebar {
  width: var(--swpm-shell-sidebar-w);
  background: linear-gradient(180deg, var(--swpm-navy-900) 0%, #081f3a 100%);
  color: #cbd5e8;
  border-right: 1px solid rgba(255,255,255,.07);
  box-shadow: 1px 0 0 rgba(11,37,69,.18);
  overflow: hidden;
}
.swpm-body .swpm-sidebar .swpm-sidebar-brand,
.swpm-body .swpm-sidebar .swpm-brand,
body.swpm .swpm-sidebar .swpm-sidebar-brand,
body.swpm .swpm-sidebar .swpm-brand {
  min-height: 58px;
  padding: 14px 16px;
  gap: 11px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.swpm-body .swpm-sidebar .swpm-brand-mark,
body.swpm .swpm-sidebar .swpm-brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: #fff;
  color: var(--swpm-navy-900);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 1px 0 rgba(255,255,255,.35), 0 8px 20px rgba(0,0,0,.12);
}
.swpm-body .swpm-sidebar .swpm-brand-copy,
body.swpm .swpm-sidebar .swpm-brand-copy {
  min-width: 0;
}
.swpm-body .swpm-sidebar .swpm-brand-name,
.swpm-body .swpm-sidebar .swpm-brand strong,
body.swpm .swpm-sidebar .swpm-brand-name,
body.swpm .swpm-sidebar .swpm-brand strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swpm-body .swpm-sidebar .swpm-brand-sub,
.swpm-body .swpm-sidebar .swpm-brand span,
body.swpm .swpm-sidebar .swpm-brand-sub,
body.swpm .swpm-sidebar .swpm-brand span {
  display: block;
  color: #94a3c0;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swpm-body .swpm-nav,
body.swpm .swpm-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.45) transparent;
}
.swpm-body .swpm-nav::-webkit-scrollbar,
body.swpm .swpm-nav::-webkit-scrollbar { width: 7px; }
.swpm-body .swpm-nav::-webkit-scrollbar-thumb,
body.swpm .swpm-nav::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.35);
  border-radius: 999px;
}
.swpm-body .swpm-nav::-webkit-scrollbar-track,
body.swpm .swpm-nav::-webkit-scrollbar-track { background: transparent; }

.swpm-body .swpm-nav-group,
body.swpm .swpm-nav-group {
  margin: 14px 0 0;
}
.swpm-body .swpm-nav-heading,
body.swpm .swpm-nav-heading {
  padding: 8px 8px 6px;
  color: #7f90af;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: .075em;
  text-transform: uppercase;
  font-weight: 800;
}
.swpm-body .swpm-sidebar a.swpm-nav-link,
.swpm-body .swpm-sidebar a.swpm-nav-link:visited,
body.swpm .swpm-sidebar a.swpm-nav-link,
body.swpm .swpm-sidebar a.swpm-nav-link:visited {
  position: relative;
  min-height: 36px;
  height: 36px;
  margin: 1px 0;
  padding: 0 10px 0 8px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #c8d2e4;
  font-size: 13px;
  line-height: 18px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
  box-shadow: none;
}
.swpm-body .swpm-sidebar a.swpm-nav-link::before,
body.swpm .swpm-sidebar a.swpm-nav-link::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}
.swpm-body .swpm-nav-rail-icon,
body.swpm .swpm-nav-rail-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.055);
  color: #dbe6f8;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.02em;
}
.swpm-body .swpm-nav-label,
body.swpm .swpm-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swpm-body .swpm-sidebar a.swpm-nav-link:hover,
.swpm-body .swpm-sidebar a.swpm-nav-link:focus-visible,
body.swpm .swpm-sidebar a.swpm-nav-link:hover,
body.swpm .swpm-sidebar a.swpm-nav-link:focus-visible {
  background: rgba(255,255,255,.065);
  color: #fff;
  border-color: rgba(255,255,255,.055);
  text-decoration: none;
}
.swpm-body .swpm-sidebar a.swpm-nav-link.is-active,
.swpm-body .swpm-sidebar a.swpm-nav-link.is-active:visited,
body.swpm .swpm-sidebar a.swpm-nav-link.is-active,
body.swpm .swpm-sidebar a.swpm-nav-link.is-active:visited {
  background: rgba(27,60,105,.86);
  color: #fff;
  border-color: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.swpm-body .swpm-sidebar a.swpm-nav-link.is-active::before,
body.swpm .swpm-sidebar a.swpm-nav-link.is-active::before {
  background: #ffffff;
}
.swpm-body .swpm-sidebar a.swpm-nav-link.is-active .swpm-nav-rail-icon,
body.swpm .swpm-sidebar a.swpm-nav-link.is-active .swpm-nav-rail-icon {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.swpm-body .swpm-sidebar-footer,
body.swpm .swpm-sidebar-footer {
  min-height: 54px;
  padding: 12px 16px;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #94a3c0;
  font-size: 12px;
  background: rgba(0,0,0,.08);
}
.swpm-body .swpm-sidebar-footer .swpm-badge,
body.swpm .swpm-sidebar-footer .swpm-badge {
  background: rgba(219,234,254,.96);
  border-color: rgba(219,234,254,.25);
  color: var(--swpm-navy-700);
  font-weight: 750;
}
.swpm-sidebar-footer-copy { color: #94a3c0; }

/* Workspace header/topbar: Claude header pattern. */
.swpm-body .swpm-topbar,
body.swpm .swpm-topbar {
  min-height: var(--swpm-shell-topbar-h);
  height: auto;
  padding: 14px 28px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid var(--swpm-border);
  box-shadow: 0 1px 0 rgba(11,37,69,.03), 0 10px 26px rgba(11,37,69,.035);
  position: sticky;
  top: 0;
  z-index: 30;
}
.swpm-body .swpm-topbar-context,
body.swpm .swpm-topbar-context {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.swpm-body .swpm-breadcrumb,
body.swpm .swpm-breadcrumb {
  margin: 0;
  color: #65738a;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swpm-body .swpm-topbar h1,
body.swpm .swpm-topbar h1 {
  margin: 0;
  color: var(--swpm-ink-900);
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swpm-body .swpm-topbar-actions,
body.swpm .swpm-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}
.swpm-body .swpm-topbar-actions .swpm-badge,
body.swpm .swpm-topbar-actions .swpm-badge,
.swpm-body .swpm-user-pill,
body.swpm .swpm-user-pill {
  height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--swpm-r-pill);
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  padding: 0 10px;
}
.swpm-body .swpm-topbar-actions .swpm-btn,
body.swpm .swpm-topbar-actions .swpm-btn {
  height: 34px;
  border-radius: 9px;
}

/* Content spacing under the shell header. */
.swpm-body .swpm-content,
body.swpm .swpm-content {
  padding: 22px 28px 42px;
}
.swpm-body .swpm-card-header h2,
.swpm-body .swpm-page-toolbar h2,
.swpm-body .swpm-page-intro h2,
body.swpm .swpm-card-header h2,
body.swpm .swpm-page-toolbar h2,
body.swpm .swpm-page-intro h2 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -.015em;
}

@media (max-width: 1023px) {
  :root { --swpm-shell-sidebar-w: 74px; }
  .swpm-body .swpm-sidebar,
  body.swpm .swpm-sidebar {
    width: var(--swpm-shell-sidebar-w);
  }
  .swpm-body .swpm-main,
  body.swpm .swpm-main {
    margin-left: var(--swpm-shell-sidebar-w);
  }
  .swpm-body .swpm-sidebar .swpm-brand-copy,
  .swpm-body .swpm-sidebar .swpm-nav-heading,
  .swpm-body .swpm-sidebar .swpm-nav-label,
  .swpm-body .swpm-sidebar-footer-copy,
  body.swpm .swpm-sidebar .swpm-brand-copy,
  body.swpm .swpm-sidebar .swpm-nav-heading,
  body.swpm .swpm-sidebar .swpm-nav-label,
  body.swpm .swpm-sidebar-footer-copy {
    display: none;
  }
  .swpm-body .swpm-sidebar .swpm-sidebar-brand,
  .swpm-body .swpm-sidebar .swpm-brand,
  body.swpm .swpm-sidebar .swpm-sidebar-brand,
  body.swpm .swpm-sidebar .swpm-brand {
    justify-content: center;
    padding-inline: 10px;
  }
  .swpm-body .swpm-nav,
  body.swpm .swpm-nav { padding-inline: 9px; }
  .swpm-body .swpm-sidebar a.swpm-nav-link,
  body.swpm .swpm-sidebar a.swpm-nav-link {
    width: 44px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
    margin: 4px 0;
  }
  .swpm-body .swpm-sidebar a.swpm-nav-link::before,
  body.swpm .swpm-sidebar a.swpm-nav-link::before { display: none; }
  .swpm-body .swpm-sidebar-footer,
  body.swpm .swpm-sidebar-footer { justify-content: center; padding-inline: 8px; }
}

@media (max-width: 760px) {
  :root { --swpm-shell-sidebar-w: 272px; }
  .swpm-body .swpm-main,
  body.swpm .swpm-main { margin-left: 0; }
  .swpm-body .swpm-sidebar,
  body.swpm .swpm-sidebar {
    width: min(88vw, 300px);
  }
  .swpm-body .swpm-topbar,
  body.swpm .swpm-topbar {
    min-height: auto;
    padding: 13px 16px;
    align-items: flex-start;
    flex-direction: column;
  }
  .swpm-body .swpm-topbar h1,
  body.swpm .swpm-topbar h1 {
    font-size: 20px;
    line-height: 25px;
    white-space: normal;
  }
  .swpm-body .swpm-topbar-actions,
  body.swpm .swpm-topbar-actions { flex-wrap: wrap; justify-content: flex-start; }
  .swpm-body .swpm-content,
  body.swpm .swpm-content { padding: 18px 14px 48px; }
}

/* SWPM v0.7.9.8.53 — Claude desktop rail collapse + larger sidebar icons.
   Scope: shell presentation only. No sidebar IA, routes, permissions or business logic changes. */
:root {
  --swpm-shell-sidebar-expanded-w: 272px;
  --swpm-shell-sidebar-rail-w: 68px;
  --swpm-shell-sidebar-w: var(--swpm-shell-sidebar-expanded-w);
}

/* Bigger, more Claude-like icon cells in the expanded menu. */
.swpm-body .swpm-nav-rail-icon,
body.swpm .swpm-nav-rail-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.075);
}
.swpm-body .swpm-sidebar a.swpm-nav-link,
body.swpm .swpm-sidebar a.swpm-nav-link {
  min-height: 40px;
  height: 40px;
  gap: 10px;
}

/* Desktop collapse toggle, matching Claude's persisted rail control. */
.swpm-rail-toggle {
  margin-left: auto;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: #c8d2e4;
  background: rgba(255,255,255,.065);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
  transition: background .14s ease, color .14s ease, transform .14s ease, border-color .14s ease;
}
.swpm-rail-toggle:hover,
.swpm-rail-toggle:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
  outline: none;
}
.swpm-rail-toggle-icon {
  display: block;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}
.swpm-sidebar-close + .swpm-rail-toggle { display: none; }

/* Apply rail immediately when localStorage preference is read before body exists. */
@media (min-width: 761px) {
  html.swpm-rail-pref .swpm-main,
  body.swpm-shell--rail .swpm-main,
  .swpm-app-shell.swpm-shell--rail .swpm-main {
    margin-left: var(--swpm-shell-sidebar-rail-w) !important;
    max-width: calc(100vw - var(--swpm-shell-sidebar-rail-w)) !important;
  }
  html.swpm-rail-pref .swpm-sidebar,
  body.swpm-shell--rail .swpm-sidebar,
  .swpm-app-shell.swpm-shell--rail .swpm-sidebar,
  .swpm-sidebar.swpm-sidebar--rail {
    width: var(--swpm-shell-sidebar-rail-w) !important;
    overflow: visible;
  }
  html.swpm-rail-pref .swpm-sidebar .swpm-brand-copy,
  html.swpm-rail-pref .swpm-sidebar .swpm-nav-heading,
  html.swpm-rail-pref .swpm-sidebar .swpm-nav-label,
  html.swpm-rail-pref .swpm-sidebar .swpm-sidebar-footer-copy,
  body.swpm-shell--rail .swpm-sidebar .swpm-brand-copy,
  body.swpm-shell--rail .swpm-sidebar .swpm-nav-heading,
  body.swpm-shell--rail .swpm-sidebar .swpm-nav-label,
  body.swpm-shell--rail .swpm-sidebar .swpm-sidebar-footer-copy,
  .swpm-sidebar.swpm-sidebar--rail .swpm-brand-copy,
  .swpm-sidebar.swpm-sidebar--rail .swpm-nav-heading,
  .swpm-sidebar.swpm-sidebar--rail .swpm-nav-label,
  .swpm-sidebar.swpm-sidebar--rail .swpm-sidebar-footer-copy {
    display: none !important;
  }
  html.swpm-rail-pref .swpm-sidebar .swpm-sidebar-brand,
  body.swpm-shell--rail .swpm-sidebar .swpm-sidebar-brand,
  .swpm-sidebar.swpm-sidebar--rail .swpm-sidebar-brand {
    justify-content: center !important;
    padding: 14px 8px !important;
    position: relative;
  }
  html.swpm-rail-pref .swpm-sidebar .swpm-brand-mark,
  body.swpm-shell--rail .swpm-sidebar .swpm-brand-mark,
  .swpm-sidebar.swpm-sidebar--rail .swpm-brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }
  html.swpm-rail-pref .swpm-sidebar .swpm-rail-toggle,
  body.swpm-shell--rail .swpm-sidebar .swpm-rail-toggle,
  .swpm-sidebar.swpm-sidebar--rail .swpm-rail-toggle {
    position: absolute;
    top: 50%;
    right: -14px;
    z-index: 6;
    transform: translateY(-50%);
    background: var(--swpm-navy-900);
    border-color: rgba(255,255,255,.22);
  }
  html.swpm-rail-pref .swpm-nav,
  body.swpm-shell--rail .swpm-nav,
  .swpm-sidebar.swpm-sidebar--rail .swpm-nav {
    padding: 10px 8px 18px !important;
    overflow-x: visible;
  }
  html.swpm-rail-pref .swpm-nav-group,
  body.swpm-shell--rail .swpm-nav-group,
  .swpm-sidebar.swpm-sidebar--rail .swpm-nav-group {
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  html.swpm-rail-pref .swpm-nav-group:first-child,
  body.swpm-shell--rail .swpm-nav-group:first-child,
  .swpm-sidebar.swpm-sidebar--rail .swpm-nav-group:first-child {
    border-top: 0;
    padding-top: 0;
  }
  html.swpm-rail-pref .swpm-sidebar a.swpm-nav-link,
  body.swpm-shell--rail .swpm-sidebar a.swpm-nav-link,
  .swpm-sidebar.swpm-sidebar--rail a.swpm-nav-link {
    width: 48px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 3px auto !important;
    padding: 0 !important;
    justify-content: center !important;
    overflow: visible !important;
    border-radius: 12px;
  }
  html.swpm-rail-pref .swpm-sidebar a.swpm-nav-link::before,
  body.swpm-shell--rail .swpm-sidebar a.swpm-nav-link::before,
  .swpm-sidebar.swpm-sidebar--rail a.swpm-nav-link::before {
    display: none !important;
  }
  html.swpm-rail-pref .swpm-nav-rail-icon,
  body.swpm-shell--rail .swpm-nav-rail-icon,
  .swpm-sidebar.swpm-sidebar--rail .swpm-nav-rail-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 10px;
    font-size: 14px;
    margin: 0;
  }
  html.swpm-rail-pref .swpm-sidebar-footer,
  body.swpm-shell--rail .swpm-sidebar-footer,
  .swpm-sidebar.swpm-sidebar--rail .swpm-sidebar-footer {
    justify-content: center !important;
    padding: 12px 8px !important;
  }
  html.swpm-rail-pref .swpm-sidebar-footer .swpm-badge,
  body.swpm-shell--rail .swpm-sidebar-footer .swpm-badge,
  .swpm-sidebar.swpm-sidebar--rail .swpm-sidebar-footer .swpm-badge {
    width: 38px;
    min-width: 38px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    text-indent: -999px;
    position: relative;
  }
  html.swpm-rail-pref .swpm-sidebar-footer .swpm-badge::after,
  body.swpm-shell--rail .swpm-sidebar-footer .swpm-badge::after,
  .swpm-sidebar.swpm-sidebar--rail .swpm-sidebar-footer .swpm-badge::after {
    content: "v";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-indent: 0;
    font-size: 12px;
  }
  /* Tooltip-style label for icon rail while keeping real href/title attributes. */
  html.swpm-rail-pref .swpm-sidebar a.swpm-nav-link[data-tip]::after,
  body.swpm-shell--rail .swpm-sidebar a.swpm-nav-link[data-tip]::after,
  .swpm-sidebar.swpm-sidebar--rail a.swpm-nav-link[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    max-width: 220px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.14);
    background: #0e1726;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 650;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
    z-index: 100;
  }
  html.swpm-rail-pref .swpm-sidebar a.swpm-nav-link[data-tip]:hover::after,
  body.swpm-shell--rail .swpm-sidebar a.swpm-nav-link[data-tip]:hover::after,
  .swpm-sidebar.swpm-sidebar--rail a.swpm-nav-link[data-tip]:hover::after,
  html.swpm-rail-pref .swpm-sidebar a.swpm-nav-link[data-tip]:focus-visible::after,
  body.swpm-shell--rail .swpm-sidebar a.swpm-nav-link[data-tip]:focus-visible::after,
  .swpm-sidebar.swpm-sidebar--rail a.swpm-nav-link[data-tip]:focus-visible::after {
    opacity: 1;
  }
}

/* Tablet forced rail remains Claude-compatible and not user-toggleable. */
@media (min-width: 761px) and (max-width: 1023px) {
  .swpm-rail-toggle { display: none !important; }
  .swpm-body .swpm-nav-rail-icon,
  body.swpm .swpm-nav-rail-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  html.swpm-rail-pref { }
  .swpm-rail-toggle { display: none !important; }
  .swpm-body .swpm-nav-rail-icon,
  body.swpm .swpm-nav-rail-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 14px;
  }
}


/* SWPM v0.7.9.8.54 — collapsed sidebar icon-centering polish.
   Scope: visual rail alignment only. No navigation IA, routes, permissions, PM Bridge,
   invoice/Fiken, pricing/cost, schema or persistence behavior changes. */
@media (min-width: 761px) {
  html.swpm-rail-pref .swpm-sidebar,
  body.swpm-shell--rail .swpm-sidebar,
  .swpm-app-shell.swpm-shell--rail .swpm-sidebar,
  .swpm-sidebar.swpm-sidebar--rail {
    width: var(--swpm-shell-sidebar-rail-w) !important;
    min-width: var(--swpm-shell-sidebar-rail-w) !important;
    max-width: var(--swpm-shell-sidebar-rail-w) !important;
  }

  html.swpm-rail-pref .swpm-sidebar .swpm-sidebar-brand,
  body.swpm-shell--rail .swpm-sidebar .swpm-sidebar-brand,
  .swpm-sidebar.swpm-sidebar--rail .swpm-sidebar-brand {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html.swpm-rail-pref .swpm-sidebar .swpm-brand-mark,
  body.swpm-shell--rail .swpm-sidebar .swpm-brand-mark,
  .swpm-sidebar.swpm-sidebar--rail .swpm-brand-mark {
    margin: 0 auto !important;
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
  }

  html.swpm-rail-pref .swpm-nav,
  body.swpm-shell--rail .swpm-nav,
  .swpm-sidebar.swpm-sidebar--rail .swpm-nav {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  html.swpm-rail-pref .swpm-nav-group,
  body.swpm-shell--rail .swpm-nav-group,
  .swpm-sidebar.swpm-sidebar--rail .swpm-nav-group {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html.swpm-rail-pref .swpm-sidebar a.swpm-nav-link,
  body.swpm-shell--rail .swpm-sidebar a.swpm-nav-link,
  .swpm-sidebar.swpm-sidebar--rail a.swpm-nav-link {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 4px auto !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    text-align: center !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  html.swpm-rail-pref .swpm-sidebar a.swpm-nav-link.is-active,
  body.swpm-shell--rail .swpm-sidebar a.swpm-nav-link.is-active,
  .swpm-sidebar.swpm-sidebar--rail a.swpm-nav-link.is-active {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.10) !important;
  }

  html.swpm-rail-pref .swpm-nav-rail-icon,
  body.swpm-shell--rail .swpm-nav-rail-icon,
  .swpm-sidebar.swpm-sidebar--rail .swpm-nav-rail-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    text-align: center !important;
    line-height: 1 !important;
    transform: none !important;
  }

  html.swpm-rail-pref .swpm-sidebar-footer,
  body.swpm-shell--rail .swpm-sidebar-footer,
  .swpm-sidebar.swpm-sidebar--rail .swpm-sidebar-footer {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html.swpm-rail-pref .swpm-sidebar-footer .swpm-badge,
  body.swpm-shell--rail .swpm-sidebar-footer .swpm-badge,
  .swpm-sidebar.swpm-sidebar--rail .swpm-sidebar-footer .swpm-badge {
    margin: 0 auto !important;
    display: inline-grid !important;
    place-items: center !important;
  }
}
