/* DRAMA_STUDIO_CRISP_CONSOLE_V4 */
:root {
  --ds-font-ui: "Manrope Variable", "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --ds-font-display: "Manrope Variable", "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --ds-font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Noto Sans SC Variable", monospace;
  --ds-bg: #f3f4f6;
  --ds-surface: #ffffff;
  --ds-surface-2: #eef0f2;
  --ds-sidebar: #121417;
  --ds-sidebar-2: #1a1d21;
  --ds-text: #17191d;
  --ds-text-2: #40464e;
  --ds-text-3: #59616a;
  --ds-border: #b8bec6;
  --ds-border-strong: #858c95;
  --ds-accent: #3457d5;
  --ds-accent-hover: #2948b8;
  --ds-focus: #6d86e8;
}

.dark {
  --ds-bg: #0d0f12;
  --ds-surface: #15181c;
  --ds-surface-2: #1e2227;
  --ds-sidebar: #0a0c0e;
  --ds-sidebar-2: #16191d;
  --ds-text: #f0f1f3;
  --ds-text-2: #c1c6cd;
  --ds-text-3: #9ba2ab;
  --ds-border: #4c535d;
  --ds-border-strong: #737b86;
  --ds-accent: #7f96ec;
  --ds-accent-hover: #98aaf0;
  --ds-focus: #aab9f5;
}

.drama-studio-startup {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ds-bg);
  color: var(--ds-text);
}

.drama-studio-startup-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drama-studio-startup-mark {
  display: block;
  width: 44px;
  height: 44px;
}

.drama-studio-startup-wordmark {
  display: block;
  width: min(210px, 58vw);
  height: auto;
}

.drama-studio-startup-progress {
  position: absolute;
  top: calc(50% + 42px);
  width: 96px;
  height: 2px;
  overflow: hidden;
  background: var(--ds-border);
}

.drama-studio-startup-progress::after {
  position: absolute;
  inset: 0;
  width: 42%;
  background: var(--ds-accent);
  content: "";
  animation: drama-studio-startup-progress 1.1s ease-in-out infinite;
}

.ds-module-loading {
  display: grid;
  min-height: 240px;
  height: 100%;
  place-items: center;
  color: var(--ds-text-3);
  font-size: 14px;
}

.ds-module-loading-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes drama-studio-startup-progress {
  from { transform: translateX(-140%); }
  to { transform: translateX(340%); }
}

@media (prefers-reduced-motion: reduce) {
  .drama-studio-startup-progress::after {
    width: 100%;
    animation: none;
  }
}

@media (prefers-color-scheme: dark) {
  .drama-studio-startup {
    background: #0d0f12;
    color: #f0f1f3;
  }

  .drama-studio-startup-progress {
    background: #4c535d;
  }

  .drama-studio-startup-progress::after {
    background: #7f96ec;
  }
}

html,
body,
#root {
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font-ui);
  font-optical-sizing: auto;
  font-synthesis: none;
  font-weight: 400;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root :is(button, input, optgroup, textarea, select),
#root .font-sans,
#root :is(
  .uouo-workspace-dashboard,
  .uouo-novel-workspace,
  .uouo-module-dialog,
  .uouo-module-floating,
  .uouo-module-panel,
  .uouo-canvas-dialog,
  .uouo-script-breakdown
),
#root [class*="font-['Alibaba-PuHuiTi-Medium']"] {
  font-family: var(--ds-font-ui) !important;
  font-optical-sizing: auto;
  letter-spacing: 0;
}

#root :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ds-font-display);
  font-optical-sizing: auto;
}

#root :is(code, kbd, samp, pre),
#root .font-mono {
  font-family: var(--ds-font-mono) !important;
}

#root [class*="tracking-[-"] {
  letter-spacing: 0 !important;
}

#root svg {
  shape-rendering: geometricPrecision;
}

#root :is(button, input, textarea, select):focus-visible {
  outline: 2px solid var(--ds-focus);
  outline-offset: 2px;
}

/* Shared overlays use hard edges and opaque surfaces. */
.uouo-module-dialog-backdrop,
.uouo-canvas-dialog-backdrop {
  background: rgba(5, 7, 9, 0.82) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.uouo-module-dialog-shell,
.uouo-module-floating,
.uouo-module-panel,
.uouo-canvas-dialog-shell,
.uouo-canvas-panel {
  border: 1px solid var(--ds-border-strong) !important;
  border-radius: 6px !important;
  background: var(--ds-surface) !important;
  box-shadow: none !important;
}

.uouo-module-dialog-header,
.uouo-module-dialog-footer,
.uouo-module-panel-header,
.uouo-canvas-dialog-header {
  border-color: var(--ds-border) !important;
  background: var(--ds-surface-2) !important;
  background-image: none !important;
}

.uouo-module-dialog-content {
  background: var(--ds-surface) !important;
  color: var(--ds-text-2) !important;
}

.uouo-module-dialog :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select),
.uouo-module-floating :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select),
.uouo-module-panel :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  border-color: var(--ds-border-strong) !important;
  border-radius: 4px !important;
  background: var(--ds-surface) !important;
  color: var(--ds-text) !important;
  box-shadow: none !important;
}

.uouo-module-dialog :is(input, textarea, select):focus,
.uouo-module-floating :is(input, textarea, select):focus,
.uouo-module-panel :is(input, textarea, select):focus {
  border-color: var(--ds-focus) !important;
  box-shadow: none !important;
}

.uouo-module-primary-button,
.uouo-module-secondary-button,
.uouo-module-danger-button,
.uouo-module-icon-button {
  border-radius: 4px !important;
  box-shadow: none !important;
  transform: none !important;
}

.uouo-module-primary-button {
  background: #3457d5 !important;
}

.uouo-module-primary-button:hover {
  background: #2948b8 !important;
}

.uouo-canvas-toolbar,
.uouo-canvas-panel,
.uouo-canvas-panel-soft,
.uouo-canvas-card {
  border-color: #59616c !important;
  border-radius: 5px !important;
  background: #15181c !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.uouo-canvas-primary-button,
.uouo-canvas-secondary-button,
.uouo-canvas-danger-button,
.uouo-canvas-dialog-close,
.uouo-canvas-tab {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.uouo-canvas-tab-active {
  border-color: #9aacf1 !important;
  background: #282d34 !important;
}

/* Project console */
.uouo-workspace-dashboard {
  min-height: 100vh;
  background: var(--ds-bg) !important;
  color: var(--ds-text);
}

.uouo-workspace-dashboard .ds-dashboard-sidebar {
  border-color: #343941 !important;
  background: var(--ds-sidebar) !important;
  color: #eef0f2;
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0ms;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar.is-collapsed {
  transition-delay: 16ms;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar > div:first-child {
  height: 88px !important;
  border-bottom: 1px solid #343941;
  background: var(--ds-sidebar) !important;
  padding-top: 20px !important;
  padding-bottom: 16px !important;
}

.uouo-workspace-dashboard .ds-dashboard-brand {
  height: 40px;
  overflow: hidden;
  border-radius: 3px;
  outline: none;
}

.uouo-workspace-dashboard .ds-dashboard-brand-expanded {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar.is-collapsed .ds-dashboard-brand-expanded {
  width: 40px;
  justify-content: center;
  gap: 0;
}

.uouo-workspace-dashboard .ds-dashboard-brand:focus-visible,
.uouo-workspace-dashboard .ds-account-trigger:focus-visible {
  outline: 2px solid #9aacf1;
  outline-offset: 2px;
}

.uouo-workspace-dashboard .ds-dashboard-brand-mark {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px;
}

.uouo-workspace-dashboard .ds-dashboard-brand-wordmark {
  width: 164px !important;
  height: auto !important;
  min-width: 164px;
  max-width: none;
  flex: 0 0 164px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 80ms ease, visibility 0s linear 0s;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar.is-collapsed .ds-dashboard-brand-wordmark {
  width: 0 !important;
  min-width: 0;
  flex-basis: 0;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar.is-expanded.labels-visible .ds-dashboard-brand-wordmark {
  opacity: 1;
  visibility: visible;
  transition-delay: 0ms;
}

.uouo-workspace-dashboard .ds-account-trigger {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid #59616c !important;
  border-radius: 999px !important;
  background: #1b1f24 !important;
  color: #eef0f2 !important;
  box-shadow: none !important;
}

.uouo-workspace-dashboard .ds-account-trigger:hover {
  border-color: #858c95 !important;
  background: #252a30 !important;
}

.uouo-workspace-dashboard .ds-account-popover {
  width: 216px !important;
  margin-bottom: 4px !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.ds-project-modal-layer {
  z-index: 1900 !important;
}

.uouo-workspace-dashboard .ds-account-avatar {
  width: 40px !important;
  height: 40px !important;
  border-color: #59616c !important;
  border-radius: 999px !important;
  background: #1b1f24 !important;
  color: #eef0f2 !important;
  box-shadow: none !important;
}

.uouo-workspace-dashboard .ds-account-name {
  max-width: 200px;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  overflow: hidden;
  font-size: 14px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

.uouo-workspace-dashboard .ds-account-label-wrap {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.uouo-workspace-dashboard .ds-account-label {
  display: block;
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  color: #eef0f2 !important;
  opacity: 0;
  text-overflow: ellipsis;
  visibility: hidden;
  white-space: nowrap;
  word-break: keep-all;
  transition: max-width 120ms ease, opacity 80ms ease, visibility 0s linear 0s;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar.is-expanded.labels-visible .ds-account-label {
  max-width: 140px;
  opacity: 1;
  visibility: visible;
  transition-delay: 0ms;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar nav {
  padding-top: 14px;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar nav button {
  min-height: 40px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px !important;
  color: #aeb4bc !important;
  box-shadow: none !important;
  transform: none !important;
}

.uouo-workspace-dashboard .ds-dashboard-nav-button {
  transition-duration: 300ms, 300ms, 300ms, 150ms, 150ms, 150ms;
  transition-property: width, margin, padding, color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.uouo-workspace-dashboard .ds-dashboard-nav-label {
  display: block;
  min-width: 0;
  max-width: 0;
  margin-left: 0 !important;
  overflow: hidden;
  opacity: 0;
  text-overflow: ellipsis;
  visibility: hidden;
  white-space: nowrap;
  word-break: keep-all;
  transition: max-width 120ms ease, margin-left 120ms ease, opacity 80ms ease, visibility 0s linear 0s;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar.is-expanded.labels-visible .ds-dashboard-nav-label {
  max-width: 180px;
  margin-left: 12px !important;
  opacity: 1;
  visibility: visible;
  transition-delay: 0ms;
}

.uouo-workspace-dashboard .ds-dashboard-nav-badge {
  max-width: 0;
  padding-right: 0 !important;
  padding-left: 0 !important;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  word-break: keep-all;
  transition: max-width 120ms ease, padding 120ms ease, opacity 80ms ease, visibility 0s linear 0s;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar.is-expanded.labels-visible .ds-dashboard-nav-badge {
  max-width: 64px;
  padding-right: 8px !important;
  padding-left: 8px !important;
  opacity: 1;
  visibility: visible;
  transition-delay: 0ms;
}

.uouo-workspace-dashboard .ds-dashboard-footer-compact,
.uouo-workspace-dashboard .ds-dashboard-footer-expanded {
  min-width: 0;
}

@media (min-width: 768px) {
  .uouo-workspace-dashboard .ds-dashboard-footer-compact {
    width: 76px;
    flex: 0 0 76px;
  }
}

.uouo-workspace-dashboard .ds-dashboard-expand-trigger:disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.55;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar nav button:hover {
  border-color: #3c424b;
  background: #1b1f24 !important;
  color: #ffffff !important;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar nav button[class~="hover:bg-[#E8EAED]"]:hover,
.uouo-workspace-dashboard .ds-dashboard-sidebar nav button[class~="bg-[#E8EAED]"] {
  border-color: #b8bec6;
  background: #e8eaed !important;
  color: #17191d !important;
}

.uouo-workspace-dashboard .ds-dashboard-sidebar nav button[class*="bg-[#A8C7FA]"] {
  border-color: #66717e;
  border-left: 3px solid #9aacf1;
  background: #22262c !important;
  color: #ffffff !important;
}

.uouo-workspace-dashboard .ds-dashboard-content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 26px 30px 48px !important;
}

.uouo-workspace-dashboard .ds-dashboard-header {
  margin-bottom: 22px !important;
  border-bottom: 1px solid var(--ds-border);
  padding-bottom: 18px;
}

.uouo-workspace-dashboard .ds-dashboard-header h1 {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.25;
}

.uouo-workspace-dashboard .ds-greeting-title,
.uouo-workspace-dashboard .ds-greeting-subtitle {
  color: #203b96 !important;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.2px rgba(255, 255, 255, 0.8);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 0 7px rgba(91, 118, 232, 0.72),
    0 0 16px rgba(52, 87, 213, 0.44);
}

.dark .uouo-workspace-dashboard .ds-greeting-title,
.dark .uouo-workspace-dashboard .ds-greeting-subtitle {
  color: #f8fbff !important;
  -webkit-text-stroke: 0.2px rgba(255, 255, 255, 0.9);
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.96),
    0 0 8px rgba(154, 172, 241, 0.94),
    0 0 18px rgba(91, 112, 225, 0.72),
    0 0 30px rgba(52, 87, 213, 0.42);
}

.uouo-workspace-dashboard .ds-greeting-subtitle {
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 0 6px rgba(91, 118, 232, 0.66),
    0 0 13px rgba(52, 87, 213, 0.38);
}

.dark .uouo-workspace-dashboard .ds-greeting-subtitle {
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.94),
    0 0 7px rgba(154, 172, 241, 0.86),
    0 0 15px rgba(91, 112, 225, 0.62),
    0 0 24px rgba(52, 87, 213, 0.34);
}

.uouo-workspace-dashboard .ds-dashboard-header input,
.uouo-workspace-dashboard .ds-dashboard-header button {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.uouo-workspace-dashboard .ds-current-project-card,
.uouo-workspace-dashboard .ds-project-card,
.uouo-workspace-dashboard .ds-command-card {
  border: 1px solid var(--ds-border) !important;
  border-radius: 5px !important;
  background: var(--ds-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.uouo-workspace-dashboard .ds-current-project-card:hover,
.uouo-workspace-dashboard .ds-project-card:hover,
.uouo-workspace-dashboard .ds-command-card:hover {
  border-color: var(--ds-border-strong) !important;
  background: var(--ds-surface-2) !important;
  box-shadow: none !important;
  transform: none !important;
}

.uouo-workspace-dashboard .ds-current-project-card > div {
  min-height: 124px !important;
  gap: 16px !important;
  padding: 18px !important;
}

.uouo-workspace-dashboard .uouo-current-card-visual,
.uouo-workspace-dashboard .ds-project-card-visual {
  position: relative;
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px;
  border: 1px solid var(--ds-border) !important;
  border-radius: 4px !important;
  background: var(--ds-surface-2) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.uouo-workspace-dashboard .uouo-current-card-visual img,
.uouo-workspace-dashboard .ds-project-card-visual img {
  display: none;
}

.uouo-workspace-dashboard :is(.uouo-current-card-visual, .ds-project-card-visual)::before,
.drama-project-create-dialog .drama-project-type-icon::before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  background: var(--ds-text);
  -webkit-mask: var(--ds-module-icon) center / contain no-repeat;
  mask: var(--ds-module-icon) center / contain no-repeat;
}

.uouo-current-card-visual--novel,
.ds-project-card-visual--novel,
.drama-project-type-card--original-novel {
  --ds-module-icon: url("/icons/modules/novel.svg");
}

.uouo-current-card-visual--script,
.uouo-current-card-visual--adaptation,
.ds-project-card-visual--script,
.ds-project-card-visual--adaptation,
.drama-project-type-card--adaptation,
.drama-project-type-card--original-script {
  --ds-module-icon: url("/icons/modules/script.svg");
}

.uouo-current-card-visual--video,
.ds-project-card-visual--video,
.ds-project-card-visual--storyboard,
.drama-project-type-card--storyboard {
  --ds-module-icon: url("/icons/modules/storyboard.svg");
}

.uouo-current-card-visual--director,
.ds-project-card-visual--director,
.drama-project-type-card--director-workshop {
  --ds-module-icon: url("/icons/modules/director.svg");
}

.uouo-workspace-dashboard .ds-command-strip {
  margin-bottom: 24px !important;
}

.uouo-workspace-dashboard .ds-command-strip > .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.uouo-workspace-dashboard .ds-command-card-wide {
  grid-column: span 2 / span 2 !important;
}

.uouo-workspace-dashboard .ds-command-card {
  min-height: 84px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
  padding: 14px 16px !important;
  color: var(--ds-text) !important;
}

.uouo-workspace-dashboard .ds-command-card :is(img, video),
.uouo-workspace-dashboard .ds-command-card > div[class*="absolute"] {
  display: none !important;
}

.uouo-workspace-dashboard .ds-command-card h3,
.uouo-workspace-dashboard .ds-command-card p,
.uouo-workspace-dashboard .ds-command-card li {
  color: var(--ds-text) !important;
}

.uouo-workspace-dashboard .ds-command-card h3 {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 700;
}

.uouo-workspace-dashboard .ds-command-card p,
.uouo-workspace-dashboard .ds-command-card ul {
  grid-column: 1;
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--ds-text-2) !important;
}

.uouo-workspace-dashboard .ds-command-card button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 88px !important;
  margin: 0 !important;
  border: 1px solid var(--ds-border-strong);
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--ds-text) !important;
  padding: 7px 10px !important;
}

.uouo-workspace-dashboard .ds-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.uouo-workspace-dashboard .ds-project-card > div {
  min-height: 94px;
  align-items: center;
  gap: 14px !important;
  padding: 14px !important;
}

.uouo-workspace-dashboard :is(.ds-current-project-card, .ds-project-card):focus-visible {
  outline: 2px solid var(--ds-focus);
  outline-offset: 2px;
}

.uouo-workspace-dashboard .ds-project-card:focus-within .ds-project-delete-button {
  opacity: 1 !important;
}

html:not(.dark) .uouo-workspace-dashboard :is(
  [class~="text-[#80868B]"],
  [class~="text-[#9AA0A6]"],
  [class~="text-[#7B8190]"]
) {
  color: var(--ds-text-3) !important;
}

html:not(.dark) .uouo-workspace-dashboard ::placeholder {
  color: var(--ds-text-3) !important;
  opacity: 1;
}

.uouo-workspace-dashboard :is(.ds-current-project-card, .ds-project-card) span.rounded-full {
  border: 1px solid var(--ds-border);
  border-radius: 3px !important;
  background: transparent !important;
  color: var(--ds-text-2) !important;
}

/* Create dialog uses compact command choices instead of illustration cards. */
.drama-project-create-dialog .uouo-module-dialog-shell {
  max-width: 760px !important;
}

.drama-project-create-dialog .uouo-module-dialog-content {
  gap: 16px !important;
}

.drama-project-create-dialog .uouo-module-dialog-content > .grid:first-child {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.drama-project-create-dialog .drama-project-type-card {
  min-height: 84px !important;
  border-radius: 4px !important;
  padding: 12px !important;
  box-shadow: none !important;
  transform: none !important;
}

.drama-project-create-dialog .drama-project-type-card > div {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
}

.drama-project-create-dialog .drama-project-type-icon {
  grid-row: 1 / span 2;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid var(--ds-border);
  border-radius: 4px !important;
  background: var(--ds-surface-2) !important;
}

.drama-project-create-dialog .drama-project-type-icon img {
  display: none;
}

.drama-project-create-dialog .drama-project-type-card [class*="mt-4"] {
  margin-top: 0 !important;
}

.drama-project-create-dialog .drama-project-type-card [class*="mt-2"] {
  margin-top: 0 !important;
}

/* First-party boundaries for imported workspaces. */
.uouo-novel-workspace,
.uouo-script-breakdown,
.uouo-script-breakdown-content {
  border-radius: 0 !important;
  background: var(--ds-bg) !important;
  color: var(--ds-text) !important;
}

.uouo-novel-workspace :is(input, textarea, select) {
  border-color: var(--ds-border-strong) !important;
  box-shadow: none !important;
}

.uouo-novel-workspace :is(input, textarea, select):focus {
  border-color: var(--ds-focus) !important;
  box-shadow: none !important;
}

.uouo-novel-workspace .border-gray-200,
.uouo-novel-workspace .border-gray-300,
.uouo-script-breakdown .border-gray-200,
.uouo-script-breakdown .border-gray-300 {
  border-color: var(--ds-border) !important;
}

.dark .uouo-novel-workspace .dark\:border-gray-700,
.dark .uouo-novel-workspace .dark\:border-gray-800,
.dark .uouo-script-breakdown .dark\:border-gray-700,
.dark .uouo-script-breakdown .dark\:border-gray-800 {
  border-color: var(--ds-border) !important;
}

.uouo-script-breakdown > div.flex.min-h-0,
.uouo-script-breakdown-content {
  border-color: var(--ds-border) !important;
}

.uouo-script-breakdown [class*="w-[300px]"] {
  border-color: var(--ds-border) !important;
  background: var(--ds-surface-2) !important;
}

.uouo-novel-workspace :is(.rounded-2xl, .rounded-xl),
.uouo-script-breakdown :is(.rounded-2xl, .rounded-xl),
.uouo-script-breakdown-content :is(.rounded-2xl, .rounded-xl) {
  border-radius: 6px !important;
}

.uouo-novel-workspace :is(.shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl),
.uouo-script-breakdown :is(.shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl),
.uouo-script-breakdown-content :is(.shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl) {
  box-shadow: none !important;
}

.uouo-novel-workspace [class*="bg-gradient"],
.uouo-script-breakdown [class*="bg-gradient"],
.uouo-script-breakdown-content [class*="bg-gradient"] {
  background-image: none !important;
}

.uouo-workspace-sidebar,
.uouo-workspace-sidebar-model > div {
  border-color: #4c535d !important;
  box-shadow: none !important;
}

.uouo-workspace-sidebar {
  border-right: 1px solid #4c535d !important;
  background: #111418 !important;
  color: #eef0f2 !important;
}

.uouo-workspace-sidebar-model > div {
  background: #171a1e !important;
  color: #eef0f2 !important;
}

.uouo-workspace-sidebar button {
  border-radius: 4px !important;
  color: #cbd0d6 !important;
  font-weight: 500;
  box-shadow: none !important;
}

.uouo-workspace-sidebar button:hover {
  color: #ffffff !important;
  transform: none !important;
}

.uouo-workspace-sidebar :is(
  [class*="text-[#5F6368]"],
  [class*="text-[#80868B]"],
  [class*="text-[#9AA0A6]"],
  [class*="text-gray-400"],
  [class*="text-gray-500"],
  [class*="text-gray-600"]
) {
  color: #aeb4bc !important;
}

.uouo-workspace-sidebar button[class*="bg-[#DDD8FF]"],
.uouo-workspace-sidebar button[class*="bg-[#E8EAED]"],
.uouo-workspace-sidebar button[class*="dark:bg-[#282A2D]"] {
  border-left: 3px solid #9aacf1 !important;
  background: #252a30 !important;
  color: #ffffff !important;
}

.uouo-workspace-dashboard > aside[style*="z-index: 101"] {
  border-color: var(--ds-border-strong) !important;
  background: var(--ds-surface) !important;
  box-shadow: none !important;
}

@media (max-width: 1100px) {
  .uouo-workspace-dashboard .ds-command-strip > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .uouo-workspace-dashboard .ds-command-card-wide {
    grid-column: 1 / -1 !important;
  }

  .uouo-workspace-dashboard .ds-project-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767px) {
  .uouo-workspace-dashboard .ds-dashboard-content {
    width: 100%;
    padding: 18px 14px 28px !important;
  }

  .uouo-workspace-dashboard .ds-dashboard-sidebar > div:first-child {
    height: 60px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .uouo-workspace-dashboard .ds-dashboard-brand-mark {
    width: 36px !important;
    height: 36px !important;
  }

  .uouo-workspace-dashboard .ds-command-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .uouo-workspace-dashboard .ds-command-strip > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .uouo-workspace-dashboard .ds-command-card-wide {
    grid-column: auto !important;
  }

  .uouo-workspace-dashboard .ds-command-card button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .drama-project-create-dialog .uouo-module-dialog-content > .grid:first-child {
    grid-template-columns: 1fr !important;
  }
}
