:root {
  --fol-rail-width: 72px;
  --fol-rail-expanded: 286px;
  --fol-ink: #17201b;
  --fol-muted: #607068;
  --fol-line: #d9e1dc;
  --fol-green: #12422e;
  --fol-green-soft: #eaf3ee;
}

body.fol-shell-ready {
  padding-left: var(--fol-rail-width);
}

.fol-suite-shell {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: var(--fol-rail-width);
  padding: 12px 9px;
  border-right: 1px solid var(--fol-line);
  background: rgba(251, 253, 252, 0.98);
  box-shadow: 8px 0 28px rgba(23, 32, 27, 0.08);
  color: var(--fol-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: width 160ms ease;
}

.fol-suite-shell.expanded {
  width: var(--fol-rail-expanded);
}

.fol-suite-top,
.fol-suite-brand,
.fol-suite-link,
.fol-suite-toggle {
  display: flex;
  align-items: center;
}

.fol-suite-top {
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
}

.fol-suite-brand {
  min-width: 0;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.fol-suite-mark,
.fol-suite-glyph {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  letter-spacing: 0;
  font-weight: 850;
}

.fol-suite-mark {
  width: 38px;
  height: 38px;
  background: var(--fol-green);
  color: white;
  font-size: 13px;
}

.fol-suite-glyph {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(18, 66, 46, 0.18);
  background: white;
  color: var(--fol-green);
  font-size: 10px;
}

.fol-suite-title,
.fol-suite-text,
.fol-suite-section,
.fol-suite-account {
  display: none;
}

.fol-suite-shell.expanded .fol-suite-title,
.fol-suite-shell.expanded .fol-suite-text,
.fol-suite-shell.expanded .fol-suite-section,
.fol-suite-shell.expanded .fol-suite-account {
  display: block;
}

.fol-suite-title {
  overflow: hidden;
  color: var(--fol-ink);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fol-suite-toggle {
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--fol-line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.fol-suite-toggle span,
.fol-suite-toggle span::before,
.fol-suite-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--fol-ink);
}

.fol-suite-toggle span {
  position: relative;
}

.fol-suite-toggle span::before,
.fol-suite-toggle span::after {
  position: absolute;
  left: 0;
  content: "";
}

.fol-suite-toggle span::before {
  top: -5px;
}

.fol-suite-toggle span::after {
  top: 5px;
}

.fol-suite-section {
  margin: 18px 8px 8px;
  color: var(--fol-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fol-suite-nav,
.fol-suite-footer {
  display: grid;
  gap: 6px;
}

.fol-suite-nav {
  margin-top: 16px;
}

.fol-suite-link {
  gap: 10px;
  min-height: 42px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--fol-ink);
  text-decoration: none;
}

.fol-suite-link:hover {
  background: var(--fol-green-soft);
}

.fol-suite-link.active {
  background: var(--fol-green);
  color: white;
}

.fol-suite-link.active .fol-suite-glyph {
  border-color: rgba(255, 255, 255, 0.24);
}

.fol-suite-text {
  overflow: hidden;
  min-width: 0;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fol-suite-account {
  margin: 14px 0 2px;
  padding: 10px;
  border: 1px solid var(--fol-line);
  border-radius: 8px;
  background: white;
  color: var(--fol-muted);
  font-size: 12px;
  line-height: 1.35;
}

.fol-suite-account strong {
  display: block;
  margin-top: 3px;
  color: var(--fol-ink);
  overflow-wrap: anywhere;
}

.fol-suite-footer {
  margin-top: auto;
}

.fol-suite-link.locked {
  display: none;
}

@media (max-width: 760px) {
  body.fol-shell-ready {
    padding-left: 0;
    padding-top: 58px;
  }

  .fol-suite-shell,
  .fol-suite-shell.expanded {
    inset: 0 0 auto 0;
    width: 100%;
    min-height: 58px;
    max-height: 100vh;
    padding: 9px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--fol-line);
    overflow: auto;
  }

  .fol-suite-shell:not(.expanded) .fol-suite-nav,
  .fol-suite-shell:not(.expanded) .fol-suite-footer {
    display: none;
  }

  .fol-suite-shell.expanded .fol-suite-nav,
  .fol-suite-shell.expanded .fol-suite-footer {
    margin-top: 10px;
  }
}
