:root {
  --font-display: "Manrope", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Manrope", sans-serif;
  --ui-bg: #f3f5f7;
  --panel: #ffffff;
  --ink: #20242a;
  --muted: #7a828c;
  --line: #e5e9ee;
  --sidebar: #20242a;
  --sidebar-soft: #2c3138;
  --shadow: 0 24px 70px rgba(32, 36, 42, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ui-bg);
  overflow: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.app-shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  width: 100%;
  height: 100vh;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 14px 14px;
  color: #f9fbfc;
  background: var(--sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 20px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  font-size: 21px;
  background: linear-gradient(135deg, #2f80ed, #56ccf2);
  box-shadow: 0 10px 26px rgba(47, 128, 237, 0.32);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0;
}

.brand-copy span {
  margin-top: 4px;
  color: #9ca4ae;
  font-size: 11px;
}

.slide-count {
  margin: 0 6px 10px;
  color: #8f98a2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide-list {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 1px 3px 12px;
  scrollbar-width: thin;
  scrollbar-color: #4a515a transparent;
}

.slide-thumb {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 67px;
  padding: 8px;
  border-radius: 12px;
  color: #d7dce2;
  text-align: left;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slide-thumb:hover {
  background: rgba(255, 255, 255, 0.06);
}

.slide-thumb.active {
  background: #f5f7f9;
  color: #20242a;
}

.thumb-index {
  align-self: start;
  padding-top: 9px;
  color: #7d8791;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.thumb-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  background: #3b424b;
}

.slide-thumb.active .thumb-preview {
  background: #dfe6ec;
}

.thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.56));
}

.thumb-text {
  position: absolute;
  right: 6px;
  bottom: 5px;
  left: 6px;
  overflow: hidden;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-thumb.active .thumb-text {
  color: #20242a;
}

.add-slide,
.footer-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  border-radius: 11px;
  color: #e5e9ee;
  background: transparent;
  transition: background 0.2s ease;
}

.add-slide {
  justify-content: center;
  min-height: 43px;
  border: 1px dashed #4c555f;
  color: #b9c1ca;
  font-weight: 700;
}

.add-slide:hover {
  border-color: #8c98a5;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.add-slide svg,
.footer-action svg {
  width: 17px;
  height: 17px;
}

.layout-panel {
  margin-top: 10px;
  padding: 13px;
  border-radius: 14px;
  background: var(--sidebar-soft);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: #f2f4f7;
  font-size: 13px;
  font-weight: 800;
}

.ghost-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #8b95a0;
  background: transparent;
}

.ghost-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-icon svg {
  width: 17px;
  height: 17px;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.layout-option {
  display: flex;
  min-height: 57px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  color: #cbd2d9;
  font-size: 10px;
  background: #393f47;
  transition: transform 0.18s ease, background 0.18s ease;
}

.layout-option:hover {
  color: #fff;
  background: #464d56;
  transform: translateY(-2px);
}

.layout-option svg {
  width: 18px;
  height: 18px;
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-action {
  justify-content: center;
  min-height: 42px;
  color: #b7c0c9;
  font-size: 12px;
}

.footer-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(320px, 1.3fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.deck-title-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  background: transparent;
}

.deck-title-input:focus {
  box-shadow: 0 1px 0 #2f80ed;
}

.ai-bar {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 43px;
  padding: 0 6px 0 13px;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  background: #f7f9fb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-bar:focus-within {
  border-color: rgba(47, 128, 237, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1);
}

.ai-bar > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #2f80ed;
}

.ai-bar input {
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: #30353c;
  font-size: 13px;
  background: transparent;
}

.ai-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 31px;
  padding: 0 13px;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: #2f80ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ai-bar button:hover {
  background: #1f6fd8;
  transform: translateY(-1px);
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.tool-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dfe5eb;
  border-radius: 10px;
  color: #5d6670;
  background: #fff;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.icon-button:hover,
.tool-button:hover {
  border-color: #bdc7d1;
  color: #20242a;
  background: #f8fafc;
}

.tool-button.danger:hover {
  border-color: #f6c5c5;
  color: #d64545;
  background: #fff4f4;
}

.icon-button svg,
.tool-button svg {
  width: 17px;
  height: 17px;
}

.export-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 17px;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: #20242a;
  box-shadow: 0 10px 24px rgba(32, 36, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.export-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(32, 36, 42, 0.22);
}

.export-button svg {
  width: 17px;
  height: 17px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 0;
  flex: 1;
}

.canvas-stage {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 16px 22px 26px;
}

.stage-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  margin-bottom: 7px;
}

.slide-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5d6670;
  font-size: 12px;
  font-weight: 700;
}

.slide-label .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b7c0c9;
}

.stage-tools {
  display: flex;
  gap: 6px;
}

.tool-button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.tool-button svg {
  width: 15px;
  height: 15px;
}

.canvas-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 18px;
}

.canvas-shadow {
  position: relative;
  width: 100%;
  max-width: 1150px;
  overflow: visible;
}

#slideCanvas {
  position: relative;
  transform-origin: top left;
  width: 1280px;
  height: 720px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 65px rgba(32, 36, 42, 0.18);
}

.slide {
  position: absolute;
  inset: 0;
  width: 1280px;
  height: 720px;
  overflow: hidden;
  background: #fff;
  font-family: var(--font-body);
  letter-spacing: 0;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slide-inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  color: var(--slide-accent);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slide-eyebrow::before {
  width: 34px;
  height: 4px;
  border-radius: 99px;
  content: "";
  background: var(--slide-accent);
}

.slide-title {
  margin: 0;
  color: var(--slide-ink);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.slide-subtitle {
  margin: 20px 0 0;
  color: var(--slide-muted);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.65;
}

.cover-slide {
  color: #fff;
}

.cover-slide .slide-inner {
  justify-content: center;
  padding: 92px 94px;
}

.cover-slide .slide-eyebrow {
  color: #fff;
}

.cover-slide .slide-eyebrow::before {
  background: var(--slide-accent);
}

.cover-slide .slide-title {
  max-width: 940px;
  color: #fff;
  font-size: 68px;
}

.cover-slide .slide-subtitle {
  max-width: 730px;
  color: rgba(255, 255, 255, 0.82);
}

.section-slide .slide-inner {
  justify-content: center;
  padding: 96px 100px;
}

.section-slide .slide-title {
  font-size: 66px;
}

.agenda-slide .slide-inner,
.content-slide .slide-inner,
.stats-slide .slide-inner,
.team-slide .slide-inner,
.timeline-slide .slide-inner {
  padding: 66px 76px;
}

.page-kicker {
  margin-bottom: 14px;
  color: var(--slide-accent);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: var(--slide-ink);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.page-subtitle {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--slide-muted);
  font-size: 17px;
  line-height: 1.6;
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
  margin-top: 35px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 17px;
  align-items: center;
  min-height: 76px;
  padding: 14px 20px;
  border-radius: 15px;
  background: var(--slide-card);
}

.agenda-num {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  background: var(--slide-accent);
}

.agenda-text {
  color: var(--slide-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
  min-height: 0;
  margin-top: 38px;
}

.split-layout.image-left {
  grid-template-columns: 0.9fr 1.1fr;
}

.split-layout.image-left .split-image {
  order: -1;
}

.split-copy {
  min-width: 0;
}

.split-copy .page-title {
  font-size: 38px;
}

.body-copy {
  margin: 20px 0 0;
  color: var(--slide-muted);
  font-size: 17px;
  line-height: 1.7;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 12px;
  color: var(--slide-ink);
  font-size: 16px;
  line-height: 1.55;
}

.bullet-list li::before {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  content: "";
  background: var(--slide-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--slide-accent) 16%, transparent);
}

.split-image {
  overflow: hidden;
  border-radius: 18px;
  background: #e9edf1;
}

.split-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.quote-slide .slide-inner {
  justify-content: center;
  padding: 100px 110px;
}

.quote-mark {
  width: 55px;
  height: 55px;
  margin-bottom: 24px;
  color: var(--slide-accent);
}

.quote-text {
  max-width: 1030px;
  margin: 0;
  color: var(--slide-ink);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0;
}

.quote-author {
  margin-top: 29px;
  color: var(--slide-muted);
  font-size: 17px;
  font-weight: 700;
}

.quote-role {
  margin-top: 4px;
  color: var(--slide-accent);
  font-size: 14px;
  font-weight: 800;
}

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

.stat-card {
  min-height: 180px;
  padding: 25px 24px;
  border-radius: 17px;
  background: var(--slide-card);
}

.stat-value {
  color: var(--slide-accent);
  font-family: var(--font-display);
  font-size: 45px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.stat-label {
  margin-top: 12px;
  color: var(--slide-muted);
  font-size: 15px;
  line-height: 1.5;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
  margin-top: 36px;
}

.team-card {
  overflow: hidden;
  min-height: 350px;
  border-radius: 18px;
  background: var(--slide-card);
}

.team-photo {
  height: 240px;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 19px 21px;
}

.team-name {
  color: var(--slide-ink);
  font-size: 20px;
  font-weight: 900;
}

.team-role {
  margin-top: 5px;
  color: var(--slide-accent);
  font-size: 14px;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 35px;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 2px;
  content: "";
  background: color-mix(in srgb, var(--slide-accent) 24%, transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: 2px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--slide-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--slide-accent) 18%, transparent);
}

.timeline-time {
  padding-left: 30px;
  color: var(--slide-accent);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.timeline-content h4 {
  margin: 0;
  color: var(--slide-ink);
  font-size: 18px;
  font-weight: 900;
}

.timeline-content p {
  margin: 6px 0 0;
  color: var(--slide-muted);
  font-size: 15px;
  line-height: 1.55;
}

.closing-slide .slide-inner {
  justify-content: center;
  align-items: center;
  padding: 80px;
  text-align: center;
}

.closing-slide .slide-title {
  color: #fff;
  font-size: 68px;
}

.closing-slide .slide-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.closing-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 99px;
  color: #fff;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.12);
}

.inspector {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #fff;
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 4px;
  color: #8a939d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inspector-header h2,
.drawer-header h3 {
  margin: 0;
  color: #20242a;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.inspector-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.field {
  margin-bottom: 18px;
}

.field > label,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: #4c555f;
  font-size: 12px;
  font-weight: 800;
}

.text-input,
.text-area,
.select-input {
  width: 100%;
  border: 1px solid #dfe5eb;
  outline: 0;
  color: #20242a;
  background: #fbfcfd;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.text-input,
.select-input {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

.text-area {
  min-height: 92px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.text-input:focus,
.text-area:focus,
.select-input:focus {
  border-color: rgba(47, 128, 237, 0.65);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.list-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-row {
  position: relative;
  padding: 10px;
  border: 1px solid #e6ebf0;
  border-radius: 11px;
  background: #fafbfc;
}

.list-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.list-row-index {
  color: #8a939d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: #8b95a0;
  background: transparent;
}

.mini-icon:hover {
  color: #d64545;
  background: #fff0f0;
}

.mini-icon svg {
  width: 14px;
  height: 14px;
}

.list-row .text-input,
.list-row .text-area {
  margin-bottom: 7px;
  background: #fff;
}

.list-row .text-area {
  min-height: 68px;
}

.add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px dashed #c9d2da;
  border-radius: 10px;
  color: #64707b;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
}

.add-row:hover {
  border-color: #2f80ed;
  color: #2f80ed;
  background: #f4f8ff;
}

.add-row svg {
  width: 14px;
  height: 14px;
}

.image-picker {
  margin-top: 3px;
}

.current-image {
  overflow: hidden;
  height: 130px;
  margin-bottom: 10px;
  border: 1px solid #e2e8ee;
  border-radius: 12px;
  background: #edf1f4;
}

.current-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.image-choice {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #e8edf1;
}

.image-choice.active {
  border-color: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.image-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-image-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.ai-image-box .text-input {
  min-width: 0;
}

.ai-image-button {
  min-width: 42px;
  border-radius: 10px;
  color: #fff;
  background: #20242a;
}

.ai-image-button svg {
  width: 16px;
  height: 16px;
}

.inspector-tip {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  color: #7a838c;
  font-size: 11px;
  line-height: 1.55;
}

.inspector-tip svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: #2f80ed;
}

.theme-drawer,
.help-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 27, 32, 0.38);
  backdrop-filter: blur(4px);
}

.drawer-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(17, 20, 24, 0.28);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.theme-option {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 13px;
  border: 2px solid transparent;
  border-radius: 13px;
  color: #fff;
  text-align: left;
  background: var(--theme-bg);
}

.theme-option.active {
  border-color: #20242a;
  box-shadow: 0 0 0 3px rgba(32, 36, 42, 0.1);
}

.theme-option strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.theme-option span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  opacity: 0.75;
}

.theme-swatches {
  display: flex;
  gap: 5px;
  margin-top: 20px;
}

.theme-swatches i {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.drawer-note,
.help-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #626c76;
  font-size: 11px;
  line-height: 1.55;
  background: #f4f6f8;
}

.drawer-note svg,
.help-warning svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: #2f80ed;
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  align-items: start;
}

.help-list li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: #2f80ed;
}

.help-list p {
  margin: 1px 0 0;
  color: #4d5660;
  font-size: 13px;
  line-height: 1.65;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  background: #20242a;
  box-shadow: 0 18px 45px rgba(32, 36, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #c84c4c;
}

.ai-loading {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(24, 28, 32, 0.48);
  backdrop-filter: blur(7px);
}

.loading-card {
  display: flex;
  min-width: 280px;
  flex-direction: column;
  align-items: center;
  padding: 30px 34px;
  border-radius: 18px;
  color: #20242a;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.loading-card p {
  margin: 17px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #2f80ed, #56ccf2, #f2994a, #2f80ed);
  animation: spin 1.1s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
}

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

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 214px 1fr;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .topbar {
    grid-template-columns: minmax(170px, 0.6fr) minmax(270px, 1.2fr) auto;
    gap: 12px;
    padding: 12px 14px;
  }
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    min-height: auto;
  }

  .slide-list {
    max-height: 210px;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .slide-thumb {
    min-width: 150px;
  }

  .layout-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .deck-title-wrap {
    grid-column: 1 / -1;
  }

  .ai-bar {
    grid-column: 1 / -1;
  }

  .top-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

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

  .canvas-stage {
    min-height: 440px;
  }

  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
