/* Dimensions and SVGs are taken from assets/tk-reference-home.json. */
@font-face {
  font-family: "TikTokFont";
  src: url("/assets/fonts/tiktok-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TikTokFont";
  src: url("/assets/fonts/tiktok-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "TikTokFont";
  src: url("/assets/fonts/tiktok-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: TikTokFont, Arial, Tahoma, "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 21px;
}
.topbar {
  height: 60px;
  padding: 0 16px;
  background: #000;
  color: #fff;
  border: 0;
  gap: 18px;
  font-family: TikTokFont, Arial, Tahoma, "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 21px;
}
.topbar .shell-brand-slot {
  flex-shrink: 0;
  gap: 0;
}
.brand {
  gap: 0;
  font-family: TikTokFont, Arial, Tahoma, "PingFang SC", sans-serif;
}
.brand-mark {
  display: block;
  width: 80px;
  height: 32px;
  flex-shrink: 0;
  line-height: 0;
}
.brand-mark .logo-original {
  display: block;
  width: 80px;
  height: 32px;
  max-width: none;
}
.brand-divider {
  width: 1px;
  height: 16px;
  flex-shrink: 0;
  margin: 0 16px;
  background: rgb(255 255 255 / 60%);
}
.merchant-title {
  margin-right: 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}
.topbar .header-actions {
  gap: 8px;
  flex-shrink: 0;
  height: 40px;
}
.topbar .top-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 0;
  height: 36px;
  padding: 0;
  gap: 4px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}
.topbar .top-action:hover {
  background: rgb(255 255 255 / 10%);
}
.topbar .assistant-action {
  width: 95px;
  height: 40px;
}
.topbar .assistant-action > span {
  margin-top: 2px;
}
.topbar .help-action,
.topbar .creator-action {
  width: 56px;
}
.topbar .help-action {
  height: 40px;
}
.topbar .messages-action {
  width: 116px;
  padding: 0 16px;
}
.topbar .messages-action .desktop-label {
  display: inline-block;
}
.topbar .bell-action {
  width: 68px;
}
.topbar .shell-header-icon {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.topbar .header-separator {
  display: block;
  width: 1px;
  height: 16px;
  flex-shrink: 0;
  margin: 0 16px;
  background: rgb(255 255 255 / 60%);
}
.topbar .account-button {
  display: flex;
  align-items: center;
  height: 36px;
  min-height: 0;
  padding: 0 16px 0 0;
  margin-left: 16px;
  gap: 8px;
  border: 0;
  border-radius: 100px;
  background: rgb(255 255 255 / 20%);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.account-avatar-frame {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.topbar .account-button .avatar {
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: cover;
}
.topbar .account-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar .notification-dot {
  display: block;
  top: 1px;
  right: 16px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid #fff;
  border-radius: 100px;
  background: #f04d56;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
}
.sidebar {
  width: 220px;
  top: 60px;
  bottom: 0;
  padding: 14px 8px 16px;
  background: #fff;
  border: 0;
  font-family: TikTokFont, Arial, Tahoma, "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}
.sidebar .nav-group,
.sidebar .nav-group:first-child {
  padding: 0;
  margin: 0;
  border: 0;
}
.nav-entry {
  padding: 2px 0;
}
.nav-entry-link {
  padding-bottom: 4px;
}
.nav-divider {
  position: relative;
  display: block;
  width: 100%;
  height: 16px;
}
.nav-divider.after-branch {
  margin-top: 2px;
}
.nav-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #d3d4d5;
  transform: translateY(-50%);
}
.sidebar .nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 8px;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  color: #171718;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.sidebar .nav-item:hover {
  color: #171718;
  background: #f5f5f5;
}
.sidebar .nav-item.active {
  color: #009995;
  background: #eee;
}
.sidebar .nav-original-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}
.sidebar .nav-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar .nav-children {
  padding: 2px 0 0;
  margin: 0;
}
.sidebar .nav-sub {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: 2px 0;
  padding: 0 8px 0 32px;
  border-radius: 4px;
  color: #6c6d6f;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.sidebar .nav-sub:hover {
  color: #171718;
  background: #f5f5f5;
}
.sidebar .nav-sub.active {
  color: #009995;
  background: #eee;
}
@media (min-width: 960px) {
  :root {
    --header: 60px;
    --sidebar: 220px;
  }
  .topbar .assistant-action {
    display: flex;
  }
  .topbar .header-actions .desktop-label,
  .topbar .header-separator {
    display: inline-block;
  }
  .sidebar {
    width: 220px;
    transform: none;
  }
  .mobile-nav-toggle,
  .mobile-nav-cover {
    display: none;
  }
}
@media (max-width: 959px) {
  :root {
    --header: 56px;
    --sidebar: 0px;
  }
  .topbar {
    height: 56px;
    padding: 0 12px;
    gap: 12px;
  }
  .topbar .shell-brand-slot {
    gap: 8px;
  }
  .topbar .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 0;
    background: none;
    color: #fff;
  }
  .brand-divider,
  .merchant-title {
    display: none;
  }
  .topbar .header-actions {
    gap: 8px !important;
    height: 36px;
  }
  .topbar .header-actions > .top-action:not(.bell-action),
  .topbar .header-separator {
    display: none;
  }
  .topbar .header-actions > .top-action.assistant-action {
    display: flex;
    width: 28px;
    height: 36px;
  }
  .topbar .assistant-action > span {
    display: none;
  }
  .topbar .bell-action {
    width: 44px;
  }
  .topbar .notification-dot {
    right: 3px;
    top: 0;
  }
  .topbar .account-button {
    margin-left: 0;
    padding-right: 12px;
  }
  .topbar .account-name {
    max-width: min(120px, calc(100vw - 302px));
  }
  .sidebar {
    top: 56px;
    width: 220px;
    transform: translateX(-100%);
    transition: transform 0.18s;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open .mobile-nav-cover {
    display: block;
    position: fixed;
    inset: 56px 0 0;
    z-index: 34;
    background: #0005;
  }
  .main {
    margin-left: 0;
  }
  .create-wide .topbar .mobile-nav-toggle {
    display: none;
  }
}
@media (max-width: 400px) {
  .topbar .header-actions {
    gap: 6px !important;
  }
  .topbar .bell-action {
    width: 36px;
  }
  .topbar .account-button {
    height: 32px;
    gap: 6px;
    padding-right: 10px;
    font-size: 12px;
  }
  .account-avatar-frame {
    width: 28px;
    height: 28px;
  }
  .topbar .account-button .avatar {
    width: 26px;
    height: 26px;
  }
  .topbar .account-name {
    max-width: clamp(42px, calc(100vw - 278px), 76px);
  }
}
