:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f3f1ec;
  background: #171717;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --paper: #eeece5;
  --ink: #171717;
  --red: #ef3828;
  --line: #44433f;
  --muted: #9c9a94;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 760px;
  min-height: 100vh;
  margin: 0;
  background: #171717;
}

[hidden] {
  display: none !important;
}

button,
select {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.app {
  display: flex;
  width: min(100%, 1600px);
  min-height: 100vh;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 clamp(24px, 3.2vw, 48px) 14px;
}

.topbar {
  display: flex;
  height: 72px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #393937;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f3f1ec;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #171717;
  background: var(--red);
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
}

.brand-light {
  margin-left: 4px;
  color: #85837e;
  font-size: 9px;
  letter-spacing: 1.6px;
}

.topbar-note {
  margin: 0;
  color: #aaa8a1;
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  background: var(--red);
  vertical-align: 2px;
}

.edit-button,
.text-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.edit-button {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #55544f;
  color: #f3f1ec;
  background: transparent;
  font-size: 12px;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.edit-button:hover,
.edit-button[aria-pressed="true"] {
  border-color: var(--red);
  color: var(--ink);
  background: var(--red);
}

.elements-toggle[aria-pressed="true"] {
  border-color: var(--red);
  color: var(--red);
}

.present-button {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  color: #171717;
  background: var(--red);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.present-button:hover {
  transform: translateY(-1px);
  background: #ff5948;
}

.presentation {
  display: flex;
  width: min(100%, 1500px);
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  align-self: center;
  padding-top: clamp(8px, 1.5vh, 18px);
  padding-bottom: clamp(4px, 1vh, 12px);
}

.editor-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #393937;
  border-bottom: 1px solid #393937;
  color: #aaa8a1;
}

.file-menu {
  position: relative;
  align-self: stretch;
}

.file-menu summary {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: #f3f1ec;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.file-menu summary::-webkit-details-marker {
  display: none;
}

.file-menu[open] summary,
.file-menu summary:hover {
  color: var(--red);
}

.file-menu-popover {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 50;
  display: grid;
  width: 310px;
  gap: 4px;
  padding: 12px;
  border: 1px solid #4a4944;
  background: #20201e;
  box-shadow: 0 16px 36px rgb(0 0 0 / 40%);
}

.file-menu-title,
.quick-export > span {
  margin: 0;
  color: #929089;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 1px;
}

.file-menu-popover > button {
  display: grid;
  min-height: 40px;
  grid-template-columns: 48px 1fr;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid transparent;
  color: #f3f1ec;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.file-menu-popover > button:hover {
  border-color: #4a4944;
  background: #292927;
}

.file-menu-popover > button strong {
  color: var(--red);
  font-size: 11px;
}

.file-menu-popover > button span {
  color: #c3c0b9;
  font-size: 10px;
}

.file-menu-note {
  margin: 5px 2px 0;
  padding-top: 9px;
  border-top: 1px solid #44433f;
  color: #aaa8a1;
  font-size: 9px;
  line-height: 1.5;
}

.toolbar-separator {
  width: 1px;
  height: 18px;
  background: #44433f;
}

.toolbar-caption {
  color: #929089;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.toolbar-hint {
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}

.toolbar-save-state {
  margin-left: auto;
  color: #77756e;
  font-size: 9px;
}

.workspace {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1400px);
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}

.workspace.is-editor-open {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.workspace.is-assistant-open {
  grid-template-columns: 280px minmax(0, 1fr);
}

.workspace.is-assistant-open.is-editor-open {
  grid-template-columns: 260px minmax(0, 1fr) 240px;
}

.assistant-panel {
  display: flex;
  min-width: 0;
  max-height: min(65vw, 650px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #44433f;
  color: #eeece5;
  background: #20201e;
}

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

.assistant-tabs {
  display: grid;
  min-height: 42px;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #44433f;
}

.assistant-tab {
  padding: 0 3px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #a7a49d;
  background: transparent;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.assistant-tab.is-active {
  border-bottom-color: var(--red);
  color: #f3f1ec;
}

.assistant-view {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: auto;
  padding: 15px 14px;
}

.assistant-view[hidden] {
  display: none !important;
}

.assistant-view .panel-kicker {
  line-height: 1.5;
}

.assistant-title {
  margin: 8px 0 12px;
  font-size: 22px;
  letter-spacing: -0.8px;
  line-height: 1.05;
}

.ai-capability-note,
.check-disclaimer {
  padding: 9px;
  border-left: 2px solid var(--red);
  color: #c3c0b9;
  background: #292926;
  font-family: Georgia, serif;
  font-size: 10px;
  line-height: 1.5;
}

.chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
}

.chat-context {
  overflow: hidden;
  color: #aaa79f;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-clear-button {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid #484743;
  color: #e4e1da;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.chat-clear-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.chat-messages {
  display: flex;
  min-height: 130px;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 10px 2px 10px 0;
  overflow-y: auto;
}

.chat-welcome {
  margin: 0;
  color: #b6b3ac;
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.55;
}

.chat-message {
  padding: 9px;
  background: #292926;
}

.chat-message-user {
  border-left: 2px solid #8e8b84;
}

.chat-message-assistant {
  border-left: 2px solid var(--red);
}

.chat-message-tool {
  border-left: 2px solid #7d9e8a;
  background: #252a26;
}

.chat-message-thinking {
  opacity: 0.75;
}

.chat-message-thinking p {
  font-style: italic;
}

.chat-message-label {
  color: #aaa79f;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 1px;
}

.chat-message p {
  margin: 5px 0 0;
  color: #eeece5;
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-message p a {
  color: #9dc5e4;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.chat-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 0 9px;
}

.chat-quick-prompts button {
  padding: 6px 7px;
  border: 1px solid #484743;
  color: #ddd9d0;
  background: #292926;
  font-size: 9px;
  text-align: left;
  cursor: pointer;
}

.chat-quick-prompts button:hover,
.chat-clear-button:hover {
  border-color: var(--red);
  color: #fff;
}

.chat-quick-prompts button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.assistant-tools-toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #44433f;
  color: #e4e1da;
  background: #252523;
  cursor: pointer;
}

.assistant-tools-toggle input {
  margin: 2px 0 0;
  accent-color: var(--red);
}

.assistant-tools-toggle span {
  display: grid;
  gap: 3px;
}

.assistant-tools-toggle strong {
  font-size: 10px;
}

.assistant-tools-toggle small {
  color: #aaa79f;
  font-size: 9px;
  line-height: 1.4;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 7px;
}

.chat-form textarea {
  min-height: 56px;
  resize: vertical;
  padding: 8px;
  border: 1px solid #484743;
  color: #eeece5;
  background: #171717;
  font: inherit;
  font-size: 11px;
}

.chat-form textarea:disabled {
  opacity: 0.5;
}

.chat-form button {
  align-self: end;
  width: 34px;
  height: 34px;
  border: 0;
  color: #171717;
  background: var(--red);
  font-size: 20px;
  cursor: pointer;
}

.chat-form button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ai-privacy-note {
  margin: 9px 0 0;
  color: #8d8a84;
  font-size: 9px;
  line-height: 1.45;
}

.check-disclaimer,
.layout-intro {
  margin: 0 0 12px;
}

.check-button {
  min-height: 36px;
  border: 0;
  color: #171717;
  background: var(--red);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.check-results {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.check-results > p {
  color: #aaa79f;
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 1.45;
}

.check-result {
  padding: 9px;
  border: 1px solid #41403c;
}

.check-result strong {
  color: var(--red);
  font-size: 9px;
}

.check-result p {
  margin: 4px 0 0;
  color: #dbd8d1;
  font-family: Georgia, serif;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.layout-intro {
  color: #b6b3ac;
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 1.45;
}

.layout-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.layout-card {
  display: grid;
  grid-template-rows: 52px auto auto;
  gap: 4px;
  padding: 6px;
  border: 1px solid #484743;
  color: #eeece5;
  background: #292926;
  text-align: left;
  cursor: pointer;
}

.layout-card:hover {
  border-color: var(--red);
}

.layout-preview {
  display: block;
  position: relative;
  overflow: hidden;
  background: #eeece5;
}

.layout-preview::before,
.layout-preview::after {
  position: absolute;
  content: "";
  background: #171717;
}

.layout-preview::before {
  top: 19%;
  left: 12%;
  width: 54%;
  height: 13%;
}

.layout-preview::after {
  top: 40%;
  left: 12%;
  width: 38%;
  height: 8%;
  background: #ef3828;
}

.layout-preview-columns::before,
.layout-preview-columns::after {
  top: 28%;
  left: 12%;
  width: 31%;
  height: 55%;
  border-top: 3px solid #ef3828;
  background: transparent;
}

.layout-preview-columns::after {
  left: 57%;
  border-color: #171717;
}

.layout-preview-quote::before {
  top: 42%;
  left: 15%;
  width: 68%;
  height: 10%;
}

.layout-preview-image::before {
  top: 0;
  left: 0;
  width: 51%;
  height: 100%;
  background: #d7d4ca;
}

.layout-preview-image::after {
  top: 28%;
  left: 62%;
  width: 29%;
  height: 12%;
}

.layout-preview-video::before {
  inset: 9% 12%;
  width: auto;
  height: auto;
  border: 1px solid #aaa79f;
  background: transparent;
}

.layout-preview-video::after {
  top: 38%;
  left: 46%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #ef3828;
  background: transparent;
}

.layout-card-title {
  font-size: 10px;
  font-weight: 750;
}

.layout-card-description {
  color: #a7a49d;
  font-family: Georgia, serif;
  font-size: 9px;
  line-height: 1.3;
}

.delete-slide-button {
  min-height: 32px;
  margin-top: auto;
  border: 1px solid rgb(239 56 40 / 60%);
  color: #ff8a7f;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.delete-slide-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.delete-slide-button:not(:disabled):hover {
  color: #171717;
  background: var(--red);
}

.stage {
  position: relative;
  width: 100%;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(0 0 0 / 22%);
  isolation: isolate;
  perspective: 1300px;
}

.workspace.is-editor-open .stage {
  max-width: none;
}

.element-panel {
  display: flex;
  min-width: 0;
  max-height: min(65vw, 650px);
  flex-direction: column;
  padding: 18px 16px 14px;
  border: 1px solid #44433f;
  color: #eeece5;
  background: #20201e;
}

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

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-kicker,
.panel-section-label {
  margin: 0;
  color: #a7a49d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.3px;
}

.panel-kicker span {
  color: var(--red);
}

.panel-heading h2 {
  margin: 5px 0 0;
  font-size: 24px;
  letter-spacing: -0.8px;
}

.panel-close {
  width: 30px;
  height: 30px;
  border: 1px solid #484743;
  color: #eee;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.element-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 18px;
}

.element-action {
  display: flex;
  min-height: 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #484743;
  color: #eeece5;
  background: #292926;
  font-size: 11px;
  cursor: pointer;
}

.element-action span {
  color: var(--red);
  font-size: 18px;
}

.element-action:hover {
  border-color: var(--red);
}

.panel-divider {
  height: 1px;
  flex: 0 0 auto;
  margin: 15px 0;
  background: #44433f;
}

.element-list {
  display: flex;
  max-height: 180px;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  overflow: auto;
}

.empty-element-list {
  margin: 3px 0;
  color: #898780;
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.5;
}

.element-list-item {
  overflow: hidden;
  padding: 9px 8px;
  border: 1px solid transparent;
  color: #dcdbd5;
  background: #292926;
  font-size: 11px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.element-list-item.is-selected {
  border-color: var(--red);
}

.element-properties {
  flex: 0 0 auto;
}

.property-row {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #d8d6cf;
  font-size: 11px;
}

.property-row input[type="range"] {
  width: 115px;
  accent-color: var(--red);
}

.property-row input[type="color"] {
  width: 34px;
  height: 26px;
  padding: 2px;
  border: 1px solid #53524e;
  background: transparent;
  cursor: pointer;
}

.property-row select {
  max-width: 130px;
  padding: 5px 7px;
  border: 1px solid #53524e;
  color: #eeece5;
  background: #292926;
  font-size: 10px;
}

.delete-element-button {
  width: 100%;
  min-height: 32px;
  margin-top: 6px;
  border: 1px solid rgb(239 56 40 / 60%);
  color: #ff8a7f;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.delete-element-button:hover {
  color: #171717;
  background: var(--red);
}

.panel-bottom {
  margin-top: auto;
  padding-top: 14px;
}

.panel-bottom > p {
  margin: 0 0 10px;
  color: #a7a49d;
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 1.4;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.project-button {
  min-height: 34px;
  border: 1px solid var(--red);
  color: #171717;
  background: var(--red);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.project-button-secondary {
  color: #eee;
  background: transparent;
}

.save-indicator {
  display: block;
  margin-top: 9px;
  color: #92d3a2;
  font-size: 9px;
}

.save-indicator[data-state="error"] {
  color: #ff8a7f;
}

.stage[data-template="ocean"] {
  --paper: #e8f0f4;
  --ink: #122332;
  --red: #1979ad;
}

.stage[data-template="botanical"] {
  --paper: #edf0e7;
  --ink: #1b2b22;
  --red: #3d7650;
}

.stage[data-template="terracotta"] {
  --paper: #f2e7df;
  --ink: #34231e;
  --red: #b34d36;
}

.stage[data-template="cobalt"] {
  --paper: #e8edf5;
  --ink: #1d2b43;
  --red: #3b5f9a;
}

.stage[data-template="lavender"] {
  --paper: #eeeaf2;
  --ink: #30243c;
  --red: #76528f;
}

.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.slide[hidden] {
  display: none;
}

.custom-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  container-type: inline-size;
  pointer-events: none;
}

.custom-element {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  touch-action: none;
  cursor: move;
}

.custom-element-text {
  min-height: 1.2em;
  padding: 0.1em 0.2em;
  color: var(--element-color);
  font-size: calc(var(--element-size) * 1cqw);
  font-family: var(--element-family);
  font-weight: inherit;
  text-align: var(--element-align);
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.custom-element-text[contenteditable="true"] {
  min-height: 1.4em;
  outline: 1px dashed var(--element-color);
  cursor: text;
}

.custom-element-shape {
  height: 18%;
  background: var(--element-color);
  opacity: 0.85;
}

.custom-element-circle {
  aspect-ratio: 1;
  border-radius: 50%;
}

.custom-element-line {
  height: 1% !important;
}

.custom-element-image {
  max-height: 85%;
  object-fit: contain;
  user-select: none;
}

.custom-element-video {
  height: 32%;
  border: 0;
  background: #111;
}

.slide-layout {
  background: var(--paper);
}

.layout-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.layout-decorations {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.slide-layout-cover .layout-decorations {
  background: linear-gradient(110deg, transparent 72%, var(--red) 72%);
}

.slide-layout-section .layout-decorations {
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 11px, 0 11px);
}

.slide-layout-columns .layout-column {
  position: absolute;
  top: 31%;
  bottom: 13%;
  width: 35%;
  border-top: 5px solid var(--red);
  background: rgb(0 0 0 / 2%);
}

.slide-layout-columns .layout-column-one {
  left: 9%;
}

.slide-layout-columns .layout-column-two {
  right: 9%;
  border-color: var(--ink);
}

.slide-layout-quote .layout-decorations {
  background: #e2dfd5;
}

.slide-layout-quote .layout-quote-mark {
  position: absolute;
  top: 7%;
  left: 8%;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: clamp(110px, 17vw, 190px);
  line-height: 1;
}

.slide-layout-image .layout-image-placeholder {
  position: absolute;
  top: 12%;
  right: 7%;
  bottom: 12%;
  width: 43%;
  display: grid;
  place-items: center;
  border: 1px dashed rgb(0 0 0 / 30%);
  background: rgb(0 0 0 / 5%);
}

.layout-image-placeholder span,
.layout-video-placeholder p {
  color: #77746e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.slide-layout-video .layout-video-placeholder {
  position: absolute;
  top: 25%;
  right: 8%;
  bottom: 12%;
  left: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgb(0 0 0 / 30%);
  background: rgb(0 0 0 / 4%);
}

.layout-video-placeholder > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--paper);
  background: var(--red);
}

.slide-layout-conclusion .layout-decorations {
  background: linear-gradient(0deg, var(--red) 0 12px, transparent 12px);
}

.bold-toggle {
  width: 34px;
  height: 28px;
  border: 1px solid #53524e;
  color: #eee;
  background: #292926;
  font-weight: 800;
  cursor: pointer;
}

.bold-toggle[aria-pressed="true"] {
  border-color: var(--red);
  color: var(--red);
}

.custom-element.is-selected {
  outline: 2px dashed var(--red);
  outline-offset: 4px;
}

.slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 7.5% 9%;
}

.shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.shape-cover {
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  background: var(--red);
  clip-path: polygon(76% 0, 100% 0, 100% 100%, 14% 100%);
}

.stage[data-template="ocean"] .shape-cover {
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 70% 0);
}

.stage[data-template="botanical"] .shape-cover {
  width: 27%;
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 0 100%);
}

.stage[data-template="ocean"] .shape-question {
  background: #d3e2e9;
}

.stage[data-template="botanical"] .shape-question {
  background: #dce5d8;
}

.stage[data-template="botanical"] .shape-plan,
.stage[data-template="botanical"] .shape-takeaway {
  height: 20px;
}

.stage[data-template="ocean"] .idea-card {
  background: rgb(25 121 173 / 3%);
}

.stage[data-template="botanical"] .idea-card {
  background: rgb(61 118 80 / 3%);
}

.stage[data-template="ocean"] .source-card {
  background: #d7e5eb;
}

.stage[data-template="botanical"] .source-card {
  background: #dce5d8;
}

.shape-question {
  top: 0;
  right: 0;
  width: 24%;
  height: 100%;
  background: #d7d4ca;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.shape-plan {
  right: 0;
  bottom: 0;
  width: 30%;
  height: 12px;
  background: var(--red);
}

.shape-ideas {
  top: 0;
  right: 0;
  width: 14px;
  height: 100%;
  background: var(--red);
}

.shape-wow {
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  background: var(--red);
}

.shape-takeaway {
  right: 0;
  bottom: 0;
  width: 36%;
  height: 15px;
  background: var(--red);
}

.shape-questions {
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  background: var(--red);
  clip-path: polygon(67% 0, 100% 0, 100% 100%, 0 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  color: #65635e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.eyebrow-mark {
  display: inline-block;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 0;
}

.cover-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 10%;
}

.cover-title {
  display: flex;
  max-width: 75%;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  font-size: clamp(54px, 8.5vw, 106px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.88;
}

.title-highlight {
  color: var(--red);
}

.cover-copy {
  max-width: 430px;
  margin: 23px 0 0;
  color: #57554f;
  font-family: Georgia, serif;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.meta-spark {
  color: var(--red);
  font-size: 18px;
}

.cover-meta p {
  margin: 0;
  color: #5b5953;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.slide-sticker {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 94px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.sticker-cover {
  top: 18%;
  right: 8%;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  transform: rotate(9deg);
}

.slide-number {
  position: absolute;
  right: 3.2%;
  bottom: 4%;
  z-index: 2;
  color: #44423d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.slide-number i {
  color: #797771;
  font-style: normal;
  font-weight: 400;
}

.question-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 11%;
}

.question-intro,
.wow-label {
  margin: 0 0 13px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.big-question {
  max-width: 78%;
  margin: 0;
  font-size: clamp(38px, 6.1vw, 74px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.question-accent {
  color: var(--red);
}

.slide-hint {
  max-width: 510px;
  margin: 22px 0 0;
  color: #66645f;
  font-family: Georgia, serif;
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.6;
}

.question-arrow {
  position: absolute;
  right: 8%;
  bottom: 16%;
  color: var(--red);
  font-size: 65px;
  font-weight: 300;
}

.plan-content,
.ideas-content {
  padding-top: 6.5%;
}

.slide-title {
  position: relative;
  z-index: 1;
  max-width: 82%;
  margin: 0 0 27px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.05;
}

.plan-list {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 78%;
  flex-direction: column;
}

.plan-stop {
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  border-top: 1px solid #c5c2b9;
}

.stop-number {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
}

.plan-stop h3 {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  letter-spacing: -0.4px;
}

.plan-stop p {
  margin: 4px 0 0;
  color: #66645f;
  font-family: Georgia, serif;
  font-size: clamp(11px, 1.12vw, 14px);
  line-height: 1.45;
}

.stop-arrow {
  color: var(--red);
  font-size: 20px;
  text-align: right;
}

.sticker-plan {
  right: 8%;
  bottom: 20%;
  width: 105px;
  height: 78px;
  background: var(--red);
  transform: rotate(-6deg);
}

.ideas-content .slide-title {
  margin-bottom: 25px;
}

.idea-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.idea-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  padding: 19px 18px 24px;
  border: 1px solid #c9c6bd;
  color: var(--ink);
  background: transparent;
}

.idea-card-pink {
  border-top: 5px solid var(--red);
}

.idea-card-lime {
  border-top: 5px solid #272622;
}

.idea-card-blue {
  border-top: 5px solid #8b8880;
}

.idea-emoji {
  margin-bottom: 15px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1;
}

.card-kicker {
  margin: 0 0 7px;
  color: #77746e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.idea-card h3 {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 750;
  letter-spacing: -0.7px;
  line-height: 1.1;
}

.idea-card > p:last-of-type {
  max-width: 230px;
  margin: 9px 0 0;
  color: #66645f;
  font-family: Georgia, serif;
  font-size: clamp(11px, 1.05vw, 13px);
  line-height: 1.5;
}

.card-index {
  position: absolute;
  right: 13px;
  bottom: 8px;
  color: #aaa79e;
  font-family: Georgia, serif;
  font-size: 27px;
  font-style: italic;
}

.wow-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10%;
}

.wow-layout {
  display: grid;
  max-width: 90%;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.62fr);
  align-items: center;
  gap: 8%;
}

.wow-number {
  margin: 0;
  color: var(--red);
  font-size: clamp(68px, 10vw, 122px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.95;
}

.wow-number span:last-child {
  color: var(--ink);
}

.wow-copy {
  max-width: 440px;
  margin: 15px 0 0;
  color: #57554f;
  font-family: Georgia, serif;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.55;
}

.source-card {
  padding: 19px;
  border-left: 3px solid var(--red);
  background: #e2dfd5;
}

.source-icon {
  color: var(--red);
  font-size: 22px;
}

.source-label {
  margin: 15px 0 7px;
  color: #65625c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
}

.source-text {
  margin: 0;
  color: #302f2b;
  font-family: Georgia, serif;
  font-size: clamp(11px, 1.12vw, 13px);
  line-height: 1.55;
}

.tiny-note {
  max-width: 650px;
  margin: 23px 0 0;
  color: #77746e;
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 1.5;
}

.takeaway-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 11%;
}

.takeaway-content .slide-title {
  margin-bottom: 15px;
  font-size: clamp(46px, 6.8vw, 82px);
}

.takeaway-lead {
  max-width: 680px;
  margin: 0;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: clamp(20px, 2.6vw, 31px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.25;
}

.takeaway-bottom {
  display: flex;
  max-width: 640px;
  align-items: flex-start;
  gap: 15px;
  margin-top: 23px;
}

.takeaway-star {
  color: var(--red);
  font-size: 25px;
}

.takeaway-bottom p {
  margin: 2px 0 0;
  color: #66645f;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.55;
}

.takeaway-content .tiny-note {
  margin-top: 24px;
}

.questions-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 12%;
}

.questions-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(62px, 10.2vw, 124px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.85;
}

.questions-title span:last-child {
  color: var(--red);
}

.questions-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 24px 0 0;
  color: #57554f;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
}

.question-mark {
  position: absolute;
  top: 0;
  right: 15%;
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: clamp(130px, 21vw, 250px);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  transform: rotate(8deg);
}

.sticker-questions {
  right: 12%;
  bottom: 18%;
  width: 100px;
  height: 74px;
  color: var(--ink);
  background: var(--paper);
  transform: rotate(8deg);
}

.model-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4.5% 6%;
}

.model-heading {
  display: flex;
  min-height: 82px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.model-heading .eyebrow {
  margin-bottom: 10px;
}

.model-heading .slide-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.model-upload-button,
.model-empty-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  color: var(--paper);
  background: var(--ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.model-upload-button:hover:not(:disabled),
.model-empty-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--red);
}

.model-upload-button:disabled,
.model-empty-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.model-layout {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 20px;
}

.model-viewport {
  position: relative;
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgb(23 23 23 / 14%);
  background-color: color-mix(in srgb, var(--ink) 4%, var(--paper));
  background-image:
    linear-gradient(rgb(23 23 23 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 23 23 / 5%) 1px, transparent 1px);
  background-position: center;
  background-size: 32px 32px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.model-viewport.is-dragging {
  border: 2px dashed var(--red);
  background-color: color-mix(in srgb, var(--red) 10%, var(--paper));
}

.model-viewer,
model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  --poster-color: transparent;
  background: transparent;
}

model-viewer[hidden] {
  display: none;
}

.model-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.model-empty-state[hidden] {
  display: none;
}

.model-empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--red) 55%, var(--paper));
  color: var(--red);
  font-size: 34px;
  line-height: 1;
}

.model-empty-title {
  margin: 15px 0 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.5px;
}

.model-empty-copy {
  margin: 7px 0 15px;
  color: color-mix(in srgb, var(--ink) 65%, var(--paper));
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.5;
}

.model-file-note {
  margin: 9px 0 0;
  color: color-mix(in srgb, var(--ink) 52%, var(--paper));
  font-size: 9px;
}

.model-status {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 62%, var(--paper));
  font-size: 9px;
  text-align: center;
  pointer-events: none;
}

.model-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px 0 0;
}

.model-control-heading {
  margin: 0 0 12px;
  color: color-mix(in srgb, var(--ink) 55%, var(--paper));
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.model-control-button {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 17%, var(--paper));
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.model-control-button > span:first-child {
  color: var(--red);
  font-size: 18px;
}

.model-control-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.control-state {
  margin-left: auto;
  color: var(--red);
  font-size: 9px;
  font-weight: 750;
}

.model-slider {
  display: grid;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 17%, var(--paper));
}

.model-slider > span {
  display: flex;
  justify-content: space-between;
  color: color-mix(in srgb, var(--ink) 62%, var(--paper));
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1px;
}

.model-slider output {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0;
}

.model-slider input {
  width: 100%;
  accent-color: var(--red);
}

.model-slider input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.model-file-name {
  margin: auto 0 7px;
  overflow: hidden;
  color: color-mix(in srgb, var(--ink) 58%, var(--paper));
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-remove-button {
  align-self: flex-start;
  padding: 0;
  border: 0;
  color: var(--red);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.model-remove-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-editable][contenteditable="true"] {
  outline: 1px dashed rgb(239 56 40 / 65%);
  outline-offset: 4px;
  cursor: text;
}

[data-editable][contenteditable="true"]:focus {
  outline: 2px solid var(--red);
}

.presentation-footer {
  display: grid;
  min-height: 70px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-left,
.footer-right,
.slide-dots {
  display: flex;
  align-items: center;
}

.footer-left {
  gap: 11px;
}

.page-count {
  min-width: 47px;
  color: #eeeae2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.page-count span {
  color: #85837d;
  font-weight: 400;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #4a4944;
  color: #e9e6df;
  background: transparent;
  font-size: 18px;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.icon-button:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}

.icon-button:disabled {
  color: #6a6862;
  cursor: not-allowed;
  opacity: 0.5;
}

.icon-button-next {
  border-color: var(--red);
  color: #171717;
  background: var(--red);
}

.icon-button-next:hover:not(:disabled) {
  color: #171717;
  background: #ff5948;
}

.slide-dots {
  justify-content: center;
  gap: 7px;
}

.slide-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  background: #62605b;
  cursor: pointer;
  transition: width 150ms ease, background 150ms ease;
}

.slide-dot[aria-current="true"] {
  width: 22px;
  background: var(--red);
}

.footer-right {
  justify-content: flex-end;
  gap: 12px;
}

.quick-export {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quick-export > span {
  margin-right: 2px;
}

.quick-export button {
  min-height: 27px;
  padding: 0 7px;
  border: 1px solid #4a4944;
  color: #d7d4ca;
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.quick-export button:hover {
  border-color: var(--red);
  color: var(--red);
}

.template-picker,
.transition-picker {
  display: grid;
  gap: 3px;
}

.template-picker > span,
.transition-picker > span {
  color: #929089;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.template-picker select,
.transition-picker select {
  max-width: 134px;
  padding: 5px 22px 5px 0;
  border: 0;
  border-bottom: 1px solid #5b5953;
  border-radius: 0;
  color: #f0ede6;
  background: #171717;
  font-size: 11px;
  cursor: pointer;
}

.template-picker option,
.transition-picker option {
  color: #f0ede6;
  background: #171717;
}

.text-button {
  padding: 8px 0;
  color: #a4a19a;
  background: transparent;
  font-size: 10px;
  white-space: nowrap;
}

.text-button:hover {
  color: #f3f1ec;
}

.fullscreen-button {
  font-size: 20px;
}

.keyboard-hint {
  min-height: 18px;
  margin: 0 0 3px;
  color: #77756e;
  font-size: 10px;
  text-align: center;
}

.nim-settings-dialog {
  width: min(100% - 32px, 520px);
  max-height: min(90vh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid #55544f;
  color: #f3f1ec;
  background: #20201e;
  box-shadow: 0 24px 80px rgb(0 0 0 / 55%);
}

.nim-settings-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(3px);
}

.nim-settings-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.nim-settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.nim-settings-heading h2 {
  margin: 7px 0 0;
  font-size: 24px;
  letter-spacing: -0.8px;
}

.nim-settings-intro {
  margin: 0;
  color: #c3c0b9;
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.6;
}

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

.nim-field > span {
  color: #e6e3dc;
  font-size: 11px;
  font-weight: 700;
}

.nim-field > input[type="password"],
.nim-field > input[type="text"] {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #55544f;
  border-radius: 0;
  color: #f3f1ec;
  background: #171717;
  font: inherit;
  font-size: 12px;
}

.nim-field small,
.nim-remember small {
  display: block;
  margin-top: 4px;
  color: #929089;
  font-size: 10px;
  line-height: 1.45;
}

.nim-temperature-field > span {
  display: flex;
  justify-content: space-between;
}

.nim-temperature-field output {
  color: var(--red);
}

.nim-temperature-field input {
  width: 100%;
  accent-color: var(--red);
}

.nim-remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #e6e3dc;
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}

.nim-remember input {
  margin: 2px 0 0;
  accent-color: var(--red);
}

.nim-security-note {
  padding: 10px 12px;
  border-left: 2px solid var(--red);
  color: #b6b3ac;
  background: #191918;
  font-size: 10px;
  line-height: 1.55;
}

.nim-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nim-settings-actions .present-button {
  min-height: 40px;
  padding: 0 16px;
}

.nim-settings-status {
  min-height: 14px;
  margin: -8px 0 0;
  color: #ff8a7f;
  font-size: 11px;
}

.nim-inline-settings {
  align-self: flex-start;
  padding: 0;
  border: 0;
  color: var(--red);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.nim-inline-settings:hover {
  text-decoration: underline;
}

.stage:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
}

.stage:fullscreen .slide-content {
  padding: 9% 12%;
}

.stage:fullscreen .cover-content {
  padding-left: 13%;
}

.stage:fullscreen .cover-title {
  font-size: clamp(60px, 10vw, 160px);
}

.stage:fullscreen .slide-title {
  font-size: clamp(40px, 5vw, 76px);
}

body.is-presenting {
  overflow: hidden;
}

.is-presenting .app {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.is-presenting .topbar,
.is-presenting .presentation-footer,
.is-presenting .keyboard-hint,
.is-presenting .element-panel {
  display: none !important;
}

.is-presenting .presentation,
.is-presenting .workspace {
  display: block;
  width: 100%;
  height: 100vh;
  padding: 0;
}

.is-presenting .stage {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  box-shadow: none;
}

.is-presenting .slide-content {
  padding: 9% 12%;
}

.is-presenting .cover-content {
  padding-left: 13%;
}

.is-presenting .cover-title {
  font-size: clamp(60px, 10vw, 160px);
}

.is-presenting .slide-title {
  font-size: clamp(40px, 5vw, 76px);
}

.is-presenting .model-content {
  padding: 5vh 7vw;
}

.is-presenting .model-heading {
  min-height: 14vh;
}

.is-presenting .model-layout {
  height: 72vh;
}

.is-presenting .model-viewport,
.is-presenting .model-viewer,
.is-presenting model-viewer {
  min-height: 0;
}

.slide.is-entering[data-transition="cut"] .slide-content {
  animation: reveal-cut 180ms ease-out both;
}

.slide.is-entering[data-transition="wipe"] {
  animation: reveal-wipe 650ms cubic-bezier(0.75, 0, 0.2, 1) both;
  transform-origin: left center;
}

.slide.is-entering[data-transition="zoom"] {
  animation: reveal-zoom 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: center;
}

.slide.is-entering[data-transition="flip"] {
  animation: reveal-flip 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: left center;
  backface-visibility: hidden;
}

.slide.is-entering[data-transition="drop"] {
  animation: reveal-drop 820ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
  transform-origin: center top;
  backface-visibility: hidden;
}

.slide.is-entering[data-transition="glitch"] {
  animation: reveal-glitch 560ms steps(1, end) both;
}

.slide.is-entering[data-transition="spin"] {
  animation: reveal-spin 760ms cubic-bezier(0.18, 0.75, 0.24, 1) both;
  transform-origin: center;
}

@media (max-width: 1000px) {
  .workspace.is-editor-open {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 12px;
  }

  .element-panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar-note {
    display: none;
  }

  .nim-settings-toggle span:last-child {
    display: none;
  }

  .toolbar-hint {
    display: none;
  }

  .workspace.is-assistant-open.is-editor-open {
    grid-template-columns: 210px minmax(420px, 1fr) 210px;
    gap: 10px;
  }
}

@media (max-height: 760px) and (min-width: 701px) {
  .element-panel {
    max-height: 76vh;
    overflow-y: auto;
  }
}

@keyframes reveal-cut {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@keyframes reveal-wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes reveal-zoom {
  0% {
    opacity: 0;
    transform: scale(1.45);
  }
  65% {
    opacity: 1;
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes reveal-flip {
  0% {
    opacity: 0;
    transform: rotateY(-100deg);
  }
  100% {
    opacity: 1;
    transform: rotateY(0);
  }
}

@keyframes reveal-drop {
  0% {
    opacity: 0;
    transform: rotateX(-82deg) translateY(-8%);
  }
  70% {
    opacity: 1;
    transform: rotateX(8deg) translateY(1%);
  }
  100% {
    transform: rotateX(0) translateY(0);
  }
}

@keyframes reveal-glitch {
  0% {
    opacity: 0;
    transform: translateX(0);
    filter: invert(1);
    clip-path: inset(40% 0 45% 0);
  }
  15% {
    opacity: 1;
    transform: translateX(-10px);
    filter: invert(1);
    clip-path: inset(10% 0 70% 0);
  }
  30% {
    transform: translateX(9px);
    clip-path: inset(65% 0 12% 0);
  }
  45% {
    transform: translateX(-5px);
    filter: none;
    clip-path: inset(30% 0 35% 0);
  }
  60% {
    transform: translateX(4px);
    clip-path: inset(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: none;
    clip-path: inset(0);
  }
}

@keyframes reveal-spin {
  0% {
    opacity: 0;
    transform: scale(0.45) rotate(-18deg);
    filter: blur(8px);
  }
  70% {
    opacity: 1;
    transform: scale(1.03) rotate(2deg);
    filter: blur(0);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: 13.333in 7.5in;
    margin: 0;
  }

  :root,
  body {
    color-scheme: light;
    background: var(--paper);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .app {
    display: block;
    width: auto;
    min-height: 0;
    padding: 0;
  }

  .topbar,
  .editor-toolbar,
  .presentation-footer,
  .keyboard-hint,
  .assistant-panel,
  .element-panel,
  .nim-settings-dialog {
    display: none !important;
  }

  .presentation {
    display: block;
    width: auto;
    padding: 0;
  }

  .workspace {
    display: block;
  }

  .stage {
    width: auto;
    max-width: none;
    overflow: visible;
    box-shadow: none;
  }

  .slide,
  .slide[hidden] {
    position: relative;
    display: block !important;
    width: 13.333in;
    height: 7.5in;
    break-after: page;
    page-break-after: always;
  }

  .slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  [data-editable][contenteditable="true"] {
    outline: 0;
  }
}
