.bo-app {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.bo-content {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px 22px 24px 0;
}

.bo-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  padding: 18px;
  background: transparent;
}

.bo-shell-scrim {
  display: none;
}

.bo-sidebar__panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding: 24px 20px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #2a2d31 0%, #17191d 34%, #0b0c0e 72%, #030303 100%);
  box-shadow: var(--bo-shell-shadow);
}

.bo-brand {
  display: grid;
  justify-items: center;
  gap: 0;
}

.bo-brand__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.bo-brand__logo {
  display: block;
  width: min(148px, 100%);
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.bo-sidebar__nav-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  padding-top: 20px;
}

.bo-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  width: 100%;
}

.bo-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 12px;
  border-radius: 18px;
  color: rgba(245, 246, 248, 0.8);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.bo-nav__link:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.bo-nav__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 250, 251, 0.94);
}

.bo-nav__icon svg {
  width: 18px;
  height: 18px;
}

.bo-nav__text {
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
}

.bo-nav__dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.bo-nav__link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bo-nav__link.is-active .bo-nav__dot {
  opacity: 1;
  transform: scale(1);
}

.bo-sidebar__foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.bo-sidebar__foot .bo-btn-secondary {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  background: rgba(248, 248, 249, 0.96);
  border-color: transparent;
  color: #121316;
}

.bo-sidebar__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bo-sidebar__action-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bo-sidebar__action-icon svg {
  width: 18px;
  height: 18px;
}

.bo-sidebar__action-label {
  line-height: 1;
}

.bo-sidebar__hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
}

.bo-topbar {
  position: sticky;
  top: 22px;
  z-index: 20;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 560px) minmax(220px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 10px 16px 18px;
}

.bo-topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid rgba(223, 229, 243, 0.9);
  background:
    radial-gradient(circle at 14% 8%, rgba(91, 124, 250, 0.12), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(239, 59, 91, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(252, 253, 255, 0.72), rgba(244, 247, 255, 0.82) 58%, rgba(238, 242, 255, 0.92) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.07),
    0 6px 18px rgba(91, 124, 250, 0.05);
  opacity: 0;
  transition: opacity 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  pointer-events: none;
}

.bo-topbar.is-scrolled::before {
  opacity: 1;
}

.bo-topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(122, 136, 171, 0), rgba(122, 136, 171, 0.24) 12%, rgba(122, 136, 171, 0.24) 88%, rgba(122, 136, 171, 0));
  pointer-events: none;
}

.bo-topbar__left,
.bo-topbar__center,
.bo-topbar__right {
  position: relative;
  z-index: 1;
}

.bo-topbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.bo-topbar__center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.bo-topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.bo-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(18, 22, 28, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: var(--bo-ink);
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.bo-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 22, 28, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.bo-icon-btn svg {
  width: 18px;
  height: 18px;
}

.bo-topbar__menu {
  display: none;
}

.bo-topbar__title {
  margin: 0;
  font-family: var(--bo-font-display);
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  white-space: nowrap;
}

.bo-freshness-note {
  margin: 8px 0 0;
  color: var(--bo-muted);
  font-size: 12px;
  line-height: 1.5;
}

.bo-topbar__fallback {
  display: grid;
  gap: 6px;
  min-width: 172px;
}

.bo-topbar__fallback-label {
  color: var(--bo-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding-left: 4px;
}

.bo-topbar__fallback-select {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 22, 28, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--bo-ink);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.bo-topbar__session-value {
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 22, 28, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--bo-ink);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.bo-topbar__session-value strong {
  font-size: 13px;
  line-height: 1.35;
}

.bo-topbar__session-value span {
  color: var(--bo-muted);
  font-size: 11px;
  line-height: 1.5;
}

.bo-searchbox-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
}

.bo-searchbox__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(91, 100, 118, 0.72);
}

.bo-searchbox__icon svg {
  width: 18px;
  height: 18px;
}

.bo-searchbox {
  width: 100%;
  min-height: 58px;
  padding: 0 18px 0 54px;
  border: 1px solid rgba(18, 22, 28, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bo-ink);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.bo-searchbox::placeholder {
  color: rgba(91, 100, 118, 0.74);
}

.bo-topbar__user-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #2a2d31 0%, #17191d 38%, #090a0c 100%);
  box-shadow: 0 22px 44px rgba(3, 3, 3, 0.22);
}

.bo-topbar__icon-btn,
.bo-topbar__profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #f7f7f8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.bo-topbar__icon-btn:hover,
.bo-topbar__profile:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.08);
}

.bo-topbar__icon-btn {
  padding: 0;
}

.bo-topbar__icon-btn svg {
  width: 17px;
  height: 17px;
}

.bo-topbar__profile {
  overflow: hidden;
}

.bo-topbar__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bo-topbar__avatar-fallback {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bo-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #151a2b;
  color: #eef1ff;
  box-shadow: var(--bo-shell-shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bo-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .bo-app {
    grid-template-columns: 1fr;
  }

  .bo-content {
    padding: 16px;
  }

  .bo-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 304px);
    height: auto;
    padding: 16px;
    transform: translateX(-108%);
    transition: transform 0.22s ease;
  }

  body.bo-sidebar-open .bo-sidebar {
    transform: translateX(0);
  }

  .bo-shell-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(11, 12, 16, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.bo-sidebar-open .bo-shell-scrim {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .bo-topbar {
    top: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 0 14px;
  }

  .bo-topbar__menu {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .bo-topbar__left,
  .bo-topbar__center,
  .bo-topbar__right {
    width: 100%;
  }

  .bo-topbar__center {
    justify-content: flex-start;
  }

  .bo-topbar__right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .bo-topbar__fallback {
    min-width: min(220px, 100%);
  }

  .bo-topbar__user-card {
    margin-left: auto;
  }
}
