.rail-channel--whatsapp { --rail-channel-ink: light-dark(#10654b, #8ae1bc); --rail-channel-fill: light-dark(#d8f3e6, #1c3a31); }
.rail-channel--telegram { --rail-channel-ink: light-dark(#155fa4, #91ceff); --rail-channel-fill: light-dark(#dceeff, #1a3149); }
#app .navrail {
  position: relative;
  background: light-dark(#fff, #101011);
  color: light-dark(#33343d, #f1f1f4);
  margin: 8px 4px 8px 7px;
  padding: 24px 4px 6px;
  width: auto;
  border: 1px solid light-dark(#e3e3e8, #303037);
  border-radius: 15px;
  overflow: visible;
  justify-content: flex-start;
}
#app .navrail .rail-button {
  color: light-dark(#42434f, #d2d2db);
  min-height: 42px;
  width: calc(100% - 6px);
  min-width: 0;
  margin-inline: 3px;
  border-radius: 11px;
}
#app .navrail .rail-button:is(:hover, :focus-visible, .active) {
  color: var(--rail-channel-ink, light-dark(#ad2034, #ff8790));
  background: var(--rail-channel-fill, light-dark(#fae7eb, #3c2429));
}
.rail-edge-toggle {
  position: absolute;
  z-index: 2;
  inset: 3px 3px auto auto;
  width: 26px;
  height: 22px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: light-dark(#575867, #c8c8d2);
}
.rail-edge-toggle:hover { background: light-dark(#fae7eb, #3c2429); color: light-dark(#ad2034, #ff8790); }
.rail-edge-toggle span {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.rail-edge-toggle[aria-expanded='true'] span { transform: rotate(-135deg); }
#app .navrail .rail-lucide { width: 22px; height: 22px; stroke-width: 1.75; }

@media (min-width: 701px) {
  #app .navrail .rail-bottom { margin-top: auto; }
  .workspace.rail-expanded { --nav-rail-width: 164px; }
  .workspace.rail-expanded .navrail .rail-button {
    width: 100%;
    min-height: 43px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding-inline: 10px;
    border-radius: 10px;
  }
  .workspace.rail-expanded .navrail .rail-label {
    display: inline;
    font-size: .875rem;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .workspace .navrail .rail-label, #app .rail-edge-toggle { display: none; }
  #app .navrail { margin: 4px 7px; padding: 4px 7px; align-items: center; gap: 5px; }
  #app .navrail .rail-button { width: auto; margin-inline: 2px; }
}
