html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body.short-drama-active {
  background: #08090b;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body.short-drama-active main {
  min-width: 0;
}

body.short-drama-active aside:not(#local-result-dock):not(#local-huimeng-task-panel),
body.short-drama-active #local-film-editor-sidebar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.short-drama-active #app {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

body.short-drama-active #local-result-dock,
body.short-drama-active #local-huimeng-task-panel,
body.short-drama-active #local-account-menu,
body.short-drama-active #local-global-page-heading,
body.short-drama-active .local-page-heading,
body.short-drama-active .local-huimeng-empty {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.short-drama-active main > :not(#shortDramaWorkbench) {
  display: none !important;
}

#shortDramaWorkbench,
#shortDramaWorkbench * {
  box-sizing: border-box;
}

#shortDramaWorkbench {
  width: 100%;
  min-height: calc(100vh - 24px);
  padding: 24px;
  color: #f5f7fb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 180px),
    #08090b;
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    -apple-system,
    sans-serif;
}

.sd-shell {
  max-width: 1480px;
  margin: 0 auto;
}

.sd-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sd-kicker {
  margin: 0 0 8px;
  color: #8ee6dc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.sd-title {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.sd-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: #a7b0c0;
  font-size: 14px;
  line-height: 1.8;
}

.sd-actions,
.sd-inline,
.sd-tabs,
.sd-chip-row,
.sd-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sd-actions {
  justify-content: flex-end;
  min-width: 260px;
}

.sd-btn {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 14px;
  color: #e9edf5;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.sd-btn:hover {
  border-color: rgba(142, 230, 220, 0.55);
  background: rgba(142, 230, 220, 0.12);
}

.sd-btn:active {
  transform: translateY(1px);
}

.sd-btn.primary {
  border-color: rgba(16, 185, 129, 0.72);
  color: #05120f;
  background: #8ee6dc;
}

.sd-btn.ghost {
  background: transparent;
}

.sd-btn.small {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.sd-tabs {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 18px 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(8, 9, 11, 0.9);
  backdrop-filter: blur(18px);
}

.sd-tab {
  height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #aab3c2;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sd-tab.is-active {
  color: #07110f;
  background: #8ee6dc;
}

.sd-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.sd-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.sd-panel.pad {
  padding: 18px;
}

.sd-panel.span-4 {
  grid-column: span 4;
}

.sd-panel.span-5 {
  grid-column: span 5;
}

.sd-panel.span-6 {
  grid-column: span 6;
}

.sd-panel.span-7 {
  grid-column: span 7;
}

.sd-panel.span-8 {
  grid-column: span 8;
}

.sd-panel.span-12 {
  grid-column: span 12;
}

.sd-panel h2,
.sd-panel h3 {
  margin: 0;
  color: #fff;
  letter-spacing: 0;
}

.sd-panel h2 {
  font-size: 20px;
}

.sd-panel h3 {
  font-size: 16px;
}

.sd-muted {
  color: #9aa5b5;
  font-size: 13px;
  line-height: 1.7;
}

.sd-stat {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sd-stat strong {
  color: #fff;
  font-size: 28px;
  letter-spacing: 0;
}

.sd-tag,
.sd-api-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px 9px;
  color: #b7c1d2;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 700;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sd-api-tag {
  border-color: rgba(142, 230, 220, 0.28);
  color: #8ee6dc;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-weight: 600;
}

.sd-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.sd-step {
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 14px;
  background: #111319;
}

.sd-step span {
  color: #8ee6dc;
  font-size: 12px;
  font-weight: 900;
}

.sd-step strong {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: 15px;
}

.sd-step p {
  margin: 6px 0 0;
  color: #9aa5b5;
  font-size: 12px;
  line-height: 1.55;
}

.sd-table-wrap {
  width: 100%;
  overflow: auto;
}

.sd-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.sd-table th,
.sd-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 10px;
  color: #dbe2ec;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.sd-table th {
  color: #8792a3;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sd-table code {
  color: #8ee6dc;
  font-size: 12px;
}

.sd-field,
.sd-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #8c97a8;
  font-size: 12px;
  font-weight: 800;
}

.sd-input,
.sd-textarea,
.sd-select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 11px;
  color: #f5f7fb;
  background: #101219;
  outline: none;
}

.sd-input:focus,
.sd-textarea:focus,
.sd-select:focus {
  border-color: rgba(142, 230, 220, 0.6);
}

.sd-textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.7;
}

.sd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sd-form-grid .wide {
  grid-column: 1 / -1;
}

.sd-card-list {
  display: grid;
  gap: 12px;
}

.sd-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 14px;
  background: #101219;
}

.sd-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sd-card strong {
  color: #fff;
}

.sd-shot {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 190px;
  gap: 12px;
  align-items: stretch;
}

.sd-shot-index {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #07110f;
  background: #8ee6dc;
  font-size: 18px;
  font-weight: 900;
}

.sd-preview {
  display: grid;
  min-height: 116px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #8994a5;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.sd-call {
  margin-top: 16px;
  border-color: rgba(142, 230, 220, 0.24);
  background: rgba(142, 230, 220, 0.06);
}

.sd-call pre {
  max-height: 260px;
  overflow: auto;
  margin: 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  color: #cfe7e4;
  background: #07090c;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.sd-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 44px));
  border: 1px solid rgba(142, 230, 220, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  color: #dffaf6;
  background: #101917;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  font-size: 13px;
  font-weight: 800;
}

.sd-jurilu-mode {
  max-width: 1180px;
}

.sd-j-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 26px;
}

.sd-credit,
.sd-user-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #eef4fb;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.sd-credit {
  display: inline-grid;
  grid-template-columns: 24px auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  min-height: 42px;
  padding: 6px 14px 6px 10px;
  text-align: left;
}

.sd-credit b {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #07110f;
  background: #8ee6dc;
}

.sd-credit span {
  font-size: 13px;
  font-weight: 900;
}

.sd-credit small {
  color: #98a5b6;
  font-size: 11px;
}

.sd-user-chip {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
}

.sd-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sd-tool-card {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #101219;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.sd-tool-card.primary {
  grid-column: 1 / -1;
  min-height: 236px;
  background:
    linear-gradient(135deg, rgba(142, 230, 220, 0.18), rgba(255, 255, 255, 0.04) 44%, rgba(0, 0, 0, 0.12)),
    #11151b;
}

.sd-tool-card h2 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  letter-spacing: 0;
}

.sd-tool-card.primary h2 {
  font-size: 34px;
}

.sd-tool-card p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #a6b2c3;
  font-size: 14px;
  line-height: 1.85;
}

.sd-soon {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 12px;
  color: #9faabc;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 900;
}

.sd-oneclick,
.sd-works {
  display: grid;
  gap: 16px;
}

.sd-form-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.sd-form-head h1,
.sd-soon-page h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 30px;
  letter-spacing: 0;
}

.sd-back {
  border: 0;
  padding: 0;
  color: #8ee6dc;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.sd-form-block {
  display: grid;
  gap: 14px;
}

.sd-script-box {
  min-height: 180px;
}

.sd-counter {
  justify-self: end;
  color: #7f8b9e;
  font-size: 12px;
  font-weight: 800;
}

.sd-form-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sd-switch-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  color: #dbe4ef;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.sd-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sd-toggle span {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.sd-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.16s ease;
}

.sd-toggle input:checked + span {
  background: #8ee6dc;
}

.sd-toggle input:checked + span::after {
  transform: translateX(18px);
  background: #07110f;
}

.sd-toggle b {
  font-size: 13px;
}

.sd-upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 128px;
  border: 1px dashed rgba(142, 230, 220, 0.35);
  border-radius: 12px;
  padding: 18px;
  color: #a7b3c4;
  background: rgba(142, 230, 220, 0.045);
  text-align: center;
  cursor: pointer;
}

.sd-upload.asset {
  min-height: 104px;
  margin: 12px 0;
}

.sd-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.sd-upload strong {
  color: #f5f7fb;
  font-size: 14px;
}

.sd-upload span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.sd-empty-inline {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 18px;
  color: #8f9bad;
  text-align: center;
}

.sd-asset-list {
  display: grid;
  gap: 14px;
}

.sd-asset-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 16px;
  background: #101219;
}

.sd-asset-card h3 {
  margin: 0;
  color: #fff;
}

.sd-textarea.asset-desc {
  min-height: 86px;
}

.sd-submit-bar {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(142, 230, 220, 0.26);
  border-radius: 14px;
  padding: 14px;
  background: rgba(12, 17, 21, 0.94);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.sd-submit-bar strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.sd-submit-bar span {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.sd-generate {
  min-width: 220px;
}

.sd-empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.sd-empty-state h2 {
  margin: 0;
  color: #fff;
}

.sd-empty-state p,
.sd-soon-page p {
  margin: 0;
  color: #9da8b9;
  line-height: 1.8;
}

.sd-soon-page {
  min-height: 360px;
  align-content: center;
  gap: 16px;
}

aside [data-short-drama-link],
#local-film-editor-sidebar [data-short-drama-link] {
  position: relative;
}

aside [data-short-drama-link].is-active,
#local-film-editor-sidebar [data-short-drama-link].is-active {
  color: #8ee6dc !important;
}

@media (max-width: 1120px) {
  #shortDramaWorkbench {
    padding: 18px;
  }

  .sd-panel.span-4,
  .sd-panel.span-5,
  .sd-panel.span-6,
  .sd-panel.span-7,
  .sd-panel.span-8 {
    grid-column: span 12;
  }

  .sd-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-form-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.short-drama-active aside:not(#local-result-dock):not(#local-huimeng-task-panel),
  body.short-drama-active #local-film-editor-sidebar {
    display: none !important;
  }

  body.short-drama-active main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    overflow-x: hidden !important;
  }

  body.short-drama-active #app {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  #shortDramaWorkbench {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 14px;
  }

  .sd-topbar {
    display: block;
  }

  .sd-actions {
    justify-content: flex-start;
    min-width: 0;
    margin-top: 14px;
  }

  .sd-title {
    font-size: 24px;
  }

  .sd-tabs {
    overflow-x: hidden;
    flex-wrap: wrap;
  }

  .sd-tab {
    flex: 1 1 calc(50% - 8px);
    min-width: 116px;
  }

  .sd-table {
    min-width: 620px;
  }

  .sd-flow,
  .sd-form-grid,
  .sd-form-grid.compact,
  .sd-shot {
    grid-template-columns: 1fr;
  }

  .sd-shot-index {
    width: 44px;
    height: 36px;
  }

  .sd-j-top,
  .sd-form-head,
  .sd-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .sd-tool-grid {
    grid-template-columns: 1fr;
  }

  .sd-tool-card.primary {
    min-height: 220px;
  }

  .sd-tool-card.primary h2,
  .sd-form-head h1 {
    font-size: 25px;
  }

  .sd-generate {
    width: 100%;
    min-width: 0;
  }
}

/* Jurilu-like functional prototype layer: match workflow structure and spacing
   first; custom branding can be redesigned after the product flow is accepted. */
body.short-drama-active {
  background: #f5f7fb;
}

#shortDramaWorkbench {
  min-height: 100vh;
  padding: 0 32px 48px;
  color: #1f2937;
  background: #f5f7fb;
}

#shortDramaWorkbench .sd-jurilu-mode {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 8px;
}

.sd-j-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  margin-bottom: 28px;
}

.sd-nav-left,
.sd-nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.sd-nav-left {
  flex-wrap: wrap;
}

.sd-return {
  height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: #1677ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sd-nav-item {
  height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: #344054;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.sd-nav-item.is-active {
  color: #1677ff;
  background: rgba(22, 119, 255, 0.08);
}

.sd-j-nav .sd-credit,
.sd-j-nav .sd-user-chip {
  border-color: #e4e7ec;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.sd-j-nav .sd-credit b {
  color: #fff;
  background: #1677ff;
}

.sd-j-nav .sd-credit small {
  color: #667085;
}

.sd-j-tool-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.sd-j-tool-grid .sd-tool-card {
  grid-column: span 4;
  min-height: 150px;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  padding: 28px;
  color: #101828;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.sd-j-tool-grid .sd-tool-card.primary {
  grid-column: span 9;
  min-height: 230px;
}

.sd-j-tool-grid .sd-tool-card[data-tool="works"] {
  grid-column: span 3;
  min-height: 230px;
}

.sd-j-tool-grid .sd-tool-card h2 {
  color: #101828;
  font-size: 18px;
  font-weight: 700;
}

.sd-j-tool-grid .sd-tool-card.primary h2 {
  font-size: 24px;
}

.sd-j-tool-grid .sd-tool-card p {
  max-width: 760px;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.sd-j-tool-grid .sd-btn.primary,
.sd-card-link {
  align-self: flex-start;
  height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 15px;
  color: #fff;
  background: #1677ff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.sd-j-tool-grid .sd-soon {
  color: #667085;
  background: #f2f4f7;
}

.sd-works-section,
.sd-soon-section {
  margin-top: 30px;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}

.sd-works-section h2,
.sd-soon-section h2 {
  margin: 0 0 16px;
  color: #101828;
  font-size: 22px;
}

.sd-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.sd-section-head p {
  margin: -8px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.sd-work-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sd-api-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sd-api-action {
  display: grid;
  gap: 8px;
  min-height: 86px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  padding: 14px;
  color: #101828;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.sd-api-action:hover {
  border-color: #1677ff;
}

.sd-api-action strong {
  font-size: 14px;
  font-weight: 700;
}

.sd-api-action span {
  color: #667085;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sd-empty-state {
  color: #667085;
}

.sd-empty-state h2 {
  color: #101828;
}

.sd-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 100px 24px 48px;
  background: rgba(15, 23, 42, 0.45);
}

.sd-modal {
  position: relative;
  width: 1200px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  color: #101828;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.sd-modal-title {
  margin: 0;
  padding: 22px 24px 0;
  color: #101828;
  font-size: 18px;
  font-weight: 700;
}

.sd-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}

.sd-modal-close::before,
.sd-modal-close::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 8px;
  width: 16px;
  height: 1.5px;
  background: #667085;
}

.sd-modal-close::before {
  transform: rotate(45deg);
}

.sd-modal-close::after {
  transform: rotate(-45deg);
}

.sd-modal-close:hover {
  background: #f2f4f7;
}

.sd-modal-body {
  display: grid;
  grid-template-columns: 680px minmax(0, 1fr);
  gap: 48px;
  padding: 22px 24px 16px;
}

.sd-modal-left,
.sd-modal-right {
  min-width: 0;
}

.sd-field.ant-like {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
}

.sd-field.ant-like.required::before {
  content: "*";
  position: absolute;
  margin-left: -10px;
  color: #ff4d4f;
}

.sd-modal .sd-input,
.sd-modal .sd-select,
.sd-modal .sd-textarea {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  color: #101828;
  background: #fff;
  font-size: 14px;
}

.sd-modal .sd-input,
.sd-modal .sd-select {
  height: 32px;
  padding: 4px 11px;
}

.sd-modal .sd-input:focus,
.sd-modal .sd-select:focus,
.sd-modal .sd-textarea:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.sd-modal .sd-script-box {
  min-height: 184px;
}

.sd-form-note-row {
  display: flex;
  justify-content: flex-end;
  min-height: 18px;
  margin-top: -18px;
  color: #667085;
  font-size: 12px;
}

.sd-form-note {
  margin: 0 0 20px;
  color: #667085;
}

.sd-j-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sd-j-two-col.switches {
  align-items: start;
}

.sd-toggle.ant-switch-like {
  display: grid;
  gap: 10px;
  justify-items: start;
  min-height: 62px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #344054;
  background: transparent;
}

.sd-toggle.ant-switch-like b {
  order: -1;
  font-size: 14px;
  font-weight: 500;
}

.sd-toggle.ant-switch-like span {
  width: 44px;
  height: 22px;
  background: rgba(0, 0, 0, 0.25);
}

.sd-toggle.ant-switch-like span::after {
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
}

.sd-toggle.ant-switch-like input:checked + span {
  background: #1677ff;
}

.sd-toggle.ant-switch-like input:checked + span::after {
  transform: translateX(22px);
  background: #fff;
}

.sd-upload.jurilu {
  min-height: 78px;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  padding: 14px;
  color: #667085;
  background: #fafafa;
}

.sd-upload.jurilu strong {
  color: #344054;
  font-size: 14px;
  font-weight: 500;
}

.sd-upload.jurilu em {
  display: block;
  margin-top: 6px;
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
}

.sd-assets-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.sd-assets-head h3 {
  margin: 0;
  color: #101828;
  font-size: 18px;
}

.sd-assets-head p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
}

.sd-add-asset {
  height: 32px;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  padding: 0 15px;
  color: #344054;
  background: #fff;
  cursor: pointer;
}

.sd-add-asset:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.sd-modal .sd-empty-inline {
  border-color: #eaecf0;
  color: #667085;
  background: #fafafa;
}

.sd-modal .sd-asset-list {
  display: grid;
  gap: 14px;
}

.sd-modal .sd-asset-card {
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.sd-modal .sd-asset-card h3 {
  color: #101828;
  font-size: 15px;
}

.sd-modal .sd-card-head.asset-title {
  margin-bottom: 12px;
}

.sd-j-two-col.asset-fields {
  gap: 10px;
}

.sd-upload.asset.jurilu {
  min-height: 82px;
}

.sd-modal .asset-desc {
  min-height: 82px;
}

.sd-modal-footer {
  position: sticky;
  bottom: 0;
  padding: 16px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), #fff 30%);
}

.sd-generate-wide {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #1677ff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.sd-call {
  color: #dbeafe;
  background: #111827;
}

.sd-call h2 {
  color: #fff;
}

@media (max-width: 1280px) {
  .sd-modal-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 900px) {
  #shortDramaWorkbench {
    padding: 0 18px 36px;
  }

  .sd-j-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .sd-nav-left,
  .sd-nav-right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sd-j-tool-grid {
    grid-template-columns: 1fr;
  }

  .sd-api-action-grid {
    grid-template-columns: 1fr;
  }

  .sd-j-tool-grid .sd-tool-card,
  .sd-j-tool-grid .sd-tool-card.primary,
  .sd-j-tool-grid .sd-tool-card[data-tool="works"] {
    grid-column: auto;
    min-height: 150px;
  }

  .sd-modal-layer {
    padding: 0;
  }

  .sd-modal {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .sd-modal-title,
  .sd-modal-body,
  .sd-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sd-j-two-col {
    grid-template-columns: 1fr;
  }
}
