/**
 * Vertical activity rail holding the panel toggles.
 *
 * Colours are `--fc-*` tokens so the rail follows every theme, and the active
 * state reuses the same accent fill `.fc-btn.active` uses in the toolbar, so a
 * toggled panel looks the same wherever its control lives.
 */

.fc-panel-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  flex-shrink: 0;
  width: 64px;
  padding: 8px 6px;
  overflow-y: visible;
  background: var(--fc-bgPanel);
  border-right: 1px solid var(--fc-border);
}

.fc-panel-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 2px 7px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fc-textMuted);
  font-family: inherit;
  cursor: pointer;
  user-select: none;
}

.fc-panel-rail-item:hover {
  background: var(--fc-bgHover);
  color: var(--fc-text);
}

.fc-panel-rail-item:active {
  background: var(--fc-bgActive);
}

.fc-panel-rail-item.active {
  background: var(--fc-accent);
  color: var(--fc-accentText);
}

.fc-panel-rail-item.active:hover {
  filter: brightness(1.1);
}

.fc-panel-rail-item:focus-visible {
  outline: 2px solid var(--fc-accent);
  outline-offset: 2px;
}

.fc-panel-rail-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  font-size: 15px;
  line-height: 1;
}

.fc-panel-rail-label {
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fc-profile-menu-anchor {
  position: relative;
}

.fc-profile-menu-anchor > .fc-panel-rail-item {
  width: 100%;
}
.fc-profile-menu-anchor > .fc-panel-rail-item.active {
  background: transparent;
  color: var(--fc-textMuted);
}

.fc-profile-menu-anchor > .fc-panel-rail-item.active:hover {
  background: var(--fc-bgHover);
  filter: none;
}

.fc-profile-rail-avatar,
.fc-profile-menu-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--fc-accent);
  color: var(--fc-accentText);
  font-weight: 600;
  line-height: 1;
}

.fc-profile-rail-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.fc-profile-menu {
  position: absolute;
  left: calc(100% + 8px);
  bottom: 0;
  z-index: 200;
  width: 320px;
  overflow: hidden;
  border: 1px solid var(--fc-border);
  border-radius: 12px;
  background: var(--fc-bgSurface);
  color: var(--fc-text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.fc-profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.fc-profile-menu-avatar {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.fc-profile-menu-identity {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.fc-profile-menu-identity strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-profile-menu-identity span {
  overflow: hidden;
  color: var(--fc-textDim);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-profile-usage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}

.fc-profile-usage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.fc-profile-usage-heading span:last-child {
  color: var(--fc-textDim);
}

.fc-profile-usage-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--fc-bgHover);
}

.fc-profile-usage-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fc-accent);
}

.fc-profile-usage-remaining {
  color: var(--fc-textDim);
  font-size: 11px;
}

.fc-profile-menu-section {
  padding: 6px;
  border-top: 1px solid var(--fc-border);
}

.fc-profile-menu-item {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--fc-text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.fc-profile-menu-item:hover,
.fc-profile-theme-item:hover {
  background: var(--fc-bgHover);
}

.fc-profile-menu-icon {
  display: inline-flex;
  width: 18px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--fc-textMuted);
}

.fc-profile-menu-item-label {
  flex: 1;
}

.fc-profile-menu-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--fc-textDim);
  font-size: 12px;
}

.fc-profile-theme-list {
  max-height: min(440px, 55vh);
  overflow-y: auto;
  margin: 2px 0 4px 28px;
  padding: 4px 0 4px 10px;
  border-left: 1px solid var(--fc-border);
}

.fc-profile-theme-heading {
  padding: 5px 8px;
  color: var(--fc-textDim);
  font-size: 11px;
  font-weight: 500;
}

.fc-profile-theme-item {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fc-text);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.fc-profile-theme-check {
  display: inline-flex;
  align-items: center;
  color: var(--fc-text);
}

.fc-profile-menu-footer {
  padding-top: 6px;
  padding-bottom: 6px;
}
