/* Aula JJ Frías · Esquemas visuales. All rules stay inside the shortcode root. */
.ae-app {
  --ae-ink: #11243e;
  --ae-muted: #52637b;
  --ae-line: #dce4ed;
  --ae-paper: #fffefa;
  --ae-cream: #fff8ec;
  --ae-sky: #dcf3ff;
  --ae-blue: #197eb5;
  --ae-blue-dark: #135f90;
  --ae-yellow: #ffcf58;
  --ae-coral: #f27776;
  --ae-mint: #a8e8c0;
  --ae-lilac: #d8c5fa;
  --ae-shadow: 0 22px 70px rgba(24, 49, 81, .10);
  --ae-shadow-small: 0 8px 28px rgba(24, 49, 81, .075);
  color: var(--ae-ink);
  background: var(--ae-cream);
  border: 1px solid #f3ebdc;
  border-radius: 30px;
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 24px 0 48px calc(50% - min(750px, calc(50vw - 16px)));
  max-width: none;
  overflow: visible;
  position: relative;
  width: min(1500px, calc(100vw - 32px));
}

.ae-app,
.ae-app * { box-sizing: border-box; }
.ae-app *:focus-visible { outline: 3px solid var(--ae-blue); outline-offset: 3px; }
.ae-app :is(button, input, select, textarea) { font: inherit; }
.ae-app :is(button, select) { cursor: pointer; }
.ae-app button { color: inherit; }
.ae-app img, .ae-app svg { max-width: 100%; }
.ae-app :is(h1, h2, h3, h4, p) { margin-top: 0; }
.ae-app :is(h1, h2, h3, h4) { color: var(--ae-ink); font-family: inherit; }
.ae-app [hidden] { display: none !important; }
.ae-app .ae-visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.ae-app .ae-hero-actions,
.ae-app .ae-workspace-tags,
.ae-app .ae-board-editor-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.ae-app .ae-board-editor-head { justify-content: space-between; }
.ae-app .ae-save-note { color: #557187; font-size: .82rem; margin: 0; }

.ae-app .ae-hero {
  background: #fffdf5;
  border-bottom: 1px solid #e4edf0;
  padding: 19px clamp(18px, 4vw, 64px);
}

.ae-app .ae-hero-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  margin: auto;
  max-width: 1340px;
}

.ae-app .ae-hero-kicker {
  color: #23684b;
  display: block;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.2;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ae-app .ae-eyebrow {
  align-items: center;
  background: #e6f8ed;
  border: 1px solid #b8e6c9;
  border-radius: 999px;
  color: #23684b;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  gap: 8px;
  letter-spacing: .1em;
  line-height: 1.3;
  margin-bottom: 18px;
  padding: 9px 14px;
  text-transform: uppercase;
}

.ae-app .ae-hero-title {
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.1;
  margin: 0;
}

.ae-app .ae-hero-copy {
  color: var(--ae-muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: .83rem;
  line-height: 1.35;
  margin: 4px 0 0;
}

.ae-app .ae-hero-actions { justify-content: flex-end; }
.ae-app .ae-hero-actions .ae-button { font-size: .86rem; min-height: 46px; padding: 9px 13px; }

.ae-app .ae-button {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 2px solid var(--ae-ink);
  border-radius: 14px;
  box-shadow: none;
  display: inline-flex;
  font-size: .97rem;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  line-height: 1.2;
  min-height: 48px;
  padding: 11px 18px;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
  white-space: normal;
}

.ae-app .ae-button:hover { box-shadow: 0 6px 0 rgba(17, 36, 62, .15); transform: translateY(-2px); }
.ae-app .ae-button:active { box-shadow: none; transform: translateY(0); }
.ae-app .ae-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.ae-app .ae-button--primary { background: var(--ae-yellow); }
.ae-app .ae-button--primary:hover { background: #ffd975; }
.ae-app .ae-button--ghost { background: transparent; border-color: #bdccd9; }
.ae-app .ae-button--ghost:hover { background: #eff7fb; }
.ae-app .ae-button--light { background: #fff; border-color: #fff; color: var(--ae-ink); }
.ae-app .ae-button--light:hover { background: #f0f8ff; }

.ae-app .ae-section {
  margin: 0 auto;
  max-width: 1440px;
  padding: clamp(32px, 5vw, 70px) clamp(18px, 4vw, 64px);
}
.ae-app .ae-section + .ae-section { padding-top: 4px; }

.ae-app .ae-section-heading {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  margin-bottom: 26px;
}
.ae-app .ae-section-heading h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.12;
  margin: 0;
}
.ae-app .ae-section-heading p { color: var(--ae-muted); margin: 6px 0 0; max-width: 650px; }

.ae-app .ae-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.ae-app .ae-search { flex: 1 1 260px; min-width: 0; position: relative; }
.ae-app .ae-search input,
.ae-app .ae-select,
.ae-app .ae-field :is(input, textarea, select) {
  appearance: none;
  background: #fff;
  border: 1.5px solid #bfcdda;
  border-radius: 12px;
  color: var(--ae-ink);
  min-height: 48px;
  outline: none;
  padding: 10px 14px;
  width: 100%;
}
.ae-app .ae-search input { padding-left: 43px; }
.ae-app .ae-search::before {
  border: 2px solid #66788e;
  border-radius: 50%;
  content: "";
  height: 13px;
  left: 16px;
  position: absolute;
  top: 15px;
  width: 13px;
}
.ae-app .ae-search::after {
  background: #66788e;
  content: "";
  height: 7px;
  left: 31px;
  position: absolute;
  top: 29px;
  transform: rotate(-45deg);
  transform-origin: top left;
  width: 2px;
}
.ae-app .ae-search input::placeholder,
.ae-app .ae-field :is(input, textarea)::placeholder { color: #8290a1; }
.ae-app :is(.ae-search input, .ae-select, .ae-field input, .ae-field textarea, .ae-field select):focus {
  border-color: var(--ae-blue);
  box-shadow: 0 0 0 3px rgba(25, 126, 181, .16);
}
.ae-app .ae-select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ae-ink) 50%), linear-gradient(135deg, var(--ae-ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  min-width: 190px;
  padding-right: 38px;
  width: auto;
}
.ae-app .ae-filter-list { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; }
.ae-app .ae-filter {
  appearance: none;
  background: #fff;
  border: 1.5px solid #d1dde6;
  border-radius: 999px;
  color: #38516c;
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.2;
  min-height: 48px;
  padding: 10px 17px;
  touch-action: manipulation;
}
.ae-app .ae-filter:hover { background: #eaf7ff; border-color: #8cc8e8; }
.ae-app .ae-filter.is-active,
.ae-app .ae-filter[aria-pressed="true"] { background: var(--ae-ink); border-color: var(--ae-ink); color: #fff; }

.ae-app .ae-gallery {
  display: grid;
  gap: clamp(15px, 2vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr));
}
.ae-app .ae-card {
  background: #fff;
  border: 1.5px solid #e0e8ed;
  border-radius: 22px;
  box-shadow: var(--ae-shadow-small);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ae-app .ae-card:hover,
.ae-app .ae-card:focus-within { border-color: #9acbe4; box-shadow: 0 16px 38px rgba(24, 49, 81, .15); transform: translateY(-4px); }
.ae-app .ae-card-preview {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: #e9f7ff;
  border-bottom: 1px solid #e3ebef;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}
.ae-app .ae-card:nth-child(5n + 2) .ae-card-preview { background: #f4edff; }
.ae-app .ae-card:nth-child(5n + 3) .ae-card-preview { background: #fff2e2; }
.ae-app .ae-card:nth-child(5n + 4) .ae-card-preview { background: #e9f8eb; }
.ae-app .ae-card:nth-child(5n) .ae-card-preview { background: #fff0f4; }
.ae-app .ae-card-preview :is(svg, img) { display: block; height: 100%; object-fit: contain; width: 100%; }
.ae-app .ae-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 19px; }
.ae-app .ae-card-meta { color: #477894; font-size: .76rem; font-weight: 850; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; }
.ae-app .ae-card-title { font-size: 1.23rem; font-weight: 900; letter-spacing: -.025em; line-height: 1.2; margin: 0; }
.ae-app .ae-card-body > p { color: var(--ae-muted); font-size: .9rem; line-height: 1.45; margin: 0; }
.ae-app .ae-card-footer { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.ae-app .ae-card-footer .ae-button { font-size: .86rem; min-height: 48px; padding: 9px 13px; }

.ae-app .ae-workspace { background: #f4f8f9; border-top: 1px solid #e1e9eb; padding: clamp(26px, 4vw, 56px) clamp(18px, 4vw, 64px); }
.ae-app .ae-workspace-head { align-items: start; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; margin: 0 auto 20px; max-width: 1340px; }
.ae-app .ae-workspace-head h2 { font-size: clamp(1.7rem, 2.7vw, 2.5rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.1; margin: 4px 0; }
.ae-app .ae-workspace-head p { color: var(--ae-muted); margin: 0; }
.ae-app .ae-workspace-layout { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); margin: 0 auto; max-width: 1340px; }
.ae-app .ae-preview-panel,
.ae-app .ae-side-panel {
  background: #fff;
  border: 1.5px solid #dce6eb;
  border-radius: 23px;
  box-shadow: var(--ae-shadow-small);
  min-width: 0;
  overflow: hidden;
}
.ae-app .ae-preview-panel { padding: clamp(12px, 2vw, 24px); }
.ae-app .ae-view-options { align-items: center; background: #edf5f8; border: 1px solid #d8e5eb; border-radius: 14px; display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; padding: 4px; }
.ae-app .ae-view-option { appearance: none; background: transparent; border: 0; border-radius: 10px; color: #426078; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 850; min-height: 44px; padding: 8px 13px; touch-action: manipulation; }
.ae-app .ae-view-option:hover { background: #deedf4; }
.ae-app .ae-view-option.is-active { background: #fff; box-shadow: 0 2px 8px rgba(24, 49, 81, .13); color: var(--ae-ink); }
.ae-app .ae-preview-stage {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #fffefa;
  border: 1px solid #d9e5e9;
  border-radius: 17px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}
.ae-app .ae-diagram { aspect-ratio: 16 / 9; display: block; height: auto; width: 100%; }
.ae-app .ae-diagram :is(svg, img) { display: block; height: 100%; object-fit: contain; width: 100%; }
.ae-app .ae-preview-stage > :is(svg, img) { display: block; height: 100%; object-fit: contain; width: 100%; }
.ae-app .ae-preview-stage > .ae-illustrated-image { background: #fff; }
.ae-app .ae-preview-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-top: 16px; }
.ae-app .ae-preview-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }

.ae-app .ae-side-panel { padding: 18px; }
.ae-app .ae-tabs { background: #eef4f7; border-radius: 13px; display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; }
.ae-app .ae-tab { appearance: none; background: transparent; border: 0; border-radius: 10px; color: #52677d; flex: 1; font-size: .9rem; font-weight: 800; min-height: 48px; padding: 9px; }
.ae-app .ae-tab:hover { background: #e1edf3; }
.ae-app .ae-tab.is-active,
.ae-app .ae-tab[aria-selected="true"] { background: #fff; box-shadow: 0 3px 10px rgba(24, 49, 81, .1); color: var(--ae-ink); }
.ae-app .ae-guide { color: #3b4e66; font-family: Inter, system-ui, sans-serif; }
.ae-app .ae-guide > h3,
.ae-app .ae-fields > h3 { font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", Inter, system-ui, sans-serif; font-size: 1.13rem; font-weight: 900; margin-bottom: 10px; }
.ae-app .ae-guide > p { line-height: 1.5; margin-bottom: 14px; }
.ae-app .ae-step { align-items: start; border-bottom: 1px solid #e7eef1; display: flex; gap: 12px; padding: 12px 0; }
.ae-app .ae-step:last-child { border-bottom: 0; }
.ae-app .ae-step::before { align-items: center; background: #e0f5ff; border: 1px solid #b4dff2; border-radius: 50%; color: #136c9d; content: counter(ae-step); counter-increment: ae-step; display: flex; flex: 0 0 30px; font-family: ui-rounded, system-ui, sans-serif; font-size: .82rem; font-weight: 900; height: 30px; justify-content: center; }
.ae-app .ae-guide { counter-reset: ae-step; }
.ae-app .ae-fields { display: grid; gap: 13px; }
.ae-app .ae-field { display: grid; gap: 6px; min-width: 0; }
.ae-app .ae-field label,
.ae-app .ae-field > span { color: #34485e; font-size: .87rem; font-weight: 800; }
.ae-app .ae-field textarea { min-height: 80px; resize: vertical; }
.ae-app .ae-field small { color: #63758a; font-size: .76rem; }
.ae-app .ae-related { border-top: 1px solid var(--ae-line); margin-top: 22px; padding-top: 20px; }
.ae-app .ae-related h3 { font-size: 1rem; font-weight: 900; margin-bottom: 10px; }
.ae-app .ae-related-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ae-app .ae-chip { align-items: center; background: #eef7fc; border: 1px solid #c8e0ec; border-radius: 999px; color: #315f7b; display: inline-flex; font-size: .78rem; font-weight: 750; gap: 5px; line-height: 1.2; min-height: 30px; padding: 6px 11px; text-decoration: none; }
.ae-app button.ae-chip { min-height: 48px; }
.ae-app .ae-chip:hover:is(a, button) { background: #def1fa; }
.ae-app .ae-empty { background: #fff; border: 2px dashed #c9d8e2; border-radius: 20px; color: var(--ae-muted); grid-column: 1 / -1; padding: 42px 22px; text-align: center; }
.ae-app .ae-empty h3 { font-size: 1.25rem; margin-bottom: 6px; }
.ae-app .ae-empty p { margin-bottom: 0; }
.ae-app .ae-footer { align-items: center; border-top: 1px solid #e8e6de; color: #617084; display: flex; flex-wrap: wrap; font-size: .82rem; gap: 10px 22px; justify-content: space-between; padding: 23px clamp(18px, 4vw, 64px); }
.ae-app .ae-footer a { color: var(--ae-blue-dark); font-weight: 750; }

/* The classroom view is a true viewport overlay, independent of the theme width. */
.ae-app .ae-board {
  background: #f6fbfd;
  color: var(--ae-ink);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  inset: 0;
  overflow: hidden;
  position: fixed;
  width: 100vw;
  z-index: 999999;
}
.ae-app .ae-board-header,
.ae-app .ae-board-actions {
  align-items: center;
  background: #fff;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  padding: 11px clamp(14px, 2.5vw, 38px);
  position: relative;
  z-index: 2;
}
.ae-app .ae-board-header { border-bottom: 1px solid #dce6ec; min-height: 68px; }
.ae-app .ae-board-actions { border-top: 1px solid #dce6ec; min-height: 64px; }
.ae-app .ae-board-actions .ae-view-options { margin: 0; }
.ae-app .ae-board-header h2 { font-size: clamp(1rem, 1.7vw, 1.55rem); font-weight: 900; line-height: 1.15; margin: 0; }
.ae-app .ae-board-header p { color: var(--ae-muted); font-size: .82rem; margin: 0; }
.ae-app .ae-board-header > div,
.ae-app .ae-board-actions > div { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.ae-app .ae-board-stage {
  align-items: center;
  background: #eff6fa;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: clamp(6px, 1.3vw, 20px);
  transition: width .2s ease, margin-right .2s ease;
  width: 100%;
}
.ae-app .ae-board-stage > .ae-diagram,
.ae-app .ae-board-stage > :is(svg, img) {
  aspect-ratio: 16 / 9;
  background: var(--ae-paper);
  border: 1px solid #d4e1e8;
  border-radius: clamp(7px, 1vw, 16px);
  box-shadow: 0 12px 42px rgba(22, 48, 77, .12);
  display: block;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  overflow: hidden;
  width: min(100%, calc((100dvh - 158px) * 16 / 9));
}
.ae-app .ae-board-stage > .ae-diagram :is(svg, img) { border: 0; border-radius: 0; box-shadow: none; height: 100%; width: 100%; }
.ae-app .ae-board .ae-button { min-height: 48px; }
.ae-app .ae-icon-button {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1.5px solid #c9d9e3;
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  min-width: 48px;
  padding: 9px;
  touch-action: manipulation;
}
.ae-app .ae-icon-button:hover { background: #eaf7ff; border-color: #8dc5e2; }
.ae-app .ae-icon-button svg { height: 22px; width: 22px; }
.ae-app .ae-board-editor {
  background: #fff;
  border-left: 1px solid #d3e0e8;
  bottom: 0;
  box-shadow: -14px 0 36px rgba(17, 36, 62, .13);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100vw;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform .22s ease;
  width: min(390px, 38vw);
  z-index: 5;
}
.ae-app .ae-board-editor.is-open,
.ae-app .ae-board.is-editing .ae-board-editor { transform: translateX(0); }
.ae-app .ae-board-editor h3 { font-size: 1.25rem; font-weight: 900; margin: 0; }
.ae-app .ae-board-editor > p { color: var(--ae-muted); font-size: .9rem; margin: 0; }
.ae-app .ae-board.is-editing .ae-board-stage { margin-right: min(390px, 38vw); width: calc(100% - min(390px, 38vw)); }
.ae-app .ae-board.is-editing .ae-board-stage > .ae-diagram,
.ae-app .ae-board.is-editing .ae-board-stage > :is(svg, img) { width: min(100%, calc((100dvh - 158px) * 16 / 9)); }

@media (max-width: 1100px) {
  .ae-app .ae-workspace-layout { grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); }
}

@media (max-width: 800px) {
  .ae-app { border-radius: 20px; margin-top: 12px; margin-bottom: 32px; }
  .ae-app .ae-hero-inner { align-items: flex-start; flex-direction: column; }
  .ae-app .ae-hero-actions { justify-content: flex-start; }
  .ae-app .ae-workspace-layout { grid-template-columns: 1fr; }
  .ae-app .ae-side-panel { padding: 16px; }
  .ae-app .ae-board-editor { width: min(390px, 48vw); }
  .ae-app .ae-board.is-editing .ae-board-stage { margin-right: min(390px, 48vw); width: calc(100% - min(390px, 48vw)); }
}

@media (max-width: 620px) {
  .ae-app .ae-hero { padding: 15px 16px; }
  .ae-app .ae-hero-title { font-size: 1.65rem; }
  .ae-app .ae-section { padding-left: 16px; padding-right: 16px; }
  .ae-app .ae-gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
  .ae-app .ae-toolbar { align-items: stretch; }
  .ae-app .ae-search { flex-basis: 100%; }
  .ae-app .ae-select { width: 100%; }
  .ae-app .ae-filter-list { flex-wrap: nowrap; margin-left: -16px; margin-right: -16px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: thin; }
  .ae-app .ae-filter { flex: 0 0 auto; }
  .ae-app .ae-preview-actions { justify-content: start; }
  .ae-app .ae-board-header,
  .ae-app .ae-board-actions { padding: 7px 10px; }
  .ae-app .ae-board-header { min-height: 60px; }
  .ae-app .ae-board-actions { min-height: 58px; }
  .ae-app .ae-board-header p { display: none; }
  .ae-app .ae-board-header h2 { font-size: 1rem; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ae-app .ae-board-actions .ae-button { font-size: .82rem; padding: 8px 11px; }
  .ae-app .ae-board-stage { padding: 5px; }
  .ae-app .ae-board-stage > .ae-diagram,
  .ae-app .ae-board-stage > :is(svg, img) { width: min(100%, calc((100dvh - 130px) * 16 / 9)); }
  .ae-app .ae-board-editor { border-left: 0; border-radius: 18px 18px 0 0; border-top: 1px solid #d3e0e8; box-shadow: 0 -14px 38px rgba(17, 36, 62, .18); height: min(70dvh, 680px); max-width: none; top: auto; transform: translateY(105%); width: 100%; }
  .ae-app .ae-board-editor.is-open,
  .ae-app .ae-board.is-editing .ae-board-editor { transform: translateY(0); }
  .ae-app .ae-board.is-editing .ae-board-stage { margin-right: 0; width: 100%; }
}

@media (max-width: 400px) {
  .ae-app .ae-hero { padding-left: 15px; padding-right: 15px; }
  .ae-app .ae-button { font-size: .88rem; padding-left: 12px; padding-right: 12px; }
  .ae-app .ae-card-body { padding: 16px; }
  .ae-app .ae-board-actions { gap: 5px; }
  .ae-app .ae-board-actions .ae-button { min-width: 48px; }
  .ae-app .ae-board-editor { padding: 18px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ae-app *,
  .ae-app *::before,
  .ae-app *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  .ae-app .ae-hero,
  .ae-app .ae-toolbar,
  .ae-app .ae-gallery,
  .ae-app .ae-side-panel,
  .ae-app .ae-preview-actions,
  .ae-app .ae-footer,
  .ae-app .ae-board-header,
  .ae-app .ae-board-actions,
  .ae-app .ae-board-editor { display: none !important; }
  .ae-app,
  .ae-app .ae-workspace,
  .ae-app .ae-preview-panel { background: #fff; border: 0; box-shadow: none; margin: 0; max-width: none; padding: 0; }
  .ae-app .ae-board { display: block; height: auto; overflow: visible; position: static; width: 100%; }
  .ae-app .ae-board-stage { background: #fff; display: block; height: auto; padding: 0; width: 100% !important; }
  .ae-app .ae-board-stage > .ae-diagram,
  .ae-app .ae-board-stage > :is(svg, img) { border: 0; box-shadow: none; max-height: none; width: 100% !important; }
}
