.layout {
  position: fixed;
  inset: 0;
  overflow: hidden;
  outline: none;
}

/* --- Conductor slots: geometry injected as .slot--<path> --- */
.slot {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  transition: opacity var(--dur-cross) ease;
}

/* mode spotlight: the conductor dims slots outside the focus */
.slot--dimmed {
  opacity: 0.25;
  pointer-events: none;
}

/* sidebar folds and docks left in a clamping mode: glide the reflow */
.slot--viewport-desk-sidebar,
.slot--viewport-desk-columns {
  transition: left var(--dur-cross) ease, width var(--dur-cross) ease;
}

/* folded sidebar: let the hover flyout escape the narrow slot */
.slot--viewport-desk-sidebar:has(.sidebar--folded) {
  overflow: visible;
}

/* the desk scrolls the sidebar and the columns together; the columns
   slot only holds them, its overflowing columns widen the desk's scroll */
.slot--viewport-desk {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.slot--viewport-desk::-webkit-scrollbar { display: none; }

.slot--viewport-desk-columns {
  overflow: visible;
}

/* place columns get a right divider */
.slot--viewport-desk-columns > .slot {
  border-right: 1px solid rgba(0,0,0,0.1);
}

/* navigation nutro (positioned by its slot) */
.navigation {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0 0 16px;
}

.layout__navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 0 0 16px;
  /* border-bottom: 1px solid rgba(0,0,0,0.1); */
}

/* Column stub base */
.column {
  position: absolute;
  height: 100%;
  transition: left var(--dur-cross) ease, width var(--dur-cross) ease, box-shadow var(--dur-cross) ease, opacity var(--dur-cross) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  scroll-snap-align: start;
}

.column:last-child {
  border-right: none;
}

/* колонки без вариантов */
.column--sidebar {
  border-right: none;
}

.column--sidebar,
.column--dialog,
.column--assistant {
  cursor: default;
}

.column--widget {
  align-items: stretch;
  justify-content: flex-start;
  cursor: default;
}

/* transparent flex passthrough so the chat's height:100% still resolves */
.col-fade {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  animation: fade-in var(--dur-base) ease;
}

/* Text */

/* stub column fills its slot so the whole area enters the mode on click */
.column-stub {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 30px;
  cursor: pointer;
}

.column__name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* nav stubs */
.navigation__logotype {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  /* constant transparent stroke: selection fades in by color only
     (stroke is centered, so 6px + fill on top = 3px outside) */
  -webkit-text-stroke-width: 6px;
  -webkit-text-stroke-color: transparent;
  paint-order: stroke fill;
  transition: -webkit-text-stroke-color var(--dur-move) ease;
}

.navigation__logotype--selected {
  -webkit-text-stroke-color: #fff;
}

/* the header stays above the desk, and its menus open over it */
.layout .slot--viewport-navigation {
  z-index: 50;
  overflow: visible;
}

/* the links of the place, while the sidebar is away */
.navigation__crumbs {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.navigation__crumb-wrap {
  position: relative;
}

.navigation__crumb--link {
  cursor: pointer;
}

.navigation__crumb--link:hover {
  text-decoration: underline;
}

.navigation__crumb-sep {
  padding: 0 6px;
  color: rgba(0,0,0,0.4);
  font-weight: 400;
}

.navigation__menu-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.navigation__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  z-index: 2;
  min-width: 180px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 0;
  border: 1px solid #111;
  border-radius: 2px;
  background: #fff;
  font-weight: 400;
  letter-spacing: normal;
}

.navigation__menu-item {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.navigation__menu-item:hover {
  background: #f2f2f2;
}

.navigation__settings {
  margin-left: auto;
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
}
