/* /agentic-erp/ · the Workspace sidebar: the 21st.dev Wensity pattern (Saife 2026-10-21: "yes i love that replace it",
   after the test on /workspace-sidebar-test/).
   Measured from the component's preview: 228px wide, a 52px head (48 here), 10.5px small-capital section labels at .08em, 34px rows (32 here, so the whole list fits the 700px window)
   with a 10px radius, 13.5px/500 text at 72% white, 18px line icons, a 6% white highlight that slides to the active row,
   a user at the foot, and an icon rail at 64px. Scoped to .wsx--sb so the live window's rules stay as they are. */

/* the frame */
.wsx--sb .wsx__body { grid-template-columns: 228px minmax(0, 1fr); transition: grid-template-columns .36s cubic-bezier(.4, 0, .2, 1); }
.wsx--sb.is-rail .wsx__body { grid-template-columns: 64px minmax(0, 1fr); }
.wsx--sb .wsx__side { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: rgb(10 8 20 / .4); }

.sbw__head { flex: none; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px 0 20px; white-space: nowrap; }
/* Pellbrook Investments, the demo's fictional client: its own navy mark, so it reads as the customer's brand, not Marrinn's */
.sbw__logo { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(140deg, #2d5288, #14294a);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 2px 6px -2px rgb(0 0 0 / .6); }
.sbw__logo svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sbw__logo svg .w { stroke: #8fd3ff; stroke-width: 1.6; }
.sbw__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 600 13.5px/1 var(--sc-font-display); color: #f4f3ef; transition: opacity .2s; }
.sbw__name small { display: block; margin-top: 3px; font: 500 11px/1 var(--sc-font-text); color: #8f88a6; }
.sbw__tog { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; color: #a39cb8; transition: background-color .2s, color .2s; }
.sbw__tog:hover { background: rgb(255 255 255 / .06); color: #fff; }
.sbw__tog svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .36s; }
.sbw__tog:focus-visible, .wsx--sb .wsx__side button:focus-visible { outline: 2px solid #9a6bff; outline-offset: 1px; }

.sbw__scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 8px 6px; scrollbar-width: thin; scrollbar-color: #3a2d68 transparent; }
.wsx--sb .wsx__sh { margin: 11px 12px 5px; font: 500 10.5px/1 var(--sc-font-text); letter-spacing: .08em; text-transform: uppercase; color: #8f88a6; white-space: nowrap; transition: opacity .2s; }
.wsx--sb .wsx__sh:first-of-type { margin-top: 4px; }
.wsx--sb .wsx__rooms, .wsx--sb .wsx__who { display: grid; gap: 1px; }

/* the rows */
.wsx--sb .wsx__side :is(.wsx__rooms, .wsx__who) button, .wsx--sb .wsx__create, .wsx--sb .wsx__conn {
  position: relative; z-index: 1; display: flex !important; align-items: center; gap: 10px; width: 100%; height: 32px; margin: 0 !important; padding: 0 12px !important;
  border: 0 !important; border-radius: 10px !important; background: transparent !important; box-shadow: none !important;
  color: rgb(244 243 239 / .72) !important; font: 500 13.5px/1 var(--sc-font-text) !important; white-space: nowrap; transition: background-color .2s, color .2s; }
.wsx--sb .wsx__side :is(.wsx__rooms, .wsx__who) button:hover, .wsx--sb .wsx__create:hover, .wsx--sb .wsx__conn:hover { background: rgb(255 255 255 / .035) !important; color: #fff !important; }
.wsx--sb .wsx__side button.on { color: #fff !important; }
.wsx--sb .wsx__rooms button.on::before { display: none; }
.sbw__ic { flex: none; display: grid; place-items: center; width: 20px; height: 20px; color: #8f88a6; transition: color .2s; }
.sbw__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wsx--sb .wsx__side button:is(.on, :hover) .sbw__ic { color: #fff; }
.wsx--sb .sbw__ic img { width: 20px; height: auto; }
.wsx--sb .sbw__ic b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2a2148; color: #e3dbff; font: 600 9.5px/1 var(--sc-font-text); }
.sbw__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; transition: opacity .2s; }
.wsx--sb .wsx__side em { flex: none; margin-left: auto; min-width: 0; padding: 2px 7px; border-radius: 8px; background: rgb(255 255 255 / .07); color: #a39cb8; font: 500 10.5px/1.2 var(--sc-font-text); font-style: normal; box-shadow: none; }
.wsx--sb .wsx__who button i { flex: none; width: 6px; height: 6px; box-shadow: none; }
.wsx--sb .wsx__tf { padding: 0; border: 0; border-radius: 0; color: inherit; font-size: inherit; }
.wsx--sb .wsx__apps { display: none; }

/* the active highlight, which slides from row to row (sb.js) */
.sbw__pill { position: absolute; z-index: 0; left: 8px; right: 8px; top: 0; height: 32px; border-radius: 10px; background: rgb(255 255 255 / .06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .04); opacity: 0; pointer-events: none;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), height .34s cubic-bezier(.4, 0, .2, 1), opacity .2s; }

/* the user */
.sbw__foot { flex: none; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-top: 1px solid rgb(255 255 255 / .08); white-space: nowrap; overflow: hidden; }
.sbw__av { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(140deg, #7b58c5, #3a2d68); color: #fff; font: 600 10px/1 var(--sc-font-text); }
.sbw__foot span { display: grid; gap: 3px; font: 600 13px/1.1 var(--sc-font-text); color: #f4f3ef; transition: opacity .2s; }
.sbw__foot small { font-size: 11.5px; font-weight: 400; color: #8f88a6; }

/* the icon rail */
.wsx--sb.is-rail .sbw__head { padding: 0 19px; cursor: pointer; }
.wsx--sb.is-rail :is(.sbw__name, .sbw__t, .sbw__foot span) { opacity: 0; }
.wsx--sb.is-rail .sbw__tog { position: absolute; left: 64px; top: 12px; z-index: 3; opacity: 0; pointer-events: none; }
.wsx--sb.is-rail .wsx__sh { height: 1px; margin: 10px 12px; font-size: 0; background: rgb(255 255 255 / .08); }
.wsx--sb.is-rail .wsx__sh:first-of-type { opacity: 0; margin: 4px 12px; }
.wsx--sb.is-rail .wsx__side em { position: absolute; left: 28px; top: 7px; width: 7px; height: 7px; padding: 0; font-size: 0; background: #9a6bff; }
.wsx--sb.is-rail .wsx__who button i { display: none; }
.wsx--sb.is-rail .sbw__foot { padding: 0 19px; }

/* phone: the live window's strip of buttons */
@media (max-width: 760px) {
  .wsx--sb .wsx__body { grid-template-columns: minmax(0, 1fr); }
  .wsx--sb .wsx__side { flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; }
  .sbw__head, .sbw__foot, .sbw__pill, .wsx--sb .wsx__sh { display: none; }
  .sbw__scroll { display: flex; align-items: center; gap: 4px; overflow: visible; padding: 0; }
  .wsx--sb .wsx__rooms, .wsx--sb .wsx__who { display: flex; gap: 4px; }
  .wsx--sb .wsx__side :is(.wsx__rooms, .wsx__who) button, .wsx--sb .wsx__create, .wsx--sb .wsx__conn { width: auto; }
  .wsx--sb .wsx__side button.on { background: rgb(255 255 255 / .06) !important; }
  .wsx--sb .wsx__who button i { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wsx--sb *, .sbw__pill { transition: none !important; } }
