.document-studio-tool-btn {
  color: var(--primary);
  position: relative;
}

.document-studio-tool-btn i {
  font-size: 18px;
}

.document-studio-tool-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.document-studio-tool-popover {
  position: absolute;
  right: auto;
  bottom: 48px;
  left: 0;
  z-index: 40;
  width: min(330px, calc(100vw - 28px));
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  padding: 12px;
  background: var(--card-bg, #fff);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.22);
}

.document-studio-tool-popover.active {
  display: grid;
  gap: 12px;
}

body.dark-mode .document-studio-tool-popover {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.24);
}

.document-studio-tool-popover-head {
  display: grid;
  gap: 3px;
}

.document-studio-tool-popover-head strong {
  color: var(--text-primary);
  font-size: 14px;
}

.document-studio-tool-popover-head span,
.document-studio-tool-section > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.document-studio-tool-section {
  display: grid;
  gap: 8px;
}

.document-studio-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.document-studio-choice {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.08);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.document-studio-choice.active {
  border-color: rgba(37, 99, 235, 0.5);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

#document-studio-tool-theme {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text-primary);
  background: var(--card-bg, #fff);
}

body.dark-mode #document-studio-tool-theme {
  background: #0f172a;
}

.document-studio-tool-popover-actions {
  display: flex;
  gap: 8px;
}

.document-studio-tool-popover-actions button {
  min-height: 36px;
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.08);
  font-weight: 800;
  cursor: pointer;
}

.document-studio-tool-popover-actions button:first-child {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  border-color: transparent;
}

.document-studio-info-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.document-studio-info-link:hover {
  color: var(--text-primary);
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.08);
}

.document-studio-intro {
  position: fixed;
  inset: 0;
  z-index: 2550;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.document-studio-intro.active {
  pointer-events: auto;
  opacity: 1;
}

.document-studio-intro-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
}

.document-studio-intro-card {
  position: relative;
  width: min(820px, 100%);
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(285px, 0.98fr) minmax(0, 1.02fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0;
  padding: 0;
  color: #101010;
  background: #ffffff;
  box-shadow: 0 34px 110px rgba(15, 23, 42, 0.28);
  transform: translateY(16px) scale(0.98);
  transition: transform 220ms ease;
}

.document-studio-intro.active .document-studio-intro-card {
  transform: translateY(0) scale(1);
}

body.dark-mode .document-studio-intro-card {
  color: #f8fafc;
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
}

.document-studio-intro-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #78716c;
  background: transparent;
  cursor: pointer;
}

.document-studio-intro-close i {
  font-size: 23px;
  font-weight: 400;
}

body.dark-mode .document-studio-intro-close {
  color: #cbd5e1;
  background: transparent;
}

.document-studio-intro-visual {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f5f4f1;
  box-shadow: inset 1px 0 0 rgba(15, 23, 42, 0.04);
}

body.dark-mode .document-studio-intro-visual {
  background: #111827;
}

.document-studio-sample-stack {
  width: 100%;
  display: grid;
  gap: 16px;
  padding-left: 44px;
  padding-right: 0;
}

.document-studio-sample-card {
  width: min(430px, calc(100% + 34px));
  min-height: 70px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 12px 20px 12px 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

body.dark-mode .document-studio-sample-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.3);
}

.document-studio-sample-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  color: #78716c;
  background: #fff;
  transform: rotate(-6deg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.dark-mode .document-studio-sample-icon {
  border-color: rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
  background: #1e293b;
}

.document-studio-sample-icon i {
  font-size: 20px;
}

.document-studio-sample-card strong,
.document-studio-sample-card em {
  display: block;
  letter-spacing: 0;
}

.document-studio-sample-card strong {
  color: currentColor;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}

.document-studio-sample-card em {
  margin-top: 4px;
  color: #78716c;
  font-size: 14px;
  font-style: normal;
}

.document-studio-intro-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 46px 34px 34px 38px;
}

.document-studio-intro-kicker {
  width: max-content;
  border: 0;
  border-radius: 8px;
  padding: 5px 10px;
  color: #174f9a;
  background: #dbeafe;
  font-size: 15px;
  font-weight: 650;
}

.document-studio-intro-copy h2 {
  margin: 0;
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.document-studio-intro-type {
  width: min(100%, 520px);
  min-height: 34px;
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

body.dark-mode .document-studio-intro-type {
  color: #cbd5e1;
}

.document-studio-intro-type strong {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  color: currentColor;
  animation: dsIntroTyping 4.6s steps(72, end) 450ms both;
}

.document-studio-intro-type strong::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 3px;
  background: #14b8a6;
  vertical-align: -0.2em;
  animation: dsIntroCaret 900ms steps(1, end) infinite;
}

.document-studio-intro-body {
  max-width: 560px;
  margin: 0;
  color: #3f3f3f;
  font-size: 16px;
  line-height: 1.34;
}

body.dark-mode .document-studio-intro-body {
  color: #cbd5e1;
}

.document-studio-intro-actions {
  display: block;
  padding-top: 10px;
}

.document-studio-intro-actions button {
  min-height: 50px;
  width: 100%;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.document-studio-intro-try {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #111;
  color: #fff;
  background: #111;
  box-shadow: inset 0 0 0 3px #fff;
}

.document-studio-intro-later {
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: currentColor;
  background: rgba(148, 163, 184, 0.1);
}

.document-studio-intro-note {
  margin: -4px 0 0;
  color: #78716c;
  font-size: 14px;
  line-height: 1.22;
}

.document-studio-intro-note button,
.document-studio-intro-note a {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

@keyframes dsIntroCaret {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .document-studio-intro-card,
  .document-studio-intro-type strong,
  .document-studio-intro-type strong::after {
    animation: none;
    transition: none;
  }
}

.document-studio-shell {
  position: fixed;
  inset: 0;
  z-index: 2600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.document-studio-shell.active {
  pointer-events: auto;
  opacity: 1;
}

.document-studio-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
}

.document-studio-panel {
  position: absolute;
  inset: 16px;
  width: auto;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    color-mix(in srgb, var(--card-bg, #fff) 94%, transparent);
  box-shadow: 0 34px 110px rgba(15, 23, 42, 0.34);
}

body.dark-mode .document-studio-panel {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.22);
}

.document-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
}

.document-studio-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.document-studio-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1.2;
}

.document-studio-header p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.document-studio-icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
}

.document-studio-controls {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.document-studio-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
  gap: 14px;
  align-items: end;
}

.document-studio-command-side {
  display: grid;
  gap: 10px;
}

.document-studio-field {
  display: grid;
  gap: 7px;
}

.document-studio-field span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.document-studio-field textarea,
.document-studio-field select,
.slide-preview-canvas input,
.slide-preview-canvas textarea,
.document-page input,
.document-page textarea,
.speaker-notes-editor textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  outline: none;
}

body.dark-mode .document-studio-field textarea,
body.dark-mode .document-studio-field select,
body.dark-mode .slide-preview-canvas input,
body.dark-mode .slide-preview-canvas textarea,
body.dark-mode .document-page input,
body.dark-mode .document-page textarea,
body.dark-mode .speaker-notes-editor textarea {
  background: rgba(15, 23, 42, 0.76);
}

.document-studio-field textarea {
  min-height: 74px;
  padding: 12px 14px;
  resize: vertical;
}

.document-studio-field-prompt textarea {
  min-height: 92px;
  font-size: 15px;
  line-height: 1.5;
}

.document-studio-field select {
  min-height: 40px;
  padding: 0 10px;
}

.document-studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.document-studio-actions,
.export-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 0;
}

.document-studio-generate,
.document-studio-download,
.export-toolbar button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.document-studio-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.document-studio-generate,
.document-studio-download {
  width: 100%;
}

.document-studio-generate {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.document-studio-download,
.export-toolbar button {
  color: var(--text-primary);
  background: var(--card-bg, #fff);
}

.document-studio-download:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.document-studio-progress {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.document-studio-progress span,
.document-studio-progress-error {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.document-studio-progress span.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.document-studio-progress span.done {
  color: #0f766e;
}

.document-studio-ready-now,
.ds-ready-now-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
  font-weight: 900;
  cursor: pointer;
}

.document-studio-ready-now:hover,
.ds-ready-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.26);
}

.document-studio-preview-wrap {
  min-height: 0;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(20, 184, 166, 0.05)),
    var(--chat-bg, #f8fafc);
}

.document-studio-preview-wrap:has(.document-studio-workspace),
.document-studio-preview-wrap:has(.document-studio-presentation),
.document-studio-preview-wrap:has(.zc-computer-workspace) {
  overflow: hidden;
}

.ds-chat-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(20, 184, 166, 0.08)),
    rgba(255, 255, 255, 0.74);
}

body.dark-mode .ds-chat-card {
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(45, 212, 191, 0.08)),
    rgba(15, 23, 42, 0.72);
}

.ds-chat-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
}

.ds-chat-card-head span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ds-chat-card-head strong {
  font-size: 12px;
  letter-spacing: 0;
}

.ds-chat-card p {
  margin: 0;
  color: var(--text-secondary);
}

.ds-chat-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ds-chat-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.ds-chat-step i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}

.ds-chat-step.is-done i {
  background: #0f766e;
}

.ds-chat-step.is-active i {
  background: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.ds-generation-feed {
  display: grid;
  gap: 12px;
  color: var(--text-primary);
}

.ds-generation-feed > p {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

.ds-generation-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ds-worklog-feed {
  gap: 16px;
}

.ds-orchestration-brief {
  display: grid;
  gap: 9px;
  margin: -4px 0 2px;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.ds-worklog-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

body.dark-mode .ds-worklog-card {
  background: rgba(12, 12, 14, 0.72);
}

body.dark-mode .ds-generation-card {
  background: rgba(18, 18, 20, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.ds-generation-head {
  display: grid;
  grid-template-columns: 40px minmax(132px, 0.65fr) minmax(0, 1.25fr) 82px 24px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 10px 14px;
  color: var(--text-secondary);
  background: rgba(248, 250, 252, 0.72);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

body.dark-mode .ds-generation-head {
  background: rgba(255, 255, 255, 0.035);
}

.ds-generation-row {
  display: grid;
  color: var(--text-primary);
  font-size: 14px;
}

.ds-generation-row + .ds-generation-row {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ds-generation-summary {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 82px 24px;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0 14px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 160ms ease;
}

.ds-generation-summary:hover {
  background: rgba(37, 99, 235, 0.035);
}

.ds-generation-status {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(248, 250, 252, 0.9);
  font-size: 12px;
}

body.dark-mode .ds-generation-status {
  background: rgba(255, 255, 255, 0.04);
}

.ds-generation-row.is-done .ds-generation-status {
  border-color: rgba(20, 184, 166, 0.34);
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
}

body.dark-mode .ds-generation-row.is-done .ds-generation-status {
  color: #5eead4;
}

.ds-generation-spinner {
  width: 14px;
  height: 14px;
  display: block;
  border: 0;
  border-radius: 0;
  background: url("../../../logo-no-background-2.png") center / contain no-repeat;
  animation: ds-progress-spin 480ms linear infinite;
}

.ds-generation-dot {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.65);
}

.ds-generation-action {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-generation-action em {
  margin: 0 8px;
  color: rgba(148, 163, 184, 0.65);
  font-style: normal;
  font-weight: 500;
}

.ds-generation-action small {
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
}

.ds-generation-detail {
  min-width: 0;
  overflow: hidden;
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-generation-state {
  justify-self: start;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--text-secondary);
  background: rgba(248, 250, 252, 0.72);
  font-size: 11px;
  font-weight: 800;
}

body.dark-mode .ds-generation-state {
  background: rgba(255, 255, 255, 0.045);
}

.ds-generation-row.is-active .ds-generation-state {
  border-color: rgba(37, 99, 235, 0.28);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.ds-generation-row.is-done .ds-generation-state {
  border-color: rgba(20, 184, 166, 0.28);
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
}

.ds-generation-chevron {
  justify-self: end;
  color: var(--text-secondary);
  font-size: 14px;
  transition: transform 160ms ease;
}

.ds-generation-row.is-open .ds-generation-chevron {
  transform: rotate(180deg);
}

.ds-generation-panel {
  display: none;
  margin: 0 14px 14px 66px;
  border: 0;
  border-radius: 0;
  padding: 4px 4px 10px;
  background: transparent;
  animation: ds-progress-panel-in 180ms ease both;
}

body.dark-mode .ds-generation-panel {
  background: rgba(255, 255, 255, 0.04);
}

.ds-generation-row.is-open .ds-generation-panel {
  display: block;
}

.ds-generation-panel span {
  display: block;
  margin-bottom: 6px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ds-generation-panel p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.ds-generation-row.is-active {
  background: rgba(37, 99, 235, 0.045);
}

.ds-generation-row.is-active .ds-generation-action {
  color: #1d4ed8;
}

.ds-generation-row.is-done .ds-generation-action {
  color: var(--text-primary);
}

body.dark-mode .ds-generation-action {
  color: var(--text-primary);
}

body.dark-mode .ds-generation-detail {
  color: var(--text-secondary);
}

body.dark-mode .ds-generation-panel p {
  color: var(--text-secondary);
}

@keyframes ds-progress-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ds-progress-panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ds-complete-block {
  display: grid;
  gap: 18px;
  color: var(--text-primary);
}

.ds-complete-block h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.3;
}

.ds-complete-block ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-left: 28px;
}

.ds-complete-block li {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
}

.ds-complete-block > p {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
}

.ds-ready-card {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
  cursor: pointer;
  text-align: left;
}

body.dark-mode .ds-ready-card {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(148, 163, 184, 0.18);
}

.ds-ready-card:hover,
.ds-ready-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12);
  outline: none;
}

.ds-ready-thumb {
  width: 104px;
  height: 58px;
  flex: 0 0 104px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 22%, rgba(251, 146, 60, 0.24), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(96, 165, 250, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(226, 232, 240, 0.82));
}

.ds-ready-copy {
  min-width: 0;
  flex: 1;
}

.ds-ready-copy strong {
  display: block;
  color: var(--text-primary);
  overflow: hidden;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-ready-copy em {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-style: normal;
}

.ds-ready-edit {
  min-width: 74px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.document-studio-empty {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 34px;
  color: var(--text-secondary);
  text-align: center;
}

.document-studio-empty i {
  color: var(--primary);
  font-size: 32px;
}

.document-studio-empty strong {
  color: var(--text-primary);
  font-size: 18px;
}

.zc-computer-workspace {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(292px, 0.28fr) minmax(0, 1fr);
  overflow: hidden;
  color: var(--text-primary);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 250, 0.82) 42%, rgba(228, 232, 239, 0.9)),
    #f5f5f7;
  isolation: isolate;
}

body.dark-mode .zc-computer-workspace {
  background:
    linear-gradient(145deg, rgba(32, 35, 43, 0.96), rgba(18, 22, 31, 0.94) 48%, rgba(8, 11, 18, 0.98)),
    #111217;
}

.zc-computer-sidebar {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 18px;
  border-right: 1px solid rgba(40, 45, 56, 0.1);
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(250, 250, 252, 0.58)),
    rgba(255, 255, 255, 0.72);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(28px) saturate(1.3);
}

body.dark-mode .zc-computer-sidebar {
  background:
    linear-gradient(180deg, rgba(34, 38, 48, 0.74), rgba(20, 23, 31, 0.58)),
    rgba(19, 22, 30, 0.74);
  border-color: rgba(255, 255, 255, 0.08);
}

.zc-computer-window-controls {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 14px;
}

.zc-computer-window-controls i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.zc-computer-window-controls i:nth-child(1) {
  background: #ff5f57;
}

.zc-computer-window-controls i:nth-child(2) {
  background: #ffbd2e;
}

.zc-computer-window-controls i:nth-child(3) {
  background: #28c840;
}

.zc-computer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zc-computer-brand > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  color: #111827;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(222, 226, 234, 0.9));
  box-shadow:
    0 18px 38px rgba(24, 28, 36, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.dark-mode .zc-computer-brand > span {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(76, 82, 96, 0.9), rgba(33, 37, 48, 0.94));
}

.zc-computer-brand div,
.zc-computer-mini {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.zc-computer-brand strong {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

.zc-computer-brand em,
.zc-computer-mini span,
.zc-computer-mini b {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zc-computer-mini {
  gap: 8px;
  border: 1px solid rgba(24, 28, 36, 0.08);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 48px rgba(24, 28, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.dark-mode .zc-computer-mini {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.zc-computer-mini strong {
  color: #147a37;
  font-size: 13px;
}

.zc-computer-mini b {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
}

.zc-computer-brief {
  display: grid;
  align-self: start;
  gap: 9px;
  border: 1px solid rgba(24, 28, 36, 0.08);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(245, 246, 250, 0.68)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    0 24px 60px rgba(24, 28, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.dark-mode .zc-computer-brief {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

.zc-computer-brief span {
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.zc-computer-brief strong {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.25;
}

.zc-computer-brief p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.zc-computer-meters {
  align-self: end;
  display: grid;
  gap: 10px;
}

.zc-computer-meters i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(113, 118, 128, 0.16);
}

.zc-computer-meters i::before {
  content: "";
  display: block;
  width: var(--meter);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111827, #6b7280);
  transition: width 300ms ease;
}

.zc-computer-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 32px 36px;
  overflow: hidden;
}

.zc-computer-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.zc-computer-top span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.zc-computer-top span i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34c759;
  box-shadow: 0 0 0 5px rgba(52, 199, 89, 0.13);
}

.zc-computer-top h3 {
  max-width: 920px;
  margin: 8px 0 0;
  color: #111827;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: 0;
  animation: zc-log-headline-in 520ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.zc-computer-top h3::after {
  content: "";
  display: inline-block;
  width: 0.12em;
  height: 0.78em;
  margin-left: 0.12em;
  border-radius: 999px;
  background: currentColor;
  vertical-align: -0.06em;
  animation: zc-log-caret 860ms steps(1) infinite;
}

@keyframes zc-log-headline-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes zc-log-caret {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}

body.dark-mode .zc-computer-top h3 {
  color: #f8fafc;
}

.zc-computer-top-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.zc-computer-top-actions > em {
  flex: 0 0 auto;
  border: 1px solid rgba(24, 28, 36, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(24, 28, 36, 0.08);
}

.zc-computer-top-actions > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: #147a37;
  background: rgba(52, 199, 89, 0.1);
  font-size: 12px;
}

.zc-computer-top-actions > button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 28, 36, 0.1);
  border-radius: 999px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 26px rgba(24, 28, 36, 0.1);
  cursor: pointer;
}

body.dark-mode .zc-computer-top-actions > button {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.zc-computer-table {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(24, 28, 36, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 249, 252, 0.68)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 34px 90px rgba(24, 28, 36, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(1.2);
  scrollbar-width: thin;
}

body.dark-mode .zc-computer-table {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(35, 39, 50, 0.74), rgba(18, 21, 30, 0.7)),
    rgba(19, 22, 30, 0.72);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.zc-computer-row {
  border-bottom: 1px solid rgba(24, 28, 36, 0.075);
}

.zc-computer-row:last-child {
  border-bottom: 0;
}

.zc-computer-row summary {
  min-height: 84px;
  display: grid;
  grid-template-columns: 42px minmax(170px, 0.44fr) minmax(0, 1fr) 92px 18px;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease, transform 160ms ease;
}

.zc-computer-row summary::-webkit-details-marker {
  display: none;
}

.zc-computer-row.is-active summary {
  background:
    linear-gradient(90deg, rgba(0, 113, 227, 0.1), rgba(255, 255, 255, 0));
}

.zc-computer-status {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 28, 36, 0.1);
  border-radius: 999px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.dark-mode .zc-computer-status {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
}

.zc-computer-row.is-done .zc-computer-status {
  border-color: rgba(52, 199, 89, 0.28);
  color: #147a37;
  background: rgba(52, 199, 89, 0.12);
}

.zc-computer-spinner {
  width: 14px;
  height: 14px;
  border: 0;
  background: url("../../../logo-no-background-2.png") center / contain no-repeat;
  animation: ds-progress-spin 460ms linear infinite;
}

.zc-computer-status i:empty {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.7);
}

.zc-computer-action,
.zc-computer-detail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zc-computer-action {
  display: grid;
  gap: 4px;
}

.zc-computer-action b {
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-mode .zc-computer-action b {
  color: #f8fafc;
}

.zc-computer-action small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zc-computer-detail {
  color: var(--text-secondary);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.zc-computer-row em {
  justify-self: start;
  border: 1px solid rgba(24, 28, 36, 0.08);
  border-radius: 999px;
  padding: 5px 9px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

body.dark-mode .zc-computer-row em {
  background: rgba(255, 255, 255, 0.045);
}

.zc-computer-row.is-active em {
  color: #0057b8;
  background: rgba(0, 113, 227, 0.1);
}

.zc-computer-row.is-done em {
  color: #147a37;
  background: rgba(52, 199, 89, 0.1);
}

.zc-computer-row summary > .fa-chevron-right {
  color: var(--text-secondary);
  transition: transform 160ms ease;
}

.zc-computer-row[open] summary > .fa-chevron-right {
  transform: rotate(90deg);
}

.zc-computer-row p {
  margin: 0 22px 20px 80px;
  border: 1px solid rgba(24, 28, 36, 0.07);
  border-radius: 18px;
  padding: 14px 16px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.55;
}

body.dark-mode .zc-computer-row p {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.zc-computer-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.zc-computer-output span {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(24, 28, 36, 0.08);
  border-radius: 20px;
  padding: 16px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  box-shadow:
    0 18px 48px rgba(24, 28, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.dark-mode .zc-computer-output span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.zc-computer-output strong {
  color: var(--text-primary);
  font-size: 15px;
}

.document-studio-presentation {
  height: 100%;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 0;
}

.presentation-sidebar {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

body.dark-mode .presentation-sidebar {
  background: rgba(2, 6, 23, 0.28);
}

.presentation-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
}

.presentation-sidebar-head button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: var(--primary);
  background: var(--card-bg, #fff);
}

.presentation-thumbnails {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 0 10px 14px;
}

.slide-thumbnail {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 7px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 8px;
  color: var(--text-primary);
  background: var(--card-bg, #fff);
  text-align: left;
  cursor: pointer;
}

.slide-thumbnail.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.slide-thumbnail-number {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.slide-thumbnail-mini {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 6px;
  padding: 7px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.12));
  overflow: hidden;
}

.slide-thumbnail-mini em,
.slide-thumbnail-mini span,
.slide-thumbnail strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-thumbnail-mini em {
  color: var(--primary);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.slide-thumbnail-mini span {
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 800;
}

.slide-thumbnail strong {
  grid-column: 2;
  font-size: 11px;
}

.slide-preview-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 14px;
  overflow: auto;
}

.export-toolbar {
  margin-top: 0;
}

.slide-preview-canvas {
  aspect-ratio: 16 / 9;
  width: min(100%, 920px);
  align-self: center;
  justify-self: center;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ds-bg);
  box-shadow:
    0 32px 90px rgba(15, 23, 42, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.55);
  transition: opacity 160ms ease, transform 160ms ease;
}

.slide-layout {
  position: relative;
  height: 100%;
  max-height: 100%;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 7%;
  overflow: hidden;
  font-family: var(--ds-body-font);
  color: var(--ds-text);
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--ds-accent-2) 24%, transparent), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--ds-accent) 18%, transparent), transparent 42%),
    var(--ds-bg);
}

.slide-layout h1,
.slide-layout h2 {
  margin: 0;
}

.slide-layout h1 {
  max-width: 76%;
  color: var(--ds-text);
  font-family: var(--ds-heading-font);
  font-size: clamp(28px, 4.1vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  overflow: hidden;
  text-wrap: balance;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.slide-layout h2 {
  max-width: 72%;
  color: var(--ds-muted);
  font-family: var(--ds-body-font);
  font-size: clamp(17px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.2;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.slide-grid-chrome,
.slide-editorial-rail,
.slide-contrast-panel,
.slide-orb-one,
.slide-orb-two,
.slide-circuit-mark {
  pointer-events: none;
  position: absolute;
}

.slide-direction-technical,
.slide-direction-blueprint {
  background:
    linear-gradient(color-mix(in srgb, var(--ds-muted) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ds-muted) 8%, transparent) 1px, transparent 1px),
    var(--ds-bg);
  background-size: 42px 42px;
}

.slide-grid-chrome {
  inset: 7%;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 44%, transparent);
}

.slide-circuit-mark {
  top: 8%;
  right: 8%;
  display: grid;
  gap: 7px;
}

.slide-circuit-mark span {
  display: block;
  height: 5px;
  background: var(--ds-accent-2);
}

.slide-circuit-mark span:first-child {
  width: 82px;
}

.slide-circuit-mark span:last-child {
  width: 48px;
  background: var(--ds-accent);
}

.slide-direction-editorial {
  padding-left: 30%;
  background: var(--ds-bg);
}

.slide-editorial-rail {
  inset: 0 auto 0 0;
  width: 24%;
  background: color-mix(in srgb, var(--ds-surface) 80%, transparent);
  border-right: 2px solid color-mix(in srgb, var(--ds-accent) 55%, transparent);
}

.slide-direction-bold-contrast {
  padding: 7% 31% 7% 7%;
  background:
    linear-gradient(90deg, var(--ds-accent) 0 33%, transparent 33%),
    var(--ds-bg);
}

.slide-contrast-panel {
  inset: 0 0 0 auto;
  width: 28%;
  background: color-mix(in srgb, var(--ds-accent) 88%, transparent);
}

.slide-direction-bold-contrast .slide-kicker,
.slide-direction-bold-contrast .slide-title-input {
  color: #ffffff;
}

.slide-direction-bold-contrast .slide-subtitle-input {
  color: color-mix(in srgb, #ffffff 72%, transparent);
}

.slide-direction-product-launch {
  align-content: start;
  padding: 5.5% 34% 7% 7%;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ds-surface) 94%, transparent) 0 15%, transparent 15%),
    linear-gradient(90deg, transparent 0 68%, color-mix(in srgb, var(--ds-accent) 18%, transparent) 68%),
    var(--ds-bg);
}

.slide-direction-product-launch .slide-kicker {
  border-radius: 6px;
}

.slide-direction-product-launch .slide-card-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.slide-direction-product-launch .slide-card-grid .slide-card:first-child {
  grid-row: span 2;
  min-height: 290px;
  color: #ffffff;
  background: var(--ds-accent);
}

.slide-direction-product-launch .slide-card-grid .slide-card:first-child input,
.slide-direction-product-launch .slide-card-grid .slide-card:first-child textarea {
  color: #ffffff !important;
}

.slide-direction-editorial .slide-card-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.slide-direction-editorial .slide-card {
  min-height: 82px;
  grid-template-columns: 62px minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: center;
  padding: 14px 18px;
}

.slide-direction-bold-contrast .slide-card-grid {
  grid-template-columns: minmax(0, 1fr);
}

.slide-direction-bold-contrast .slide-card {
  min-height: 92px;
  border-radius: 0;
  grid-template-columns: 58px minmax(0, 0.8fr) minmax(0, 1.35fr);
  align-items: center;
  padding: 14px 18px;
}

.slide-orb-one {
  top: -16%;
  right: -7%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ds-accent-2) 24%, transparent);
}

.slide-orb-two {
  left: -10%;
  bottom: -18%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ds-accent) 18%, transparent);
}

.slide-layout > :not(.slide-grid-chrome):not(.slide-editorial-rail):not(.slide-contrast-panel):not(.slide-orb-one):not(.slide-orb-two):not(.slide-circuit-mark) {
  position: relative;
  z-index: 1;
}

.slide-freeform-layer {
  position: absolute !important;
  inset: 0;
  z-index: 4 !important;
  pointer-events: none;
}

.slide-freeform-layer.is-static .slide-freeform-element {
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}

.slide-freeform-layer.is-static .slide-freeform-text {
  padding: 8px;
}

.slide-freeform-layer.is-static .slide-freeform-text span {
  display: block;
  width: 100%;
  line-height: 1.25;
}

.slide-freeform-element {
  position: absolute;
  display: grid;
  min-width: 42px;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  pointer-events: auto;
  cursor: move;
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.slide-freeform-element:hover,
.slide-freeform-element.selected {
  border-color: color-mix(in srgb, var(--ds-accent) 82%, white);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ds-accent) 22%, transparent);
}

.slide-freeform-element textarea {
  width: 100%;
  height: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  outline: 0;
  padding: 8px;
  overflow: hidden;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  font-style: inherit;
  background: color-mix(in srgb, var(--ds-surface) 84%, transparent);
}

.slide-freeform-image,
.slide-freeform-video {
  background: color-mix(in srgb, var(--ds-surface) 80%, transparent);
}

.slide-freeform-image img,
.slide-freeform-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.slide-freeform-video span,
.slide-freeform-image span,
.slide-freeform-svg span {
  place-self: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ds-muted);
}

.slide-freeform-shape {
  place-items: center;
  border-radius: 999px;
  background: var(--ds-accent);
}

.slide-freeform-shape span {
  padding: 8px;
  text-align: center;
}

.slide-freeform-svg {
  color: var(--ds-accent);
}

.slide-freeform-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.slide-freeform-table {
  background: color-mix(in srgb, var(--ds-surface) 90%, transparent);
}

.slide-freeform-table table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  font: inherit;
  font-size: 0.78em;
}

.slide-freeform-table td {
  border: 1px solid color-mix(in srgb, var(--ds-muted) 32%, transparent);
  padding: 6px;
  vertical-align: top;
  outline: none;
}

.slide-freeform-table tr:first-child td {
  font-weight: 800;
  color: #ffffff;
  background: var(--ds-accent);
}

.slide-element-resize {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 4px 0 4px 0;
  background: var(--ds-accent);
  cursor: nwse-resize;
  opacity: 0;
}

.slide-freeform-element:hover .slide-element-resize,
.slide-freeform-element.selected .slide-element-resize {
  opacity: 1;
}

.slide-preview-canvas [data-slide-field-path],
.slide-preview-canvas [data-slide-block-path] {
  position: relative;
  will-change: transform;
}

.slide-preview-canvas [data-slide-field-path]:hover,
.slide-preview-canvas [data-slide-field-path].selected-slide-field,
.slide-preview-canvas [data-slide-block-path]:hover,
.slide-preview-canvas [data-slide-block-path].selected-slide-field {
  outline: 2px solid color-mix(in srgb, var(--ds-accent) 70%, white);
  outline-offset: 3px;
  cursor: move;
}

.slide-generated-resize {
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 8;
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background: var(--ds-accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  cursor: nwse-resize;
  opacity: 0;
  pointer-events: auto;
}

.slide-preview-canvas [data-slide-field-path]:hover + .slide-generated-resize,
.slide-preview-canvas [data-slide-field-path].selected-slide-field + .slide-generated-resize,
.slide-preview-canvas [data-slide-block-path]:hover > .slide-generated-resize,
.slide-preview-canvas [data-slide-block-path].selected-slide-field > .slide-generated-resize,
.slide-generated-resize:hover {
  opacity: 1;
}

.slide-image-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.2)),
    var(--ds-image) center / cover no-repeat;
}

.slide-layout-hero.has-slide-image {
  color: #ffffff;
  background: #111827;
}

.slide-layout-hero.has-slide-image .slide-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.slide-layout-hero.has-slide-image .slide-title-input,
.slide-layout-hero.has-slide-image .slide-subtitle-input {
  color: #ffffff;
}

.slide-layout-split.has-slide-image:not(.slide-direction-technical):not(.slide-direction-blueprint) {
  grid-template-columns: minmax(0, 0.95fr) minmax(220px, 0.85fr);
  align-items: center;
  column-gap: 6%;
}

.slide-layout-split.has-slide-image:not(.slide-direction-technical):not(.slide-direction-blueprint) .slide-image-panel {
  grid-column: 2;
  grid-row: 1 / span 5;
}

.slide-image-panel {
  min-height: 260px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 30%, transparent);
  border-radius: 12px;
  background:
    linear-gradient(0deg, rgba(15, 23, 42, 0.68), transparent 48%),
    var(--ds-image) center / cover no-repeat;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}

.slide-image-panel figcaption {
  padding: 14px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.slide-generated-visual {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 30%, transparent);
  border-radius: 12px;
  padding: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ds-surface) 92%, transparent), color-mix(in srgb, var(--ds-accent-2) 16%, var(--ds-surface))),
    var(--ds-surface);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.slide-generated-visual figcaption {
  color: var(--ds-accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.slide-generated-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 180px;
  padding: 28px 6px 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--ds-muted) 35%, transparent);
}

.slide-generated-chart span {
  position: relative;
  z-index: 1;
  height: calc(var(--v) * 150px);
  min-height: 38px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--ds-accent), var(--ds-accent-2));
}

.slide-generated-chart span::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: -22px;
  max-width: 58px;
  transform: translateX(-50%);
  color: var(--ds-muted);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-generated-chart svg {
  position: absolute;
  inset: 18px 8px 26px;
  width: calc(100% - 16px);
  height: calc(100% - 44px);
  overflow: visible;
}

.slide-generated-chart polyline {
  fill: none;
  stroke: var(--ds-text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.74;
}

.slide-generated-flow > div,
.slide-generated-timeline > div,
.slide-generated-matrix > div {
  display: grid;
  gap: 12px;
  min-height: 180px;
}

.slide-generated-flow > div {
  align-content: center;
}

.slide-generated-flow span {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 28%, transparent);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ds-text);
  background: color-mix(in srgb, var(--ds-surface) 88%, transparent);
  font-size: 12px;
  font-weight: 900;
}

.slide-generated-flow span:nth-child(2) {
  color: #ffffff;
  background: var(--ds-accent);
}

.slide-generated-flow i {
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 2px;
  height: 13px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--ds-accent-2) 70%, transparent);
}

.slide-generated-timeline > div {
  align-content: center;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.slide-generated-timeline span {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 132px;
  border-top: 3px solid var(--ds-accent);
  padding-top: 14px;
  color: var(--ds-text);
  font-size: 11px;
  font-weight: 800;
}

.slide-generated-timeline b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--ds-accent);
  font-size: 10px;
}

.slide-generated-matrix > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slide-generated-matrix span {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 26%, transparent);
  border-radius: 14px;
  padding: 12px;
  color: var(--ds-text);
  background: color-mix(in srgb, var(--ds-surface) 88%, transparent);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.slide-generated-matrix span:nth-child(2),
.slide-generated-matrix span:nth-child(3) {
  color: #ffffff;
  background: var(--ds-accent);
}

.slide-kicker {
  width: max-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ds-accent);
  background: color-mix(in srgb, var(--ds-surface) 80%, transparent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.slide-kicker-line {
  border-radius: 0;
  border-left: 4px solid var(--ds-accent);
  padding: 3px 0 3px 10px;
  background: transparent;
}

.slide-kicker-block {
  border-radius: 4px;
  padding: 7px 10px;
  color: #ffffff;
  background: var(--ds-accent);
}

.slide-kicker-mono {
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 42%, transparent);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.slide-title-input,
.slide-subtitle-input {
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--ds-heading-font);
  outline: 0;
}

.slide-title-input {
  color: var(--ds-text);
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 900;
  line-height: 0.98;
  max-width: 100%;
  text-wrap: balance;
}

.slide-export-title,
.slide-export-subtitle {
  margin: 0;
}

.slide-export-title {
  max-width: 76%;
  color: var(--ds-text);
  font-family: var(--ds-heading-font);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.06;
}

.slide-export-subtitle {
  max-width: 68%;
  color: var(--ds-muted);
  font-family: var(--ds-body-font);
  font-size: 15px;
  font-weight: 650;
}

.slide-layout-hero .slide-title-input {
  max-width: 72%;
  font-size: clamp(42px, 5.8vw, 76px);
}

.slide-direction-technical.slide-layout-hero .slide-title-input,
.slide-direction-blueprint.slide-layout-hero .slide-title-input {
  max-width: 66%;
}

.slide-direction-editorial.slide-layout-hero .slide-title-input {
  max-width: 86%;
  font-size: 44px;
}

.slide-direction-bold-contrast.slide-layout-hero .slide-title-input {
  max-width: 46%;
  font-size: 34px;
}

.slide-direction-product-launch.slide-layout-hero .slide-title-input {
  max-width: 76%;
  font-size: 40px;
}

.slide-subtitle-input {
  color: var(--ds-muted);
  font-size: clamp(16px, 1.8vw, 24px);
  font-family: var(--ds-body-font);
  font-weight: 650;
  line-height: 1.22;
  max-width: 76%;
}

.slide-body-list {
  display: grid;
  gap: 12px;
  max-width: min(720px, 76%);
}

.slide-body-list input {
  border: 1px solid color-mix(in srgb, var(--ds-accent) 18%, transparent);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ds-text);
  background: color-mix(in srgb, var(--ds-surface) 88%, transparent);
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 650;
  line-height: 1.35;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.slide-narrative-stack {
  display: grid;
  gap: 12px;
  max-width: 78%;
}

.slide-narrative-stack label {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 22%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ds-surface) 88%, transparent);
}

.slide-narrative-stack span {
  color: var(--ds-accent);
  font-size: 12px;
  font-weight: 900;
}

.slide-narrative-stack textarea {
  min-height: 0;
  resize: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ds-text);
  font-family: var(--ds-body-font);
  font-size: 13px;
  line-height: 1.45;
}

.slide-narrative-bubbles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 92%;
}

.slide-narrative-bubbles label {
  min-height: 0;
  border-radius: 18px;
  padding: 13px;
}

.slide-direction-bold-contrast .slide-narrative-bubbles {
  max-width: 62%;
  gap: 9px;
}

.slide-direction-bold-contrast .slide-narrative-bubbles label {
  padding: 12px;
}

.slide-narrative-bubbles label:nth-child(odd) {
  background: var(--ds-accent);
}

.slide-narrative-bubbles label:nth-child(odd) span,
.slide-narrative-bubbles label:nth-child(odd) textarea {
  color: #ffffff;
}

.slide-svg-motif {
  position: absolute;
  right: 5.5%;
  bottom: 8%;
  width: 170px;
  height: 130px;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.slide-svg-motif svg {
  width: 100%;
  height: 100%;
}

.slide-direction-editorial .slide-narrative-stack {
  margin-left: 30%;
}

.slide-direction-bold-contrast .slide-narrative-stack {
  margin-left: 36%;
  max-width: 60%;
}

.slide-technical-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  gap: 7%;
  align-items: center;
}

.slide-node-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  grid-template-rows: repeat(3, 48px);
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.slide-node-diagram::before,
.slide-node-diagram::after {
  content: "";
  position: absolute;
  background: color-mix(in srgb, var(--ds-accent-2) 70%, transparent);
}

.slide-node-diagram::before {
  left: 18%;
  right: 18%;
  top: 50%;
  height: 2px;
}

.slide-node-diagram::after {
  top: 14%;
  bottom: 14%;
  left: 50%;
  width: 2px;
}

.slide-node-diagram span {
  z-index: 1;
  min-width: 76px;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 45%, transparent);
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--ds-text);
  background: color-mix(in srgb, var(--ds-surface) 88%, transparent);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.slide-node-diagram span:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  color: #fff;
  background: var(--ds-accent);
}

.slide-node-diagram span:nth-child(1) {
  grid-column: 1;
  grid-row: 2;
}

.slide-node-diagram span:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

.slide-node-diagram span:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
}

.slide-hero-metrics {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.slide-hero-metrics span,
.slide-hero-signals span {
  border: 1px solid color-mix(in srgb, var(--ds-accent) 34%, transparent);
  border-radius: 12px;
  padding: 13px 18px;
  color: var(--ds-muted);
  background: color-mix(in srgb, var(--ds-surface) 80%, transparent);
  font-weight: 900;
}

.slide-hero-signals {
  width: min(520px, 82%);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.slide-hero-signals span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 11px;
}

.slide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.slide-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 248px;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 24%, transparent);
  border-radius: 8px;
  padding: 24px;
  background: color-mix(in srgb, var(--ds-surface) 96%, transparent);
}

.slide-card-grid .slide-card:nth-child(2) {
  border-color: color-mix(in srgb, var(--ds-accent) 82%, transparent);
  background: var(--ds-accent);
}

.slide-card-grid .slide-card:nth-child(2) input,
.slide-card-grid .slide-card:nth-child(2) textarea {
  color: #ffffff !important;
}

.slide-preview-canvas *,
.document-presenter .slide-layout * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.slide-preview-canvas input,
.slide-preview-canvas textarea,
.slide-card input,
.slide-card textarea {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-title-input,
.slide-subtitle-input {
  white-space: normal;
}

.slide-body-list,
.slide-narrative-stack,
.slide-card-grid {
  min-height: 0;
  overflow: hidden;
}

.slide-body-list input {
  min-height: 42px;
}

.slide-narrative-stack textarea {
  max-height: 86px;
}

.slide-card {
  min-height: 0;
  overflow: hidden;
}

.slide-card textarea {
  max-height: 96px;
}

.document-presenter {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  background: #050816;
  color: #fff;
}

.document-presenter-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
}

.document-presenter-slide {
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ds-bg);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

.document-presenter .slide-layout {
  min-height: 100%;
  max-height: 100%;
  align-content: start;
  gap: 12px;
  contain: layout paint;
}

.document-presenter .slide-layout-hero {
  padding-top: 7%;
}

.document-presenter .slide-layout h1 {
  max-width: min(780px, 70%);
  font-size: clamp(22px, 2.72vw, 44px);
  line-height: 1.14;
  max-height: none;
  -webkit-line-clamp: 3;
}

.document-presenter .slide-layout h2 {
  font-size: clamp(15px, 1.45vw, 23px);
  max-height: 3.8em;
  line-height: 1.26;
}

.presenter-bullets {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
  color: var(--ds-text);
  font-size: clamp(15px, 1.45vw, 23px);
  line-height: 1.35;
  max-height: 42vh;
  overflow: hidden;
}

.presenter-bullets li {
  overflow-wrap: anywhere;
}

.presenter-split-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 6%;
  align-items: center;
}

.presenter-split-body .presenter-bullets {
  min-width: 0;
}

.presenter-bullets p {
  margin: 0;
}

.presenter-paragraphs {
  display: grid;
  gap: 12px;
  max-width: min(860px, 78%);
  max-height: 46vh;
  overflow: hidden;
  color: var(--ds-text);
}

.presenter-paragraphs p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 22%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ds-surface) 82%, transparent);
  font-size: clamp(14px, 1.18vw, 20px);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.document-presenter-notes {
  min-height: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.9);
  overflow: auto;
}

.document-presenter-notes span {
  display: block;
  margin-bottom: 10px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.document-presenter-notes p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.6;
}

.document-presenter-controls {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.86);
}

.document-presenter-controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(148, 163, 184, 0.16);
  cursor: pointer;
}

.document-presenter-controls strong {
  min-width: 56px;
  text-align: center;
  font-size: 13px;
}

.slide-card input,
.slide-card textarea {
  border: 0;
  padding: 0;
  background: transparent;
}

.slide-card input:first-child {
  color: var(--ds-accent);
  font-size: 12px;
  font-weight: 900;
}

.slide-card input:nth-child(2) {
  color: var(--ds-text);
  font-size: 18px;
  font-weight: 900;
}

.slide-card textarea {
  min-height: 0;
  color: var(--ds-muted);
  resize: none;
  line-height: 1.45;
}

.slide-table,
.spreadsheet-preview table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ds-surface, #fff);
}

.slide-table th,
.slide-table td,
.spreadsheet-preview th,
.spreadsheet-preview td {
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 10px;
  text-align: left;
}

.slide-table th,
.spreadsheet-preview th {
  color: #fff;
  background: var(--ds-accent, #2563eb);
}

.speaker-notes-editor {
  display: grid;
  gap: 7px;
}

.speaker-notes-editor span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.speaker-notes-editor textarea {
  padding: 10px 12px;
  resize: vertical;
}

.document-studio-presentation {
  grid-template-columns: 230px minmax(0, 1fr);
  background: #eef2f7;
}

.presentation-sidebar {
  background: #f8fafc;
}

.presentation-sidebar-head {
  min-height: 56px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 13px;
  text-transform: uppercase;
}

.presentation-thumbnails {
  gap: 12px;
  padding: 12px 12px 18px;
}

.slide-thumbnail {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.slide-thumbnail.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18), 0 14px 30px rgba(37, 99, 235, 0.12);
}

.slide-thumbnail-mini {
  min-height: 70px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 10px;
}

.slide-preview-stage {
  grid-template-rows: minmax(320px, 1fr) auto auto;
  gap: 14px;
  padding: 18px 22px 20px;
  background:
    linear-gradient(180deg, #f8fafc, #e9eef6);
}

.export-toolbar {
  justify-content: flex-end;
}

.export-toolbar button {
  min-height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.slide-preview-canvas {
  width: min(100%, 980px);
  max-height: min(56vh, 640px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.slide-preview-canvas input,
.slide-preview-canvas textarea {
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.slide-preview-canvas input:focus,
.slide-preview-canvas textarea:focus {
  border-color: color-mix(in srgb, var(--ds-accent) 42%, transparent) !important;
  background: color-mix(in srgb, var(--ds-surface) 16%, transparent) !important;
}

.slide-title-input,
.slide-subtitle-input {
  color: var(--ds-text) !important;
  text-shadow: none;
}

.slide-subtitle-input {
  color: var(--ds-muted) !important;
}

.slide-body-list {
  gap: 8px;
}

.slide-body-list input {
  border-left: 3px solid var(--ds-accent) !important;
  border-radius: 8px !important;
  padding: 9px 12px !important;
  color: var(--ds-text) !important;
}

.speaker-notes-editor {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.speaker-notes-editor textarea {
  min-height: 82px;
  max-height: 150px;
  border-radius: 10px;
  background: #fff;
  line-height: 1.45;
}

.document-page-preview,
.spreadsheet-preview {
  height: 100%;
  overflow: auto;
  padding: 18px;
}

.document-page {
  width: min(760px, 100%);
  min-height: 980px;
  margin: 0 auto;
  padding: 58px;
  color: var(--ds-text);
  background: var(--ds-surface);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.16);
  font-family: var(--ds-body-font);
}

.document-cover-line {
  width: 90px;
  height: 5px;
  margin-bottom: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ds-accent), var(--ds-accent-2));
}

.document-kicker,
.document-section-number {
  display: block;
  margin-bottom: 16px;
  color: var(--ds-accent);
  font-family: var(--ds-heading-font);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.document-title-edit {
  width: 100%;
  border: 0;
  padding: 0;
  color: var(--ds-text);
  background: transparent;
  font-family: var(--ds-heading-font);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.document-page p {
  color: var(--ds-muted);
  font-size: 15px;
  line-height: 1.7;
}

.document-page section {
  margin-top: 34px;
}

.document-page section input {
  width: 100%;
  border: 0;
  padding: 0;
  color: var(--ds-text);
  background: transparent;
  font-family: var(--ds-heading-font);
  font-size: 22px;
  font-weight: 900;
}

.document-page section textarea {
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0;
  color: var(--ds-text);
  background: transparent;
  font-family: var(--ds-body-font);
  font-size: 15px;
  line-height: 1.65;
  resize: vertical;
}

.document-page input:focus,
.document-page textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--ds-accent) 28%, transparent);
  outline-offset: 4px;
}

.document-page aside {
  margin-top: 14px;
  border-left: 4px solid var(--ds-accent);
  padding: 12px 14px;
  color: var(--ds-text);
  background: color-mix(in srgb, var(--ds-accent) 12%, var(--ds-surface));
  font-weight: 800;
}

.spreadsheet-preview table {
  min-width: 680px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.spreadsheet-preview th {
  background: #1d4ed8;
}

.spreadsheet-preview td {
  color: #334155;
  background: #fff;
}

.spreadsheet-preview tr:nth-child(even) td {
  background: #f8fafc;
}

/* PowerPoint editor workspace */
.document-studio-panel:has(.document-studio-presentation),
.document-studio-panel:has(.document-studio-workspace),
.document-studio-panel:has(.zc-computer-workspace) {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: #eeeeee;
}

.document-studio-panel:has(.document-studio-presentation) > .document-studio-header,
.document-studio-panel:has(.document-studio-presentation) > .document-studio-controls,
.document-studio-panel:has(.document-studio-workspace) > .document-studio-header,
.document-studio-panel:has(.document-studio-workspace) > .document-studio-controls,
.document-studio-panel:has(.zc-computer-workspace) > .document-studio-header,
.document-studio-panel:has(.zc-computer-workspace) > .document-studio-controls {
  display: none;
}

.document-studio-presentation,
.document-studio-workspace {
  grid-template-columns: 306px minmax(0, 1fr);
  grid-template-rows: 72px auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: #eeeeee;
}

.document-studio-accuracy-note {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #4b5563;
  background: #fff8e8;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  z-index: 7;
}

.document-studio-accuracy-note i {
  color: #b45309;
}

.presentation-editor-topbar {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1px auto auto minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 16px 0 24px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  z-index: 8;
}

.presentation-back-btn,
.presentation-icon-action,
.presentation-soft-btn,
.presentation-export-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  color: #202124;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.presentation-back-btn {
  padding: 0 4px;
  font-size: 15px;
}

.presentation-divider {
  width: 1px;
  height: 34px;
  background: rgba(15, 23, 42, 0.08);
}

.presentation-icon-action {
  width: 38px;
  color: #737373;
  font-size: 17px;
}

.presentation-titlebar {
  min-width: 0;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.presentation-titlebar span {
  border-radius: 7px;
  padding: 6px 10px;
  color: #0b73ff;
  background: #e8f1ff;
  font-weight: 800;
}

.presentation-titlebar strong {
  overflow: hidden;
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-editor-topbar em {
  color: #777;
  font-size: 14px;
  font-style: normal;
  white-space: nowrap;
}

.presentation-soft-btn {
  padding: 0 16px;
  color: #5f5f5f;
  background: #f2f2f2;
}

.presentation-export-btn {
  padding: 0 18px;
  color: #ffffff;
  background: #171717;
}

.presentation-sidebar {
  grid-column: 1;
  grid-row: 3;
  background: #f7f7f7;
}

.presentation-sidebar-head {
  min-height: 56px;
  justify-content: flex-start;
  gap: 26px;
  padding: 0 24px;
  color: #4f4f4f;
  font-size: 15px;
  font-weight: 650;
  text-transform: none;
}

.presentation-sidebar-head button {
  margin-left: auto;
}

.presentation-thumbnails {
  height: calc(100% - 110px);
  gap: 16px;
  padding: 14px 14px 18px;
}

.slide-thumbnail {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  border-radius: 8px;
  padding: 4px;
  background: transparent;
  box-shadow: none;
}

.slide-thumbnail.active {
  border-color: #0b73ff;
  box-shadow: 0 0 0 2px rgba(11, 115, 255, 0.22);
}

.slide-thumbnail-number {
  align-self: start;
  color: #4b5563;
  font-size: 17px;
  font-weight: 850;
}

.slide-thumbnail-mini {
  min-height: 112px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.52)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(20, 184, 166, 0.16));
}

.slide-thumbnail strong {
  display: none;
}

.presentation-new-slide {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #5f6368;
  background: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.slide-preview-stage {
  grid-column: 2;
  grid-row: 3;
  position: relative;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 68px 84px 76px;
  background: #eeeeee;
}

.slide-preview-canvas {
  width: min(100%, 1568px);
  max-height: min(72vh, 884px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.24);
}

.presentation-bottom-tools {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 32px);
  overflow-x: auto;
  transform: translateX(-50%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.presentation-bottom-tools button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #626262;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}

.presentation-bottom-tools button.active {
  color: #ffffff;
  background: #171717;
}

.presentation-bottom-tools span {
  border-left: 1px solid rgba(15, 23, 42, 0.14);
  padding-left: 12px;
  color: #2f2f2f;
  font-size: 15px;
  font-weight: 700;
}

.document-studio-presentation .speaker-notes-editor {
  display: none;
}

.document-studio-workspace {
  display: grid;
  height: 100%;
  min-height: 0;
}

.doc-workspace-sidebar {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px 14px;
  background: #f7f7f7;
  overflow: auto;
}

.doc-workspace-sidebar > span {
  padding: 0 10px 8px;
  color: #666;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.doc-workspace-sidebar button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 9px 10px;
  color: #202124;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.doc-workspace-sidebar button.active,
.doc-workspace-sidebar button:hover {
  border-color: #0b73ff;
  box-shadow: 0 0 0 2px rgba(11, 115, 255, 0.16);
}

.doc-workspace-sidebar strong {
  color: #6b7280;
  font-size: 14px;
}

.doc-workspace-stage,
.sheet-workspace-stage {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 54px 72px;
  background: #eeeeee;
  scroll-padding-top: 24px;
}

.doc-workspace-stage .document-page {
  width: min(880px, 100%);
  margin-bottom: 34px;
}

.doc-direction-editorial .document-page {
  border-left: 18px solid var(--ds-accent);
  padding-left: 72px;
}

.doc-direction-bold-contrast .document-page {
  color: var(--ds-bg);
  background: var(--ds-accent);
}

.doc-direction-bold-contrast .document-page textarea,
.doc-direction-bold-contrast .document-page input,
.doc-direction-bold-contrast .document-page aside {
  color: #ffffff;
}

.doc-direction-technical .document-page,
.doc-direction-blueprint .document-page {
  background:
    linear-gradient(color-mix(in srgb, var(--ds-muted) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ds-muted) 10%, transparent) 1px, transparent 1px),
    var(--ds-surface);
  background-size: 32px 32px;
}

.document-summary-edit {
  width: 100%;
  min-height: 116px;
  border: 0;
  border-left: 4px solid var(--ds-accent);
  margin-top: 26px;
  padding: 14px 16px;
  color: var(--ds-text);
  background: color-mix(in srgb, var(--ds-accent) 10%, var(--ds-surface));
  font-family: var(--ds-body-font);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
}

.doc-direction-bold-contrast .document-summary-edit {
  background: color-mix(in srgb, var(--ds-accent-2) 26%, var(--ds-accent));
  border-left-color: var(--ds-bg);
}

.doc-section-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}

.doc-section-table th,
.doc-section-table td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
}

.doc-section-table th {
  color: #ffffff;
  background: var(--ds-accent);
}

.sheet-workspace-stage {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sheet-formula-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  width: min(1180px, 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sheet-formula-bar span {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  color: #6b7280;
  text-align: center;
  font-weight: 850;
}

.sheet-formula-bar input {
  border: 0;
  padding: 12px 14px;
  background: transparent;
}

.document-studio-sheet-workspace .spreadsheet-preview {
  width: min(1180px, 100%);
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.document-studio-sheet-workspace .spreadsheet-preview table {
  min-width: 900px;
  box-shadow: none;
}

.document-studio-sheet-workspace .spreadsheet-preview th:first-child {
  width: 54px;
  color: #6b7280;
  background: #f8fafc;
  text-align: center;
}

.document-studio-sheet-workspace .spreadsheet-preview th input,
.document-studio-sheet-workspace .spreadsheet-preview td input {
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

.document-studio-sheet-workspace .spreadsheet-preview th input {
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 760px) {
  .document-studio-intro-card {
    max-height: calc(100vh - 28px);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .document-studio-intro-copy {
    padding: 52px 26px 30px;
    gap: 22px;
  }

  .document-studio-intro-visual {
    min-height: auto;
    padding: 28px 18px 34px;
  }

  .document-studio-sample-stack {
    gap: 14px;
    padding: 0;
  }

  .document-studio-sample-card {
    width: 100%;
    min-height: 76px;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 14px;
  }

  .document-studio-sample-icon {
    width: 54px;
    height: 54px;
  }

  .document-studio-intro-copy h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .document-studio-intro-body {
    font-size: 17px;
  }

  .document-studio-sample-card strong {
    font-size: 17px;
  }

  .document-studio-sample-card em,
  .document-studio-intro-note {
    font-size: 14px;
  }

  .document-studio-panel {
    inset: 0;
    width: 100vw;
    border-radius: 0;
  }

  .document-studio-grid {
    grid-template-columns: 1fr;
  }

  .document-studio-presentation {
    grid-template-columns: 1fr;
  }

  .zc-computer-workspace {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .zc-computer-sidebar {
    grid-template-rows: auto;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 18px;
  }

  .zc-computer-meters {
    display: none;
  }

  .zc-computer-main {
    overflow: visible;
    padding: 18px;
  }

  .zc-computer-top {
    display: grid;
  }

  .zc-computer-top h3 {
    font-size: 28px;
    line-height: 1.1;
  }

  .zc-computer-top-actions {
    justify-content: space-between;
  }

  .zc-computer-table {
    border-radius: 22px;
  }

  .zc-computer-row summary {
    min-height: 74px;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 0 16px;
  }

  .zc-computer-detail,
  .zc-computer-row em {
    display: none;
  }

  .zc-computer-row p {
    margin: 0 14px 14px;
  }

  .zc-computer-output {
    grid-template-columns: 1fr;
  }

  .presentation-sidebar {
    max-height: 142px;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .presentation-thumbnails {
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    overflow-x: auto;
    overflow-y: hidden;
    height: 88px;
  }

  .slide-preview-stage {
    padding: 10px;
  }

  .slide-layout {
    padding: 6%;
    gap: 10px;
  }

  .slide-title-input {
    font-size: 22px;
  }

  .slide-card-grid {
    grid-template-columns: 1fr;
  }

  .document-presenter {
    padding: 10px;
  }

  .document-presenter-stage {
    grid-template-columns: 1fr;
  }

  .document-presenter-notes {
    max-height: 160px;
  }

  .ds-ready-card {
    align-items: stretch;
    flex-direction: column;
  }

  .document-page {
    min-height: 0;
    padding: 28px;
  }
}

.slide-preview-canvas .slide-layout,
.document-presenter .slide-layout {
  overflow: hidden;
}

.slide-preview-canvas input,
.slide-preview-canvas textarea,
.slide-preview-canvas .slide-card,
.slide-preview-canvas .slide-body-list,
.slide-preview-canvas .slide-narrative-stack,
.slide-preview-canvas .slide-card-grid,
.document-presenter .slide-layout h1,
.document-presenter .slide-layout h2,
.document-presenter .presenter-paragraphs,
.document-presenter .presenter-bullets,
.document-presenter .slide-card-grid {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.slide-preview-canvas .slide-title-input,
.slide-preview-canvas .slide-subtitle-input {
  text-overflow: ellipsis;
}

.slide-preview-canvas .slide-narrative-stack textarea,
.slide-preview-canvas .slide-card textarea {
  max-height: 96px;
}
