/* AprendeCasa: identidad, apoyo y pie de página. */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}
.topbar { flex: 0 0 auto; height: 90px; min-height: 90px; gap: 16px; }
.brand { margin: 0; min-width: 0; }
.brand-logo { display: block; width: 222px; max-width: 100%; height: auto; object-fit: contain; }
.header-actions { flex: 0 0 auto; }
.workspace { flex: 1 1 auto; height: auto; min-height: 0; }
.side-toolbar { overflow-y: auto; }
.activity-group-buttons.one-activity { grid-template-columns: minmax(0, 1fr); }
.activity-group-buttons.three-activities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.donate-button, .share-button, .paypal-button, .qr-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #ffccd7;
  border-radius: 12px;
  color: #d51c49;
  background: #fff5f7;
  cursor: pointer;
  font: 800 14px/1.3 "Trebuchet MS", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}
.donate-button:hover { background: #ffe8ee; border-color: #f595ac; }
.support-rail { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; overflow-y: auto; }
.support-card { flex: 0 0 auto; padding: 10px; border: 1px solid #dce7f1; border-radius: 15px; background: #fff; }
.support-donate-button { width: 100%; padding: 12px 8px; }
.support-donate-button > span { flex: 0 0 auto; }
.support-card > p { margin: 12px 0; color: #4b6986; font: 13px/1.5 Arial, sans-serif; text-align: center; }
.share-button { width: 100%; color: #124e80; background: #f2f6ff; border-color: #cdddf4; }
.share-button:hover { background: #e6effe; border-color: #96b9e6; }
.share-button .icon { flex: 0 0 auto; width: 21px; height: 21px; }
.support-card > .share-status:empty { display: none; }
.support-rail > .ad-slot { flex: 1 0 130px; height: auto; min-height: 130px; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px 18px;
  min-height: 30px;
  padding: 3px 0.5cm;
  border-top: 1px solid #dce7ef;
  color: #46657d;
  background: #fff;
  font: 12px/1.5 Arial, sans-serif;
}
.site-footer p { margin: 0; font-weight: 700; white-space: nowrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: #315d82; text-decoration: none; padding-block: 2px; }
.site-footer a:hover { color: #075ba8; text-decoration: underline; }
.site-footer a:focus-visible, .donate-button:focus-visible, .share-button:focus-visible,
.paypal-button:focus-visible, .qr-download:focus-visible { outline: 3px solid #1680ee; outline-offset: 3px; }
.site-dialog {
  width: min(640px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid #d8e5ed;
  border-radius: 20px;
  color: #23496a;
  background: #fff;
  box-shadow: 0 24px 80px #15365340;
  overflow-y: auto;
}
.site-dialog::backdrop { background: #12293c88; }
.site-dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 0 0 16px; }
.site-dialog-heading h2 { margin: 4px 0 0; font-size: 23px; line-height: 1.25; }
.site-dialog-heading .dialog-close-button { flex: 0 0 auto; }
.site-dialog p, .site-info-content { font: 15px/1.65 Arial, sans-serif; }
.site-info-content h3 { margin: 22px 0 8px; color: #185884; font: 700 17px/1.4 "Trebuchet MS", Arial, sans-serif; }
.site-info-content p { margin: 0 0 12px; }
.donation-dialog { width: min(690px, calc(100% - 28px)); }
.donation-dialog h2 { color: #cf1d4b; }
.donation-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.donation-method { min-width: 0; padding: 18px; border: 1px solid #d8e5ed; border-radius: 16px; text-align: center; }
.donation-method h3 { font-size: 18px; margin: 14px 0 8px; }
.donation-method p { font-size: 13px; line-height: 1.55; }
.paypal-method { background: #f4f8ff; }
.yape-method { background: #fcf7ff; }
.payment-badge { display: inline-block; padding: 6px 15px; border-radius: 20px; background: #e1ebfc; color: #003087; font-weight: 900; }
.yape-method .payment-badge { color: #692480; background: #f0e1f6; }
.paypal-button { margin-top: 12px; color: #fff; background: #0070ba; border-color: #0070ba; }
.paypal-button:hover { background: #005d9c; }
.yape-qr { display: block; width: min(100%, 210px); height: auto; margin: 10px auto; border-radius: 8px; }
.qr-download { color: #6e2587; border-color: #dcc4e7; background: #fff; }
.qr-download:hover { background: #f3e8f9; }
.donation-note { margin-bottom: 0; padding-top: 12px; text-align: center; color: #547187; }
.share-dialog label { display: block; margin: 12px 0 6px; }
.share-dialog input { width: 100%; padding: 12px; border: 1px solid #bfd2e3; border-radius: 8px; color: #23496a; }
.share-dialog .share-button { margin-top: 12px; }
.app-shell.painting-fullscreen .site-footer,
.app-shell.painting-fullscreen .support-card { display: none; }
.app-shell.painting-fullscreen .workspace { flex: 1 1 auto; height: 100dvh; }
@media (max-width: 960px) and (min-width: 761px) {
  .site-footer { justify-content: center; text-align: center; }
  .site-footer nav { justify-content: center; gap: 4px 12px; }
}
@media (max-width: 760px) {
  .app-shell { height: auto; min-height: 100dvh; }
  .topbar { height: auto; min-height: 78px; flex-wrap: wrap; justify-content: center; padding: 8px 14px; gap: 6px 16px; }
  .brand-logo { width: 210px; }
  .header-actions { justify-content: center; flex-wrap: wrap; max-width: 100%; }
  .header-donate-button { min-height: 38px; padding: 8px 12px; }
  .workspace { flex: 1 0 auto; }
  .support-rail { overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .support-rail > .ad-slot { max-height: none; height: 100%; }
  .site-footer { justify-content: center; padding: 6px 12px; text-align: center; }
  .site-footer nav { justify-content: center; gap: 4px 14px; }
  .app-shell.painting-fullscreen .support-rail { display: block; }
}
@media (max-width: 480px) {
  .support-rail, .donation-methods { grid-template-columns: minmax(0, 1fr); }
  .support-rail > .ad-slot { min-height: 150px; }
  .site-dialog { padding: 18px; }
  .site-dialog-heading h2 { font-size: 21px; }
}
@media (print) {
  .site-footer, .support-rail, .header-donate-button, .site-dialog { display: none; }
}

/* V22: cabecera compacta y más espacio para pintar. */
.app-shell { --panel-columns: minmax(200px, 1.05fr) minmax(590px, 3fr) minmax(112px, .65fr) minmax(135px, .68fr) 150px; }
.topbar { height: auto; min-height: 72px; padding: 4px 16px; gap: 10px; flex-wrap: nowrap; }
.brand { flex: 0 0 auto; }
.brand-logo { width: 190px; }
.header-actions { display: flex; flex: 1 1 auto; min-width: 0; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 7px; }
.header-actions > button, .header-actions #saveButton { min-height: 42px; padding: 8px 12px; font-size: 13px; }
.header-actions > .header-donate-button { font-weight: 900; white-space: nowrap; }
.header-actions #saveButton { width: auto; min-width: max-content; flex: 0 0 auto; white-space: nowrap; }
.header-actions > .header-share-button { width: auto; }
.save-and-filters { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; }
.header-audience { display: flex; align-items: center; gap: 7px; padding: 3px 6px; border: 1px solid #c5dedb; border-radius: 12px; background: #f3faf9; }
.audience-label { color: #286266; font: 800 11px/1.3 Arial, sans-serif; }
.audience-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.audience-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 66px; min-height: 40px; padding: 3px 7px; border: 1px solid #c7dfe2; border-radius: 9px; color: #285770; background: #fff; cursor: pointer; font: 800 12px/1.2 Arial, sans-serif; }
.filter-avatar { display: block; flex: 0 0 28px; width: 28px; height: 28px; }
.audience-button[aria-pressed="true"] { color: #fff; background: #087dad; border-color: #076d97; box-shadow: 0 2px 0 #05658f; }
.audience-button[aria-pressed="true"]::after { content: '✓'; position: absolute; top: -4px; right: -2px; width: 13px; height: 13px; border: 1px solid #087dad; border-radius: 50%; color: #087dad; background: #fff; text-align: center; font-size: 9px; line-height: 12px; }
.audience-button:hover:not(:disabled) { border-color: #087dad; }
.audience-button:focus-visible { outline: 3px solid #1680ee; outline-offset: 2px; }
.audience-button:disabled { opacity: .6; cursor: wait; }
.gallery-audience-buttons { width: min(100%, 325px); margin: 6px 0 18px; }
.language-control { display: flex; align-items: center; min-height: 42px; padding: 4px 8px; border: 1px solid #bdd2e3; border-radius: 12px; color: #244e70; background: #f7fbff; }
.language-control select { width: 175px; max-width: 100%; min-height: 25px; padding: 0 10px 0 0; border: 0; background: transparent; color: #244e70; font: 700 12px/1.3 Arial, sans-serif; cursor: pointer; }
.language-control:focus-within { outline: 3px solid #1680ee; outline-offset: 2px; }
.header-share-status:empty { display: none; }
.workspace, body[data-active-section="crear"] .workspace { grid-template-rows: auto auto minmax(0, 1fr); }
.options-layout { display: grid; grid-template-columns: var(--panel-columns); align-items: stretch; gap: 7px; min-height: 84px; height: auto; }
/* Los envoltorios conservan sus roles pero no añaden bordes ni espacio. */
.options-layout > .activity-options, .options-layout .colorful-options-bar, .options-layout .templates-panel { display: contents; }
.options-layout .option-cluster { min-width: 0; min-height: 84px; grid-template-rows: minmax(0, 1fr); padding: 6px; gap: 0; border-radius: 13px; }
.options-layout .activity-options-panel:not(.colorful-options-bar) { grid-column: 1 / -2; }
.options-layout .image-tool-buttons { grid-template-columns: minmax(90px, 1.3fr) minmax(112px, 1.5fr) repeat(6, minmax(0, 1fr)); gap: 4px; }
.options-layout .image-tool-buttons .top-tool-button { min-width: 0; padding: 4px 2px; }
.options-layout .image-tool-buttons .top-tool-button span { font-size: 11px; line-height: 1.15; }
.options-layout .image-tool-buttons .top-tool-button .icon { width: 26px; height: 26px; }
.options-layout .colorful-options-bar .compact-upload { min-width: 0; padding: 4px 3px; }
.options-layout .colorful-options-bar .compact-upload strong { font-size: 11px; }
.options-layout .colorful-options-bar .compact-upload small { font-size: 9px; white-space: normal; }
.options-layout .colorful-options-bar .top-size-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.options-layout .colorful-options-bar .top-size-button { min-width: 0; padding: 3px 1px; }
.options-layout .colorful-options-bar .top-size-button .stroke-preview { width: min(100%, 34px); }
.options-layout .colorful-options-bar .top-size-button span { font-size: 10px; }
.options-layout .select-mold-button { min-width: 0; flex-direction: row; gap: 5px; padding: 4px; }
.options-layout .select-mold-button .icon { width: 24px; height: 24px; }
.options-layout .select-mold-button strong { font-size: 12px; }
.options-layout .select-mold-button small { font-size: 10px; margin-top: 3px; }
.options-layout .templates-button { flex-direction: column; min-height: 84px; gap: 4px; padding: 6px; border-radius: 13px; background: #f6f0ff; text-align: center; box-shadow: none; }
.options-layout .templates-button > .icon { width: 22px; height: 22px; }
.options-layout .templates-button .templates-chevron { display: none; }
.options-layout .templates-button strong { font-size: 12px; line-height: 1.2; }
.options-layout .templates-button small { font-size: 10px; margin-top: 3px; }
.support-rail { display: flex; }
.support-rail > .ad-slot { flex: 1 1 auto; min-height: 150px; height: 100%; max-height: none; }
.side-toolbar { overflow-y: auto; }
.side-toolbar .tool-strip { display: flex; flex-direction: column; min-height: 100%; height: auto; gap: 5px; }
.side-toolbar .toolbar-group { flex: 0 0 auto; height: auto; min-height: min-content; }
.side-toolbar .color-palette { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: min-content; align-content: start; gap: 5px; height: auto; }
.side-toolbar .color-button, .side-toolbar .custom-color-label { width: clamp(24px, 2.1vw, 36px); height: clamp(24px, 2.1vw, 36px); min-width: 0; min-height: 0; }
.side-toolbar .history-actions { flex: 0 0 auto; margin-top: auto; }
.side-toolbar .toolbar-divider { flex: 0 0 1px; }
.mold-filter-empty { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; padding: 24px; background: #f8fcff; color: #255675; text-align: center; }
.mold-filter-empty strong { font-size: 18px; }
.mold-filter-empty span { font: 14px/1.4 Arial, sans-serif; }
.mold-filter-empty button { border: 1px solid #087dad; border-radius: 9px; padding: 10px 18px; color: #fff; background: #087dad; font: 700 14px Arial, sans-serif; cursor: pointer; }
.canvas-frame.is-filter-empty > canvas, .canvas-frame.is-filter-empty > .page-boundary, .canvas-frame.is-filter-empty > .canvas-text-editor, .canvas-frame.is-filter-empty > .image-selection-hint { visibility: hidden; pointer-events: none; }
/* Compartir: ventana propia, sin abrir el selector del sistema automáticamente. */
.share-dialog { width: min(675px, calc(100% - 28px)); padding: 28px; border: 0; border-radius: 22px; color: #19324e; }
.share-dialog::backdrop { background: #15202da8; backdrop-filter: blur(4px); }
.share-dialog .site-dialog-heading { margin-bottom: 12px; }
.share-kicker { display: block; color: #d91d49; text-transform: uppercase; letter-spacing: .08em; font: 800 12px/1.4 Arial, sans-serif; }
.share-dialog h2 { font-size: 27px; margin-top: 5px; }
.share-dialog .dialog-close-button { width: 48px; height: 48px; border: 0; border-radius: 12px; background: #f0f4f8; color: #41566b; }
.share-dialog #shareMessage { margin: 14px 0 23px; color: #526b85; font: 17px/1.6 Arial, sans-serif; }
.share-networks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.share-network { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 53px; padding: 12px; border-radius: 13px; color: #fff; font: 800 17px Arial, sans-serif; text-decoration: none; }
.share-whatsapp { background: #10843d; }
.share-facebook { background: #195cdb; }
.share-network:hover { filter: brightness(.92); }
.share-network:focus-visible { outline: 3px solid #19324e; outline-offset: 3px; }
.share-network svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.facebook-mark { font: 900 28px Arial, sans-serif; }
.share-dialog label { font: 700 15px/1.3 Arial, sans-serif; margin-bottom: 9px; }
.share-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.share-dialog .share-copy-row input { min-width: 0; height: 52px; font: 15px Arial, sans-serif; }
.share-dialog .share-copy-row .share-button { margin: 0; min-width: 137px; width: auto; }
.share-dialog .share-more { margin-top: 14px; min-height: 50px; }
#shareDialogStatus { margin: 12px 0 0; color: #1e6b4c; font: 14px/1.5 Arial, sans-serif; }
#shareDialogStatus:empty { display: none; }
/* Pantalla completa: sólo herramientas, pizarra, colores y anuncios. */
body .app-shell.painting-fullscreen { height: 100dvh; min-height: 0; width: 100%; overflow: hidden; }
body .app-shell.painting-fullscreen .topbar { display: none; }
body .app-shell.painting-fullscreen .workspace { display: grid; flex: 1 1 auto; height: auto; min-height: 0; grid-template-rows: auto minmax(0, 1fr); padding: 7px 16px 10px; }
body .app-shell.painting-fullscreen .options-layout { grid-template-columns: var(--panel-columns); }
body .app-shell.painting-fullscreen .templates-panel { display: contents; }
body .app-shell.painting-fullscreen .canvas-ad-row { min-height: 0; height: auto; }
body .app-shell.painting-fullscreen .activity-menu, body .app-shell.painting-fullscreen .site-footer { display: none; }
@media (min-width: 1650px) {
  .brand-logo { width: 200px; }
  .header-actions > button, .header-actions #saveButton { font-size: 14px; }
  .options-layout .image-tool-buttons .top-tool-button span { font-size: 12px; }
  .options-layout .colorful-options-bar .compact-upload strong { font-size: 12px; }
}
@media (min-width: 901px) and (max-width: 1649px) {
  .topbar { min-height: 64px; gap: 8px; padding-inline: 12px; }
  .brand-logo { width: 155px; }
  .header-actions { gap: 5px; }
  .header-actions > button, .header-actions #saveButton { font-size: 12px; padding-inline: 8px; }
  .save-and-filters { gap: 6px; }
}
@media (min-width: 901px) and (max-width: 1400px) {
  .brand-logo { width: 140px; }
  .header-actions > .header-donate-button { width: 175px; padding: 5px 8px; white-space: normal; }
  .header-audience { gap: 4px; }
  .audience-button { min-width: 62px; gap: 3px; padding-inline: 5px; font-size: 11px; }
  .filter-avatar { flex-basis: 24px; width: 24px; height: 24px; }
}
@media (min-width: 901px) and (max-width: 1300px) {
  .app-shell { --panel-columns: repeat(6, minmax(0, 1fr)); }
  .options-layout .image-cluster { grid-column: span 2; }
  .options-layout .tools-cluster { grid-column: span 4; }
  .options-layout .strokes-cluster, .options-layout .categories-cluster, .options-layout .templates-button { grid-column: span 2; min-height: 85px; }
  .options-layout .templates-button { flex-direction: row; }
  .options-layout .activity-options-panel:not(.colorful-options-bar) { grid-column: span 4; }
  .header-actions { flex-basis: 700px; }
}
@media (max-width: 900px) {
  html, body { height: auto; overflow-x: hidden; overflow-y: auto; }
  .app-shell { --panel-columns: repeat(6, minmax(0, 1fr)); height: auto; min-height: 100dvh; overflow: visible; }
  .topbar { justify-content: center; flex-wrap: wrap; padding: 4px 8px; gap: 6px; }
  .topbar .brand-logo { width: 165px; }
  .header-actions { flex-basis: 100%; justify-content: center; gap: 6px; }
  .header-actions > button, .header-actions #saveButton { font-size: 12px; min-height: 38px; padding: 6px 9px; }
  .save-and-filters { gap: 7px; }
  .header-actions #saveButton > span { display: inline; }
  .workspace { display: flex; flex-direction: column; gap: 8px; height: auto; overflow: visible; padding: 8px; }
  .activity-menu { height: auto; min-height: 32px; flex: 0 0 auto; }
  .section-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; min-width: 0; }
  .section-tab { min-width: 0; padding-inline: 2px; font-size: 10px; letter-spacing: 0; }
  .options-layout { gap: 6px; }
  .options-layout .image-cluster, .options-layout .tools-cluster { grid-column: 1 / -1; }
  .options-layout .strokes-cluster, .options-layout .categories-cluster, .options-layout .templates-button { grid-column: span 2; min-height: 88px; }
  .options-layout .templates-button { flex-direction: column; }
  .options-layout .activity-options-panel:not(.colorful-options-bar) { grid-column: span 4; }
  .options-layout .image-cluster .import-options { min-height: 60px; }
  .options-layout .colorful-options-bar .compact-upload strong { font-size: 12px; }
  .canvas-ad-row { height: auto; min-height: 520px; display: flex; flex-direction: column; overflow: visible; }
  .activity-work-area { min-height: 490px; height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(320px, 1fr); overflow: visible; }
  .side-toolbar { height: auto; }
  .side-toolbar .tool-strip { height: auto; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
  .side-toolbar .color-palette { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
  .side-toolbar .color-button, .side-toolbar .custom-color-label { width: 24px; height: 24px; }
  .side-toolbar .toolbar-divider { display: none; }
  .side-toolbar .history-actions { grid-column: 1 / -1; min-width: 0; }
  .side-toolbar .history-actions .action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .side-toolbar .icon-action { min-height: 36px; font-size: 10px; }
  .side-toolbar .icon-action span { white-space: normal; overflow: visible; text-overflow: clip; }
  .studio { min-height: 340px; }
  .support-rail { display: flex; min-height: 170px; height: 170px; }
  .support-rail > .ad-slot { min-height: 170px; }
  .gallery-title-row { flex-wrap: wrap; gap: 8px; }
  body .app-shell.painting-fullscreen { overflow-y: auto; }
  body .app-shell.painting-fullscreen .workspace { display: flex; flex: 1 0 auto; height: auto; overflow: visible; padding: 8px; }
  body .app-shell.painting-fullscreen .canvas-ad-row { min-height: 520px; height: auto; overflow: visible; }
  body .app-shell.painting-fullscreen .activity-work-area { min-height: 490px; }
}
@media (max-width: 560px) {
  .header-audience { gap: 5px; }
  .audience-button { min-width: 66px; padding-inline: 5px; font-size: 11px; gap: 3px; }
  .options-layout .image-tool-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .options-layout .image-tool-buttons .pointer-split-control { grid-column: span 2; }
  .options-layout .image-tool-buttons .top-tool-button { min-height: 66px; }
  .options-layout .option-cluster { padding: 6px; }
  .options-layout .select-mold-button { flex-direction: column; }
  .options-layout .select-mold-button strong, .options-layout .templates-button strong { font-size: 11px; }
  .options-layout .select-mold-button small { font-size: 9px; }
  .options-layout .colorful-options-bar .top-size-button span { font-size: 9px; }
  .share-dialog { padding: 20px; }
  .share-dialog h2 { font-size: 22px; }
  .share-kicker { font-size: 10px; }
  .share-dialog #shareMessage { font-size: 15px; }
  .share-networks { gap: 9px; }
  .share-network { font-size: 15px; gap: 6px; padding-inline: 6px; }
  .share-copy-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .share-dialog .share-copy-row .share-button { min-height: 44px; }
  .share-dialog .share-more { font-size: 13px; }
}

/* Resaltador: el mismo selector dividido del lápiz, con tinta translúcida. */
.canvas-frame { isolation: isolate; }
#highlighterCanvas { z-index: 4; pointer-events: none; mix-blend-mode: multiply; }
.canvas-frame:not([data-import-mode="original"]) #outlineCanvas { z-index: 5; }
#imageSelectionCanvas, .image-selection-hint { z-index: 6; }
.canvas-frame .canvas-text-editor { z-index: 7; }
.colorful-options-bar .highlighter-picker-button {
  color: #715107; background: #fffbed; border-color: #ecd589;
}
.colorful-options-bar .highlighter-picker-button .icon,
.colorful-options-bar .highlighter-picker-button > small { color: #86660e; }
.colorful-options-bar .highlighter-picker-button.is-selected {
  color: #594007; background: #ffe78a; border-color: #bd9014;
  box-shadow: inset 0 0 0 1px #bd9014;
}
.colorful-options-bar .highlighter-picker-button.is-selected .icon,
.colorful-options-bar .highlighter-picker-button.is-selected > small { color: #594007; }
.highlighter-options-button { color: #86660e; background: #fff9df; border-color: #d6b449; }
.highlighter-options-button:hover:not(:disabled), .highlighter-options-button:focus-visible {
  color: #594007; background: #ffe78a;
}
.highlighter-dialog .pointer-preview::after { background: var(--active-color, #ffd13f); opacity: .38; }
.highlighter-dialog .marker-preview .icon { color: #ad810a; }
.highlighter-dialog .pointer-option[data-highlighter="marker-ring"] .pointer-preview::before {
  content: ""; position: absolute; width: 30px; height: 30px;
  border: 2px solid #b28a1d; border-radius: 50%; left: calc(50% - 27px); bottom: 12px;
}
.header-actions > .sound-toggle {
  color: #124e80; background: #f2f6ff; border: 1px solid #cdddf4;
  border-radius: 12px; box-shadow: none; font-weight: 800;
}
.header-actions > .sound-toggle:hover { background: #e6effe; border-color: #96b9e6; }
.header-actions > .sound-toggle[aria-pressed="true"] {
  color: #124e80; background: #deebff; border-color: #8aafe0;
}
.header-actions > .sound-toggle:focus-visible { outline: 3px solid #1680ee; outline-offset: 2px; }
@media (max-width: 560px) {
  .options-layout .image-tool-buttons { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .options-layout .image-tool-buttons .pointer-split-control { grid-column: span 3; min-height: 70px; }
  .options-layout .image-tool-buttons .top-tool-button { grid-column: span 2; }
  .highlighter-dialog .pointer-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
