body.yt-workspace {
  box-sizing: border-box;
  min-width: 0;
  padding-left: 220px !important;
  transition: padding-left .2s ease;
}

.yt-workspace-nav {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 220px;
  padding: 22px 14px;
  overflow-y: auto;
  background: #123958;
  color: #fff;
  font: 14px/1.5 "Noto Sans TC", "Microsoft JhengHei", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: transform .2s ease;
}

.yt-workspace-nav *,
.yt-sidebar-toggle {
  font-family: inherit;
}

.yt-workspace-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: white !important;
  font-size: 19px;
  font-weight: 850;
  text-decoration: none;
}

.yt-workspace-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #e89149;
  color: #123958;
}

.yt-workspace-nav > .yt-mobile-menu {
  display: none;
}

.yt-workspace-nav > .yt-mobile-menu > summary {
  display: none;
}

.yt-workspace-nav nav {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.yt-workspace-nav nav a {
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 3px 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: transparent !important;
  color: #e0e9ef !important;
  font-weight: 650;
  text-decoration: none;
  white-space: normal !important;
}

.yt-workspace-nav nav a:hover,
.yt-workspace-nav nav a.is-active {
  background: #ffffff16 !important;
  box-shadow: inset 3px 0 #e89149;
  color: #fff !important;
}

.yt-workspace-nav .yt-nav-section {
  display: block;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #ffffff1c;
}

.yt-workspace-nav .yt-nav-section-label {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 10px 5px;
  color: #f7fbfe;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.yt-workspace-nav .yt-nav-section-label span {
  color: #bed0dc;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.yt-workspace-nav .yt-nav-section-label span::before {
  margin-right: 6px;
  color: #e89149;
  content: "·";
}

.yt-workspace-nav .yt-nav-group {
  display: block;
  margin: 10px 0 0;
}

.yt-workspace-nav .yt-nav-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 44px;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #e0e9ef;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.yt-workspace-nav .yt-nav-group > summary::-webkit-details-marker {
  display: none;
}

.yt-workspace-nav .yt-nav-group > summary:hover,
.yt-workspace-nav .yt-nav-group.is-current > summary {
  background: #ffffff16;
  color: #fff;
}

.yt-workspace-nav .yt-nav-group > summary span {
  transition: transform .16s;
}

.yt-workspace-nav .yt-nav-group:not([open]) > summary span {
  transform: rotate(-90deg);
}

.yt-workspace-nav .yt-nav-children {
  margin: 2px 0 5px 10px;
  padding-left: 10px;
  border-left: 1px solid #ffffff2e;
}

.yt-workspace-nav .yt-nav-children a {
  min-height: 44px;
  margin: 1px 0;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 650;
}

.yt-workspace-nav .yt-nav-group > summary:focus-visible {
  outline: 3px solid #e89149;
  outline-offset: 2px;
}

.yt-workspace-account {
  margin-top: auto;
  padding: 16px 10px;
  border-top: 1px solid #ffffff25;
  font-weight: 700;
}

.yt-workspace-account .yt-account-link {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #ffffff2e;
  border-radius: 9px;
  background: #0d2c46;
  color: #fff !important;
  text-decoration: none;
}

.yt-workspace-account .yt-account-link:hover,
.yt-workspace-account .yt-account-link.is-active {
  border-color: #e89149;
  background: #193f5e;
}

.yt-workspace-account .yt-account-link > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #e89149;
  color: #123958;
  font-weight: 850;
}

.yt-workspace-account .yt-account-link b,
.yt-workspace-account .yt-account-link small {
  display: block;
  color: #fff !important;
  line-height: 1.35;
}

.yt-workspace-account .yt-account-link small {
  color: #d8e6ef !important;
  font-size: 11px;
  font-weight: 600;
}

.yt-sidebar-toggle {
  position: fixed;
  z-index: 60;
  top: 22px;
  left: 202px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid #cbd7df;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px #0d2c4630;
  color: #123958;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  transition: left .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.yt-sidebar-toggle:hover {
  border-color: #e89149;
  background: #fff7ef;
}

.yt-sidebar-toggle:focus-visible {
  outline: 3px solid #e89149;
  outline-offset: 2px;
}

.yt-sidebar-toggle > span[aria-hidden="true"] {
  display: block;
  transform: translateY(-1px);
  transition: transform .2s ease;
}

.yt-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 851px) {
  html.yt-sidebar-collapsed body.yt-workspace {
    padding-left: 0 !important;
  }

  html.yt-sidebar-collapsed .yt-workspace-nav {
    transform: translateX(-100%);
  }

  html.yt-sidebar-collapsed .yt-sidebar-toggle {
    left: 12px;
    border-color: #123958;
    background: #123958;
    color: #fff;
  }

  html.yt-sidebar-collapsed .yt-sidebar-toggle > span[aria-hidden="true"] {
    transform: translateY(-1px) rotate(180deg);
  }
}

.yt-workspace-account button {
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #ffffff40;
  border-radius: 8px;
  background: transparent;
  color: white;
  cursor: pointer;
  font: inherit;
}

body.yt-workspace > .shell {
  display: block !important;
  min-width: 0;
}

body.yt-workspace .shell > main,
body.yt-workspace main {
  box-sizing: border-box;
  min-width: 0;
}

body.yt-workspace .shell > .side {
  display: none !important;
}

body.yt-workspace .mobile-block {
  display: none !important;
}

body.yt-workspace .permissions-page {
  max-width: none !important;
  min-width: 0 !important;
}

body.yt-workspace .permission-row,
body.yt-workspace .table-head {
  grid-template-columns: 130px minmax(0, 0.9fr) minmax(0, 1.2fr) 145px;
  gap: 12px;
}

body.yt-workspace .permission-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.yt-workspace .command-bar {
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 12px;
}

body.yt-workspace .hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.podio-lookup-message {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid #e2b4a1;
  border-radius: 10px;
  background: #fff0e8;
  color: #903e25;
  font-size: 14px;
}

@media (max-width: 1100px) {
  body.yt-workspace .permission-row {
    grid-template-columns: minmax(0, 1fr) 145px;
  }

  .permission-row .module-name {
    grid-column: 1 / -1;
  }

  .permission-row .permission-description {
    grid-column: 1;
  }

  .permission-row .permission-control {
    grid-row: 2 / 4;
    grid-column: 2;
  }

  body.yt-workspace .table-head {
    display: none !important;
  }
}

@media (max-width: 850px) {
  body.yt-workspace {
    padding-top: 70px !important;
    padding-left: 0 !important;
  }

  .yt-workspace-nav {
    right: 0;
    bottom: auto;
    flex-direction: row;
    width: auto;
    padding: 12px 16px;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .yt-workspace-brand {
    margin: 0;
    font-size: 17px;
  }

  .yt-workspace-nav nav.yt-desktop-nav {
    display: none !important;
  }

  .yt-workspace-nav > .yt-mobile-menu {
    display: block;
  }

  .yt-workspace-nav > .yt-mobile-menu > summary {
    display: block;
    min-height: 44px;
    padding: 8px 12px;
    cursor: pointer;
  }

  .yt-workspace-nav > .yt-mobile-menu > nav {
    display: none !important;
  }

  .yt-workspace-nav > .yt-mobile-menu[open] > nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block !important;
    max-height: 75vh;
    padding: 12px !important;
    overflow: auto;
    background: #123958;
    box-shadow: 0 12px 24px #12395830;
  }

  .yt-workspace-nav .yt-nav-section {
    margin-top: 10px;
    padding-top: 10px;
  }

  .yt-workspace-account {
    display: none;
  }

  .yt-sidebar-toggle {
    display: none;
  }

  .permissions-page {
    padding: 18px 14px !important;
  }
}

@media (max-width: 560px) {
  body.yt-workspace .permission-row {
    grid-template-columns: 1fr;
  }

  .permission-row .permission-control {
    grid-row: auto;
    grid-column: 1;
  }
}
