/* Esquemas 2.3 · A narrow, fixed tools strip leaves the drawing in view. */
.ae-app { --ae-panel-width: 178px; --ae-panel-left: 0px; --ae-panel-top: 0px; --ae-panel-bottom: 0px; --ae-panel-space: 0px; }
.ae-app.has-side-panel { --ae-panel-space: 178px; }
.ae-app .ae-stage-wrap { left: var(--ae-panel-space); }
.ae-app.has-side-panel .ae-header { left: calc(var(--ae-panel-space) + 12px); }
.ae-app.has-side-panel .ae-title-row { left: calc(50% + var(--ae-panel-space) / 2); width: min(640px, calc(100% - var(--ae-panel-space) - 24px)); }
.ae-app > .ae-side-panel,
.ae-app .ae-layout .ae-side-panel {
  position: absolute; z-index: 28; top: 0; right: auto; bottom: 0; left: 0;
  display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; align-content: normal;
  gap: 0; width: var(--ae-panel-width); max-width: var(--ae-panel-width); height: 100%; max-height: 100%;
  min-width: 0; min-height: 0; margin: 0; padding: 8px 7px 88px;
  overflow: hidden; border: 0; border-right: 1px solid #dce5e8; border-radius: 0;
  background: #f9fbfc; box-shadow: none; backdrop-filter: none; transform: none; scrollbar-width: thin;
}
.ae-app .ae-side-panel.ae-contextbar { gap: 0; }
.ae-app .ae-side-panel[hidden] { display: none !important; }
.ae-app .ae-side-panel .ae-panel-head,
.ae-app .ae-side-panel .ae-drawer-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; min-height: 28px; margin: 0 0 8px; }
.ae-app .ae-side-panel .ae-panel-head h2,
.ae-app .ae-side-panel .ae-drawer-head h2 { margin: 0; color: var(--ae-navy); font-size: 12px; font-weight: 750; line-height: 1.25; letter-spacing: -.02em; }
.ae-app .ae-side-panel .ae-panel-head button,
.ae-app .ae-side-panel .ae-drawer-head button { display: inline-flex; flex: 0 0 26px; align-items: center; justify-content: center; width: 26px; min-width: 26px; height: 28px; min-height: 28px; padding: 4px; border-color: transparent; border-radius: 5px; background: transparent; color: var(--ae-muted); font-size: 18px; }
.ae-app .ae-side-panel .ae-panel-head button:hover,
.ae-app .ae-side-panel .ae-drawer-head button:hover { background: var(--ae-soft); color: var(--ae-teal-dark); }
.ae-app .ae-side-panel .ae-panel-head button svg,
.ae-app .ae-side-panel .ae-drawer-head button svg { width: 17px; height: 17px; }
.ae-app .ae-side-panel .ae-panel-body { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 8px 4px; width: 100%; min-width: 0; min-height: 0; padding: 1px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ae-app .ae-side-panel .ae-panel-body > p { flex: 0 0 100%; color: var(--ae-muted); font-size: 9px; line-height: 1.4; }
.ae-app .ae-side-panel .ae-panel-body > .ae-tool-group:first-child { display: grid; flex: 1 0 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; width: 100%; max-width: 100%; padding: 0; overflow: visible; }
.ae-app .ae-side-panel[data-panel="write"] .ae-panel-body > .ae-tool-group:first-child { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ae-app .ae-side-panel .ae-tool-group { min-width: 0; max-width: 100%; }
.ae-app .ae-side-panel .ae-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 45px; padding: 5px 2px; border-radius: 6px; font-size: 8px; line-height: 1.2; text-align: center; white-space: normal; }
.ae-app .ae-side-panel .ae-tool svg { width: 18px; height: 18px; }
.ae-app .ae-side-panel .ae-button { min-width: 0; min-height: 33px; padding: 6px; border-radius: 6px; font-size: 9px; line-height: 1.25; white-space: normal; }
.ae-app .ae-side-panel .ae-panel-body > .ae-button { flex: 1 0 100%; width: 100%; }
.ae-app .ae-side-panel .ae-control { flex: 1 1 auto; min-width: 0; max-width: 100%; min-height: 33px; gap: 4px; font-size: 9px; }
.ae-app .ae-side-panel .ae-control select { width: 100%; min-width: 0; max-width: 100%; min-height: 34px; padding: 6px 20px 6px 5px; font-size: 10px; }
.ae-app .ae-side-panel .ae-control input[type="range"] { flex: 1 1 0; width: 100%; min-width: 25px; min-height: 31px; }
.ae-app .ae-side-panel .ae-control input[type="color"] { width: 33px; height: 33px; min-height: 33px; padding: 3px; }
.ae-app .ae-side-panel .ae-control-section,
.ae-app .ae-side-panel:has([data-arrow-preset]) .ae-control-section { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 5px; width: 100%; min-width: 0; padding: 0 0 7px; }
.ae-app .ae-side-panel .ae-control-section > strong,
.ae-app .ae-side-panel:has([data-arrow-preset]) .ae-control-section > strong { flex: 0 0 100%; max-width: none; color: var(--ae-muted); font-size: 9px; line-height: 1.3; }
.ae-app .ae-side-panel .ae-size-presets,
.ae-app .ae-side-panel:has([data-arrow-preset]) .ae-size-presets { display: grid; flex: 1 0 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; width: 100%; min-width: 0; padding: 2px; border-radius: 7px; }
.ae-app .ae-side-panel .ae-size-presets button,
.ae-app .ae-side-panel:has([data-arrow-preset]) .ae-size-presets button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: auto; min-width: 0; min-height: 36px; padding: 4px 1px; font-size: 8px; line-height: 1.2; }
.ae-app .ae-side-panel .ae-size-presets .ae-size-dot,
.ae-app .ae-side-panel:has([data-arrow-preset]) .ae-size-presets .ae-size-dot { width: var(--size, 6px); height: var(--size, 6px); max-width: 12px; max-height: 12px; border-radius: 50%; transform: none; }
.ae-app .ae-side-panel .ae-palette,
.ae-app .ae-side-panel:has([data-arrow-preset]) .ae-palette { display: grid; flex: 1 0 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; width: 100%; min-width: 0; max-width: 100%; padding: 1px; overflow: visible; }
.ae-app .ae-side-panel .ae-palette .ae-swatch { display: grid; place-items: center; flex: none; width: 100%; min-width: 0; height: 32px; min-height: 32px; padding: 3px; border-radius: 50%; }
.ae-app .ae-side-panel .ae-palette .ae-swatch::before { width: 20px; height: 20px; }
.ae-app .ae-side-panel .ae-palette .ae-color-trigger { position: static; display: grid; place-items: center; width: 100%; min-width: 0; height: 32px; min-height: 32px; padding: 3px; border-radius: 6px; box-shadow: none; }
.ae-app .ae-side-panel .ae-palette .ae-color-wheel-icon { width: 22px; height: 22px; }
.ae-app .ae-side-panel .ae-format-tools { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 5px; width: 100%; min-width: 0; }
.ae-app .ae-side-panel .ae-format-tools > .ae-tool-group { display: grid; flex: 1 0 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.ae-app .ae-side-panel .ae-format-tools > label { flex: 1 0 100%; width: 100%; min-width: 0; }
.ae-app .ae-side-panel .ae-format-tools label:has([data-font]) { justify-content: space-between; }
.ae-app .ae-side-panel .ae-format-tools label:has([data-font]) .ae-visually-hidden { position: static !important; width: auto; height: auto; padding: 0; overflow: visible; clip: auto; white-space: normal; font-size: 9px; }
.ae-app .ae-side-panel .ae-format-tools [data-font] { flex: 0 0 68px; width: 68px; }
.ae-app .ae-side-panel .ae-format-tools .ae-mini-format { width: 100%; min-width: 0; height: 32px; min-height: 32px; padding: 6px; font-size: 13px; }
.ae-app .ae-side-panel .ae-format-tools .ae-mini-format svg { width: 17px; height: 17px; }
.ae-app .ae-side-panel .ae-arrow-presets { display: grid; flex: 1 0 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; width: 100%; min-width: 0; padding: 0; overflow: visible; }
.ae-app .ae-side-panel .ae-arrow-presets button { width: 100%; min-width: 0; height: 36px; min-height: 36px; padding: 5px; border-radius: 6px; }
.ae-app .ae-side-panel .ae-arrow-presets button svg { width: 27px; height: 21px; }
.ae-app .ae-side-panel .ae-paper-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.ae-app .ae-side-panel .ae-paper-options button { min-height: 59px; padding: 5px 2px; gap: 4px; font-size: 8px; border-radius: 6px; }
.ae-app .ae-side-panel .ae-paper-options button:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; min-height: 40px; gap: 8px; }
.ae-app .ae-side-panel .ae-paper-preview { width: 22px; height: 24px; }
.ae-app .ae-side-panel .ae-file-grid { display: grid; flex: 1 0 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 100%; }
.ae-app .ae-side-panel .ae-file-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 100%; min-width: 0; min-height: 55px; padding: 6px 3px; text-align: center; font-size: 9px; }
.ae-app .ae-side-panel .ae-file-action svg { width: 23px; height: 23px; }
.ae-app .ae-side-panel .ae-file-action:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; min-height: 39px; gap: 7px; }
.ae-app .ae-layout .ae-library.ae-side-panel { overflow-y: auto; overscroll-behavior: contain; }
.ae-app .ae-side-panel.ae-library > .ae-drawer-head { position: sticky; top: -1px; z-index: 2; background: #f9fbfc; }
.ae-app .ae-side-panel .ae-library-start { flex-wrap: wrap; gap: 3px; margin-bottom: 7px; }
.ae-app .ae-side-panel .ae-library-start .ae-button { flex: 1 1 100%; min-height: 29px; padding: 5px 3px; font-size: 8px; }
.ae-app .ae-side-panel .ae-template { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 5px; margin-bottom: 4px; padding: 5px; border-radius: 6px; }
.ae-app .ae-side-panel .ae-template-preview { grid-row: 1 / 3; width: 42px; height: 36px; margin: 0; }
.ae-app .ae-side-panel .ae-template strong { align-self: end; font-size: 8px; line-height: 1.2; }
.ae-app .ae-side-panel .ae-template small { align-self: start; margin: 0; font-size: 7px; line-height: 1.25; }
.ae-app .ae-side-panel .ae-bank-host { min-width: 0; min-height: 0; overflow: hidden; }
.ae-app .ae-side-panel .aw-elements-bank { gap: 6px; min-width: 0; min-height: 0; }
.ae-app .ae-side-panel .aw-elements-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 2px; border-radius: 6px; }
.ae-app .ae-side-panel .aw-elements-tabs button { min-height: 27px; padding: 4px 1px; border-radius: 5px; font-size: 8px; }
.ae-app .ae-side-panel .aw-elements-filters { flex-wrap: wrap; gap: 3px; }
.ae-app .ae-side-panel .aw-elements-search { flex: 1 1 100%; width: 100%; }
.ae-app .ae-side-panel .aw-elements-search input { min-height: 31px; padding: 6px; border-radius: 6px; font-size: 10px; }
.ae-app .ae-side-panel .aw-elements-online-search { width: 100%; min-height: 29px; padding: 5px; font-size: 9px; }
.ae-app .ae-side-panel .aw-elements-category { flex-wrap: wrap; gap: 3px; min-height: 30px; font-size: 8px; }
.ae-app .ae-side-panel .aw-elements-category select { flex: 1 0 100%; min-height: 30px; padding: 5px; border-radius: 6px; font-size: 9px; }
.ae-app .ae-side-panel .aw-elements-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; min-height: 60px; padding: 2px; }
.ae-app .ae-side-panel .aw-element-choice { gap: 4px; min-height: 68px; padding: 5px 2px; border-radius: 6px; }
.ae-app .ae-side-panel .aw-element-choice img { height: 37px; }
.ae-app .ae-side-panel .aw-element-choice span { font-size: 8px; line-height: 1.2; }
.ae-app .ae-side-panel .aw-elements-online-intro { font-size: 8px; line-height: 1.35; }
.ae-app .ae-side-panel .aw-elements-suggestions { flex-wrap: wrap; gap: 3px; max-height: 55px; overflow: auto; }
.ae-app .ae-side-panel .aw-elements-suggestions button { min-height: 24px; padding: 4px; font-size: 8px; }
.ae-app .ae-side-panel .aw-elements-count { font-size: 8px; }
.ae-app .ae-side-panel .aw-elements-empty { padding: 12px 4px; font-size: 9px; line-height: 1.4; }
.ae-app .ae-side-panel .aw-elements-footer { gap: 4px; }
.ae-app .ae-side-panel .aw-elements-import { min-height: 29px; padding: 5px; border-radius: 6px; font-size: 9px; }
.ae-app .ae-side-panel .aw-elements-footer small { font-size: 7px; line-height: 1.3; }
.ae-app .ae-properties,
.ae-app:has(.ae-contextbar:not([hidden])) .ae-properties { right: 8px; bottom: 90px; left: auto; max-width: calc(100% - var(--ae-panel-space) - 16px); }
.ae-app .ae-footbar { right: 8px; left: calc(var(--ae-panel-space) + 8px); justify-content: flex-end; }
.ae-app.is-focus .ae-header { display: flex; justify-content: flex-end; }
.ae-app.is-focus .ae-brand,
.ae-app.is-focus .ae-title-row { display: none; }

/* The selector belongs to the same narrow tools strip. */
.ae-app.has-side-panel .ae-color-dialog { width: var(--ae-panel-width); max-width: var(--ae-panel-width); max-height: calc(100dvh - 90px); padding: 7px; border-radius: 0; box-shadow: 0 2px 10px rgb(23 43 67 / 9%); }
.ae-app.has-side-panel .ae-color-heading { gap: 4px; margin-bottom: 5px; }
.ae-app.has-side-panel .ae-color-heading h2 { font-size: 11px; }
.ae-app.has-side-panel .ae-color-close { width: 24px; min-width: 24px; height: 24px; font-size: 20px; }
.ae-app.has-side-panel .ae-color-tabs { gap: 2px; margin-bottom: 8px; padding: 2px; border-radius: 5px; }
.ae-app.has-side-panel .ae-color-tabs button { min-height: 25px; padding: 4px 1px; border-radius: 4px; font-size: 8px; }
.ae-app.has-side-panel .ae-color-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; justify-items: center; min-width: 0; }
.ae-app.has-side-panel .ae-color-swatch { width: 27px; max-width: 100%; height: 27px; min-height: 27px; border-radius: 50%; }
.ae-app.has-side-panel .ae-color-favorite { width: 100%; display: grid; place-items: center; }
.ae-app.has-side-panel .ae-color-saved-heading { gap: 4px; margin-top: 8px; margin-bottom: 5px; }
.ae-app.has-side-panel .ae-color-saved-heading h3,
.ae-app.has-side-panel .ae-color-saved-heading button { font-size: 8px; }
.ae-app.has-side-panel .ae-color-dialog form { gap: 7px; }
.ae-app.has-side-panel .ae-color-custom { grid-template-columns: minmax(0, 1fr); gap: 7px; }
.ae-app.has-side-panel .ae-color-wheel { width: 100px; height: 100px; }
.ae-app.has-side-panel .ae-color-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; align-items: end; }
.ae-app.has-side-panel .ae-color-value { align-self: stretch; gap: 0; margin: 0; }
.ae-app.has-side-panel .ae-color-preview { display: none; }
.ae-app.has-side-panel .ae-color-value label { width: 100%; font-size: 8px; }
.ae-app.has-side-panel .ae-color-value input { height: 24px; min-height: 24px; padding: 3px; font-size: 9px; }
.ae-app.has-side-panel .ae-color-range { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 33px; font-size: 8px; }
.ae-app.has-side-panel .ae-color-range input { height: 18px; }
.ae-app.has-side-panel .ae-color-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.ae-app.has-side-panel .ae-color-actions .ae-button { width: 100%; min-width: 0; min-height: 30px; padding: 4px 2px; font-size: 8px; white-space: normal; }
.ae-app.has-side-panel .ae-color-message { font-size: 8px; }

@media (min-width: 1250px) {
  .ae-app.has-side-panel .ae-title-row { top: 17px; width: min(440px, calc(100% - var(--ae-panel-space) - 790px)); }
}
@media (max-width: 1000px) {
  .ae-app.has-side-panel .ae-brand { display: none; }
  .ae-app.has-side-panel .ae-header { justify-content: flex-end; }
  .ae-app.has-side-panel .ae-title-row { top: 80px; }
}
@media (max-width: 720px) {
  .ae-app { --ae-panel-width: 148px; }
  .ae-app.has-side-panel { --ae-panel-space: 148px; }
  .ae-app > .ae-side-panel,
  .ae-app .ae-layout .ae-side-panel { padding: 6px 5px 84px; }
  .ae-app.has-side-panel .ae-header { left: calc(var(--ae-panel-space) + 8px); }
  .ae-app.has-side-panel .ae-title-row { top: 74px; width: calc(100% - var(--ae-panel-space) - 16px); }
  .ae-app .ae-side-panel .ae-panel-head,
  .ae-app .ae-side-panel .ae-drawer-head { margin-bottom: 6px; }
  .ae-app .ae-side-panel .ae-panel-head h2,
  .ae-app .ae-side-panel .ae-drawer-head h2 { font-size: 11px; }
  .ae-app .ae-side-panel .ae-panel-body { gap: 7px 3px; }
  .ae-app .ae-side-panel .ae-tool { min-height: 43px; padding: 4px 1px; font-size: 7.5px; }
  .ae-app .ae-side-panel .ae-palette,
  .ae-app .ae-side-panel:has([data-arrow-preset]) .ae-palette { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ae-app .ae-side-panel .ae-palette .ae-swatch { height: 31px; min-height: 31px; }
  .ae-app .ae-side-panel .ae-palette .ae-color-trigger { height: 31px; min-height: 31px; }
  .ae-app .ae-side-panel .ae-format-tools label:has([data-font]) .ae-visually-hidden { font-size: 8px; }
  .ae-app .ae-side-panel .ae-template { grid-template-columns: 34px minmax(0, 1fr); gap: 3px; padding: 4px; }
  .ae-app .ae-side-panel .ae-template-preview { width: 34px; height: 33px; }
  .ae-app .ae-side-panel .ae-template strong { font-size: 7.5px; }
  .ae-app .ae-side-panel .ae-template small { font-size: 6.5px; }
  .ae-app .ae-side-panel .aw-element-choice { min-height: 61px; gap: 3px; }
  .ae-app .ae-side-panel .aw-element-choice img { height: 31px; }
  .ae-app .ae-side-panel .aw-element-choice span { font-size: 7px; }
  .ae-app .ae-properties,
  .ae-app:has(.ae-contextbar:not([hidden])) .ae-properties { bottom: 82px; }
  .ae-app.has-side-panel .ae-color-dialog { padding: 6px; }
  .ae-app.has-side-panel .ae-color-tabs button { font-size: 7.5px; }
  .ae-app.has-side-panel .ae-color-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ae-app.has-side-panel .ae-color-wheel { width: 90px; height: 90px; }
  .ae-app.has-side-panel .ae-color-value input { font-size: 8px; }
  .ae-app.has-side-panel .ae-color-range { font-size: 7px; }
  .ae-app.has-side-panel .ae-color-actions .ae-button { font-size: 7.5px; }
}
@media (max-height: 600px) {
  .ae-app .ae-side-panel .ae-bank-host { overflow: auto; }
  .ae-app .ae-side-panel .aw-elements-bank { flex: none; overflow: visible; }
  .ae-app .ae-side-panel .aw-elements-grid { flex: none; min-height: 90px; max-height: 180px; }
}
@media print {
  .ae-app .ae-side-panel { display: none !important; }
  .ae-app .ae-stage-wrap { left: 0; }
}
/* The teaching notes live in the app's information menu. */
body.ae-app-page .aula-page-header,
body.ae-app-page .entry-header,
body.ae-app-page .wp-block-post-title,
body.ae-app-page main .aula-tool-learning { display: none; }
.ae-app .ae-page-info { display: grid; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ae-line); }
.ae-app .ae-properties .ae-mini-action:has(> span:not(.ae-visually-hidden)) { width: auto; }
