:root {
  --bg: #06111d;
  --panel: #0c1d2f;
  --panel-soft: #11263b;
  --line: rgba(146, 179, 204, 0.18);
  --text: #eff8ff;
  --muted: #9fb6c9;
  --cyan: #27c7f4;
  --cyan-strong: #09aee1;
  --white: #fff;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 28px 64px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(39, 199, 244, 0.14), transparent 32%),
    linear-gradient(180deg, #06111d 0%, #081726 100%);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.present-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand span {
  display: flex;
  flex-direction: column;
}

.brand strong {
  letter-spacing: 0.12em;
}

.brand small,
.topbar-actions a,
.hint,
.section-copy p,
.project-meta,
#workspace-meta,
#viewer-meta {
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.present-layout,
.viewer-layout {
  display: grid;
  gap: 20px;
  padding: 22px 24px 30px;
}

.present-layout {
  max-width: 1380px;
  margin: 0 auto;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  align-items: start;
}

.viewer-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 420px);
  align-items: start;
}

.card {
  background: rgba(12, 29, 47, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.upload-card,
.navigator-card,
.workspace-head,
.scenes-card,
.viewer-stage,
.qa-card {
  padding: 20px;
}

.qa-card {
  padding: 14px 16px;
}

.viewer-stage {
  position: relative;
}

.studio-sidebar,
.viewer-side {
  display: grid;
  gap: 18px;
}

.studio-sidebar {
  position: sticky;
  top: 18px;
}

.navigator-card[hidden] {
  display: none;
}

.project-switcher-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.project-switcher-summary::-webkit-details-marker {
  display: none;
}

.project-switcher-body {
  margin-top: 16px;
}

.switcher-hint {
  color: var(--muted);
  font-size: 14px;
}

.section-copy h1,
.section-copy h2,
.viewer-head h1 {
  margin: 0 0 10px;
}

.viewer-head h1 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.08;
}

#viewer-meta {
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.35;
}

.viewer-status {
  display: none;
}

.section-copy.compact h2 {
  margin-bottom: 4px;
}

.section-copy.compact p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
}

.field input,
.field select,
.field textarea,
.qa-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.upload-form,
.qa-form {
  display: grid;
  gap: 16px;
}

.file-drop {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(39, 199, 244, 0.45);
  border-radius: 18px;
  cursor: pointer;
}

.file-drop input {
  display: none;
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease;
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover,
.project-item:hover,
.scene-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #03131c;
  background: linear-gradient(135deg, var(--cyan), #7de6ff);
  font-weight: 700;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(39, 199, 244, 0.3);
}

.button-danger {
  color: #c94a4a;
  border-color: rgba(201, 74, 74, 0.28);
}

.studio-rail {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.studio-rail .section-copy h1 {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.08;
}

.studio-rail .section-copy p,
.studio-rail .hint {
  font-size: 12px;
  line-height: 1.45;
}

.studio-rail-actions {
  display: grid;
  gap: 10px;
}

.studio-rail-actions .button-primary,
.studio-rail-actions .button-ghost {
  min-height: 42px;
}

.navigator-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.navigator-tab {
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  cursor: pointer;
}

.navigator-tab.active {
  color: #03131c;
  background: linear-gradient(135deg, var(--cyan), #7de6ff);
  border-color: transparent;
  font-weight: 700;
}

.navigator-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.navigator-panel {
  display: grid;
  gap: 12px;
}

.navigator-panel[hidden] {
  display: none !important;
}

.navigator-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.create-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(39, 199, 244, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.create-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.compact-upload-form {
  gap: 12px;
}

.compact-file-drop {
  padding: 14px 16px;
}

.create-panel-advanced {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.create-panel-advanced > summary {
  list-style: none;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.create-panel-advanced > summary::-webkit-details-marker {
  display: none;
}

.create-panel-advanced-grid {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.vision-toggle {
  grid-column: 1 / -1;
}

.panel-close {
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
}

.panel-close:hover {
  color: var(--text);
}

.card-lite {
  margin-top: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(39, 199, 244, 0.18);
  border-radius: 18px;
  background: rgba(39, 199, 244, 0.05);
}

.card-lite h2 {
  margin: 6px 0 8px;
}

.card-lite p {
  margin: 0;
  color: var(--muted);
}

.project-list,
.scene-list,
.qa-messages {
  display: grid;
  gap: 14px;
}

.project-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.project-item,
.scene-button {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  cursor: pointer;
}

.project-item {
  display: flex;
  align-items: center;
  min-width: 0;
  width: auto;
  flex: 1 1 auto;
  gap: 10px;
}

.project-item-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
}

.project-item strong,
.project-meta {
  white-space: nowrap;
}

.project-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-meta {
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-delete-button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1;
}

.project-delete-button:hover {
  color: #c94a4a;
  border-color: rgba(201, 74, 74, 0.35);
}

.project-item.active,
.scene-button.active {
  border-color: rgba(39, 199, 244, 0.5);
  background: rgba(39, 199, 244, 0.12);
}

.project-list {
  max-height: min(28vh, 320px);
  padding-right: 6px;
  overflow: auto;
}

.studio-empty {
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: start;
  min-height: 44vh;
  padding: 28px;
  text-align: left;
  border: 1px dashed rgba(39, 199, 244, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(39, 199, 244, 0.06), transparent 36%),
    rgba(10, 24, 38, 0.55);
}

.studio-boot-state {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 44vh;
  padding: 28px;
  border: 1px solid rgba(39, 199, 244, 0.16);
  border-radius: 28px;
  background: rgba(10, 24, 38, 0.28);
}

.studio-boot-state[hidden] {
  display: none !important;
}

.studio-boot-state h2,
.studio-boot-state p {
  margin: 0;
}

.studio-boot-loading p,
.studio-boot-error p {
  color: var(--muted);
}

.studio-empty h2,
.studio-empty p {
  margin: 0;
}

.studio-empty-copy {
  display: grid;
  gap: 10px;
  max-width: 56ch;
}

.studio-workspace {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.workspace-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, auto);
  gap: 18px;
}

.workspace-summary-copy {
  min-width: 0;
}

.workspace-summary-copy h2 {
  margin-bottom: 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
}

.workspace-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.workspace-toolbar {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.workspace-actions-primary,
.workspace-actions-secondary {
  justify-content: flex-end;
}

.workspace-actions .button-primary,
.workspace-actions .button-secondary,
.workspace-actions .button-ghost {
  min-height: 42px;
  padding: 0 16px;
}

.workspace-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.workspace-tab {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 14px 16px;
  align-content: start;
  text-align: left;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  cursor: pointer;
}

.workspace-tab.active {
  color: #03131c;
  background: linear-gradient(135deg, var(--cyan), #7de6ff);
  border-color: transparent;
  font-weight: 700;
}

.workspace-tab strong {
  font-size: 16px;
  line-height: 1.15;
}

.workspace-tab small,
.workspace-tab-kicker {
  font-size: 12px;
  line-height: 1.2;
}

.workspace-tab-kicker {
  color: inherit;
  opacity: 0.72;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace-panel[hidden] {
  display: none !important;
}

.workspace-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.viewer-setup-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.viewer-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.viewer-setup-span-2 {
  grid-column: span 2;
}

.viewer-setup-core .toggle-field {
  min-height: 88px;
}

.viewer-setup-advanced {
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.viewer-setup-advanced summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

.viewer-setup-advanced summary::-webkit-details-marker {
  display: none;
}

.viewer-setup-advanced summary span {
  color: var(--text);
  font-weight: 700;
}

.viewer-setup-advanced summary small {
  color: var(--muted);
  line-height: 1.4;
}

.viewer-setup-advanced-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toggle-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.toggle-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
}

.toggle-field span {
  display: grid;
  gap: 4px;
}

.toggle-field strong {
  font-size: 15px;
}

.toggle-field small {
  color: var(--muted);
  line-height: 1.45;
}

.viewer-setup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.viewer-setup-footer-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.viewer-setup-footer .hint {
  margin: 0;
  max-width: 72ch;
}

.viewer-setup-status {
  margin: 0;
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.4;
}

.viewer-setup-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.field-readonly {
  align-content: start;
}

.field-readonly strong {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: var(--cyan);
  background: rgba(39, 199, 244, 0.08);
  border: 1px solid rgba(39, 199, 244, 0.2);
  border-radius: 14px;
}

.active-scene-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.project-settings-card,
.active-scene-card {
  padding: 20px;
}

.scene-preview {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.scene-preview img,
.slide-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scene-status {
  color: var(--cyan);
  font-size: 13px;
}

.scene-editor-panel,
.scene-preview-panel {
  display: grid;
  gap: 16px;
}

.scene-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.scene-editor-head strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.scene-nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button-mini {
  min-height: 38px;
  padding: 0 14px;
}

/* Audience webinar preview shell */
.webinar-shell {
  background:
    radial-gradient(circle at top, rgba(39, 199, 244, 0.16), transparent 28%),
    linear-gradient(180deg, #eef7fb 0%, #f7fbfd 45%, #eef5f7 100%);
  color: #20293a;
}

.webinar-shell .present-topbar {
  border-bottom-color: rgba(34, 79, 110, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.webinar-shell .brand strong,
.webinar-shell .brand small,
.webinar-shell .topbar-actions a {
  color: #31435a;
}

.webinar-shell .topbar-actions a {
  border-bottom: 1px solid transparent;
}

.webinar-shell .topbar-actions a:hover {
  border-bottom-color: rgba(49, 67, 90, 0.35);
}


.scene-list-compact {
  max-height: min(18vh, 170px);
  padding-right: 6px;
  overflow: auto;
}

.scene-button-compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.scene-index-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--cyan);
  background: rgba(39, 199, 244, 0.12);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.scene-button-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.scene-button-copy strong,
.scene-button-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-button-copy span {
  color: var(--muted);
  font-size: 13px;
}

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

.viewer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.viewer-visual {
  position: relative;
}

.slide-stage {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.viewer-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(6, 17, 29, 0.82), rgba(12, 29, 47, 0.9)),
    rgba(6, 17, 29, 0.72);
  border: 1px solid rgba(39, 199, 244, 0.18);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.viewer-intro[hidden] {
  display: none !important;
}

.viewer-intro-media {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.viewer-intro-media video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.viewer-intro-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
}

.viewer-intro-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 8px 6px 8px 0;
}

.viewer-intro-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.viewer-intro-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.viewer-intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.intro-status {
  color: var(--cyan);
  font-size: 14px;
}

.viewer-assistant-card {
  display: grid;
  gap: 16px;
  min-height: calc(100vh - 150px);
  padding: 18px 0 0 24px;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(20, 20, 30, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.viewer-assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.viewer-assistant-head h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.08;
}

.viewer-assistant-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.viewer-assistant-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #03131c;
  background: linear-gradient(135deg, var(--cyan), #7de6ff);
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.viewer-assistant-messages {
  max-height: min(48vh, 580px);
  padding-right: 6px;
  overflow: auto;
}

.viewer-assistant-composer {
  gap: 10px;
}

.viewer-assistant-composer textarea {
  min-height: 76px;
  resize: vertical;
}

.assistant-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.qa-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.qa-message .message-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: var(--cyan);
  background: rgba(39, 199, 244, 0.12);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.qa-message.user .message-avatar {
  color: #03131c;
  background: linear-gradient(135deg, var(--cyan), #7de6ff);
}

.qa-message .message-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.qa-message .message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qa-message .message-meta strong {
  font-size: 14px;
}

.qa-message .message-meta span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.qa-message p {
  margin: 0;
  line-height: 1.6;
}

.qa-message .message-sources {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.qa-message.user {
  background: rgba(39, 199, 244, 0.12);
}

.qa-message {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
}

.qa-message.cohost {
  background: linear-gradient(135deg, rgba(64, 126, 255, 0.16), rgba(39, 199, 244, 0.08));
  border: 1px solid rgba(82, 146, 255, 0.28);
  box-shadow: 0 12px 30px rgba(15, 27, 42, 0.14);
}

.qa-message.cohost .message-avatar {
  color: #03131c;
  background: linear-gradient(135deg, #7de6ff, #78a6ff);
}

.qa-message.cohost .message-meta span {
  color: #6f86c7;
}

.qa-message.qa {
  background: rgba(255, 255, 255, 0.04);
}

.qa-message strong {
  display: block;
  margin-bottom: 6px;
}

.qa-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.qa-message.user {
  background: rgba(39, 199, 244, 0.12);
}

.qa-suggestions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.qa-suggestions button {
  padding: 8px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
}

.qa-form {
  gap: 10px;
}

.qa-form textarea {
  min-height: 72px;
  padding: 10px 12px;
}

.viewer-qa-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.viewer-qa-popup[hidden] {
  display: none !important;
}

.viewer-qa-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.78);
  backdrop-filter: blur(18px);
}

.viewer-qa-popup-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(1120px, 94vw);
  height: min(84vh, 860px);
  padding: 18px;
  background: linear-gradient(180deg, rgba(10, 24, 38, 0.98), rgba(7, 19, 30, 0.98));
  border: 1px solid rgba(39, 199, 244, 0.24);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.viewer-qa-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.viewer-qa-popup-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.viewer-qa-popup-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.08;
}

.viewer-qa-popup-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.viewer-qa-popup-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #03131c;
  background: linear-gradient(135deg, var(--cyan), #7de6ff);
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.viewer-qa-popup-close {
  min-height: 40px;
}

.viewer-qa-popup iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 22px;
  background: #06111d;
}

@media (max-width: 1120px) {
  .present-layout,
  .viewer-layout {
    grid-template-columns: 1fr;
  }

  .workspace-summary {
    grid-template-columns: 1fr;
  }

  .workspace-toolbar {
    justify-items: start;
  }

  .workspace-actions-primary,
  .workspace-actions-secondary {
    justify-content: flex-start;
  }

  .scene-list-compact {
    max-height: 180px;
  }

  .project-list {
    max-height: 220px;
  }

  .active-scene-layout {
    grid-template-columns: 1fr;
  }

  .viewer-intro {
    grid-template-columns: 1fr;
  }

  .viewer-qa-popup-panel {
    width: min(96vw, 1120px);
    height: min(86vh, 920px);
  }

  .workspace-settings {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-tabs {
    grid-template-columns: 1fr;
  }

  .viewer-setup-grid {
    grid-template-columns: 1fr;
  }

  .viewer-setup-span-2 {
    grid-column: auto;
  }

  .viewer-setup-advanced-grid {
    grid-template-columns: 1fr;
  }

  .viewer-setup-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .studio-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .present-topbar,
  .workspace-summary,
  .viewer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .present-layout,
  .viewer-layout {
    padding: 20px 16px 28px;
  }

  .workspace-toolbar,
  .workspace-actions-primary,
  .workspace-actions-secondary {
    justify-items: stretch;
    justify-content: stretch;
  }

  .workspace-actions .button-primary,
  .workspace-actions .button-secondary,
  .workspace-actions .button-ghost {
    width: 100%;
  }

  .scene-editor-head {
    flex-direction: column;
  }

  .scene-list-compact {
    max-height: 180px;
  }

  .viewer-intro {
    padding: 16px;
  }

  .viewer-qa-popup {
    padding: 12px;
  }

  .viewer-qa-popup-panel {
    width: 100%;
    height: 88vh;
    padding: 14px;
    border-radius: 22px;
  }

  .viewer-qa-popup-head {
    flex-direction: column;
  }

  .workspace-settings {
    grid-template-columns: 1fr;
  }

  .toggle-field {
    min-height: 0;
  }

  .studio-empty {
    justify-items: stretch;
    padding: 24px;
  }
}

/* Studio V2: clean left navigation, no floating cards */
.present-shell {
  --studio-bg: #fcfcf8;
  --studio-surface: #ffffff;
  --studio-sidebar: #f6f6f1;
  --studio-text: #171717;
  --studio-muted: #66635f;
  --studio-line: rgba(17, 24, 39, 0.1);
  --studio-line-strong: rgba(17, 24, 39, 0.16);
  --studio-accent: #2457f5;
  --studio-accent-soft: rgba(36, 87, 245, 0.08);
  --studio-accent-strong: #2149cb;
}

.present-shell body,
.present-shell {
  color: var(--studio-text);
}

.present-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 147, 92, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(36, 87, 245, 0.12), transparent 32%),
    linear-gradient(180deg, #fcf8f1 0%, #f7f3eb 46%, #fffdf8 100%);
  font-family: "Instrument Sans", system-ui, sans-serif;
}

.present-shell .present-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--studio-line);
  backdrop-filter: blur(12px);
}

.present-shell .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.present-shell .brand img {
  width: 148px;
  height: 38px;
  object-fit: cover;
  object-position: center;
}

.present-shell .studio-sidebar h1,
.present-shell .studio-main h2,
.present-shell .workspace-summary-copy h2 {
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  letter-spacing: -0.04em;
}

.present-shell .brand small,
.present-shell .topbar-actions a,
.present-shell .hint,
.present-shell .sidebar-copy,
.present-shell .navigator-empty,
.present-shell #workspace-meta,
.present-shell .project-meta,
.present-shell .viewer-setup-status {
  color: var(--studio-muted);
}

.present-shell .topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.present-shell .topbar-actions a {
  font-weight: 600;
}

.present-shell .present-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 0;
  max-width: none;
  padding: 0;
  min-height: calc(100vh - 76px);
}

.present-shell .studio-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(100vh - 76px);
  padding: 26px 18px 28px;
  background: var(--studio-sidebar);
  border-right: 1px solid var(--studio-line);
}

.present-shell .studio-status-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.present-shell .studio-sidebar-section {
  display: grid;
  gap: 12px;
}

.present-shell .studio-sidebar-intro {
  order: 1;
}

.present-shell .studio-sidebar-intro {
  gap: 10px;
}

.present-shell .sidebar-section-head {
  display: grid;
  gap: 2px;
}

.present-shell .sidebar-label {
  margin: 0;
  color: var(--studio-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.present-shell .studio-sidebar h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.98;
}

.present-shell .studio-sidebar h2,
.present-shell .workspace-section-head h2,
.present-shell .workspace-summary-copy h2,
.present-shell .create-panel h2,
.present-shell .studio-empty h2 {
  margin: 0;
  color: var(--studio-text);
}

.present-shell .studio-sidebar h2 {
  font-size: 1.02rem;
  font-family: "Instrument Sans", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.present-shell .sidebar-copy,
.present-shell .create-panel-copy,
.present-shell .studio-empty p,
.present-shell .workspace-section-head p {
  margin: 0;
  color: var(--studio-muted);
  line-height: 1.55;
}

.present-shell .studio-main {
  min-width: 0;
  padding: 28px 42px 56px;
  background: rgba(255, 255, 255, 0.68);
}

.present-shell .create-panel,
.present-shell .studio-empty,
.present-shell .workspace-head,
.present-shell .workspace-panel {
  margin: 0 0 28px;
  padding: 0 0 28px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--studio-line);
  border-radius: 0;
  box-shadow: none;
}

.present-shell .studio-empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-height: 0;
}

.present-shell .studio-boot-state {
  margin: 0 0 28px;
  padding: 0 0 28px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--studio-line);
  border-radius: 0;
  box-shadow: none;
}

.present-shell .studio-boot-state h2 {
  margin: 0;
  color: var(--studio-text);
}

.present-shell .studio-boot-loading p,
.present-shell .studio-boot-error p {
  color: var(--studio-muted);
}

.present-shell .workspace-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.present-shell .workspace-summary-copy {
  display: grid;
  gap: 8px;
}

.present-shell .workspace-summary-copy h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 0.98;
}

.present-shell .workspace-toolbar {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.present-shell .workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.present-shell .active-scene-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 26px;
  align-items: start;
}

.present-shell .scene-preview {
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: 18px;
  background: #fff;
}

.present-shell .scene-preview img {
  width: 100%;
  height: auto;
}

.present-shell .scene-editor-panel,
.present-shell .scene-preview-panel {
  display: grid;
  gap: 14px;
}

.present-shell .scene-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.present-shell .scene-editor-head strong,
.present-shell .scene-status {
  display: block;
}

.present-shell .scene-status {
  margin-top: 4px;
  color: var(--studio-accent);
  font-size: 0.92rem;
}

.present-shell .field {
  display: grid;
  gap: 8px;
}

.present-shell .field span {
  color: var(--studio-text);
  font-size: 0.93rem;
  font-weight: 600;
}

.present-shell .field input,
.present-shell .field select,
.present-shell .field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--studio-text);
  background: var(--studio-surface);
  border: 1px solid var(--studio-line-strong);
  border-radius: 14px;
}

.present-shell .field textarea {
  min-height: 320px;
  resize: vertical;
}

.present-shell .field input::placeholder,
.present-shell .field textarea::placeholder {
  color: rgba(102, 99, 95, 0.7);
}

.present-shell .upload-form {
  display: grid;
  gap: 16px;
}

.present-shell .upload-row {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(300px, 440px);
  gap: 18px;
  align-items: stretch;
}

.present-shell .upload-title-field {
  align-content: start;
}

.present-shell .file-drop {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(135, 213, 255, 0.28), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(253, 244, 255, 0.92));
  border: 1px solid var(--studio-line-strong);
  border-radius: 22px;
  cursor: pointer;
}

.present-shell .supplemental-materials-control {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--studio-line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.present-shell .supplemental-materials-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.present-shell .supplemental-materials-heading > div {
  display: grid;
  gap: 3px;
}

.present-shell .supplemental-materials-heading strong {
  color: var(--studio-text);
  font-size: 0.92rem;
}

.present-shell .supplemental-materials-heading span {
  color: var(--studio-muted);
  font-size: 0.78rem;
}

.present-shell .supplemental-materials-add {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.present-shell .supplemental-materials-list {
  display: grid;
  gap: 6px;
}

.present-shell .supplemental-material-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--studio-text);
  font-size: 0.8rem;
}

.present-shell .supplemental-material-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .supplemental-material-remove {
  min-height: 26px;
  padding: 0 8px;
  color: var(--studio-muted);
  font-size: 0.74rem;
}

.present-shell .supplemental-materials-help {
  margin: 0;
}

.present-shell .file-drop input {
  display: none;
}

.present-shell .file-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--studio-text);
  font-size: 2.3rem;
  line-height: 1;
  border: 2px solid rgba(23, 23, 23, 0.85);
  border-radius: 999px;
}

.present-shell .create-panel-advanced,
.present-shell .viewer-setup-advanced {
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.present-shell .create-panel-advanced > summary,
.present-shell .viewer-setup-advanced > summary {
  list-style: none;
  padding: 12px 14px;
  color: var(--studio-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.present-shell .create-panel-advanced > summary::-webkit-details-marker,
.present-shell .viewer-setup-advanced > summary::-webkit-details-marker {
  display: none;
}

.present-shell .create-panel-advanced-grid,
.present-shell .viewer-setup-advanced-grid {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.present-shell .create-panel-advanced-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.present-shell .vision-toggle {
  grid-column: 1 / -1;
}

.present-shell .viewer-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.present-shell .viewer-setup-span-2 {
  grid-column: span 2;
}

.present-shell .toggle-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.present-shell .toggle-field input {
  margin-top: 3px;
  accent-color: var(--studio-accent);
}

.present-shell .toggle-field strong {
  display: block;
  margin-bottom: 4px;
}

.present-shell .toggle-field small {
  color: var(--studio-muted);
}

.present-shell .viewer-setup-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.present-shell .workspace-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.present-shell .workspace-narrative-settings {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
}

.present-shell .narrative-settings-footer {
  grid-column: 1 / -1;
}

.present-shell .workspace-settings-form {
  display: grid;
  gap: 14px;
}

.present-shell .workspace-voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.present-shell .workspace-project-voice-grid {
  margin-top: 16px;
}

.present-shell .voice-summary-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.present-shell .voice-version-manager {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.present-shell .voice-version-list {
  display: grid;
  gap: 10px;
}

.present-shell .voice-version-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.present-shell .voice-version-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.present-shell .voice-version-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.present-shell .voice-version-item-head strong {
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.present-shell .voice-version-item-copy p {
  margin: 0;
  color: var(--studio-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.present-shell .voice-version-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.present-shell .voice-version-item-actions .button-mini {
  min-height: 34px;
}

.present-shell .voice-summary-card-actions {
  align-content: start;
}

.present-shell .voice-summary-label {
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.present-shell .voice-routing-stack {
  display: grid;
  gap: 10px;
}

.present-shell .voice-routing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .voice-routing-row span {
  color: var(--studio-muted);
}

.present-shell .voice-routing-row strong {
  color: var(--studio-text);
  font-weight: 700;
  text-align: right;
}

.present-shell .preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 14px;
}

.present-shell .preview-launch-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(71, 93, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(71, 93, 255, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(245, 130, 88, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(82, 68, 38, 0.08);
}

.present-shell .preview-launch-card-primary {
  border-color: rgba(71, 93, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 236, 0.96)),
    radial-gradient(circle at top right, rgba(71, 93, 255, 0.18), transparent 34%);
}

.present-shell .preview-launch-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--studio-v3-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.present-shell .preview-launch-brand img {
  display: block;
  flex: 0 0 auto;
}

.present-shell .preview-launch-card strong {
  font-size: 1.35rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.present-shell .preview-launch-card .hint {
  margin: 0;
}

.present-shell .preview-launch-meta {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .preview-launch-meta span {
  color: var(--studio-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.present-shell .preview-launch-meta strong {
  font-size: 1rem;
  line-height: 1.2;
}

.present-shell .preview-launch-button {
  justify-self: start;
}

.present-shell .narrative-review-card {
  align-self: start;
  min-height: 100%;
}

.present-shell .workspace-avatar-settings {
  grid-template-columns: minmax(0, 1fr);
}

.present-shell .workspace-avatar-opening-toggle {
  margin-top: 4px;
}

.present-shell .opening-greeting-script-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.present-shell .opening-greeting-name-field {
  max-width: 380px;
}

.present-shell .opening-greeting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.present-shell .avatar-opening-version-manager {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(47, 92, 255, 0.06), transparent 28%),
    rgba(255, 255, 255, 0.82);
}

.present-shell .avatar-settings-status-inline {
  margin-top: 8px;
}

.present-shell .opening-version-list {
  display: grid;
  gap: 10px;
}

.present-shell .opening-version-item {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.present-shell .opening-version-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.present-shell .opening-version-item-copy {
  display: grid;
  gap: 4px;
}

.present-shell .opening-version-item-copy strong {
  font-size: 1rem;
  line-height: 1.15;
}

.present-shell .opening-version-item-meta {
  color: var(--studio-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.present-shell .opening-version-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.present-shell .avatar-opening-preview {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 16px;
  background: #0d1422;
  object-fit: cover;
}

.present-shell .workspace-avatar-settings textarea {
  min-height: 150px;
  resize: vertical;
}

.present-shell .field-readonly {
  align-content: start;
  padding: 14px;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.present-shell .field-readonly strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
}

.present-shell .navigator-tabs {
  display: flex;
  gap: 8px;
}

.present-shell .navigator-panel {
  display: grid;
  gap: 10px;
}

.present-shell .project-list,
.present-shell .scene-list {
  display: grid;
  gap: 6px;
  max-height: 148px;
  overflow: auto;
  padding-right: 4px;
}

.present-shell .project-item,
.present-shell .scene-button,
.present-shell .workspace-tab,
.present-shell .navigator-tab {
  width: 100%;
  color: var(--studio-text);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
}

.present-shell .project-item,
.present-shell .scene-button {
  padding: 12px 13px;
}

.present-shell .navigator-tab {
  min-height: 40px;
  padding: 0 12px;
  font-weight: 600;
}

.present-shell .workspace-tabs {
  display: grid;
  gap: 8px;
}

.present-shell .workspace-tab {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
}

.present-shell .workspace-tab strong {
  font-size: 0.98rem;
  line-height: 1.18;
}

.present-shell .workspace-tab small,
.present-shell .workspace-tab-kicker,
.present-shell .project-meta,
.present-shell .scene-button-copy span {
  color: var(--studio-muted);
  font-size: 0.84rem;
  line-height: 1.3;
}

.present-shell .workspace-tab-kicker {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.present-shell .project-item strong,
.present-shell .scene-button strong {
  display: block;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.present-shell .scene-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.present-shell .scene-index-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--studio-muted);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(17, 24, 39, 0.04);
  border-radius: 10px;
}

.present-shell .navigator-tab.active,
.present-shell .project-item.active,
.present-shell .scene-button.active,
.present-shell .workspace-tab.active {
  background: rgba(17, 24, 39, 0.06);
  border-color: var(--studio-line);
}

.present-shell .workspace-tab.active .workspace-tab-kicker,
.present-shell .scene-status,
.present-shell .topbar-actions a:hover,
.present-shell .button-ghost {
  color: var(--studio-accent);
}

.present-shell .button-primary,
.present-shell .button-secondary,
.present-shell .button-ghost,
.present-shell .panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  border-radius: 14px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.present-shell .button-primary:hover,
.present-shell .button-secondary:hover,
.present-shell .button-ghost:hover,
.present-shell .panel-close:hover {
  transform: translateY(-1px);
}

.present-shell .button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--studio-accent), #5e80ff);
  border: 1px solid transparent;
}

.present-shell .button-secondary {
  color: var(--studio-text);
  background: var(--studio-surface);
  border: 1px solid var(--studio-line-strong);
}

.present-shell .button-ghost,
.present-shell .panel-close {
  color: var(--studio-text);
  background: transparent;
  border: 1px solid var(--studio-line);
}

.present-shell .button-danger {
  color: #b74343;
  border-color: rgba(183, 67, 67, 0.26);
}

.present-shell .button-mini {
  min-height: 40px;
}

.present-shell .upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.present-shell .sidebar-create-button {
  justify-self: start;
  width: 100%;
}

.present-shell .create-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.present-shell .workspace-panel[hidden],
.present-shell #create-panel[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .present-shell .present-layout {
    grid-template-columns: 256px minmax(0, 1fr);
  }

  .present-shell .upload-row,
  .present-shell .active-scene-layout,
  .present-shell .workspace-settings,
  .present-shell .workspace-voice-grid,
  .present-shell .preview-grid {
    grid-template-columns: 1fr;
  }

  .present-shell .workspace-summary {
    grid-template-columns: 1fr;
  }

  .present-shell .workspace-toolbar {
    justify-items: start;
  }

  .present-shell .workspace-actions {
    justify-content: flex-start;
  }

  .present-shell .viewer-setup-grid,
  .present-shell .create-panel-advanced-grid {
    grid-template-columns: 1fr;
  }

  .present-shell .viewer-setup-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .present-shell .present-layout {
    grid-template-columns: 1fr;
  }

  .present-shell .studio-sidebar {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--studio-line);
  }

  .present-shell .studio-main {
    padding: 22px 18px 42px;
  }

  .present-shell .present-topbar {
    padding: 12px 18px;
  }
}

@media (max-width: 640px) {
  .present-shell .present-topbar,
  .present-shell .workspace-section-head,
  .present-shell .create-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .present-shell .topbar-actions,
  .present-shell .workspace-actions,
  .present-shell .upload-actions,
  .present-shell .billing-header-actions {
    width: 100%;
  }

  .present-shell .billing-header-actions {
    align-items: flex-start;
    min-width: 0;
  }

  .present-shell .workspace-actions .button-primary,
.present-shell .workspace-actions .button-secondary,
.present-shell .workspace-actions .button-ghost,
.present-shell .upload-actions .button-primary,
.present-shell .upload-actions .button-ghost {
  width: 100%;
  }

  .present-shell .brand img {
    width: 156px;
    height: 42px;
  }
}

.present-shell .video-workspace-tabs {
  display: grid;
  gap: 8px;
}

.present-shell .video-workspace-tabs[hidden] {
  display: none !important;
}

.present-shell .video-studio-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 6px 10px 8px;
  color: #686d7a;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 18px;
  cursor: pointer;
}

.present-shell .video-studio-step:hover,
.present-shell .video-studio-step:focus-visible,
.present-shell .video-studio-step.active {
  color: #20222c;
  background: #f4f6ff;
  border-color: rgba(49, 87, 255, 0.12);
  outline: none;
}

.present-shell .video-studio-step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #5b606f;
  background: rgba(20, 20, 30, 0.06);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.present-shell .video-studio-step.active .video-studio-step-number {
  color: #fff;
  background: #3157ff;
}

.present-shell .video-studio-step strong {
  font-size: 14px;
  line-height: 1.05;
}

.present-shell .video-studio-shell {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.present-shell .video-studio-shell:has([data-video-panel="video"]:not([hidden])) {
  gap: 0;
  margin-top: 14px;
}

.present-shell:has(#video-studio-shell:not([hidden]) [data-video-panel="video"]:not([hidden])) .workspace-summary {
  position: relative;
  top: 14px;
}

.present-shell .video-studio-shell:has([data-video-panel="video"]:not([hidden])) .video-studio-shell-head {
  display: none;
}

.present-shell .video-studio-shell:has([data-video-panel="video"]:not([hidden])) .video-studio-step1-status {
  display: flex;
}

.present-shell .video-studio-step1-status {
  display: none;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .video-studio-step1-status strong {
  color: #20222c;
  font-size: 15px;
  line-height: 1.2;
}

.present-shell .video-studio-step1-status span {
  color: #686d7a;
  font-size: 13px;
  line-height: 1.45;
}

.present-shell .video-studio-shell-head,
.present-shell .video-studio-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.present-shell .video-studio-shell-head h2,
.present-shell .video-studio-panel-head h3,
.present-shell .video-studio-placeholder-card h4,
.present-shell .video-studio-transcript-card h4,
.present-shell .video-studio-viewer-copy h4,
.present-shell .video-studio-publish-placeholder h4 {
  margin: 0;
  color: #20222c;
  letter-spacing: -0.03em;
}

.present-shell .video-studio-shell-head h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
}

.present-shell .video-studio-intro,
.present-shell .video-studio-panel-head p,
.present-shell .video-studio-placeholder-card p,
.present-shell .video-studio-viewer-copy p,
.present-shell .video-studio-publish-placeholder p {
  max-width: 68ch;
  margin: 8px 0 0;
  color: #686d7a;
  font-size: 14px;
  line-height: 1.55;
}

.present-shell .video-studio-eyebrow,
.present-shell .video-studio-kicker {
  margin: 0 0 8px;
  color: #3157ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.present-shell .video-studio-source-pill,
.present-shell .video-studio-status-badge,
.present-shell .video-studio-coming-soon {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  color: #3157ff;
  background: #edf1ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.present-shell .video-studio-panel {
  display: grid;
  gap: 22px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(20, 20, 30, 0.1);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(25, 33, 58, 0.08);
}

.present-shell .video-studio-step1-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: start;
}

.present-shell .video-studio-step1-workspace {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.present-shell .video-studio-step1-preview,
.present-shell .video-studio-step1-review {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.present-shell .video-studio-step1-review {
  max-width: 430px;
  min-height: 0;
  padding-left: 22px;
  border-left: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .video-studio-step1-heading h3 {
  margin: 0;
  color: #20222c;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.present-shell .video-studio-step1-heading p:not(.video-studio-kicker) {
  max-width: 48ch;
  margin: 6px 0 0;
  color: #686d7a;
  font-size: 13px;
  line-height: 1.45;
}

.present-shell .video-studio-step1-player {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: visible;
  background: #151721;
  border: 1px solid rgba(20, 20, 30, 0.1);
  border-radius: 24px;
}

.present-shell .video-studio-step1-player video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.present-shell .video-studio-step1-player-state {
  padding: 24px;
  color: #d9dce8;
  font-size: 14px;
  text-align: center;
}

.present-shell .video-studio-step1-status [data-video-open-presentation] {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.present-shell .video-studio-step1-metadata {
  margin: 0;
  color: #686d7a;
  font-size: 13px;
  line-height: 1.45;
}

.present-shell .video-studio-step1-transcript-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #3157ff;
  font-size: 12px;
  font-weight: 750;
}

.present-shell .video-studio-step1-transcript-meta span:last-child {
  color: #686d7a;
  font-weight: 600;
}

.present-shell .video-studio-step1-editor-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(20, 20, 30, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.present-shell .video-studio-step1-editor-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  min-width: max-content;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  color: #686d7a;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.present-shell .video-studio-step1-editor-tab.active {
  color: #20222c;
  background: rgba(255, 255, 255, 0.9);
}

.present-shell .video-studio-step1-editor-tab:disabled {
  color: #9a9eaa;
  cursor: not-allowed;
}

.present-shell .video-studio-step1-language-warning {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  color: #8b5600;
  background: #fff8e9;
  border: 1px solid rgba(139, 86, 0, 0.15);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.present-shell .video-studio-step1-language-warning strong {
  color: #714500;
}

.present-shell .video-studio-step1-transcript-viewport {
  min-height: 0;
  max-height: calc(100dvh - 22rem);
  overflow-y: auto;
  padding-right: 8px;
}

.present-shell .video-studio-step1-segments {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.present-shell .video-studio-step1-segment {
  display: grid;
  gap: 7px;
  padding: 14px 0;
  border-top: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .video-studio-step1-segment:first-child {
  padding-top: 4px;
  border-top: 0;
}

.present-shell .video-studio-step1-segment-time {
  color: #3157ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.present-shell .video-studio-step1-segment p {
  margin: 0;
  color: #20222c;
  font-size: 14px;
  line-height: 1.55;
}

.present-shell .video-studio-step1-segment textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 11px;
  color: #20222c;
  background: #fff;
  border: 1px solid rgba(20, 20, 30, 0.16);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}

.present-shell .video-studio-step1-segment textarea:focus {
  border-color: rgba(49, 87, 255, 0.7);
  outline: 3px solid rgba(49, 87, 255, 0.12);
}

.present-shell .video-studio-step1-review-actions {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .video-studio-step1-feedback {
  min-height: 18px;
  color: #686d7a;
  font-size: 12px;
  line-height: 1.4;
}

.present-shell .video-studio-step1-feedback.is-warning {
  color: #8b5600;
}

.present-shell .video-studio-step1-feedback.is-working {
  color: #3157ff;
}

.present-shell .video-studio-step1-feedback.is-success {
  color: #14704f;
}

.present-shell .video-studio-step1-feedback.is-error {
  color: #9f2f39;
}

.present-shell .video-studio-step1-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.present-shell .video-studio-step1-action-buttons button {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 13px;
}

.present-shell .video-studio-step1-action-help {
  margin: 0;
  color: #686d7a;
  font-size: 11px;
  line-height: 1.45;
}

.present-shell .video-studio-step1-transcript-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: #686d7a;
  background: #f7f8fc;
  border: 1px solid rgba(20, 20, 30, 0.08);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.present-shell .video-studio-step1-transcript-state strong {
  color: #20222c;
}

.present-shell .video-studio-step1-transcript-state.is-error {
  color: #9f2f39;
  background: #fff1f2;
  border-color: rgba(159, 47, 57, 0.14);
}

.present-shell .video-studio-step1-transcript-state.is-error strong {
  color: #9f2f39;
}

.present-shell .video-studio-cohost-empty,
.present-shell .video-studio-cohost-editor {
  display: grid;
  gap: 12px;
}

.present-shell .video-studio-cohost-empty {
  padding: 4px 0;
}

.present-shell .video-studio-cohost-empty strong,
.present-shell .video-studio-cohost-editor-head strong {
  color: #20222c;
  font-size: 14px;
}

.present-shell .video-studio-cohost-empty > span,
.present-shell .video-studio-cohost-editor-head span {
  color: #686d7a;
  font-size: 12px;
  line-height: 1.45;
}

.present-shell .video-studio-cohost-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.present-shell .video-studio-cohost-editor-head > div {
  display: grid;
  gap: 3px;
}

.present-shell .video-studio-cohost-messages {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.present-shell .video-studio-cohost-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .video-studio-cohost-message:first-child {
  padding-top: 4px;
  border-top: 0;
}

.present-shell .video-studio-cohost-message-time {
  padding-top: 10px;
  color: #3157ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.present-shell .video-studio-cohost-message textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 11px;
  color: #20222c;
  background: #fff;
  border: 1px solid rgba(20, 20, 30, 0.16);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}

.present-shell .video-studio-cohost-message textarea:focus {
  border-color: rgba(49, 87, 255, 0.7);
  outline: 3px solid rgba(49, 87, 255, 0.12);
}

.present-shell .video-studio-cohost-feedback {
  min-height: 18px;
  color: #686d7a;
  font-size: 12px;
  line-height: 1.4;
}

.present-shell .video-studio-cohost-feedback.is-warning {
  color: #8b5600;
}

.present-shell .video-studio-cohost-feedback.is-working {
  color: #3157ff;
}

.present-shell .video-studio-cohost-feedback.is-success {
  color: #14704f;
}

.present-shell .video-studio-cohost-feedback.is-error {
  color: #9f2f39;
}

@media (max-width: 1200px) {
  .present-shell .video-studio-step1-layout {
    grid-template-columns: 1fr;
  }

  .present-shell .video-studio-step1-review {
    max-width: none;
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid rgba(20, 20, 30, 0.08);
    border-left: 0;
  }

  .present-shell .video-studio-step1-player {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .present-shell .video-studio-step1-transcript-viewport {
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .present-shell .video-studio-step1-editor-tabs {
    gap: 4px;
    overflow-x: auto;
  }

  .present-shell .video-studio-step1-player {
    border-radius: 18px;
  }

  .present-shell .video-studio-step1-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .present-shell .video-studio-step1-status [data-video-open-presentation] {
    margin-left: 0;
  }

  .present-shell .video-studio-step1-heading h3 {
    font-size: 22px;
  }

}

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

.present-shell .video-studio-metadata-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  background: #f7f8fc;
  border-radius: 14px;
}

.present-shell .video-studio-metadata-item.is-wide {
  grid-column: 1 / -1;
}

.present-shell .video-studio-metadata-item dt {
  color: #858a98;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.present-shell .video-studio-metadata-item dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #20222c;
  font-size: 14px;
  font-weight: 700;
}

.present-shell .video-studio-transcript-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(120deg, #f3f6ff, #fbfcff);
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 16px;
}

.present-shell .video-studio-transcript-summary {
  display: grid;
  gap: 4px;
  min-width: 190px;
  text-align: right;
}

.present-shell .video-studio-transcript-summary strong {
  color: #20222c;
}

.present-shell .video-studio-transcript-summary span {
  color: #686d7a;
  font-size: 12px;
  line-height: 1.4;
}

.present-shell .video-studio-inline-error {
  padding: 12px 14px;
  color: #9f2f39;
  background: #fff1f2;
  border: 1px solid rgba(159, 47, 57, 0.14);
  border-radius: 12px;
  font-size: 13px;
}

.present-shell .video-studio-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.present-shell .video-studio-placeholder-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 18px;
  background: #f8f9fc;
  border: 1px solid rgba(20, 20, 30, 0.08);
  border-radius: 16px;
}

.present-shell .video-studio-placeholder-card .video-studio-coming-soon {
  grid-column: 2;
}

.present-shell .video-studio-chat-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(135deg, #f4f6ff, #fbfcff);
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 18px;
}

.present-shell .video-studio-chat-card-head,
.present-shell .video-studio-chat-form-actions,
.present-shell .video-studio-chat-moments {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.present-shell .video-studio-chat-card-head h4 {
  margin: 0;
  color: #20222c;
  font-size: 19px;
}

.present-shell .video-studio-chat-card-head p {
  margin: 5px 0 0;
  color: #686d7a;
  font-size: 13px;
}

.present-shell .video-studio-ready-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 4px 9px;
  color: #1f7a55;
  background: #e7f7ee;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.present-shell .video-studio-ready-badge.is-unavailable {
  color: #956b19;
  background: #fff5d9;
}

.present-shell .video-studio-chat-form {
  display: grid;
  gap: 8px;
}

.present-shell .video-studio-chat-form label {
  color: #4d5362;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.present-shell .video-studio-chat-form textarea {
  width: 100%;
  min-height: 82px;
  padding: 12px 14px;
  color: #20222c;
  background: #fff;
  border: 1px solid rgba(20, 20, 30, 0.14);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
}

.present-shell .video-studio-chat-form textarea:focus-visible {
  outline: 3px solid rgba(49, 87, 255, 0.2);
  outline-offset: 2px;
  border-color: #3157ff;
}

.present-shell .video-studio-chat-form-actions {
  min-height: 38px;
}

.present-shell .video-studio-chat-form-actions [data-video-chat-status] {
  min-height: 20px;
  color: #686d7a;
  font-size: 12px;
}

.present-shell .video-studio-chat-form-actions [data-video-chat-status][data-state="working"] {
  color: #3157ff;
}

.present-shell .video-studio-chat-form-actions [data-video-chat-status][data-state="error"] {
  color: #a3343f;
}

.present-shell .video-studio-chat-result {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(20, 20, 30, 0.09);
  border-radius: 14px;
}

.present-shell .video-studio-chat-result[hidden] {
  display: none !important;
}

.present-shell .video-studio-chat-result .video-studio-kicker {
  margin-bottom: 0;
}

.present-shell .video-studio-chat-answer {
  margin: 0;
  color: #20222c;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.present-shell .video-studio-chat-moments {
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .video-studio-chat-moments-label {
  color: #686d7a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.present-shell .video-studio-chat-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.present-shell .video-studio-chat-source {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: #3157ff;
  background: #edf1ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.present-shell .video-studio-placeholder-icon,
.present-shell .video-studio-publish-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #3157ff;
  background: #e9edff;
  border-radius: 12px;
  font-size: 20px;
}

.present-shell .video-studio-viewer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.present-shell .video-studio-viewer-preview {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 240px;
  color: #fff;
  background: linear-gradient(135deg, #17234b, #3157ff);
  border-radius: 16px;
  text-align: center;
}

.present-shell .video-studio-viewer-preview small {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.present-shell .video-studio-viewer-play {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding-left: 3px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
}

.present-shell .video-studio-viewer-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  background: #f7f8fc;
  border-radius: 16px;
}

.present-shell .video-studio-viewer-copy p {
  margin-top: 0;
}

.present-shell .video-studio-publish-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8f9fc;
  border: 1px dashed rgba(20, 20, 30, 0.16);
  border-radius: 16px;
}

.present-shell .video-studio-publish-placeholder > div:nth-child(2) {
  flex: 1;
}

.present-shell .video-studio-publish-placeholder .button-primary {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .present-shell .video-studio-shell-head,
  .present-shell .video-studio-panel-head,
  .present-shell .video-studio-chat-card-head,
  .present-shell .video-studio-chat-form-actions,
  .present-shell .video-studio-transcript-card,
  .present-shell .video-studio-publish-placeholder {
    display: grid;
  }

  .present-shell .video-studio-transcript-summary {
    min-width: 0;
    text-align: left;
  }

  .present-shell .video-studio-metadata-grid,
  .present-shell .video-studio-placeholder-grid,
  .present-shell .video-studio-viewer-shell {
    grid-template-columns: 1fr;
  }

  .present-shell .video-studio-metadata-item.is-wide {
    grid-column: auto;
  }
}

.present-shell .publish-widget-countdown-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 10px;
  background: rgba(49, 87, 255, 0.05);
  color: #202638;
}

.present-shell .publish-widget-countdown-toggle input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--studio-v3-accent);
}

.present-shell .publish-widget-countdown-toggle > span {
  display: grid;
  gap: 3px;
}

.present-shell .publish-widget-countdown-toggle strong {
  font-size: 12px;
  line-height: 1.3;
}

.present-shell .publish-widget-countdown-toggle small {
  color: #687080;
  font-size: 11px;
  line-height: 1.4;
}

.present-shell .entry-widget-local-preview-timing {
  display: grid;
  gap: 3px;
  align-content: center;
}

.present-shell .entry-widget-local-preview-timing > span:first-child {
  color: #3157ff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.present-shell .entry-widget-local-preview-timing strong {
  color: #10243e;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.present-shell .entry-widget-local-preview-timing > span:last-child {
  color: #687080;
  font-size: 9px;
  line-height: 1.25;
}

/* AvaSeminar landing-inspired refresh */
:root {
  --bg: #f7f3eb;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-soft: #fffdf8;
  --line: rgba(16, 36, 62, 0.1);
  --line-strong: rgba(16, 36, 62, 0.18);
  --text: #10243e;
  --muted: #4f6178;
  --cyan: #2457f5;
  --cyan-strong: #1f49d1;
  --white: #fff;
  --shadow: 0 24px 60px rgba(38, 63, 102, 0.12);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 147, 92, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(36, 87, 245, 0.12), transparent 32%),
    linear-gradient(180deg, #fcf8f1 0%, #f7f3eb 46%, #fffdf8 100%);
  font-family: "Instrument Sans", system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font-family: "Instrument Sans", system-ui, sans-serif;
}

.present-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 74px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(16, 36, 62, 0.08);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.brand {
  width: clamp(220px, 22vw, 280px);
  gap: 12px;
  overflow: hidden;
}

.brand img {
  width: 176px;
  height: 46px;
  object-fit: cover;
  object-position: center;
}

.brand strong,
.section-copy h1,
.section-copy h2,
.workspace-summary-copy h2,
.studio-empty h2,
.viewer-head h1,
.viewer-qa-popup-head h2 {
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  letter-spacing: -0.04em;
}

.brand strong {
  color: var(--ink);
}

.brand small,
.topbar-actions a,
.hint,
.section-copy p,
.project-meta,
#workspace-meta,
#viewer-meta,
.navigator-empty {
  color: var(--ink-soft);
}

.topbar-actions a {
  font-weight: 600;
}

.present-layout {
  max-width: 1240px;
  padding-top: 22px;
  gap: 18px;
}

.card,
.create-panel,
.studio-empty,
.viewer-qa-popup-panel,
.viewer-stage,
.qa-card {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: none;
}

.studio-rail,
.navigator-card,
.workspace-head,
.active-scene-card,
.viewer-setup-card,
.project-settings-card {
  background: var(--panel);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), #5b87ff);
  box-shadow: 0 18px 34px rgba(36, 87, 245, 0.24);
}

.button-secondary,
.button-ghost,
.navigator-tab,
.workspace-tab,
.project-item,
.scene-button,
.panel-close,
.qa-suggestions button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.button-ghost {
  color: var(--cyan);
  border-color: rgba(36, 87, 245, 0.24);
}

.navigator-tab.active,
.workspace-tab.active,
.project-item.active,
.scene-button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), #7d8eff);
  border-color: transparent;
}

.button-primary,
.button-secondary {
  border-radius: 14px;
}

.field input,
.field select,
.field textarea,
.qa-form textarea {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(79, 97, 120, 0.68);
}

.studio-empty {
  background:
    linear-gradient(135deg, rgba(36, 87, 245, 0.06), transparent 36%),
    rgba(255, 255, 255, 0.8);
}

.studio-empty,
.create-panel {
  border-color: var(--line-strong);
}

.file-drop {
  border-color: rgba(36, 87, 245, 0.26);
  background: rgba(36, 87, 245, 0.04);
}

.viewer-setup-advanced {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.viewer-qa-popup-backdrop {
  background: rgba(247, 243, 235, 0.72);
}

.viewer-qa-popup-panel {
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(36, 87, 245, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.94);
  border-color: var(--line-strong);
  box-shadow: none;
}

.viewer-qa-popup-head p,
.viewer-qa-popup-status,
.viewer-setup-status,
.project-meta,
#workspace-meta,
#viewer-meta {
  color: var(--ink-soft);
}

.viewer-qa-popup-status {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), #7d8eff);
}

.viewer-qa-popup iframe {
  background: #fff;
}

.studio-main .eyebrow,
.studio-sidebar .eyebrow,
.viewer-setup-card .eyebrow,
.project-settings-card .eyebrow,
.active-scene-card .eyebrow {
  background: rgba(36, 87, 245, 0.08);
  color: var(--cyan);
  box-shadow: none;
  border-color: rgba(36, 87, 245, 0.08);
}

.workspace-summary-copy h2,
.studio-rail .section-copy h1,
.studio-empty h2,
.viewer-head h1,
.viewer-qa-popup-head h2 {
  color: var(--ink);
}

.navigator-tabs,
.workspace-tabs {
  gap: 8px;
}

.workspace-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-tab {
  min-height: 72px;
  padding: 12px 14px;
}

.navigator-tab {
  min-height: 42px;
  padding: 0 14px;
}

.studio-rail-actions .button-primary,
.studio-rail-actions .button-ghost {
  min-height: 44px;
  border-radius: 14px;
}

.workspace-actions .button-primary,
.workspace-actions .button-secondary,
.workspace-actions .button-ghost {
  min-height: 40px;
  border-radius: 14px;
  padding: 0 16px;
}

.workspace-summary-copy h2,
.studio-rail .section-copy h1 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.02;
}

.studio-empty h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
}

.section-copy.compact h2,
.viewer-head h1,
.active-scene-card .section-copy h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
}

.workspace-summary {
  gap: 14px;
}

.workspace-toolbar {
  gap: 8px;
}

.studio-sidebar {
  top: 86px;
}

.studio-sidebar,
.viewer-side {
  gap: 14px;
}

.create-panel {
  gap: 12px;
}

.compact-upload-form {
  gap: 12px;
}

.file-drop {
  gap: 6px;
  padding: 16px;
}

.file-drop strong {
  font-size: 0.98rem;
}

.file-drop small {
  color: var(--ink-soft);
}

.file-drop-name {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-word;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.studio-rail,
.navigator-card {
  padding: 14px 16px;
}

.workspace-head,
.active-scene-card,
.viewer-setup-card,
.project-settings-card,
.create-panel,
.studio-empty {
  border-radius: 18px;
}

.card,
.create-panel,
.studio-empty,
.viewer-qa-popup-panel,
.viewer-stage,
.qa-card {
  border-color: rgba(16, 36, 62, 0.08);
}

.studio-sidebar {
  top: 86px;
}

.present-layout,
.viewer-layout {
  padding-bottom: 34px;
}

/* Studio V3: slim navigation shell */
.present-shell {
  --studio-v3-bg: #fbfbf7;
  --studio-v3-sidebar: #f4f4ee;
  --studio-v3-surface: #ffffff;
  --studio-v3-text: #121212;
  --studio-v3-muted: #68645d;
  --studio-v3-line: rgba(18, 18, 18, 0.1);
  --studio-v3-line-strong: rgba(18, 18, 18, 0.16);
  --studio-v3-accent: #2f5cff;
  --studio-v3-accent-soft: rgba(47, 92, 255, 0.08);
}

.present-shell {
  color: var(--studio-v3-text);
  background:
    radial-gradient(circle at top left, rgba(255, 147, 92, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(36, 87, 245, 0.12), transparent 32%),
    linear-gradient(180deg, #fcf8f1 0%, #f7f3eb 46%, #fffdf8 100%);
}

.present-shell .present-topbar {
  min-height: 72px;
  padding: 14px 28px;
  background: rgba(247, 243, 235, 0.76);
  border-bottom: 1px solid var(--studio-v3-line);
  backdrop-filter: blur(12px);
}

.present-shell .brand {
  width: auto;
  gap: 12px;
}

.present-shell .brand img {
  width: 148px;
  height: 38px;
}

.present-shell .brand strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.present-shell .topbar-actions {
  gap: 18px;
}

.present-shell .topbar-actions a {
  color: var(--studio-v3-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.present-shell .topbar-actions a:hover {
  color: var(--studio-v3-text);
}

.present-shell .present-layout {
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.present-shell .studio-sidebar {
  position: sticky;
  top: 72px;
  gap: 22px;
  min-height: calc(100vh - 72px);
  padding: 24px 18px 28px;
  background: var(--studio-v3-sidebar);
  border-right: 1px solid var(--studio-v3-line);
}

.present-shell .studio-sidebar-section {
  gap: 10px;
}

.present-shell .studio-intro-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.present-shell .studio-sidebar-intro {
  order: 1;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .sidebar-label {
  margin: 0;
  color: var(--studio-v3-accent);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.present-shell .studio-sidebar h1 {
  margin: 0;
  font-size: 0.98rem !important;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.present-shell .studio-sidebar h2 {
  font-size: 0.98rem;
  font-weight: 700;
}

.present-shell .sidebar-copy,
.present-shell .hint,
.present-shell .navigator-empty,
.present-shell .project-meta,
.present-shell .scene-button-copy span,
.present-shell #workspace-meta,
.present-shell .create-panel-copy,
.present-shell .workspace-section-head p,
.present-shell .studio-empty p,
.present-shell .viewer-setup-status {
  color: var(--studio-v3-muted);
}

.present-shell .sidebar-copy,
.present-shell .create-panel-copy,
.present-shell .workspace-section-head p,
.present-shell .studio-empty p {
  line-height: 1.58;
}

.present-shell .sidebar-create-button {
  width: 100%;
  justify-self: stretch;
}

.present-shell .navigator-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.present-shell .workspace-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.present-shell .workspace-tab,
.present-shell .project-item,
.present-shell .scene-button,
.present-shell .navigator-tab {
  border-radius: 12px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.present-shell .workspace-tab {
  gap: 2px;
  min-height: 54px;
  padding: 10px 12px 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
}

.present-shell .workspace-tab strong {
  font-size: 0.95rem;
  line-height: 1.08;
}

.present-shell .workspace-tab-kicker {
  color: var(--studio-v3-muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.present-shell .workspace-tab.active {
  color: var(--studio-text);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--studio-v3-line);
  border-left-color: var(--studio-v3-accent);
}

.present-shell .workspace-tab.active .workspace-tab-kicker {
  color: var(--studio-v3-accent);
}

.present-shell .studio-sidebar-manage {
  order: 2;
  gap: 10px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .sidebar-manage-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--studio-v3-muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.present-shell .sidebar-manage-link:hover,
.present-shell .sidebar-manage-link.active {
  color: var(--studio-v3-text);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--studio-v3-line);
}

.present-shell .sidebar-manage-icon,
.present-shell .studio-sidebar-account-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  color: currentColor;
  background: rgba(18, 18, 18, 0.05);
  border-radius: 9px;
}

.present-shell .sidebar-manage-icon svg,
.present-shell .studio-sidebar-account-icon svg,
.present-shell .analytics-empty-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.present-shell .studio-sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 3;
  min-width: 0;
  margin-top: auto;
  padding: 14px 4px 0;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .studio-sidebar-account-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.present-shell .studio-sidebar-account-copy strong,
.present-shell .studio-sidebar-account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .studio-sidebar-account-copy strong {
  color: var(--studio-v3-text);
  font-size: 0.82rem;
}

.present-shell .studio-sidebar-account-copy small {
  color: var(--studio-v3-muted);
  font-size: 0.72rem;
}

.present-shell .studio-sidebar-account-chevron {
  margin-left: auto;
  color: var(--studio-v3-muted);
  font-size: 1.35rem;
  line-height: 1;
}

.present-shell .studio-account-menu-group {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.present-shell .studio-account-menu-group:first-of-type {
  margin-top: 0;
}

.present-shell .studio-account-menu-label {
  padding: 0 4px;
  color: var(--studio-v3-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.present-shell .studio-account-menu-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  color: var(--studio-v3-text);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
}

.present-shell .studio-account-menu-item:hover,
.present-shell .studio-account-menu-item:focus-visible {
  background: rgba(17, 24, 39, 0.05);
  border-color: var(--studio-v3-line);
  outline: none;
}

.present-shell .studio-account-menu-item strong {
  font-size: 0.84rem;
}

.present-shell .studio-account-menu-item small {
  color: var(--studio-v3-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.present-shell .account-page-card {
  min-height: 520px;
}

.present-shell .account-page-refresh-note {
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  margin: 24px 0 30px;
}

.present-shell .billing-summary-card {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  min-height: 104px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--studio-v3-line);
  border-radius: 16px;
}

.present-shell .billing-summary-card > span,
.present-shell .billing-summary-card > small,
.present-shell .billing-allowance-row span,
.present-shell .account-details-list span {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .billing-credits-card {
  position: relative;
}

.present-shell .billing-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.present-shell .billing-card-label > span {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.present-shell .billing-info-button,
.present-shell .analytics-info-button {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  color: var(--studio-v3-muted);
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.present-shell .billing-info-button {
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: help;
}

.present-shell .billing-info-button:hover {
  color: var(--studio-v3-text);
  background: rgba(17, 24, 39, 0.035);
  outline: none;
}

.present-shell .billing-info-button:focus-visible {
  color: var(--studio-v3-text);
  background: rgba(17, 24, 39, 0.035);
  outline: 2px solid rgba(100, 116, 139, 0.2);
  outline-offset: 2px;
}

.present-shell .analytics-info-button:hover,
.present-shell .analytics-info-button:focus-visible {
  color: var(--studio-v3-accent);
  outline: 2px solid rgba(36, 87, 245, 0.18);
  outline-offset: 2px;
}

.present-shell .billing-buy-credits {
  justify-self: start;
  margin-top: 7px;
  padding: 0;
  color: var(--studio-v3-accent);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.present-shell .billing-buy-credits:hover,
.present-shell .billing-buy-credits:focus-visible {
  text-decoration: underline;
  outline: none;
}

.present-shell .billing-info-tooltip,
.present-shell .analytics-pass-tooltip {
  position: fixed !important;
  z-index: 10000 !important;
  width: min(320px, calc(100vw - 24px));
  max-height: min(240px, calc(100vh - 24px));
  overflow: auto;
  padding: 11px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(25, 30, 42, 0.96);
  box-shadow: 0 12px 28px rgba(20, 24, 35, 0.2);
  font-size: 0.75rem;
  line-height: 1.45;
  white-space: normal;
}

.present-shell .billing-summary-card strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.25;
}

.present-shell .billing-plan-meta {
  display: block;
  line-height: 1.25;
  min-width: 0;
}

.present-shell .billing-plan-meta > #billing-plan {
  white-space: nowrap;
}

.present-shell .billing-summary-card .billing-plan-summary-status {
  display: inline;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  color: #23794f;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.present-shell .billing-summary-card .billing-plan-summary-status[data-status="renewal-canceled"],
.present-shell .billing-summary-card .billing-plan-summary-status[data-status="in-progress"] {
  color: #8a611d;
}

.present-shell .billing-plan-separator {
  display: inline;
  color: var(--studio-v3-muted);
  white-space: nowrap;
}

.present-shell .billing-plan-card #billing-plan-price {
  color: var(--studio-v3-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.present-shell .billing-summary-card > small {
  line-height: 1.3;
}

.present-shell .billing-plan-card > #billing-period,
.present-shell .billing-plan-card > #billing-next-billing {
  overflow-wrap: anywhere;
}

.present-shell .billing-summary-card .billing-credit-breakdown span {
  color: var(--studio-v3-muted);
  font-size: 0.74rem;
}

.present-shell .billing-summary-card .billing-credit-breakdown {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.present-shell .billing-summary-card .billing-credit-breakdown strong {
  color: var(--studio-v3-text);
  font-size: 0.74rem;
  line-height: 1.25;
  font-weight: 700;
}

.present-shell .billing-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 180px;
}

.present-shell .billing-manage-subscription {
  min-height: 40px;
  padding: 0 13px;
  border-color: var(--studio-v3-line);
  color: var(--studio-v3-text);
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.8rem;
  font-weight: 700;
}

.present-shell .billing-manage-subscription span {
  margin-left: 7px;
  color: var(--studio-v3-muted);
  font-size: 1rem;
}

.present-shell .billing-manage-subscription:hover,
.present-shell .billing-manage-subscription:focus-visible {
  border-color: rgba(36, 87, 245, 0.28);
  color: var(--studio-v3-text);
  background: rgba(255, 255, 255, 0.86);
}

.present-shell .billing-manage-subscription:focus-visible,
.present-shell .billing-subscription-cancel:focus-visible,
.present-shell .billing-subscription-confirmation-actions button:focus-visible {
  outline: 3px solid rgba(36, 87, 245, 0.22);
  outline-offset: 2px;
}

.present-shell .billing-subscription-modal-panel {
  width: min(520px, calc(100vw - 32px));
  padding: 26px;
}

.present-shell .billing-subscription-complimentary-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(76, 107, 156, 0.2);
  border-radius: 12px;
  background: rgba(76, 107, 156, 0.07);
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
}

.present-shell .voice-preview-popup-panel.billing-subscription-modal-panel.billing-subscription-plans-panel {
  width: min(550px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 22px;
}

.present-shell .billing-subscription-summary {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 14px;
  background: rgba(49, 87, 255, 0.04);
}

.present-shell .billing-subscription-plans {
  display: grid;
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--studio-v3-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.present-shell .billing-subscription-pending {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(36, 87, 245, 0.18);
  border-radius: 14px;
  background: rgba(36, 87, 245, 0.05);
}

.present-shell .billing-promo-entry {
  margin-top: 12px;
  color: var(--studio-v3-muted);
  font-size: 0.8rem;
}

.present-shell .billing-promo-entry[hidden] {
  display: none !important;
}

.present-shell .billing-promo-form {
  display: grid;
  gap: 7px;
}

.present-shell .billing-promo-plan-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
}

.present-shell .billing-promo-plan-label {
  color: var(--studio-v3-muted);
  font-size: 0.7rem;
}

.present-shell .billing-promo-select {
  min-height: 25px;
  padding: 0 22px 0 7px;
  border: 0;
  border-radius: 6px;
  color: var(--studio-v3-muted);
  background: rgba(49, 87, 255, 0.06);
  font: inherit;
  font-size: 0.7rem;
}

.present-shell .billing-promo-input {
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 8px;
  color: var(--studio-v3-text);
  background: #fff;
  font: inherit;
}

.present-shell .billing-promo-input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.present-shell .billing-promo-label {
  color: var(--studio-v3-text);
  font-size: 0.76rem;
  font-weight: 650;
}

.present-shell .billing-promo-input {
  min-width: 0;
  flex: 1;
}

.present-shell .billing-promo-apply {
  min-height: 35px;
  padding: 0 13px;
  font-size: 0.76rem;
}

.present-shell .billing-promo-status {
  margin: 0;
  color: #9b3d35;
  font-size: 0.75rem;
  line-height: 1.4;
}

.present-shell .billing-promo-quote {
  display: grid;
  gap: 7px;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 87, 245, 0.14);
  border-radius: 10px;
  background: rgba(36, 87, 245, 0.045);
  color: var(--studio-v3-text);
  font-size: 0.78rem;
  line-height: 1.45;
}

.present-shell .billing-promo-quote[hidden] {
  display: none;
}

.present-shell .billing-promo-quote-heading {
  color: var(--studio-v3-text);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.present-shell .billing-promo-quote-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
}

.present-shell .billing-promo-quote-rows .is-recurring {
  color: #2050d8;
  font-weight: 750;
}

.present-shell .billing-promo-recurring-note {
  color: var(--studio-v3-muted);
  font-size: 0.68rem;
}

.present-shell .billing-promo-form[hidden] {
  display: none;
}

.present-shell .billing-subscription-pending strong {
  color: var(--studio-v3-text);
  font-size: 0.92rem;
}

.present-shell .billing-subscription-pending p {
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.present-shell .billing-subscription-pending-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 3px;
}

.present-shell .billing-subscription-pending-actions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.present-shell .billing-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, auto) minmax(112px, auto);
  grid-template-areas:
    "plan price action"
    "secondary secondary secondary";
  align-items: center;
  gap: 8px 18px;
  min-width: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .billing-plan-row:last-child {
  border-bottom: 0;
}

.present-shell .billing-plan-row-name {
  grid-area: plan;
  min-width: 0;
  color: var(--studio-v3-text);
  font-size: 0.92rem;
}

.present-shell .billing-plan-row-price {
  grid-area: price;
  color: var(--studio-v3-text);
  font-size: 0.88rem;
  white-space: nowrap;
}

.present-shell .billing-plan-row-action {
  display: flex;
  grid-area: action;
  justify-content: flex-end;
  min-width: 0;
}

.present-shell .billing-plan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.present-shell .billing-plan-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 92px;
  padding: 0 10px;
  color: var(--studio-v3-text);
  border: 1px solid rgba(36, 87, 245, 0.2);
  border-radius: 9px;
  background: rgba(36, 87, 245, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.present-shell .billing-plan-status.is-unavailable {
  color: var(--studio-v3-muted);
  border-color: transparent;
  background: transparent;
  font-weight: 700;
}

.present-shell .billing-plan-row-secondary {
  grid-area: secondary;
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.present-shell .billing-plan-row-secondary.is-renewal-canceled {
  color: #b42318;
  font-weight: 600;
}

.present-shell .billing-subscription-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.present-shell .billing-subscription-modal-actions .billing-subscription-cancel {
  margin-top: 0;
}

@media (max-width: 640px) {
  .present-shell .voice-preview-popup-panel.billing-subscription-modal-panel.billing-subscription-plans-panel {
    width: min(100%, calc(100vw - 20px));
    padding: 18px;
    border-radius: 20px;
  }

  .present-shell .billing-plan-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "plan action"
      "price action"
      "secondary secondary";
    gap: 5px 12px;
    padding: 13px 14px;
  }

  .present-shell .billing-plan-row-action {
    align-self: center;
  }

  .present-shell .billing-plan-row-price {
    font-size: 0.82rem;
  }
}

.present-shell .billing-subscription-summary strong {
  color: var(--studio-v3-text);
  font-size: 1.08rem;
}

.present-shell .billing-subscription-summary span,
.present-shell .billing-subscription-summary small,
.present-shell .billing-subscription-confirmation-period {
  color: var(--studio-v3-muted);
  font-size: 0.88rem;
}

.present-shell .billing-subscription-summary small {
  line-height: 1.4;
}

.present-shell .billing-subscription-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 14px;
  background: rgba(49, 87, 255, 0.04);
}

.present-shell .billing-subscription-switch > div {
  display: grid;
  gap: 3px;
}

.present-shell .billing-subscription-switch-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.present-shell .billing-subscription-switch-choice {
  min-height: 36px;
  padding: 0 11px;
  font-size: 0.84rem;
}

.present-shell .billing-subscription-switch strong {
  color: var(--studio-v3-text);
}

.present-shell .billing-subscription-switch small {
  color: var(--studio-v3-muted);
}

.present-shell .billing-subscription-error {
  margin: 14px 0 0;
  color: #8f2d24;
  font-size: 0.84rem;
  line-height: 1.45;
}

.present-shell .billing-subscription-cancel {
  min-height: 40px;
  margin-top: 22px;
  padding: 0 14px;
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.04);
}

.present-shell .billing-subscription-cancel:hover,
.present-shell .billing-subscription-cancel:focus-visible {
  color: #8f2d24;
  border-color: rgba(180, 35, 24, 0.36);
  background: rgba(180, 35, 24, 0.09);
}

.present-shell .billing-subscription-confirmation-period,
.present-shell .billing-subscription-warning {
  margin: 0;
  line-height: 1.55;
}

.present-shell .billing-subscription-confirmation-period {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 14px;
  background: rgba(49, 87, 255, 0.04);
}

.present-shell .billing-subscription-warning {
  margin-top: 14px;
  color: #8f2d24;
  font-size: 0.88rem;
}

.present-shell .billing-subscription-confirmation-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .present-shell .billing-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .present-shell .billing-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.present-shell .account-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.present-shell .account-section-heading h3 {
  margin: 0;
  font-size: 1.1rem;
}

.present-shell .account-section-heading .sidebar-label {
  margin-bottom: 5px;
}

.present-shell .account-section-heading > small {
  color: var(--studio-v3-muted);
}

.present-shell .billing-allowance-section {
  margin-bottom: 30px;
}

.present-shell .billing-allowance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--studio-v3-line);
  border-radius: 14px;
}

.present-shell .billing-history-status {
  min-height: 20px;
  margin-bottom: 8px;
  color: var(--studio-v3-muted);
  font-size: 0.8rem;
}

.present-shell .billing-history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--studio-v3-line);
  border-radius: 14px;
}

.present-shell .billing-history-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.present-shell .billing-history-table th,
.present-shell .billing-history-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .billing-history-table tr:last-child td {
  border-bottom: 0;
}

.present-shell .billing-history-table th {
  color: var(--studio-v3-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.present-shell .billing-history-table td strong,
.present-shell .billing-history-table td small {
  display: block;
}

.present-shell .billing-history-table td small {
  margin-top: 3px;
  color: var(--studio-v3-muted);
}

.present-shell .billing-history-table .billing-history-inline-label {
  display: inline;
}

.present-shell .billing-history-table .billing-history-inline-name {
  display: inline-block;
  max-width: min(22rem, 55vw);
  overflow: hidden;
  color: var(--studio-v3-muted);
  font-weight: 400;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.present-shell .billing-history-table td:first-child {
  width: 180px;
  color: var(--studio-v3-muted);
  white-space: nowrap;
}

.present-shell .billing-history-table .billing-history-credits {
  width: 120px;
  text-align: right;
}

.present-shell .billing-history-table .billing-history-credits strong {
  white-space: nowrap;
}

.present-shell .billing-history-table .is-positive {
  color: #16804b;
  font-weight: 700;
}

.present-shell .billing-history-table .is-negative {
  color: #ad4d42;
  font-weight: 700;
}

.present-shell .billing-history-empty {
  padding: 28px 16px;
  color: var(--studio-v3-muted);
  text-align: center;
}

.present-shell .account-details-list {
  display: grid;
  max-width: 680px;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .account-details-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .account-details-list strong {
  overflow-wrap: anywhere;
}

.present-shell .account-profile-form {
  display: grid;
  max-width: 800px;
}

.present-shell .account-profile-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  min-height: 82px;
  padding: 18px 0;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .account-profile-row:first-child {
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .account-profile-row-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.present-shell .account-profile-label {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .account-profile-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.present-shell .account-profile-name-editor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.present-shell .account-profile-name-editor input {
  width: min(360px, 100%);
  min-width: 220px;
  min-height: 36px;
}

.present-shell .account-profile-name-editor .account-profile-actions {
  flex: 0 0 auto;
}

.present-shell .account-profile-email {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: end;
}

.present-shell .account-profile-row-action {
  justify-self: end;
  white-space: nowrap;
}

.present-shell .account-profile-verification {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #1d7a4c;
  background: rgba(29, 122, 76, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
}

.present-shell .account-profile-actions {
  display: flex;
  gap: 8px;
}

.present-shell .account-profile-status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 4px 0 -4px;
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .account-profile-password-mask {
  color: var(--studio-v3-text);
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.present-shell .account-profile-helper {
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
}

.present-shell .profile-password-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
}

.present-shell .profile-password-modal[hidden] {
  display: none !important;
}

.present-shell .profile-password-modal .voice-preview-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 27, 39, 0.38);
  backdrop-filter: blur(5px);
}

.present-shell .profile-password-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(600px, calc(100vw - 32px));
  padding: 30px;
  color: var(--studio-v3-text);
  background: var(--studio-v3-surface);
  border: 1px solid var(--studio-v3-line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.18);
}

.present-shell .profile-password-modal-panel .voice-preview-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.present-shell .profile-password-modal-panel h2 {
  margin: 0 0 6px;
}

.present-shell .profile-password-modal-form {
  display: grid;
  gap: 6px;
}

.present-shell .profile-password-modal-form label {
  display: grid;
  gap: 6px;
}

.present-shell .profile-password-modal-form label > span {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .profile-password-modal-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
}

.present-shell .profile-password-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .present-shell .billing-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .present-shell .billing-summary-card {
    padding: 10px 12px;
  }

  .present-shell .account-profile-row {
    column-gap: 12px;
  }

  .present-shell .account-profile-email {
    justify-self: start;
  }

  .present-shell .account-profile-name-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .present-shell .account-profile-name-editor input {
    width: 100%;
    min-width: 0;
  }

  .present-shell .profile-password-modal-panel {
    padding: 20px;
  }
}

.present-shell .analytics-card {
  min-height: 440px;
}

.present-shell .analytics-head {
  margin-bottom: 18px;
}

.present-shell .analytics-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.present-shell .analytics-export-open {
  min-height: 38px;
  padding-inline: 14px;
}

.present-shell .analytics-heading-copy {
  min-width: 0;
}

.present-shell .analytics-heading-copy > .analytics-eyebrow {
  color: var(--studio-accent);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: none;
}

.present-shell .analytics-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.present-shell .analytics-title-row h2 {
  flex: 0 0 auto;
}

.present-shell #analytics-presentation-title {
  min-width: 0;
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.9rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.present-shell .analytics-empty-state {
  display: grid;
  justify-items: center;
  max-width: 520px;
  margin: 56px auto 0;
  padding: 44px 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--studio-v3-line);
  border-radius: 20px;
}

.present-shell .analytics-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--studio-v3-accent);
  background: rgba(49, 87, 255, 0.1);
  border-radius: 14px;
}

.present-shell .analytics-empty-state h3 {
  margin: 0;
  color: var(--studio-v3-text);
  font-size: 1.15rem;
}

.present-shell .analytics-empty-state p {
  max-width: 390px;
  margin: 10px 0 0;
  color: var(--studio-v3-muted);
  line-height: 1.55;
}

.present-shell .analytics-state {
  justify-items: center;
  max-width: 520px;
  margin: 56px auto 0;
  padding: 44px 28px;
  text-align: center;
}

.present-shell .analytics-error-state {
  background: rgba(255, 248, 247, 0.72);
  border: 1px solid rgba(201, 74, 74, 0.2);
  border-radius: 20px;
}

.present-shell .analytics-error-state h3 {
  margin: 0;
  color: var(--studio-v3-text);
  font-size: 1.15rem;
}

.present-shell .analytics-error-state p,
.present-shell .analytics-loading-state p {
  margin: 10px 0 0;
  color: var(--studio-v3-muted);
  line-height: 1.55;
}

.present-shell .analytics-loading-state {
  display: grid;
  min-height: 180px;
  align-content: center;
}

.present-shell .analytics-state-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(49, 87, 255, 0.16);
  border-top-color: var(--studio-v3-accent);
  border-radius: 50%;
  animation: analytics-spin 0.8s linear infinite;
}

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

.present-shell .analytics-content {
  min-width: 0;
}

.present-shell .analytics-report {
  display: grid;
  gap: 34px;
}

.present-shell .analytics-section {
  display: grid;
  gap: 16px;
}

.present-shell .analytics-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.present-shell .analytics-section-heading h3 {
  margin: 5px 0 0;
  color: var(--studio-v3-text);
  font-size: 1.12rem;
}

.present-shell .analytics-caption {
  max-width: 390px;
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
}

.present-shell .analytics-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}


.present-shell .analytics-metric-card {
  display: grid;
  gap: 11px;
  min-height: 108px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--studio-v3-line);
  border-radius: 16px;
}

.present-shell .analytics-metric-card span,
.present-shell .analytics-metric-card small {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .analytics-metric-card strong {
  color: var(--studio-v3-text);
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.present-shell .analytics-metric-card small {
  margin-top: -7px;
}

.present-shell .analytics-registration-card {
  display: grid;
  gap: 10px;
  max-width: 300px;
  min-height: 108px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--studio-v3-line);
  border-radius: 16px;
}

.present-shell .analytics-registration-card span,
.present-shell .analytics-registration-card small {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .analytics-registration-card strong {
  color: var(--studio-v3-text);
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.present-shell .analytics-questionnaire-metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.present-shell .analytics-questionnaire-note {
  margin: -2px 0 0;
  color: var(--studio-v3-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.present-shell .analytics-questionnaire-questions {
  display: grid;
  gap: 12px;
}

.present-shell .analytics-questionnaire-empty,
.present-shell .analytics-question-card {
  padding: 16px 18px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.present-shell .analytics-questionnaire-empty {
  color: var(--studio-v3-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.present-shell .analytics-questionnaire-empty p {
  margin: 0;
}

.present-shell .analytics-question-card {
  display: grid;
  gap: 14px;
}

.present-shell .analytics-question-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.present-shell .analytics-question-card-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.present-shell .analytics-question-card-title span {
  color: var(--studio-v3-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.present-shell .analytics-question-card-title strong {
  color: var(--studio-v3-text);
  font-size: 0.94rem;
  line-height: 1.4;
}

.present-shell .analytics-question-card-type {
  flex: 0 0 auto;
  color: var(--studio-v3-muted);
  font-size: 0.75rem;
}

.present-shell .analytics-question-option-list,
.present-shell .analytics-question-rating-list {
  display: grid;
  gap: 9px;
}

.present-shell .analytics-question-option-row,
.present-shell .analytics-question-rating-row {
  display: grid;
  gap: 5px;
}

.present-shell .analytics-question-option-meta,
.present-shell .analytics-question-rating-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .analytics-question-option-meta strong,
.present-shell .analytics-question-rating-meta strong {
  color: var(--studio-v3-text);
  font-weight: 700;
}

.present-shell .analytics-question-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(72, 101, 255, 0.1);
}

.present-shell .analytics-question-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #8b98ff);
}

.present-shell .analytics-question-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--studio-v3-muted);
  font-size: 0.8rem;
}

.present-shell .analytics-question-summary strong {
  color: var(--studio-v3-text);
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.present-shell .analytics-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--studio-v3-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.present-shell .analytics-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
}

.present-shell .analytics-table th,
.present-shell .analytics-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--studio-v3-line);
  color: var(--studio-v3-muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.present-shell .analytics-table thead th {
  color: var(--studio-v3-text);
  background: rgba(247, 248, 252, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.present-shell .analytics-table tbody th {
  max-width: 280px;
  overflow: hidden;
  color: var(--studio-v3-text);
  font-weight: 650;
  text-overflow: ellipsis;
}

.present-shell .analytics-table tbody tr:last-child th,
.present-shell .analytics-table tbody tr:last-child td {
  border-bottom: 0;
}

.present-shell .analytics-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.7);
}

.present-shell .analytics-report {
  gap: 0;
}

.present-shell .analytics-tabs {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-tab {
  position: relative;
  min-height: 42px;
  padding: 0 0 12px;
  color: var(--studio-v3-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
}

.present-shell .analytics-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: transparent;
}

.present-shell .analytics-tab:hover,
.present-shell .analytics-tab.active {
  color: var(--studio-v3-text);
}

.present-shell .analytics-tab.active::after {
  background: var(--studio-v3-accent);
}

.present-shell .analytics-gated-preview {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--studio-v3-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 12%, rgba(92, 114, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.5);
}

.present-shell .analytics-gated-preview-shell {
  display: grid;
  gap: 22px;
  min-height: 360px;
  padding: 32px;
  opacity: 0.62;
  filter: blur(2px);
}

.present-shell .analytics-gated-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.present-shell .analytics-gated-preview-metrics span,
.present-shell .analytics-gated-preview-table span {
  display: block;
  height: 68px;
  border: 1px solid rgba(83, 103, 224, 0.16);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(83, 103, 224, 0.16),
    rgba(255, 255, 255, 0.74)
  );
}

.present-shell .analytics-gated-preview-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 118px;
  padding: 18px;
  border: 1px solid rgba(83, 103, 224, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.present-shell .analytics-gated-preview-chart span {
  flex: 1 1 0;
  min-height: 26px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(
    180deg,
    rgba(83, 103, 224, 0.48),
    rgba(83, 103, 224, 0.12)
  );
}

.present-shell .analytics-gated-preview-chart span:nth-child(2) {
  height: 54%;
}

.present-shell .analytics-gated-preview-chart span:nth-child(3) {
  height: 76%;
}

.present-shell .analytics-gated-preview-chart span:nth-child(4) {
  height: 44%;
}

.present-shell .analytics-gated-preview-chart span:nth-child(5) {
  height: 68%;
}

.present-shell .analytics-gated-preview-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.present-shell .analytics-gated-preview-table span {
  height: 54px;
}

.present-shell .analytics-gated-preview .analytics-restricted-state {
  display: grid;
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  width: min(460px, calc(100% - 32px));
  margin: 0;
  padding: 26px 24px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(83, 103, 224, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(31, 43, 92, 0.14);
  backdrop-filter: blur(12px);
}

.present-shell .analytics-gated-preview .analytics-restricted-state h3 {
  margin: 0;
  color: var(--studio-v3-text);
  font-size: 1.1rem;
}

.present-shell .analytics-restricted-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.present-shell .analytics-restricted-heading > div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.present-shell .analytics-pass-badge {
  padding: 4px 8px;
  color: #3456c7;
  border: 1px solid rgba(83, 103, 224, 0.2);
  border-radius: 999px;
  background: rgba(83, 103, 224, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
}

.present-shell .analytics-gated-preview .analytics-restricted-state p {
  max-width: 38ch;
  margin: 9px auto 18px;
  color: var(--studio-v3-muted);
  line-height: 1.5;
}

.present-shell .analytics-restricted-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.present-shell .analytics-unlock-button,
.present-shell .analytics-buy-credits-button {
  min-height: 40px;
  padding: 0 16px;
}

.present-shell .analytics-unlock-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.present-shell .analytics-unlock-note {
  display: block;
  margin-top: 12px;
  color: var(--studio-v3-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.present-shell .voice-preview-popup-panel.billing-credit-pack-modal-panel {
  width: min(550px, calc(100vw - 32px));
  max-height: min(82vh, 640px);
  overflow: auto;
  padding: 16px 18px;
  border-radius: 22px;
}

.present-shell .billing-credit-pack-modal-panel .voice-preview-popup-head {
  margin-bottom: 10px;
}

.present-shell .billing-credit-pack-modal-panel .voice-preview-popup-head h2 {
  margin: 1px 0 4px;
  font-size: 28px;
}

.present-shell .billing-credit-pack-description {
  margin: 0 0 9px;
  color: var(--studio-v3-muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.present-shell .billing-credit-pack-market {
  display: grid;
  gap: 4px;
}

.present-shell .billing-credit-pack-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 86px;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 9px 10px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.present-shell .billing-credit-pack-option-name {
  min-width: 0;
}

.present-shell .billing-credit-pack-option-name,
.present-shell .billing-credit-pack-option-price {
  color: var(--studio-v3-text);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.present-shell .billing-credit-pack-option-price {
  text-align: right;
}

.present-shell .billing-credit-pack-buy {
  width: 86px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.present-shell .billing-credit-pack-buy:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.present-shell .billing-credit-pack-buy[data-processing="true"] {
  position: relative;
}

.present-shell .billing-credit-pack-buy[data-processing="true"]::before {
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  display: inline-block;
  vertical-align: -2px;
  animation: billing-credit-pack-spin 700ms linear infinite;
}

@keyframes billing-credit-pack-spin {
  to {
    transform: rotate(360deg);
  }
}

.present-shell .billing-credit-pack-coming-soon p,
.present-shell .billing-credit-pack-expiry,
.present-shell .billing-credit-pack-clarity p {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.present-shell .billing-credit-pack-coming-soon {
  padding: 12px 14px;
  border: 1px dashed rgba(83, 103, 224, 0.3);
  border-radius: 12px;
  background: rgba(83, 103, 224, 0.05);
}

.present-shell .billing-credit-pack-coming-soon strong {
  color: var(--studio-v3-text);
  font-size: 0.9rem;
}

.present-shell .billing-credit-pack-coming-soon p {
  margin: 6px 0 0;
}

.present-shell .billing-credit-pack-status {
  display: none !important;
}

.present-shell .billing-credit-pack-expiry {
  margin: 7px 0 0;
}

.present-shell .billing-credit-pack-clarity {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.present-shell .billing-credit-pack-clarity-icon {
  flex: 0 0 auto;
  color: var(--studio-v3-accent);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .present-shell .voice-preview-popup-panel.billing-credit-pack-modal-panel {
    width: min(100%, calc(100vw - 20px));
    max-height: 90vh;
    padding: 18px;
    border-radius: 20px;
  }

  .present-shell .billing-credit-pack-option {
    gap: 12px;
    padding: 9px 10px;
  }
}

@media (max-width: 480px) {
  .present-shell .billing-credit-pack-option {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
  }

  .present-shell .billing-credit-pack-option-name {
    flex: 1 1 100%;
  }

  .present-shell .billing-credit-pack-option-price {
    margin-left: auto;
  }
}

.present-shell .analytics-tab-panel {
  display: grid;
  gap: 28px;
}

.present-shell .analytics-tab-panel[data-analytics-panel="overview"] {
  gap: 18px;
}

.present-shell
  .analytics-tab-panel[data-analytics-panel="overview"]
  .analytics-panel-heading h3 {
  margin-top: 3px;
}

.present-shell .analytics-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.present-shell .analytics-panel-heading h3,
.present-shell .analytics-subsection h4 {
  margin: 5px 0 0;
  color: var(--studio-v3-text);
  font-size: 1.12rem;
}

.present-shell .analytics-subsection h4 {
  font-size: 0.98rem;
}

.present-shell .analytics-kpi-strip,
.present-shell .analytics-compact-metric-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--studio-v3-line);
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-kpi-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.present-shell .analytics-kpi-reaction-column {
  gap: 6px;
  min-width: 0;
}

.present-shell .analytics-kpi-reaction-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.present-shell .analytics-kpi-reaction-figure span {
  min-width: 0;
  overflow: hidden;
  color: var(--studio-v3-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-kpi-reaction-figure strong {
  color: var(--studio-v3-text);
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.present-shell .analytics-kpi-reaction-status {
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.66rem;
  line-height: 1.2;
}

.present-shell .analytics-compact-metric-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.present-shell .analytics-kpi-item,
.present-shell .analytics-compact-metric-row > div {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 86px;
  padding: 14px 18px;
  border-right: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-kpi-item:last-child,
.present-shell .analytics-compact-metric-row > div:last-child {
  border-right: 0;
}

.present-shell .analytics-kpi-item span,
.present-shell .analytics-compact-metric-row span,
.present-shell .analytics-compact-metric-row small {
  color: var(--studio-v3-muted);
  font-size: 0.75rem;
}

.present-shell .analytics-kpi-item strong,
.present-shell .analytics-compact-metric-row strong {
  color: var(--studio-v3-text);
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.present-shell
  .analytics-tab-panel[data-analytics-panel="overview"]
  .analytics-kpi-item {
  min-height: 82px;
  padding: 12px 18px;
}

.present-shell .analytics-activity-section {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.present-shell .analytics-activity-section .analytics-section-heading {
  align-items: end;
}

.present-shell .analytics-activity-section h4 {
  margin: 3px 0 0;
  color: var(--studio-v3-text);
  font-size: 0.98rem;
}

.present-shell .analytics-activity-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.present-shell .analytics-activity-summary {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .analytics-range-selector {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.present-shell .analytics-range-button {
  min-height: 28px;
  padding: 0 10px;
  color: var(--studio-v3-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
}

.present-shell .analytics-range-button.active,
.present-shell .analytics-range-button:hover {
  color: var(--studio-v3-text);
  background: rgba(49, 87, 255, 0.1);
}

.present-shell .analytics-activity-chart {
  min-height: 138px;
  padding: 8px 0 0;
}

.present-shell .analytics-activity-bars {
  display: grid;
  gap: 6px;
  align-items: end;
  height: 138px;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-activity-bar-item {
  display: grid;
  grid-template-rows: 1fr 24px;
  min-width: 0;
  height: 100%;
  align-items: end;
}

.present-shell .analytics-activity-bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 100%;
}

.present-shell .analytics-activity-bar {
  display: block;
  width: min(18px, 72%);
  border-radius: 4px 4px 0 0;
  background: var(--studio-v3-accent);
  outline: none;
}

.present-shell .analytics-activity-bar.is-active {
  min-height: 2px;
}

.present-shell .analytics-activity-bar:focus-visible {
  box-shadow: 0 0 0 3px rgba(49, 87, 255, 0.2);
}

.present-shell .analytics-activity-bar-item small {
  overflow: hidden;
  color: var(--studio-v3-muted);
  font-size: 0.68rem;
  line-height: 24px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-activity-empty {
  padding: 18px 0 2px;
  color: var(--studio-v3-muted);
  font-size: 0.82rem;
}

.present-shell .analytics-compact-metric-row small {
  margin-top: -4px;
}

.present-shell .analytics-insights-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-insights-heading {
  margin-top: 0;
}

.present-shell .analytics-insights-heading h4 {
  margin: 3px 0 0;
  color: var(--studio-v3-text);
  font-size: 0.98rem;
}

.present-shell .analytics-insight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 64px;
  padding: 10px 0;
  color: var(--studio-v3-text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--studio-v3-line);
  cursor: pointer;
  font: inherit;
}

.present-shell .analytics-insight-row:hover strong,
.present-shell .analytics-insight-row:hover b {
  color: var(--studio-v3-accent);
}

.present-shell .analytics-insight-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.present-shell .analytics-insight-copy strong {
  font-size: 0.92rem;
}

.present-shell .analytics-insight-copy small {
  color: var(--studio-v3-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.present-shell .analytics-insight-row b {
  flex: 0 0 auto;
  color: var(--studio-v3-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.present-shell .analytics-insights-empty {
  padding: 18px 0 2px;
  color: var(--studio-v3-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.present-shell .analytics-subsection {
  display: grid;
  gap: 14px;
}


.present-shell .analytics-leads-section {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-lead-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.present-shell .analytics-registration-table-wrap {
  border-radius: 12px;
}

.present-shell .analytics-registration-table {
  min-width: 760px;
}

.present-shell .analytics-registration-table td {
  color: var(--studio-v3-text);
  font-size: 0.8rem;
}

.present-shell .analytics-table-empty {
  padding: 24px 16px !important;
  color: var(--studio-v3-muted) !important;
  text-align: center;
}

.present-shell .analytics-disclosure {
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.present-shell .analytics-questionnaire-metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.present-shell .analytics-questionnaire-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 0.65fr);
  gap: 20px;
  min-width: 0;
}

.present-shell .analytics-question-list {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-question-list-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 12px 10px;
  color: var(--studio-v3-text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--studio-v3-line);
  cursor: pointer;
  font: inherit;
}

.present-shell .analytics-question-list-item > span:first-child {
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.present-shell .analytics-question-list-item:hover,
.present-shell .analytics-question-list-item.active {
  background: rgba(255, 255, 255, 0.66);
}

.present-shell .analytics-question-list-item.active {
  box-shadow: inset 2px 0 0 var(--studio-v3-accent);
}

.present-shell .analytics-question-list-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.present-shell .analytics-question-list-copy strong {
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-question-list-copy small {
  color: var(--studio-v3-muted);
  font-size: 0.72rem;
}

.present-shell .analytics-question-detail {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  min-height: 260px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--studio-v3-line);
  border-radius: 14px;
}

.present-shell .analytics-question-detail-head {
  display: grid;
  gap: 5px;
}

.present-shell .analytics-question-detail-head > span {
  color: var(--studio-v3-accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.present-shell .analytics-question-detail-head h4 {
  margin: 0;
  color: var(--studio-v3-text);
  font-size: 1.02rem;
  line-height: 1.4;
}

.present-shell .analytics-question-detail-head small {
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
}

.present-shell .analytics-question-rating-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.present-shell .analytics-question-rating-summary strong {
  color: var(--studio-v3-text);
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.present-shell .analytics-question-rating-summary span {
  color: var(--studio-v3-muted);
  font-size: 0.8rem;
}

.present-shell .analytics-secondary-tabs {
  display: flex;
  gap: 16px;
}

.present-shell .analytics-secondary-tab {
  min-height: 32px;
  padding: 0 0 7px;
  color: var(--studio-v3-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.present-shell .analytics-secondary-tab.active {
  color: var(--studio-v3-text);
  border-bottom-color: var(--studio-v3-accent);
}

.present-shell .analytics-empty-inline {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  color: var(--studio-v3-muted);
}

.present-shell .analytics-empty-inline strong {
  color: var(--studio-v3-text);
  font-size: 0.92rem;
}

.present-shell .analytics-empty-inline span {
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Video Content Analytics Phase 1: intentionally isolated from Deck analytics. */
.present-shell .video-content-analytics-shell {
  display: grid;
  gap: 24px;
}

.present-shell .video-content-analytics-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.present-shell .video-content-analytics-metric {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.present-shell .video-content-analytics-metric span,
.present-shell .video-content-analytics-label {
  color: var(--studio-v3-muted);
  font-size: 0.74rem;
}

.present-shell .video-content-analytics-metric strong {
  color: var(--studio-v3-text);
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.present-shell .video-content-analytics-section {
  display: grid;
  gap: 12px;
}

.present-shell .video-content-analytics-distribution {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--studio-v3-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.present-shell .video-content-analytics-distribution-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--studio-v3-line);
  color: var(--studio-v3-text);
  font-size: 0.82rem;
}

.present-shell .video-content-analytics-distribution-item:last-child {
  border-bottom: 0;
}

.present-shell .video-content-analytics-distribution-item strong {
  color: var(--studio-v3-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.present-shell .video-content-analytics-coverage {
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.present-shell .video-content-analytics-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.present-shell .video-content-analytics-section-heading h4 {
  margin: 5px 0 0;
  color: var(--studio-v3-text);
  font-size: 0.98rem;
}

.present-shell .video-content-analytics-label,
.present-shell .video-content-analytics-caption {
  margin: 0;
}

.present-shell .video-content-analytics-caption,
.present-shell .video-content-analytics-status {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.present-shell .video-content-analytics-list-head,
.present-shell .video-content-analytics-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto) minmax(160px, auto);
  align-items: center;
  gap: 16px;
}

.present-shell .video-content-analytics-list-head {
  padding: 0 16px;
  color: var(--studio-v3-muted);
  font-size: 0.7rem;
}

.present-shell .video-content-analytics-list-head span:not(:first-child),
.present-shell .video-content-analytics-item-playback,
.present-shell .video-content-analytics-item-recorded {
  text-align: right;
}

.present-shell .video-content-analytics-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--studio-v3-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.present-shell .video-content-analytics-item {
  min-height: 52px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--studio-v3-line);
  color: var(--studio-v3-text);
  font-size: 0.82rem;
}

.present-shell .video-content-analytics-item:last-child {
  border-bottom: 0;
}

.present-shell .video-content-analytics-item-reaction {
  font-weight: 600;
}

.present-shell .video-content-analytics-item-playback,
.present-shell .video-content-analytics-item-recorded {
  color: var(--studio-v3-muted);
  font-variant-numeric: tabular-nums;
}

.present-shell .video-content-analytics-status {
  margin: 0;
}

.present-shell .analytics-live-qa-metric-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.present-shell .analytics-tab-panel[data-analytics-panel="qa"] {
  gap: 14px;
}

.present-shell .analytics-tab-panel[data-analytics-panel="qa"] .analytics-subsection {
  gap: 9px;
}

.present-shell .analytics-tab-panel[data-analytics-panel="qa"] .analytics-section-heading h4 {
  margin-top: 2px;
  font-size: 0.92rem;
}

.present-shell .analytics-tab-panel[data-analytics-panel="qa"] .analytics-compact-metric-row > div {
  min-height: 62px;
  padding: 8px 14px;
  gap: 3px;
}

.present-shell .analytics-tab-panel[data-analytics-panel="qa"] .analytics-compact-metric-row span {
  font-size: 0.68rem;
}

.present-shell .analytics-tab-panel[data-analytics-panel="qa"] .analytics-compact-metric-row strong {
  font-size: 1.08rem;
}

.present-shell .analytics-live-qa-activity {
  display: grid;
  gap: 10px;
}

.present-shell .analytics-live-qa-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-live-qa-conversation {
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-live-qa-conversation .analytics-chat-qa-conversation-summary {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(82px, 96px)
    minmax(132px, 168px)
    minmax(72px, 88px)
    minmax(112px, 136px)
    minmax(148px, 180px);
  align-items: center;
  gap: 4px 12px;
  padding: 7px 0;
}

.present-shell .analytics-live-qa-conversation .analytics-chat-qa-conversation-meta {
  display: contents;
}

.present-shell .analytics-live-qa-conversation .analytics-chat-qa-identity {
  grid-column: 1;
  min-width: 0;
}

.present-shell .analytics-live-qa-conversation .analytics-chat-qa-conversation-meta > strong {
  grid-column: 2;
}

.present-shell .analytics-live-qa-conversation .analytics-chat-qa-conversation-meta > span:nth-of-type(1) {
  grid-column: 3;
}

.present-shell .analytics-live-qa-conversation .analytics-chat-qa-conversation-meta > span:nth-of-type(2) {
  grid-column: 4;
}

.present-shell .analytics-live-qa-conversation .analytics-chat-qa-conversation-meta {
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  gap: 4px 10px;
  min-width: 132px;
}

.present-shell .analytics-live-qa-conversation .analytics-chat-qa-disclosure {
  grid-column: auto;
  margin-top: 2px;
  white-space: nowrap;
}

.present-shell .analytics-live-qa-conversation .analytics-chat-qa-disclosure::after {
  content: none;
}

.present-shell .analytics-live-qa-conversation .analytics-live-qa-transcript-status {
  padding: 0;
  border-top: 0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.present-shell .analytics-live-qa-row-action {
  align-self: center;
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--studio-v3-accent);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.present-shell .analytics-live-qa-recording-slot {
  display: block;
  grid-column: 5;
  min-width: 0;
}

.present-shell .analytics-live-qa-conversation .analytics-chat-qa-disclosure {
  grid-column: 6;
}

.present-shell .analytics-live-qa-row-action:hover,
.present-shell .analytics-live-qa-row-action:focus-visible {
  color: var(--studio-v3-text);
  background: transparent;
  text-decoration: underline;
}

.present-shell.analytics-live-qa-modal-open,
.analytics-live-qa-modal-open {
  overflow: hidden;
}

.analytics-live-qa-recording-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(5 10 18 / 78%);
}

.analytics-live-qa-recording-modal[hidden] {
  display: none;
}

.analytics-live-qa-recording-modal-dialog {
  width: min(880px, 100%);
  overflow: hidden;
  border: 1px solid var(--studio-v3-line);
  border-radius: 14px;
  background: var(--studio-v3-surface, #fff);
  box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
}

.analytics-live-qa-recording-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  color: var(--studio-v3-text);
}

.analytics-live-qa-recording-modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.analytics-live-qa-recording-modal-close:hover,
.analytics-live-qa-recording-modal-close:focus-visible {
  background: var(--studio-v3-hover, rgb(0 0 0 / 8%));
}

.analytics-live-qa-recording-modal-video {
  display: block;
  width: 100%;
  max-height: min(72vh, 560px);
  background: #000;
}

@media (max-width: 900px) {
  .present-shell .analytics-live-qa-conversation .analytics-chat-qa-conversation-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .present-shell .analytics-live-qa-conversation .analytics-chat-qa-conversation-meta {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 10px;
  }

  .present-shell .analytics-live-qa-conversation .analytics-live-qa-row-action,
  .present-shell .analytics-live-qa-conversation .analytics-live-qa-recording-slot,
  .present-shell .analytics-live-qa-conversation .analytics-chat-qa-disclosure {
    grid-column: auto;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .analytics-live-qa-recording-modal {
    padding: 12px;
  }
}

.present-shell .analytics-live-qa-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-live-qa-session-details {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.present-shell .analytics-live-qa-session-details strong {
  overflow: hidden;
  color: var(--studio-v3-text);
  font-size: 0.82rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-live-qa-session-details span {
  color: var(--studio-v3-muted);
  font-size: 0.74rem;
}

.present-shell .analytics-live-qa-session-duration {
  flex: 0 0 auto;
  color: var(--studio-v3-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.present-shell .analytics-chat-qa-metric-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.present-shell .analytics-chat-qa-activity {
  display: grid;
  gap: 10px;
}

.present-shell .analytics-chat-qa-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-chat-qa-conversation {
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-chat-qa-conversation-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  padding: 10px 0;
  color: var(--studio-v3-text);
  cursor: pointer;
  list-style: none;
}

.present-shell .analytics-chat-qa-conversation-summary::-webkit-details-marker {
  display: none;
}

.present-shell .analytics-chat-qa-conversation-summary::after {
  content: none;
}

.present-shell .analytics-chat-qa-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.present-shell .analytics-chat-qa-identity-primary {
  overflow: hidden;
  color: var(--studio-v3-text);
  font-size: 0.88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-chat-qa-identity-secondary {
  overflow: hidden;
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-chat-qa-conversation-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
  text-align: right;
}

.present-shell .analytics-chat-qa-conversation-meta strong {
  color: var(--studio-v3-text);
  font-size: 0.8rem;
}

.present-shell .analytics-chat-qa-questions {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
}

.present-shell .analytics-chat-qa-questions > strong {
  color: var(--studio-v3-muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.present-shell .analytics-chat-qa-question-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--studio-v3-text);
  font-size: 0.82rem;
  line-height: 1.4;
}

.present-shell .analytics-chat-qa-question-list li {
  overflow-wrap: anywhere;
}

.present-shell .analytics-chat-qa-question-empty,
.present-shell .analytics-chat-qa-more {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
  list-style: none;
}

.present-shell .analytics-chat-qa-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / -1;
  color: var(--studio-v3-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.present-shell .analytics-chat-qa-disclosure::after {
  color: var(--studio-v3-muted);
  content: "＋";
  font-size: 0.9rem;
  line-height: 1;
}

.present-shell .analytics-chat-qa-conversation[open] .analytics-chat-qa-disclosure::after {
  content: "−";
}

.present-shell .analytics-live-qa-conversation[open] .analytics-chat-qa-disclosure::after {
  content: none;
}

.present-shell .analytics-chat-qa-disclosure-open {
  display: none;
}

.present-shell .analytics-chat-qa-conversation[open] .analytics-chat-qa-disclosure-closed {
  display: none;
}

.present-shell .analytics-chat-qa-conversation[open] .analytics-chat-qa-disclosure-open {
  display: inline;
}

.present-shell .analytics-chat-qa-transcript {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
  padding: 9px 0 0;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-chat-qa-message {
  display: grid;
  gap: 3px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
}

.present-shell .analytics-chat-qa-message-user {
  justify-self: start;
  max-width: 92%;
  background: color-mix(in srgb, var(--studio-v3-accent) 10%, transparent);
}

.present-shell .analytics-chat-qa-message-assistant {
  justify-self: start;
  background: var(--studio-v3-panel);
}

.present-shell .analytics-chat-qa-message strong {
  color: var(--studio-v3-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.present-shell .analytics-chat-qa-message p,
.present-shell .analytics-chat-qa-transcript-empty {
  margin: 0;
  color: var(--studio-v3-text);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.present-shell .analytics-chat-qa-transcript-empty {
  color: var(--studio-v3-muted);
}

.present-shell .analytics-chat-qa-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 11px 0;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-chat-qa-activity-row strong {
  color: var(--studio-v3-text);
  font-size: 0.82rem;
  font-weight: 650;
}

.present-shell .analytics-chat-qa-activity-row span {
  flex: 0 0 auto;
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .analytics-acquisition-state {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 20px 0;
  color: var(--studio-v3-muted);
}

.present-shell .analytics-acquisition-loading {
  justify-items: center;
  min-height: 180px;
  align-content: center;
}

.present-shell .analytics-acquisition-error {
  padding: 16px;
  border: 1px solid rgba(201, 74, 74, 0.2);
  border-radius: 14px;
  background: rgba(255, 248, 247, 0.72);
}

.present-shell .analytics-acquisition-error strong {
  color: var(--studio-v3-text);
  font-size: 0.88rem;
}

.present-shell .analytics-acquisition-error span {
  font-size: 0.8rem;
  line-height: 1.45;
}

.present-shell .analytics-tab-panel[data-analytics-panel="acquisition"] {
  gap: 32px;
}

.present-shell .analytics-tab-panel[data-analytics-panel="acquisition"] > #analytics-acquisition-content {
  display: grid;
  gap: 24px;
}

.present-shell .analytics-tab-panel[data-analytics-panel="acquisition"] .analytics-subsection {
  gap: 12px;
}

.present-shell .analytics-acquisition-two-column {
  display: grid;
  align-items: start;
  gap: 28px;
}

.present-shell .analytics-acquisition-two-column-primary {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
}

.present-shell .analytics-acquisition-two-column-secondary {
  grid-template-columns: minmax(0, 1.22fr) minmax(240px, 0.88fr);
}

.present-shell .analytics-acquisition-two-column > .analytics-subsection {
  min-width: 0;
}

.present-shell .analytics-acquisition-hero {
  gap: 12px;
  padding: 2px 0 0;
}

.present-shell .analytics-acquisition-journey {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(92px, 0.7fr) minmax(145px, 1fr) minmax(112px, 0.8fr) minmax(145px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px 0 17px;
  border-top: 1px solid var(--studio-v3-line);
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-journey-stage {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 2px 16px 3px 27px;
  border-left: 2px solid rgba(49, 87, 255, 0.26);
}

.present-shell .analytics-journey-stage::before {
  position: absolute;
  top: 5px;
  left: -6px;
  width: 9px;
  height: 9px;
  content: "";
  border: 2px solid var(--studio-v3-accent);
  border-radius: 50%;
  background: var(--studio-v3-panel, #ffffff);
  box-shadow: 0 0 0 4px rgba(49, 87, 255, 0.08);
}

.present-shell .analytics-journey-stage-index {
  color: var(--studio-v3-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.present-shell .analytics-journey-stage-label {
  overflow: hidden;
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-journey-stage strong {
  color: var(--studio-v3-text);
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

.present-shell .analytics-journey-connector {
  position: relative;
  display: grid;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--studio-v3-muted);
  font-size: 0.7rem;
  text-align: center;
}

.present-shell .analytics-journey-connector strong {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(49, 87, 255, 0.18);
  border-radius: 999px;
  color: var(--studio-v3-accent);
  background: rgba(49, 87, 255, 0.07);
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.present-shell .analytics-journey-connector span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-journey-connector i {
  position: relative;
  display: block;
  height: 1px;
  background: rgba(49, 87, 255, 0.32);
}

.present-shell .analytics-journey-connector i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1px solid var(--studio-v3-accent);
  border-right: 1px solid var(--studio-v3-accent);
  transform: rotate(45deg);
}

.present-shell .analytics-acquisition-embedded {
  gap: 12px;
  padding-top: 4px;
}

.present-shell .analytics-acquisition-journey-embedded {
  grid-template-columns: minmax(0, 1fr) minmax(36px, 0.48fr) minmax(0, 1fr) minmax(42px, 0.52fr) minmax(0, 1fr);
  gap: 7px;
  padding: 8px 0 9px;
  border: 0;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-acquisition-journey-embedded .analytics-journey-stage {
  padding: 3px 6px 4px 17px;
}

.present-shell .analytics-acquisition-journey-embedded .analytics-journey-stage strong {
  font-size: 1.2rem;
}

.present-shell .analytics-acquisition-journey-embedded .analytics-journey-stage-label {
  font-size: 0.68rem;
}

.present-shell .analytics-acquisition-journey-embedded .analytics-journey-stage::before {
  top: 4px;
  border-color: var(--studio-v3-muted);
  box-shadow: none;
}

.present-shell .analytics-acquisition-journey-embedded .analytics-journey-connector {
  gap: 4px;
  font-size: 0.62rem;
}

.present-shell .analytics-acquisition-journey-embedded .analytics-journey-connector strong {
  min-height: 21px;
  padding: 2px 5px;
  font-size: 0.7rem;
}

.present-shell .analytics-acquisition-journey-embedded .analytics-journey-connector strong {
  color: var(--studio-v3-text);
  background: rgba(49, 87, 255, 0.045);
}

.present-shell .analytics-acquisition-no-data {
  margin: -8px 0 0;
  padding: 14px 16px;
  border: 1px dashed var(--studio-v3-line);
  border-radius: 12px;
  color: var(--studio-v3-muted);
  font-size: 0.82rem;
  text-align: center;
}

.present-shell .analytics-entry-surface-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.38fr) minmax(0, 1fr);
  grid-template-areas:
    "heading items"
    ". rail";
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0 0;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-entry-surface-heading {
  grid-area: heading;
  display: grid;
  gap: 4px;
}

.present-shell .analytics-entry-surface-heading small {
  color: var(--studio-v3-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.present-shell .analytics-entry-surface-items {
  grid-area: items;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.present-shell .analytics-entry-surface-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid var(--studio-v3-line);
  border-radius: 9px;
  background: rgba(247, 248, 252, 0.54);
}

.present-shell .analytics-entry-surface-item::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--studio-v3-accent);
}

.present-shell .analytics-entry-surface-item.is-embed::before {
  background: var(--studio-v3-muted);
}

.present-shell .analytics-entry-surface-item > span {
  min-width: 0;
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
}

.present-shell .analytics-entry-surface-item strong {
  color: var(--studio-v3-text);
  font-size: 0.9rem;
}

.present-shell .analytics-entry-surface-item small {
  color: var(--studio-v3-muted);
  font-size: 0.7rem;
}

.present-shell .analytics-entry-surface-rail {
  display: flex;
  grid-area: rail;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 87, 255, 0.08);
}

.present-shell .analytics-entry-surface-rail > span {
  display: block;
  min-width: 0;
  transition: flex-basis 160ms ease;
}

.present-shell .analytics-entry-surface-rail > span:first-child {
  background: var(--studio-v3-accent);
}

.present-shell .analytics-entry-surface-rail > span:last-child {
  background: var(--studio-v3-muted);
}

.present-shell .analytics-acquisition-embedded .analytics-disclosure {
  margin-top: -3px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.present-shell .analytics-acquisition-bar-table {
  min-width: 640px;
}

.present-shell .analytics-acquisition-sources .analytics-table-wrap {
  border-radius: 12px;
}

.present-shell .analytics-acquisition-bar-table th,
.present-shell .analytics-acquisition-bar-table td {
  padding: 10px 12px;
}

.present-shell .analytics-acquisition-bar-cell {
  width: 30%;
  min-width: 190px;
  max-width: 310px;
  white-space: normal !important;
}

.present-shell .analytics-acquisition-bar-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.present-shell .analytics-acquisition-bar-copy strong {
  overflow: hidden;
  color: var(--studio-v3-text);
  font-size: 0.82rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-acquisition-bar-copy small {
  overflow: hidden;
  color: var(--studio-v3-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-acquisition-bar-track {
  display: block;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 87, 255, 0.1);
}

.present-shell .analytics-acquisition-bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--studio-v3-accent);
}

.present-shell .analytics-acquisition-list {
  display: grid;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-acquisition-list-row {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-acquisition-list-row:last-child {
  border-bottom: 0;
}

.present-shell .analytics-acquisition-list-primary {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.present-shell .analytics-acquisition-list-primary strong {
  overflow: hidden;
  color: var(--studio-v3-text);
  font-size: 0.82rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-acquisition-list-primary small {
  overflow: hidden;
  color: var(--studio-v3-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .analytics-acquisition-referrer-path {
  color: var(--studio-v3-muted);
}

.present-shell .analytics-acquisition-list-bar {
  display: block;
  height: 4px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 87, 255, 0.09);
}

.present-shell .analytics-acquisition-list-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--studio-v3-accent);
}

.present-shell .analytics-acquisition-list-row > small {
  color: var(--studio-v3-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.present-shell .analytics-acquisition-referrer-list .analytics-acquisition-list-bar i {
  background: var(--studio-v3-muted);
}

.present-shell .analytics-acquisition-list-empty {
  margin: 0;
  padding: 14px 0;
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .analytics-acquisition-scope-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 4px;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-acquisition-scope-note {
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .present-shell .analytics-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .present-shell .analytics-questionnaire-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .present-shell .analytics-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .present-shell .analytics-caption {
    max-width: none;
    text-align: left;
  }

  .present-shell .analytics-tabs {
    gap: 18px;
  }

  .present-shell .analytics-gated-preview-shell {
    padding: 22px;
  }

  .present-shell .analytics-gated-preview-metrics {
    grid-template-columns: 1fr;
  }

  .present-shell .analytics-gated-preview-metrics span {
    height: 52px;
  }

  .present-shell .analytics-gated-preview-table {
    grid-template-columns: 1fr;
  }

  .present-shell .analytics-head {
    align-items: start;
    flex-direction: column;
  }

  .present-shell .analytics-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .present-shell .analytics-panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .present-shell .analytics-activity-section .analytics-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .present-shell .analytics-activity-controls {
    justify-content: flex-start;
  }

  .present-shell .analytics-kpi-strip,
  .present-shell .analytics-compact-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .present-shell .analytics-kpi-item:nth-child(2n),
  .present-shell .analytics-compact-metric-row > div:nth-child(2n) {
    border-right: 0;
  }

  .present-shell .analytics-live-qa-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .present-shell .analytics-chat-qa-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .present-shell .analytics-acquisition-two-column {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .present-shell .video-content-analytics-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .present-shell .video-content-analytics-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .present-shell .video-content-analytics-list-head,
  .present-shell .video-content-analytics-item {
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
  }

  .present-shell .video-content-analytics-list-head span:last-child,
  .present-shell .video-content-analytics-item-recorded {
    grid-column: 1 / -1;
    text-align: left;
  }

  .present-shell .analytics-acquisition-scope-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .present-shell .analytics-acquisition-journey {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px 0;
  }

  .present-shell .analytics-journey-connector {
    grid-template-columns: minmax(112px, auto) 1fr;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .present-shell .analytics-journey-connector i {
    order: 2;
  }

  .present-shell .analytics-journey-stage {
    padding: 12px 14px;
  }

  .present-shell .analytics-journey-stage {
    padding: 4px 14px 6px 25px;
  }

  .present-shell .analytics-entry-surface-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "items"
      "rail";
    gap: 10px;
  }

  .present-shell .analytics-entry-surface-items {
    grid-template-columns: 1fr;
  }

  .present-shell .analytics-questionnaire-workspace {
    grid-template-columns: 1fr;
  }

  .present-shell .analytics-question-detail {
    min-height: 0;
  }

  .present-shell .analytics-export-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .present-shell .analytics-export-download {
    width: 100%;
  }
}

.present-shell .analytics-retry-button {
  flex: 0 0 auto;
}

.present-shell .analytics-export-modal-panel {
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
}

.present-shell .analytics-export-modal-panel .voice-preview-popup-head {
  align-items: start;
}

.present-shell .analytics-export-modal-panel .voice-preview-popup-head h2 {
  margin-bottom: 10px;
}

.present-shell .analytics-export-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-export-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--studio-v3-line);
}

.present-shell .analytics-export-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.present-shell .analytics-export-row strong {
  color: var(--studio-v3-text);
  font-size: 0.88rem;
}

.present-shell .analytics-export-row span {
  color: var(--studio-v3-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.present-shell .analytics-export-download {
  flex: 0 0 auto;
  min-height: 36px;
  padding-inline: 12px;
  font-size: 0.78rem;
}

.present-shell .analytics-export-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.present-shell .analytics-export-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.present-shell .analytics-export-download:disabled,
.present-shell .analytics-export-footer button:disabled,
.present-shell .analytics-export-open:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.present-shell .navigator-tab {
  min-height: 38px;
  padding: 0 12px;
  color: var(--studio-v3-muted);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--studio-v3-line);
}

.present-shell .navigator-tab.active {
  color: var(--studio-v3-text);
  background: var(--studio-v3-surface);
  border-color: var(--studio-v3-line-strong);
}

.present-shell .project-list,
.present-shell .scene-list {
  gap: 6px;
  max-height: 188px;
  padding-right: 2px;
}

.present-shell .project-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.present-shell .project-item,
.present-shell .scene-button {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
}

.present-shell .project-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: auto;
  flex: 1 1 auto;
}

.present-shell .project-item-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
}

.present-shell .project-item strong,
.present-shell .scene-button strong {
  color: var(--studio-v3-text);
  font-size: 0.92rem;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .project-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .project-delete-button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--studio-v3-muted);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--studio-v3-line);
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1;
}

.present-shell .project-delete-button:hover {
  color: #c94a4a;
  border-color: rgba(201, 74, 74, 0.28);
  background: rgba(201, 74, 74, 0.08);
}

.present-shell .project-item.active,
.present-shell .scene-button.active {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--studio-v3-line);
}

.present-shell .scene-button {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}

.present-shell .scene-index-badge {
  width: 28px;
  height: 28px;
  color: var(--studio-v3-muted);
  background: rgba(18, 18, 18, 0.05);
  border-radius: 9px;
}

.present-shell .studio-main {
  padding: 26px 42px 54px;
  background: transparent;
}

.present-shell .create-panel,
.present-shell .studio-empty,
.present-shell .workspace-head,
.present-shell .workspace-panel {
  margin: 0;
  padding: 0 0 30px;
  border: 0;
  border-bottom: 1px solid var(--studio-v3-line);
  border-radius: 0;
  background: transparent;
}

.present-shell .studio-empty,
.present-shell .workspace-head,
.present-shell .workspace-panel {
  margin-top: 26px;
}

.present-shell .workspace-head {
  margin-top: 0;
}

.present-shell .create-panel-head,
.present-shell .workspace-section-head {
  margin-bottom: 18px;
}

.present-shell .workspace-section-head {
  margin-top: -4px;
  margin-bottom: 14px;
}

.present-shell .workspace-summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.present-shell .workspace-summary-copy {
  max-width: 900px;
}

.present-shell .workspace-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.present-shell .workspace-summary-copy h2 {
  font-size: clamp(1.35rem, 2.15vw, 1.7rem);
  line-height: 1;
}

.present-shell .workspace-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 12px;
  justify-items: start;
}

.present-shell .workspace-actions {
  justify-content: flex-start;
  gap: 8px;
}

.present-shell .workspace-actions-secondary {
  margin-top: 0;
  justify-content: flex-start;
}

.present-shell .button-primary,
.present-shell .button-secondary,
.present-shell .button-ghost,
.present-shell .panel-close {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  box-shadow: none;
  font-size: 0.96rem;
}

.present-shell .button-primary {
  color: #fff;
  background: var(--studio-v3-accent);
}

.present-shell .button-secondary {
  color: var(--studio-v3-text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--studio-v3-line);
}

.present-shell .button-ghost,
.present-shell .panel-close {
  color: var(--studio-v3-muted);
  background: transparent;
  border: 1px solid var(--studio-v3-line);
}

.present-shell .upload-row {
  grid-template-columns: minmax(220px, 320px) minmax(340px, 1fr);
  gap: 22px;
}

.present-shell .file-drop {
  min-height: 188px;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(140, 203, 255, 0.3), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 246, 255, 0.96));
  border: 1px solid var(--studio-v3-line);
  border-radius: 20px;
}

.present-shell .file-drop-name {
  color: var(--studio-v3-text);
}

.present-shell .file-drop-icon {
  width: 56px;
  height: 56px;
  font-size: 2.15rem;
}

.present-shell .field input,
.present-shell .field select,
.present-shell .field textarea,
.present-shell .toggle-field,
.present-shell .field-readonly,
.present-shell .create-panel-advanced,
.present-shell .viewer-setup-advanced {
  border-color: var(--studio-v3-line);
}

.present-shell .field input,
.present-shell .field select,
.present-shell .field textarea {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
}

.present-shell .field textarea {
  min-height: 340px;
}

.present-shell .active-scene-layout {
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
}

.present-shell .scene-preview {
  border: 1px solid var(--studio-v3-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .scene-editor-panel,
.present-shell .scene-preview-panel {
  gap: 12px;
}

.present-shell .scene-builder-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 3px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--studio-v4-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.present-shell .scene-builder-tab {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 36px;
  position: relative;
  padding: 0 8px;
  color: var(--studio-v4-muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.present-shell .scene-builder-tab-info {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.72;
  cursor: help;
}

.studio-floating-tooltip {
  position: fixed;
  z-index: 10000;
  display: none;
  width: 220px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(25, 30, 42, 0.96);
  box-shadow: 0 8px 20px rgba(20, 24, 35, 0.18);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}

.studio-floating-tooltip.is-visible {
  display: block;
}

.present-shell .scene-builder-tab:hover {
  color: var(--studio-v4-text);
  background: transparent;
}

.present-shell .scene-builder-tab.active {
  color: var(--studio-v4-text);
  background: transparent;
}

.present-shell .scene-builder-tab.active::after {
  position: absolute;
  right: 8px;
  bottom: 4px;
  left: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--studio-v4-accent);
  content: "";
}

.present-shell .scene-builder-tab:focus-visible {
  outline: 2px solid var(--studio-v4-accent);
  outline-offset: 2px;
}

.present-shell .scene-builder-panel[hidden] {
  display: none !important;
}

.present-shell .scene-builder-panel.cohost-editor {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.present-shell .knowledge-editor-panel {
  min-height: 0;
}

.present-shell .knowledge-editor-field textarea {
  height: 220px;
  min-height: 0;
  max-height: 220px;
  overflow-y: auto;
  resize: none;
}

.present-shell .scene-editor-head strong {
  font-size: 1.35rem;
}

.present-shell .scene-status {
  color: var(--studio-v3-accent);
  font-size: 0.9rem;
}

.present-shell .viewer-setup-grid,
.present-shell .create-panel-advanced-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.present-shell .workspace-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.present-shell .workspace-narrative-settings {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.present-shell .viewer-setup-footer {
  align-items: flex-start;
  gap: 16px;
}

.present-shell .field-readonly {
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .field-readonly strong {
  margin-top: 8px;
  color: var(--studio-v3-text);
}

@media (max-width: 1180px) {
  .present-shell .present-layout {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .present-shell .upload-row,
  .present-shell .active-scene-layout,
  .present-shell .viewer-setup-grid,
  .present-shell .create-panel-advanced-grid,
  .present-shell .workspace-settings,
  .present-shell .workspace-narrative-settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .present-shell .present-layout {
    grid-template-columns: 1fr;
  }

  .present-shell .present-topbar {
    padding: 12px 18px;
  }

  .present-shell .studio-sidebar {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--studio-v3-line);
  }

  .present-shell .studio-main {
    padding: 22px 18px 40px;
  }
}

@media (max-width: 640px) {
  .present-shell .present-topbar,
  .present-shell .workspace-section-head,
  .present-shell .create-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .present-shell .topbar-actions,
  .present-shell .workspace-actions,
  .present-shell .upload-actions {
    width: 100%;
  }

  .present-shell .workspace-actions .button-primary,
  .present-shell .workspace-actions .button-secondary,
  .present-shell .workspace-actions .button-ghost,
  .present-shell .upload-actions .button-primary,
  .present-shell .upload-actions .button-ghost {
    width: 100%;
  }

.present-shell .brand img {
  width: 156px;
  height: 40px;
}

/* Exact mock alignment: main workspace */
.present-shell .present-layout {
  grid-template-columns: 272px minmax(0, 1fr);
}

.present-shell .studio-main {
  padding: 28px 32px 34px;
  min-width: 0;
}

.present-shell .workspace-head {
  display: block;
  margin-bottom: 18px;
  padding: 0;
  border: 0 !important;
}

.present-shell .workspace-summary {
  display: block;
  gap: 0;
}

.present-shell .workspace-summary-copy {
  display: block;
  max-width: none;
}

.present-shell .workspace-summary-copy h2 {
  margin: 8px 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.present-shell #workspace-meta {
  margin: 0;
  padding: 0;
  height: auto;
  color: #696864;
  font-size: 16px;
  background: transparent;
  border-radius: 0;
}

.present-shell .deck-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 16px;
  margin-bottom: 18px;
  border-top: 0;
  border-bottom: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .deck-strip-copy {
  display: block;
}

.present-shell .deck-strip-copy b {
  display: block;
  font-size: 15px;
}

.present-shell .deck-strip-copy p {
  margin: 3px 0 0;
  color: #777;
  font-size: 13px;
}

.present-shell .deck-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.present-shell .workspace-panel.active-scene-card {
  padding: 0;
  border: 0 !important;
}

.present-shell .active-scene-layout.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: start;
}

.present-shell .scene-preview-panel.preview-area {
  min-width: 0;
}

.present-shell .scene-preview-head.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.present-shell .scene-preview-head.preview-head h2,
.present-shell .editor-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.present-shell .scene-nav-actions.preview-actions {
  display: flex;
  gap: 8px;
}

.present-shell .scene-preview.slide-preview {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 30, 0.08);
  border-radius: 24px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .scene-preview.slide-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.present-shell .scene-editor-panel.editor {
  max-width: 430px;
  border-left: 1px solid rgba(20, 20, 30, 0.08);
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.present-shell .editor-head p {
  margin: 6px 0 0;
  color: #6d7180;
  line-height: 1.45;
}

.present-shell .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.present-shell .section-title h3 {
  margin: 0;
  font-size: 16px;
}

.present-shell .scene-status.tag,
.present-shell .tag.scene-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.06);
  color: #5e6472;
  font-size: 12px;
  font-weight: 850;
}

.present-shell .scene-editor-tools.tool-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.present-shell .knowledge-files-summary {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--studio-v4-border, rgba(20, 20, 30, 0.12));
}

.present-shell .knowledge-files-summary-head,
.present-shell .knowledge-files-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.present-shell .knowledge-files-summary-head {
  justify-content: space-between;
  gap: 16px;
}

.present-shell .knowledge-files-copy {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.present-shell .knowledge-files-copy strong {
  font-size: 0.92rem;
}

.present-shell .knowledge-files-copy small {
  color: var(--studio-v4-muted, #667085);
  font-size: 0.8rem;
}

body.present-shell .knowledge-files-modal {
  z-index: 70;
  padding: 18px;
}

body.present-shell .knowledge-files-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, 100%);
  max-height: min(82vh, 660px);
  overflow: hidden;
  padding: 0;
}

body.present-shell .knowledge-files-modal-head {
  margin: 0;
  padding: 24px 24px 16px;
}

body.present-shell .knowledge-files-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px 8px;
}

.present-shell .knowledge-files-modal-upload,
.present-shell .knowledge-files-modal-files {
  min-width: 0;
}

.present-shell .knowledge-files-dropzone {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px 14px;
  border: 1px dashed rgba(49, 87, 255, 0.36);
  border-radius: 12px;
  background: rgba(49, 87, 255, 0.04);
  color: var(--studio-v4-text, #14141a);
  text-align: center;
  cursor: pointer;
}

.present-shell .knowledge-files-dropzone:hover,
.present-shell .knowledge-files-dropzone:focus-visible,
.present-shell .knowledge-files-dropzone.is-dragging {
  border-color: var(--studio-v4-accent, #315cff);
  background: rgba(49, 87, 255, 0.08);
  outline: none;
}

.present-shell .knowledge-files-dropzone > span:not(.knowledge-files-drop-icon),
.present-shell .knowledge-files-dropzone small {
  color: var(--studio-v4-muted, #667085);
  font-size: 0.8rem;
}

.present-shell .knowledge-files-drop-icon {
  position: relative;
  width: 30px;
  height: 30px;
  margin-bottom: 2px;
  border: 1px solid rgba(49, 87, 255, 0.28);
  border-radius: 9px;
  background: rgba(49, 87, 255, 0.08);
}

.present-shell .knowledge-files-drop-icon::before,
.present-shell .knowledge-files-drop-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--studio-v4-accent, #315cff);
  content: "";
  transform: translate(-50%, -50%);
}

.present-shell .knowledge-files-drop-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.present-shell .knowledge-files-dropzone.is-disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.present-shell .knowledge-files-modal-locked {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 10px;
  background: rgba(49, 87, 255, 0.04);
}

.present-shell .knowledge-files-modal-locked p {
  margin: 0;
  color: var(--studio-v4-muted, #667085);
  font-size: 0.85rem;
  line-height: 1.45;
}

.present-shell .knowledge-files-modal-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  color: var(--studio-v4-muted, #667085);
  font-size: 0.8rem;
}

.present-shell .knowledge-files-modal-list-head strong {
  color: var(--studio-v4-text, #14141a);
  font-size: 0.9rem;
}

.present-shell .knowledge-files-empty {
  margin: 14px 0 0;
  color: var(--studio-v4-muted, #667085);
  font-size: 0.85rem;
}

.present-shell .knowledge-files-modal-body > .knowledge-files-status {
  margin-top: 10px;
}

.present-shell .knowledge-files-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.present-shell .knowledge-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(20, 20, 30, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .knowledge-file-row-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.present-shell .knowledge-file-icon {
  position: relative;
  width: 28px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(20, 20, 30, 0.14);
  border-radius: 6px;
  background: #fff;
}

.present-shell .knowledge-file-icon::before {
  position: absolute;
  top: 6px;
  right: 5px;
  left: 5px;
  height: 2px;
  border-radius: 2px;
  background: rgba(20, 20, 30, 0.16);
  box-shadow: 0 5px 0 rgba(20, 20, 30, 0.1), 0 10px 0 rgba(20, 20, 30, 0.1);
  content: "";
}

.present-shell .knowledge-file-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
}

.present-shell .knowledge-file-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.present-shell .knowledge-file-row-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.06);
  color: var(--studio-v4-muted, #667085);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.present-shell .knowledge-file-row-status[data-state="ready"] {
  color: #16805c;
  background: rgba(22, 128, 92, 0.1);
}

.present-shell .knowledge-file-row-status[data-state="failed"] {
  color: #b42318;
  background: rgba(180, 35, 24, 0.09);
}

.present-shell .knowledge-file-row-status[data-state="no_text"] {
  color: #996400;
  background: rgba(219, 151, 0, 0.12);
}

.present-shell .knowledge-file-row-size {
  color: var(--studio-v4-muted, #667085);
  font-size: 0.75rem;
  white-space: nowrap;
}

.present-shell .knowledge-file-row-hint {
  display: block;
  margin-top: 4px;
  color: var(--studio-v4-muted, #667085);
  font-size: 0.75rem;
  line-height: 1.35;
}

.present-shell .knowledge-file-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.present-shell .knowledge-file-row-actions button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 8px;
}

.present-shell .knowledge-file-row-actions button svg {
  width: 16px;
  height: 16px;
  display: block;
}

.present-shell .knowledge-file-row-actions .knowledge-file-action-edit {
  color: var(--studio-v4-text, #14141a);
  border-color: var(--studio-v4-line-strong, rgba(20, 20, 30, 0.14));
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .knowledge-file-row-actions .knowledge-file-action-delete {
  color: var(--studio-v4-muted, #667085);
  background: transparent;
  border-color: transparent;
}

body.present-shell .knowledge-files-modal-footer {
  margin: 0;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(20, 20, 30, 0.08);
}

.knowledge-files-modal-open,
.knowledge-files-modal-open body {
  overflow: hidden;
}

@media (max-width: 640px) {
  .present-shell .knowledge-files-summary-head {
    align-items: flex-start;
  }

  body.present-shell .knowledge-files-modal {
    padding: 10px;
  }

  body.present-shell .knowledge-files-modal-panel {
    max-height: 92vh;
  }

  body.present-shell .knowledge-files-modal-head {
    padding: 20px 18px 14px;
  }

  body.present-shell .knowledge-files-modal-body {
    grid-template-columns: 1fr;
    padding-inline: 18px;
  }

  body.present-shell .knowledge-files-modal-footer {
    padding-inline: 18px;
  }

  .present-shell .knowledge-file-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .present-shell .knowledge-file-row-actions {
    padding-left: 38px;
  }
}

.present-shell .knowledge-editor-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.present-shell .knowledge-editor-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
}

.present-shell .knowledge-autosave-status {
  color: var(--studio-v4-muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.present-shell .knowledge-autosave-status:empty {
  visibility: hidden;
}

.present-shell .knowledge-autosave-status[data-state="saved"] {
  color: #4f765b;
}

.present-shell .knowledge-autosave-status[data-state="error"] {
  color: #9a5a4f;
}

.present-shell #script-generation-allowance-workspace {
  flex: 0 1 auto;
  margin-right: 0;
}

.present-shell #scene-save-status {
  margin-left: 0;
}

.present-shell #save-scenes {
  flex: 0 0 auto;
  margin-left: auto;
}

.present-shell .scene-editor-tools.tool-row .button-secondary {
  height: 36px;
  min-height: 36px;
  font-size: 13px;
}

.present-shell .scene-save-status {
  display: inline-flex;
  align-items: center;
  min-width: 7.5em;
  min-height: 36px;
  color: var(--studio-v4-muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.present-shell .scene-save-status:empty {
  visibility: hidden;
}

.present-shell .scene-save-status[data-state="dirty"] {
  color: #806018;
}

.present-shell .scene-save-status[data-state="saved"] {
  color: #4f765b;
}

.present-shell .research-sources {
  display: block;
  margin: 0;
}

.present-shell .research-sources[hidden] {
  display: none !important;
}

.present-shell .research-sources-disclosure {
  display: inline-block;
  max-width: 100%;
  color: var(--studio-v4-muted);
  font-size: 0.78rem;
}

.present-shell .research-sources-disclosure summary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--studio-v4-line);
  border-radius: 999px;
  color: var(--studio-v4-muted);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.present-shell .research-sources-disclosure summary::-webkit-details-marker {
  display: none;
}

.present-shell .research-sources-disclosure summary::after {
  content: "＋";
  margin-left: 5px;
  font-size: 0.8rem;
}

.present-shell .research-sources-disclosure[open] summary::after {
  content: "−";
}

.present-shell .research-sources-list {
  display: grid;
  gap: 5px;
  margin: 7px 0 0;
  padding: 8px 10px 8px 26px;
  border-left: 2px solid rgba(71, 93, 255, 0.18);
  color: var(--studio-v4-muted);
  font-size: 0.78rem;
}

.present-shell .research-sources-list a {
  color: var(--studio-v4-accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.present-shell .research-sources-list a:hover,
.present-shell .research-sources-list a:focus-visible {
  text-decoration: underline;
}

.present-shell .narration-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.present-shell .narration-field textarea,
.present-shell #active-scene-script {
  width: 100%;
  min-height: 204px;
  max-height: none;
  resize: vertical;
  border: 1px solid rgba(20, 20, 30, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  padding: 18px;
  color: #1b1d26;
  line-height: 1.5;
  font-size: 15px;
  outline: none;
}

.present-shell .cohost-editor {
  display: block;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.present-shell .cohost-editor .section-title {
  margin-top: 8px;
}

.present-shell .cohost-editor-status {
  display: block;
  margin: 8px 0 0;
  color: #5e6472;
  font-size: 12px;
  font-weight: 850;
}

.present-shell .cohost-editor-hint {
  margin: 8px 0 0;
  color: #6d7180;
  line-height: 1.45;
}

.present-shell .cohost-message-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.present-shell .cohost-message-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(20, 20, 30, 0.07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.present-shell .cohost-message-card:first-child {
  border-top: 0;
}

.present-shell .cohost-message-card-head {
  display: contents;
}

.present-shell .cohost-emoji-field {
  width: 32px;
}

.present-shell .cohost-emoji-field span {
  display: none;
}

.present-shell .cohost-emoji-field input {
  width: 32px;
  height: 32px;
  padding: 0;
  text-align: center;
  border-radius: 50%;
  background: rgba(49, 87, 255, 0.09);
  border: 0;
}

.present-shell .cohost-message-badges {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.present-shell .cohost-purpose-badge,
.present-shell .cohost-timing-badge {
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #888;
  font-size: 12px;
  font-weight: 700;
}

.present-shell .cohost-delete-button {
  grid-column: 2;
  justify-self: end;
  align-self: start;
}

.present-shell .cohost-message-card .field {
  grid-column: 2;
}

.present-shell .cohost-message-card .field span {
  font-size: 14px;
  font-weight: 700;
}

.present-shell .cohost-message-card textarea {
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 20, 30, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

@media (max-width: 1200px) {
  .present-shell .active-scene-layout.workspace {
    grid-template-columns: 1fr;
  }

  .present-shell .scene-editor-panel.editor {
    max-width: none;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(20, 20, 30, 0.08);
    padding-top: 20px;
  }
}

/* Sidebar minimal mode */
.present-shell .studio-sidebar-intro > .sidebar-copy,
.present-shell .studio-sidebar-divider,
.present-shell .studio-intro-title,
.present-shell .studio-sidebar h1,
.present-shell .sidebar-section-head h2,
.present-shell .studio-sidebar-status {
  display: none !important;
}

.present-shell .studio-sidebar-intro {
  gap: 12px;
}

.present-shell .studio-sidebar-intro > .sidebar-label,
.present-shell #navigator-card > .sidebar-label {
  margin: 0 0 14px;
}

/* Workspace tightening */
.present-shell .workspace-head {
  padding: 0 0 10px;
  border-bottom: 0 !important;
}

.present-shell .workspace-summary {
  gap: 8px;
}

.present-shell .workspace-summary-copy {
  max-width: 680px;
}

.present-shell .workspace-summary-copy h2 {
  font-size: clamp(2rem, 2.7vw, 2.4rem);
  line-height: 1.05;
}

.present-shell #workspace-meta {
  padding: 0;
  height: auto;
  background: transparent;
  font-size: 0.92rem;
}

.present-shell .deck-strip {
  padding: 12px 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .active-scene-layout {
  grid-template-columns: minmax(620px, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

.present-shell .scene-preview-panel,
.present-shell .scene-editor-panel {
  gap: 8px;
}

.present-shell .scene-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.present-shell .scene-preview-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  line-height: 1.1;
}

.present-shell .scene-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.present-shell .scene-editor-tools {
  gap: 8px;
}

.present-shell .scene-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: none;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(20, 20, 30, 0.08);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.58);
}

.present-shell .scene-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.present-shell .field textarea {
  min-height: 240px;
  max-height: 360px;
}

.present-shell .cohost-editor {
  margin-top: 8px;
  padding-top: 10px;
  gap: 8px;
}

.present-shell .cohost-editor-hint {
  max-width: 54ch;
}

.present-shell .cohost-message-list {
  gap: 6px;
}

.present-shell .cohost-message-card {
  padding: 10px;
  gap: 8px;
}

.present-shell .cohost-message-card-head {
  grid-template-columns: minmax(80px, 110px) minmax(0, 1fr) auto;
  gap: 6px;
}

.present-shell .cohost-message-card textarea {
  min-height: 64px;
}

.present-shell .scene-editor-head strong {
  font-size: 1.05rem;
}

.present-shell .scene-status {
  font-size: 0.82rem;
}

.present-shell .workspace-section-head {
  margin-bottom: 12px;
}

.present-shell .workspace-section-head h2 {
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  line-height: 1.05;
}

.present-shell .workspace-panel,
.present-shell .workspace-head {
  border-bottom: 0 !important;
}

.present-shell .workspace-panel {
  padding-bottom: 0;
}

.present-shell .studio-main {
  padding: 24px 32px 32px;
}

.present-shell .studio-sidebar {
  width: 270px;
}

.present-shell .workspace-tabs .workspace-tab {
  min-height: 60px;
  padding: 0 12px;
}

.present-shell .scene-button-compact {
  min-height: 52px;
  padding: 8px 10px;
}

.present-shell .scene-list,
.present-shell .project-list {
  gap: 6px;
}

.present-shell .studio-sidebar-status {
  display: none;
}

.present-shell .studio-sidebar h1,
.present-shell .studio-intro-title,
.present-shell .studio-sidebar-divider,
.present-shell .sidebar-section-head h2,
.present-shell .sidebar-copy {
  display: none !important;
}
}

/* Studio mock alignment overrides */
.present-shell .sidebar-create-button {
  width: 100%;
  min-height: 42px;
  color: var(--studio-v4-text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--studio-v4-line);
  box-shadow: none;
}

.present-shell .sidebar-create-button:hover {
  background: rgba(255, 255, 255, 0.92);
}

.present-shell #navigator-card {
  padding-top: 2px;
}

.present-shell .navigator-tabs,
.present-shell .project-list {
  display: none !important;
}

.present-shell .scene-list {
  max-height: none;
}

.present-shell .studio-main {
  padding-top: 24px;
}

.present-shell .workspace-head {
  padding-bottom: 24px;
}

.present-shell .workspace-summary-copy h2 {
  font-size: clamp(1.9rem, 2.4vw, 2.7rem);
  line-height: 0.98;
}

.present-shell #workspace-meta {
  height: 26px;
  padding: 0 12px;
  font-size: 0.92rem;
}

.present-shell .deck-strip {
  align-items: center;
  padding: 16px 0 18px;
}

.present-shell .deck-strip-copy b {
  font-size: 1.02rem;
}

.present-shell .deck-strip-copy p {
  max-width: 56ch;
}

.present-shell .active-scene-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.present-shell .scene-editor-head strong {
  font-size: 1.2rem;
}

.present-shell .scene-editor-tools {
  gap: 8px;
}

.present-shell .scene-editor-tools .button-secondary {
  min-height: 36px;
}

/* Final Studio layout alignment for the mock */
.present-shell {
  --blue: #3157ff;
  --purple: #705cff;
  --ink: #111217;
  --muted: #6e6b74;
  --line: rgba(20, 20, 30, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 12%, rgba(255, 226, 204, 0.58), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(216, 224, 255, 0.72), transparent 32%),
    linear-gradient(120deg, #fbf7f1, #f7f6fb 62%, #f3f6ff);
}

.present-shell .present-topbar {
  height: 68px;
  min-height: 68px;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.64);
  border-bottom: 1px solid rgba(20, 20, 30, 0.07);
  backdrop-filter: blur(18px);
}

.present-shell .brand {
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.present-shell .brand img {
  width: 138px;
  height: 34px;
  object-fit: contain;
}

.present-shell .topbar-actions {
  gap: 26px;
  color: #5f5b55;
}

.present-shell .topbar-actions a {
  font-weight: 750;
}

.present-shell .present-layout {
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.present-shell .studio-sidebar {
  top: 68px;
  min-height: calc(100vh - 68px);
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.3);
  border-right: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .sidebar-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.24em;
}

.present-shell .studio-sidebar h1 {
  font-size: clamp(2rem, 2.8vw, 2.55rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.present-shell .workspace-summary-copy h2 {
  font-size: clamp(1.5rem, 2.15vw, 2.05rem);
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.055em;
}

.present-shell .studio-main {
  padding: 38px 32px 34px;
  background: rgba(255, 255, 255, 0.2);
}

.present-shell .workspace-head {
  padding-top: 4px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .workspace-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.present-shell .workspace-summary-copy {
  gap: 6px;
}

.present-shell #workspace-meta {
  color: #73727b;
}

.present-shell .deck-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .deck-strip-copy {
  display: grid;
  gap: 3px;
}

.present-shell .deck-strip-copy b {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.present-shell .deck-strip-copy p {
  margin: 0;
  color: #777;
  font-size: 13px;
}

.present-shell .deck-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.present-shell .workspace-section-head {
  margin-bottom: 18px;
}

.present-shell .active-scene-layout {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: start;
}

.present-shell .scene-preview {
  border: 1px solid rgba(20, 20, 30, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 76% 45%, rgba(115, 99, 255, 0.12), transparent 23%),
    radial-gradient(circle at 88% 62%, rgba(74, 201, 255, 0.1), transparent 18%),
    linear-gradient(135deg, #fff, #eef2ff);
  box-shadow: 0 24px 70px rgba(47, 39, 26, 0.055);
}

.present-shell .scene-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.present-shell .scene-editor-panel {
  gap: 12px;
  padding-left: 6px;
}

.present-shell .scene-editor-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.present-shell .scene-editor-tools .button-secondary {
  height: 36px;
  border-radius: 999px;
}

.present-shell .field textarea {
  min-height: 280px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
}

.present-shell .cohost-editor {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .cohost-message-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .cohost-message-card textarea {
  min-height: 94px;
}

.present-shell .preview-more-actions {
  margin-top: 4px;
}

.present-shell .workspace-more-actions-panel {
  min-width: 240px;
}

.present-shell .project-list,
.present-shell .scene-list {
  gap: 8px;
}

.present-shell .project-item,
.present-shell .scene-button,
.present-shell .navigator-tab,
.present-shell .workspace-tab {
  border: 1px solid rgba(20, 20, 30, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .workspace-tab {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 16px;
}

.present-shell .workspace-tab-kicker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.present-shell .workspace-tab strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.present-shell .workspace-tab.active {
  border-color: rgba(49, 87, 255, 0.16);
}

.present-shell .navigator-tabs {
  gap: 8px;
}

.present-shell .navigator-tab {
  height: 36px;
  border-radius: 999px;
}

.present-shell .project-item-row {
  gap: 8px;
}

.present-shell .project-item,
.present-shell .scene-button {
  justify-content: flex-start;
  height: auto;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
}

.present-shell .project-item.active,
.present-shell .scene-button.active,
.present-shell .navigator-tab.active {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(49, 87, 255, 0.16);
}

.present-shell .scene-index-badge {
  border-radius: 999px;
  background: rgba(49, 87, 255, 0.1);
}

.present-shell .viewer-setup-card,
.present-shell .project-settings-card,
.present-shell .avatar-settings-card,
.present-shell .preview-card,
.present-shell .create-panel {
  background: transparent;
  border: 0;
}

.present-shell .viewer-setup-grid,
.present-shell .create-panel-advanced-grid,
.present-shell .workspace-settings,
.present-shell .workspace-narrative-settings,
.present-shell .workspace-voice-grid {
  gap: 14px;
}

.present-shell .field input,
.present-shell .field select,
.present-shell .field textarea {
  padding: 13px 14px;
  border: 1px solid rgba(20, 20, 30, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .viewer-setup-advanced,
.present-shell .create-panel-advanced {
  border: 1px solid rgba(20, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

.present-shell .toggle-field,
.present-shell .field-readonly,
.present-shell .voice-summary-card,
.present-shell .preview-launch-card {
  border: 1px solid rgba(20, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .preview-grid {
  gap: 14px;
}

.present-shell .preview-launch-card {
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(82, 68, 38, 0.08);
}

.present-shell .workspace-panel[hidden],
.present-shell .navigator-panel[hidden],
.present-shell #navigator-card[hidden],
.present-shell #create-panel[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .present-shell .present-layout,
  .present-shell .active-scene-layout,
  .present-shell .viewer-setup-grid,
  .present-shell .create-panel-advanced-grid,
  .present-shell .workspace-settings,
  .present-shell .workspace-narrative-settings,
  .present-shell .workspace-voice-grid,
  .present-shell .preview-grid {
    grid-template-columns: 1fr;
  }

  .present-shell .studio-sidebar {
    position: static;
    min-height: auto;
  }

  .present-shell .workspace-toolbar {
    justify-items: start;
  }
}

@media (max-width: 900px) {
  .present-shell .present-layout {
    grid-template-columns: 1fr;
  }

  .present-shell .studio-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(20, 20, 30, 0.08);
  }

  .present-shell .studio-main {
    padding: 22px 20px 28px;
  }

  .present-shell .present-topbar {
    padding: 0 20px;
  }

  .present-shell .workspace-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .present-shell .present-topbar {
    height: auto;
    min-height: 68px;
    padding: 14px 16px;
    align-items: flex-start;
  }

  .present-shell .topbar-actions,
  .present-shell .workspace-actions {
    gap: 8px;
  }

  .present-shell .workspace-actions .button-primary,
  .present-shell .workspace-actions .button-secondary,
  .present-shell .workspace-actions .button-ghost {
    width: 100%;
    justify-content: center;
  }

  .present-shell .upload-row {
    grid-template-columns: 1fr;
  }

  .present-shell .brand img {
    width: 156px;
    height: 40px;
  }
}
/* EOF deck spacing override */
.present-shell .studio-main {
  padding-top: 20px !important;
}

.present-shell .workspace-head {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 0 !important;
}

.present-shell .workspace-summary {
  gap: 0 !important;
  align-items: start !important;
}

.present-shell .workspace-summary-copy {
  gap: 0 !important;
}

.present-shell .workspace-summary-copy .sidebar-label {
  margin-bottom: 0 !important;
}

.present-shell .workspace-summary-copy h2 {
  margin: 0 !important;
}

.present-shell #workspace-meta {
  margin: 0 !important;
  padding: 0 !important;
}

.present-shell .deck-strip {
  margin-top: -62px !important;
  padding-top: 0 !important;
  padding-bottom: 4px !important;
}

.present-shell .deck-strip-copy p {
  margin-top: 0 !important;
}

/* True end-of-file deck spacing override */
.present-shell .studio-main {
  padding-top: 20px !important;
}

.present-shell .workspace-head {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 0 !important;
}

.present-shell .workspace-summary {
  gap: 0 !important;
  align-items: start !important;
}

.present-shell .workspace-summary-copy {
  gap: 0 !important;
}

.present-shell .workspace-summary-copy .sidebar-label {
  margin-bottom: 0 !important;
}

.present-shell .workspace-summary-copy h2 {
  margin: 0 !important;
}

.present-shell #workspace-meta {
  margin: 0 !important;
  padding: 0 !important;
}

.present-shell .deck-strip {
  margin-top: -62px !important;
  padding-top: 0 !important;
  padding-bottom: 4px !important;
}

.present-shell .deck-strip-copy p {
  margin-top: 0 !important;
}

/* Hard final deck spacing override */
.present-shell .studio-main {
  padding-top: 20px !important;
}

.present-shell .workspace-head {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 0 !important;
}

.present-shell .workspace-summary {
  gap: 0 !important;
  align-items: start !important;
}

.present-shell .workspace-summary-copy {
  gap: 0 !important;
}

.present-shell .workspace-summary-copy .sidebar-label {
  margin-bottom: 0 !important;
}

.present-shell .workspace-summary-copy h2 {
  margin: 0 !important;
}

.present-shell #workspace-meta {
  margin: 0 !important;
  padding: 0 !important;
}

.present-shell .deck-strip {
  margin-top: -62px !important;
  padding-top: 0 !important;
  padding-bottom: 4px !important;
}

.present-shell .deck-strip-copy p {
  margin-top: 0 !important;
}

/* Final deck block snap-up */
.present-shell .workspace-head {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 0 !important;
}

.present-shell .workspace-summary {
  align-items: start !important;
}

.present-shell .workspace-summary-copy {
  gap: 0 !important;
}

.present-shell .workspace-summary-copy h2 {
  margin: 0 !important;
}

.present-shell #workspace-meta {
  margin: 0 !important;
}

.present-shell .deck-strip {
  margin-top: -50px !important;
  padding: 0 0 6px !important;
}

.present-shell .deck-strip-copy p {
  margin-top: 0 !important;
}

/* Final deck block lift */
.present-shell .workspace-head {
  margin: 0 !important;
  padding: 0 0 2px !important;
  border-bottom: 0 !important;
}

.present-shell .workspace-summary-copy {
  gap: 0 !important;
}

.present-shell .workspace-summary-copy h2 {
  margin: 0 !important;
}

.present-shell #workspace-meta {
  margin: 0 !important;
}

.present-shell .deck-strip {
  margin-top: -18px !important;
  margin-bottom: 6px !important;
  padding: 0 0 8px !important;
}

.present-shell .deck-strip-copy p {
  margin-top: 0 !important;
}

/* Final aggressive lift */
.present-shell .workspace-head {
  margin-bottom: -18px !important;
}

.present-shell .deck-strip {
  margin-top: -30px !important;
}

/* Final deck strip lift */
.present-shell .workspace-head {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.present-shell .workspace-summary {
  gap: 0 !important;
  align-items: start !important;
}

.present-shell .workspace-summary-copy {
  gap: 0 !important;
}

.present-shell .deck-strip {
  margin-top: -10px !important;
  padding-top: 0 !important;
}

.present-shell .deck-strip-copy p {
  margin-top: 1px !important;
}

/* Final presentation stack lock */
.present-shell .workspace-head {
  padding: 0 0 6px !important;
  margin: 0 !important;
  border-bottom: 0 !important;
}

.present-shell .workspace-summary-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  max-width: none !important;
}

.present-shell .workspace-summary-copy .sidebar-label {
  margin: 0 0 2px !important;
  line-height: 1 !important;
}

.present-shell .workspace-summary-copy h2 {
  font-size: clamp(30px, 2.45vw, 37px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.06em !important;
  margin: 0 !important;
}

.present-shell #workspace-meta {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
}

.present-shell .deck-strip {
  padding: 2px 0 10px !important;
  margin: 0 0 10px !important;
  border-top: 0 !important;
}

/* Final presentation header lock */
.present-shell .workspace-summary-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.present-shell .workspace-summary-copy .sidebar-label {
  margin: 0 0 2px !important;
  line-height: 1 !important;
}

.present-shell .workspace-summary-copy h2 {
  font-size: clamp(30px, 2.55vw, 38px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.06em !important;
  margin: 0 0 2px !important;
}

.present-shell #workspace-meta {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

/* Final Studio spacing lock */
.present-shell .studio-main {
  padding: 24px 32px 32px !important;
}

.present-shell .workspace-head {
  margin-bottom: 10px !important;
  padding-top: 0 !important;
  padding-bottom: 10px !important;
}

.present-shell .workspace-summary-copy h2 {
  margin: 6px 0 6px !important;
}

.present-shell .deck-strip {
  padding: 8px 0 10px !important;
  margin-bottom: 10px !important;
}

.present-shell .workspace-panel.active-scene-card {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.present-shell .active-scene-layout.workspace {
  gap: 20px !important;
}

.present-shell .scene-preview-panel.preview-area,
.present-shell .scene-editor-panel.editor {
  padding-top: 0 !important;
}

.present-shell .scene-preview-head.preview-head {
  margin-bottom: 8px !important;
}

.present-shell .editor-head {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.present-shell .editor-head p,
.present-shell #active-scene-meta {
  margin-top: 2px !important;
}

/* Header stack tighten */
.present-shell .workspace-summary-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.present-shell .workspace-summary-copy .sidebar-label {
  margin: 0 0 2px !important;
  line-height: 1 !important;
}

.present-shell .workspace-summary-copy h2 {
  font-size: clamp(30px, 2.55vw, 38px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.06em !important;
  margin: 0 0 2px !important;
}

.present-shell #workspace-meta {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

/* Final spacing trim */
.present-shell .workspace-head {
  margin-bottom: 10px !important;
}

.present-shell .deck-strip {
  padding: 8px 0 10px !important;
  margin-bottom: 10px !important;
}

.present-shell .workspace-panel.active-scene-card {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.present-shell .active-scene-layout.workspace {
  gap: 20px !important;
}

.present-shell .scene-preview-head.preview-head {
  margin-bottom: 8px !important;
}

.present-shell .scene-editor-panel.editor,
.present-shell .scene-preview-panel.preview-area {
  padding-top: 0 !important;
}

.present-shell .editor-head {
  margin-top: 0 !important;
}

.present-shell .editor-head p,
.present-shell #active-scene-meta {
  margin-top: 4px !important;
}

/* Final lock: uploaded mock exact alignment */
.present-shell .present-layout {
  grid-template-columns: 272px minmax(0, 1fr);
}

.present-shell .studio-main {
  padding: 28px 32px 34px;
  min-width: 0;
}

.present-shell .workspace-head {
  display: block;
  margin-bottom: 18px;
  padding: 0;
  border: 0 !important;
}

.present-shell .workspace-summary {
  display: block;
}

.present-shell .workspace-summary-copy {
  display: block;
  max-width: none;
}

.present-shell .workspace-summary-copy h2 {
  font-size: 34px !important;
  line-height: 1 !important;
  letter-spacing: -0.055em !important;
  margin: 8px 0 8px !important;
}

.present-shell #workspace-meta {
  display: block;
  margin: 0;
  padding: 0;
  height: auto;
  color: #696864;
  font-size: 16px;
  background: transparent !important;
  border-radius: 0;
}

.present-shell .deck-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 16px;
  margin-bottom: 18px;
  border-top: 0;
  border-bottom: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .deck-strip-copy b {
  font-size: 15px;
}

.present-shell .deck-strip-copy p {
  margin: 3px 0 0;
  color: #777;
  font-size: 13px;
}

.present-shell .workspace-panel.active-scene-card {
  padding: 0;
  border: 0 !important;
}

.present-shell .active-scene-layout.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: start;
}

.present-shell .scene-preview-panel.preview-area {
  min-width: 0;
}

.present-shell .scene-preview-head.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.present-shell .scene-preview-head.preview-head h2,
.present-shell .editor-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.present-shell .scene-nav-actions.preview-actions {
  display: flex;
  gap: 8px;
}

.present-shell .scene-preview.slide-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: none;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(20, 20, 30, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.present-shell .scene-preview.slide-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.present-shell .scene-editor-panel.editor {
  max-width: 430px;
  border-left: 1px solid rgba(20, 20, 30, 0.08);
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.present-shell .editor-head p {
  margin: 6px 0 0;
  color: #6d7180;
  line-height: 1.45;
}

.present-shell .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.present-shell .section-title h3 {
  font-size: 16px;
  margin: 0;
}

.present-shell .tag.scene-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.06);
  color: #5e6472;
  font-size: 12px;
  font-weight: 850;
}

.present-shell .scene-editor-tools.tool-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.present-shell .scene-editor-tools.tool-row .button-secondary {
  height: 36px;
  min-height: 36px;
  font-size: 13px;
}

.present-shell .narration-field textarea,
.present-shell #active-scene-script {
  width: 100%;
  min-height: 204px;
  resize: vertical;
  border: 1px solid rgba(20, 20, 30, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  padding: 18px;
  color: #1b1d26;
  line-height: 1.5;
  font-size: 15px;
  outline: none;
}

.present-shell .narration-field {
  margin-top: 10px;
}

.present-shell .cohost-editor {
  display: block;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.present-shell .cohost-editor-status {
  display: block;
  margin: 8px 0 0;
  color: #5e6472;
  font-size: 12px;
  font-weight: 850;
}

.present-shell .cohost-editor-hint {
  margin: 8px 0 0;
  color: #6d7180;
  line-height: 1.45;
}

.present-shell .cohost-message-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.present-shell .cohost-message-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(20, 20, 30, 0.07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.present-shell .cohost-message-card:first-child {
  border-top: 0;
}

.present-shell .cohost-message-card-head {
  display: contents;
}

.present-shell .cohost-emoji-field {
  width: 32px;
}

.present-shell .cohost-emoji-field span {
  display: none;
}

.present-shell .cohost-emoji-field input {
  width: 32px;
  height: 32px;
  padding: 0;
  text-align: center;
  border-radius: 50%;
  background: rgba(49, 87, 255, 0.09);
  border: 0;
}

.present-shell .cohost-message-badges,
.present-shell .cohost-delete-button,
.present-shell .cohost-message-card .field {
  grid-column: 2;
}

.present-shell .cohost-message-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.present-shell .cohost-purpose-badge,
.present-shell .cohost-timing-badge {
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #888;
  font-size: 12px;
  font-weight: 700;
}

.present-shell .cohost-message-card textarea {
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 20, 30, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

@media (max-width: 1200px) {
  .present-shell .active-scene-layout.workspace {
    grid-template-columns: 1fr;
  }

  .present-shell .scene-editor-panel.editor {
    max-width: none;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(20, 20, 30, 0.08);
    padding-top: 20px;
  }
}

/* Final Studio override: closer to the supplied mock layout */
.present-shell {
  --blue: #3157ff;
  --purple: #705cff;
  --ink: #111217;
  --muted: #6e6b74;
  --line: rgba(20, 20, 30, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 12%, rgba(255, 226, 204, 0.58), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(216, 224, 255, 0.72), transparent 32%),
    linear-gradient(120deg, #fbf7f1, #f7f6fb 62%, #f3f6ff);
}

.present-shell .present-topbar {
  height: 68px;
  min-height: 68px;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.64);
  border-bottom: 1px solid rgba(20, 20, 30, 0.07);
  backdrop-filter: blur(18px);
}

.present-shell .brand {
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.present-shell .brand img {
  width: 138px;
  height: 34px;
  object-fit: contain;
}

.present-shell .topbar-actions {
  gap: 26px;
  color: #5f5b55;
}

.present-shell .topbar-actions a {
  font-weight: 750;
}

.present-shell .present-layout {
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.present-shell .studio-sidebar {
  top: 68px;
  min-height: calc(100vh - 68px);
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.3);
  border-right: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .studio-sidebar h1,
.present-shell .workspace-summary-copy h2,
.present-shell .studio-empty h2,
.present-shell .studio-main h2 {
  letter-spacing: -0.055em;
}

.present-shell .sidebar-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.24em;
}

.present-shell .studio-sidebar h1 {
  font-size: clamp(2rem, 2.8vw, 2.55rem);
  line-height: 0.98;
}

.present-shell .sidebar-copy,
.present-shell .create-panel-copy,
.present-shell .studio-empty p,
.present-shell .workspace-section-head p {
  color: #6a665f;
  line-height: 1.45;
}

.present-shell .studio-main {
  padding: 38px 32px 34px;
  background: rgba(255, 255, 255, 0.2);
}

.present-shell .workspace-head {
  padding-top: 4px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .workspace-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.present-shell .workspace-summary-copy {
  gap: 6px;
}

.present-shell .workspace-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.present-shell .workspace-summary-copy h2 {
  font-size: clamp(1.5rem, 2.15vw, 2.05rem);
  line-height: 1.04;
  margin: 0;
}

.present-shell #workspace-meta {
  color: #73727b;
}

.present-shell .workspace-toolbar {
  justify-items: end;
  gap: 10px;
}

.present-shell .workspace-actions {
  gap: 10px;
}

.present-shell .workspace-actions-primary .button-primary {
  min-width: 164px;
}

.present-shell .workspace-more-actions-panel {
  min-width: 220px;
  padding: 12px;
  border: 1px solid rgba(20, 20, 30, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(20, 20, 30, 0.08);
}

.present-shell .workspace-more-actions-panel a,
.present-shell .workspace-more-actions-panel button {
  justify-content: flex-start;
  width: 100%;
  border-radius: 14px;
}

.present-shell .active-scene-layout {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: start;
}

.present-shell .scene-preview {
  border: 1px solid rgba(20, 20, 30, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 76% 45%, rgba(115, 99, 255, 0.12), transparent 23%),
    radial-gradient(circle at 88% 62%, rgba(74, 201, 255, 0.1), transparent 18%),
    linear-gradient(135deg, #fff, #eef2ff);
  box-shadow: 0 24px 70px rgba(47, 39, 26, 0.055);
}

.present-shell .scene-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.present-shell .scene-editor-panel {
  gap: 12px;
  padding-left: 6px;
}

.present-shell .field textarea {
  min-height: 280px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
}

.present-shell .cohost-editor {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 20, 30, 0.08);
}

.present-shell .cohost-message-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .cohost-message-card textarea {
  min-height: 94px;
}

.present-shell .project-list,
.present-shell .scene-list {
  gap: 8px;
}

.present-shell .project-item,
.present-shell .scene-button,
.present-shell .navigator-tab,
.present-shell .workspace-tab {
  border: 1px solid rgba(20, 20, 30, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .workspace-tab {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 16px;
}

.present-shell .workspace-tab-kicker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.present-shell .workspace-tab strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.present-shell .workspace-tab.active {
  border-color: rgba(49, 87, 255, 0.16);
}

.present-shell .navigator-tabs {
  gap: 8px;
}

.present-shell .navigator-tab {
  height: 36px;
  border-radius: 999px;
}

.present-shell .project-item-row {
  gap: 8px;
}

.present-shell .project-item,
.present-shell .scene-button {
  justify-content: flex-start;
  height: auto;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
}

.present-shell .project-item.active,
.present-shell .scene-button.active,
.present-shell .navigator-tab.active {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(49, 87, 255, 0.16);
}

.present-shell .scene-index-badge {
  border-radius: 999px;
  background: rgba(49, 87, 255, 0.1);
}

.present-shell .upload-row {
  grid-template-columns: minmax(240px, 338px) minmax(300px, 1fr);
  gap: 18px;
}

.present-shell .file-drop {
  min-height: 208px;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(135, 213, 255, 0.28), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(253, 244, 255, 0.92));
  border: 1px solid rgba(20, 20, 30, 0.12);
  border-radius: 22px;
}

.present-shell .file-drop-icon {
  width: 58px;
  height: 58px;
  border-width: 2px;
  border-color: rgba(23, 23, 23, 0.85);
  font-size: 2.3rem;
}

.present-shell .viewer-setup-card,
.present-shell .project-settings-card,
.present-shell .avatar-settings-card,
.present-shell .preview-card,
.present-shell .create-panel {
  background: transparent;
  border: 0;
}

.present-shell .viewer-setup-grid,
.present-shell .create-panel-advanced-grid,
.present-shell .workspace-settings,
.present-shell .workspace-narrative-settings,
.present-shell .workspace-voice-grid {
  gap: 14px;
}

.present-shell .field input,
.present-shell .field select,
.present-shell .field textarea {
  padding: 13px 14px;
  border: 1px solid rgba(20, 20, 30, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .viewer-setup-advanced,
.present-shell .create-panel-advanced {
  border: 1px solid rgba(20, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

.present-shell .toggle-field,
.present-shell .field-readonly,
.present-shell .voice-summary-card,
.present-shell .preview-launch-card {
  border: 1px solid rgba(20, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .preview-grid {
  gap: 14px;
}

.present-shell .preview-launch-card {
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(82, 68, 38, 0.08);
}

.present-shell .workspace-panel[hidden],
.present-shell .navigator-panel[hidden],
.present-shell #navigator-card[hidden],
.present-shell #create-panel[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .present-shell .present-layout,
  .present-shell .active-scene-layout,
  .present-shell .viewer-setup-grid,
  .present-shell .create-panel-advanced-grid,
  .present-shell .workspace-settings,
  .present-shell .workspace-narrative-settings,
  .present-shell .workspace-voice-grid,
  .present-shell .preview-grid {
    grid-template-columns: 1fr;
  }

  .present-shell .studio-sidebar {
    position: static;
    min-height: auto;
  }

  .present-shell .workspace-toolbar {
    justify-items: start;
  }
}

@media (max-width: 900px) {
  .present-shell .present-layout {
    grid-template-columns: 1fr;
  }

  .present-shell .studio-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(20, 20, 30, 0.08);
  }

  .present-shell .studio-main {
    padding: 22px 20px 28px;
  }

  .present-shell .present-topbar {
    padding: 0 20px;
  }

  .present-shell .workspace-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .present-shell .workspace-toolbar {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .present-shell .present-topbar {
    height: auto;
    min-height: 68px;
    padding: 14px 16px;
    align-items: flex-start;
  }

  .present-shell .topbar-actions,
  .present-shell .workspace-actions {
    gap: 8px;
  }

  .present-shell .workspace-actions .button-primary,
  .present-shell .workspace-actions .button-secondary,
  .present-shell .workspace-actions .button-ghost {
    width: 100%;
    justify-content: center;
  }

  .present-shell .upload-row {
    grid-template-columns: 1fr;
  }
}

/* Viewer V3: light AvaSeminar skin */
.viewer-shell {
  --viewer-v3-bg: #fbfbf7;
  --viewer-v3-surface: rgba(255, 255, 255, 0.78);
  --viewer-v3-surface-strong: rgba(255, 255, 255, 0.92);
  --viewer-v3-text: #121212;
  --viewer-v3-muted: #68645d;
  --viewer-v3-line: rgba(18, 18, 18, 0.1);
  --viewer-v3-line-strong: rgba(18, 18, 18, 0.16);
  --viewer-v3-accent: #2f5cff;
  --viewer-v3-accent-soft: rgba(47, 92, 255, 0.08);
  color: var(--viewer-v3-text);
  background:
    radial-gradient(circle at top left, rgba(255, 147, 92, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(36, 87, 245, 0.12), transparent 32%),
    linear-gradient(180deg, #fcf8f1 0%, #f7f3eb 46%, #fffdf8 100%);
}

.viewer-shell .present-topbar {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--viewer-v3-line);
}

.viewer-shell .brand strong,
.viewer-shell .viewer-head h1,
.viewer-shell .viewer-qa-popup-head h2,
.viewer-shell .section-copy h2 {
  color: var(--viewer-v3-text);
}

.viewer-shell .brand small,
.viewer-shell .topbar-actions a,
.viewer-shell .hint,
.viewer-shell .section-copy p,
.viewer-shell .project-meta,
.viewer-shell #viewer-meta {
  color: var(--viewer-v3-muted);
}

.viewer-shell .card,
.viewer-shell .viewer-stage,
.viewer-shell .viewer-assistant-card,
.viewer-shell .scene-button {
  color: var(--viewer-v3-text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--viewer-v3-line);
  box-shadow: 0 14px 34px rgba(82, 68, 38, 0.08);
}

.viewer-shell .slide-stage {
  border-color: var(--viewer-v3-line);
  background:
    radial-gradient(circle at top left, rgba(47, 92, 255, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.76);
}

.viewer-shell .button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--viewer-v3-accent), #5b87ff);
  box-shadow: 0 18px 34px rgba(36, 87, 245, 0.24);
}

.viewer-shell .button-secondary,
.viewer-shell .button-ghost,
.viewer-shell .scene-button,
.viewer-shell .panel-close {
  color: var(--viewer-v3-text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--viewer-v3-line);
}

.viewer-shell .scene-button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--viewer-v3-accent), #7d8eff);
  border-color: transparent;
}

.viewer-shell .viewer-intro {
  background:
    radial-gradient(circle at top right, rgba(47, 92, 255, 0.06), transparent 28%),
    rgba(255, 255, 255, 0.94);
  border-color: var(--viewer-v3-line-strong);
}

.viewer-shell .viewer-assistant-card {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--viewer-v3-line);
  border-radius: 0;
  box-shadow: none;
}

.viewer-shell .eyebrow {
  background: rgba(36, 87, 245, 0.08);
  color: var(--viewer-v3-accent);
  border: 1px solid rgba(36, 87, 245, 0.08);
}

.viewer-shell .viewer-head h1 {
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  letter-spacing: -0.04em;
}

@media (max-width: 1120px) {
  .viewer-shell .viewer-layout {
    grid-template-columns: 1fr;
  }

  .viewer-assistant-card {
    min-height: auto;
    padding: 18px 0 0 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .viewer-shell .present-topbar,
  .viewer-shell .viewer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-shell .present-layout,
  .viewer-shell .viewer-layout {
    padding: 20px 16px 28px;
  }

  .viewer-shell .viewer-qa-popup {
    padding: 12px;
  }

  .viewer-shell .viewer-qa-popup-panel {
    width: 100%;
    height: 88vh;
    padding: 14px;
    border-radius: 22px;
  }

  .viewer-shell .viewer-qa-popup-head {
    flex-direction: column;
  }

  .viewer-shell .brand img {
    width: 156px;
    height: 40px;
  }
}

/* Studio polish v4: slimmer, cleaner builder shell */
.present-shell {
  --studio-v4-bg: #fbf8f2;
  --studio-v4-sidebar: #f4f1ea;
  --studio-v4-surface: rgba(255, 255, 255, 0.82);
  --studio-v4-surface-strong: rgba(255, 255, 255, 0.94);
  --studio-v4-text: #111217;
  --studio-v4-muted: #6c6871;
  --studio-v4-line: rgba(18, 18, 18, 0.09);
  --studio-v4-line-strong: rgba(18, 18, 18, 0.14);
  --studio-v4-accent: #3157ff;
}

.present-shell {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 224, 200, 0.58), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(216, 224, 255, 0.74), transparent 30%),
    linear-gradient(120deg, #fcf8f1 0%, #f7f5fb 64%, #f3f7ff 100%);
  color: var(--studio-v4-text);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.present-shell button,
.present-shell input,
.present-shell select,
.present-shell textarea {
  font-family: inherit;
}

.present-shell .present-topbar {
  min-height: 68px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid var(--studio-v4-line);
  backdrop-filter: blur(16px);
}

.present-shell .brand {
  width: clamp(208px, 21vw, 260px);
  height: 58px;
  overflow: hidden;
}

.present-shell .brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.present-shell .topbar-actions {
  gap: 14px;
}

.present-shell .topbar-actions a {
  padding: 0;
  color: var(--studio-v4-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.present-shell .topbar-actions a:hover {
  color: var(--studio-v4-text);
  background: transparent;
}

.present-shell .present-layout {
  grid-template-columns: 286px minmax(0, 1fr);
  max-width: 1480px;
  gap: 0;
  padding: 0;
  min-height: calc(100vh - 68px);
}

.present-shell .studio-sidebar {
  position: sticky;
  top: 68px;
  gap: 20px;
  min-height: calc(100vh - 68px);
  padding: 22px 18px 28px;
  background: var(--studio-v4-sidebar);
  border-right: 1px solid var(--studio-v4-line);
}

.present-shell .studio-sidebar-section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--studio-v4-line);
}

.present-shell .studio-sidebar-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.present-shell .studio-sidebar-intro {
  gap: 10px;
}

.present-shell .studio-sidebar-divider {
  height: 1px;
  margin: 6px 0 0;
  background: var(--studio-v4-line);
}

.present-shell .studio-intro-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.present-shell .sidebar-label {
  margin: 0;
  color: var(--studio-v4-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.present-shell .studio-sidebar h1,
.present-shell .studio-sidebar h2,
.present-shell .workspace-summary-copy h2,
.present-shell .studio-empty h2,
.present-shell .viewer-head h1,
.present-shell .viewer-qa-popup-head h2 {
  font-family: Inter, "Noto Sans TC", system-ui, sans-serif;
  letter-spacing: -0.04em;
}

.present-shell .studio-sidebar h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.1;
}

.present-shell .studio-sidebar h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.present-shell .sidebar-section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.present-shell .sidebar-copy,
.present-shell .hint,
.present-shell .navigator-empty,
.present-shell .project-meta,
.present-shell .scene-button-copy span,
.present-shell .create-panel-copy,
.present-shell .workspace-section-head p,
.present-shell .studio-empty p,
.present-shell .viewer-setup-status,
.present-shell #workspace-meta,
.present-shell #viewer-meta {
  color: var(--studio-v4-muted);
}

.present-shell .sidebar-copy,
.present-shell .create-panel-copy,
.present-shell .workspace-section-head p,
.present-shell .studio-empty p {
  line-height: 1.58;
}

.present-shell .sidebar-create-button {
  width: 100%;
  justify-self: stretch;
}

.present-shell #navigator-card {
  background: transparent;
  border: 0;
  padding: 0;
}

.present-shell .navigator-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.present-shell .navigator-tab {
  min-height: 38px;
  padding: 0 12px;
  color: var(--studio-v4-muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--studio-v4-line);
  border-radius: 12px;
}

.present-shell .navigator-tab.active {
  color: var(--studio-v4-text);
  background: var(--studio-v4-surface-strong);
  border-color: var(--studio-v4-line-strong);
}

.present-shell .project-list,
.present-shell .scene-list {
  gap: 8px;
  max-height: 212px;
  padding-right: 2px;
}

.present-shell .project-item,
.present-shell .scene-button {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid transparent;
  border-radius: 14px;
}

.present-shell .project-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.present-shell .project-item.active,
.present-shell .scene-button.active {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--studio-v4-line);
  box-shadow: 0 12px 24px rgba(18, 18, 18, 0.05);
}

.present-shell .project-item strong,
.present-shell .scene-button strong {
  color: var(--studio-v4-text);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .project-delete-button {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--studio-v4-line);
}

.present-shell .studio-main {
  padding: 26px 42px 56px;
  background: transparent;
}

.present-shell .create-panel,
.present-shell .studio-empty,
.present-shell .workspace-head,
.present-shell .workspace-panel {
  margin: 0;
  padding: 0 0 28px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--studio-v4-line);
  border-radius: 0;
  box-shadow: none;
}

.present-shell .studio-empty,
.present-shell .workspace-head,
.present-shell .workspace-panel {
  margin-top: 26px;
}

.present-shell .workspace-head {
  margin-top: 0;
}

.present-shell .workspace-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.present-shell .workspace-summary-copy {
  display: grid;
  gap: 8px;
  max-width: 920px;
}

.present-shell .workspace-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.present-shell .workspace-summary-copy h2 {
  font-size: clamp(1.8rem, 2.7vw, 2.7rem);
  line-height: 0.98;
}

.present-shell #workspace-meta {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.06);
}

.present-shell .workspace-toolbar {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.present-shell .workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.present-shell .workspace-actions-secondary {
  justify-content: flex-end;
}

.present-shell .workspace-more-actions {
  display: grid;
  justify-items: end;
}

.present-shell .workspace-more-actions > summary {
  list-style: none;
}

.present-shell .workspace-more-actions > summary::-webkit-details-marker {
  display: none;
}

.present-shell .workspace-more-actions-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--studio-v4-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.05);
}

.present-shell .button-primary,
.present-shell .button-secondary,
.present-shell .button-ghost,
.present-shell .panel-close {
  min-height: 38px;
  padding: 0 14px;
  font-family: inherit;
  border-radius: 12px;
  box-shadow: none;
}

.present-shell .button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--studio-v4-accent), #6f7eff);
}

.present-shell .button-secondary,
.present-shell .button-ghost,
.present-shell .panel-close {
  color: var(--studio-v4-text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--studio-v4-line);
}

.present-shell .button-ghost {
  color: var(--studio-v4-accent);
}

.present-shell .button-danger {
  color: #b74343;
  border-color: rgba(183, 67, 67, 0.24);
}

.present-shell .upload-row {
  grid-template-columns: minmax(220px, 320px) minmax(340px, 1fr);
  gap: 18px;
}

.present-shell .file-drop {
  min-height: 184px;
  justify-items: center;
  text-align: center;
  border: 1px solid var(--studio-v4-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(140, 203, 255, 0.28), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 246, 255, 0.96));
}

.present-shell .file-drop-name {
  color: var(--studio-v4-text);
}

.present-shell .file-drop-icon {
  width: 56px;
  height: 56px;
  font-size: 2.15rem;
}

.present-shell .field input,
.present-shell .field select,
.present-shell .field textarea {
  padding: 12px 14px;
  color: var(--studio-v4-text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--studio-v4-line);
  border-radius: 16px;
}

.present-shell .field textarea {
  min-height: 300px;
  line-height: 1.6;
}

.present-shell .create-panel-advanced,
.present-shell .viewer-setup-advanced {
  border-color: var(--studio-v4-line);
  background: rgba(255, 255, 255, 0.66);
}

.present-shell .active-scene-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
}

.present-shell .scene-preview {
  overflow: hidden;
  border: 1px solid var(--studio-v4-line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8f7fb);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.05);
}

.present-shell .scene-editor-panel,
.present-shell .scene-preview-panel {
  gap: 12px;
}

.present-shell .cohost-editor-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.present-shell .scene-editor-head strong {
  font-size: 1.35rem;
}

.present-shell .scene-status {
  color: var(--studio-v4-accent);
  font-size: 0.9rem;
}

.present-shell .cohost-editor {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--studio-v4-line);
}

.present-shell .cohost-editor-status {
  margin: 0;
}

.present-shell .cohost-editor-hint {
  margin: 0;
  max-width: 78ch;
}

.present-shell .cohost-message-list {
  display: grid;
  gap: 10px;
}

.present-shell .cohost-message-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--studio-v4-line);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(18, 18, 18, 0.04);
}

.present-shell .cohost-message-card-head {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.present-shell .cohost-message-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.present-shell .cohost-purpose-badge,
.present-shell .cohost-timing-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.06);
  color: var(--studio-v4-muted);
  font-size: 12px;
  font-weight: 700;
}

.present-shell .cohost-emoji-field {
  gap: 6px;
}

.present-shell .cohost-emoji-field input,
.present-shell .cohost-message-card textarea {
  background: rgba(255, 255, 255, 0.9);
}

.present-shell .cohost-message-card textarea {
  min-height: 92px;
}

.present-shell .cohost-empty-state {
  margin: 0;
  color: var(--studio-v4-muted);
}

.present-shell .workspace-panel.viewer-setup-card,
.present-shell .workspace-panel.project-settings-card,
.present-shell .workspace-panel.avatar-settings-card {
  padding-top: 0;
}

.present-shell .viewer-setup-grid,
.present-shell .create-panel-advanced-grid,
.present-shell .workspace-settings,
.present-shell .workspace-narrative-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.present-shell .workspace-settings {
  gap: 14px;
}

.present-shell .workspace-avatar-settings {
  grid-template-columns: minmax(0, 1fr);
}

.present-shell .field-readonly {
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--studio-v4-line);
}

.present-shell .field-readonly strong {
  color: var(--studio-v4-text);
}

.present-shell .workspace-voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.present-shell .preview-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 14px;
}

.present-shell .preview-launch-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--studio-v4-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(71, 93, 255, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(245, 130, 88, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(82, 68, 38, 0.06);
}

.present-shell .preview-launch-card-primary {
  border-color: rgba(71, 93, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 236, 0.96)),
    radial-gradient(circle at top right, rgba(71, 93, 255, 0.16), transparent 34%);
}

.present-shell .preview-launch-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--studio-v4-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.present-shell .preview-launch-meta {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.present-shell .preview-launch-meta span {
  color: var(--studio-v4-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.present-shell .preview-launch-meta strong {
  font-size: 1rem;
  line-height: 1.2;
}

.present-shell .workspace-panel[hidden],
.present-shell .navigator-panel[hidden],
.present-shell #navigator-card[hidden],
.present-shell #create-panel[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .present-shell .present-layout {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .present-shell .upload-row,
  .present-shell .active-scene-layout,
  .present-shell .viewer-setup-grid,
  .present-shell .create-panel-advanced-grid,
  .present-shell .workspace-settings,
  .present-shell .workspace-narrative-settings,
  .present-shell .workspace-voice-grid,
  .present-shell .preview-grid {
    grid-template-columns: 1fr;
  }

  .present-shell .workspace-summary {
    grid-template-columns: 1fr;
  }

  .present-shell .workspace-toolbar {
    justify-items: start;
  }

  .present-shell .workspace-actions {
    justify-content: flex-start;
  }

  .present-shell .viewer-setup-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .present-shell .present-layout {
    grid-template-columns: 1fr;
  }

  .present-shell .present-topbar {
    padding: 12px 18px;
  }

  .present-shell .brand img {
    width: 100%;
    height: 100%;
  }

  .present-shell .studio-sidebar {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--studio-v4-line);
  }

  .present-shell .studio-main {
    padding: 22px 18px 42px;
  }
}

@media (min-width: 1181px) {
  .present-shell .scene-editor-panel.editor {
    min-height: 0;
    max-height: calc(100dvh - 12rem);
    overflow: hidden;
  }

  .present-shell .scene-builder-panel:not([hidden]) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
  }

  .present-shell .scene-editor-tools.tool-row,
  .present-shell .cohost-editor-tools {
    flex: 0 0 auto;
  }

  .present-shell .narration-field {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .present-shell .narration-field textarea,
  .present-shell #active-scene-script {
    flex: 1 1 auto;
    min-height: 0;
  }

  .present-shell #active-scene-script {
    flex: 0 0 auto;
    height: 300px;
    min-height: 204px;
  }

  .present-shell .narration-field {
    margin-top: 0;
  }

  .present-shell .scene-editor-tools.tool-row {
    margin-top: 10px;
  }

  .present-shell .knowledge-editor-field {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .present-shell .cohost-message-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .present-shell .present-topbar,
  .present-shell .workspace-section-head,
  .present-shell .create-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .present-shell .topbar-actions,
  .present-shell .workspace-actions,
  .present-shell .upload-actions {
    width: 100%;
  }

  .present-shell .workspace-actions .button-primary,
  .present-shell .workspace-actions .button-secondary,
  .present-shell .workspace-actions .button-ghost,
  .present-shell .upload-actions .button-primary,
  .present-shell .upload-actions .button-ghost {
    width: 100%;
  }

  .present-shell .brand img {
    width: 100%;
    height: 100%;
  }
}

.present-shell .publish-widget-config {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(72, 101, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.present-shell .publish-widget-config-head,
.present-shell .publish-widget-preview-head,
.present-shell .publish-widget-embed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.present-shell .publish-widget-config-head h4 {
  margin: 2px 0 0;
  color: #15151b;
  font-size: 17px;
  line-height: 1.2;
}

.present-shell .publish-widget-config-head > span,
.present-shell .publish-widget-preview-head > div > span,
.present-shell .publish-widget-embed-head > div > span {
  color: #4b5262;
  font-size: 11px;
  font-weight: 700;
}

.present-shell .publish-widget-config-copy,
.present-shell .publish-widget-preview-head p,
.present-shell .publish-widget-embed-head p {
  margin: 0;
  color: #687080;
  font-size: 12px;
  line-height: 1.45;
}

.present-shell .publish-widget-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2430;
  font-size: 13px;
  font-weight: 700;
}

.present-shell .publish-widget-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--studio-v3-accent);
}

.present-shell .publish-widget-fields,
.present-shell .publish-widget-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.present-shell .publish-widget-copy-fields,
.present-shell .publish-widget-field {
  display: grid;
  gap: 6px;
}

.present-shell .publish-widget-copy-fields {
  gap: 10px;
}

.present-shell .publish-widget-field > span,
.present-shell .publish-widget-disclosure > span {
  color: #4b5262;
  font-size: 11px;
  font-weight: 700;
}

.present-shell .publish-widget-field input,
.present-shell .publish-widget-field select,
.present-shell .publish-widget-field textarea {
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(31, 41, 55, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #171721;
  font-size: 12px;
  line-height: 1.4;
}

.present-shell .publish-widget-field textarea {
  min-height: 58px;
  resize: vertical;
}

.present-shell .publish-widget-field input:focus-visible,
.present-shell .publish-widget-field select:focus-visible,
.present-shell .publish-widget-field textarea:focus-visible,
.present-shell .publish-widget-toggle input:focus-visible,
.present-shell .publish-widget-preview-switch button:focus-visible,
.present-shell .publish-widget-actions button:focus-visible,
.present-shell .publish-widget-embed button:focus-visible {
  outline: 3px solid rgba(49, 87, 255, 0.24);
  outline-offset: 2px;
}

.present-shell .publish-widget-disclosure {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(49, 87, 255, 0.06);
}

.present-shell .publish-widget-disclosure strong {
  color: #293a69;
  font-size: 12px;
  line-height: 1.4;
}

.present-shell .publish-widget-preview-head {
  align-items: center;
  padding-top: 2px;
}

.present-shell .publish-widget-preview-head > div:first-child,
.present-shell .publish-widget-embed-head > div:first-child {
  display: grid;
  gap: 3px;
}

.present-shell .publish-widget-preview-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.present-shell .publish-widget-preview-switch button.active {
  color: #fff;
  background: var(--studio-v3-accent);
  border-color: var(--studio-v3-accent);
}

.present-shell .publish-widget-preview {
  min-width: 0;
}

.present-shell .entry-widget-local-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(49, 87, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.present-shell .entry-widget-local-preview-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.present-shell .entry-widget-local-preview-kicker {
  min-height: 1.2em;
  color: var(--studio-v3-accent);
  font-size: 10px;
  font-weight: 700;
}

.present-shell .entry-widget-local-preview-copy strong {
  color: #15151b;
  font-size: 15px;
  line-height: 1.15;
}

.present-shell .entry-widget-local-preview-copy span:last-child,
.present-shell .entry-widget-local-preview small {
  color: #687080;
  font-size: 11px;
  line-height: 1.35;
}

.present-shell .entry-widget-local-preview-timing {
  min-width: 62px;
  color: var(--studio-v3-accent);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.present-shell .entry-widget-local-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.present-shell .entry-widget-local-preview small {
  grid-column: 1 / -1;
}

.present-shell .publish-widget-embed {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.78);
}

.present-shell .publish-widget-embed textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #171721;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.45;
  resize: vertical;
}

.present-shell .publish-widget-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .present-shell .publish-widget-config-head,
  .present-shell .publish-widget-preview-head,
  .present-shell .publish-widget-embed-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .present-shell .publish-widget-fields,
  .present-shell .publish-widget-copy-grid,
  .present-shell .entry-widget-local-preview {
    grid-template-columns: 1fr;
  }

  .present-shell .publish-widget-preview-switch,
  .present-shell .entry-widget-local-preview-actions,
  .present-shell .publish-widget-actions {
    width: 100%;
    justify-content: stretch;
  }

  .present-shell .publish-widget-preview-switch button,
  .present-shell .entry-widget-local-preview-actions button,
  .present-shell .publish-widget-actions button {
    flex: 1 1 150px;
  }

  .present-shell .entry-widget-local-preview-timing {
    min-width: 0;
    text-align: left;
  }
}

.present-shell .publish-widget-config {
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
}

.present-shell .publish-widget-config-head {
  align-items: center;
  gap: 10px;
}

.present-shell .publish-widget-config-head h4 {
  margin-top: 1px;
  font-size: 15px;
}

.present-shell .publish-widget-config-head > .publish-widget-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.06);
  color: #666d7b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.present-shell .publish-widget-status.is-warning {
  background: rgba(208, 126, 30, 0.1);
  color: #9a5b12;
}

.present-shell .publish-widget-summary-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.present-shell .publish-widget-summary-body .publish-widget-config-copy {
  margin: 0;
}

.present-shell .publish-widget-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #4b5262;
  font-size: 11px;
  font-weight: 700;
}

.present-shell .publish-widget-summary-meta span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 7px;
  background: rgba(49, 87, 255, 0.05);
}

.present-shell .publish-widget-summary-headline {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #15151b;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .publish-widget-summary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.present-shell .publish-widget-summary-actions button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 14px;
}

.present-shell .publish-widget-summary-actions .publish-widget-toggle {
  margin-left: auto;
}

.present-shell .publish-widget-heading-with-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
}

.present-shell .publish-widget-heading-with-info h4 {
  min-width: 0;
}

.present-shell .custom-voice-title-row h2 {
  min-width: 0;
  margin: 0;
}

.present-shell .publish-widget-info-button {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(49, 87, 255, 0.24);
  border-radius: 50%;
  background: rgba(49, 87, 255, 0.06);
  color: var(--studio-v3-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.present-shell .publish-widget-info-button:hover,
.present-shell .publish-widget-info-button[aria-expanded="true"] {
  background: rgba(49, 87, 255, 0.13);
}

.present-shell .publish-widget-info-button:focus-visible {
  outline: 3px solid rgba(49, 87, 255, 0.24);
  outline-offset: 2px;
}

.present-shell .publish-widget-tooltip {
  position: fixed;
  z-index: 1000;
  top: auto;
  left: auto;
  width: min(260px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 10px;
  background: #172542;
  box-shadow: 0 8px 18px rgba(18, 31, 61, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.present-shell #cta-widget-config .publish-widget-heading-with-info {
  position: static;
}

.present-shell #cta-widget-config .publish-widget-tooltip {
  max-width: 260px;
}

.present-shell .entry-widget-modal-panel {
  width: min(960px, 100%);
  max-height: min(90vh, 780px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.present-shell .cta-widget-modal-panel {
  width: min(900px, 100%);
  max-height: min(86vh, 720px);
  height: auto;
  min-height: 0;
  overflow: auto;
}

.present-shell .cta-widget-modal-panel .voice-preview-popup-head {
  margin-bottom: 0;
}

.present-shell .cta-widget-modal-panel .voice-preview-popup-head h2 {
  margin-bottom: 5px;
  font-size: 25px;
  letter-spacing: 0;
}

.present-shell .cta-widget-modal-body {
  min-height: 0;
  height: auto;
  overflow: visible;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 16px;
  padding-right: 3px;
}

.present-shell .cta-widget-modal-fields {
  gap: 10px;
  height: auto;
  min-height: 0;
  align-self: start;
  align-content: start;
  align-items: start;
}

.present-shell .cta-widget-modal-preview {
  gap: 9px;
  padding: 11px;
}

.present-shell .cta-widget-generation {
  display: block;
  height: auto;
  min-height: 0;
  align-self: start;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 0;
  background: transparent;
}

.present-shell #cta-widget-preview-video {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  left: -10000px !important;
  top: -10000px !important;
}

.present-shell .cta-widget-generation .hint {
  margin: 4px 0 7px;
  font-size: 11px;
}

.present-shell .cta-widget-preview-card {
  min-height: 175px;
  padding: 12px;
}

.present-shell .cta-widget-preview-placeholder {
  color: #687080;
}

.present-shell .cta-widget-generation-error {
  margin: 6px 0 0;
  color: #a32929;
  font-size: 12px;
  line-height: 1.4;
}

.present-shell .entry-widget-modal-panel .voice-preview-popup-head {
  margin-bottom: 0;
}

.present-shell .entry-widget-modal-panel .voice-preview-popup-head h2 {
  margin-bottom: 6px;
  font-size: 25px;
  letter-spacing: 0;
}

.present-shell .entry-widget-modal-body {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 16px;
  padding-right: 4px;
}

.present-shell .entry-widget-modal-fields,
.present-shell .entry-widget-modal-preview {
  min-width: 0;
}

.present-shell .entry-widget-modal-fields {
  display: grid;
  align-content: start;
  gap: 12px;
}

.present-shell .entry-widget-modal-preview {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.7);
}

.present-shell .entry-widget-modal-preview .publish-widget-preview-head {
  display: grid;
  gap: 10px;
  padding-top: 0;
}

.present-shell .entry-widget-modal-preview .publish-widget-preview-switch {
  justify-content: flex-start;
}

.present-shell .entry-widget-modal-preview .publish-widget-preview-switch button {
  white-space: normal;
}

.present-shell .entry-widget-modal-preview .entry-widget-local-preview {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
}

.present-shell .entry-widget-modal-preview .entry-widget-local-preview-timing {
  min-width: 0;
  text-align: left;
}

.present-shell .entry-widget-modal-preview .entry-widget-local-preview-actions {
  justify-content: flex-start;
}

.present-shell .entry-widget-modal-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: #687080;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.present-shell #cta-widget-modal #cta-widget-modal-status::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #3157ff;
  content: "";
  animation: cta-widget-status-pulse 1.35s ease-in-out infinite;
}

.present-shell .entry-widget-modal-status.is-error {
  color: #a32929;
}

.present-shell #cta-widget-modal #cta-widget-generation-error {
  font-size: 12px;
  line-height: 1.4;
}

.present-shell .entry-widget-modal-actions {
  margin-top: 0;
}

.present-shell .entry-widget-appearance-panel {
  width: min(460px, 100%);
}

.present-shell .entry-widget-appearance-options {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.present-shell .entry-widget-appearance-options legend {
  margin-bottom: 3px;
  color: #252b3b;
  font-size: 13px;
  font-weight: 760;
}

.present-shell .entry-widget-appearance-options label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(20, 20, 30, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #252b3b;
  font-size: 13px;
  cursor: pointer;
}

.present-shell .entry-widget-appearance-options label:has(input:checked) {
  border-color: rgba(49, 87, 255, 0.45);
  background: rgba(238, 243, 255, 0.9);
}

@keyframes cta-widget-status-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .present-shell .entry-widget-modal-body {
    grid-template-columns: 1fr;
  }

  .present-shell .entry-widget-modal-preview {
    order: 2;
  }
}

@media (max-width: 520px) {
  .present-shell .publish-widget-config-head,
  .present-shell .publish-widget-summary-actions {
    align-items: flex-start;
  }

  .present-shell .publish-widget-summary-actions .publish-widget-toggle {
    margin-left: 0;
  }

  .present-shell .publish-widget-tooltip {
    left: auto;
    right: 0;
  }

  .present-shell .entry-widget-modal-panel {
    max-height: 92vh;
    padding: 16px;
  }

  .present-shell .entry-widget-modal-panel .voice-preview-popup-head h2 {
    font-size: 21px;
  }

  .present-shell .entry-widget-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Keep the Studio sample close to the compact public banner. */
.present-shell .entry-widget-local-preview {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "copy timing actions"
    "disclosure disclosure disclosure";
  gap: 8px 10px;
  padding: 12px 13px 9px 15px;
  background: linear-gradient(115deg, #edf3ff 0%, #ffffff 56%, #eef1ff 100%);
  border-color: rgba(49, 87, 255, 0.16);
  box-shadow: 0 6px 16px rgba(31, 55, 108, 0.1);
}

.present-shell .entry-widget-local-preview.size-medium {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy timing"
    "actions actions"
    "disclosure disclosure";
  max-width: 70%;
  gap: 7px 9px;
}

.present-shell .entry-widget-local-preview.size-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy timing"
    "actions actions"
    "disclosure disclosure";
  max-width: 560px;
  gap: 5px 8px;
  padding: 9px 10px 7px 11px;
}

.present-shell .entry-widget-local-preview-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.present-shell .entry-widget-local-preview-label {
  order: -2;
  color: #10243e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.present-shell .entry-widget-local-preview-kicker {
  order: -1;
  min-height: 0;
  color: #3157ff;
  font-size: 9px;
  line-height: 1.2;
}

.present-shell .entry-widget-local-preview-kicker:empty {
  display: none;
}

.present-shell .entry-widget-local-preview-copy strong {
  order: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.12;
}

.present-shell .entry-widget-local-preview-copy span:last-child {
  order: 2;
  font-size: 10px;
  line-height: 1.3;
}

.present-shell .entry-widget-local-preview-timing {
  grid-area: timing;
  min-width: 70px;
  padding: 5px 8px;
  color: #10243e;
  background: rgba(255, 255, 255, 0.48);
  border-left: 1px solid rgba(49, 87, 255, 0.14);
  border-right: 1px solid rgba(49, 87, 255, 0.14);
  font-size: 16px;
  line-height: 1;
}

.present-shell .entry-widget-local-preview-actions {
  grid-area: actions;
  align-items: center;
  gap: 5px;
}

.present-shell .entry-widget-local-preview-actions button {
  min-height: 33px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
}

.present-shell .entry-widget-local-preview small {
  grid-area: disclosure;
  padding-top: 6px;
  border-top: 1px solid rgba(49, 87, 255, 0.1);
  font-size: 9px;
  line-height: 1.3;
}

.present-shell .entry-widget-modal-preview .entry-widget-local-preview {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy timing"
    "actions actions"
    "disclosure disclosure";
  align-items: center;
}

.present-shell .entry-widget-modal-preview .entry-widget-local-preview.size-medium,
.present-shell .entry-widget-modal-preview .entry-widget-local-preview.size-compact {
  max-width: 100%;
}

.present-shell .entry-widget-modal-preview .entry-widget-local-preview-actions {
  justify-content: flex-start;
}

/* Keep every primary sidebar destination on the same text baseline. */
.present-shell .workspace-tab strong,
.present-shell .sidebar-manage-link > span:last-child {
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
}

.present-shell .sidebar-manage-link {
  align-items: center;
  gap: 10px;
}

/* Keep the empty-workspace content and divider in the same compact column. */
.present-shell .studio-empty {
  width: min(100%, 460px);
  max-width: 460px !important;
  gap: 12px !important;
}

.present-shell .studio-empty-actions {
  margin-top: 2px;
}

.present-shell .deep-dive-setup-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.present-shell .deep-dive-setup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 28, 38, 0.28);
  backdrop-filter: blur(3px);
}

.present-shell .deep-dive-setup-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(520px, calc(100vw - 32px));
  height: min(500px, calc(100vh - 40px));
  min-height: 0;
  gap: 12px;
  overflow: hidden;
  padding: 20px;
  color: var(--studio-v3-text);
  background: #fff;
  border: 1px solid rgba(72, 101, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(20, 26, 48, 0.22);
}

.present-shell .deep-dive-setup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.present-shell .deep-dive-setup-head h2 {
  margin: 4px 0 0;
  color: var(--studio-v3-text);
  font-size: 1.45rem;
  line-height: 1.08;
}

.present-shell .deep-dive-setup-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--studio-v3-muted);
  background: rgba(24, 31, 53, 0.06);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.3rem;
}

.present-shell .deep-dive-setup-copy {
  margin: -7px 0 0;
  color: var(--studio-v3-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.present-shell .deep-dive-setup-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding-right: 4px;
  overflow: hidden;
  scrollbar-gutter: stable;
}

.present-shell .deep-dive-setup-workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 164px;
  min-height: 164px;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  background: rgba(248, 249, 255, 0.84);
  border: 1px solid var(--studio-v3-line);
  border-radius: 15px;
}

.present-shell .deep-dive-setup-web-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.present-shell .deep-dive-setup-workspace[data-deep-dive-state="materials"] .deep-dive-setup-web-state {
  display: none;
}

.present-shell .deep-dive-setup-choices {
  display: grid;
  gap: 9px;
}

.present-shell .deep-dive-setup-choice {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 14px;
  color: var(--studio-v3-text);
  text-align: left;
  background: #fff;
  border: 1px solid var(--studio-v3-line);
  border-radius: 14px;
  cursor: pointer;
}

.present-shell .deep-dive-setup-choice:hover,
.present-shell .deep-dive-setup-choice:focus-visible {
  border-color: rgba(72, 101, 255, 0.42);
}

.present-shell .deep-dive-setup-choice.is-selected {
  background: rgba(72, 101, 255, 0.055);
  border-color: var(--studio-v3-accent);
  box-shadow: 0 0 0 2px rgba(72, 101, 255, 0.1);
}

.present-shell .deep-dive-setup-choice-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--studio-v3-accent);
  background: rgba(72, 101, 255, 0.1);
  border-radius: 10px;
  font-size: 1.25rem;
}

.present-shell .deep-dive-setup-choice-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.present-shell .deep-dive-setup-choice-copy strong {
  font-size: 0.9rem;
}

.present-shell .deep-dive-setup-choice-copy small {
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.present-shell .deep-dive-setup-choice-badge {
  align-self: start;
  padding: 4px 7px;
  color: var(--studio-v3-accent);
  background: rgba(72, 101, 255, 0.09);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.present-shell .supplemental-materials-control {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 5px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.present-shell .supplemental-materials-materials-note {
  margin: 0;
  color: var(--studio-v3-muted);
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .supplemental-material-drop {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title action"
    "icon alternate action"
    "icon meta action";
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--studio-v3-text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px dashed rgba(72, 101, 255, 0.35);
  border-radius: 13px;
  cursor: default;
  text-align: left;
}

.present-shell .supplemental-material-drop.drag-over {
  background: rgba(72, 101, 255, 0.08);
  border-color: var(--studio-v3-accent);
}

.present-shell .supplemental-material-drop > strong {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .supplemental-material-drop > span:not(.supplemental-material-drop-icon) {
  grid-area: alternate;
  color: var(--studio-v3-muted);
  font-size: 0.78rem;
}

.present-shell .supplemental-material-drop > small {
  grid-area: meta;
  margin-top: 2px;
  color: var(--studio-v3-muted);
  font-size: 0.7rem;
}

.present-shell .supplemental-material-drop-icon {
  grid-area: icon;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--studio-v3-accent);
  background: rgba(72, 101, 255, 0.1);
  border-radius: 9px;
  font-size: 1.1rem;
}

.present-shell .supplemental-materials-add {
  grid-area: action;
  min-height: 32px;
  margin-top: 0;
  padding: 0 10px;
  font-size: 0.74rem;
}

.present-shell .supplemental-materials-add[hidden] {
  display: none;
}

.present-shell .supplemental-materials-help {
  min-height: 0;
  color: var(--studio-v3-muted);
}

.present-shell .supplemental-materials-help.is-success {
  color: #278a61;
  font-weight: 700;
}

.present-shell .supplemental-materials-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.present-shell .supplemental-materials-clear-all {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  color: #6a6870;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 1rem;
  line-height: 1;
}

.present-shell .supplemental-materials-clear-all:hover,
.present-shell .supplemental-materials-clear-all:focus-visible {
  color: #a45c5c;
  background: rgba(164, 92, 92, 0.08);
}

.present-shell .supplemental-materials-clear-all[hidden] {
  display: none;
}

.present-shell .supplemental-materials-clear-all svg {
  display: block;
  width: 15px;
  height: 15px;
}

.present-shell .supplemental-materials-list {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 0;
  max-height: 48px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.present-shell .supplemental-material-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 24px;
  padding: 4px 7px;
  color: var(--studio-v3-text);
  background: rgba(239, 251, 246, 0.84);
  border: 1px solid rgba(39, 138, 97, 0.18);
  border-radius: 10px;
  font-size: 0.72rem;
}

.present-shell .supplemental-material-row-status {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: #278a61;
  background: rgba(39, 138, 97, 0.12);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.present-shell .supplemental-material-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .supplemental-material-row-size {
  color: var(--studio-v3-muted);
  white-space: nowrap;
}

.present-shell .supplemental-material-remove {
  flex: 0 0 auto;
  min-height: 21px;
  width: 21px;
  padding: 0;
  color: var(--studio-v3-muted);
  border: 0;
  font-size: 0.9rem;
}

.present-shell .supplemental-materials-help {
  margin: 0;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.present-shell .deep-dive-setup-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.present-shell .deep-dive-setup-actions .button-primary {
  min-width: 88px;
}

@media (max-width: 640px) {
  .present-shell .deep-dive-setup-panel {
    width: min(520px, calc(100vw - 32px));
    height: min(520px, calc(100vh - 32px));
    padding: 20px;
  }

  .present-shell .deep-dive-setup-content {
    grid-template-rows: auto minmax(0, 1fr);
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .present-shell .entry-widget-local-preview,
  .present-shell .entry-widget-local-preview.size-medium,
  .present-shell .entry-widget-local-preview.size-compact {
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 100%;
  }

  .present-shell .entry-widget-local-preview-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

.present-shell .entry-widget-local-preview-actions button {
    flex: 1 1 130px;
  }
}

.present-shell .video-studio-step1-editor-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.present-shell .video-studio-step1-current-segment {
  display: grid;
  gap: 12px;
  padding: 4px 0 0;
}

.present-shell .video-studio-step1-segment-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.present-shell .video-studio-step1-segment-select-label {
  color: #686d7a;
  font-size: 12px;
  font-weight: 750;
}

.present-shell [data-video-segment-select] {
  min-width: 0;
  max-width: 68%;
  padding: 7px 30px 7px 10px;
  color: #20222c;
  background: #fff;
  border: 1px solid rgba(20, 20, 30, 0.16);
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
}

.present-shell .video-studio-step1-segment-copy,
.present-shell [data-video-segment-text] {
  width: 100%;
  min-height: 160px;
  margin: 0;
  padding: 12px;
  color: #20222c;
  background: #fff;
  border: 1px solid rgba(20, 20, 30, 0.16);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}

.present-shell [data-video-segment-text]:focus {
  border-color: rgba(49, 87, 255, 0.7);
  outline: 3px solid rgba(49, 87, 255, 0.12);
}

.present-shell .video-studio-step1-segment-time {
  justify-self: start;
  padding: 0;
  color: #3157ff;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .present-shell .video-studio-step1-segment-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .present-shell [data-video-segment-select] {
    width: 100%;
    max-width: none;
  }
}

.present-shell .video-studio-step1-segment {
  transition: background-color 160ms ease, border-color 160ms ease;
}

.present-shell .video-studio-step1-segment.is-active {
  padding-left: 10px;
  padding-right: 10px;
  background: rgba(49, 87, 255, 0.06);
  border-top-color: rgba(49, 87, 255, 0.2);
  border-radius: 10px;
}

.present-shell .video-studio-step1-segment-time {
  cursor: pointer;
}

.present-shell .video-studio-step1-segment-time:focus-visible {
  outline: 3px solid rgba(49, 87, 255, 0.16);
  outline-offset: 3px;
  border-radius: 5px;
}

.present-shell .video-studio-knowledge-editor {
  display: grid;
  gap: 12px;
}

.present-shell .video-studio-knowledge-editor textarea {
  width: 100%;
  height: 220px;
  min-height: 0;
  max-height: 220px;
  padding: 12px;
  color: #20222c;
  background: #fff;
  border: 1px solid rgba(20, 20, 30, 0.16);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}

.present-shell .video-studio-knowledge-files {
  margin-top: 0;
  padding-top: 8px;
}

.present-shell .video-studio-knowledge-files-status {
  color: #686d7a;
  font-size: 12px;
  line-height: 1.4;
}

.present-shell .script-generation-allowance-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.present-shell #script-generation-allowance-tooltip-title,
.present-shell #script-generation-allowance-tooltip-copy {
  display: block;
}

.present-shell #script-generation-allowance-tooltip-title {
  margin-bottom: 2px;
  font-weight: 700;
}
