/* DRAMA_ONLINE_RESPONSIVE_V1 */
@media (max-width: 767px) {
  html,
  body {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .uouo-workspace-dashboard {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .uouo-workspace-dashboard > aside:first-child {
    position: sticky !important;
    inset: 0 0 auto !important;
    z-index: 120 !important;
    display: grid !important;
    grid-template-areas:
      "brand tools"
      "sections sections";
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100% !important;
    height: auto !important;
    border-right: 0 !important;
    border-bottom-width: 1px;
  }

  .uouo-workspace-dashboard > aside:first-child > div:first-child {
    grid-area: brand;
    display: flex;
    height: 60px !important;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 10px 8px 10px 14px !important;
  }

  .uouo-workspace-dashboard > aside:first-child > div:first-child > button {
    flex: 0 0 auto;
  }

  .uouo-workspace-dashboard > aside:first-child > div:first-child > p {
    min-width: 0;
    margin-top: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .uouo-workspace-dashboard > aside:first-child > nav {
    grid-area: sections;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 12px 10px !important;
    scrollbar-width: thin;
  }

  .uouo-workspace-dashboard > aside:first-child > nav > ul {
    display: flex;
    width: max-content;
    gap: 6px;
    margin: 0 !important;
  }

  .uouo-workspace-dashboard > aside:first-child > nav li button {
    width: auto !important;
    min-width: max-content;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    justify-content: flex-start !important;
  }

  .uouo-workspace-dashboard > aside:first-child > nav li button > span {
    display: block !important;
    width: auto !important;
    flex: none !important;
    margin-left: 7px !important;
    opacity: 1 !important;
  }

  .uouo-workspace-dashboard .ds-dashboard-nav-label {
    display: block !important;
    max-width: none !important;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }

  .uouo-workspace-dashboard > aside:first-child > nav li button > .ds-dashboard-nav-badge {
    max-width: none !important;
    margin-left: 7px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
    visibility: visible !important;
    white-space: nowrap;
  }

  .uouo-workspace-dashboard > aside:first-child > div:nth-child(3) {
    grid-area: tools;
    align-self: start;
    border: 0 !important;
  }

  .uouo-workspace-dashboard > aside:first-child > div:nth-child(3) > div:first-child {
    display: none !important;
  }

  .uouo-workspace-dashboard > aside:first-child > div:nth-child(3) > div:nth-child(2) {
    display: flex !important;
    align-items: center;
    gap: 2px;
    padding: 8px 10px 0 0 !important;
  }

  .uouo-workspace-dashboard > aside:first-child > div:nth-child(3) > div:nth-child(2) > div:first-child,
  .uouo-workspace-dashboard > aside:first-child > div:nth-child(3) > div:nth-child(2) > div:last-child {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 !important;
  }

  .uouo-workspace-dashboard > aside:first-child > div:nth-child(3) > div:nth-child(2) > div:nth-child(2),
  .uouo-workspace-dashboard > aside:first-child > div:nth-child(3) > div:nth-child(2) > div:last-child > button:last-child,
  .uouo-workspace-dashboard > aside:first-child > div:nth-child(3) > div:nth-child(2) > div:last-child > div:first-child > div:last-child {
    display: none !important;
  }

  .uouo-workspace-dashboard > aside:first-child > div:nth-child(3) .bottom-full {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
  }

  .uouo-workspace-dashboard > aside[style*="z-index: 101"] {
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .uouo-workspace-dashboard > main {
    width: 100%;
    min-width: 0;
    margin-left: 0 !important;
  }

  .uouo-workspace-dashboard > main > .uouo-soft-scrollbar {
    height: auto !important;
    min-height: calc(100dvh - 110px);
    overflow-y: visible !important;
    padding: 18px 16px 28px !important;
  }

  .uouo-workspace-dashboard > main > .h-screen {
    height: auto !important;
    min-height: calc(100dvh - 110px);
    overflow: visible !important;
  }

  .uouo-workspace-dashboard > main > .h-screen > div:first-child > div:first-child {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 16px 0 !important;
  }

  .uouo-workspace-dashboard > main > .h-screen > div:first-child > div:first-child > div:first-child {
    flex-wrap: wrap;
    gap: 8px;
  }

  .uouo-workspace-dashboard > main > .h-screen input.w-64 {
    width: 100% !important;
  }

  .uouo-workspace-dashboard > main > .h-screen > div:first-child > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .uouo-workspace-dashboard > main > .h-screen > div:last-child {
    height: auto !important;
    min-height: 320px;
    overflow-y: visible !important;
  }

  .uouo-workspace-dashboard :is(.ds-current-project-card, .ds-project-card) > div {
    flex-direction: row !important;
    align-items: center !important;
  }

  .drama-director-workspace {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    min-width: 0;
    height: 100dvh !important;
    overflow: hidden;
  }

  .drama-director-workspace > .uouo-workspace-sidebar {
    display: grid !important;
    grid-template-areas:
      "director-head director-tools"
      "director-nav director-nav";
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100% !important;
    height: auto !important;
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.22);
  }

  .drama-director-workspace > .uouo-workspace-sidebar > div:first-child {
    grid-area: director-head;
    min-width: 0;
    padding: 8px 8px 4px 12px !important;
  }

  .drama-director-workspace > .uouo-workspace-sidebar > div:first-child > div:first-child {
    justify-content: flex-start;
    gap: 8px;
  }

  .drama-director-workspace > .uouo-workspace-sidebar > div:first-child > div:last-child {
    margin-top: 3px !important;
  }

  .drama-director-workspace > .uouo-workspace-sidebar > div:first-child h1 {
    overflow: hidden;
    font-size: 13px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .drama-director-workspace > .uouo-workspace-sidebar > div:nth-child(2) {
    grid-area: director-nav;
    display: block;
    min-width: 0;
    margin: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 12px 8px !important;
  }

  .drama-director-workspace > .uouo-workspace-sidebar > div:nth-child(2) > div {
    display: flex;
    width: max-content;
    gap: 6px;
  }

  .drama-director-workspace > .uouo-workspace-sidebar > div:nth-child(2) a,
  .drama-director-workspace > .uouo-workspace-sidebar > div:nth-child(2) button {
    width: auto !important;
    min-width: max-content;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    justify-content: flex-start !important;
  }

  .drama-director-workspace > .uouo-workspace-sidebar > div:nth-child(3) {
    grid-area: director-tools;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 2px 0 !important;
  }

  .drama-director-workspace .uouo-workspace-sidebar-model,
  .drama-director-workspace > .uouo-workspace-sidebar > div:nth-child(3) > div:nth-child(3),
  .drama-director-workspace > .uouo-workspace-sidebar > div:nth-child(3) > div:last-child > button:last-child,
  .drama-director-workspace > .uouo-workspace-sidebar > div:nth-child(3) > div:last-child > div:first-child span:last-child {
    display: none !important;
  }

  .drama-director-workspace > .uouo-workspace-sidebar > div:nth-child(3) > div:nth-child(2),
  .drama-director-workspace > .uouo-workspace-sidebar > div:nth-child(3) > div:last-child {
    display: flex !important;
    align-items: center;
    gap: 2px;
    margin: 0 !important;
    padding: 0 !important;
  }

  .drama-director-workspace .uouo-workspace-sidebar .bottom-full {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
  }

  .drama-director-workspace > main {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0 !important;
    min-height: 0;
    flex: 1 1 auto;
    padding: 0 !important;
  }

  .absolute.top-4.right-6[class~="z-[40]"] {
    top: 80px !important;
  }
}
