.presentation-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.presentation-sidebar,
.presentation-inspector {
  display: grid;
  gap: 14px;
}

.presentation-inspector {
  position: sticky;
  top: 16px;
}

.presentation-create-form {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.presentation-create-panel {
  padding: 0;
  overflow: hidden;
}

.presentation-create-panel summary {
  min-height: 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

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

.presentation-create-panel summary strong {
  font-size: 15px;
}

.presentation-create-panel summary span {
  color: var(--brand);
  font-weight: 900;
  font-size: 13px;
}

.presentation-project-home {
  display: grid;
  gap: 16px;
}

.presentation-project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #20242a;
}

.presentation-project-head h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.presentation-project-home .compact-tabs {
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
  padding: 0 2px;
}

.presentation-project-home .compact-tabs .dashboard-tab {
  border-radius: 6px 6px 0 0;
}

.presentation-project-home .presentation-create-panel {
  max-width: 760px;
  background: #fff;
  color: #20242a;
}

.presentation-project-home .presentation-create-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.presentation-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.presentation-project-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  color: #20242a;
}

.presentation-project-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.presentation-project-card-head > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.presentation-card-edit-button {
  min-height: 38px;
  padding: 0 16px;
  white-space: nowrap;
}

.presentation-project-card strong {
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-project-card span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-project-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--text);
}

.presentation-project-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--page);
  padding-bottom: 7px;
}

.presentation-project-card dt,
.presentation-project-card dd {
  margin: 0;
  font-size: 12px;
}

.presentation-project-card dt {
  color: var(--muted);
}

.presentation-project-card dd {
  max-width: 62%;
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-project-card .toolbar {
  justify-content: flex-end;
}

.presentation-project-card.template-card {
  border-style: dashed;
}

.presentation-manage-home .presentation-project-head > div:first-child {
  display: grid;
  gap: 6px;
}

.presentation-manage-home .presentation-back-chip {
  justify-self: start;
}

.presentation-manage-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.presentation-manage-savebar {
  justify-content: flex-end;
}

.presentation-flow-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #20242a;
}

.presentation-flow-toolbar h3,
.presentation-review-hero h3,
.presentation-template-summary h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 18px;
}

.presentation-flow-layouts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.presentation-flow-layouts button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 6px 10px;
  font-weight: 800;
  cursor: pointer;
}

.presentation-flow-layouts button:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.presentation-flow-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.presentation-flow-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #20242a;
}

.presentation-flow-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.14);
}

.presentation-flow-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #fff;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  cursor: pointer;
  color: #20242a;
}

.presentation-flow-preview span {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.presentation-flow-preview strong {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
}

.presentation-flow-card-body {
  display: grid;
  gap: 10px;
}

.presentation-flow-card-body > div:first-child {
  display: grid;
  gap: 4px;
}

.presentation-flow-card-body strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-flow-card-body span {
  color: var(--muted);
  font-size: 12px;
}

.presentation-flow-card-body .toolbar {
  justify-content: flex-end;
}

.presentation-manage-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.presentation-manage-metrics div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #20242a;
}

.presentation-manage-metrics dt,
.presentation-manage-metrics dd {
  margin: 0;
}

.presentation-manage-metrics dt {
  color: var(--muted);
  font-size: 12px;
}

.presentation-manage-metrics dd {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

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

.presentation-template-columns .panel {
  display: grid;
  gap: 8px;
}

.presentation-template-columns p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--page);
}

.presentation-template-columns p span {
  color: var(--muted);
  text-align: right;
}

.presentation-review-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #20242a;
}

.presentation-review-list {
  display: grid;
  gap: 8px;
}

.presentation-review-list button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
}

.presentation-review-list button:hover {
  border-color: var(--blue);
}

.presentation-review-list span {
  color: var(--muted);
  font-weight: 900;
}

.presentation-review-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-review-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.presentation-deck-list,
.presentation-slide-list {
  display: grid;
  gap: 8px;
}

.presentation-deck-list button,
.presentation-slide-thumb {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.presentation-deck-list button.active,
.presentation-slide-thumb.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(215, 0, 91, 0.1);
}

.presentation-deck-list span,
.presentation-slide-thumb span {
  color: var(--muted);
  font-size: 12px;
}

.presentation-editor-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.presentation-editor-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.presentation-object-toolbar {
  min-width: 0;
  flex: 1 1 auto;
}

.presentation-toolbar-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.presentation-editor-shell {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: calc(100vh - 118px);
  min-height: calc(100vh - 130px);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #20242a;
}

.presentation-doc-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  color: #20242a;
}

.presentation-doc-title-row,
.presentation-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.presentation-back-chip {
  border: 0;
  border-radius: 6px;
  background: var(--page);
  color: var(--ink);
  padding: 7px 9px;
  font-weight: 900;
}

.presentation-doc-title {
  width: min(420px, 44vw);
  min-width: 180px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  padding: 5px 7px;
}

.presentation-doc-title:hover,
.presentation-doc-title:focus {
  border-color: var(--line);
  outline: 0;
}

.presentation-save-state {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.presentation-menu-bar {
  display: flex;
  gap: 2px;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 8px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  color: #20242a;
}

.presentation-menu-wrap {
  flex: 0 0 auto;
}

.presentation-menu-wrap > button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 5px 8px;
  font-size: 13px;
  cursor: pointer;
}

.presentation-menu-wrap > button:hover,
.presentation-menu-wrap > button.active {
  background: var(--page);
}

.presentation-menu-layer {
  position: absolute;
  top: 78px;
  left: clamp(8px, var(--presentation-menu-left, 8px), calc(100% - 260px));
  z-index: 200;
  max-width: calc(100% - 16px);
}

.presentation-menu-popover {
  min-width: 236px;
  max-width: min(360px, calc(100vw - 32px));
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 6px 0;
  color: #20242a;
}

.presentation-menu-popover button,
.presentation-popover-grid button,
.presentation-popover-color-grid button {
  width: 100%;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.presentation-menu-popover button:hover:not(:disabled),
.presentation-popover-grid button:hover:not(:disabled),
.presentation-popover-color-grid button:hover:not(:disabled) {
  background: var(--page);
}

.presentation-menu-popover button:disabled,
.presentation-popover-grid button:disabled,
.presentation-popover-color-grid button:disabled {
  color: #a0a4aa;
  cursor: not-allowed;
}

.presentation-menu-popover button.active,
.presentation-popover-grid button.active,
.presentation-popover-color-grid button.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.presentation-menu-popover button i,
.presentation-popover-grid button i,
.presentation-popover-color-grid button i {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  flex: 0 0 auto;
}

.presentation-menu-popover button b,
.presentation-popover-grid button b,
.presentation-popover-color-grid button b {
  margin-left: auto;
}

.presentation-menu-popover hr {
  border: 0;
  border-top: 1px solid #edf0f2;
  margin: 6px 0;
}

.presentation-menu-popover kbd {
  color: var(--muted);
  font: inherit;
  font-size: 12px;
}

.presentation-popover-section-title {
  padding: 8px 14px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.presentation-popover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
}

.presentation-popover-grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 340px;
}

.presentation-popover-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-width: 300px;
  padding: 6px;
}

.presentation-quick-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #20242a;
}

.presentation-quick-toolbar > button,
.presentation-zoom-pill {
  flex: 0 0 auto;
  min-width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.presentation-quick-toolbar > button:hover:not(:disabled),
.presentation-zoom-pill:hover {
  border-color: var(--line);
  background: var(--page);
}

.presentation-quick-toolbar > button:disabled {
  color: #b4b8bd;
  cursor: not-allowed;
}

.presentation-toolbar-separator {
  flex: 0 0 auto;
  width: 1px;
  height: 24px;
  background: var(--line);
  margin: 0 4px;
}

.presentation-quick-toolbar .presentation-ribbon-swatches {
  display: flex !important;
  grid-template-columns: none;
  gap: 3px !important;
  max-width: none !important;
}

.presentation-quick-toolbar .presentation-ribbon-swatches button {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
}

.presentation-editor-grid {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) 330px;
  min-height: 0;
  overflow: hidden;
}

.presentation-editor-grid.format-closed {
  grid-template-columns: 174px minmax(0, 1fr);
}

.presentation-slide-navigator {
  min-height: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #20242a;
}

.presentation-deck-switcher {
  padding: 8px;
  border-bottom: 1px solid #edf0f2;
}

.presentation-deck-switcher summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

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

.presentation-deck-list.compact {
  margin-top: 8px;
  max-height: 260px;
  overflow: auto;
}

.presentation-slide-list.google-like {
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  padding: 10px 8px;
  overflow: auto;
}

.presentation-slide-list.google-like .presentation-slide-thumb {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  align-self: start;
  min-height: 0;
  height: auto;
  margin-bottom: 8px;
  padding: 7px;
  border-radius: 6px;
  background: #fff;
  color: #20242a;
}

.presentation-slide-list.google-like .presentation-slide-thumb.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.16);
}

.presentation-slide-number {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  padding-top: 4px;
  text-align: right;
}

.presentation-slide-thumb-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.presentation-slide-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.presentation-slide-preview em {
  display: block;
  max-width: 82%;
  color: var(--ink);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-slide-thumb-body strong {
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-new-slide {
  margin: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 8px;
  font-weight: 900;
  cursor: pointer;
}

.presentation-main-surface {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--page);
}

.presentation-canvas-workspace {
  min-width: 0;
  min-height: 420px;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 34px;
}

.presentation-canvas-workspace .presentation-stage-wrap {
  transition: width 0.12s ease, max-width 0.12s ease;
}

.presentation-notes-panel {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  color: #20242a;
}

.presentation-notes-panel textarea {
  width: 100%;
  min-height: 62px;
  max-height: 180px;
  resize: vertical;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px;
  color: var(--ink);
  background: #fff;
}

.presentation-notes-panel textarea:focus {
  border-color: var(--line);
  outline: 0;
}

.presentation-format-sidebar {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  color: #20242a;
}

.presentation-ribbon {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: #20242a;
}

.presentation-ribbon-tabs {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 6px 8px 0;
  background: var(--soft);
}

.presentation-ribbon-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.presentation-ribbon-tabs button.active {
  border-bottom-color: var(--brand);
  color: var(--brand);
  background: #fff;
}

.presentation-ribbon-panel {
  display: flex;
  gap: 10px;
  align-items: stretch;
  min-height: 86px;
  overflow-x: auto;
  padding: 10px;
}

.presentation-ribbon-group {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  min-width: max-content;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}

.presentation-ribbon-group:last-child {
  border-right: 0;
}

.presentation-ribbon-group > span {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.presentation-ribbon-group > div {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  max-width: 460px;
}

.presentation-ribbon button,
.presentation-ribbon .ribbon-tile {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 6px 9px;
  font-weight: 900;
  cursor: pointer;
}

.presentation-ribbon button:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.presentation-ribbon button.active-choice {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.24);
}

.presentation-ribbon button.active-choice b {
  margin-left: 2px;
}

.presentation-ribbon button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.presentation-ribbon-hint {
  align-self: center;
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.presentation-ribbon-meta {
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 10px;
}

.presentation-ribbon-swatches {
  display: grid !important;
  grid-template-columns: repeat(6, 20px);
  gap: 5px !important;
  max-width: none !important;
}

.presentation-ribbon-swatches button {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  border-radius: 999px;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.presentation-ribbon-shape-grid,
.presentation-ribbon-layout-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(62px, 1fr));
  gap: 6px !important;
  max-width: 430px !important;
}

.presentation-ribbon-layout-grid {
  grid-template-columns: repeat(4, minmax(86px, 1fr));
}

.presentation-ribbon-shape-grid button,
.presentation-ribbon-layout-grid button {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 54px;
  font-size: 11px;
  text-align: center;
}

.presentation-background-setting {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
}

.presentation-background-preview {
  width: 88px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--soft);
  background-size: cover;
  background-position: center;
}

.presentation-tool-menu {
  position: relative;
}

.presentation-tool-menu summary {
  cursor: pointer;
  list-style: none;
}

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

.presentation-tool-menu[open] summary {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.presentation-tool-menu > div {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 188px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 6px;
  display: grid;
  gap: 4px;
  color: #20242a;
}

.presentation-tool-menu > div button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 7px 9px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.presentation-shape-menu button,
.presentation-preset-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shape-preview {
  width: 24px;
  height: 18px;
  display: inline-block;
  border: 2px solid var(--ink);
  background: var(--soft);
}

.shape-preview.shape-roundRect,
.shape-preview.shape-label {
  border-radius: 999px;
}

.shape-preview.shape-circle,
.shape-preview.shape-badge,
.shape-preview.shape-check {
  width: 18px;
  border-radius: 50%;
}

.shape-preview.shape-triangle {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid var(--ink);
  background: transparent;
}

.shape-preview.shape-diamond {
  transform: rotate(45deg) scale(0.82);
}

.shape-preview.shape-star {
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
  border-width: 0;
  background: #f4c430;
  color: #20242a;
}

.shape-preview.shape-line,
.shape-preview.shape-arrow,
.shape-preview.shape-divider {
  height: 0;
  border-width: 0;
  border-top: 4px solid var(--ink);
  background: transparent;
}

.shape-preview.shape-divider {
  border-top-color: #adb5bd;
}

.shape-preview.shape-xmark {
  position: relative;
  border-radius: 50%;
}

.shape-preview.shape-xmark::before {
  content: "×";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--bad);
  font-weight: 900;
}

.presentation-tool-menu > div button:hover {
  background: #f6f8fb;
  color: #20242a;
}

.presentation-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.presentation-stage-wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.presentation-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #20242a;
}

.presentation-canvas.drag-over {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(215, 0, 91, 0.12), var(--shadow);
}

.presentation-canvas.empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--muted);
}

.presentation-block {
  position: absolute;
  border: 1px solid transparent;
  min-width: 32px;
  min-height: 24px;
  touch-action: none;
}

.presentation-block.locked {
  cursor: not-allowed;
}

.presentation-block.selected {
  border-color: var(--blue);
  box-shadow: none;
}

.presentation-block.type-shape.shape-circle,
.presentation-block.type-shape.shape-badge,
.presentation-block.type-shape.shape-check {
  border-radius: 999px;
}

.presentation-block.type-shape.shape-speech {
  overflow: visible;
}

.presentation-block.type-shape.shape-speech.selected {
  border-radius: 8px;
}

.presentation-block.type-shape.shape-line,
.presentation-block.type-shape.shape-arrow,
.presentation-block.type-shape.shape-divider {
  min-height: 10px;
}

.presentation-block.type-shape.shape-line.selected,
.presentation-block.type-shape.shape-arrow.selected,
.presentation-block.type-shape.shape-divider.selected {
  border-color: transparent;
  box-shadow: none;
}

.presentation-block.type-shape.shape-line.selected .presentation-shape,
.presentation-block.type-shape.shape-arrow.selected .presentation-shape,
.presentation-block.type-shape.shape-divider.selected .presentation-shape {
  outline: 2px solid rgba(215, 0, 91, 0.42);
  outline-offset: 5px;
}

.presentation-text,
.presentation-shape,
.presentation-empty-media,
.presentation-activity {
  width: 100%;
  height: 100%;
  padding: 12px;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.presentation-text.is-editing,
.presentation-shape.is-editing {
  outline: 1.5px solid var(--blue);
  outline-offset: -2px;
  cursor: text;
  user-select: text;
}

.presentation-text[contenteditable="true"],
.presentation-shape[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

.presentation-image-frame,
.presentation-chart-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

.presentation-image {
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
}

.presentation-shape {
  display: grid;
  place-items: center;
  font-weight: 800;
}

.presentation-shape.shape-roundRect {
  border-radius: 8px !important;
}

.presentation-shape.shape-circle,
.presentation-shape.shape-badge {
  border-radius: 999px !important;
}

.presentation-shape.shape-triangle {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-width: 0 !important;
}

.presentation-shape.shape-diamond {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  border-width: 0 !important;
}

.presentation-shape.shape-star {
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
  border-width: 0 !important;
}

.presentation-shape.shape-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  width: 100%;
  height: var(--shape-line-width, 6px);
  min-height: var(--shape-line-width, 6px);
  padding: 0;
  border-width: 0;
  background: currentColor;
  border-top: var(--shape-line-width, 6px) var(--shape-line-style, solid) currentColor;
  transform: translateY(-50%);
}

.presentation-shape.shape-divider {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  width: 100%;
  height: var(--shape-line-width, 3px);
  min-height: var(--shape-line-width, 3px);
  padding: 0;
  border-width: 0;
  background: transparent;
  border-top: var(--shape-line-width, 3px) var(--shape-line-style, solid) currentColor;
  transform: translateY(-50%);
}

.presentation-shape.shape-arrow {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  width: calc(100% - 14px);
  height: var(--shape-line-width, 6px);
  min-height: var(--shape-line-width, 6px);
  padding: 0;
  border-width: 0;
  background: currentColor;
  border-top: var(--shape-line-width, 6px) var(--shape-line-style, solid) currentColor;
  transform: translateY(-50%);
}

.presentation-shape.shape-arrow::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
  transform: translateY(-50%);
}

.presentation-shape.shape-speech {
  position: relative;
  border-radius: 8px !important;
}

.presentation-shape.shape-speech::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -12px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.presentation-shape.shape-label {
  border-radius: 999px !important;
  padding-inline: 18px;
}

.presentation-shape.shape-xmark {
  border-radius: 999px !important;
}

.presentation-caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 6px;
  background: rgba(32, 36, 42, 0.72);
  color: #fff;
  padding: 5px 7px;
  font-size: 12px;
}

.presentation-empty-media {
  display: grid;
  place-items: center;
  border-color: var(--line);
  border-style: dashed;
  color: var(--muted);
  background: var(--soft);
}

.presentation-image-picker {
  cursor: pointer;
  font: inherit;
}

.presentation-image-picker:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.presentation-chart-title {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  z-index: 1;
  font-weight: 900;
  font-size: 13px;
  color: var(--ink);
}

.presentation-chart-frame {
  position: relative;
  padding: 8px;
}

.presentation-chart {
  width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
}

.presentation-data-block,
.presentation-table-block {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 13px;
  overflow: hidden;
}

.presentation-data-block > span,
.presentation-data-block em {
  color: var(--muted);
  font-size: 0.78em;
  font-style: normal;
}

.presentation-data-block > strong,
.presentation-table-block > strong {
  font-size: 1.08em;
}

.presentation-data-block p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(108, 117, 125, 0.18);
  padding-top: 6px;
}

.presentation-data-block b {
  font-size: 1.18em;
}

.presentation-data-block.denied {
  place-content: center;
  text-align: center;
}

.presentation-data-block table,
.presentation-table-block table,
.presentation-chart-table-preview table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.presentation-data-block th,
.presentation-data-block td,
.presentation-table-block th,
.presentation-table-block td,
.presentation-chart-table-preview th,
.presentation-chart-table-preview td {
  border: 1px solid rgba(108, 117, 125, 0.22);
  padding: 5px 6px;
  font-size: 0.78em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-activity {
  display: grid;
  align-content: start;
  gap: 8px;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.presentation-activity strong {
  font-size: 1.1em;
}

.presentation-activity span,
.presentation-activity em {
  color: var(--muted);
  font-size: 0.78em;
  font-style: normal;
}

.presentation-activity p {
  margin: 0;
  line-height: 1.45;
}

.presentation-resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--blue);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
  color: #20242a;
}

.presentation-resize-handle.nw {
  left: -5px;
  top: -5px;
  cursor: nwse-resize;
}

.presentation-resize-handle.n {
  left: 50%;
  top: -5px;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.presentation-resize-handle.ne {
  right: -5px;
  top: -5px;
  cursor: nesw-resize;
}

.presentation-resize-handle.e {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.presentation-resize-handle.s {
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.presentation-resize-handle.w {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.presentation-resize-handle.sw {
  left: -5px;
  bottom: -5px;
  cursor: nesw-resize;
}

.presentation-resize-handle.se {
  right: -5px;
  bottom: -5px;
  cursor: nwse-resize;
}

.presentation-rotate-handle {
  position: absolute;
  left: 50%;
  top: -30px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
  cursor: grab;
  transform: translateX(-50%);
  color: #20242a;
}

.presentation-rotate-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 1px;
  height: 16px;
  background: var(--blue);
}

.presentation-block.crop-active {
  outline: 2px dashed var(--blue);
  outline-offset: 4px;
}

.presentation-selection-box {
  position: absolute;
  z-index: 999;
  border: 1px solid var(--brand);
  background: rgba(215, 0, 91, 0.08);
  pointer-events: none;
}

.presentation-snap-guide {
  position: absolute;
  z-index: 998;
  pointer-events: none;
  background: var(--blue);
}

.presentation-snap-guide.x {
  top: 0;
  bottom: 0;
  width: 1px;
}

.presentation-snap-guide.y {
  left: 0;
  right: 0;
  height: 1px;
}

.presentation-context-menu {
  position: fixed;
  z-index: 2000;
  min-width: 156px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  color: #20242a;
}

.presentation-context-menu button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.presentation-context-menu button:hover {
  background: #f5f7fb;
  color: #20242a;
}

.presentation-layer-panel {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.presentation-layer-list {
  display: grid;
  gap: 6px;
}

.presentation-layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  color: #20242a;
}

.presentation-layer-row.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(215, 0, 91, 0.1);
}

.presentation-layer-row > button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.presentation-layer-row > button span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-layer-row input {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
}

.presentation-layer-row.is-hidden {
  opacity: 0.58;
}

.presentation-layer-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.presentation-layer-row > div button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  padding: 5px 7px;
  font-size: 12px;
  cursor: pointer;
}

.presentation-layer-row > div button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.presentation-settings {
  display: grid;
  gap: 10px;
}

.presentation-settings-section {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.presentation-settings-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.presentation-settings-section h4 {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}

.presentation-settings .field {
  margin-bottom: 0;
}

.presentation-settings select[multiple] {
  min-height: 132px;
}

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

.presentation-align-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.presentation-color-control {
  display: grid;
  gap: 6px;
}

.presentation-color-swatches,
.presentation-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.presentation-color-swatches button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

.presentation-color-swatches button.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.presentation-color-swatches button span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.presentation-preset-row button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.presentation-preset-row button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.presentation-preset-row button b {
  margin-left: auto;
}

.presentation-preset-row i {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.presentation-chart-table-preview {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.presentation-image-drop-field {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  display: grid;
  gap: 5px;
  padding: 14px;
  cursor: pointer;
  text-align: center;
}

.presentation-image-drop-field input {
  width: 100%;
}

.presentation-image-drop-field strong {
  font-size: 14px;
}

.presentation-image-drop-field span {
  color: var(--muted);
  font-size: 12px;
}

.presentation-image-drop-field.drag-over {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.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;
}

.compact-tabs {
  margin: 0;
}

.presentation-presenter {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #111318;
  color: #fff;
  padding: 14px;
}

.presentation-presenter-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
}

.presentation-presenter-stage {
  min-height: 0;
  display: grid;
  place-items: center;
}

.presentation-presenter-stage .presentation-stage-wrap {
  width: min(96vw, calc(96vh * 16 / 9));
  max-width: none;
}

.presentation-presenter-stage .presentation-canvas {
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

.presentation-end-screen {
  width: min(96vw, calc(96vh * 16 / 9));
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border-radius: 6px;
  background: #111318;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.presentation-end-screen strong {
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.05;
}

.presentation-end-screen span {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 2vw, 24px);
  font-weight: 800;
}

.presentation-presenter-notes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding-top: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.presentation-presenter-notes p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre-wrap;
}

.presentation-presenter.blank-black {
  background: #000;
}

.presentation-presenter.blank-white {
  background: #fff;
  color: #111;
}

.presentation-presenter.blank-black .presentation-presenter-stage,
.presentation-presenter.blank-white .presentation-presenter-stage {
  visibility: hidden;
}

.presentation-presenter.blank-white .presentation-presenter-notes,
.presentation-presenter.blank-white .presentation-presenter-notes p {
  color: #111;
}

.presentation-logo-overlay {
  position: absolute;
  z-index: 9000;
  height: auto;
  max-height: 18%;
  object-fit: contain;
  pointer-events: none;
}

.presentation-slide-preview .presentation-logo-overlay {
  max-height: 20%;
}

.presentation-lock-banner {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 9200;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(215, 0, 91, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #20242a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(32, 36, 42, 0.12);
}

.presentation-lock-banner button {
  border: 0;
  border-radius: 6px;
  background: #20242a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.presentation-conflict-panel {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(215, 0, 91, 0.22);
  background: #fff7fb;
  color: #20242a;
}

.presentation-conflict-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.presentation-conflict-server,
.presentation-conflict-revisions {
  border: 1px solid rgba(32, 36, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: #20242a;
}

.presentation-conflict-server pre {
  white-space: pre-wrap;
  margin: 8px 0 0;
  color: #5c6675;
}

.presentation-conflict-revisions {
  display: grid;
  gap: 6px;
}

.presentation-conflict-revisions button,
.presentation-progress-board article {
  border: 1px solid rgba(32, 36, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #20242a;
}

.presentation-conflict-revisions button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  text-align: left;
}

.presentation-slide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #6a7280;
  font-size: 11px;
}

.presentation-slide-meta i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c9d1dc;
  color: #20242a;
}

.presentation-slide-meta i.done {
  background: #0e8f62;
}

.presentation-slide-meta b {
  color: #d7005b;
}

.presentation-progress-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.presentation-progress-board article {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.presentation-progress-board article > div:first-child {
  display: grid;
  gap: 3px;
}

.presentation-progress-board strong {
  color: #20242a;
}

.presentation-progress-board span {
  color: #6a7280;
  font-size: 12px;
}

.presentation-progress-track,
.presentation-card-progress i {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #edf0f4;
  color: #20242a;
}

.presentation-progress-track i,
.presentation-card-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0e8f62;
}

.presentation-card-progress {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  color: #5c6675;
  font-size: 12px;
  font-weight: 800;
}

.presentation-flow-imports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.presentation-flow-imports select {
  min-width: 180px;
}

.presentation-logo-preview {
  display: grid;
  place-items: center;
  width: 120px;
  aspect-ratio: 16 / 9;
  border: 1px dashed #c9d1dc;
  border-radius: 8px;
  background: #f8fafc;
  color: #20242a;
}

.presentation-logo-preview img {
  max-width: 86%;
  max-height: 72%;
  object-fit: contain;
}

.presentation-print-export {
  display: none;
}

@media print {
  @page {
    size: landscape;
    margin: 0;
  }

  body.presentation-printing > *:not(.presentation-print-export) {
    display: none !important;
  }

  body.presentation-printing .presentation-print-export {
    display: block !important;
  }

  .presentation-print-page {
    width: 100vw;
    height: 56.25vw;
    max-height: 100vh;
    break-after: page;
    page-break-after: always;
    display: grid;
    place-items: center;
    background: #fff;
  }

  .presentation-print-page .presentation-stage-wrap {
    width: 100% !important;
    max-width: none !important;
  }

  .presentation-print-page .presentation-canvas {
    box-shadow: none !important;
  }
}

@media (max-width: 760px) {
  .presentation-editor-grid {
    grid-template-columns: 1fr !important;
  }

  .presentation-slide-navigator {
    width: 100%;
    max-height: none;
    overflow: hidden;
  }

  .presentation-slide-list.google-like {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }

  .presentation-slide-list.google-like .presentation-slide-thumb {
    min-width: 148px;
  }

  .presentation-progress-board {
    grid-template-columns: 1fr;
  }

  .presentation-flow-imports {
    width: 100%;
  }

  .presentation-flow-imports select {
    flex: 1 1 180px;
  }
}

/* Presentation editor: Google Slides-style editing surface */
.presentation-editor-shell {
  --presentation-blue: #1a73e8;
  --presentation-workspace: #f1f3f4;
  --presentation-toolbar: #ffffff;
  --presentation-red: #d93025;
  height: calc(100vh - 104px);
  min-height: 680px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  color: #20242a;
}

.presentation-editor-shell .presentation-doc-header {
  min-height: 52px;
  padding: 6px 12px;
  border-bottom: 1px solid #e8eaed;
  background: var(--presentation-toolbar);
}

.presentation-editor-shell .presentation-back-chip {
  background: transparent;
  color: #3c4043;
}

.presentation-editor-shell .presentation-back-chip:hover {
  background: #f1f3f4;
  color: #20242a;
}

.presentation-editor-shell .presentation-doc-title {
  width: min(520px, 46vw);
  min-height: 34px;
  border-radius: 4px;
  color: #202124;
  font-size: 18px;
  font-weight: 500;
}

.presentation-editor-shell .presentation-doc-title:disabled {
  color: #202124;
  opacity: 1;
}

.presentation-editor-shell .presentation-save-state {
  color: #5f6368;
  font-size: 12px;
}

.presentation-editor-shell .presentation-doc-actions .ghost,
.presentation-editor-shell .presentation-start-button {
  min-height: 34px;
  border-radius: 4px;
  box-shadow: none;
}

.presentation-editor-shell .presentation-start-button {
  background: var(--presentation-blue);
  color: #fff;
}

.presentation-editor-shell .presentation-quick-toolbar {
  min-height: 42px;
  padding: 5px 10px;
  gap: 3px;
  border-bottom: 1px solid #dadce0;
  background: var(--presentation-toolbar);
}

.presentation-editor-shell .presentation-quick-toolbar button,
.presentation-editor-shell .presentation-zoom-pill {
  border-radius: 4px;
  color: #3c4043;
  font-weight: 500;
}

.presentation-editor-shell .presentation-icon-button {
  width: 32px;
  min-width: 32px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.presentation-editor-shell .presentation-tool-chip {
  width: auto;
  min-width: 0;
  padding: 0 9px;
  white-space: nowrap;
}

.presentation-editor-shell .presentation-quick-toolbar button:hover:not(:disabled),
.presentation-editor-shell .presentation-quick-toolbar button.active,
.presentation-editor-shell .presentation-zoom-pill:hover,
.presentation-editor-shell .presentation-zoom-pill.active {
  border-color: transparent;
  background: #f1f3f4;
  color: #20242a;
}

.presentation-editor-shell .presentation-toolbar-separator {
  height: 24px;
  background: #dadce0;
  color: #20242a;
}

.presentation-context-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.presentation-font-size-readout {
  min-width: 28px;
  color: #3c4043;
  font-size: 12px;
  text-align: center;
}

.presentation-editor-shell .text-bold {
  font-weight: 800;
}

.presentation-editor-shell .text-italic {
  font-style: italic;
}

.presentation-editor-shell .text-underline {
  text-decoration: underline;
}

.presentation-editor-shell .presentation-menu-layer {
  top: 96px;
}

.presentation-editor-grid {
  grid-template-columns: 184px minmax(0, 1fr) 320px;
  grid-template-areas: "filmstrip stage format";
  background: var(--presentation-workspace);
}

.presentation-editor-grid.format-closed {
  grid-template-columns: 184px minmax(0, 1fr);
  grid-template-areas: "filmstrip stage";
}

.presentation-slide-navigator {
  grid-area: filmstrip;
  border-right: 1px solid #dadce0;
  background: #fff;
  color: #20242a;
}

.presentation-main-surface {
  grid-area: stage;
  background: var(--presentation-workspace);
}

.presentation-format-sidebar {
  grid-area: format;
  border-left: 1px solid #dadce0;
  background: #fff;
  padding: 0;
  color: #20242a;
}

.presentation-deck-switcher {
  padding: 8px 10px;
  border-bottom-color: #e8eaed;
}

.presentation-deck-switcher summary {
  color: #3c4043;
  font-weight: 600;
}

.presentation-slide-list.google-like {
  gap: 8px;
  padding: 10px 8px 12px;
}

.presentation-slide-list.google-like .presentation-slide-thumb {
  grid-template-columns: 22px minmax(0, 1fr);
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 6px;
}

.presentation-slide-list.google-like .presentation-slide-thumb:hover {
  background: #f8fafd;
  color: #20242a;
}

.presentation-slide-list.google-like .presentation-slide-thumb.active {
  border-color: var(--presentation-blue);
  background: #fff;
  box-shadow: 0 0 0 1px var(--presentation-blue);
  color: #20242a;
}

.presentation-slide-preview {
  position: relative;
  border-color: #dadce0;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.14);
}

.presentation-slide-meta {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.presentation-slide-thumb-body {
  position: relative;
}

.presentation-slide-meta em,
.presentation-slide-meta b {
  max-width: 80px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.14);
  color: #3c4043;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-slide-meta i {
  width: 9px;
  height: 9px;
  margin-top: 2px;
  border: 1px solid #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.22);
}

.presentation-slide-meta b {
  color: #b3261e;
}

.presentation-new-slide {
  margin: 8px;
  border-color: #dadce0;
  border-radius: 4px;
  color: #3c4043;
  font-weight: 600;
}

.presentation-canvas-workspace {
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 34px;
  background: var(--presentation-workspace);
}

.presentation-canvas-workspace .presentation-edit-stage {
  width: calc(1040px * var(--presentation-scale, 1));
  height: calc(585px * var(--presentation-scale, 1));
  max-width: none;
  margin: auto;
}

.presentation-canvas-workspace .presentation-edit-stage .presentation-canvas {
  width: 1040px;
  height: 585px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(60, 64, 67, 0.26);
  transform: scale(var(--presentation-scale, 1));
  transform-origin: top left;
}

.presentation-canvas-workspace .presentation-canvas.empty {
  width: min(1040px, 100%);
  height: auto;
}

.presentation-block.selected {
  border-color: var(--presentation-blue);
}

.presentation-resize-handle {
  width: 8px;
  height: 8px;
  border: 1px solid var(--presentation-blue);
  border-radius: 1px;
  background: #fff;
  color: #20242a;
}

.presentation-rotate-handle {
  border-color: var(--presentation-blue);
}

.presentation-rotate-handle::after {
  background: var(--presentation-blue);
}

.presentation-selection-box {
  border: 1px solid var(--presentation-blue);
  background: rgba(26, 115, 232, 0.08);
}

.presentation-snap-guide {
  background: transparent;
}

.presentation-snap-guide.x {
  width: 0;
  border-left: 1px dashed var(--presentation-red);
}

.presentation-snap-guide.y {
  height: 0;
  border-top: 1px dashed var(--presentation-red);
}

.presentation-lock-banner {
  top: 10px;
  border-color: #dadce0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #3c4043;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.16);
}

.presentation-lock-banner button {
  border-radius: 999px;
  background: var(--presentation-blue);
}

.presentation-format-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 44px;
  padding: 10px 12px;
  border-bottom: 1px solid #e8eaed;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #20242a;
}

.presentation-format-head strong {
  color: #202124;
  font-size: 14px;
  font-weight: 600;
}

.presentation-format-head button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
}

.presentation-format-head button:hover {
  background: #f1f3f4;
  color: #20242a;
}

.presentation-format-sidebar .presentation-inspector-tabs {
  margin: 10px 12px;
}

.presentation-format-sidebar .presentation-settings {
  padding: 0 12px 14px;
}

.presentation-format-section {
  border-top: 1px solid #e8eaed;
}

.presentation-format-section summary {
  min-height: 38px;
  padding: 10px 0;
  color: #202124;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

.presentation-format-section summary::-webkit-details-marker {
  display: none;
}

.presentation-format-section summary::after {
  content: "▾";
  float: right;
  color: #5f6368;
}

.presentation-format-section:not([open]) summary::after {
  content: "▸";
}

.presentation-format-sidebar .presentation-settings-section {
  border-bottom: 0;
  padding: 0 0 12px;
}

.presentation-notes-panel {
  position: relative;
  border-top: 1px solid #dadce0;
  background: #fff;
  padding: 0 12px 10px;
  color: #20242a;
}

.presentation-notes-panel.open {
  height: var(--presentation-notes-height, 92px);
}

.presentation-notes-panel.collapsed {
  min-height: 38px;
  padding-bottom: 0;
}

.presentation-notes-toggle {
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #5f6368;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.presentation-notes-panel textarea {
  min-height: 0;
  height: calc(100% - 40px);
  max-height: none;
  resize: none;
  border: 0;
  color: #202124;
}

.presentation-notes-resizer {
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 6px;
  cursor: ns-resize;
}

.presentation-conflict-panel {
  border-bottom-color: #f4c7c3;
  background: #fce8e6;
  color: #20242a;
}

.presentation-progress-board {
  margin: 12px;
}

.presentation-context-menu hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #e8eaed;
  margin: 4px 0;
}

.presentation-context-menu button:disabled {
  color: #b8bdc5;
  cursor: not-allowed;
}

@media (max-width: 1120px) {
  .presentation-editor-grid {
    grid-template-columns: 164px minmax(0, 1fr);
    grid-template-areas: "filmstrip stage" "format format";
  }

  .presentation-editor-grid.format-closed {
    grid-template-columns: 164px minmax(0, 1fr);
    grid-template-areas: "filmstrip stage";
  }

  .presentation-format-sidebar {
    max-height: 340px;
  }
}

@media (max-width: 768px) {
  .presentation-editor-shell {
    height: calc(100vh - 84px);
    min-height: 620px;
  }

  .presentation-editor-shell .presentation-doc-header {
    align-items: stretch;
    flex-direction: column;
  }

  .presentation-editor-shell .presentation-doc-title {
    width: 100%;
  }

  .presentation-editor-shell .presentation-doc-actions {
    overflow-x: auto;
  }

  .presentation-editor-shell .presentation-quick-toolbar {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .presentation-editor-grid,
  .presentation-editor-grid.format-closed {
    grid-template-columns: 1fr;
    grid-template-areas: "stage" "filmstrip";
  }

  .presentation-slide-navigator {
    border-right: 0;
    border-top: 1px solid #dadce0;
    border-bottom: 0;
    grid-template-rows: auto auto;
  }

  .presentation-deck-switcher {
    display: none;
  }

  .presentation-slide-list.google-like {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
  }

  .presentation-slide-list.google-like .presentation-slide-thumb {
    flex: 0 0 150px;
  }

  .presentation-new-slide {
    flex: 0 0 auto;
    margin: 0 8px 8px;
  }

  .presentation-canvas-workspace {
    min-height: 300px;
    padding: 18px;
  }

  .presentation-format-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    max-height: 72vh;
    border-top: 1px solid #dadce0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 24px rgba(60, 64, 67, 0.24);
  }
}

