/* inline-style-1 */
:root {
  --topbar-h: 50px;
  --context-h: 42px;
  --rail-w: 66px;
  --panel-w: 288px;
  --pages-h: 72px;

  --bg: #08090a;
  --surface: #0f1011;
  --panel: #191a1b;
  --panel-2: #1f2023;
  --line: rgba(255,255,255,.07);
  --line-strong: rgba(255,255,255,.14);
  --text: #f7f8f8;
  --muted: #8a8f98;
  --muted-2: #686d75;

  --workspace: #eceff3;
  --workspace-line: #d4d8df;
  --workspace-text: #2f343d;
  --workspace-muted: #717984;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--bg) !important;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body > .elementor,
body > .elementor-location-single,
.elementor,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget,
.elementor-widget-wrap,
.elementor-widget-html,
.elementor-widget-container,
.e-con,
.e-con-inner {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

#critheraReaderRoot {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  isolation: isolate;
}

.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: default;
}

.icon-button:disabled {
  opacity: .42;
}

.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .055em;
  color: var(--text);
  white-space: nowrap;
}

.top-divider {
  width: 1px;
  height: 21px;
  background: var(--line);
}

.design-name {
  width: min(240px, 24vw);
  height: 31px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.86);
  font-size: 11.5px;
  font-weight: 500;
}

.design-name:read-only {
  cursor: default;
}

.readonly-label {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.download-button {
  min-height: 33px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 650;
  opacity: .45;
  cursor: default;
}

.contextbar {
  height: var(--context-h);
  min-height: var(--context-h);
  flex: 0 0 var(--context-h);
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
}

.context-empty {
  color: var(--muted-2);
  font-size: 10.5px;
}

.main {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  overflow: hidden;
}

.rail {
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  padding: 8px 6px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  width: 52px;
  min-height: 52px;
  padding: 6px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: default;
}

.rail-item b {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.rail-item span {
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 550;
}

.rail-item.active {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.07);
  color: var(--text);
}

.sidepanel {
  width: var(--panel-w);
  flex: 0 0 var(--panel-w);
  border-right: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-head {
  height: 47px;
  min-height: 47px;
  padding: 0 13px 0 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head strong {
  font-size: 12.5px;
  font-weight: 650;
}

.panel-head span {
  color: var(--muted-2);
  font-size: 9px;
}

.panel-content {
  min-height: 0;
  flex: 1;
  padding: 13px;
  overflow-y: auto;
}

.panel-note {
  margin-bottom: 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.layers-label {
  margin: 0 0 9px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.layers-list {
  display: grid;
  gap: 5px;
}

.layer-row {
  min-height: 43px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: center;
  gap: 8px;
}

.layer-type {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
}

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

.layer-copy strong,
.layer-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-copy strong {
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 600;
}

.layer-copy span {
  color: var(--muted-2);
  font-size: 8.5px;
}

.workspace {
  position: relative;
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--workspace);
}

.stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: auto;
  background-color: var(--workspace);
  background-image:
    linear-gradient(rgba(82,90,102,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,90,102,.045) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}

.stage-inner {
  min-width: max-content;
  min-height: 100%;
  padding: 44px 52px 58px;
  display: grid;
  place-items: center;
}

.canvas-shell {
  position: relative;
  flex: 0 0 auto;
}

.canvas {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  transform-origin: top left;
  background: #fff;
  box-shadow:
    0 28px 70px -28px rgba(31,36,45,.22),
    0 8px 24px -15px rgba(31,36,45,.30),
    0 0 0 1px rgba(67,74,85,.13);
}

.reader-element {
  position: absolute;
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
}

.reader-text {
  margin: 0;
  padding: 0;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: normal;
  word-break: normal;
  font-synthesis: weight style;
}

.reader-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  user-select: none;
}

.zoom-box {
  position: absolute;
  right: 16px;
  bottom: calc(var(--pages-h) + 13px);
  z-index: 20;
  height: 34px;
  padding: 0 5px;
  border: 1px solid var(--workspace-line);
  border-radius: 9px;
  background: rgba(255,255,255,.98);
  color: var(--workspace-text);
  box-shadow: 0 10px 24px -18px rgba(31,36,45,.36);
  display: flex;
  align-items: center;
  gap: 2px;
}

.zoom-box button {
  width: 25px;
  height: 25px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--workspace-muted);
  display: grid;
  place-items: center;
  cursor: default;
}

.zoom-box span {
  width: 44px;
  color: var(--workspace-text);
  text-align: center;
  font-size: 9.5px;
  font-weight: 650;
}

.pagesbar {
  height: var(--pages-h);
  min-height: var(--pages-h);
  flex: 0 0 var(--pages-h);
  padding: 8px 14px;
  border-top: 1px solid var(--workspace-line);
  background: #fafbfc;
  color: var(--workspace-text);
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
}

.pages-label {
  height: 31px;
  padding: 0 10px;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  color: var(--workspace-muted);
  background: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.page-thumb {
  position: relative;
  width: 45px;
  height: 56px;
  padding: 3px;
  border: 2px solid var(--workspace-text);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 11px rgba(31,36,45,.12);
}

.page-mini-stage {
  position: absolute;
  left: 3px;
  top: 3px;
  transform-origin: top left;
  overflow: hidden;
}

.page-number {
  position: absolute;
  left: 3px;
  bottom: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(0,0,0,.58);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 700;
}

.add-page {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px dashed var(--workspace-line);
  border-radius: 8px;
  background: transparent;
  color: var(--workspace-muted);
  font-size: 18px;
  cursor: default;
}

@media (max-width: 980px) {
  :root {
    --panel-w: 260px;
    --rail-w: 60px;
  }

  .rail-item {
    width: 48px;
  }

  .stage-inner {
    padding: 40px 36px 52px;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-h: 48px;
    --context-h: 40px;
    --rail-w: 0px;
    --pages-h: 64px;
  }

  .topbar {
    padding: 0 8px;
  }

  .top-divider,
  .readonly-label {
    display: none;
  }

  .design-name {
    width: 112px;
    padding-left: 2px;
  }

  .download-button {
    min-height: 31px;
    padding: 0 10px;
    font-size: 10px;
  }

  .rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    width: auto;
    height: 56px;
    padding: 4px 6px;
    border-top: 1px solid var(--line);
    border-right: 0;
    flex-direction: row;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .rail-item {
    min-width: 48px;
    width: 48px;
    min-height: 47px;
    height: 47px;
    padding: 4px 2px;
  }

  .sidepanel {
    display: none;
  }

  .stage-inner {
    padding: 34px 16px 48px;
  }

  .pagesbar {
    margin-bottom: 56px;
  }

  .zoom-box {
    right: 10px;
    bottom: calc(var(--pages-h) + 68px);
  }
}

/* crithera-reader-visual-refinement */
:root {
  --topbar-h: 56px;
  --context-h: 44px;
  --rail-w: 78px;
  --panel-w: 310px;
  --pages-h: 78px;

  --bg: #08090a;
  --surface: #101112;
  --panel: #151617;
  --panel-2: #1b1c1e;
  --line: rgba(255,255,255,.065);
  --line-strong: rgba(255,255,255,.135);
  --text: #f7f8f8;
  --muted: #92969e;
  --muted-2: #6f747d;

  --workspace: #f0f1f3;
  --workspace-line: #d7d9de;
  --workspace-text: #25292f;
  --workspace-muted: #747a84;
}

#critheraReaderRoot {
  background: var(--bg);
}

#critheraReaderRoot .ui-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

#critheraReaderRoot .topbar {
  padding: 0 14px;
  gap: 10px;
  background: #0d0e0f;
}

#critheraReaderRoot .icon-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-color: transparent;
  color: #7e838c;
  border-radius: 8px;
}

#critheraReaderRoot .icon-button:disabled {
  opacity: 1;
}

#critheraReaderRoot .back-button {
  border-color: var(--line);
  background: rgba(255,255,255,.018);
}

#critheraReaderRoot .brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .06em;
}

#critheraReaderRoot .top-divider {
  height: 24px;
}

#critheraReaderRoot .design-name {
  width: min(290px, 28vw);
  height: 34px;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 550;
}

#critheraReaderRoot .readonly-label {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.022);
  color: #9b9fa7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 600;
}

#critheraReaderRoot .readonly-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b7bbc1;
}

#critheraReaderRoot .top-actions {
  gap: 8px;
}

#critheraReaderRoot .top-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

#critheraReaderRoot .top-actions-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

#critheraReaderRoot .download-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #f7f8f8;
  border-radius: 8px;
  background: #f7f8f8;
  color: #08090a;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#critheraReaderRoot .download-button .ui-icon {
  width: 15px;
  height: 15px;
}

#critheraReaderRoot .contextbar {
  padding: 0 16px;
  background: #111213;
}

#critheraReaderRoot .context-empty {
  color: #6f747d;
  font-size: 11px;
}

#critheraReaderRoot .rail {
  padding: 10px 7px;
  gap: 3px;
  background: #0b0c0d;
}

#critheraReaderRoot .rail-item {
  position: relative;
  width: 62px;
  min-height: 58px;
  padding: 7px 4px;
  border-radius: 9px;
  gap: 6px;
  color: #858a93;
}

#critheraReaderRoot .rail-item:disabled {
  opacity: 1;
}

#critheraReaderRoot .rail-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

#critheraReaderRoot .rail-icon .ui-icon {
  width: 18px;
  height: 18px;
}

#critheraReaderRoot .rail-item > span:last-child {
  max-width: 57px;
  font-size: 9.2px;
  font-weight: 550;
  line-height: 1.1;
}

#critheraReaderRoot .rail-item.active {
  border-color: var(--line-strong);
  background: #1a1b1d;
  color: #f7f8f8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

#critheraReaderRoot .rail-item.active::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #f7f8f8;
}

#critheraReaderRoot .sidepanel {
  background: #151617;
}

#critheraReaderRoot .panel-head {
  height: 58px;
  min-height: 58px;
  padding: 0 15px 0 17px;
}

#critheraReaderRoot .panel-title-group {
  min-width: 0;
}

#critheraReaderRoot .panel-title-group strong,
#critheraReaderRoot .panel-title-group small {
  display: block;
}

#critheraReaderRoot .panel-title-group strong {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 650;
}

#critheraReaderRoot .panel-title-group small {
  color: var(--muted-2);
  font-size: 9.5px;
}

#critheraReaderRoot .panel-mode {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #8f949c;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
}

#critheraReaderRoot .panel-content {
  padding: 15px;
}

#critheraReaderRoot .layers-heading {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#critheraReaderRoot .layers-heading .layers-label {
  margin: 0;
  color: #8e939b;
  font-size: 9.5px;
  letter-spacing: .07em;
}

#critheraReaderRoot .layers-heading > span {
  color: #60656d;
  font-size: 9px;
}

#critheraReaderRoot .layers-list {
  gap: 7px;
}

#critheraReaderRoot .layer-row {
  min-height: 50px;
  padding: 8px 9px;
  border-color: rgba(255,255,255,.055);
  border-radius: 9px;
  background: #111213;
  grid-template-columns: 32px minmax(0,1fr);
  gap: 10px;
}

#critheraReaderRoot .layer-type {
  width: 32px;
  height: 32px;
  border-color: rgba(255,255,255,.075);
  background: #17181a;
  font-size: 8.5px;
}

#critheraReaderRoot .layer-copy strong {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
}

#critheraReaderRoot .layer-copy span {
  font-size: 9.5px;
}

#critheraReaderRoot .workspace {
  background: var(--workspace);
}

#critheraReaderRoot .stage {
  background-color: var(--workspace);
  background-image:
    linear-gradient(rgba(65,72,82,.037) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65,72,82,.037) 1px, transparent 1px);
  background-size: 24px 24px;
}

#critheraReaderRoot .stage-inner {
  padding: 52px 58px 66px;
}

#critheraReaderRoot .canvas {
  box-shadow:
    0 35px 75px -34px rgba(31,36,45,.28),
    0 11px 28px -18px rgba(31,36,45,.30),
    0 0 0 1px rgba(66,72,83,.13);
}

#critheraReaderRoot .zoom-box {
  right: 18px;
  bottom: calc(var(--pages-h) + 16px);
  height: 38px;
  padding: 0 5px;
  border-radius: 10px;
  background: rgba(255,255,255,.985);
}

#critheraReaderRoot .zoom-box button {
  width: 28px;
  height: 28px;
}

#critheraReaderRoot .zoom-box button:disabled {
  opacity: 1;
}

#critheraReaderRoot .zoom-box button .ui-icon {
  width: 14px;
  height: 14px;
}

#critheraReaderRoot .zoom-box span {
  width: 46px;
  font-size: 10px;
}

#critheraReaderRoot .zoom-divider {
  width: 1px;
  height: 20px;
  margin: 0 2px;
  background: var(--workspace-line);
}

#critheraReaderRoot .pagesbar {
  padding: 9px 16px;
  gap: 11px;
  background: #fbfbfc;
}

#critheraReaderRoot .pages-label {
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 9px;
}

#critheraReaderRoot .page-thumb {
  width: 48px;
  height: 60px;
  border-color: #24282e;
  border-radius: 7px;
}

#critheraReaderRoot .add-page {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

#critheraReaderRoot .add-page .ui-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 1060px) {
  :root {
    --panel-w: 286px;
    --rail-w: 72px;
  }

  #critheraReaderRoot .rail-item {
    width: 58px;
  }

  #critheraReaderRoot .stage-inner {
    padding: 46px 38px 58px;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-h: 50px;
    --context-h: 40px;
    --rail-w: 0px;
    --pages-h: 66px;
  }

  #critheraReaderRoot .topbar {
    padding: 0 8px;
    gap: 6px;
  }

  #critheraReaderRoot .brand {
    font-size: 16px;
  }

  #critheraReaderRoot .design-name {
    width: 112px;
    height: 32px;
    padding-left: 3px;
    font-size: 11px;
  }

  #critheraReaderRoot .readonly-label,
  #critheraReaderRoot .top-actions-divider,
  #critheraReaderRoot .top-actions-group:first-child {
    display: none;
  }

  #critheraReaderRoot .download-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
  }

  #critheraReaderRoot .download-button span {
    display: none;
  }

  #critheraReaderRoot .rail {
    height: 62px;
    padding: 4px 6px;
    justify-content: flex-start;
  }

  #critheraReaderRoot .rail-item {
    min-width: 52px;
    width: 52px;
    min-height: 52px;
    height: 52px;
    padding: 5px 3px;
  }

  #critheraReaderRoot .rail-item.active::before {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: -4px;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }

  #critheraReaderRoot .rail-item > span:last-child {
    font-size: 8px;
  }

  #critheraReaderRoot .pagesbar {
    margin-bottom: 62px;
  }

  #critheraReaderRoot .stage-inner {
    padding: 38px 15px 52px;
  }

  #critheraReaderRoot .zoom-box {
    right: 10px;
    bottom: calc(var(--pages-h) + 74px);
  }
}

/* crithera-editor-mobile-history-v14-1 */
@media (max-width: 760px) {
    #critheraReaderRoot.user-editor .zoom-box {
      display: inline-flex;
      align-items: center;
      width: auto;
      max-width: calc(100vw - 20px);
      min-width: 0;
      padding-inline: 5px;
    }

    #critheraReaderRoot.user-editor .zoom-box #undoBtn,
    #critheraReaderRoot.user-editor .zoom-box #redoBtn {
      display: inline-grid !important;
      place-items: center;
      position: static !important;
      width: 30px;
      min-width: 30px;
      height: 30px;
      padding: 0;
      margin: 0;
      border: 0;
      border-radius: 7px;
      background: transparent !important;
      color: var(--audit-light-muted, #747a84) !important;
      box-shadow: none !important;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      touch-action: manipulation;
    }

    #critheraReaderRoot.user-editor .zoom-box #undoBtn:not(:disabled):active,
    #critheraReaderRoot.user-editor .zoom-box #redoBtn:not(:disabled):active {
      background: #e4e7eb !important;
      color: var(--audit-light-text, #25292f) !important;
    }

    #critheraReaderRoot.user-editor .zoom-box #undoBtn:disabled,
    #critheraReaderRoot.user-editor .zoom-box #redoBtn:disabled {
      opacity: .35;
      cursor: default;
    }

    #critheraReaderRoot.user-editor .zoom-box #undoBtn .ui-icon,
    #critheraReaderRoot.user-editor .zoom-box #redoBtn .ui-icon {
      width: 15px;
      height: 15px;
    }

    #critheraReaderRoot.user-editor .zoom-box .mobile-history-divider {
      flex: 0 0 1px;
      width: 1px !important;
      height: 20px;
      margin: 0 2px;
    }

    #critheraReaderRoot.user-editor .zoom-box #zoomLabel {
      width: 42px;
      flex-basis: 42px;
    }
  }

  @media (max-width: 390px) {
    #critheraReaderRoot.user-editor .zoom-box {
      right: 6px;
    }

    #critheraReaderRoot.user-editor .zoom-box button,
    #critheraReaderRoot.user-editor .zoom-box #undoBtn,
    #critheraReaderRoot.user-editor .zoom-box #redoBtn {
      width: 28px;
      min-width: 28px;
    }

    #critheraReaderRoot.user-editor .zoom-box #zoomLabel {
      width: 38px;
      flex-basis: 38px;
    }
  }

/* crithera-reader-navigation-step */
#critheraReaderRoot .pages-list {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  #critheraReaderRoot .page-thumb {
    position: relative;
    cursor: pointer;
    transition:
      border-color .16s ease,
      box-shadow .16s ease,
      transform .16s ease;
  }

  #critheraReaderRoot .page-thumb:hover {
    transform: translateY(-1px);
    border-color: #767c86;
  }

  #critheraReaderRoot .page-thumb.active {
    border-color: #24282e;
    box-shadow:
      0 0 0 2px rgba(36,40,46,.12),
      0 5px 13px rgba(31,36,45,.13);
  }

  #critheraReaderRoot .zoom-box button {
    cursor: pointer;
    transition:
      background-color .14s ease,
      color .14s ease;
  }

  #critheraReaderRoot .zoom-box button:hover {
    background: #eef0f3;
    color: #20242a;
  }

  #critheraReaderRoot .zoom-box button:active {
    background: #e4e7eb;
  }

  #critheraReaderRoot .zoom-box button:focus-visible,
  #critheraReaderRoot .page-thumb:focus-visible {
    outline: 2px solid #30343a;
    outline-offset: 2px;
  }

  #critheraReaderRoot .zoom-box button:disabled {
    cursor: default;
    opacity: .35;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .pages-list {
      gap: 7px;
    }
  }

/* crithera-reader-selection-step */
/* Corrige o divisor que herdava a largura do percentual. */
  #critheraReaderRoot #zoomLabel {
    width: 46px;
    flex: 0 0 46px;
  }

  #critheraReaderRoot .zoom-divider {
    width: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    flex: 0 0 1px !important;
    height: 20px;
    margin: 0 2px;
    padding: 0;
    background: var(--workspace-line);
  }

  #critheraReaderRoot .reader-element:not(.reader-miniature) {
    pointer-events: auto;
    cursor: pointer;
  }

  #critheraReaderRoot .reader-element:not(.reader-miniature):hover {
    outline: 1px solid rgba(17,18,20,.38);
    outline-offset: 2px;
  }

  #critheraReaderRoot .reader-element.is-selected {
    outline: 2px solid #111214;
    outline-offset: 3px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.88);
  }

  #critheraReaderRoot .reader-element:focus-visible {
    outline: 2px solid #111214;
    outline-offset: 3px;
  }

  #critheraReaderRoot .page-mini-stage .reader-element {
    pointer-events: none !important;
    cursor: default !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  #critheraReaderRoot .layer-row {
    width: 100%;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition:
      background-color .14s ease,
      border-color .14s ease;
  }

  #critheraReaderRoot .layer-row:hover {
    background: #191a1c;
    border-color: rgba(255,255,255,.11);
  }

  #critheraReaderRoot .layer-row.active {
    background: #1d1e20;
    border-color: rgba(255,255,255,.22);
    box-shadow: inset 3px 0 0 #f7f8f8;
  }

  #critheraReaderRoot .layer-row:focus-visible {
    outline: 2px solid rgba(255,255,255,.65);
    outline-offset: 2px;
  }

  #critheraReaderRoot .contextbar {
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  #critheraReaderRoot .contextbar::-webkit-scrollbar {
    display: none;
  }

  #critheraReaderRoot .context-selection-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f7f8f8;
    font-size: 11px;
    font-weight: 650;
  }

  #critheraReaderRoot .context-type {
    min-height: 25px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: #9ba0a8;
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  #critheraReaderRoot .context-separator {
    width: 1px;
    min-width: 1px;
    height: 22px;
    background: var(--line);
  }

  #critheraReaderRoot .context-property {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  #critheraReaderRoot .context-property-label {
    color: #6f747d;
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  #critheraReaderRoot .context-property-value {
    color: #c8cbd0;
    font-size: 10px;
    font-weight: 550;
  }

  #critheraReaderRoot .context-color-swatch {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 4px;
    flex: 0 0 14px;
  }

  #critheraReaderRoot .context-readonly {
    margin-left: auto;
    color: #686d75;
    font-size: 9px;
    white-space: nowrap;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .context-selection-name {
      max-width: 130px;
    }

    #critheraReaderRoot .context-readonly {
      display: none;
    }
  }

/* crithera-reader-selection-fix */
/*
    A importação entrega uma altura geométrica exata.
    No navegador, a métrica real da fonte pode ocupar alguns pixels a mais.
    No canvas principal, o texto cresce apenas o necessário para não cortar.
  */
  #critheraReaderRoot
  .reader-text:not(.reader-miniature) {
    height: auto !important;
    min-height: var(--reader-original-height, 1px);
    overflow: visible !important;
    padding-bottom: .12em;
  }

  #critheraReaderRoot
  .page-mini-stage
  .reader-text {
    overflow: hidden !important;
    padding-bottom: 0 !important;
  }

  #critheraReaderRoot
  .reader-element:not(.reader-miniature) {
    pointer-events: auto !important;
    cursor: pointer;
  }

  #critheraReaderRoot
  .reader-image:not(.reader-miniature) {
    -webkit-user-drag: none;
    user-drag: none;
  }

  #critheraReaderRoot
  .selection-box {
    position: absolute;
    z-index: 2147480;
    border: 2px solid #111214;
    outline: 1px solid rgba(255,255,255,.92);
    outline-offset: 1px;
    transform-origin: center center;
    pointer-events: none;
  }

  #critheraReaderRoot
  .selection-box::before,
  #critheraReaderRoot
  .selection-box::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #111214;
    border-radius: 50%;
    background: #ffffff;
  }

  #critheraReaderRoot
  .selection-box::before {
    left: -6px;
    top: -6px;
  }

  #critheraReaderRoot
  .selection-box::after {
    right: -6px;
    bottom: -6px;
  }

  #critheraReaderRoot
  .reader-element.is-selected {
    outline: none !important;
    box-shadow: none !important;
  }

  #critheraReaderRoot
  .layer-row.active {
    background: #222326 !important;
    border-color: rgba(255,255,255,.30) !important;
    box-shadow:
      inset 3px 0 0 #f7f8f8,
      inset 0 0 0 1px rgba(255,255,255,.045) !important;
  }

/* crithera-reader-movement-step */
#critheraReaderRoot
  .reader-element:not(.reader-miniature) {
    cursor: grab !important;
    touch-action: none;
  }

  #critheraReaderRoot
  .reader-element:not(.reader-miniature).is-dragging {
    cursor: grabbing !important;
  }

  #critheraReaderRoot
  .selection-box.is-dragging {
    opacity: .95;
  }

  #critheraReaderRoot
  .readonly-label {
    min-width: 92px;
    justify-content: center;
  }

/* crithera-reader-resize-step */
#critheraReaderRoot
  .selection-box::before,
  #critheraReaderRoot
  .selection-box::after {
    display: none !important;
  }

  #critheraReaderRoot
  .resize-handle {
    position: absolute;
    z-index: 2;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 3px solid #111214;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: auto;
    touch-action: none;
  }

  #critheraReaderRoot
  .resize-handle.nw {
    left: -11px;
    top: -11px;
    cursor: nwse-resize;
  }

  #critheraReaderRoot
  .resize-handle.ne {
    right: -11px;
    top: -11px;
    cursor: nesw-resize;
  }

  #critheraReaderRoot
  .resize-handle.se {
    right: -11px;
    bottom: -11px;
    cursor: nwse-resize;
  }

  #critheraReaderRoot
  .resize-handle.sw {
    left: -11px;
    bottom: -11px;
    cursor: nesw-resize;
  }

  #critheraReaderRoot
  .selection-box.is-resizing {
    opacity: .96;
  }

  #critheraReaderRoot
  .reader-element.is-resizing {
    cursor: default !important;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .resize-handle {
      width: 24px;
      height: 24px;
    }

    #critheraReaderRoot
    .resize-handle.nw {
      left: -13px;
      top: -13px;
    }

    #critheraReaderRoot
    .resize-handle.ne {
      right: -13px;
      top: -13px;
    }

    #critheraReaderRoot
    .resize-handle.se {
      right: -13px;
      bottom: -13px;
    }

    #critheraReaderRoot
    .resize-handle.sw {
      left: -13px;
      bottom: -13px;
    }
  }

/* crithera-reader-rotate-step */
#critheraReaderRoot
  .rotate-line {
    position: absolute;
    left: 50%;
    top: -42px;
    width: 2px;
    height: 31px;
    background: #111214;
    transform: translateX(-50%);
    pointer-events: none;
  }

  #critheraReaderRoot
  .rotate-handle {
    position: absolute;
    left: 50%;
    top: -56px;
    z-index: 3;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 3px solid #111214;
    border-radius: 50%;
    background: #ffffff;
    transform: translateX(-50%);
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
  }

  #critheraReaderRoot
  .rotate-handle:active {
    cursor: grabbing;
  }

  #critheraReaderRoot
  .selection-box.is-rotating {
    opacity: .96;
  }

  #critheraReaderRoot
  .reader-element.is-rotating {
    cursor: default !important;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .rotate-line {
      top: -48px;
      height: 35px;
    }

    #critheraReaderRoot
    .rotate-handle {
      top: -64px;
      width: 26px;
      height: 26px;
    }
  }

/* crithera-reader-text-edit-step */
#critheraReaderRoot
  .inline-text-editor {
    position: absolute;
    z-index: 2147481;
    margin: 0;
    padding: 0 0 .12em;
    border: 0;
    outline: 2px solid #111214;
    outline-offset: 3px;
    background: transparent;
    box-shadow: 0 0 0 1px rgba(255,255,255,.92);
    color: inherit;
    resize: none;
    overflow: hidden;
    white-space: pre-wrap;
    overflow-wrap: normal;
    word-break: normal;
    transform-origin: center center;
    font-synthesis: weight style;
    caret-color: currentColor;
    touch-action: manipulation;
  }

  #critheraReaderRoot
  .inline-text-editor:focus {
    outline: 2px solid #111214;
    outline-offset: 3px;
  }

  #critheraReaderRoot
  .context-action {
    min-height: 29px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255,255,255,.055);
    color: #f7f8f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
  }

  #critheraReaderRoot
  .context-action:hover {
    background: rgba(255,255,255,.09);
  }

  #critheraReaderRoot
  .context-action.primary {
    border-color: #f7f8f8;
    background: #f7f8f8;
    color: #08090a;
  }

  #critheraReaderRoot
  .context-action.primary:hover {
    background: #ffffff;
  }

  #critheraReaderRoot
  .context-editing-label {
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: #a7abb2;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 650;
  }

  #critheraReaderRoot
  .context-editing-help {
    margin-left: auto;
    color: #686d75;
    font-size: 9px;
    white-space: nowrap;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .context-editing-help {
      display: none;
    }

    #critheraReaderRoot
    .context-action {
      min-height: 28px;
      padding: 0 10px;
    }
  }

/* crithera-reader-text-style-step */
#critheraReaderRoot
  .context-control {
    min-height: 29px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
  }

  #critheraReaderRoot
  .context-control-label {
    padding-left: 8px;
    color: #6f747d;
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    pointer-events: none;
  }

  #critheraReaderRoot
  .context-control select,
  #critheraReaderRoot
  .context-control input[type="number"] {
    height: 28px;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #d4d7dc;
    font: inherit;
    font-size: 10px;
  }

  #critheraReaderRoot
  .context-control select {
    width: 124px;
    padding: 0 24px 0 2px;
    cursor: pointer;
  }

  #critheraReaderRoot
  .context-control input[type="number"] {
    width: 54px;
    padding: 0 6px 0 2px;
  }

  #critheraReaderRoot
  .context-control option {
    background: #151618;
    color: #f7f8f8;
  }

  #critheraReaderRoot
  .context-color-control {
    min-height: 29px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  #critheraReaderRoot
  .context-color-control input[type="color"] {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
  }

  #critheraReaderRoot
  .context-color-control input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
  }

  #critheraReaderRoot
  .context-color-control input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 4px;
  }

  #critheraReaderRoot
  .context-segmented {
    min-height: 29px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  #critheraReaderRoot
  .context-segmented button {
    min-width: 28px;
    height: 24px;
    padding: 0 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8d929a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  #critheraReaderRoot
  .context-segmented button:hover {
    background: rgba(255,255,255,.07);
    color: #f7f8f8;
  }

  #critheraReaderRoot
  .context-segmented button.active {
    background: #f7f8f8;
    color: #08090a;
  }

  #critheraReaderRoot
  .contextbar.is-text-style {
    padding-right: 12px;
  }

  @media (max-width: 980px) {
    #critheraReaderRoot
    .context-control select {
      width: 105px;
    }
  }

/* crithera-contextual-panels-step */
#critheraReaderRoot .panel-title-group {
    min-width: 0;
  }

  #critheraReaderRoot .panel-title-group strong,
  #critheraReaderRoot .panel-title-group small {
    display: block;
  }

  #critheraReaderRoot .panel-title-group small {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 8.5px;
  }

  #critheraReaderRoot .panel-close {
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot .panel-close:hover {
    background: rgba(255,255,255,.07);
    color: var(--text);
  }

  #critheraReaderRoot .panel-view {
    display: none;
  }

  #critheraReaderRoot .panel-view.active {
    display: block;
  }

  #critheraReaderRoot .panel-search {
    height: 38px;
    margin-bottom: 18px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(255,255,255,.045);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #critheraReaderRoot .panel-search .ui-icon {
    width: 15px;
    height: 15px;
    color: var(--muted);
  }

  #critheraReaderRoot .panel-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 11px;
  }

  #critheraReaderRoot .panel-search input::placeholder {
    color: var(--muted-2);
  }

  #critheraReaderRoot .panel-section {
    margin-top: 19px;
  }

  #critheraReaderRoot .panel-section:first-of-type {
    margin-top: 0;
  }

  #critheraReaderRoot .panel-section h3 {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .04em;
  }

  #critheraReaderRoot .font-current-card,
  #critheraReaderRoot .font-option {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.022);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  #critheraReaderRoot .font-current-card {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.045);
  }

  #critheraReaderRoot .font-option {
    cursor: pointer;
  }

  #critheraReaderRoot .font-option:hover,
  #critheraReaderRoot .font-option.active {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.07);
  }

  #critheraReaderRoot .font-list {
    display: grid;
    gap: 5px;
  }

  #critheraReaderRoot .font-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
  }

  #critheraReaderRoot .font-check {
    color: #f7f8f8;
    font-size: 12px;
  }

  #critheraReaderRoot .weight-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  #critheraReaderRoot .weight-option {
    min-height: 35px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.022);
    color: var(--muted);
    font-size: 10px;
    text-align: left;
    cursor: pointer;
  }

  #critheraReaderRoot .weight-option:hover,
  #critheraReaderRoot .weight-option.active {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.075);
    color: var(--text);
  }

  #critheraReaderRoot .color-sv {
    position: relative;
    height: 176px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    overflow: hidden;
    cursor: crosshair;
    touch-action: none;
  }

  #critheraReaderRoot .color-sv::before,
  #critheraReaderRoot .color-sv::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  #critheraReaderRoot .color-sv::before {
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
  }

  #critheraReaderRoot .color-sv::after {
    background: linear-gradient(to top, #000, rgba(0,0,0,0));
  }

  #critheraReaderRoot .color-sv-handle {
    position: absolute;
    z-index: 2;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.75);
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  #critheraReaderRoot .color-slider-row {
    margin-top: 12px;
  }

  #critheraReaderRoot .color-slider-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 650;
  }

  #critheraReaderRoot .hue-slider,
  #critheraReaderRoot .alpha-slider {
    width: 100%;
    height: 14px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
  }

  #critheraReaderRoot .hue-slider {
    background: linear-gradient(
      to right,
      #f00,
      #ff0,
      #0f0,
      #0ff,
      #00f,
      #f0f,
      #f00
    );
  }

  #critheraReaderRoot .alpha-slider {
    background:
      linear-gradient(
        45deg,
        #777 25%,
        transparent 25%
      ) 0 0 / 8px 8px,
      linear-gradient(
        45deg,
        transparent 75%,
        #777 75%
      ) 0 0 / 8px 8px,
      linear-gradient(
        45deg,
        transparent 75%,
        #777 75%
      ) 4px -4px / 8px 8px,
      linear-gradient(
        45deg,
        #777 25%,
        #999 25%
      ) 4px -4px / 8px 8px;
  }

  #critheraReaderRoot .hue-slider::-webkit-slider-thumb,
  #critheraReaderRoot .alpha-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #111214;
    box-shadow: 0 0 0 1px rgba(0,0,0,.7);
    appearance: none;
    -webkit-appearance: none;
  }

  #critheraReaderRoot .hue-slider::-moz-range-thumb,
  #critheraReaderRoot .alpha-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #111214;
  }

  #critheraReaderRoot .hex-field {
    height: 38px;
    margin-top: 14px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    display: flex;
    align-items: center;
    gap: 7px;
  }

  #critheraReaderRoot .hex-field span {
    color: var(--muted);
    font-size: 13px;
  }

  #critheraReaderRoot .hex-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: 600 11px/1 Inter, sans-serif;
    text-transform: uppercase;
  }

  #critheraReaderRoot .color-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }

  #critheraReaderRoot .color-swatch {
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 7px;
    cursor: pointer;
  }

  #critheraReaderRoot .color-swatch.active {
    box-shadow:
      0 0 0 2px var(--panel),
      0 0 0 4px #f7f8f8;
  }

  #critheraReaderRoot .contextbar {
    gap: 7px;
  }

  #critheraReaderRoot .context-tool {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: #d7dade;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-size: 10px;
    cursor: pointer;
  }

  #critheraReaderRoot .context-tool:hover,
  #critheraReaderRoot .context-tool.active {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.07);
    color: var(--text);
  }

  #critheraReaderRoot .context-tool.font-tool {
    min-width: 126px;
    justify-content: space-between;
  }

  #critheraReaderRoot .context-tool.weight-tool {
    min-width: 88px;
    justify-content: space-between;
  }

  #critheraReaderRoot .context-tool .tool-value {
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #critheraReaderRoot .context-tool .tool-chevron {
    color: var(--muted-2);
    font-size: 8px;
  }

  #critheraReaderRoot .context-color-button {
    width: 34px;
    min-width: 34px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot .context-color-button:hover,
  #critheraReaderRoot .context-color-button.active {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.07);
  }

  #critheraReaderRoot .context-color-preview {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 5px;
  }

  #critheraReaderRoot .context-number-compact {
    height: 30px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  #critheraReaderRoot .context-number-compact span {
    color: var(--muted-2);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
  }

  #critheraReaderRoot .context-number-compact input {
    width: 47px;
    height: 28px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: 550 10px/1 Inter, sans-serif;
  }

  #critheraReaderRoot .editing-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .sidepanel.contextual-open {
      position: fixed;
      z-index: 80;
      top: calc(var(--topbar-h) + var(--context-h));
      right: 0;
      bottom: 62px;
      left: 0;
      width: auto;
      display: flex;
      border-right: 0;
    }

    #critheraReaderRoot .contextbar {
      overflow-x: auto;
      overflow-y: hidden;
    }

    #critheraReaderRoot .context-tool.font-tool {
      min-width: 112px;
    }

    #critheraReaderRoot .context-tool.weight-tool {
      min-width: 76px;
    }
  }

/* crithera-rich-text-step */
#critheraReaderRoot
  .inline-text-editor[contenteditable="true"] {
    display: block;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
  }

  #critheraReaderRoot
  .context-format-group {
    min-height: 30px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  #critheraReaderRoot
  .context-format-button {
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #a4a8af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 650 12px/1 Inter, sans-serif;
    cursor: pointer;
  }

  #critheraReaderRoot
  .context-format-button.italic {
    font-style: italic;
  }

  #critheraReaderRoot
  .context-format-button.underline {
    text-decoration: underline;
  }

  #critheraReaderRoot
  .context-format-button:hover {
    background: rgba(255,255,255,.07);
    color: #f7f8f8;
  }

  #critheraReaderRoot
  .context-format-button.active {
    background: #f7f8f8;
    color: #08090a;
  }

/* crithera-italic-layer-actions-step */
#critheraReaderRoot
  .reader-text,
  #critheraReaderRoot
  .inline-text-editor {
    font-synthesis: weight style;
  }

  #critheraReaderRoot
  .context-layer-actions {
    margin-left: auto;
    min-height: 30px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  #critheraReaderRoot
  .context-layer-action {
    width: 30px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8f949c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  #critheraReaderRoot
  .context-layer-action:hover {
    background: rgba(255,255,255,.075);
    color: #f7f8f8;
  }

  #critheraReaderRoot
  .context-layer-action.danger:hover {
    background: rgba(255,255,255,.12);
    color: #ffffff;
  }

  #critheraReaderRoot
  .context-layer-action:disabled {
    opacity: .32;
    cursor: default;
    background: transparent;
  }

  #critheraReaderRoot
  .layer-row {
    position: relative;
  }

  #critheraReaderRoot
  .layer-order-badge {
    margin-left: auto;
    min-width: 23px;
    height: 20px;
    padding: 0 6px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    color: #6f747c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 650;
  }

  #critheraReaderRoot
  .layer-row.active
  .layer-order-badge {
    color: #b9bdc4;
    border-color: rgba(255,255,255,.16);
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .context-layer-actions {
      margin-left: 0;
    }
  }

/* crithera-italic-visible-fix */
#critheraReaderRoot
  .reader-text i,
  #critheraReaderRoot
  .reader-text em,
  #critheraReaderRoot
  .inline-text-editor i,
  #critheraReaderRoot
  .inline-text-editor em {
    font-style: italic !important;
    font-synthesis: style;
  }

/* crithera-image-edit-step */
#critheraReaderRoot .image-panel-preview {
    position: relative;
    height: 178px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background:
      linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 14px 14px,
      linear-gradient(45deg, transparent 75%, rgba(255,255,255,.035) 75%) 0 0 / 14px 14px,
      linear-gradient(45deg, transparent 75%, rgba(255,255,255,.035) 75%) 7px -7px / 14px 14px,
      linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%) 7px -7px / 14px 14px,
      rgba(255,255,255,.015);
    overflow: hidden;
  }

  #critheraReaderRoot .image-panel-preview img {
    width: 100%;
    height: 100%;
    display: block;
  }

  #critheraReaderRoot .image-replace-button {
    width: 100%;
    min-height: 40px;
    margin-top: 12px;
    padding: 0 13px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #f7f8f8;
    color: #08090a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: 650 10.5px/1 Inter, sans-serif;
    cursor: pointer;
  }

  #critheraReaderRoot .image-replace-button:hover {
    background: #ffffff;
  }

  #critheraReaderRoot .image-replace-button .ui-icon {
    width: 16px;
    height: 16px;
  }

  #critheraReaderRoot .image-file-name {
    min-height: 14px;
    margin: 7px 2px 0;
    overflow: hidden;
    color: var(--muted-2);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #critheraReaderRoot .image-fit-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  #critheraReaderRoot .image-fit-option {
    min-height: 38px;
    padding: 0 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.022);
    color: var(--muted);
    font-size: 9px;
    cursor: pointer;
  }

  #critheraReaderRoot .image-fit-option:hover,
  #critheraReaderRoot .image-fit-option.active {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.075);
    color: var(--text);
  }

  #critheraReaderRoot .image-position-grid {
    width: 112px;
    display: grid;
    grid-template-columns: repeat(3, 31px);
    grid-template-rows: repeat(3, 31px);
    gap: 4px;
  }

  #critheraReaderRoot .image-position-option {
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255,255,255,.022);
    color: var(--muted-2);
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot .image-position-option:hover,
  #critheraReaderRoot .image-position-option.active {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
    color: var(--text);
  }

  #critheraReaderRoot .image-position-option::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }

  #critheraReaderRoot .image-position-option.empty {
    visibility: hidden;
    pointer-events: none;
  }

  #critheraReaderRoot .image-slider-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #critheraReaderRoot .image-slider-heading h3 {
    margin-bottom: 7px;
  }

  #critheraReaderRoot .image-slider-heading span {
    color: var(--muted);
    font-size: 9px;
  }

  #critheraReaderRoot .image-opacity-slider {
    width: 100%;
    height: 5px;
    margin: 4px 0 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(to right, #555, #f7f8f8);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
  }

  #critheraReaderRoot .image-opacity-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #111214;
    box-shadow: 0 0 0 1px rgba(0,0,0,.7);
    appearance: none;
    -webkit-appearance: none;
  }

  #critheraReaderRoot .image-opacity-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #111214;
  }

  #critheraReaderRoot .context-image-fit {
    min-height: 30px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  #critheraReaderRoot .context-image-fit button {
    min-height: 24px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8f949c;
    font: 550 9.5px/1 Inter, sans-serif;
    cursor: pointer;
  }

  #critheraReaderRoot .context-image-fit button:hover,
  #critheraReaderRoot .context-image-fit button.active {
    background: #f7f8f8;
    color: #08090a;
  }

  #critheraReaderRoot .context-image-button {
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: #d7dade;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: 600 10px/1 Inter, sans-serif;
    cursor: pointer;
  }

  #critheraReaderRoot .context-image-button:hover,
  #critheraReaderRoot .context-image-button.active {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.07);
    color: var(--text);
  }

  #critheraReaderRoot .context-image-button .ui-icon {
    width: 15px;
    height: 15px;
  }

/* crithera-image-reposition-step */
#critheraReaderRoot
  .reader-image-frame {
    overflow: hidden;
    background: transparent;
  }

  #critheraReaderRoot
  .reader-image-content {
    position: absolute;
    max-width: none;
    display: block;
    user-select: none;
    pointer-events: none;
    object-fit: fill;
    transform: none;
    transform-origin: center center;
    will-change:
      left,
      top,
      width,
      height;
  }

  #critheraReaderRoot
  .image-crop-editor {
    position: absolute;
    overflow: visible;
    transform-origin: center center;
    cursor: grab;
    touch-action: none;
    z-index: 2147480;
  }

  #critheraReaderRoot
  .image-crop-editor.is-panning {
    cursor: grabbing;
  }

  #critheraReaderRoot
  .crop-image-outside,
  #critheraReaderRoot
  .crop-image-inside {
    position: absolute;
    max-width: none;
    display: block;
    object-fit: fill;
    user-select: none;
    pointer-events: none;
    transform: none;
    transform-origin: center center;
  }

  #critheraReaderRoot
  .crop-image-outside {
    z-index: 1;
    opacity: .47;
    filter: saturate(.82);
  }

  #critheraReaderRoot
  .crop-window {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    border: 2px solid #111214;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.82),
      0 0 0 9999px rgba(15,16,18,.36);
    pointer-events: none;
  }

  #critheraReaderRoot
  .crop-image-inside {
    z-index: 1;
  }

  #critheraReaderRoot
  .crop-corner {
    position: absolute;
    z-index: 4;
    width: 22px;
    height: 22px;
    pointer-events: none;
  }

  #critheraReaderRoot
  .crop-corner::before,
  #critheraReaderRoot
  .crop-corner::after {
    content: "";
    position: absolute;
    background: #111214;
    box-shadow: 0 0 0 1px rgba(255,255,255,.86);
  }

  #critheraReaderRoot
  .crop-corner::before {
    width: 20px;
    height: 2px;
  }

  #critheraReaderRoot
  .crop-corner::after {
    width: 2px;
    height: 20px;
  }

  #critheraReaderRoot
  .crop-corner.nw {
    top: 10px;
    left: 10px;
  }

  #critheraReaderRoot
  .crop-corner.ne {
    top: 10px;
    right: 10px;
    transform: scaleX(-1);
  }

  #critheraReaderRoot
  .crop-corner.sw {
    bottom: 10px;
    left: 10px;
    transform: scaleY(-1);
  }

  #critheraReaderRoot
  .crop-corner.se {
    right: 10px;
    bottom: 10px;
    transform: scale(-1);
  }

  #critheraReaderRoot
  .crop-image-bounds {
    position: absolute;
    z-index: 5;
    border: 2px solid #111214;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.92);
    pointer-events: none;
  }

  #critheraReaderRoot
  .crop-scale-handle {
    position: absolute;
    z-index: 6;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 3px solid #111214;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(255,255,255,.85);
    pointer-events: auto;
    touch-action: none;
  }

  #critheraReaderRoot
  .crop-scale-handle.nw {
    left: -10px;
    top: -10px;
    cursor: nwse-resize;
  }

  #critheraReaderRoot
  .crop-scale-handle.ne {
    right: -10px;
    top: -10px;
    cursor: nesw-resize;
  }

  #critheraReaderRoot
  .crop-scale-handle.se {
    right: -10px;
    bottom: -10px;
    cursor: nwse-resize;
  }

  #critheraReaderRoot
  .crop-scale-handle.sw {
    left: -10px;
    bottom: -10px;
    cursor: nesw-resize;
  }

  #critheraReaderRoot
  .crop-instruction {
    position: absolute;
    left: 50%;
    bottom: 11px;
    z-index: 7;
    min-height: 27px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(8,9,10,.78);
    color: #f7f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 600 9px/1 Inter, sans-serif;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
  }

  #critheraReaderRoot
  .context-image-edit-label {
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255,255,255,.055);
    color: #f7f8f8;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 650;
  }

  #critheraReaderRoot
  .context-image-zoom {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  #critheraReaderRoot
  .context-image-zoom span {
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
  }

  #critheraReaderRoot
  .context-image-zoom input[type="range"] {
    width: 118px;
    height: 5px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background:
      linear-gradient(
        to right,
        #686d75,
        #f7f8f8
      );
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
  }

  #critheraReaderRoot
  .context-image-zoom
  input[type="range"]::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #111214;
    appearance: none;
    -webkit-appearance: none;
  }

  #critheraReaderRoot
  .context-image-zoom output {
    min-width: 34px;
    color: #d7dade;
    font-size: 9.5px;
    text-align: right;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .crop-scale-handle {
      width: 23px;
      height: 23px;
    }

    #critheraReaderRoot
    .crop-scale-handle.nw {
      left: -13px;
      top: -13px;
    }

    #critheraReaderRoot
    .crop-scale-handle.ne {
      right: -13px;
      top: -13px;
    }

    #critheraReaderRoot
    .crop-scale-handle.se {
      right: -13px;
      bottom: -13px;
    }

    #critheraReaderRoot
    .crop-scale-handle.sw {
      left: -13px;
      bottom: -13px;
    }

    #critheraReaderRoot
    .crop-instruction {
      bottom: 8px;
      min-height: 24px;
      font-size: 8.5px;
    }

    #critheraReaderRoot
    .context-image-zoom
    input[type="range"] {
      width: 88px;
    }
  }

/* crithera-image-preview-overflow-fix */
#critheraReaderRoot
  .image-panel-preview {
    overflow: hidden;
  }

  #critheraReaderRoot
  .image-panel-preview img {
    transform-origin: center center;
  }

/* crithera-background-edit-step */
#critheraReaderRoot .context-background-label {
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255,255,255,.055);
    color: #f7f8f8;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 650;
  }

  #critheraReaderRoot .background-color-button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: #d7dade;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 10px/1 Inter, sans-serif;
    cursor: pointer;
  }

  #critheraReaderRoot .background-color-button:hover,
  #critheraReaderRoot .background-color-button.active {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.07);
    color: var(--text);
  }

  #critheraReaderRoot .background-color-preview {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 5px;
  }

  #critheraReaderRoot .reader-canvas.background-editing {
    cursor: pointer;
  }

  #critheraReaderRoot .rail-item#backgroundRailBtn.active {
    background: rgba(255,255,255,.08);
    color: var(--text);
  }

/* crithera-background-image-step */
#critheraReaderRoot .background-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
  }
  #critheraReaderRoot .background-tab {
    flex: 1;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--muted);
    font: 600 12px/1 Inter, sans-serif;
    cursor: pointer;
    transition: .18s ease;
  }
  #critheraReaderRoot .background-tab:hover {
    border-color: var(--line-strong);
    color: var(--text);
  }
  #critheraReaderRoot .background-tab.active {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.075);
    color: #fff;
  }
  #critheraReaderRoot .background-pane { display: none; }
  #critheraReaderRoot .background-pane.active { display: block; }
  #critheraReaderRoot .background-panel-preview {
    position: relative;
    overflow: hidden;
  }
  #critheraReaderRoot .background-image-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: var(--muted);
    font: 500 12px/1.45 Inter, sans-serif;
  }
  #critheraReaderRoot .reader-background-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }
  #critheraReaderRoot .reader-background-image-media {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    user-select: none;
    pointer-events: none;
  }

/* crithera-shape-edit-step */
#critheraReaderRoot .reader-shape {
    box-sizing: border-box;
  }

  #critheraReaderRoot .context-shape-color {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: #d7dade;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: 600 9.5px/1 Inter, sans-serif;
    white-space: nowrap;
    cursor: pointer;
  }

  #critheraReaderRoot .context-shape-color:hover,
  #critheraReaderRoot .context-shape-color.active {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.07);
    color: var(--text);
  }

  #critheraReaderRoot .context-shape-swatch {
    width: 17px;
    height: 17px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 5px;
    flex: 0 0 17px;
  }

  #critheraReaderRoot .context-shape-swatch.transparent {
    background:
      linear-gradient(45deg, #777 25%, transparent 25%) 0 0 / 6px 6px,
      linear-gradient(45deg, transparent 75%, #777 75%) 0 0 / 6px 6px,
      linear-gradient(45deg, transparent 75%, #777 75%) 3px -3px / 6px 6px,
      linear-gradient(45deg, #777 25%, #999 25%) 3px -3px / 6px 6px;
  }

  #critheraReaderRoot .shape-panel-note {
    margin: 0 0 14px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
  }

/* crithera-add-shapes-step */
#critheraReaderRoot .elements-intro {
    margin-bottom: 17px;
  }

  #critheraReaderRoot .elements-intro strong,
  #critheraReaderRoot .elements-intro span {
    display: block;
  }

  #critheraReaderRoot .elements-intro strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
  }

  #critheraReaderRoot .elements-intro span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.45;
  }

  #critheraReaderRoot .basic-shapes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #critheraReaderRoot .basic-shape-card {
    min-height: 104px;
    padding: 12px 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font: 600 9.5px/1 Inter, sans-serif;
    cursor: pointer;
    transition:
      background-color .14s ease,
      border-color .14s ease,
      color .14s ease,
      transform .14s ease;
  }

  #critheraReaderRoot .basic-shape-card:hover {
    border-color: rgba(255,255,255,.23);
    background: rgba(255,255,255,.07);
    color: var(--text);
    transform: translateY(-1px);
  }

  #critheraReaderRoot .basic-shape-card:active {
    transform: translateY(0);
  }

  #critheraReaderRoot .basic-shape-preview {
    display: block;
    border: 1px solid rgba(255,255,255,.32);
    background: #d8d9dc;
  }

  #critheraReaderRoot .basic-shape-preview.rectangle {
    width: 54px;
    height: 34px;
    border-radius: 2px;
  }

  #critheraReaderRoot .basic-shape-preview.rounded {
    width: 54px;
    height: 34px;
    border-radius: 12px;
  }

  #critheraReaderRoot .basic-shape-preview.square {
    width: 38px;
    height: 38px;
    border-radius: 2px;
  }

  #critheraReaderRoot .basic-shape-preview.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  #critheraReaderRoot .elements-note {
    margin-top: 16px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.02);
    color: var(--muted-2);
    font-size: 8.8px;
    line-height: 1.5;
  }

  #critheraReaderRoot .rail-item#elementsRailBtn.active {
    background: rgba(255,255,255,.08);
    color: var(--text);
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .basic-shape-card {
      min-height: 96px;
    }
  }

/* crithera-add-text-step */
#critheraReaderRoot .text-insert-intro {
    margin-bottom: 16px;
  }

  #critheraReaderRoot .text-insert-intro strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
  }

  #critheraReaderRoot .text-insert-intro span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.5;
  }

  #critheraReaderRoot .text-insert-list {
    display: grid;
    gap: 8px;
  }

  #critheraReaderRoot .text-insert-card {
    width: 100%;
    min-height: 76px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.022);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    cursor: pointer;
    transition:
      background-color .14s ease,
      border-color .14s ease,
      transform .14s ease;
  }

  #critheraReaderRoot .text-insert-card:hover {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.065);
    transform: translateY(-1px);
  }

  #critheraReaderRoot .text-insert-sample {
    max-width: 100%;
    overflow: hidden;
    color: #f7f8f8;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #critheraReaderRoot .text-insert-card.title .text-insert-sample {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.035em;
  }

  #critheraReaderRoot .text-insert-card.subtitle .text-insert-sample {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.02em;
  }

  #critheraReaderRoot .text-insert-card.body .text-insert-sample {
    font-size: 12px;
    font-weight: 400;
  }

  #critheraReaderRoot .text-insert-label {
    margin-top: 7px;
    color: var(--muted-2);
    font-size: 8.5px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  #critheraReaderRoot .text-insert-note {
    margin-top: 15px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.018);
    color: var(--muted-2);
    font-size: 9px;
    line-height: 1.5;
  }

  #critheraReaderRoot .rail-item#textRailBtn.active {
    background: rgba(255,255,255,.08);
    color: var(--text);
  }

/* crithera-uploads-step */
#critheraReaderRoot .uploads-intro {
    margin-bottom: 13px;
  }

  #critheraReaderRoot .uploads-intro strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
  }

  #critheraReaderRoot .uploads-intro span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.5;
  }

  #critheraReaderRoot .uploads-send-button {
    width: 100%;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #f7f8f8;
    color: #08090a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: 650 10.5px/1 Inter, sans-serif;
    cursor: pointer;
  }

  #critheraReaderRoot .uploads-send-button:hover {
    background: #ffffff;
  }

  #critheraReaderRoot .uploads-send-button .ui-icon {
    width: 16px;
    height: 16px;
  }

  #critheraReaderRoot .uploads-empty {
    min-height: 164px;
    margin-top: 14px;
    padding: 20px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  #critheraReaderRoot .uploads-empty .ui-icon {
    width: 25px;
    height: 25px;
    margin-bottom: 9px;
  }

  #critheraReaderRoot .uploads-empty strong {
    color: var(--text);
    font-size: 10.5px;
    font-weight: 650;
  }

  #critheraReaderRoot .uploads-empty span {
    max-width: 190px;
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 8.8px;
    line-height: 1.45;
  }

  #critheraReaderRoot .uploads-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #critheraReaderRoot .upload-card {
    position: relative;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    overflow: hidden;
    cursor: pointer;
  }

  #critheraReaderRoot .upload-card:hover {
    border-color: rgba(255,255,255,.28);
  }

  #critheraReaderRoot .upload-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  #critheraReaderRoot .upload-card-name {
    position: absolute;
    right: 5px;
    bottom: 5px;
    left: 5px;
    min-height: 23px;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 6px;
    background: rgba(8,9,10,.76);
    color: #f7f8f8;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
  }

  #critheraReaderRoot .rail-item#uploadsRailBtn.active {
    background: rgba(255,255,255,.08);
    color: var(--text);
  }

/* crithera-image-source-choice-step */
#critheraReaderRoot .replace-image-section {
    margin: 14px 0 4px;
  }

  #critheraReaderRoot .replace-image-section h3 {
    margin: 0 0 9px;
    color: var(--text);
    font-size: 10.5px;
    font-weight: 650;
  }

  #critheraReaderRoot .replace-image-sources {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #critheraReaderRoot .replace-source-button {
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font: 600 9.5px/1 Inter, sans-serif;
    cursor: pointer;
    transition:
      border-color .14s ease,
      background-color .14s ease;
  }

  #critheraReaderRoot .replace-source-button:hover {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.07);
  }

  #critheraReaderRoot .replace-source-button .ui-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
  }

  #critheraReaderRoot .image-source-credit {
    min-width: 0;
    margin: -2px 0 12px;
    color: var(--muted);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    line-height: 1.35;
    text-decoration: none;
  }

  #critheraReaderRoot .image-source-credit:hover,
  #critheraReaderRoot .image-source-credit:focus-visible {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  #critheraReaderRoot .image-source-credit[hidden] {
    display: none !important;
  }

  #critheraReaderRoot .photos-panel-intro {
    margin-bottom: 13px;
  }

  #critheraReaderRoot .photos-panel-intro strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
  }

  #critheraReaderRoot .photos-panel-intro span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.5;
  }

  #critheraReaderRoot .photos-source-tabs {
    display: grid;
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  #critheraReaderRoot .photos-source-tab {
    min-width: 0;
    min-height: 34px;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.02);
    color: var(--muted);
    font: 600 8.5px/1 Inter, sans-serif;
  }

  #critheraReaderRoot .photos-source-tab.active {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.07);
    color: var(--text);
  }

  #critheraReaderRoot .photos-panel-empty {
    min-height: 178px;
    margin-top: 14px;
    padding: 20px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  #critheraReaderRoot .photos-panel-empty .ui-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 9px;
    color: var(--muted);
  }

  #critheraReaderRoot .photos-panel-empty strong {
    color: var(--text);
    font-size: 10.5px;
    font-weight: 650;
  }

  #critheraReaderRoot .photos-panel-empty span {
    max-width: 200px;
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 8.8px;
    line-height: 1.5;
  }

  #critheraReaderRoot .rail-item#photosRailBtn.active {
    background: rgba(255,255,255,.08);
    color: var(--text);
  }

/* crithera-canva-transformer-step */
#critheraReaderRoot
  .selection-box {
    box-sizing: border-box !important;
    border: 1.5px solid #00c4cc !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  #critheraReaderRoot
  .resize-handle {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1.5px solid #00c4cc !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    touch-action: none;
  }

  #critheraReaderRoot
  .resize-handle.corner {
    z-index: 4;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.nw {
    top: -5px !important;
    left: -5px !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.ne {
    top: -5px !important;
    right: -5px !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.se {
    right: -5px !important;
    bottom: -5px !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.sw {
    bottom: -5px !important;
    left: -5px !important;
  }

  #critheraReaderRoot
  .resize-handle.side {
    z-index: 5;
    top: calc(50% - 9px) !important;
    width: 5px !important;
    height: 18px !important;
    border-radius: 3px !important;
    cursor: ew-resize !important;
  }

  #critheraReaderRoot
  .resize-handle.side.ml {
    left: -3px !important;
  }

  #critheraReaderRoot
  .resize-handle.side.mr {
    right: -3px !important;
  }

  #critheraReaderRoot
  .resize-handle::after,
  #critheraReaderRoot
  .rotate-handle::after {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: inherit;
  }

  #critheraReaderRoot
  .rotate-line {
    display: none !important;
  }

  #critheraReaderRoot
  .rotate-handle {
    left: 50% !important;
    top: auto !important;
    bottom: -34px !important;
    z-index: 6 !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%0A%20%20%3Cpath%20d%3D%22M16%204.5C14.8%203.5%2013.5%203%2012%203C7%203%203%207%203%2012C3%2013.5%203.4%2014.9%204.1%2016.1L2%2017.5V21H5.5L7%2018.9C5.7%2017.1%205%2014.6%205%2012C5%208.1%208.1%205%2012%205C13.1%205%2014.1%205.3%2015%205.8%22%20fill%3D%22black%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M8%2019.5C9.2%2020.5%2010.5%2021%2012%2021C17%2021%2021%2017%2021%2012C21%2010.5%2020.6%209.1%2019.9%207.9L22%206.5V3H18.5L17%205.1C18.3%206.9%2019%209.4%2019%2012C19%2015.9%2015.9%2019%2012%2019C10.9%2019%209.9%2018.7%209%2018.2%22%20fill%3D%22black%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%0A%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 15px 15px !important;
    box-shadow:
      0 2px 5px rgba(0,0,0,.16) !important;
    transform: translateX(-50%) !important;
    cursor:
      url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%0A%20%20%3Cpath%20d%3D%22M16%204.5C14.8%203.5%2013.5%203%2012%203C7%203%203%207%203%2012C3%2013.5%203.4%2014.9%204.1%2016.1L2%2017.5V21H5.5L7%2018.9C5.7%2017.1%205%2014.6%205%2012C5%208.1%208.1%205%2012%205C13.1%205%2014.1%205.3%2015%205.8%22%20fill%3D%22black%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M8%2019.5C9.2%2020.5%2010.5%2021%2012%2021C17%2021%2021%2017%2021%2012C21%2010.5%2020.6%209.1%2019.9%207.9L22%206.5V3H18.5L17%205.1C18.3%206.9%2019%209.4%2019%2012C19%2015.9%2015.9%2019%2012%2019C10.9%2019%209.9%2018.7%209%2018.2%22%20fill%3D%22black%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%0A%3C%2Fsvg%3E") 12 12,
      grab !important;
  }

  #critheraReaderRoot
  .rotate-handle:active {
    cursor:
      url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%0A%20%20%3Cpath%20d%3D%22M16%204.5C14.8%203.5%2013.5%203%2012%203C7%203%203%207%203%2012C3%2013.5%203.4%2014.9%204.1%2016.1L2%2017.5V21H5.5L7%2018.9C5.7%2017.1%205%2014.6%205%2012C5%208.1%208.1%205%2012%205C13.1%205%2014.1%205.3%2015%205.8%22%20fill%3D%22black%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M8%2019.5C9.2%2020.5%2010.5%2021%2012%2021C17%2021%2021%2017%2021%2012C21%2010.5%2020.6%209.1%2019.9%207.9L22%206.5V3H18.5L17%205.1C18.3%206.9%2019%209.4%2019%2012C19%2015.9%2015.9%2019%2012%2019C10.9%2019%209.9%2018.7%209%2018.2%22%20fill%3D%22black%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%0A%3C%2Fsvg%3E") 12 12,
      grabbing !important;
  }

  #critheraReaderRoot
  .selection-box.is-resizing,
  #critheraReaderRoot
  .selection-box.is-rotating {
    opacity: 1 !important;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .resize-handle.corner {
      width: 13px !important;
      height: 13px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.nw {
      top: -7px !important;
      left: -7px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.ne {
      top: -7px !important;
      right: -7px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.se {
      right: -7px !important;
      bottom: -7px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.sw {
      bottom: -7px !important;
      left: -7px !important;
    }

    #critheraReaderRoot
    .resize-handle.side {
      top: calc(50% - 11px) !important;
      width: 7px !important;
      height: 22px !important;
      border-radius: 4px !important;
    }

    #critheraReaderRoot
    .resize-handle.side.ml {
      left: -4px !important;
    }

    #critheraReaderRoot
    .resize-handle.side.mr {
      right: -4px !important;
    }

    #critheraReaderRoot
    .rotate-handle {
      bottom: -40px !important;
      width: 26px !important;
      height: 26px !important;
      background-size: 17px 17px !important;
    }

    #critheraReaderRoot
    .resize-handle::after,
    #critheraReaderRoot
    .rotate-handle::after {
      inset: -11px;
    }
  }

/* crithera-canva-purple-transformer-step */
#critheraReaderRoot
  .selection-box {
    box-sizing: border-box !important;
    border: 1.5px solid #8b3dff !important;
    outline: none !important;
    box-shadow: none !important;
    pointer-events: none;
  }

  #critheraReaderRoot
  .resize-handle {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1.5px solid #8b3dff !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    touch-action: none;
  }

  #critheraReaderRoot
  .resize-handle.side {
    top: calc(50% - 8px) !important;
    width: 5px !important;
    height: 16px !important;
    border-radius: 3px !important;
    cursor: ew-resize !important;
  }

  #critheraReaderRoot
  .resize-handle.side.ml {
    left: -3.5px !important;
  }

  #critheraReaderRoot
  .resize-handle.side.mr {
    right: -3.5px !important;
  }

  #critheraReaderRoot
  .resize-handle.corner {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.nw {
    top: -5px !important;
    left: -5px !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.ne {
    top: -5px !important;
    right: -5px !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.se {
    right: -5px !important;
    bottom: -5px !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.sw {
    bottom: -5px !important;
    left: -5px !important;
  }

  #critheraReaderRoot
  .selection-box.text-transformer
  .resize-handle.corner {
    display: none !important;
  }

  #critheraReaderRoot
  .rotate-line {
    display: none !important;
  }

  #critheraReaderRoot
  .rotate-handle {
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    bottom: -36px !important;
    z-index: 6 !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow:
      0 2px 5px rgba(0,0,0,.10) !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #0f0f14;
    cursor: grab !important;
    pointer-events: auto !important;
    touch-action: none;
  }

  #critheraReaderRoot
  .rotate-handle:active {
    cursor: grabbing !important;
  }

  #critheraReaderRoot
  .rotate-handle svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: currentColor;
    pointer-events: none;
  }

  #critheraReaderRoot
  .resize-handle::after,
  #critheraReaderRoot
  .rotate-handle::after {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: inherit;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .resize-handle.side {
      top: calc(50% - 11px) !important;
      width: 7px !important;
      height: 22px !important;
      border-radius: 4px !important;
    }

    #critheraReaderRoot
    .resize-handle.side.ml {
      left: -4px !important;
    }

    #critheraReaderRoot
    .resize-handle.side.mr {
      right: -4px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner {
      width: 13px !important;
      height: 13px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.nw {
      top: -7px !important;
      left: -7px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.ne {
      top: -7px !important;
      right: -7px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.se {
      right: -7px !important;
      bottom: -7px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.sw {
      bottom: -7px !important;
      left: -7px !important;
    }

    #critheraReaderRoot
    .rotate-handle {
      bottom: -42px !important;
      width: 28px !important;
      height: 28px !important;
    }

    #critheraReaderRoot
    .rotate-handle svg {
      width: 16px;
      height: 16px;
    }

    #critheraReaderRoot
    .resize-handle::after,
    #critheraReaderRoot
    .rotate-handle::after {
      inset: -11px;
    }
  }

/* crithera-transformer-official-step */
#critheraReaderRoot {
    --transformer-accent: #8b3dff;
    --transformer-handle-line: #aeb3bd;
  }

  #critheraReaderRoot
  .selection-box {
    box-sizing: border-box !important;
    border: 2px solid var(--transformer-accent) !important;
    outline: none !important;
    box-shadow: none !important;
    pointer-events: none;
  }

  #critheraReaderRoot
  .resize-handle {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid var(--transformer-handle-line) !important;
    box-shadow:
      0 1px 2px rgba(15,15,20,.10) !important;
    pointer-events: auto !important;
    touch-action: none;
  }

  #critheraReaderRoot
  .resize-handle.corner {
    z-index: 5;
    width: 13px !important;
    height: 13px !important;
    border-radius: 50% !important;
    display: block !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.nw {
    top: -7px !important;
    left: -7px !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.ne {
    top: -7px !important;
    right: -7px !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.se {
    right: -7px !important;
    bottom: -7px !important;
  }

  #critheraReaderRoot
  .resize-handle.corner.sw {
    bottom: -7px !important;
    left: -7px !important;
  }

  #critheraReaderRoot
  .resize-handle.side {
    z-index: 6;
    display: block !important;
  }

  #critheraReaderRoot
  .resize-handle.side.ml,
  #critheraReaderRoot
  .resize-handle.side.mr {
    top: calc(50% - 10px) !important;
    width: 7px !important;
    height: 20px !important;
    border-radius: 4px !important;
    cursor: ew-resize !important;
  }

  #critheraReaderRoot
  .resize-handle.side.ml {
    left: -4px !important;
  }

  #critheraReaderRoot
  .resize-handle.side.mr {
    right: -4px !important;
  }

  #critheraReaderRoot
  .resize-handle.side.mt,
  #critheraReaderRoot
  .resize-handle.side.mb {
    left: calc(50% - 10px) !important;
    width: 20px !important;
    height: 7px !important;
    border-radius: 4px !important;
    cursor: ns-resize !important;
  }

  #critheraReaderRoot
  .resize-handle.side.mt {
    top: -4px !important;
    bottom: auto !important;
  }

  #critheraReaderRoot
  .resize-handle.side.mb {
    top: auto !important;
    bottom: -4px !important;
  }

  #critheraReaderRoot
  .selection-box.text-transformer
  .resize-handle.corner,
  #critheraReaderRoot
  .selection-box.graphic-transformer
  .resize-handle.corner,
  #critheraReaderRoot
  .selection-box.text-transformer
  .resize-handle.side,
  #critheraReaderRoot
  .selection-box.graphic-transformer
  .resize-handle.side {
    display: block !important;
  }

  #critheraReaderRoot
  .rotate-line {
    display: none !important;
  }

  #critheraReaderRoot
  .rotate-handle {
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    bottom: -47px !important;
    z-index: 8 !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #cfd3da !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow:
      0 2px 6px rgba(15,15,20,.16) !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #0f0f14;
    cursor: grab !important;
    pointer-events: auto !important;
    touch-action: none;
  }

  #critheraReaderRoot
  .rotate-handle:active {
    cursor: grabbing !important;
  }

  #critheraReaderRoot
  .rotate-handle svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    fill: #0f0f14 !important;
    pointer-events: none;
  }

  #critheraReaderRoot
  .resize-handle::after,
  #critheraReaderRoot
  .rotate-handle::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .selection-box {
      border-width: 2.25px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner {
      width: 16px !important;
      height: 16px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.nw {
      top: -9px !important;
      left: -9px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.ne {
      top: -9px !important;
      right: -9px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.se {
      right: -9px !important;
      bottom: -9px !important;
    }

    #critheraReaderRoot
    .resize-handle.corner.sw {
      bottom: -9px !important;
      left: -9px !important;
    }

    #critheraReaderRoot
    .resize-handle.side.ml,
    #critheraReaderRoot
    .resize-handle.side.mr {
      top: calc(50% - 13px) !important;
      width: 9px !important;
      height: 26px !important;
      border-radius: 5px !important;
    }

    #critheraReaderRoot
    .resize-handle.side.ml {
      left: -5px !important;
    }

    #critheraReaderRoot
    .resize-handle.side.mr {
      right: -5px !important;
    }

    #critheraReaderRoot
    .resize-handle.side.mt,
    #critheraReaderRoot
    .resize-handle.side.mb {
      left: calc(50% - 13px) !important;
      width: 26px !important;
      height: 9px !important;
      border-radius: 5px !important;
    }

    #critheraReaderRoot
    .resize-handle.side.mt {
      top: -5px !important;
      bottom: auto !important;
    }

    #critheraReaderRoot
    .resize-handle.side.mb {
      top: auto !important;
      bottom: -5px !important;
    }

    #critheraReaderRoot
    .rotate-handle {
      bottom: -55px !important;
      width: 38px !important;
      height: 38px !important;
    }

    #critheraReaderRoot
    .rotate-handle svg {
      width: 24px !important;
      height: 24px !important;
    }

    #critheraReaderRoot
    .resize-handle::after,
    #critheraReaderRoot
    .rotate-handle::after {
      inset: -11px;
    }
  }

/* crithera-transformer-bottom-handle-fix */
#critheraReaderRoot
  .selection-box
  .resize-handle.side.mt {
    top: -4px !important;
    bottom: auto !important;
  }

  #critheraReaderRoot
  .selection-box
  .resize-handle.side.mb {
    top: auto !important;
    bottom: -4px !important;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .selection-box
    .resize-handle.side.mt {
      top: -5px !important;
      bottom: auto !important;
    }

    #critheraReaderRoot
    .selection-box
    .resize-handle.side.mb {
      top: auto !important;
      bottom: -5px !important;
    }
  }

/* crithera-workspace-rulers-step */
#critheraReaderRoot {
    --ruler-size: 30px;
    --ruler-bg: rgba(255,255,255,.985);
    --ruler-line: #dfe2e7;
    --ruler-tick: #b5bac3;
    --ruler-text: #777d87;
  }

  #critheraReaderRoot
  .workspace-rulers {
    position: absolute;
    inset: 0 0 var(--pages-h) 0;
    z-index: 70;
    pointer-events: none;
    overflow: hidden;
  }

  #critheraReaderRoot
  .workspace-ruler-corner {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: var(--ruler-size);
    height: var(--ruler-size);
    box-sizing: border-box;
    background: var(--ruler-bg);
    border-right: 1px solid var(--ruler-line);
    border-bottom: 1px solid var(--ruler-line);
    box-shadow:
      1px 1px 0 rgba(255,255,255,.65);
  }

  #critheraReaderRoot
  .workspace-ruler {
    position: absolute;
    z-index: 2;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--ruler-bg);
    color: var(--ruler-text);
  }

  #critheraReaderRoot
  .workspace-ruler-top {
    top: 0;
    right: 0;
    left: var(--ruler-size);
    height: var(--ruler-size);
    border-bottom: 1px solid var(--ruler-line);
  }

  #critheraReaderRoot
  .workspace-ruler-left {
    top: var(--ruler-size);
    bottom: 0;
    left: 0;
    width: var(--ruler-size);
    border-right: 1px solid var(--ruler-line);
  }

  #critheraReaderRoot
  .workspace-ruler-track {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  #critheraReaderRoot
  .ruler-tick {
    position: absolute;
    display: block;
    background: var(--ruler-tick);
  }

  #critheraReaderRoot
  .workspace-ruler-top
  .ruler-tick {
    bottom: 0;
    width: 1px;
  }

  #critheraReaderRoot
  .workspace-ruler-left
  .ruler-tick {
    right: 0;
    height: 1px;
  }

  #critheraReaderRoot
  .workspace-ruler-top
  .ruler-tick.minor {
    height: 4px;
  }

  #critheraReaderRoot
  .workspace-ruler-top
  .ruler-tick.medium {
    height: 8px;
  }

  #critheraReaderRoot
  .workspace-ruler-top
  .ruler-tick.major {
    height: 12px;
  }

  #critheraReaderRoot
  .workspace-ruler-left
  .ruler-tick.minor {
    width: 4px;
  }

  #critheraReaderRoot
  .workspace-ruler-left
  .ruler-tick.medium {
    width: 8px;
  }

  #critheraReaderRoot
  .workspace-ruler-left
  .ruler-tick.major {
    width: 12px;
  }

  #critheraReaderRoot
  .ruler-number {
    position: absolute;
    color: var(--ruler-text);
    font-family: Inter, sans-serif;
    font-size: 8.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
  }

  #critheraReaderRoot
  .workspace-ruler-top
  .ruler-number {
    bottom: 13px;
    transform: translateX(-50%);
  }

  #critheraReaderRoot
  .workspace-ruler-left
  .ruler-number {
    left: 4px;
    transform:
      translateY(-50%)
      rotate(-90deg);
    transform-origin: left center;
  }

  #critheraReaderRoot
  .ruler-tick.zero {
    background: #8b3dff;
  }

  #critheraReaderRoot
  .ruler-number.zero {
    color: #8b3dff;
    font-weight: 650;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot {
      --ruler-size: 24px;
    }

    #critheraReaderRoot
    .ruler-number {
      font-size: 7px;
    }

    #critheraReaderRoot
    .workspace-ruler-top
    .ruler-number {
      bottom: 11px;
    }

    #critheraReaderRoot
    .workspace-ruler-left
    .ruler-number {
      left: 3px;
    }

    #critheraReaderRoot
    .workspace-ruler-top
    .ruler-tick.major {
      height: 10px;
    }

    #critheraReaderRoot
    .workspace-ruler-left
    .ruler-tick.major {
      width: 10px;
    }
  }

/* crithera-guides-margins-step */
#critheraReaderRoot {
    --guide-accent: #8b3dff;
  }

  #critheraReaderRoot
  .view-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  #critheraReaderRoot
  .view-toggle-button {
    min-width: 34px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font: 600 9.5px/1 Inter, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition:
      background-color .14s ease,
      border-color .14s ease,
      color .14s ease;
  }

  #critheraReaderRoot
  .view-toggle-button:hover {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.045);
    color: var(--text);
  }

  #critheraReaderRoot
  .view-toggle-button.active {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.09);
    color: var(--text);
  }

  #critheraReaderRoot
  .view-toggle-button .ui-icon {
    width: 15px;
    height: 15px;
  }

  #critheraReaderRoot
  .safe-margin-overlay {
    position: absolute;
    z-index: 2147470;
    box-sizing: border-box;
    border: 1.5px dashed rgba(91,96,105,.72);
    pointer-events: none;
  }

  #critheraReaderRoot
  .workspace-ruler-top,
  #critheraReaderRoot
  .workspace-ruler-left {
    pointer-events: auto;
    touch-action: none;
  }

  #critheraReaderRoot
  .workspace-ruler-top {
    cursor: ns-resize;
  }

  #critheraReaderRoot
  .workspace-ruler-left {
    cursor: ew-resize;
  }

  #critheraReaderRoot
  .workspace-guides-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }

  #critheraReaderRoot
  .workspace-guide {
    position: absolute;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--guide-accent);
    pointer-events: auto;
    touch-action: none;
  }

  #critheraReaderRoot
  .workspace-guide.vertical {
    top: var(--ruler-size);
    bottom: 0;
    width: 1px;
    cursor: ew-resize;
  }

  #critheraReaderRoot
  .workspace-guide.horizontal {
    right: 0;
    left: var(--ruler-size);
    height: 1px;
    cursor: ns-resize;
  }

  #critheraReaderRoot
  .workspace-guide::before {
    content: "";
    position: absolute;
    background: transparent;
  }

  #critheraReaderRoot
  .workspace-guide.vertical::before {
    top: 0;
    bottom: 0;
    left: -5px;
    width: 11px;
  }

  #critheraReaderRoot
  .workspace-guide.horizontal::before {
    right: 0;
    bottom: -5px;
    left: 0;
    height: 11px;
  }

  #critheraReaderRoot
  .workspace-guide.dragging {
    box-shadow:
      0 0 0 .35px rgba(139,61,255,.30);
  }

  #critheraReaderRoot
  .guide-coordinate {
    position: absolute;
    z-index: 3;
    min-width: 30px;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--guide-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 10px/1 Inter, sans-serif;
    white-space: nowrap;
    box-shadow:
      0 2px 5px rgba(42,22,77,.22);
    pointer-events: none;
  }

  #critheraReaderRoot
  .workspace-guide.vertical
  .guide-coordinate {
    top: 6px;
    left: 8px;
  }

  #critheraReaderRoot
  .workspace-guide.horizontal
  .guide-coordinate {
    top: 8px;
    left: 6px;
  }

  #critheraReaderRoot
  .workspace-guides-layer.hidden {
    display: none;
  }

  @media (max-width: 1180px) {
    #critheraReaderRoot
    .view-toggle-label {
      display: none;
    }

    #critheraReaderRoot
    .view-toggle-button {
      width: 34px;
      padding: 0;
    }
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .view-controls {
      gap: 2px;
    }

    #critheraReaderRoot
    .view-toggle-button {
      width: 31px;
      min-width: 31px;
      height: 31px;
    }

    #critheraReaderRoot
    .view-toggle-button .ui-icon {
      width: 14px;
      height: 14px;
    }

    #critheraReaderRoot
    .safe-margin-overlay {
      border-width: 2px;
    }

    #critheraReaderRoot
    .workspace-guide.vertical::before {
      left: -8px;
      width: 17px;
    }

    #critheraReaderRoot
    .workspace-guide.horizontal::before {
      bottom: -8px;
      height: 17px;
    }

    #critheraReaderRoot
    .guide-coordinate {
      min-height: 22px;
      padding: 0 7px;
      font-size: 10px;
    }
  }

/* crithera-smart-guides-step */
#critheraReaderRoot
  .smart-alignment-guide {
    position: absolute;
    z-index: 2147475;
    display: none;
    background: #d13cd1;
    pointer-events: none;
  }

  #critheraReaderRoot
  .smart-alignment-guide.visible {
    display: block;
  }

  #critheraReaderRoot
  .smart-alignment-guide.vertical {
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(
      --smart-guide-thickness,
      1.5px
    );
    transform: translateX(-50%);
  }

  #critheraReaderRoot
  .smart-alignment-guide.horizontal {
    right: 0;
    left: 0;
    top: 50%;
    height: var(
      --smart-guide-thickness,
      1.5px
    );
    transform: translateY(-50%);
  }

/* crithera-canva-text-toolbar-step */
#critheraReaderRoot {
    --context-h: 60px;
    --toolbar-accent: #111214;
    --toolbar-bg: #ffffff;
    --toolbar-line: #e3e3eb;
    --toolbar-hover: #f4f4f7;
    --toolbar-active: #eceef1;
    --toolbar-text: #0f0f14;
    --toolbar-muted: #656872;
  }

  #critheraReaderRoot .contextbar.is-text-style {
    position: relative;
    padding: 7px 10px;
    overflow: hidden;
    border-bottom-color: #dfe2e7;
    background: #eceff3;
  }

  #critheraReaderRoot .canva-text-toolbar {
    width: max-content;
    max-width: 100%;
    height: 46px;
    margin: 0 auto;
    padding: 5px 9px;
    border: 1px solid var(--toolbar-line);
    border-radius: 23px;
    background: var(--toolbar-bg);
    color: var(--toolbar-text);
    box-shadow:
      0 5px 16px rgba(24,28,36,.08),
      0 1px 3px rgba(24,28,36,.05);
    display: flex;
    align-items: center;
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  #critheraReaderRoot .canva-text-toolbar::-webkit-scrollbar {
    display: none;
  }

  #critheraReaderRoot .canva-toolbar-button,
  #critheraReaderRoot .canva-toolbar-label-button,
  #critheraReaderRoot .canva-font-button {
    flex: 0 0 auto;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--toolbar-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
      background-color .14s ease,
      color .14s ease;
  }

  #critheraReaderRoot .canva-toolbar-button {
    width: 36px;
    padding: 0;
  }

  #critheraReaderRoot .canva-toolbar-label-button {
    width: auto;
    padding: 0 9px;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
  }

  #critheraReaderRoot .canva-font-button {
    width: 142px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--toolbar-line);
    border-radius: 12px;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    font-weight: 550;
  }

  #critheraReaderRoot .canva-font-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #critheraReaderRoot .canva-toolbar-button:hover,
  #critheraReaderRoot .canva-toolbar-label-button:hover,
  #critheraReaderRoot .canva-font-button:hover {
    background: var(--toolbar-hover);
  }

  #critheraReaderRoot .canva-toolbar-button.active,
  #critheraReaderRoot .canva-toolbar-label-button.active,
  #critheraReaderRoot .canva-font-button.active {
    background: var(--toolbar-active);
    color: var(--toolbar-accent);
  }

  #critheraReaderRoot .canva-toolbar-button:disabled,
  #critheraReaderRoot .canva-toolbar-label-button:disabled {
    opacity: .38;
    cursor: default;
  }

  #critheraReaderRoot .canva-toolbar-button svg,
  #critheraReaderRoot .canva-toolbar-label-button svg,
  #critheraReaderRoot .canva-font-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: block;
  }

  #critheraReaderRoot .toolbar-chevron {
    width: 14px !important;
    height: 14px !important;
    color: var(--toolbar-muted);
  }

  #critheraReaderRoot .canva-toolbar-divider {
    width: 1px;
    height: 24px;
    margin: 0 4px;
    flex: 0 0 auto;
    background: var(--toolbar-line);
  }

  #critheraReaderRoot .canva-size-control {
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid var(--toolbar-line);
    border-radius: 12px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
  }

  #critheraReaderRoot .canva-size-control button {
    width: 31px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--toolbar-text);
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot .canva-size-control button:hover {
    background: var(--toolbar-hover);
  }

  #critheraReaderRoot .canva-size-control button svg {
    width: 16px;
    height: 16px;
  }

  #critheraReaderRoot .canva-size-control input {
    width: 49px;
    height: 100%;
    padding: 0 3px;
    border: 0;
    border-right: 1px solid var(--toolbar-line);
    border-left: 1px solid var(--toolbar-line);
    outline: 0;
    background: #ffffff;
    color: var(--toolbar-text);
    text-align: center;
    font: 550 12px/1 Inter, sans-serif;
    appearance: textfield;
  }

  #critheraReaderRoot .canva-size-control input::-webkit-outer-spin-button,
  #critheraReaderRoot .canva-size-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
  }

  #critheraReaderRoot .canva-color-button {
    position: relative;
  }

  #critheraReaderRoot .canva-color-indicator {
    position: absolute;
    right: 10px;
    bottom: 5px;
    left: 10px;
    height: 3px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15,15,20,.08);
    pointer-events: none;
  }

  #critheraReaderRoot .canva-edit-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
  }

  #critheraReaderRoot .canva-edit-action {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--toolbar-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--toolbar-text);
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
  }

  #critheraReaderRoot .canva-edit-action.primary {
    border-color: #0f0f14;
    background: #0f0f14;
    color: #ffffff;
  }

  #critheraReaderRoot .canva-toolbar-popover {
    position: fixed;
    z-index: 2147483640;
    width: 270px;
    padding: 15px;
    border: 1px solid var(--toolbar-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--toolbar-text);
    box-shadow:
      0 12px 34px rgba(20,24,32,.16),
      0 3px 10px rgba(20,24,32,.08);
  }

  #critheraReaderRoot .toolbar-popover-title {
    margin: 0 0 12px;
    color: var(--toolbar-text);
    font-size: 12px;
    font-weight: 700;
  }

  #critheraReaderRoot .toolbar-popover-section + .toolbar-popover-section {
    margin-top: 14px;
  }

  #critheraReaderRoot .toolbar-popover-label {
    display: block;
    margin-bottom: 8px;
    color: var(--toolbar-text);
    font-size: 11px;
    font-weight: 650;
  }

  #critheraReaderRoot .toolbar-slider-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 46px;
    align-items: center;
    gap: 10px;
  }

  #critheraReaderRoot .toolbar-slider {
    width: 100%;
    height: 4px;
    margin: 0;
    border-radius: 2px;
    outline: 0;
    background: #e3e3eb;
    appearance: none;
  }

  #critheraReaderRoot .toolbar-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border: 1px solid #c1c1c7;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    cursor: pointer;
    appearance: none;
  }

  #critheraReaderRoot .toolbar-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 1px solid #c1c1c7;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    cursor: pointer;
  }

  #critheraReaderRoot .toolbar-slider-value {
    height: 29px;
    border: 1px solid var(--toolbar-line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--toolbar-text);
    font-size: 11px;
    font-weight: 550;
  }

  #critheraReaderRoot .toolbar-popover-divider {
    height: 1px;
    margin: 14px 0;
    background: #eeeef5;
  }

  #critheraReaderRoot .toolbar-anchor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  #critheraReaderRoot .toolbar-anchor-copy {
    color: #555963;
    font-size: 11px;
    font-weight: 550;
    line-height: 1.35;
  }

  #critheraReaderRoot .toolbar-anchor-options,
  #critheraReaderRoot .toolbar-align-options {
    padding: 2px;
    border-radius: 8px;
    background: #f4f4f7;
    display: flex;
    gap: 2px;
  }

  #critheraReaderRoot .toolbar-anchor-button,
  #critheraReaderRoot .toolbar-align-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--toolbar-text);
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot .toolbar-anchor-button:hover,
  #critheraReaderRoot .toolbar-align-button:hover {
    background: #e8e8ef;
  }

  #critheraReaderRoot .toolbar-anchor-button.active,
  #critheraReaderRoot .toolbar-align-button.active {
    background: var(--toolbar-active);
    color: var(--toolbar-accent);
  }

  #critheraReaderRoot .toolbar-anchor-button svg,
  #critheraReaderRoot .toolbar-align-button svg {
    width: 17px;
    height: 17px;
  }

  #critheraReaderRoot .toolbar-effect-toggle,
  #critheraReaderRoot .toolbar-position-action {
    width: 100%;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--toolbar-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--toolbar-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
  }

  #critheraReaderRoot .toolbar-effect-toggle.active {
    border-color: rgba(139,61,255,.30);
    background: var(--toolbar-active);
    color: var(--toolbar-accent);
  }

  #critheraReaderRoot .toolbar-position-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  #critheraReaderRoot .toolbar-position-action:disabled {
    opacity: .4;
    cursor: default;
  }

  @media (max-width: 980px) {
    #critheraReaderRoot .canva-font-button {
      width: 122px;
    }

    #critheraReaderRoot .canva-toolbar-label-button {
      padding: 0 7px;
    }

    #critheraReaderRoot
    .canva-toolbar-label-button
    .toolbar-button-copy {
      display: none;
    }
  }

  @media (max-width: 760px) {
    #critheraReaderRoot {
      --context-h: 56px;
    }

    #critheraReaderRoot .contextbar.is-text-style {
      padding: 5px 6px;
    }

    #critheraReaderRoot .canva-text-toolbar {
      width: 100%;
      height: 46px;
      margin: 0;
      padding: 5px 7px;
      border-radius: 14px;
      justify-content: flex-start;
    }

    #critheraReaderRoot .canva-font-button {
      width: 112px;
    }

    #critheraReaderRoot .canva-toolbar-popover {
      right: 8px !important;
      left: 8px !important;
      width: auto !important;
      max-width: none !important;
    }
  }

/* crithera-position-popover-fix */
#critheraReaderRoot
  .toolbar-position-grid {
    width: 100%;
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #critheraReaderRoot
  .toolbar-position-action {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .toolbar-position-grid {
      grid-template-columns: 1fr;
    }

    #critheraReaderRoot
    .toolbar-position-action {
      min-height: 40px;
    }
  }

/* crithera-canva-color-picker-step */
#critheraReaderRoot
  .canva-color-picker-card {
    width: 100%;
    padding: 14px;
    border: 1px solid #e3e3eb;
    border-radius: 16px;
    background: #ffffff;
    color: #0f0f14;
    box-shadow:
      0 8px 24px rgba(0,0,0,.12);
    box-sizing: border-box;
  }

  #critheraReaderRoot
  .canva-color-mode-tabs {
    position: relative;
    display: flex;
    margin: -2px 0 14px;
    border-bottom: 1px solid #eeeef5;
  }

  #critheraReaderRoot
  .canva-color-mode-tab {
    position: relative;
    flex: 1;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64646e;
    font: 650 12px/1 Inter, sans-serif;
    cursor: pointer;
  }

  #critheraReaderRoot
  .canva-color-mode-tab.active {
    color: #0f0f14;
  }

  #critheraReaderRoot
  .canva-color-mode-tab.active::after {
    content: "";
    position: absolute;
    right: 10%;
    bottom: -1px;
    left: 10%;
    height: 3px;
    border-radius: 2px;
    background: #8b3dff;
  }

  #critheraReaderRoot
  .canva-color-mode-tab:disabled {
    opacity: .38;
    cursor: not-allowed;
  }

  #critheraReaderRoot
  .canva-color-matrix {
    height: 152px;
    border: 0;
    border-radius: 12px;
    box-shadow:
      inset 0 0 0 1px rgba(15,15,20,.08);
  }

  #critheraReaderRoot
  .color-sv-handle {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    box-shadow:
      0 1px 4px rgba(0,0,0,.42);
  }

  #critheraReaderRoot
  .canva-color-hue-wrap {
    margin-top: 13px;
  }

  #critheraReaderRoot
  .hue-slider {
    height: 14px;
    border-radius: 7px;
  }

  #critheraReaderRoot
  .hue-slider::-webkit-slider-thumb,
  #critheraReaderRoot
  .alpha-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    background: #ffffff;
    box-shadow:
      0 1px 4px rgba(0,0,0,.35),
      0 0 0 1px rgba(15,15,20,.20);
  }

  #critheraReaderRoot
  .hue-slider::-moz-range-thumb,
  #critheraReaderRoot
  .alpha-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    background: #ffffff;
    box-shadow:
      0 1px 4px rgba(0,0,0,.35);
  }

  #critheraReaderRoot
  .canva-color-alpha-row {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) 42px;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
  }

  #critheraReaderRoot
  .canva-color-alpha-row > span {
    color: #64646e;
    font-size: 9px;
    font-weight: 650;
  }

  #critheraReaderRoot
  .canva-color-alpha-row > strong {
    color: #0f0f14;
    text-align: right;
    font-size: 10px;
    font-weight: 650;
  }

  #critheraReaderRoot
  .alpha-slider {
    height: 12px;
    border-radius: 6px;
  }

  #critheraReaderRoot
  .canva-color-base-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
  }

  #critheraReaderRoot
  .canva-hex-field {
    min-width: 0;
    height: 40px;
    flex: 1;
    padding: 0 11px;
    border: 1px solid #e3e3eb;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #critheraReaderRoot
  .canva-hex-preview {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 50%;
    background: #ffffff;
  }

  #critheraReaderRoot
  .canva-hex-symbol {
    color: #6c7078;
    font-size: 12px;
  }

  #critheraReaderRoot
  .canva-hex-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f0f14;
    font: 650 12px/1 Inter, sans-serif;
    text-transform: uppercase;
  }

  #critheraReaderRoot
  .canva-eyedropper-button {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid #e3e3eb;
    border-radius: 8px;
    background: #ffffff;
    color: #0f0f14;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot
  .canva-eyedropper-button:hover {
    background: #f4f4f7;
  }

  #critheraReaderRoot
  .canva-eyedropper-button .ui-icon {
    width: 17px;
    height: 17px;
  }

  #critheraReaderRoot
  .canva-color-library {
    margin-top: 16px;
    padding-top: 2px;
    border-top: 1px solid #eeeef5;
  }

  #critheraReaderRoot
  .canva-color-picker-card
  .panel-section {
    margin-top: 14px;
  }

  #critheraReaderRoot
  .canva-color-picker-card
  .panel-section h3 {
    margin: 0 0 9px;
    color: #3e424a;
    font-size: 10px;
    font-weight: 650;
  }

  #critheraReaderRoot
  .canva-color-picker-card
  .color-grid {
    grid-template-columns:
      repeat(6, minmax(0,1fr));
    gap: 7px;
  }

  #critheraReaderRoot
  .canva-color-picker-card
  .color-swatch {
    border: 1px solid rgba(15,15,20,.14);
    border-radius: 7px;
  }

  #critheraReaderRoot
  .canva-color-picker-card
  .color-swatch.active {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 4px #8b3dff;
  }

  #critheraReaderRoot
  .gradient-settings {
    margin-bottom: 14px;
    padding: 11px;
    border: 1px solid #eeeef5;
    border-radius: 11px;
    background: #fafafd;
  }

  #critheraReaderRoot
  .gradient-preview {
    height: 48px;
    border: 1px solid rgba(15,15,20,.10);
    border-radius: 9px;
    background: linear-gradient(90deg,#000,#fff);
  }

  #critheraReaderRoot
  .gradient-stop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    color: #555963;
    font-size: 9px;
    font-weight: 650;
  }

  #critheraReaderRoot
  .gradient-reverse-button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #e3e3eb;
    border-radius: 7px;
    background: #ffffff;
    color: #3e424a;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot
  .gradient-reverse-button .ui-icon {
    width: 14px;
    height: 14px;
  }

  #critheraReaderRoot
  .gradient-stops {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
    margin-top: 8px;
  }

  #critheraReaderRoot
  .gradient-stop-button {
    min-width: 0;
    min-height: 38px;
    padding: 5px 8px;
    border: 1px solid #e3e3eb;
    border-radius: 8px;
    background: #ffffff;
    color: #3e424a;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
  }

  #critheraReaderRoot
  .gradient-stop-button.active {
    border-color: #8b3dff;
    box-shadow:
      0 0 0 1px rgba(139,61,255,.18);
  }

  #critheraReaderRoot
  .gradient-stop-color {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border: 1px solid rgba(15,15,20,.12);
    border-radius: 6px;
  }

  #critheraReaderRoot
  .gradient-stop-copy {
    min-width: 0;
    overflow: hidden;
    font-size: 9px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #critheraReaderRoot
  .gradient-angle-row {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) 38px;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
  }

  #critheraReaderRoot
  .gradient-angle-row label {
    color: #555963;
    font-size: 9px;
    font-weight: 650;
  }

  #critheraReaderRoot
  .gradient-angle-row span {
    color: #0f0f14;
    text-align: right;
    font-size: 9px;
    font-weight: 650;
  }

  #critheraReaderRoot
  .gradient-angle-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e3e3eb;
    appearance: none;
  }

  #critheraReaderRoot
  .gradient-angle-slider::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    border: 1px solid #c1c1c7;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
      0 1px 3px rgba(0,0,0,.14);
    appearance: none;
  }

  #critheraReaderRoot
  .gradient-angle-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 1px solid #c1c1c7;
    border-radius: 50%;
    background: #ffffff;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .canva-color-picker-card {
      padding: 13px;
      border-radius: 14px;
    }

    #critheraReaderRoot
    .canva-color-matrix {
      height: 170px;
    }
  }

/* crithera-complete-color-browser-step */
#critheraReaderRoot
  #panelViewColors.active {
    margin: -15px;
    padding: 0;
    min-height: calc(100% + 30px);
    background: #ffffff;
    color: #0f0f14;
  }

  #critheraReaderRoot
  #backgroundColorsPane {
    min-height: 100%;
    background: #ffffff;
  }

  #critheraReaderRoot
  .canva-color-browser {
    min-height: 100%;
    padding: 15px 16px 22px;
    box-sizing: border-box;
    background: #ffffff;
    color: #0f0f14;
  }

  #critheraReaderRoot
  .color-search-wrap {
    position: relative;
  }

  #critheraReaderRoot
  .color-search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #6b6b74;
    transform: translateY(-50%);
    pointer-events: none;
  }

  #critheraReaderRoot
  .color-search-input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 36px;
    border: 1px solid #e3e3eb;
    border-radius: 8px;
    outline: 0;
    background: #ffffff;
    color: #0f0f14;
    font: 500 12px/1 Inter, sans-serif;
  }

  #critheraReaderRoot
  .color-search-input:focus {
    border-color: #8b3dff;
    box-shadow: 0 0 0 2px rgba(139,61,255,.10);
  }

  #critheraReaderRoot
  .color-browser-section {
    margin-top: 21px;
  }

  #critheraReaderRoot
  .color-browser-title {
    margin: 0 0 12px;
    color: #0f0f14;
    font-size: 13px;
    font-weight: 700;
  }

  #critheraReaderRoot
  .color-browser-subtitle {
    margin: 0 0 10px;
    color: #666a73;
    font-size: 11px;
    font-weight: 550;
  }

  #critheraReaderRoot
  .color-special-actions {
    display: flex;
    align-items: center;
    gap: 11px;
  }

  #critheraReaderRoot
  .color-special-button,
  #critheraReaderRoot
  .current-color-button {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid #e3e3eb;
    border-radius: 50%;
    background: #ffffff;
    color: #0f0f14;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition:
      transform .12s ease,
      background-color .12s ease;
  }

  #critheraReaderRoot
  .color-special-button:hover,
  #critheraReaderRoot
  .current-color-button:hover {
    transform: scale(1.06);
    background: #f4f4f7;
  }

  #critheraReaderRoot
  .color-special-button .ui-icon {
    width: 17px;
    height: 17px;
  }

  #critheraReaderRoot
  .color-add-button {
    border: 0;
    background:
      linear-gradient(
        45deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00d084,
        #00c4cc,
        #4b4bff,
        #8b3dff,
        #ff3d8d
      );
    color: #ffffff;
  }

  #critheraReaderRoot
  .color-add-button span {
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,.28);
  }

  #critheraReaderRoot
  .current-color-button {
    padding: 3px;
    border: 2px solid #8b3dff;
  }

  #critheraReaderRoot
  .current-color-indicator {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000000;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  }

  #critheraReaderRoot
  .color-circle-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
  }

  #critheraReaderRoot
  .color-circle-swatch {
    aspect-ratio: 1;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(15,15,20,.10);
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition:
      transform .12s ease,
      box-shadow .12s ease;
  }

  #critheraReaderRoot
  .color-circle-swatch:hover {
    transform: scale(1.10);
  }

  #critheraReaderRoot
  .color-circle-swatch.active {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 4px #8b3dff;
  }

  #critheraReaderRoot
  .color-empty-message {
    margin: 0;
    color: #848892;
    font-size: 10px;
    line-height: 1.5;
  }

  #critheraReaderRoot
  .advanced-color-picker {
    min-height: 100%;
    padding: 14px 16px 22px;
    box-sizing: border-box;
    background: #ffffff;
    color: #0f0f14;
  }

  #critheraReaderRoot
  .advanced-color-picker-head {
    min-height: 38px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #critheraReaderRoot
  .advanced-color-picker-head strong {
    color: #0f0f14;
    font-size: 13px;
    font-weight: 700;
  }

  #critheraReaderRoot
  .advanced-color-back {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #555963;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot
  .advanced-color-back:hover {
    background: #f4f4f7;
    color: #0f0f14;
  }

  #critheraReaderRoot
  .advanced-color-back .ui-icon {
    width: 18px;
    height: 18px;
  }

  #critheraReaderRoot
  .advanced-color-picker
  .canva-color-picker-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #critheraReaderRoot
  .advanced-color-picker
  .canva-color-library {
    display: none;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    #panelViewColors.active {
      margin: -12px;
      min-height: calc(100% + 24px);
    }

    #critheraReaderRoot
    .canva-color-browser,
    #critheraReaderRoot
    .advanced-color-picker {
      padding: 13px 14px 22px;
    }
  }

/* crithera-color-panel-canva-exact-step */
#critheraReaderRoot
  .sidepanel.color-panel-open {
    width: 340px;
    flex-basis: 340px;
    border-right: 1px solid #e3e3eb;
    background: #ffffff;
    color: #0f0f14;
  }

  #critheraReaderRoot
  .sidepanel.color-panel-open
  .panel-head {
    height: 52px;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 0;
    background: #ffffff;
    color: #0f0f14;
  }

  #critheraReaderRoot
  .sidepanel.color-panel-open
  .panel-title-group strong {
    margin: 0;
    color: #0f0f14;
    font-size: 14px;
    font-weight: 700;
  }

  #critheraReaderRoot
  .sidepanel.color-panel-open
  .panel-title-group small {
    display: none;
  }

  #critheraReaderRoot
  .panel-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  #critheraReaderRoot
  .panel-color-list-button,
  #critheraReaderRoot
  .sidepanel.color-panel-open
  .panel-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #292b31;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot
  .panel-color-list-button:hover,
  #critheraReaderRoot
  .sidepanel.color-panel-open
  .panel-close:hover {
    background: #f4f4f7;
    color: #0f0f14;
  }

  #critheraReaderRoot
  .panel-color-list-button .ui-icon,
  #critheraReaderRoot
  .sidepanel.color-panel-open
  .panel-close .ui-icon {
    width: 20px;
    height: 20px;
  }

  #critheraReaderRoot
  .sidepanel.color-panel-open
  .panel-content {
    padding: 0;
    background: #ffffff;
    color: #0f0f14;
  }

  #critheraReaderRoot
  .sidepanel.color-panel-open
  #panelViewColors.active {
    min-height: 100%;
    margin: 0;
    background: #ffffff;
  }

  #critheraReaderRoot
  .sidepanel.color-panel-open
  .background-tabs {
    height: 50px;
    padding: 0;
    border-bottom: 1px solid #eeeef5;
    background: #ffffff;
    display: flex;
  }

  #critheraReaderRoot
  .sidepanel.color-panel-open
  .background-tab {
    position: relative;
    flex: 1;
    height: 50px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #666a73;
    font-size: 12px;
    font-weight: 600;
  }

  #critheraReaderRoot
  .sidepanel.color-panel-open
  .background-tab.active {
    background: transparent;
    color: #0f0f14;
    box-shadow: none;
  }

  #critheraReaderRoot
  .sidepanel.color-panel-open
  .background-tab.active::after {
    content: "";
    position: absolute;
    right: 17px;
    bottom: 0;
    left: 17px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #8b3dff;
  }

  #critheraReaderRoot
  .canva-color-browser {
    min-height: 100%;
    padding: 6px 17px 28px;
  }

  #critheraReaderRoot
  .color-search-input {
    height: 40px;
    border-color: #dfe1e6;
    border-radius: 8px;
    font-size: 12px;
  }

  #critheraReaderRoot
  .color-browser-section {
    margin-top: 20px;
  }

  #critheraReaderRoot
  .color-target-section {
    margin-top: 18px;
  }

  #critheraReaderRoot
  .color-target-heading {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #critheraReaderRoot
  .color-target-icon {
    width: 23px;
    height: 23px;
    color: #111318;
  }

  #critheraReaderRoot
  .color-browser-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
  }

  #critheraReaderRoot
  .color-browser-subtitle {
    margin-bottom: 10px;
    color: #6a6e77;
    font-size: 11px;
    font-weight: 500;
  }

  #critheraReaderRoot
  .color-special-actions {
    gap: 10px;
  }

  #critheraReaderRoot
  .color-special-button,
  #critheraReaderRoot
  .current-color-button {
    width: 40px;
    height: 40px;
  }

  #critheraReaderRoot
  .color-add-button {
    position: relative;
    padding: 4px;
    background:
      conic-gradient(
        from 0deg,
        #ff3b30,
        #ff9500,
        #ffcc00,
        #34c759,
        #00c7be,
        #007aff,
        #5856d6,
        #af52de,
        #ff2d55,
        #ff3b30
      );
  }

  #critheraReaderRoot
  .color-add-button span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #111318;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 400;
    text-shadow: none;
  }

  #critheraReaderRoot
  .current-color-button {
    border-width: 2px;
  }

  #critheraReaderRoot
  .color-circle-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
  }

  #critheraReaderRoot
  .color-circle-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  #critheraReaderRoot
  .brand-palette-section {
    margin-top: 21px;
  }

  #critheraReaderRoot
  .brand-palette-head {
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  #critheraReaderRoot
  .brand-palette-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #0f0f14;
  }

  #critheraReaderRoot
  .brand-palette-name strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #critheraReaderRoot
  .brand-palette-icon {
    width: 22px;
    height: 22px;
  }

  #critheraReaderRoot
  .brand-palette-chevron {
    width: 15px;
    height: 15px;
  }

  #critheraReaderRoot
  .brand-palette-edit {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f0f14;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }

  #critheraReaderRoot
  .brand-palette-edit:hover {
    text-decoration: underline;
  }

  #critheraReaderRoot
  .saved-brand-palettes {
    padding-bottom: 6px;
  }

  #critheraReaderRoot
  .saved-brand-palette {
    margin-top: 22px;
  }

  #critheraReaderRoot
  .saved-brand-palette-title {
    margin: 0 0 10px;
    color: #777b84;
    font-size: 10px;
    font-weight: 500;
  }

  #critheraReaderRoot
  .advanced-color-picker {
    padding-top: 8px;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .sidepanel.color-panel-open {
      width: auto;
      max-width: none;
      flex-basis: auto;
    }

    #critheraReaderRoot
    .canva-color-browser {
      padding-right: 17px;
      padding-left: 17px;
    }
  }

/* crithera-dynamic-color-panel-step */
#critheraReaderRoot
  .color-wheel-button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot
  .color-wheel-ring {
    width: 40px;
    height: 40px;
    padding: 4px;
    border-radius: 50%;
    box-sizing: border-box;
    background:
      conic-gradient(
        from -40deg,
        #ff2d55,
        #ff9500,
        #ffcc00,
        #34c759,
        #00c7be,
        #007aff,
        #5856d6,
        #af52de,
        #ff2d55
      );
    display: grid;
    place-items: center;
    box-shadow:
      0 0 0 1px rgba(15,15,20,.06);
  }

  #critheraReaderRoot
  .color-wheel-button:hover
  .color-wheel-ring,
  #critheraReaderRoot
  .gradient-add-stop-button:hover
  .color-wheel-ring {
    transform: scale(1.04);
  }

  #critheraReaderRoot
  .color-wheel-center {
    width: 30px;
    height: 30px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    color: #111318;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    font: 500 20px/1 Inter, sans-serif;
    box-shadow:
      0 0 0 1px rgba(15,15,20,.10);
  }

  #critheraReaderRoot
  .color-special-button {
    width: 42px;
    height: 42px;
  }

  #critheraReaderRoot
  .color-special-button .ui-icon {
    width: 20px;
    height: 20px;
  }

  #critheraReaderRoot
  .current-color-button {
    width: 42px;
    height: 42px;
    padding: 3px;
    border: 2px solid #8b3dff;
  }

  #critheraReaderRoot
  .dynamic-section-head {
    min-height: 27px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  #critheraReaderRoot
  .dynamic-section-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f0f14;
  }

  #critheraReaderRoot
  .dynamic-section-title strong {
    font-size: 12px;
    font-weight: 700;
  }

  #critheraReaderRoot
  .dynamic-section-icon {
    width: 21px;
    height: 21px;
  }

  #critheraReaderRoot
  .dynamic-section-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f0f14;
    font: 650 10px/1 Inter, sans-serif;
    cursor: pointer;
  }

  #critheraReaderRoot
  .dynamic-section-link:hover {
    text-decoration: underline;
  }

  #critheraReaderRoot
  .add-brand-colors-button {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    padding: 0 14px;
    border: 1px solid #dfe1e6;
    border-radius: 9px;
    background: #ffffff;
    color: #111318;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
  }

  #critheraReaderRoot
  .add-brand-colors-button:hover {
    background: #f6f6f8;
  }

  #critheraReaderRoot
  .add-brand-colors-button span {
    font-size: 23px;
    font-weight: 350;
  }

  #critheraReaderRoot
  .add-brand-colors-button strong {
    font-size: 11px;
    font-weight: 650;
  }

  #critheraReaderRoot
  .photo-color-grid
  .color-circle-swatch {
    overflow: hidden;
  }

  #critheraReaderRoot
  .gradient-preset-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    gap: 10px;
  }

  #critheraReaderRoot
  .gradient-preset-button {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(15,15,20,.10);
    border-radius: 50%;
    cursor: pointer;
    transition:
      transform .12s ease,
      box-shadow .12s ease;
  }

  #critheraReaderRoot
  .gradient-preset-button:hover {
    transform: scale(1.10);
  }

  #critheraReaderRoot
  .gradient-preset-button.active {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 4px #8b3dff;
  }

  #critheraReaderRoot
  .advanced-color-picker {
    padding: 12px 8px 22px;
  }

  #critheraReaderRoot
  .advanced-color-actions {
    min-height: 48px;
    padding: 0 4px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
  }

  #critheraReaderRoot
  .advanced-close-button {
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #e3e3eb;
    border-radius: 50%;
    background: #ffffff;
    color: #4e525a;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot
  .advanced-close-button:hover {
    background: #f4f4f7;
  }

  #critheraReaderRoot
  .canva-gradient-editor-card {
    padding: 10px 16px 16px;
    border: 1px solid #ececf2;
    border-radius: 15px;
    background: #ffffff;
    box-shadow:
      0 3px 14px rgba(20,24,32,.08);
  }

  #critheraReaderRoot
  .canva-color-mode-tabs {
    margin: -2px -2px 14px;
  }

  #critheraReaderRoot
  .gradient-settings {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #critheraReaderRoot
  .gradient-settings h4,
  #critheraReaderRoot
  .gradient-style-head h4 {
    margin: 0;
    color: #31343a;
    font-size: 11px;
    font-weight: 700;
  }

  #critheraReaderRoot
  .gradient-stop-line {
    margin-top: 11px;
    display: flex;
    align-items: center;
    gap: 9px;
  }

  #critheraReaderRoot
  .gradient-stops {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
  }

  #critheraReaderRoot
  .gradient-stop-button {
    position: relative;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot
  .gradient-stop-button.active {
    border-color: #8b3dff;
    box-shadow: none;
  }

  #critheraReaderRoot
  .gradient-stop-color {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(15,15,20,.10);
    border-radius: 50%;
  }

  #critheraReaderRoot
  .gradient-stop-copy {
    display: none;
  }

  #critheraReaderRoot
  .gradient-stop-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 17px;
    height: 17px;
    padding: 0;
    border: 1px solid #e3e3eb;
    border-radius: 50%;
    background: #ffffff;
    color: #34373d;
    display: none;
    place-items: center;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
  }

  #critheraReaderRoot
  .gradient-stop-button:hover
  .gradient-stop-remove,
  #critheraReaderRoot
  .gradient-stop-button.active
  .gradient-stop-remove {
    display: grid;
  }

  #critheraReaderRoot
  .gradient-add-stop-button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  #critheraReaderRoot
  .gradient-style-head {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #critheraReaderRoot
  .gradient-style-options {
    margin-top: 9px;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px;
  }

  #critheraReaderRoot
  .gradient-style-button {
    height: 42px;
    padding: 0;
    border: 1px solid #dfe1e6;
    border-radius: 8px;
    cursor: pointer;
  }

  #critheraReaderRoot
  .gradient-style-button.active {
    border-color: #8b3dff;
    box-shadow:
      0 0 0 1px #8b3dff;
  }

  #critheraReaderRoot
  .gradient-angle-row {
    margin-top: 13px;
  }

  #critheraReaderRoot
  .solid-picker-controls {
    margin-top: 13px;
  }

  #critheraReaderRoot
  .gradient-settings:not([hidden])
  + .solid-picker-controls {
    padding-top: 14px;
    border-top: 1px solid #eeeef5;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .gradient-preset-grid,
    #critheraReaderRoot
    .color-circle-grid {
      grid-template-columns: repeat(7,minmax(0,1fr));
    }
  }

/* crithera-color-panel-sync-step */
#critheraReaderRoot
  .color-target-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    color: #111318;
    display: grid;
    place-items: center;
  }

  #critheraReaderRoot
  .color-target-icon
  .ui-icon {
    width: 23px;
    height: 23px;
  }

  #critheraReaderRoot
  .brand-palette-section
  .dynamic-section-icon {
    width: 22px;
    height: 22px;
  }

/* crithera-mobile-clean-drawer-step */
@media (max-width: 760px) {
    html,
    body {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      overflow: hidden !important;
      overscroll-behavior: none;
      background: #f1f2f6;
    }

    #critheraReaderRoot {
      --mobile-topbar-h:
        calc(
          50px +
          env(safe-area-inset-top)
        );
      --mobile-context-h: 52px;
      --mobile-nav-h:
        calc(
          70px +
          env(safe-area-inset-bottom)
        );
      --mobile-drawer-height:
        min(45dvh, 340px);
      --ruler-size: 0px;

      position: fixed;
      inset: 0;
      display: grid !important;
      grid-template-columns:
        minmax(0, 1fr);
      grid-template-rows:
        var(--mobile-topbar-h)
        auto
        minmax(0, 1fr);
      width: 100%;
      height:
        var(
          --mobile-app-height,
          100dvh
        );
      max-height:
        var(
          --mobile-app-height,
          100dvh
        );
      overflow: hidden !important;
      background: #f1f2f6;
      overscroll-behavior: none;
      touch-action: manipulation;
      -webkit-tap-highlight-color:
        transparent;
    }

    #critheraReaderRoot *,
    #critheraReaderRoot *::before,
    #critheraReaderRoot *::after {
      box-sizing: border-box;
    }

    /* Topo */
    #critheraReaderRoot
    .topbar {
      grid-column: 1;
      grid-row: 1;
      width: 100%;
      height:
        var(--mobile-topbar-h);
      min-height:
        var(--mobile-topbar-h);
      padding:
        env(safe-area-inset-top)
        10px
        0;
      border-bottom:
        1px solid #e3e3eb;
      background: #ffffff;
      color: #0f0f14;
      z-index: 120;
    }

    #critheraReaderRoot
    .topbar
    .back-button {
      width: 34px;
      height: 34px;
      min-width: 34px;
      border: 0;
      background: transparent;
      color: #353941;
    }

    #critheraReaderRoot
    .topbar
    .brand {
      color: #0f0f14;
      font-size: 15px;
      font-weight: 650;
      letter-spacing: .045em;
    }

    #critheraReaderRoot
    .top-divider,
    #critheraReaderRoot
    .design-name,
    #critheraReaderRoot
    .readonly-label,
    #critheraReaderRoot
    .view-controls,
    #critheraReaderRoot
    .top-actions-divider,
    #critheraReaderRoot
    .top-actions-group {
      display: none !important;
    }

    #critheraReaderRoot
    .top-actions {
      margin-left: auto;
    }

    #critheraReaderRoot
    .download-button {
      width: auto;
      height: 34px;
      min-height: 34px;
      padding: 0 12px;
      border: 0;
      border-radius: 8px;
      background: #0f0f14;
      color: #ffffff;
      opacity: 1;
      gap: 6px;
      font-size: 10px;
      font-weight: 650;
    }

    #critheraReaderRoot
    .download-button
    .ui-icon {
      width: 15px;
      height: 15px;
    }

    /* Barra contextual */
    #critheraReaderRoot
    .contextbar {
      grid-column: 1;
      grid-row: 2;
      display: none;
      width: 100%;
      height:
        var(--mobile-context-h);
      min-height:
        var(--mobile-context-h);
      padding: 5px 7px;
      border-bottom:
        1px solid #e3e3eb;
      background: #f7f7f9;
      color: #0f0f14;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      touch-action: pan-x;
      z-index: 110;
    }

    #critheraReaderRoot
    .contextbar::-webkit-scrollbar {
      display: none;
    }

    #critheraReaderRoot.has-context-selection
    .contextbar {
      display: flex;
    }

    #critheraReaderRoot
    .canva-text-toolbar {
      width: max-content;
      min-width: 100%;
      height: 42px;
      margin: 0;
      padding: 3px 5px;
      border-radius: 12px;
    }

    /*
      Área principal:
      1. workspace
      2. gaveta
      3. menu
    */
    #critheraReaderRoot
    .main {
      grid-column: 1;
      grid-row: 3;
      display: grid !important;
      grid-template-columns:
        minmax(0, 1fr);
      grid-template-rows:
        minmax(0, 1fr)
        0
        var(--mobile-nav-h);
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      overflow: hidden !important;
      background: #f1f2f6;
      transition:
        grid-template-rows .30s
        cubic-bezier(.25,1,.5,1);
    }

    #critheraReaderRoot.mobile-drawer-open
    .main {
      grid-template-rows:
        minmax(0, 1fr)
        var(--mobile-drawer-height)
        var(--mobile-nav-h);
    }

    /* Workspace */
    #critheraReaderRoot
    .workspace {
      grid-column: 1;
      grid-row: 1;
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      overflow: hidden;
      background: #f1f2f6;
    }

    #critheraReaderRoot
    .workspace-rulers,
    #critheraReaderRoot
    .workspace-ruler,
    #critheraReaderRoot
    .workspace-ruler-corner {
      display: none !important;
    }

    #critheraReaderRoot
    .stage {
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      overflow: auto;
      padding: 0;
      background: #f1f2f6;
      background-image: none;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x pan-y;
      scrollbar-width: none;
    }

    #critheraReaderRoot
    .stage::-webkit-scrollbar {
      display: none;
    }

    #critheraReaderRoot
    .stage-inner {
      width: max-content;
      min-width: 100%;
      min-height: 100%;
      padding:
        20px
        20px
        24px;
      display: grid;
      place-items: center;
      align-content: center;
    }

    #critheraReaderRoot
    .canvas-shell,
    #critheraReaderRoot
    .canvas,
    #critheraReaderRoot
    .reader-element:not(
      .reader-miniature
    ),
    #critheraReaderRoot
    .selection-box,
    #critheraReaderRoot
    .resize-handle,
    #critheraReaderRoot
    .rotate-handle,
    #critheraReaderRoot
    .workspace-guide {
      touch-action: none !important;
      user-select: none;
      -webkit-user-select: none;
      -webkit-touch-callout: none;
    }

    #critheraReaderRoot
    .inline-text-editor {
      touch-action:
        manipulation !important;
      user-select: text;
      -webkit-user-select: text;
      -webkit-touch-callout: default;
    }

    /*
      Gaveta real:
      o mesmo sidepanel do desktop ocupa a linha 2.
    */
    #critheraReaderRoot
    .sidepanel {
      position: relative !important;
      inset: auto !important;
      grid-column: 1;
      grid-row: 2;
      display: flex !important;
      width: 100% !important;
      height: 0 !important;
      min-width: 0 !important;
      min-height: 0 !important;
      max-width: none !important;
      max-height: none !important;
      margin: 0 !important;
      border: 0 !important;
      border-radius:
        16px 16px 0 0 !important;
      overflow: hidden !important;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(100%);
      background: var(--panel);
      box-shadow:
        0 -12px 36px
        rgba(17,20,26,.22);
      transition:
        height .30s
          cubic-bezier(.25,1,.5,1),
        transform .30s
          cubic-bezier(.25,1,.5,1),
        opacity .18s ease,
        visibility 0s linear .30s;
      z-index: 175;
    }

    #critheraReaderRoot.mobile-drawer-open
    .sidepanel {
      height:
        var(--mobile-drawer-height) !important;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
      transition:
        height .30s
          cubic-bezier(.25,1,.5,1),
        transform .30s
          cubic-bezier(.25,1,.5,1),
        opacity .18s ease,
        visibility 0s;
    }

    #critheraReaderRoot
    .sidepanel::before {
      content: "";
      position: absolute;
      top: 7px;
      left: 50%;
      width: 40px;
      height: 4px;
      border-radius: 999px;
      background:
        rgba(255,255,255,.24);
      transform:
        translateX(-50%);
      pointer-events: none;
      z-index: 5;
    }

    #critheraReaderRoot
    .sidepanel.color-panel-open::before {
      background:
        rgba(15,15,20,.18);
    }

    #critheraReaderRoot
    .panel-head {
      height: 56px;
      min-height: 56px;
      padding-top: 9px;
    }

    #critheraReaderRoot
    .panel-close {
      display: grid !important;
    }

    #critheraReaderRoot
    .panel-content {
      min-height: 0;
      flex: 1;
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
    }

    #critheraReaderRoot
    .sidepanel.color-panel-open {
      width: 100% !important;
      flex-basis: auto !important;
    }

    /* Menu inferior */
    #critheraReaderRoot
    .rail {
      position: relative !important;
      inset: auto !important;
      grid-column: 1;
      grid-row: 3;
      width: 100%;
      height:
        var(--mobile-nav-h);
      min-height:
        var(--mobile-nav-h);
      max-height:
        var(--mobile-nav-h);
      padding:
        5px
        8px
        env(safe-area-inset-bottom);
      border-top:
        1px solid #e3e3eb;
      border-right: 0;
      background: #ffffff;
      color: #64646e;
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 4px;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      touch-action: pan-x;
      z-index: 190;
    }

    #critheraReaderRoot
    .rail::-webkit-scrollbar {
      display: none;
    }

    #critheraReaderRoot
    .rail-item {
      position: relative;
      width: 58px;
      min-width: 58px;
      height: 58px;
      min-height: 58px;
      padding: 6px 3px 5px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: #64646e;
      gap: 4px;
      flex: 0 0 auto;
      touch-action: manipulation;
    }

    #critheraReaderRoot
    .rail-item:disabled {
      display: none;
    }

    #critheraReaderRoot
    .rail-item
    .rail-icon,
    #critheraReaderRoot
    .rail-item
    .rail-icon
    .ui-icon {
      width: 22px;
      height: 22px;
    }

    #critheraReaderRoot
    .rail-item
    > span:last-child {
      max-width: 56px;
      color: inherit;
      font-size: 9px;
      font-weight: 550;
      line-height: 1.05;
    }

    #critheraReaderRoot:not(
      .mobile-drawer-open
    )
    .rail-item.active {
      background: transparent;
      color: #64646e;
      box-shadow: none;
    }

    #critheraReaderRoot:not(
      .mobile-drawer-open
    )
    .rail-item.active::before {
      display: none;
    }

    #critheraReaderRoot.mobile-drawer-open
    .rail-item.active {
      background: #f0f1f4;
      color: #0f0f14;
    }

    #critheraReaderRoot.mobile-drawer-open
    .rail-item.active::before {
      content: "";
      position: absolute;
      right: 12px;
      bottom: 1px;
      left: 12px;
      height: 3px;
      border-radius:
        3px 3px 0 0;
      background: #0f0f14;
    }

    /* Zoom */
    #critheraReaderRoot
    .zoom-box {
      position: absolute;
      right: 9px;
      bottom: 10px;
      z-index: 130;
      height: 34px;
      padding: 3px;
      border:
        1px solid #dfe2e7;
      border-radius: 9px;
      background:
        rgba(255,255,255,.96);
      color: #343840;
      box-shadow:
        0 4px 14px
        rgba(25,30,38,.10);
    }

    #critheraReaderRoot
    .zoom-box
    button {
      width: 27px;
      height: 27px;
      color: #343840;
    }

    #critheraReaderRoot
    #zoomLabel {
      width: 39px;
      flex-basis: 39px;
      color: #343840;
      font-size: 9px;
    }

    #critheraReaderRoot
    .zoom-divider {
      height: 17px;
      background: #dfe2e7;
    }

    #critheraReaderRoot
    .pagesbar {
      display: none !important;
    }

    #critheraReaderRoot
    .resize-handle {
      width: 28px;
      height: 28px;
    }

    #critheraReaderRoot
    .resize-handle.nw {
      top: -15px;
      left: -15px;
    }

    #critheraReaderRoot
    .resize-handle.ne {
      top: -15px;
      right: -15px;
    }

    #critheraReaderRoot
    .resize-handle.se {
      right: -15px;
      bottom: -15px;
    }

    #critheraReaderRoot
    .resize-handle.sw {
      bottom: -15px;
      left: -15px;
    }

    #critheraReaderRoot
    .rotate-handle {
      width: 30px;
      height: 30px;
    }
  }

  @media (
    max-width: 760px
  ) and (
    max-height: 720px
  ) {
    #critheraReaderRoot {
      --mobile-drawer-height:
        min(40dvh, 286px);
    }
  }

  @media (
    max-width: 760px
  ) and (
    orientation: landscape
  ) {
    #critheraReaderRoot {
      --mobile-drawer-height:
        min(52dvh, 300px);
    }

    #critheraReaderRoot
    .stage-inner {
      padding:
        12px
        18px
        16px;
    }
  }

/* crithera-mobile-opaque-controls-step */
@media (max-width: 760px) {
    /*
      A barra mobile é clara.
      Os controles antigos foram desenhados para o desktop escuro,
      por isso precisavam de superfícies e textos próprios no mobile.
    */
    #critheraReaderRoot
    .contextbar,
    #critheraReaderRoot
    .contextbar.is-text-style {
      position: relative;
      isolation: isolate;
      opacity: 1 !important;
      background: #f7f7f9 !important;
      color: #0f0f14 !important;
      border-bottom-color: #dfe2e7 !important;
      box-shadow:
        0 2px 8px
        rgba(25,30,38,.05);
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    #critheraReaderRoot
    .contextbar::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: #f7f7f9;
      pointer-events: none;
    }

    #critheraReaderRoot
    .contextbar > *,
    #critheraReaderRoot
    .contextbar button:not(:disabled),
    #critheraReaderRoot
    .contextbar input:not(:disabled),
    #critheraReaderRoot
    .contextbar select:not(:disabled),
    #critheraReaderRoot
    .contextbar svg {
      opacity: 1 !important;
    }

    /*
      Toolbar de texto.
    */
    #critheraReaderRoot
    .canva-text-toolbar {
      opacity: 1 !important;
      background: #ffffff !important;
      color: #0f0f14 !important;
      border-color: #dfe2e7 !important;
      box-shadow:
        0 4px 14px
        rgba(24,28,36,.09),
        0 1px 3px
        rgba(24,28,36,.05) !important;
    }

    #critheraReaderRoot
    .canva-toolbar-button,
    #critheraReaderRoot
    .canva-toolbar-label-button,
    #critheraReaderRoot
    .canva-font-button,
    #critheraReaderRoot
    .canva-size-control,
    #critheraReaderRoot
    .canva-size-control input {
      opacity: 1 !important;
      background-color: #ffffff;
      color: #0f0f14;
    }

    #critheraReaderRoot
    .canva-toolbar-button:disabled,
    #critheraReaderRoot
    .canva-toolbar-label-button:disabled,
    #critheraReaderRoot
    .toolbar-position-action:disabled {
      opacity: 1 !important;
      background: #f1f1f3 !important;
      color: #a0a3aa !important;
      cursor: default;
    }

    /*
      Controles contextuais de fundo, formas e imagens.
      Todos ganham superfície branca real.
    */
    #critheraReaderRoot
    .context-background-label,
    #critheraReaderRoot
    .background-color-button,
    #critheraReaderRoot
    .context-shape-color,
    #critheraReaderRoot
    .context-image-button,
    #critheraReaderRoot
    .context-tool,
    #critheraReaderRoot
    .context-color-button,
    #critheraReaderRoot
    .context-number-compact,
    #critheraReaderRoot
    .context-control,
    #critheraReaderRoot
    .context-color-control,
    #critheraReaderRoot
    .context-segmented,
    #critheraReaderRoot
    .context-format-group,
    #critheraReaderRoot
    .context-layer-actions,
    #critheraReaderRoot
    .context-property,
    #critheraReaderRoot
    .context-action,
    #critheraReaderRoot
    .context-editing-label,
    #critheraReaderRoot
    .context-image-edit-label,
    #critheraReaderRoot
    .context-image-zoom,
    #critheraReaderRoot
    .context-image-fit {
      opacity: 1 !important;
      border-color: #dfe2e7 !important;
      background: #ffffff !important;
      color: #0f0f14 !important;
      box-shadow: none !important;
    }

    #critheraReaderRoot
    .context-control-label,
    #critheraReaderRoot
    .context-property-label,
    #critheraReaderRoot
    .context-number-compact span,
    #critheraReaderRoot
    .context-image-zoom output,
    #critheraReaderRoot
    .context-type,
    #critheraReaderRoot
    .context-empty,
    #critheraReaderRoot
    .context-editing-help {
      opacity: 1 !important;
      color: #6b6f78 !important;
    }

    #critheraReaderRoot
    .context-control select,
    #critheraReaderRoot
    .context-control input[type="number"],
    #critheraReaderRoot
    .context-number-compact input,
    #critheraReaderRoot
    .context-property-value {
      opacity: 1 !important;
      color: #0f0f14 !important;
      background: transparent !important;
    }

    #critheraReaderRoot
    .context-control option {
      background: #ffffff !important;
      color: #0f0f14 !important;
    }

    #critheraReaderRoot
    .context-format-button,
    #critheraReaderRoot
    .context-layer-action,
    #critheraReaderRoot
    .context-segmented button,
    #critheraReaderRoot
    .context-image-fit button {
      opacity: 1 !important;
      background: transparent !important;
      color: #444850 !important;
    }

    #critheraReaderRoot
    .context-format-button:hover,
    #critheraReaderRoot
    .context-layer-action:hover,
    #critheraReaderRoot
    .context-segmented button:hover,
    #critheraReaderRoot
    .context-image-fit button:hover {
      background: #f1f1f3 !important;
      color: #0f0f14 !important;
    }

    #critheraReaderRoot
    .context-format-button.active,
    #critheraReaderRoot
    .context-segmented button.active,
    #critheraReaderRoot
    .context-image-fit button.active {
      background: #0f0f14 !important;
      color: #ffffff !important;
    }

    #critheraReaderRoot
    .context-layer-action:disabled {
      opacity: 1 !important;
      background: #f1f1f3 !important;
      color: #b0b3b9 !important;
    }

    #critheraReaderRoot
    .context-action.primary {
      opacity: 1 !important;
      border-color: #0f0f14 !important;
      background: #0f0f14 !important;
      color: #ffffff !important;
    }

    #critheraReaderRoot
    .context-color-preview,
    #critheraReaderRoot
    .background-color-preview,
    #critheraReaderRoot
    .context-shape-swatch,
    #critheraReaderRoot
    .context-color-swatch {
      opacity: 1 !important;
      border-color:
        rgba(15,15,20,.20) !important;
    }

    /*
      Menu inferior sempre sólido.
    */
    #critheraReaderRoot
    .rail {
      opacity: 1 !important;
      background: #ffffff !important;
      color: #64646e !important;
      border-top-color: #e3e3eb !important;
      box-shadow:
        0 -3px 12px
        rgba(25,30,38,.05);
    }

    #critheraReaderRoot
    .rail-item,
    #critheraReaderRoot
    .rail-item
    .rail-icon,
    #critheraReaderRoot
    .rail-item
    .rail-icon
    .ui-icon,
    #critheraReaderRoot
    .rail-item
    > span {
      opacity: 1 !important;
    }

    #critheraReaderRoot.mobile-drawer-open
    .rail-item.active {
      opacity: 1 !important;
      background: #eceef1 !important;
      color: #0f0f14 !important;
    }

    /*
      Gavetas escuras: superfícies sólidas, sem vazamento
      da prancheta por baixo.
    */
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open) {
      opacity: 1 !important;
      background: #191a1b !important;
      color: #f7f8f8 !important;
    }

    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .panel-head {
      opacity: 1 !important;
      background: #191a1b !important;
      color: #f7f8f8 !important;
      border-bottom-color:
        rgba(255,255,255,.08) !important;
    }

    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .panel-content,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .panel-view.active {
      opacity: 1 !important;
      background: #191a1b !important;
      color: #f7f8f8 !important;
    }

    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .basic-shape-card,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .text-insert-card,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .panel-note,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .shape-panel-note,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .elements-note,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .background-tab,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .font-current-card,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel:not(.color-panel-open)
    .font-option {
      opacity: 1 !important;
      background: #1f2023 !important;
      border-color:
        rgba(255,255,255,.09) !important;
    }

    /*
      Painel de cor continua claro e também totalmente opaco.
    */
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel.color-panel-open,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel.color-panel-open
    .panel-head,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel.color-panel-open
    .panel-content,
    #critheraReaderRoot.mobile-drawer-open
    .sidepanel.color-panel-open
    .panel-view.active {
      opacity: 1 !important;
      background: #ffffff !important;
      color: #0f0f14 !important;
    }
  }

/* crithera-admin-editor-step */
:root { --admin-inspector-w: 344px; }
  #critheraReaderRoot.admin-editor { --panel-w: 288px; }
  .admin-mode-badge { padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .12em; }
  .admin-editor .design-name { width: min(280px,22vw); border-color: transparent; cursor: text; }
  .admin-editor .design-name:hover,.admin-editor .design-name:focus { border-color: var(--line-strong); background: rgba(255,255,255,.04); outline: 0; }
  .admin-top-actions { gap: 7px; }
  .admin-top-button { min-height: 33px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 650; cursor: pointer; white-space: nowrap; }
  .admin-top-button .ui-icon { width: 15px; height: 15px; }
  .admin-top-button.secondary { background: transparent; color: var(--text); }
  .admin-top-button.secondary:hover { background: rgba(255,255,255,.07); }
  .admin-top-button.primary { background: var(--text); color: var(--bg); }
  .admin-top-button:disabled { opacity: .45; cursor: wait; }
  .admin-inspector { width: var(--admin-inspector-w); flex: 0 0 var(--admin-inspector-w); min-width: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--text); display: flex; flex-direction: column; overflow: hidden; transition: width .2s ease,flex-basis .2s ease,opacity .16s ease; }
  .admin-inspector-collapsed .admin-inspector { width: 0; flex-basis: 0; opacity: 0; pointer-events: none; border-left: 0; }
  .admin-inspector-head { height: 58px; min-height: 58px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
  .admin-inspector-head > div { display: flex; flex-direction: column; gap: 3px; }
  .admin-inspector-head strong { font-size: 14px; }
  .admin-eyebrow { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .12em; }
  .admin-inspector-close { width: 30px; height: 30px; padding: 0; border-radius: 7px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
  .admin-inspector-close:hover { background: rgba(255,255,255,.06); color: var(--text); }
  .admin-inspector-close .ui-icon { width: 17px; height: 17px; }
  .admin-inspector-scroll { min-height: 0; flex: 1; padding: 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .admin-record-card { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
  .admin-record-status-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
  .admin-source-badge,.admin-status-badge { padding: 4px 7px; border-radius: 999px; font-size: 8.5px; font-weight: 700; }
  .admin-source-badge { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
  .admin-status-badge { border: 1px solid var(--line-strong); color: var(--muted); }
  .admin-status-badge.published { background: var(--text); border-color: var(--text); color: var(--bg); }
  .admin-status-badge.draft { background: transparent; }
  .admin-status-badge.archived { opacity: .65; }
  .admin-record-meta { margin: 0; display: grid; gap: 7px; }
  .admin-record-meta div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 8px; align-items: baseline; }
  .admin-record-meta dt { color: var(--muted); font-size: 9px; }
  .admin-record-meta dd { min-width: 0; margin: 0; color: var(--text); font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-form-section { padding: 17px 0; border-bottom: 1px solid var(--line); display: grid; gap: 11px; }
  .admin-section-title { display: flex; flex-direction: column; gap: 4px; }
  .admin-section-title strong { font-size: 12px; }
  .admin-section-title span { color: var(--muted); font-size: 9px; line-height: 1.45; }
  .admin-field { display: grid; gap: 6px; }
  .admin-field > span { color: var(--muted); font-size: 9px; font-weight: 600; }
  .admin-field input,.admin-field textarea,.admin-field select { width: 100%; min-width: 0; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: var(--panel); color: var(--text); font: 500 10.5px/1.4 Inter,sans-serif; }
  .admin-field input,.admin-field select { height: 36px; }
  .admin-field textarea { padding-top: 9px; padding-bottom: 9px; resize: vertical; min-height: 74px; }
  .admin-field input:focus,.admin-field textarea:focus,.admin-field select:focus { border-color: rgba(255,255,255,.34); background: var(--panel-2); }
  .admin-field select option { background: var(--panel); color: var(--text); }
  .admin-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .admin-thumbnail-preview { aspect-ratio: 4/3; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--panel); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 9px; }
  .admin-thumbnail-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .admin-thumbnail-preview.invalid { border-style: solid; }
  .admin-toggle-list { display: grid; gap: 9px; }
  .admin-toggle { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 9px; cursor: pointer; }
  .admin-toggle input { position: absolute; opacity: 0; }
  .admin-toggle span { position: relative; width: 32px; height: 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); }
  .admin-toggle span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .16s ease,background .16s ease; }
  .admin-toggle input:checked + span { background: var(--text); border-color: var(--text); }
  .admin-toggle input:checked + span::after { transform: translateX(14px); background: var(--bg); }
  .admin-toggle b { font-size: 10px; font-weight: 550; }
  .admin-asset-warning { padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 9px; line-height: 1.5; }
  .admin-inspector-footer { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-wide-button { min-height: 36px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 10px; font-weight: 650; cursor: pointer; }
  .admin-wide-button.secondary { background: transparent; color: var(--text); }
  .admin-wide-button.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
  .admin-wide-button.quiet { grid-column: 1/-1; background: var(--panel); color: var(--muted); }
  .admin-wide-button:hover { filter: brightness(1.08); }
  .admin-wide-button:disabled { opacity: .45; cursor: wait; }
  .admin-save-information { border-bottom: 0; }
  .admin-toast { position: fixed; right: 18px; bottom: 18px; z-index: 2147483646; max-width: 360px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: #0f1011; color: #f7f8f8; box-shadow: 0 16px 46px rgba(0,0,0,.28); font: 550 10.5px/1.45 Inter,sans-serif; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .16s ease,transform .16s ease; }
  .admin-toast.show { opacity: 1; transform: translateY(0); }
  .admin-toast.error { background: #ffffff; color: #0a0a0a; border-color: #d8d8dc; }
  .admin-access-overlay { position: fixed; inset: 0; z-index: 2147483647; padding: 20px; background: rgba(8,9,10,.92); display: grid; place-items: center; }
  .admin-access-overlay[hidden] { display: none; }
  .admin-access-card { width: min(420px,100%); padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #0f1011; color: #f7f8f8; text-align: center; }
  .admin-access-icon { width: 38px; height: 38px; margin: 0 auto 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
  .admin-access-card strong { display: block; font-size: 17px; }
  .admin-access-card p { margin: 9px 0 18px; color: #8a8f98; font-size: 11px; line-height: 1.55; }
  .admin-access-card button { min-height: 36px; padding: 0 14px; border-radius: 8px; background: #f7f8f8; color: #08090a; font-weight: 650; cursor: pointer; }
  @media (max-width: 1180px) { :root { --admin-inspector-w: 310px; } .admin-field-grid { grid-template-columns: 1fr; } .admin-top-button span { display:none; } }
  @media (max-width: 760px) { .admin-inspector { display: none !important; } .admin-mode-badge { display:none; } .admin-top-button.secondary { display:none; } .admin-top-button { padding: 0 9px; } .admin-top-button span { display:inline; } .admin-top-actions .top-actions-group,.admin-top-actions .top-actions-divider { display:none !important; } .admin-editor .design-name { display:none; } }

/* crithera-admin-protected-rpc-step */
.admin-security-note {
    display: none;
  }

/* crithera-admin-storage-protected-step */
.admin-storage-protected-note {
    display: none;
  }

/* crithera-admin-templates-integration-step */
#critheraReaderRoot
  .admin-wide-button[hidden] {
    display: none !important;
  }

  #critheraReaderRoot
  .admin-save-return-button {
    grid-column: 1 / -1;
  }

  #critheraReaderRoot
  .admin-mobile-inspector-overlay {
    display: none;
  }

  #critheraReaderRoot.admin-preview-mode
  #adminSaveDraftBtn,
  #critheraReaderRoot.admin-preview-mode
  #adminPublishBtn,
  #critheraReaderRoot.admin-preview-mode
  #adminPanelSaveDraftBtn,
  #critheraReaderRoot.admin-preview-mode
  #adminPanelPublishBtn,
  #critheraReaderRoot.admin-preview-mode
  #adminPublishNextBtn,
  #critheraReaderRoot.admin-preview-mode
  #adminNextImportBtn,
  #critheraReaderRoot.admin-preview-mode
  #adminSaveReturnBtn {
    opacity: .38 !important;
    pointer-events: none !important;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    #adminInspectorToggleBtn {
      display: inline-flex !important;
    }

    #critheraReaderRoot
    .admin-inspector {
      position: fixed;
      top: var(--topbar-h);
      right: 0;
      bottom: 62px;
      z-index: 130;
      display: flex !important;
      width: min(92vw, 370px);
      max-width: 370px;
      height: auto;
      border-left: 1px solid var(--line);
      background: var(--surface);
      box-shadow: -20px 0 46px rgba(0,0,0,.32);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateX(104%);
      transition:
        transform .22s ease,
        opacity .18s ease,
        visibility .22s ease;
    }

    #critheraReaderRoot
    .admin-inspector-scroll {
      padding-bottom:
        calc(
          18px +
          env(safe-area-inset-bottom)
        );
    }

    #critheraReaderRoot
    .admin-inspector-footer {
      padding-bottom:
        calc(
          12px +
          env(safe-area-inset-bottom)
        );
    }

    #critheraReaderRoot
    .admin-mobile-inspector-overlay {
      position: fixed;
      inset:
        var(--topbar-h)
        0
        62px;
      z-index: 125;
      border: 0;
      background: rgba(8,9,10,.52);
      backdrop-filter: blur(4px);
    }

    #critheraReaderRoot
    .admin-mobile-inspector-overlay[hidden] {
      display: none !important;
    }

    #critheraReaderRoot.admin-inspector-mobile-open
    .admin-inspector {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(0);
    }

    #critheraReaderRoot.admin-inspector-mobile-open
    .admin-mobile-inspector-overlay {
      display: block;
    }

    #critheraReaderRoot
    .admin-top-button.secondary {
      display: none;
    }

    #critheraReaderRoot
    #adminInspectorToggleBtn.admin-top-button.secondary {
      display: inline-flex !important;
    }
  }

/* crithera-admin-editor-v05-json-blank */
#critheraReaderRoot
  .admin-user-view-button {
    text-decoration: none;
  }

  #critheraReaderRoot
  .admin-json-field {
    min-height: 300px;
    max-height: 560px;
    resize: vertical;
    tab-size: 2;
    white-space: pre;
    overflow: auto;
    font-family:
      ui-monospace,
      SFMono-Regular,
      Consolas,
      "Liberation Mono",
      monospace !important;
    font-size: 9px !important;
    line-height: 1.55 !important;
  }

  #critheraReaderRoot
  .admin-json-actions {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #critheraReaderRoot
  .admin-json-action {
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 9.5px;
    font-weight: 650;
    cursor: pointer;
  }

  #critheraReaderRoot
  .admin-json-action.primary {
    grid-column: 1 / -1;
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
  }

  #critheraReaderRoot
  .admin-json-action:hover {
    filter: brightness(1.08);
  }

  #critheraReaderRoot
  .admin-json-help {
    margin: 0;
    color: var(--muted);
    font-size: 8.8px;
    line-height: 1.5;
  }

  #critheraReaderRoot
  .admin-json-field.is-manual {
    border-color: rgba(255,255,255,.38);
    box-shadow:
      inset 3px 0 0 rgba(255,255,255,.7);
  }

  @media (max-width: 1180px) {
    #critheraReaderRoot
    .admin-user-view-button span {
      display: none;
    }
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    #adminUserViewBtn {
      display: inline-flex !important;
      min-width: 34px;
      width: 34px;
      padding: 0;
      justify-content: center;
    }

    #critheraReaderRoot
    #adminUserViewBtn span {
      display: none !important;
    }

    #critheraReaderRoot
    .admin-json-field {
      min-height: 360px;
      max-height: 62dvh;
      font-size: 10px !important;
    }

    #critheraReaderRoot
    .admin-json-actions {
      grid-template-columns:
        minmax(0, 1fr);
    }

    #critheraReaderRoot
    .admin-json-action.primary {
      grid-column: auto;
    }
  }

/* crithera-admin-editor-v08-interaction */
#critheraReaderRoot .reader-element:not(.reader-miniature),
  #critheraReaderRoot .reader-element:not(.reader-miniature):hover,
  #critheraReaderRoot .reader-element:not(.reader-miniature).is-dragging,
  #critheraReaderRoot .image-crop-editor,
  #critheraReaderRoot .image-crop-editor.is-panning {
    cursor: default !important;
  }
  #critheraReaderRoot .inline-text-editor,
  #critheraReaderRoot .inline-text-editor * {
    cursor: text !important;
    user-select: text;
  }
  #critheraReaderRoot .selection-box.text-transformer .resize-handle.side.mt,
  #critheraReaderRoot .selection-box.text-transformer .resize-handle.side.mb {
    display: none !important;
  }
  #critheraReaderRoot .rotate-handle {
    left: calc(50% - 20px) !important;
    cursor: default !important;
  }
  #critheraReaderRoot .rotate-handle:active { cursor: none !important; }
  #critheraReaderRoot .rotate-handle svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.75 !important;
  }
  #critheraReaderRoot .move-handle {
    position: absolute !important;
    left: calc(50% + 20px) !important;
    top: auto !important;
    bottom: -47px !important;
    z-index: 8 !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #cfd3da !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(15,15,20,.16) !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #0f0f14;
    cursor: default !important;
    pointer-events: auto !important;
    touch-action: none;
  }
  #critheraReaderRoot .move-handle svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.75 !important;
    pointer-events: none;
  }
  #critheraReaderRoot .move-handle::after {
    content: ""; position: absolute; inset: -8px; border-radius: inherit;
  }
  #critheraReaderRoot .cr-rotate-cursor {
    position: fixed; left: 0; top: 0; z-index: 2147483646;
    width: 28px; height: 28px; display: none; pointer-events: none;
    transform-origin: center center;
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.95));
  }
  #critheraReaderRoot .cr-rotate-cursor.show { display: block; }
  #critheraReaderRoot .cr-rotate-cursor svg { width: 100%; height: 100%; display: block; }
  body.crithera-rotating, body.crithera-rotating * { cursor: none !important; }
  #critheraReaderRoot .admin-json-live-status {
    margin-top: 7px; color: var(--muted); font-size: 8.8px; line-height: 1.45;
  }
  #critheraReaderRoot .admin-json-live-status::before {
    content: ""; display: inline-block; width: 5px; height: 5px;
    margin-right: 6px; border-radius: 50%; background: #f7f8f8;
    vertical-align: 1px; opacity: .72;
  }
  @media (max-width:760px) {
    #critheraReaderRoot .rotate-handle { left: calc(50% - 24px) !important; }
    #critheraReaderRoot .move-handle {
      left: calc(50% + 24px) !important; bottom: -55px !important;
      width: 38px !important; height: 38px !important;
    }
    #critheraReaderRoot .move-handle svg { width: 22px !important; height: 22px !important; }
    #critheraReaderRoot .move-handle::after { inset: -11px; }
  }

/* crithera-admin-editor-v10-spacing-measures */
#critheraReaderRoot .spacing-measures-layer {
    position: absolute;
    inset: 0;
    z-index: 2147483;
    overflow: visible;
    pointer-events: none;
  }

  #critheraReaderRoot .spacing-measure {
    position: absolute;
    color: #d313d7;
    pointer-events: none;
  }

  #critheraReaderRoot .spacing-measure.vertical {
    width: 0;
    border-left: var(--spacing-line, 1px) solid currentColor;
  }

  #critheraReaderRoot .spacing-measure.horizontal {
    height: 0;
    border-top: var(--spacing-line, 1px) solid currentColor;
  }

  #critheraReaderRoot .spacing-measure::before,
  #critheraReaderRoot .spacing-measure::after {
    content: "";
    position: absolute;
    display: block;
    background: currentColor;
  }

  #critheraReaderRoot .spacing-measure.vertical::before,
  #critheraReaderRoot .spacing-measure.vertical::after {
    left: calc(var(--spacing-tick, 9px) / -2);
    width: var(--spacing-tick, 9px);
    height: var(--spacing-line, 1px);
  }

  #critheraReaderRoot .spacing-measure.vertical::before {
    top: 0;
  }

  #critheraReaderRoot .spacing-measure.vertical::after {
    bottom: 0;
  }

  #critheraReaderRoot .spacing-measure.horizontal::before,
  #critheraReaderRoot .spacing-measure.horizontal::after {
    top: calc(var(--spacing-tick, 9px) / -2);
    width: var(--spacing-line, 1px);
    height: var(--spacing-tick, 9px);
  }

  #critheraReaderRoot .spacing-measure.horizontal::before {
    left: 0;
  }

  #critheraReaderRoot .spacing-measure.horizontal::after {
    right: 0;
  }

  #critheraReaderRoot .spacing-measure-label {
    position: absolute;
    min-width: var(--spacing-label-min, 22px);
    height: var(--spacing-label-height, 18px);
    padding: 0 var(--spacing-label-padding, 5px);
    border-radius: var(--spacing-label-radius, 7px);
    background: #d313d7;
    color: #fff;
    box-shadow: 0 1px 2px rgba(57,0,58,.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: Inter, system-ui, sans-serif;
    font-size: var(--spacing-label-font, 10px);
    font-weight: 700;
    line-height: 1;
  }

  #critheraReaderRoot
  .spacing-measure.vertical
  .spacing-measure-label {
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  #critheraReaderRoot
  .spacing-measure.horizontal
  .spacing-measure-label {
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
  }

  #critheraReaderRoot .spacing-measure.canvas-distance {
    opacity: .82;
  }

  #critheraReaderRoot
  .spacing-measure.equal-distance
  .spacing-measure-label {
    box-shadow:
      0 0 0 var(--spacing-equal-ring, 2px)
      rgba(211,19,215,.2),
      0 1px 2px rgba(57,0,58,.22);
  }

/* crithera-admin-editor-v12-history-corners */
#critheraReaderRoot
  .icon-button:not(:disabled) {
    cursor: pointer;
  }

  #critheraReaderRoot
  .icon-button:not(:disabled):hover {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.08);
    color: var(--text);
  }

  #critheraReaderRoot
  .corner-toolbar-button {
    min-width: 78px;
  }

  #critheraReaderRoot
  .corner-popover {
    width: 286px !important;
  }

  #critheraReaderRoot
  .corner-popover-head {
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  #critheraReaderRoot
  .corner-popover-title {
    margin: 0;
    color: var(--toolbar-text);
    font-size: 12px;
    font-weight: 700;
  }

  #critheraReaderRoot
  .corner-link-toggle {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--toolbar-line);
    border-radius: 8px;
    background: #f5f5f8;
    color: #565a63;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    font-weight: 650;
    cursor: pointer;
  }

  #critheraReaderRoot
  .corner-link-toggle.active {
    border-color: rgba(17,18,20,.24);
    background: #eceef1;
    color: #111214;
  }

  #critheraReaderRoot
  .corner-link-toggle svg {
    width: 15px;
    height: 15px;
  }

  #critheraReaderRoot
  .corner-linked-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 74px;
    align-items: center;
    gap: 10px;
  }

  #critheraReaderRoot
  .corner-linked-row input[type="range"] {
    width: 100%;
  }

  #critheraReaderRoot
  .corner-number,
  #critheraReaderRoot
  .corner-grid input {
    width: 100%;
    height: 32px;
    border: 1px solid var(--toolbar-line);
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: var(--toolbar-text);
    text-align: center;
    font: 600 11px/1 Inter, sans-serif;
  }

  #critheraReaderRoot
  .corner-number:focus,
  #critheraReaderRoot
  .corner-grid input:focus {
    border-color: #30343a;
    box-shadow:
      0 0 0 2px rgba(48,52,58,.12);
  }

  #critheraReaderRoot
  .corner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
  }

  #critheraReaderRoot
  .corner-field {
    min-width: 0;
  }

  #critheraReaderRoot
  .corner-field span {
    display: block;
    margin-bottom: 6px;
    color: #666a73;
    font-size: 9.5px;
    font-weight: 600;
  }

  #critheraReaderRoot
  .corner-popover-hint {
    margin: 12px 0 0;
    color: #71757e;
    font-size: 9.5px;
    line-height: 1.45;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot
    .corner-popover {
      width:
        min(
          286px,
          calc(100vw - 20px)
        ) !important;
    }
  }

/* crithera-admin-editor-v13-element-guides */
#critheraReaderRoot
  .smart-alignment-guide {
    position: absolute !important;
    inset: auto !important;
    z-index: 2147476 !important;
    display: none;
    background: none !important;
    pointer-events: none;
    transform: none !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.visible {
    display: block;
  }

  #critheraReaderRoot
  .smart-alignment-guide.vertical {
    width: 0 !important;
    border-left:
      var(--smart-guide-thickness, 1.5px)
      dashed
      #d313d7;
  }

  #critheraReaderRoot
  .smart-alignment-guide.horizontal {
    height: 0 !important;
    border-top:
      var(--smart-guide-thickness, 1.5px)
      dashed
      #d313d7;
  }

  #critheraReaderRoot
  .smart-alignment-guide.canvas-guide.vertical {
    border-left-style: solid;
  }

  #critheraReaderRoot
  .smart-alignment-guide.canvas-guide.horizontal {
    border-top-style: solid;
  }

  #critheraReaderRoot
  .spacing-measure.container-distance {
    color: #d313d7;
    opacity: 1;
  }

  #critheraReaderRoot
  .spacing-measure.container-distance
  .spacing-measure-label {
    background: #d313d7;
  }

/* crithera-admin-editor-v14-fontsource */
#critheraReaderRoot
  .font-option[data-font-loading="true"]
  .font-name::after {
    content: " · carregando";
    color: var(--muted);
    font-family: Inter, sans-serif;
    font-size: 8px;
    font-weight: 500;
  }

/* crithera-admin-editor-v14-groups */
#critheraReaderRoot
  .reader-element.is-multi-selected {
    outline:
      calc(1.35px / max(var(--reader-scale, 1), .01))
      solid
      #8b3dff;
    outline-offset:
      calc(1px / max(var(--reader-scale, 1), .01));
  }

  #critheraReaderRoot
  .selection-box.multi-selection-transformer {
    border-style: solid;
    transform: none !important;
  }

  #critheraReaderRoot
  .selection-box.multi-selection-transformer
  .multi-selection-count {
    position: absolute;
    left: 50%;
    top:
      calc(
        -27px /
        max(var(--reader-scale, 1), .01)
      );
    transform: translateX(-50%);
    min-width:
      calc(
        22px /
        max(var(--reader-scale, 1), .01)
      );
    min-height:
      calc(
        18px /
        max(var(--reader-scale, 1), .01)
      );
    padding:
      0
      calc(
        5px /
        max(var(--reader-scale, 1), .01)
      );
    border-radius:
      calc(
        7px /
        max(var(--reader-scale, 1), .01)
      );
    background: #8b3dff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font:
      700
      calc(
        10px /
        max(var(--reader-scale, 1), .01)
      )/1
      Inter,
      sans-serif;
    pointer-events: none;
  }

  #critheraReaderRoot
  .multi-selection-toolbar-label {
    padding: 0 9px;
    color: var(--toolbar-text);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  #critheraReaderRoot
  .group-toolbar-button {
    min-width: 82px;
  }

  #critheraReaderRoot
  .marquee-selection-box {
    position: absolute;
    z-index: 2147482;
    border:
      calc(
        1.35px /
        max(var(--reader-scale, 1), .01)
      )
      solid
      #8b3dff;
    background: rgba(139,61,255,.12);
    pointer-events: none;
  }

  #critheraReaderRoot
  .layer-row.multi-active {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.075);
  }

  #critheraReaderRoot
  .layer-group-badge {
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    background: rgba(255,255,255,.07);
    color: #b9bdc4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 750;
  }

/* crithera-admin-editor-v14-correct-guides */
#critheraReaderRoot
  .smart-alignment-guide.vertical.element-center-guide {
    border-left-style: solid;
  }

  #critheraReaderRoot
  .smart-alignment-guide.horizontal.element-center-guide {
    border-top-style: dashed;
  }

  #critheraReaderRoot
  .smart-alignment-guide.element-edge-guide.vertical {
    border-left-style: dashed;
  }

  #critheraReaderRoot
  .smart-alignment-guide.element-edge-guide.horizontal {
    border-top-style: dashed;
  }

/* crithera-admin-editor-v15-visible-guides */
#critheraReaderRoot
  .smart-alignment-guide {
    z-index: 2147486 !important;
    pointer-events: none !important;
    opacity: 1 !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.vertical {
    width: 0 !important;
    background: transparent !important;
    border-left-color: #d313d7 !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.horizontal {
    height: 0 !important;
    background: transparent !important;
    border-top-color: #d313d7 !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.vertical.element-center-guide,
  #critheraReaderRoot
  .smart-alignment-guide.vertical.canvas-guide {
    border-left-style: solid !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.horizontal.element-center-guide {
    border-top-style: dashed !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.horizontal.canvas-guide {
    border-top-style: solid !important;
  }

/* crithera-admin-editor-v16-font-loading */
#critheraReaderRoot
  .reader-text[data-font-pending="true"] {
    opacity: .985;
  }

  #critheraReaderRoot
  .font-option[data-font-error="true"]
  .font-name::after {
    content: " · indisponível";
    color: var(--muted);
    font-family: Inter, sans-serif;
    font-size: 8px;
    font-weight: 600;
  }

/* crithera-admin-editor-v17-gradient-borders */
#critheraReaderRoot
  .reader-element {
    --cr-border-width: 0px;
    --cr-border-radius: 0px;
    --cr-border-gradient:
      linear-gradient(
        90deg,
        #000000,
        #ffffff
      );
  }

  #critheraReaderRoot
  .reader-element.has-gradient-border {
    border: 0 !important;
    isolation: isolate;
  }

  #critheraReaderRoot
  .reader-element.has-gradient-border::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 40;
    box-sizing: border-box;
    padding:
      var(--cr-border-width);
    border-radius:
      var(--cr-border-radius);
    background:
      var(--cr-border-gradient);
    pointer-events: none;

    -webkit-mask:
      linear-gradient(#000 0 0)
      content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    mask:
      linear-gradient(#000 0 0)
      content-box,
      linear-gradient(#000 0 0);
    mask-composite: exclude;
  }

  #critheraReaderRoot
  .reader-image-frame.has-gradient-border {
    overflow: hidden;
  }

  #critheraReaderRoot
  .context-shape-swatch {
    background-size: cover;
    background-position: center;
  }

/* crithera-admin-editor-v18-hex-search */
#critheraReaderRoot
  .color-circle-swatch.is-hex-search-result {
    position: relative;
    box-shadow:
      0 0 0 2px var(--surface),
      0 0 0 4px #8b3dff;
  }

  #critheraReaderRoot
  .color-circle-swatch.is-hex-search-result::after {
    content: "HEX";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    pointer-events: none;
  }

  #critheraReaderRoot
  .color-search-wrap.has-valid-hex {
    box-shadow:
      0 0 0 2px rgba(139,61,255,.12);
    border-radius: 8px;
  }

  #critheraReaderRoot
  .color-search-input.hex-invalid:not(:placeholder-shown) {
    color: #8a8f98;
  }

/* crithera-admin-editor-v19-lines */
#critheraReaderRoot .elements-section-heading {
    margin: 18px 0 9px;
  }

  #critheraReaderRoot .elements-section-heading strong,
  #critheraReaderRoot .elements-section-heading span {
    display: block;
  }

  #critheraReaderRoot .elements-section-heading strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
  }

  #critheraReaderRoot .elements-section-heading span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
  }

  #critheraReaderRoot .basic-lines-grid {
    display: grid;
    gap: 7px;
  }

  #critheraReaderRoot .basic-line-card {
    min-height: 58px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: var(--muted);
    display: grid;
    grid-template-columns: 74px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    font: 600 9.5px/1 Inter, sans-serif;
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
  }

  #critheraReaderRoot .basic-line-card:hover {
    border-color: rgba(255,255,255,.23);
    background: rgba(255,255,255,.07);
    color: var(--text);
  }

  #critheraReaderRoot .basic-line-preview {
    width: 64px;
    height: 18px;
    display: flex;
    align-items: center;
  }

  #critheraReaderRoot .basic-line-preview::before {
    content: "";
    width: 100%;
    border-top: 4px solid #d8d9dc;
    border-radius: 999px;
  }

  #critheraReaderRoot .basic-line-preview.dashed::before {
    border-top-style: dashed;
  }

  #critheraReaderRoot .basic-line-preview.dotted::before {
    border-top-style: dotted;
  }

  #critheraReaderRoot .reader-line {
    box-sizing: border-box;
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
    touch-action: none;
  }

  #critheraReaderRoot .reader-line-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    pointer-events: none;
  }

  #critheraReaderRoot .reader-line-hit {
    pointer-events: stroke;
    cursor: pointer;
  }

  #critheraReaderRoot .selection-box.line-transformer {
    min-height: 24px;
  }

  #critheraReaderRoot .selection-box.line-transformer .resize-handle.side.ml,
  #critheraReaderRoot .selection-box.line-transformer .resize-handle.side.mr {
    width: calc(10px / max(var(--reader-scale, 1), .01));
    height: calc(10px / max(var(--reader-scale, 1), .01));
    border-radius: 50%;
  }

  #critheraReaderRoot .context-line-select {
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: #d7dade;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  #critheraReaderRoot .context-line-select span {
    color: #737883;
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
  }

  #critheraReaderRoot .context-line-select select {
    width: 98px;
    height: 28px;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: 600 9.5px/1 Inter, sans-serif;
    cursor: pointer;
  }

  #critheraReaderRoot .context-line-select option {
    background: #151618;
    color: #f7f8f8;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .basic-line-card {
      min-height: 54px;
    }
  }

/* crithera-admin-editor-v20-line-toolbar */
#critheraReaderRoot .canva-line-toolbar {
    max-width: 100%;
    padding: 5px 8px;
    gap: 2px;
  }

  #critheraReaderRoot .line-toolbar-identity {
    height: 36px;
    padding: 0 10px 0 7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--toolbar-text);
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
  }

  #critheraReaderRoot .line-toolbar-identity svg {
    width: 18px;
    height: 18px;
  }

  #critheraReaderRoot .line-toolbar-color-button {
    position: relative;
  }

  #critheraReaderRoot .line-toolbar-color-dot {
    width: 21px;
    height: 21px;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  }

  #critheraReaderRoot .line-toolbar-option-grid {
    display: grid;
    gap: 5px;
  }

  #critheraReaderRoot .line-toolbar-option {
    width: 100%;
    min-height: 42px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--toolbar-text);
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) 18px;
    align-items: center;
    gap: 9px;
    text-align: left;
    cursor: pointer;
  }

  #critheraReaderRoot .line-toolbar-option:hover {
    background: var(--toolbar-hover);
  }

  #critheraReaderRoot .line-toolbar-option.active {
    background: var(--toolbar-active);
    color: var(--toolbar-accent);
  }

  #critheraReaderRoot .line-toolbar-option-preview {
    width: 40px;
    height: 24px;
    display: grid;
    place-items: center;
  }

  #critheraReaderRoot .line-toolbar-option-preview svg {
    width: 40px;
    height: 24px;
    overflow: visible;
  }

  #critheraReaderRoot .line-toolbar-option-copy {
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
  }

  #critheraReaderRoot .line-toolbar-option-check {
    font-size: 13px;
    font-weight: 800;
    text-align: center;
  }

  #critheraReaderRoot .line-style-preview {
    width: 38px;
    height: 0;
    border-top: 3px solid currentColor;
  }

  #critheraReaderRoot .line-style-preview.dashed {
    border-top-style: dashed;
  }

  #critheraReaderRoot .line-style-preview.dotted {
    border-top-style: dotted;
    border-top-width: 4px;
  }

  #critheraReaderRoot .line-toolbar-slider-popover {
    width: 250px !important;
  }

  #critheraReaderRoot .line-toolbar-divider-copy {
    height: 28px;
    display: inline-flex;
    align-items: center;
    color: var(--toolbar-muted);
    font-size: 10px;
    font-weight: 600;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .canva-line-toolbar {
      min-width: max-content;
    }

    #critheraReaderRoot .line-toolbar-identity {
      display: none;
    }
  }

/* crithera-admin-editor-v21-line-color-fix */
#critheraReaderRoot
  .reader-line,
  #critheraReaderRoot
  .reader-line.has-gradient-border {
    background: transparent !important;
    border: 0 !important;
  }

  #critheraReaderRoot
  .reader-line::after,
  #critheraReaderRoot
  .reader-line.has-gradient-border::after {
    content: none !important;
    display: none !important;
  }

  #critheraReaderRoot
  .reader-line-visible {
    display: inline !important;
    visibility: visible !important;
    vector-effect: non-scaling-stroke;
  }

/* crithera-admin-editor-v22-line-gradient-fix */
#critheraReaderRoot
  .reader-line-visible {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    vector-effect: non-scaling-stroke;
  }

/* crithera-admin-editor-v23-performance */
#critheraReaderRoot
  .reader-element.is-keyboard-moving {
    will-change: left, top;
  }

/* crithera-admin-editor-v24-performance-images */
#critheraReaderRoot
  .reader-element.is-dragging,
  #critheraReaderRoot
  .selection-box.is-dragging {
    will-change: left, top;
  }

  #critheraReaderRoot
  .reader-image-content,
  #critheraReaderRoot
  .crop-image-inside,
  #critheraReaderRoot
  .crop-image-outside {
    object-fit: contain !important;
    image-rendering: auto;
    backface-visibility: hidden;
    will-change: auto;
  }

  #critheraReaderRoot
  .reader-image-frame.is-resizing
  .reader-image-content,
  #critheraReaderRoot
  .image-crop-editor.is-panning
  .crop-image-inside,
  #critheraReaderRoot
  .image-crop-editor.is-panning
  .crop-image-outside {
    will-change: left, top, width, height;
  }

/* crithera-admin-editor-v25-canva-guides */
#critheraReaderRoot
  .smart-alignment-guide {
    opacity: 1;
  }

  #critheraReaderRoot
  .smart-alignment-guide.element-center-guide.vertical,
  #critheraReaderRoot
  .smart-alignment-guide.element-center-guide.horizontal,
  #critheraReaderRoot
  .smart-alignment-guide.element-edge-guide.vertical,
  #critheraReaderRoot
  .smart-alignment-guide.element-edge-guide.horizontal {
    border-color: #d313d7;
  }

  #critheraReaderRoot
  .smart-spacing-layer {
    position: absolute;
    inset: 0;
    z-index: 2147475;
    display: none;
    pointer-events: none;
  }

  #critheraReaderRoot
  .smart-spacing-layer.visible {
    display: block;
  }

  #critheraReaderRoot
  .smart-spacing-gap {
    position: absolute;
    box-sizing: border-box;
    background:
      rgba(211,19,215,.09);
    color: #d313d7;
  }

  #critheraReaderRoot
  .smart-spacing-gap.horizontal-gap {
    border-left:
      var(--smart-guide-thickness, 1.5px)
      dashed
      rgba(211,19,215,.62);
    border-right:
      var(--smart-guide-thickness, 1.5px)
      dashed
      rgba(211,19,215,.62);
  }

  #critheraReaderRoot
  .smart-spacing-gap.vertical-gap {
    border-top:
      var(--smart-guide-thickness, 1.5px)
      dashed
      rgba(211,19,215,.62);
    border-bottom:
      var(--smart-guide-thickness, 1.5px)
      dashed
      rgba(211,19,215,.62);
  }

  #critheraReaderRoot
  .smart-spacing-label {
    position: absolute;
    left: 50%;
    top: 50%;
    min-width:
      calc(22px / max(var(--reader-scale, 1), .01));
    height:
      calc(18px / max(var(--reader-scale, 1), .01));
    padding:
      0
      calc(5px / max(var(--reader-scale, 1), .01));
    border-radius:
      calc(8px / max(var(--reader-scale, 1), .01));
    transform: translate(-50%, -50%);
    background: #d313d7;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font:
      700
      calc(10px / max(var(--reader-scale, 1), .01))
      / 1
      Inter,
      sans-serif;
    white-space: nowrap;
    box-shadow:
      0
      calc(1px / max(var(--reader-scale, 1), .01))
      calc(3px / max(var(--reader-scale, 1), .01))
      rgba(57,0,58,.25);
  }

  /*
    Medidas detalhadas não aparecem no uso normal.
    São exibidas somente ao segurar Alt/Option.
  */
  #critheraReaderRoot
  .spacing-measures-layer {
    display: none;
  }

  #critheraReaderRoot
  .spacing-measures-layer.inspect-visible {
    display: block;
  }

/* crithera-admin-editor-v26-margins-center-fix */
#critheraReaderRoot
  .safe-margin-overlay {
    border:
      var(--smart-guide-thickness, 1.5px)
      solid
      rgba(211,19,215,.78) !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    z-index: 2147471 !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.canvas-guide.vertical {
    border-left-style: solid !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.canvas-guide.horizontal {
    border-top-style: solid !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.element-center-guide.vertical {
    border-left-style: dashed !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.element-center-guide.horizontal {
    border-top-style: dashed !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.safe-margin-guide.vertical {
    border-left-style: solid !important;
  }

  #critheraReaderRoot
  .smart-alignment-guide.safe-margin-guide.horizontal {
    border-top-style: solid !important;
  }

/* crithera-admin-editor-v27-dynamic-margins */
/*
    A margem não fica mais fixa.
    Este retângulo existe somente durante
    o encaixe magnético em uma margem.
  */
  #critheraReaderRoot
  .dynamic-safe-margin-overlay {
    position: absolute;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2147472;
    display: none;
    border:
      var(--smart-guide-thickness, 1.25px)
      dashed
      rgba(211,19,215,.48);
    background: transparent;
    border-radius: 0;
  }

  #critheraReaderRoot
  .dynamic-safe-margin-overlay.visible {
    display: block;
  }

  /*
    A margem dinâmica não usa a linha forte
    das demais guias magnéticas.
  */
  #critheraReaderRoot
  .smart-alignment-guide.safe-margin-guide {
    display: none !important;
  }

/* crithera-admin-published-templates-panel */
#critheraReaderRoot .template-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 7px;
  margin-bottom: 11px;
}

#critheraReaderRoot .template-catalog-search {
  height: 36px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  background: rgba(255,255,255,.045);
  color: var(--text);
  font-size: 10.5px;
}

#critheraReaderRoot .template-catalog-search:focus {
  border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.07);
}

#critheraReaderRoot .template-catalog-search::placeholder {
  color: var(--muted-2);
}

#critheraReaderRoot .template-catalog-refresh {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

#critheraReaderRoot .template-catalog-refresh:hover,
#critheraReaderRoot .template-catalog-refresh:focus {
  color: var(--text);
  background: rgba(255,255,255,.075);
}

#critheraReaderRoot .template-catalog-refresh:disabled {
  opacity: .45;
  cursor: default;
}

#critheraReaderRoot .template-catalog-refresh .ui-icon {
  width: 15px;
  height: 15px;
}

#critheraReaderRoot .template-catalog-status {
  min-height: 18px;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.45;
}

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

#critheraReaderRoot .template-catalog-card {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

#critheraReaderRoot .template-catalog-card:hover,
#critheraReaderRoot .template-catalog-card:focus {
  border-color: var(--line-strong);
  background: var(--panel-2);
  transform: translateY(-1px);
}

#critheraReaderRoot .template-catalog-card:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
}

#critheraReaderRoot .template-catalog-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 0 48%, var(--line) 48% 49%, transparent 49% 100%),
    rgba(255,255,255,.035);
  display: grid;
  place-items: center;
}

#critheraReaderRoot .template-catalog-thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
}

#critheraReaderRoot .template-catalog-thumb .ui-icon {
  width: 25px;
  height: 25px;
  color: var(--muted-2);
  opacity: .6;
}

#critheraReaderRoot .template-catalog-copy {
  padding: 8px;
}

#critheraReaderRoot .template-catalog-copy strong,
#critheraReaderRoot .template-catalog-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

#critheraReaderRoot .template-catalog-copy strong {
  min-height: 28px;
  color: var(--text);
  font-size: 9.8px;
  line-height: 1.4;
  font-weight: 600;
  white-space: normal;
}

#critheraReaderRoot .template-catalog-copy span {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8.5px;
  white-space: nowrap;
}

#critheraReaderRoot .template-catalog-empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  #critheraReaderRoot .template-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* crithera-pexels-integration-v1 */
#critheraReaderRoot .photos-panel-intro {
    margin-bottom: 12px;
  }

  #critheraReaderRoot .photos-source-tabs {
    margin-bottom: 12px;
  }

  #critheraReaderRoot .photos-source-tab {
    cursor: pointer;
    transition:
      background-color .14s ease,
      border-color .14s ease,
      color .14s ease;
  }

  #critheraReaderRoot .photos-source-tab:hover:not(:disabled) {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.055);
    color: var(--text);
  }

  #critheraReaderRoot .photos-source-tab:disabled {
    opacity: .38;
    cursor: not-allowed;
  }

  #critheraReaderRoot .pexels-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 7px;
    margin-bottom: 11px;
  }

  #critheraReaderRoot .pexels-search-field {
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(255,255,255,.045);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #critheraReaderRoot .pexels-search-field .ui-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--muted);
  }

  #critheraReaderRoot .pexels-search-field input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: 500 11px/1 Inter, sans-serif;
  }

  #critheraReaderRoot .pexels-search-field input::placeholder {
    color: var(--muted-2);
  }

  #critheraReaderRoot .pexels-search-submit {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #f7f8f8;
    color: #08090a;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition:
      transform .14s ease,
      opacity .14s ease;
  }

  #critheraReaderRoot .pexels-search-submit:hover {
    transform: translateY(-1px);
  }

  #critheraReaderRoot .pexels-search-submit:disabled {
    opacity: .45;
    cursor: wait;
    transform: none;
  }

  #critheraReaderRoot .pexels-search-submit .ui-icon {
    width: 16px;
    height: 16px;
  }

  #critheraReaderRoot .pexels-status {
    min-height: 18px;
    margin: 0 1px 8px;
    color: var(--muted-2);
    font-size: 9px;
    line-height: 1.45;
  }

  #critheraReaderRoot .pexels-status.error {
    color: #e6e7e9;
  }

  #critheraReaderRoot .pexels-loading {
    min-height: 170px;
    padding: 24px 12px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.016);
    display: grid;
    place-items: center;
    text-align: center;
  }

  #critheraReaderRoot .pexels-loading[hidden] {
    display: none;
  }

  #critheraReaderRoot .pexels-loading-inner {
    display: grid;
    justify-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 9.5px;
  }

  #critheraReaderRoot .pexels-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,.16);
    border-top-color: #f7f8f8;
    border-radius: 50%;
    animation: critheraPexelsSpin .75s linear infinite;
  }

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

  #critheraReaderRoot .pexels-empty {
    min-height: 170px;
    padding: 22px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  #critheraReaderRoot .pexels-empty[hidden] {
    display: none;
  }

  #critheraReaderRoot .pexels-empty .ui-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 9px;
    color: var(--muted);
  }

  #critheraReaderRoot .pexels-empty strong {
    color: var(--text);
    font-size: 10.5px;
    font-weight: 650;
  }

  #critheraReaderRoot .pexels-empty span {
    max-width: 210px;
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 8.8px;
    line-height: 1.5;
  }

  #critheraReaderRoot .pexels-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #critheraReaderRoot .pexels-photo-grid:empty {
    display: none;
  }

  #critheraReaderRoot .pexels-photo-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #222326;
    overflow: hidden;
  }

  #critheraReaderRoot .pexels-photo-use {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  #critheraReaderRoot .pexels-photo-use::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to top,
        rgba(0,0,0,.66) 0,
        rgba(0,0,0,.08) 34%,
        rgba(0,0,0,0) 58%
      );
    opacity: .86;
    transition: opacity .16s ease;
  }

  #critheraReaderRoot .pexels-photo-use:hover::after,
  #critheraReaderRoot .pexels-photo-use:focus-visible::after {
    opacity: 1;
  }

  #critheraReaderRoot .pexels-photo-use:focus-visible {
    outline: 2px solid #f7f8f8;
    outline-offset: -3px;
  }

  #critheraReaderRoot .pexels-photo-use img {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    transition: transform .22s ease;
  }

  #critheraReaderRoot .pexels-photo-use:hover img,
  #critheraReaderRoot .pexels-photo-use:focus-visible img {
    transform: scale(1.025);
  }

  #critheraReaderRoot .pexels-photo-credit {
    position: absolute;
    right: 7px;
    bottom: 7px;
    left: 7px;
    z-index: 3;
    overflow: hidden;
    color: rgba(255,255,255,.91);
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    font: 550 7.8px/1.25 Inter, sans-serif;
  }

  #critheraReaderRoot .pexels-photo-credit:hover,
  #critheraReaderRoot .pexels-photo-credit:focus-visible {
    color: #ffffff;
    text-decoration: underline;
  }

  #critheraReaderRoot .pexels-load-more {
    width: 100%;
    min-height: 38px;
    margin-top: 11px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(255,255,255,.045);
    color: var(--text);
    font: 600 9.5px/1 Inter, sans-serif;
    cursor: pointer;
  }

  #critheraReaderRoot .pexels-load-more:hover {
    background: rgba(255,255,255,.075);
  }

  #critheraReaderRoot .pexels-load-more:disabled {
    opacity: .45;
    cursor: wait;
  }

  #critheraReaderRoot .pexels-load-more[hidden] {
    display: none;
  }

  #critheraReaderRoot .pexels-attribution {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 8.5px;
    line-height: 1.5;
    text-align: center;
  }

  #critheraReaderRoot .pexels-attribution a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
  }

  #critheraReaderRoot .pexels-attribution a:hover,
  #critheraReaderRoot .pexels-attribution a:focus-visible {
    text-decoration: underline;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .pexels-photo-grid {
      grid-template-columns:
        repeat(3, minmax(0, 1fr));
    }

    #critheraReaderRoot .pexels-photo-credit {
      font-size: 7.4px;
    }
  }

  @media (max-width: 470px) {
    #critheraReaderRoot .pexels-photo-grid {
      grid-template-columns:
        repeat(2, minmax(0, 1fr));
    }
  }

/* crithera-library-integration-v1 */
#critheraReaderRoot .crithera-library-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 7px;
    margin-bottom: 11px;
  }

  #critheraReaderRoot .crithera-library-category {
    width: 100%;
    height: 38px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    outline: 0;
    background: rgba(255,255,255,.045);
    color: var(--text);
    font: 500 10px/1 Inter, sans-serif;
  }

  #critheraReaderRoot .crithera-library-category option {
    background: #151617;
    color: #f7f8f8;
  }

  #critheraReaderRoot .crithera-library-photo-title {
    position: absolute;
    right: 7px;
    bottom: 7px;
    left: 7px;
    z-index: 3;
    overflow: hidden;
    color: rgba(255,255,255,.94);
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 550 7.8px/1.25 Inter, sans-serif;
    pointer-events: none;
  }

  #critheraReaderRoot .crithera-library-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 3;
    min-height: 20px;
    max-width: calc(100% - 14px);
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 7px;
    background: rgba(8,9,10,.68);
    color: #fff;
    backdrop-filter: blur(8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 600 7.5px/1 Inter, sans-serif;
    display: inline-flex;
    align-items: center;
  }

  #critheraReaderRoot .crithera-library-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 8.5px;
    line-height: 1.5;
    text-align: center;
  }

  @media (max-width: 470px) {
    #critheraReaderRoot .crithera-library-filter-row {
      grid-template-columns: 1fr;
    }
  }

/* crithera-admin-editor-v28-carousel-json-color-scope */
#critheraReaderRoot {
    --pages-h: 86px;
    accent-color: #111214;
    contain: layout paint style;
  }

  #critheraReaderRoot .pagesbar {
    min-width: 0;
    padding: 10px 14px;
    gap: 12px;
    overflow: hidden;
    background: #fbfbfc;
    border-top: 1px solid #d9dce1;
    box-shadow: 0 -8px 24px -22px rgba(20,24,30,.35);
  }

  #critheraReaderRoot .pagesbar-heading {
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
  }

  #critheraReaderRoot .pages-label {
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #25292f;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .055em;
  }

  #critheraReaderRoot .pages-counter {
    color: #7a8089;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
  }

  #critheraReaderRoot .pages-list {
    min-width: 0;
    flex: 1 1 auto;
    align-self: stretch;
    padding: 2px 4px 3px 2px;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #c8ccd2 transparent;
  }

  #critheraReaderRoot .pages-list::-webkit-scrollbar {
    height: 5px;
  }

  #critheraReaderRoot .pages-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c8ccd2;
  }

  #critheraReaderRoot .page-thumb {
    width: 50px;
    height: 63px;
    flex: 0 0 50px;
    border: 1px solid #c9cdd3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(31,36,45,.08);
  }

  #critheraReaderRoot .page-thumb:hover {
    border-color: #7b818a;
    box-shadow: 0 7px 17px rgba(31,36,45,.12);
  }

  #critheraReaderRoot .page-thumb.active {
    border-color: #111214;
    box-shadow:
      0 0 0 2px rgba(17,18,20,.10),
      0 7px 18px rgba(31,36,45,.13);
  }

  #critheraReaderRoot .page-number {
    left: 4px;
    bottom: 3px;
    min-width: 16px;
    height: 16px;
    border-radius: 5px;
    background: rgba(17,18,20,.82);
    font-size: 7.5px;
  }

  #critheraReaderRoot .page-actions {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #critheraReaderRoot .page-action-button {
    min-height: 52px;
    padding: 0 12px 0 10px;
    border: 1px solid #d2d5da;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    cursor: pointer;
    transition:
      transform .14s ease,
      box-shadow .14s ease,
      border-color .14s ease,
      background-color .14s ease;
  }

  #critheraReaderRoot .page-action-button:hover {
    transform: translateY(-1px);
  }

  #critheraReaderRoot .page-action-button:active {
    transform: translateY(0);
  }

  #critheraReaderRoot .page-action-button:focus-visible {
    outline: 2px solid #111214;
    outline-offset: 2px;
  }

  #critheraReaderRoot .page-action-button:disabled {
    opacity: .46;
    cursor: wait;
    transform: none;
  }

  #critheraReaderRoot .page-action-button.secondary {
    background: #ffffff;
    color: #272b31;
    box-shadow: 0 5px 15px rgba(31,36,45,.07);
  }

  #critheraReaderRoot .page-action-button.secondary:hover {
    border-color: #aeb3ba;
    box-shadow: 0 8px 18px rgba(31,36,45,.10);
  }

  #critheraReaderRoot .page-action-button.primary {
    border-color: #111214;
    background: #111214;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(17,18,20,.16);
  }

  #critheraReaderRoot .page-action-button.primary:hover {
    background: #000000;
    box-shadow: 0 10px 24px rgba(17,18,20,.22);
  }

  #critheraReaderRoot .page-action-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
  }

  #critheraReaderRoot .page-action-button.secondary .page-action-icon {
    border: 1px solid #e0e2e6;
    background: #f5f6f7;
    color: #34383f;
  }

  #critheraReaderRoot .page-action-button.primary .page-action-icon {
    background: rgba(255,255,255,.11);
    color: #ffffff;
  }

  #critheraReaderRoot .page-action-icon .ui-icon {
    width: 16px;
    height: 16px;
  }

  #critheraReaderRoot .page-action-copy {
    display: grid;
    gap: 3px;
    text-align: left;
  }

  #critheraReaderRoot .page-action-copy strong {
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
  }

  #critheraReaderRoot .page-action-copy small {
    color: #81868f;
    font-size: 8px;
    font-weight: 550;
    line-height: 1;
  }

  #critheraReaderRoot .page-action-button.primary .page-action-copy small {
    color: rgba(255,255,255,.62);
  }

  /*
    Quarentena cromática:
    a interface permanece monocromática. Cores do design continuam
    permitidas somente na prancheta, miniaturas e controles de cor.
  */
  #critheraReaderRoot input,
  #critheraReaderRoot select,
  #critheraReaderRoot textarea,
  #critheraReaderRoot button {
    accent-color: #111214;
  }

  #critheraReaderRoot input:not([type="color"]):invalid,
  #critheraReaderRoot textarea:invalid,
  #critheraReaderRoot select:invalid {
    color: inherit !important;
    border-color: var(--line-strong) !important;
    outline-color: #111214 !important;
    box-shadow: none !important;
  }

  #critheraReaderRoot input:not([type="color"]):user-invalid,
  #critheraReaderRoot textarea:user-invalid,
  #critheraReaderRoot select:user-invalid {
    color: inherit !important;
    border-color: var(--line-strong) !important;
    outline-color: #111214 !important;
    box-shadow: none !important;
  }

  #critheraReaderRoot .font-option[data-font-error="true"] .font-name::after,
  #critheraReaderRoot [class*="status"].error,
  #critheraReaderRoot .admin-thumbnail-preview.invalid {
    color: var(--muted) !important;
    border-color: var(--line-strong) !important;
  }

  #critheraReaderRoot .admin-toast.error {
    background: #ffffff !important;
    color: #0a0a0a !important;
    border-color: #d8d8dc !important;
  }

  #critheraReaderRoot ::selection {
    background: rgba(17,18,20,.18);
    color: inherit;
  }

  @media (max-width: 1180px) {
    #critheraReaderRoot .page-action-copy small {
      display: none;
    }

    #critheraReaderRoot .page-action-button {
      min-height: 44px;
    }
  }

  @media (max-width: 940px) {
    #critheraReaderRoot .pagesbar-heading {
      display: none;
    }

    #critheraReaderRoot .page-action-copy {
      display: none;
    }

    #critheraReaderRoot .page-action-button {
      width: 42px;
      min-width: 42px;
      min-height: 42px;
      padding: 0;
      justify-content: center;
    }

    #critheraReaderRoot .page-action-icon {
      width: 30px;
      height: 30px;
    }
  }

  @media (max-width: 760px) {
    #critheraReaderRoot {
      --pages-h: 72px;
    }

    #critheraReaderRoot .pagesbar {
      display: flex !important;
      min-height: var(--pages-h);
      height: var(--pages-h);
      margin-bottom: 62px;
      padding: 7px 8px;
      gap: 7px;
    }

    #critheraReaderRoot .pages-list {
      padding: 1px 2px 2px;
      gap: 7px;
    }

    #critheraReaderRoot .page-thumb {
      width: 42px;
      height: 54px;
      flex-basis: 42px;
    }

    #critheraReaderRoot .page-actions {
      gap: 5px;
    }

    #critheraReaderRoot .page-action-button {
      width: 38px;
      min-width: 38px;
      height: 38px;
      min-height: 38px;
      border-radius: 9px;
    }

    #critheraReaderRoot .page-action-icon {
      width: 27px;
      height: 27px;
      border-radius: 7px;
    }

    #critheraReaderRoot .page-action-icon .ui-icon {
      width: 15px;
      height: 15px;
    }
  }

/* crithera-editor-resources-integration-v3 */
#critheraReaderRoot .editor-resources-intro {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  #critheraReaderRoot .editor-resources-intro strong,
  #critheraReaderRoot .editor-resources-intro span {
    display: block;
  }

  #critheraReaderRoot .editor-resources-intro strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
  }

  #critheraReaderRoot .editor-resources-intro span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.45;
  }

  #critheraReaderRoot .editor-resources-refresh {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot .editor-resources-refresh:hover,
  #critheraReaderRoot .editor-resources-refresh:focus {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.07);
    color: var(--text);
  }

  #critheraReaderRoot .editor-resources-refresh .ui-icon {
    width: 15px;
    height: 15px;
  }

  #critheraReaderRoot .editor-resources-search {
    height: 39px;
    margin-bottom: 11px;
    padding-left: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
  }

  #critheraReaderRoot .editor-resources-search:focus-within {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.06);
  }

  #critheraReaderRoot .editor-resources-search .ui-icon {
    width: 15px;
    height: 15px;
    color: var(--muted);
  }

  #critheraReaderRoot .editor-resources-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: 500 10.5px/1 Inter, sans-serif;
  }

  #critheraReaderRoot .editor-resources-search input::placeholder {
    color: var(--muted-2);
  }

  #critheraReaderRoot .editor-resources-search button {
    align-self: stretch;
    padding: 0 11px;
    border-left: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: 9px;
    font-weight: 650;
    cursor: pointer;
  }

  #critheraReaderRoot .editor-resources-tabs {
    margin: 0 -2px 12px;
    padding: 0 2px 4px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #critheraReaderRoot .editor-resources-tabs::-webkit-scrollbar {
    display: none;
  }

  #critheraReaderRoot .editor-resources-tab {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.022);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 650;
    cursor: pointer;
  }

  #critheraReaderRoot .editor-resources-tab:hover,
  #critheraReaderRoot .editor-resources-tab:focus {
    border-color: var(--line-strong);
    color: var(--text);
  }

  #critheraReaderRoot .editor-resources-tab.active {
    border-color: #f7f8f8;
    background: #f7f8f8;
    color: #08090a;
  }

  #critheraReaderRoot .editor-resources-tab b {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    display: grid;
    place-items: center;
    font-size: 7.5px;
    font-weight: 700;
  }

  #critheraReaderRoot .editor-resources-tab.active b {
    background: rgba(8,9,10,.10);
  }

  #critheraReaderRoot .editor-resources-status {
    min-height: 18px;
    margin-bottom: 8px;
    color: var(--muted-2);
    font-size: 8.5px;
    line-height: 1.4;
  }

  #critheraReaderRoot .editor-resources-status.error {
    color: #d5d7db;
  }

  #critheraReaderRoot .editor-resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #critheraReaderRoot .editor-resource-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.022);
    overflow: hidden;
    transition: border-color .14s ease, background-color .14s ease, transform .14s ease;
  }

  #critheraReaderRoot .editor-resource-card:hover,
  #critheraReaderRoot .editor-resource-card:focus-within {
    border-color: rgba(255,255,255,.23);
    background: rgba(255,255,255,.05);
    transform: translateY(-1px);
  }

  #critheraReaderRoot .editor-resource-preview {
    position: relative;
    aspect-ratio: 1;
    border-bottom: 1px solid var(--line);
    background:
      linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 14px 14px,
      linear-gradient(45deg, transparent 75%, rgba(255,255,255,.035) 75%) 0 0 / 14px 14px,
      linear-gradient(45deg, transparent 75%, rgba(255,255,255,.035) 75%) 7px -7px / 14px 14px,
      linear-gradient(45deg, rgba(255,255,255,.035) 25%, rgba(255,255,255,.012) 25%) 7px -7px / 14px 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
  }

  #critheraReaderRoot .editor-resource-preview img {
    width: 82%;
    height: 82%;
    max-width: none;
    display: block;
    object-fit: contain;
  }

  #critheraReaderRoot .editor-resource-preview.texture img,
  #critheraReaderRoot .editor-resource-preview.overlay img,
  #critheraReaderRoot .editor-resource-preview.mockup img {
    width: 100%;
    height: 100%;
  }

  #critheraReaderRoot .editor-resource-frame-visual {
    width: 82%;
    height: 82%;
    background-color: #d9dadd;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  #critheraReaderRoot .editor-resource-badges {
    position: absolute;
    top: 6px;
    right: 6px;
    left: 6px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
    pointer-events: none;
  }

  #critheraReaderRoot .editor-resource-badge {
    min-height: 19px;
    padding: 0 6px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 6px;
    background: rgba(8,9,10,.73);
    color: #f7f8f8;
    backdrop-filter: blur(7px);
    display: inline-flex;
    align-items: center;
    font-size: 7px;
    font-weight: 700;
  }

  #critheraReaderRoot .editor-resource-copy {
    padding: 9px;
  }

  #critheraReaderRoot .editor-resource-name {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9.5px;
    font-weight: 650;
  }

  #critheraReaderRoot .editor-resource-meta {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted-2);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 7.8px;
  }

  #critheraReaderRoot .editor-resource-actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
  }

  #critheraReaderRoot .editor-resource-use,
  #critheraReaderRoot .editor-resource-background {
    min-height: 30px;
    border-radius: 7px;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
  }

  #critheraReaderRoot .editor-resource-use {
    padding: 0 8px;
    background: #f7f8f8;
    color: #08090a;
  }

  #critheraReaderRoot .editor-resource-background {
    width: 30px;
    padding: 0;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.035);
    color: var(--text);
    display: grid;
    place-items: center;
  }

  #critheraReaderRoot .editor-resource-background .ui-icon {
    width: 13px;
    height: 13px;
  }

  #critheraReaderRoot .editor-resources-empty {
    min-height: 170px;
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: rgba(255,255,255,.015);
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  #critheraReaderRoot .editor-resources-empty[hidden] {
    display: none !important;
  }

  #critheraReaderRoot .editor-resources-empty .ui-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 9px;
    opacity: .55;
  }

  #critheraReaderRoot .editor-resources-empty strong {
    color: var(--text);
    font-size: 10.5px;
  }

  #critheraReaderRoot .editor-resources-empty span {
    max-width: 210px;
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 8.5px;
    line-height: 1.45;
  }

  #critheraReaderRoot .editor-resources-load-more {
    width: 100%;
    min-height: 36px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    font-size: 9px;
    font-weight: 650;
    cursor: pointer;
  }

  #critheraReaderRoot .editor-resources-load-more:hover {
    background: rgba(255,255,255,.065);
  }

  #critheraReaderRoot .editor-resources-load-more:disabled,
  #critheraReaderRoot .editor-resources-refresh:disabled {
    opacity: .45;
    cursor: wait;
  }

  #critheraReaderRoot .native-elements-block {
    margin-top: 16px;
    border-top: 1px solid var(--line);
  }

  #critheraReaderRoot .native-elements-block summary {
    min-height: 48px;
    padding: 12px 2px 8px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
  }

  #critheraReaderRoot .native-elements-block summary::-webkit-details-marker {
    display: none;
  }

  #critheraReaderRoot .native-elements-block summary span,
  #critheraReaderRoot .native-elements-block summary small {
    display: block;
  }

  #critheraReaderRoot .native-elements-block summary span {
    font-size: 10px;
    font-weight: 650;
  }

  #critheraReaderRoot .native-elements-block summary small {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 8px;
  }

  #critheraReaderRoot .native-elements-content {
    padding-top: 8px;
  }

  #critheraReaderRoot .resource-frame-mask {
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  #critheraReaderRoot .context-frame-replace {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #f7f8f8;
    border-radius: 8px;
    background: #f7f8f8;
    color: #08090a;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
  }

  #critheraReaderRoot .context-frame-replace .ui-icon {
    width: 14px;
    height: 14px;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .editor-resources-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 520px) {
    #critheraReaderRoot .editor-resources-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

/* crithera-admin-editor-v30-elementor-button-lock */
/*
    Trava final da navegação contra estilos globais
    de botões aplicados pelo Elementor ou pelo tema.
  */

  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item,
  html body
  .elementor
  #critheraReaderRoot
  nav.rail
  > button.rail-item,
  html body
  [class*="elementor-kit-"]
  #critheraReaderRoot
  nav.rail
  > button.rail-item {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    color: #858a93 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline-color: transparent !important;
  }

  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item
  :is(
    .rail-icon,
    .rail-icon svg,
    span
  ) {
    color: inherit !important;
  }

  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item:hover:not(:disabled),
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item:focus-visible:not(:disabled) {
    background-color: #151617 !important;
    background-image: none !important;
    border-color: rgba(255,255,255,.09) !important;
    color: #d7dade !important;
    box-shadow: none !important;
  }

  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item.active,
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item[aria-current="page"],
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item[aria-pressed="true"],
  html body
  .elementor
  #critheraReaderRoot
  nav.rail
  > button.rail-item.active,
  html body
  [class*="elementor-kit-"]
  #critheraReaderRoot
  nav.rail
  > button.rail-item.active {
    background-color: #1a1b1d !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: #f7f8f8 !important;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.025) !important;
    text-shadow: none !important;
    outline-color: transparent !important;
  }

  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item.active::before,
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item[aria-current="page"]::before,
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item[aria-pressed="true"]::before {
    background-color: #f7f8f8 !important;
    background-image: none !important;
  }

  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item:active:not(:disabled) {
    background-color: #202123 !important;
    background-image: none !important;
    color: #ffffff !important;
  }

  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item:disabled {
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    color: #666b74 !important;
    box-shadow: none !important;
  }

  @media (max-width: 760px) {
    html body
    #critheraReaderRoot
    nav.rail
    > button.rail-item {
      background-color: transparent !important;
      border-color: transparent !important;
      color: #64646e !important;
    }

    html body
    #critheraReaderRoot.mobile-drawer-open
    nav.rail
    > button.rail-item.active,
    html body
    #critheraReaderRoot.mobile-drawer-open
    nav.rail
    > button.rail-item[aria-current="page"],
    html body
    #critheraReaderRoot.mobile-drawer-open
    nav.rail
    > button.rail-item[aria-pressed="true"] {
      background-color: #eceef1 !important;
      border-color: #d7d9de !important;
      color: #0f0f14 !important;
      box-shadow: none !important;
    }

    html body
    #critheraReaderRoot:not(.mobile-drawer-open)
    nav.rail
    > button.rail-item.active {
      background-color: transparent !important;
      border-color: transparent !important;
      color: #64646e !important;
      box-shadow: none !important;
    }
  }

  #critheraReaderRoot
  :is(
    .topbar,
    .contextbar,
    .rail,
    .sidepanel,
    .admin-inspector,
    .pagesbar,
    .zoom-box
  )
  button:not(
    .color-swatch
  ):not(
    .color-circle-swatch
  ):not(
    .color-add-button
  ):not(
    .gradient-stop
  ):not(
    .gradient-style-button
  ) {
    --e-global-color-primary: #f7f8f8 !important;
    --e-global-color-accent: #f7f8f8 !important;
    --wp-admin-theme-color: #f7f8f8 !important;
  }

/* crithera-admin-editor-v31-total-color-audit */
#critheraReaderRoot {
    --audit-dark-bg: #08090a;
    --audit-dark-surface: #101112;
    --audit-dark-control: #17181a;
    --audit-dark-active: #1d1e20;
    --audit-dark-hover: #202124;
    --audit-dark-line: rgba(255,255,255,.085);
    --audit-dark-line-strong: rgba(255,255,255,.17);
    --audit-dark-text: #f7f8f8;
    --audit-dark-muted: #8a8f98;

    --audit-light-bg: #ffffff;
    --audit-light-soft: #f1f2f4;
    --audit-light-hover: #e9ebee;
    --audit-light-line: #d5d8de;
    --audit-light-line-strong: #b9bec6;
    --audit-light-text: #24282e;
    --audit-light-muted: #737984;

    --e-global-color-primary: #f7f8f8;
    --e-global-color-secondary: #8a8f98;
    --e-global-color-text: #f7f8f8;
    --e-global-color-accent: #f7f8f8;
    --e-a-color-primary: #f7f8f8;
    --e-a-color-primary-bold: #ffffff;
    --e-a-color-danger: #8a8f98;
    --e-a-color-warning: #8a8f98;
    --e-a-color-success: #8a8f98;
    --e-a-color-info: #8a8f98;
    --wp-admin-theme-color: #f7f8f8;
    --wp-admin-theme-color-darker-10: #d8d8dc;
    --wp-admin-theme-color-darker-20: #a8abb2;
    --wp--preset--color--vivid-red: #8a8f98;
    --wp--preset--color--luminous-vivid-orange: #8a8f98;
    --wp--preset--color--vivid-cyan-blue: #8a8f98;
    --wp--preset--color--vivid-purple: #8a8f98;
    --ast-global-color-0: #f7f8f8;
    --ast-global-color-1: #d8d8dc;
    --ast-global-color-2: #a8abb2;
    --ast-global-color-3: #8a8f98;

    isolation: isolate;
    color-scheme: dark;
  }

  /*
    Neutralização das propriedades que temas externos
    costumam aplicar a controles de formulário.
  */
  html body
  #critheraReaderRoot
  :is(
    button,
    input,
    select,
    textarea,
    a,
    summary,
    [role="button"]
  ) {
    --e-global-color-primary:
      var(--audit-dark-text) !important;
    --e-global-color-accent:
      var(--audit-dark-text) !important;
    --wp-admin-theme-color:
      var(--audit-dark-text) !important;

    text-shadow: none !important;
    text-decoration-color: currentColor !important;
  }

  html body
  #critheraReaderRoot
  :is(
    button,
    input,
    select,
    textarea,
    progress,
    meter
  ):not(
    [type="color"]
  ) {
    accent-color: #111214 !important;
  }

  /*
    TOPBAR E BARRA CONTEXTUAL
  */
  html body
  #critheraReaderRoot
  :is(
    .topbar,
    .contextbar
  )
  :is(
    button,
    input,
    select,
    textarea,
    [role="button"]
  ) {
    background-image: none !important;
    border-color:
      var(--audit-dark-line) !important;
    outline-color:
      var(--audit-dark-text) !important;
    box-shadow: none !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .icon-button,
    .view-toggle-button,
    .admin-top-button.secondary,
    .context-tool,
    .context-format-button,
    .context-layer-action,
    .context-segmented button,
    .corner-link-toggle,
    .group-toolbar-button
  ) {
    background-color:
      transparent !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-line) !important;
    color:
      var(--audit-dark-muted) !important;
    box-shadow:
      none !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .icon-button,
    .view-toggle-button,
    .admin-top-button.secondary,
    .context-tool,
    .context-format-button,
    .context-layer-action,
    .context-segmented button,
    .corner-link-toggle,
    .group-toolbar-button
  ):hover:not(:disabled),
  html body
  #critheraReaderRoot
  :is(
    .icon-button,
    .view-toggle-button,
    .admin-top-button.secondary,
    .context-tool,
    .context-format-button,
    .context-layer-action,
    .context-segmented button,
    .corner-link-toggle,
    .group-toolbar-button
  ):focus-visible:not(:disabled) {
    background-color:
      var(--audit-dark-hover) !important;
    border-color:
      var(--audit-dark-line-strong) !important;
    color:
      var(--audit-dark-text) !important;
    box-shadow:
      none !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .view-toggle-button.active,
    .context-tool.active,
    .context-format-button.active,
    .context-segmented button.active,
    .corner-link-toggle.active
  ) {
    background-color:
      var(--audit-dark-text) !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-text) !important;
    color:
      var(--audit-dark-bg) !important;
    box-shadow:
      none !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .download-button,
    .admin-top-button.primary,
    .context-action.primary
  ) {
    background-color:
      var(--audit-dark-text) !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-text) !important;
    color:
      var(--audit-dark-bg) !important;
    box-shadow:
      none !important;
  }

  /*
    SIDEBAR PRINCIPAL
  */
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item {
    -webkit-appearance:
      none !important;
    appearance:
      none !important;
    background-color:
      transparent !important;
    background-image:
      none !important;
    border-color:
      transparent !important;
    color:
      #858a93 !important;
    box-shadow:
      none !important;
    outline-color:
      transparent !important;
  }

  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item:hover:not(:disabled),
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item:focus-visible:not(:disabled) {
    background-color:
      #151617 !important;
    border-color:
      var(--audit-dark-line) !important;
    color:
      #d7dade !important;
  }

  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item.active,
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item[aria-current="page"],
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item[aria-pressed="true"] {
    background-color:
      #1a1b1d !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-line-strong) !important;
    color:
      var(--audit-dark-text) !important;
    box-shadow:
      inset
      0
      0
      0
      1px
      rgba(255,255,255,.025) !important;
  }

  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item.active::before,
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item[aria-current="page"]::before,
  html body
  #critheraReaderRoot
  nav.rail
  > button.rail-item[aria-pressed="true"]::before {
    background-color:
      var(--audit-dark-text) !important;
    background-image:
      none !important;
  }

  /*
    PAINEL LATERAL E TODOS OS CONTROLES NÃO CROMÁTICOS
  */
  html body
  #critheraReaderRoot
  :is(
    .panel-close,
    .panel-color-list-button,
    .template-catalog-refresh,
    .editor-resources-refresh,
    .editor-resources-search button,
    .editor-resources-tab,
    .editor-resources-load-more,
    .basic-shape-card,
    .basic-line-card,
    .text-insert-card,
    .uploads-send-button,
    .photos-source-tab,
    .pexels-search-submit,
    .pexels-load-more,
    .background-tab,
    .replace-source-button,
    .dynamic-section-link,
    .add-brand-colors-button,
    .advanced-close-button,
    .font-option,
    .weight-option
  ) {
    background-color:
      transparent !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-line) !important;
    color:
      var(--audit-dark-muted) !important;
    box-shadow:
      none !important;
    outline-color:
      var(--audit-dark-text) !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .panel-close,
    .panel-color-list-button,
    .template-catalog-refresh,
    .editor-resources-refresh,
    .editor-resources-search button,
    .editor-resources-tab,
    .editor-resources-load-more,
    .basic-shape-card,
    .basic-line-card,
    .text-insert-card,
    .uploads-send-button,
    .photos-source-tab,
    .pexels-search-submit,
    .pexels-load-more,
    .background-tab,
    .replace-source-button,
    .dynamic-section-link,
    .add-brand-colors-button,
    .advanced-close-button,
    .font-option,
    .weight-option
  ):hover:not(:disabled),
  html body
  #critheraReaderRoot
  :is(
    .panel-close,
    .panel-color-list-button,
    .template-catalog-refresh,
    .editor-resources-refresh,
    .editor-resources-search button,
    .editor-resources-tab,
    .editor-resources-load-more,
    .basic-shape-card,
    .basic-line-card,
    .text-insert-card,
    .uploads-send-button,
    .photos-source-tab,
    .pexels-search-submit,
    .pexels-load-more,
    .background-tab,
    .replace-source-button,
    .dynamic-section-link,
    .add-brand-colors-button,
    .advanced-close-button,
    .font-option,
    .weight-option
  ):focus-visible:not(:disabled) {
    background-color:
      var(--audit-dark-hover) !important;
    border-color:
      var(--audit-dark-line-strong) !important;
    color:
      var(--audit-dark-text) !important;
    box-shadow:
      none !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .editor-resources-tab.active,
    .photos-source-tab.active,
    .background-tab.active,
    .font-option.active,
    .weight-option.active
  ) {
    background-color:
      var(--audit-dark-text) !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-text) !important;
    color:
      var(--audit-dark-bg) !important;
    box-shadow:
      none !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .editor-resources-search,
    .panel-search,
    .pexels-search-form,
    .context-control,
    .context-number-compact,
    .hex-field,
    .admin-form-field,
    .admin-record-card,
    .admin-origin-card
  ) {
    background-color:
      rgba(255,255,255,.035) !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-line) !important;
    box-shadow:
      none !important;
    outline-color:
      var(--audit-dark-text) !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .editor-resources-search,
    .panel-search,
    .pexels-search-form,
    .context-control,
    .context-number-compact,
    .hex-field,
    .admin-form-field
  ):focus-within {
    border-color:
      var(--audit-dark-line-strong) !important;
    box-shadow:
      0
      0
      0
      2px
      rgba(255,255,255,.055) !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .editor-resources-search,
    .panel-search,
    .pexels-search-form,
    .context-control,
    .context-number-compact,
    .hex-field,
    .admin-form-field
  )
  :is(
    input,
    select,
    textarea
  ):not([type="color"]) {
    background-color:
      transparent !important;
    background-image:
      none !important;
    border-color:
      transparent !important;
    color:
      var(--audit-dark-text) !important;
    box-shadow:
      none !important;
    outline:
      0 !important;
  }

  /*
    CAMADAS E INDICADORES DE INTERFACE
  */
  html body
  #critheraReaderRoot
  :is(
    .layer-row.active,
    .layer-row.multi-active
  ) {
    background-color:
      var(--audit-dark-active) !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-line-strong) !important;
    box-shadow:
      inset
      3px
      0
      0
      var(--audit-dark-text) !important;
  }

  html body
  #critheraReaderRoot
  .layer-group-badge {
    background-color:
      rgba(255,255,255,.07) !important;
    background-image:
      none !important;
    border-color:
      rgba(255,255,255,.12) !important;
    color:
      #b9bdc4 !important;
    box-shadow:
      none !important;
  }

  html body
  #critheraReaderRoot
  .font-option[data-font-error="true"]
  .font-name::after {
    color:
      var(--audit-dark-muted) !important;
  }

  /*
    PAINEL ADMINISTRATIVO
  */
  html body
  #critheraReaderRoot
  :is(
    .admin-inspector-close,
    .admin-json-action,
    .admin-wide-button.secondary,
    .admin-wide-button.quiet,
    #adminAccessBackBtn
  ) {
    background-color:
      transparent !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-line) !important;
    color:
      var(--audit-dark-muted) !important;
    box-shadow:
      none !important;
    outline-color:
      var(--audit-dark-text) !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .admin-inspector-close,
    .admin-json-action,
    .admin-wide-button.secondary,
    .admin-wide-button.quiet,
    #adminAccessBackBtn
  ):hover:not(:disabled),
  html body
  #critheraReaderRoot
  :is(
    .admin-inspector-close,
    .admin-json-action,
    .admin-wide-button.secondary,
    .admin-wide-button.quiet,
    #adminAccessBackBtn
  ):focus-visible:not(:disabled) {
    background-color:
      var(--audit-dark-hover) !important;
    border-color:
      var(--audit-dark-line-strong) !important;
    color:
      var(--audit-dark-text) !important;
    box-shadow:
      none !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .admin-json-action.primary,
    .admin-wide-button.primary
  ) {
    background-color:
      var(--audit-dark-text) !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-text) !important;
    color:
      var(--audit-dark-bg) !important;
    box-shadow:
      none !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .admin-source-badge,
    .admin-status-badge,
    .admin-badge,
    .readonly-label,
    .panel-mode,
    .context-type,
    .context-editing-label
  ) {
    background-color:
      rgba(255,255,255,.035) !important;
    background-image:
      none !important;
    border-color:
      var(--audit-dark-line) !important;
    color:
      var(--audit-dark-muted) !important;
    box-shadow:
      none !important;
  }

  /*
    BARRA INFERIOR E ZOOM — ÁREA CLARA
  */
  html body
  #critheraReaderRoot
  .zoom-box {
    background-color:
      rgba(255,255,255,.985) !important;
    background-image:
      none !important;
    border-color:
      var(--audit-light-line) !important;
    color:
      var(--audit-light-text) !important;
  }

  html body
  #critheraReaderRoot
  .zoom-box
  button {
    background-color:
      transparent !important;
    background-image:
      none !important;
    border-color:
      transparent !important;
    color:
      var(--audit-light-muted) !important;
    box-shadow:
      none !important;
    outline-color:
      var(--audit-light-text) !important;
  }

  html body
  #critheraReaderRoot
  .zoom-box
  button:hover:not(:disabled),
  html body
  #critheraReaderRoot
  .zoom-box
  button:focus-visible:not(:disabled) {
    background-color:
      var(--audit-light-hover) !important;
    border-color:
      var(--audit-light-line) !important;
    color:
      var(--audit-light-text) !important;
    box-shadow:
      none !important;
  }

  html body
  #critheraReaderRoot
  .pagesbar {
    background-color:
      #fbfbfc !important;
    background-image:
      none !important;
    border-color:
      var(--audit-light-line) !important;
    color:
      var(--audit-light-text) !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .pages-label,
    .page-thumb,
    .page-action-button.secondary
  ) {
    background-color:
      var(--audit-light-bg) !important;
    background-image:
      none !important;
    border-color:
      var(--audit-light-line) !important;
    color:
      var(--audit-light-text) !important;
    box-shadow:
      none !important;
    outline-color:
      var(--audit-light-text) !important;
  }

  html body
  #critheraReaderRoot
  :is(
    .pages-label,
    .page-thumb,
    .page-action-button.secondary
  ):hover,
  html body
  #critheraReaderRoot
  :is(
    .pages-label,
    .page-thumb,
    .page-action-button.secondary
  ):focus-visible {
    background-color:
      var(--audit-light-soft) !important;
    border-color:
      var(--audit-light-line-strong) !important;
    color:
      var(--audit-light-text) !important;
    box-shadow:
      none !important;
  }

  html body
  #critheraReaderRoot
  .page-thumb.active {
    border-color:
      var(--audit-light-text) !important;
    box-shadow:
      0
      0
      0
      2px
      rgba(36,40,46,.12) !important;
  }

  html body
  #critheraReaderRoot
  .page-action-button.primary {
    background-color:
      #17181a !important;
    background-image:
      none !important;
    border-color:
      #17181a !important;
    color:
      #ffffff !important;
    box-shadow:
      none !important;
  }

  /*
    VALIDAÇÕES NATIVAS, FOCO E AUTOFILL
  */
  html body
  #critheraReaderRoot
  :is(
    input,
    textarea,
    select
  ):not([type="color"]):is(
    :invalid,
    :user-invalid,
    [aria-invalid="true"]
  ) {
    border-color:
      var(--audit-dark-line-strong) !important;
    outline-color:
      var(--audit-dark-text) !important;
    box-shadow:
      none !important;
    color:
      inherit !important;
  }

  html body
  #critheraReaderRoot
  :is(
    input,
    textarea
  ):-webkit-autofill {
    -webkit-text-fill-color:
      var(--audit-dark-text) !important;
    caret-color:
      var(--audit-dark-text) !important;
    box-shadow:
      0
      0
      0
      1000px
      var(--audit-dark-surface)
      inset !important;
  }

  /*
    PSEUDOELEMENTOS DE COMPONENTES ATIVOS
  */
  html body
  #critheraReaderRoot
  :is(
    .editor-resources-tab,
    .photos-source-tab,
    .background-tab,
    .view-toggle-button,
    .admin-top-button,
    .admin-wide-button,
    .admin-json-action,
    .page-action-button
  )::before,
  html body
  #critheraReaderRoot
  :is(
    .editor-resources-tab,
    .photos-source-tab,
    .background-tab,
    .view-toggle-button,
    .admin-top-button,
    .admin-wide-button,
    .admin-json-action,
    .page-action-button
  )::after {
    border-color:
      currentColor !important;
    box-shadow:
      none !important;
  }

  /*
    ÁREAS AUTORIZADAS A TER COR.
    Estas regras não alteram o conteúdo visual.
  */
  #critheraReaderRoot
  :is(
    #readerCanvas,
    #readerCanvas *,
    .page-mini-stage,
    .page-mini-stage *,
    #colorBrowserView,
    #colorBrowserView *,
    #advancedColorPickerView,
    #advancedColorPickerView *,
    .canva-color-picker-card,
    .canva-color-picker-card *,
    .context-color-button,
    .context-color-button *,
    .context-color-control,
    .context-color-control *,
    .context-color-preview,
    .context-color-swatch,
    .context-shape-swatch,
    .line-toolbar-color-dot,
    .gradient-stop-color,
    .gradient-style-button,
    .color-swatch,
    .color-circle-swatch,
    .color-wheel-button,
    .current-color-button,
    .color-sv,
    .hue-slider,
    .alpha-slider
  ) {
    forced-color-adjust: none;
  }

  @media (max-width: 760px) {
    html body
    #critheraReaderRoot.mobile-drawer-open
    nav.rail
    > button.rail-item.active {
      background-color:
        #eceef1 !important;
      border-color:
        #d7d9de !important;
      color:
        #0f0f14 !important;
      box-shadow:
        none !important;
    }

    html body
    #critheraReaderRoot:not(
      .mobile-drawer-open
    )
    nav.rail
    > button.rail-item.active {
      background-color:
        transparent !important;
      border-color:
        transparent !important;
      color:
        #64646e !important;
      box-shadow:
        none !important;
    }
  }

/* crithera-user-editor-mode */
/* A base visual e o motor são os do Editor Admin, mas toda a interface
     administrativa fica fora do editor entregue às clientes. */
  #critheraReaderRoot.user-editor .admin-mode-badge,
  #critheraReaderRoot.user-editor #adminUserViewBtn,
  #critheraReaderRoot.user-editor #adminInspectorToggleBtn.admin-top-button.secondary,
  #critheraReaderRoot.user-editor #adminPublishBtn,
  #critheraReaderRoot.user-editor #importPageJsonBtn,
  #critheraReaderRoot.user-editor .admin-inspector,
  #critheraReaderRoot.user-editor .admin-mobile-inspector-overlay {
    display: none !important;
  }

  /* O catálogo de modelos só fica oculto na abertura imediata vinda do Prisma.
     Ao reabrir por Meus Designs, editar manualmente ou começar em branco, ele aparece. */
  #critheraReaderRoot.user-editor.hide-template-catalog #templatesRailBtn {
    display: none !important;
  }

  #critheraReaderRoot.user-editor .main {
    width: 100%;
  }

  #critheraReaderRoot.user-editor .admin-top-actions {
    gap: 7px;
  }

  #critheraReaderRoot .user-download-control {
    display: none;
    position: relative;
  }

  #critheraReaderRoot.user-editor .user-download-control {
    display: block;
  }

  #critheraReaderRoot.user-editor .download-button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #f7f8f8;
    border-radius: 8px;
    background: #f7f8f8;
    color: #08090a;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }

  #critheraReaderRoot.user-editor .download-button:hover,
  #critheraReaderRoot.user-editor .download-button:focus-visible,
  #critheraReaderRoot.user-editor .download-button[aria-expanded="true"] {
    background: #ffffff;
  }

  #critheraReaderRoot.user-editor .download-button:focus-visible,
  #critheraReaderRoot.user-editor .download-option:focus-visible {
    outline: 2px solid rgba(255,255,255,.72);
    outline-offset: 2px;
  }

  #critheraReaderRoot.user-editor .download-button:disabled {
    opacity: .58;
    cursor: wait;
  }

  #critheraReaderRoot.user-editor .download-button .ui-icon {
    width: 15px;
    height: 15px;
  }

  #critheraReaderRoot .download-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 2147483645;
    width: 286px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    background: #151618;
    color: #f7f8f8;
    box-shadow: 0 18px 52px rgba(0,0,0,.38);
  }

  #critheraReaderRoot .download-menu[hidden] {
    display: none !important;
  }

  #critheraReaderRoot .download-menu-title {
    display: block;
    padding: 6px 8px 7px;
    color: #868b93;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  #critheraReaderRoot .download-option {
    width: 100%;
    min-height: 53px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #f7f8f8;
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    text-align: left;
    cursor: pointer;
  }

  #critheraReaderRoot .download-option + .download-option {
    margin-top: 2px;
  }

  #critheraReaderRoot .download-option:hover,
  #critheraReaderRoot .download-option:focus-visible {
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
  }

  #critheraReaderRoot .download-option:disabled {
    opacity: .42;
    cursor: default;
  }

  #critheraReaderRoot .download-option-icon {
    width: 33px;
    height: 33px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    display: grid;
    place-items: center;
  }

  #critheraReaderRoot .download-option-icon .ui-icon {
    width: 16px;
    height: 16px;
  }

  #critheraReaderRoot .download-option-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  #critheraReaderRoot .download-option-copy strong {
    color: #f7f8f8;
    font-size: 10.5px;
    font-weight: 680;
  }

  #critheraReaderRoot .download-option-copy small {
    color: #858a92;
    font-size: 8.5px;
    line-height: 1.35;
  }

  #critheraReaderRoot .crithera-export-host {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    pointer-events: none;
  }

  #critheraReaderRoot .crithera-export-canvas {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    transform-origin: top left !important;
    overflow: hidden !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  #critheraReaderRoot .crithera-export-canvas .reader-element {
    pointer-events: none !important;
    user-select: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  #critheraReaderRoot .crithera-export-canvas .reader-text {
    cursor: default !important;
  }

  #critheraReaderRoot.user-editor #adminSaveDraftBtn {
    min-height: 36px;
    padding: 0 15px;
    border: 1px solid #f7f8f8;
    border-radius: 8px;
    background: #f7f8f8;
    color: #08090a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
  }

  #critheraReaderRoot.user-editor #adminSaveDraftBtn .ui-icon {
    width: 15px;
    height: 15px;
  }

  #critheraReaderRoot.user-editor .design-name {
    max-width: min(340px, 34vw);
  }

  #critheraReaderRoot.user-editor .readonly-label {
    min-width: 0;
  }

  #adminAccessOverlay .admin-access-card > strong {
    text-wrap: balance;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot.user-editor #adminSaveDraftBtn {
      width: 36px;
      min-width: 36px;
      height: 36px;
      min-height: 36px;
      padding: 0;
    }

    #critheraReaderRoot.user-editor #adminSaveDraftBtn span {
      display: none;
    }

    #critheraReaderRoot.user-editor .download-button {
      width: 36px;
      min-width: 36px;
      height: 36px;
      min-height: 36px;
      padding: 0;
    }

    #critheraReaderRoot.user-editor .download-button span {
      display: none;
    }

    #critheraReaderRoot .download-menu {
      position: fixed;
      top: 56px;
      right: 8px;
      width: min(286px, calc(100vw - 16px));
    }

    #critheraReaderRoot.user-editor .design-name {
      width: min(132px, 31vw);
    }

  }

/* crithera-editor-mobile-audit-v14 */
@media (max-width: 760px) {
    #critheraReaderRoot .panel-content,
    #critheraReaderRoot .panel-view.active,
    #critheraReaderRoot .canva-color-browser,
    #critheraReaderRoot .advanced-color-picker {
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }

    #critheraReaderRoot .sidepanel button,
    #critheraReaderRoot .contextbar button,
    #critheraReaderRoot .canva-toolbar-popover button {
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    #critheraReaderRoot .panel-close,
    #critheraReaderRoot .panel-color-list-button,
    #critheraReaderRoot .color-special-button,
    #critheraReaderRoot .current-color-button,
    #critheraReaderRoot .color-wheel-button,
    #critheraReaderRoot .dynamic-section-link {
      min-width: 42px;
      min-height: 42px;
    }

    #critheraReaderRoot .color-circle-swatch,
    #critheraReaderRoot .gradient-preset-button,
    #critheraReaderRoot .color-swatch {
      min-width: 34px;
      min-height: 34px;
    }

    #critheraReaderRoot .canva-toolbar-popover {
      max-height: calc(
        var(--mobile-app-height, 100dvh) -
        env(safe-area-inset-top) -
        env(safe-area-inset-bottom) -
        16px
      );
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
    }

    #critheraReaderRoot .panel-content {
      scroll-padding-bottom: 28px;
    }

    #critheraReaderRoot .color-search-input,
    #critheraReaderRoot .font-search,
    #critheraReaderRoot .panel-search,
    #critheraReaderRoot .editor-resources-search,
    #critheraReaderRoot .pexels-search-input,
    #critheraReaderRoot .hex-field input {
      min-height: 42px;
    }
  }

  /* Evita o zoom automático do Safari ao focar campos do editor. */
  @supports (-webkit-touch-callout: none) {
    @media (max-width: 760px) {
      #critheraReaderRoot input,
      #critheraReaderRoot select,
      #critheraReaderRoot textarea {
        font-size: 16px !important;
      }
    }
  }

/* crithera-editor-caption-panel-v1 */
#critheraReaderRoot .caption-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483642;
    background: rgba(0,0,0,.42);
    opacity: 1;
    transition: opacity .18s ease;
  }

  #critheraReaderRoot .caption-panel-backdrop[hidden] {
    display: none !important;
  }

  #critheraReaderRoot .caption-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2147483643;
    width: min(420px, calc(100vw - 18px));
    height: 100dvh;
    padding: 18px;
    border-left: 1px solid rgba(255,255,255,.1);
    background: #151618;
    color: #f7f8f8;
    box-shadow: -24px 0 54px rgba(0,0,0,.36);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 14px;
  }

  #critheraReaderRoot .caption-panel[hidden] {
    display: none !important;
  }

  #critheraReaderRoot .caption-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  #critheraReaderRoot .caption-panel-title {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  #critheraReaderRoot .caption-panel-title strong {
    color: #f7f8f8;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.15;
  }

  #critheraReaderRoot .caption-panel-title span {
    color: #8a9097;
    font-size: 11px;
    line-height: 1.45;
  }

  #critheraReaderRoot .caption-panel-close {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    color: #f7f8f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  #critheraReaderRoot .caption-panel-close:hover,
  #critheraReaderRoot .caption-panel-close:focus-visible {
    background: rgba(255,255,255,.075);
  }

  #critheraReaderRoot .caption-panel-close .ui-icon {
    width: 16px;
    height: 16px;
  }

  #critheraReaderRoot .caption-panel-note {
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    color: #969ca4;
    font-size: 10.5px;
    line-height: 1.55;
  }

  #critheraReaderRoot .caption-panel-field {
    min-height: 0;
    display: grid;
    gap: 8px;
  }

  #critheraReaderRoot .caption-panel-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  #critheraReaderRoot .caption-panel-field-head strong {
    color: #f7f8f8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
  }

  #critheraReaderRoot .caption-panel-count {
    color: #858b93;
    font-size: 10px;
    font-weight: 650;
  }

  #critheraReaderRoot .caption-panel-textarea {
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    color: #f7f8f8;
    font: inherit;
    font-size: 12px;
    line-height: 1.65;
    resize: none;
    outline: none;
  }

  #critheraReaderRoot .caption-panel-textarea::placeholder {
    color: #787e86;
  }

  #critheraReaderRoot .caption-panel-textarea:hover,
  #critheraReaderRoot .caption-panel-textarea:focus {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
  }

  #critheraReaderRoot .caption-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  #critheraReaderRoot .caption-panel-status {
    color: #868c94;
    font-size: 10px;
    line-height: 1.45;
  }

  #critheraReaderRoot .caption-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
  }

  #critheraReaderRoot .caption-panel-action {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 9px;
    background: rgba(255,255,255,.05);
    color: #f7f8f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }

  #critheraReaderRoot .caption-panel-action:hover,
  #critheraReaderRoot .caption-panel-action:focus-visible {
    background: rgba(255,255,255,.08);
  }

  #critheraReaderRoot .caption-panel-action.primary {
    border-color: #f7f8f8;
    background: #f7f8f8;
    color: #08090a;
  }

  #critheraReaderRoot .caption-panel-action .ui-icon {
    width: 15px;
    height: 15px;
  }

  #critheraReaderRoot .caption-trigger-button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #f7f8f8;
    border-radius: 8px;
    background: #f7f8f8;
    color: #08090a;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }

  #critheraReaderRoot .caption-trigger-button:hover,
  #critheraReaderRoot .caption-trigger-button:focus-visible,
  #critheraReaderRoot .caption-trigger-button[aria-expanded="true"] {
    background: #ffffff;
  }

  #critheraReaderRoot .caption-trigger-button .ui-icon {
    width: 15px;
    height: 15px;
  }

  #critheraReaderRoot .caption-trigger-button:focus-visible,
  #critheraReaderRoot .caption-panel-close:focus-visible,
  #critheraReaderRoot .caption-panel-textarea:focus-visible,
  #critheraReaderRoot .caption-panel-action:focus-visible {
    outline: 2px solid rgba(255,255,255,.72);
    outline-offset: 2px;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .caption-panel {
      width: 100vw;
      max-width: 100vw;
      padding: 16px;
      border-left: 0;
    }

    #critheraReaderRoot .caption-trigger-button {
      width: 36px;
      min-width: 36px;
      height: 36px;
      min-height: 36px;
      padding: 0;
    }

    #critheraReaderRoot .caption-trigger-button span {
      display: none;
    }

    #critheraReaderRoot .caption-panel-footer {
      align-items: stretch;
    }

    #critheraReaderRoot .caption-panel-actions {
      width: 100%;
      margin-left: 0;
    }

    #critheraReaderRoot .caption-panel-action {
      flex: 1 1 0;
    }
  }

/* crithera-editor-ai-images-v1 */
#critheraReaderRoot .photos-source-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #critheraReaderRoot .ai-photo-hero {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background:
      radial-gradient(circle at 85% 15%, rgba(255,255,255,.075), transparent 34%),
      rgba(255,255,255,.025);
  }

  #critheraReaderRoot .ai-photo-hero-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #f7f8f8;
    color: #08090a;
    display: grid;
    place-items: center;
  }

  #critheraReaderRoot .ai-photo-hero-icon .ui-icon {
    width: 18px;
    height: 18px;
  }

  #critheraReaderRoot .ai-photo-hero strong,
  #critheraReaderRoot .ai-photo-hero span {
    display: block;
  }

  #critheraReaderRoot .ai-photo-hero strong {
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 650;
  }

  #critheraReaderRoot .ai-photo-hero span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9.3px;
    line-height: 1.52;
  }

  #critheraReaderRoot .ai-photo-mode-list {
    display: grid;
    gap: 7px;
  }

  #critheraReaderRoot .ai-photo-mode-card {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.022);
    color: var(--text);
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) 24px;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
  }

  #critheraReaderRoot .ai-photo-mode-card:hover,
  #critheraReaderRoot .ai-photo-mode-card:focus-visible {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
    transform: translateY(-1px);
  }

  #critheraReaderRoot .ai-photo-mode-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    color: var(--text);
    display: grid;
    place-items: center;
  }

  #critheraReaderRoot .ai-photo-mode-icon .ui-icon {
    width: 16px;
    height: 16px;
  }

  #critheraReaderRoot .ai-photo-mode-copy {
    min-width: 0;
  }

  #critheraReaderRoot .ai-photo-mode-copy strong,
  #critheraReaderRoot .ai-photo-mode-copy span {
    display: block;
    min-width: 0;
  }

  #critheraReaderRoot .ai-photo-mode-copy strong {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 10.5px;
    line-height: 1.3;
    font-weight: 650;
  }

  #critheraReaderRoot .ai-photo-mode-copy span {
    color: var(--muted-2);
    font-size: 8.5px;
    line-height: 1.45;
  }

  #critheraReaderRoot .ai-photo-mode-arrow {
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    display: grid;
    place-items: center;
  }

  #critheraReaderRoot .ai-photo-mode-arrow .ui-icon {
    width: 12px;
    height: 12px;
  }

  #critheraReaderRoot .ai-photo-credit-note {
    margin: 10px 0 16px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.018);
    color: var(--muted-2);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 8.4px;
    line-height: 1.45;
  }

  #critheraReaderRoot .ai-photo-credit-note .ui-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-top: 1px;
  }

  #critheraReaderRoot .ai-photo-library-head {
    min-height: 32px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  #critheraReaderRoot .ai-photo-library-head strong {
    color: var(--text);
    font-size: 9.5px;
    font-weight: 650;
  }

  #critheraReaderRoot .ai-photo-library-refresh {
    min-height: 27px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    color: var(--muted);
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
  }

  #critheraReaderRoot .ai-photo-library-refresh:hover,
  #critheraReaderRoot .ai-photo-library-refresh:focus-visible {
    color: var(--text);
    background: rgba(255,255,255,.06);
  }

  #critheraReaderRoot .ai-photo-library-badge {
    position: absolute;
    left: 7px;
    bottom: 7px;
    z-index: 3;
    min-height: 20px;
    padding: 0 6px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;
    background: rgba(8,9,10,.62);
    color: #fff;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    font-size: 7.5px;
    font-weight: 700;
  }

  #critheraAiImageModal[hidden] {
    display: none !important;
  }

  #critheraAiImageModal {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    padding: 18px;
    background: rgba(4,5,6,.72);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    font-family: Inter, system-ui, sans-serif;
  }

  #critheraAiImageModal .ai-image-modal-card {
    width: min(540px, 100%);
    max-height: min(720px, 92dvh);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: #111214;
    color: #f7f8f8;
    box-shadow: 0 36px 90px rgba(0,0,0,.42);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  #critheraAiImageModal .ai-image-modal-head {
    min-height: 68px;
    padding: 15px 16px 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  #critheraAiImageModal .ai-image-modal-head strong,
  #critheraAiImageModal .ai-image-modal-head span {
    display: block;
  }

  #critheraAiImageModal .ai-image-modal-head strong {
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 650;
  }

  #critheraAiImageModal .ai-image-modal-head span {
    color: #858a93;
    font-size: 9.5px;
    line-height: 1.45;
  }

  #critheraAiImageModal .ai-image-modal-close {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #9da1a8;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraAiImageModal .ai-image-modal-close:hover {
    color: #fff;
    background: rgba(255,255,255,.075);
  }

  #critheraAiImageModal .ai-image-modal-close .ui-icon {
    width: 15px;
    height: 15px;
  }

  #critheraAiImageModal .ai-image-modal-body {
    min-height: 0;
    padding: 16px 18px;
    overflow-y: auto;
  }

  #critheraAiImageModal .ai-image-context-row {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  #critheraAiImageModal .ai-image-context-pill {
    min-height: 25px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    color: #a4a8af;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 600;
  }

  #critheraAiImageModal .ai-image-context-pill b {
    color: #f7f8f8;
    font-weight: 650;
  }

  #critheraAiImageModal .ai-image-field-label {
    display: block;
    margin-bottom: 7px;
    color: #b3b7bd;
    font-size: 9px;
    font-weight: 650;
  }

  #critheraAiImageModal .ai-image-prompt-wrap {
    position: relative;
  }

  #critheraAiImageModal .ai-image-prompt {
    width: 100%;
    min-height: 118px;
    padding: 12px 12px 30px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    outline: 0;
    background: #18191b;
    color: #f7f8f8;
    font: 500 11px/1.55 Inter, sans-serif;
    resize: vertical;
  }

  #critheraAiImageModal .ai-image-prompt:focus {
    border-color: rgba(255,255,255,.34);
    box-shadow: 0 0 0 3px rgba(255,255,255,.045);
  }

  #critheraAiImageModal .ai-image-prompt::placeholder {
    color: #676c74;
  }

  #critheraAiImageModal .ai-image-prompt-count {
    position: absolute;
    right: 10px;
    bottom: 9px;
    color: #62676f;
    font-size: 8px;
  }

  #critheraAiImageModal .ai-image-design-note {
    margin-bottom: 12px;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: #8d929a;
    font-size: 9px;
    line-height: 1.5;
  }

  #critheraAiImageModal .ai-image-status {
    min-height: 18px;
    margin-top: 10px;
    color: #858a93;
    font-size: 9px;
    line-height: 1.45;
  }

  #critheraAiImageModal .ai-image-status.error {
    color: #f1f2f3;
  }

  #critheraAiImageModal .ai-image-generating {
    min-height: 220px;
    margin-top: 12px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 11px;
    background: rgba(255,255,255,.018);
    display: grid;
    place-items: center;
  }

  #critheraAiImageModal .ai-image-generating[hidden] {
    display: none;
  }

  #critheraAiImageModal .ai-image-generating-inner {
    display: grid;
    justify-items: center;
    gap: 11px;
    color: #8e939b;
    font-size: 9px;
  }

  #critheraAiImageModal .ai-image-spinner {
    width: 29px;
    height: 29px;
    border: 2px solid rgba(255,255,255,.12);
    border-top-color: #f7f8f8;
    border-radius: 50%;
    animation: critheraAiImageSpin .72s linear infinite;
  }

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

  #critheraAiImageModal .ai-image-preview {
    position: relative;
    min-height: 250px;
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;
    background:
      linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%) 0 0 / 14px 14px,
      linear-gradient(45deg, transparent 75%, rgba(255,255,255,.025) 75%) 0 0 / 14px 14px,
      #17181a;
    overflow: hidden;
    display: grid;
    place-items: center;
  }

  #critheraAiImageModal .ai-image-preview[hidden] {
    display: none;
  }

  #critheraAiImageModal .ai-image-preview img {
    width: 100%;
    max-height: 430px;
    display: block;
    object-fit: contain;
  }

  #critheraAiImageModal .ai-image-preview-meta {
    position: absolute;
    right: 8px;
    bottom: 8px;
    min-height: 23px;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 7px;
    background: rgba(8,9,10,.62);
    color: #fff;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    font-size: 7.5px;
    font-weight: 650;
  }

  #critheraAiImageModal .ai-image-modal-foot {
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
  }

  #critheraAiImageModal .ai-image-action {
    min-height: 37px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #c9ccd1;
    font-size: 9.5px;
    font-weight: 650;
    cursor: pointer;
  }

  #critheraAiImageModal .ai-image-action:hover,
  #critheraAiImageModal .ai-image-action:focus-visible {
    background: rgba(255,255,255,.075);
    color: #fff;
  }

  #critheraAiImageModal .ai-image-action.primary {
    border-color: #f7f8f8;
    background: #f7f8f8;
    color: #08090a;
  }

  #critheraAiImageModal .ai-image-action.primary:hover,
  #critheraAiImageModal .ai-image-action.primary:focus-visible {
    background: #fff;
  }

  #critheraAiImageModal .ai-image-action:disabled {
    opacity: .42;
    cursor: wait;
  }

  #critheraAiImageModal .ai-image-result-actions[hidden],
  #critheraAiImageModal .ai-image-generate-actions[hidden] {
    display: none !important;
  }

  #critheraAiImageModal .ai-image-result-actions,
  #critheraAiImageModal .ai-image-generate-actions {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  @media (max-width: 760px) {
    #critheraAiImageModal {
      padding: 0;
      align-items: end;
    }

    #critheraAiImageModal .ai-image-modal-card {
      width: 100%;
      max-height: 94dvh;
      border-right: 0;
      border-bottom: 0;
      border-left: 0;
      border-radius: 14px 14px 0 0;
    }

    #critheraAiImageModal .ai-image-modal-foot {
      padding-bottom: max(16px, env(safe-area-inset-bottom));
      flex-wrap: wrap;
    }

    #critheraAiImageModal .ai-image-generate-actions,
    #critheraAiImageModal .ai-image-result-actions {
      flex: 1 1 100%;
    }

    #critheraAiImageModal .ai-image-action {
      flex: 1;
    }
  }

/* crithera-editor-v7-sem-geracao-imagem */
#critheraReaderRoot .photos-source-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #critheraReaderRoot #backgroundAiBtn,
  #critheraReaderRoot #imageAiBtn,
  #critheraReaderRoot #aiProviderPanel,
  #critheraAiImageModal {
    display: none !important;
  }

/* crithera-editor-cliente-v4-consolidado */
#critheraReaderRoot .multi-select-toggle {
    position: relative;
  }

  #critheraReaderRoot .multi-select-toggle.active {
    border-color: rgba(255,255,255,.42) !important;
    background: #f7f8f8 !important;
    color: #08090a !important;
  }

  #critheraReaderRoot .multi-select-toggle.active::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }

  #critheraReaderRoot .multi-selection-toolbar-label {
    color: #f7f8f8;
  }

  #critheraReaderRoot
  .group-toolbar-button
  .toolbar-button-copy {
    display: inline !important;
  }

  @media (max-width: 980px) {
    #critheraReaderRoot .group-toolbar-button {
      min-width: max-content;
      padding-inline: 10px;
    }

    #critheraReaderRoot
    .group-toolbar-button
    .toolbar-button-copy {
      display: inline !important;
    }
  }

  #critheraReaderRoot.multi-select-mode .reader-element:not(.reader-miniature) {
    cursor: crosshair !important;
  }

  #critheraReaderRoot.multi-select-mode .contextbar::before {
    content: "Seleção múltipla ativa";
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #f7f8f8;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
  }

  #critheraReaderRoot .multi-selection-transformer .resize-handle,
  #critheraReaderRoot .multi-selection-transformer .rotate-handle {
    display: block !important;
    pointer-events: auto !important;
  }

  #critheraReaderRoot .multi-selection-transformer .resize-handle {
    width: 20px;
    height: 20px;
    border: 3px solid #111214;
    border-radius: 50%;
    background: #fff;
  }

  #critheraReaderRoot .multi-selection-transformer .resize-handle.nw {
    left: -11px;
    top: -11px;
  }

  #critheraReaderRoot .multi-selection-transformer .resize-handle.ne {
    right: -11px;
    top: -11px;
  }

  #critheraReaderRoot .multi-selection-transformer .resize-handle.se {
    right: -11px;
    bottom: -11px;
  }

  #critheraReaderRoot .multi-selection-transformer .resize-handle.sw {
    left: -11px;
    bottom: -11px;
  }

  #critheraReaderRoot .multi-selection-transformer .rotate-line {
    display: block;
  }

  #critheraReaderRoot .multi-selection-transformer.is-resizing,
  #critheraReaderRoot .multi-selection-transformer.is-rotating {
    opacity: .96;
  }

  #critheraReaderRoot .reader-image-frame.frame-auto-target {
    outline: 3px solid #111214 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,.92) !important;
  }

  #critheraReaderRoot .photos-panel-intro.frame-auto-active,
  #critheraReaderRoot .uploads-intro.frame-auto-active {
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(255,255,255,.045);
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .multi-selection-toolbar-label {
      color: #111214;
    }

    #critheraReaderRoot .group-toolbar-button {
      min-width: max-content;
      padding-inline: 11px;
      border: 1px solid #dfe2e7;
      background: #ffffff !important;
      color: #111214 !important;
    }

    #critheraReaderRoot
    .group-toolbar-button
    .toolbar-button-copy {
      color: #111214 !important;
    }

    #critheraReaderRoot.user-editor .admin-top-actions .top-actions-group {
      display: inline-flex !important;
    }

    #critheraReaderRoot.user-editor #undoBtn,
    #critheraReaderRoot.user-editor #redoBtn {
      display: none !important;
    }

    #critheraReaderRoot .multi-select-toggle {
      display: inline-grid !important;
      width: 36px;
      min-width: 36px;
      height: 36px;
    }

    #critheraReaderRoot .multi-selection-transformer .resize-handle {
      width: 26px;
      height: 26px;
    }

    #critheraReaderRoot .multi-selection-transformer .resize-handle.nw {
      left: -14px;
      top: -14px;
    }

    #critheraReaderRoot .multi-selection-transformer .resize-handle.ne {
      right: -14px;
      top: -14px;
    }

    #critheraReaderRoot .multi-selection-transformer .resize-handle.se {
      right: -14px;
      bottom: -14px;
    }

    #critheraReaderRoot .multi-selection-transformer .resize-handle.sw {
      left: -14px;
      bottom: -14px;
    }
  }

/* crithera-editor-client-v5-catalogs-and-drag */
/*
    V5 — catálogos visuais, modelos sem metadados técnicos
    e encaixe de fotos por arrastar e soltar.
  */

  #critheraReaderRoot .template-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  #critheraReaderRoot .template-catalog-card {
    position: relative;
    min-width: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    overflow: visible;
  }

  #critheraReaderRoot .template-catalog-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
    display: block;
    cursor: pointer;
    outline: 0;
    transition:
      transform .18s ease,
      border-color .18s ease,
      box-shadow .18s ease;
  }

  #critheraReaderRoot .template-catalog-thumb:hover,
  #critheraReaderRoot .template-catalog-thumb:focus-visible {
    border-color: var(--line-strong);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
    transform: translateY(-2px);
  }

  #critheraReaderRoot .template-catalog-thumb > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
    object-fit: cover;
    display: block;
  }

  #critheraReaderRoot .template-catalog-copy {
    display: none !important;
  }

  #critheraReaderRoot .template-catalog-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    color: #111111;
    box-shadow: 0 5px 16px rgba(0,0,0,.10);
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #critheraReaderRoot .template-catalog-favorite svg {
    width: 15px;
    height: 15px;
  }

  #critheraReaderRoot .template-catalog-favorite.active svg {
    fill: currentColor;
  }

  #critheraReaderRoot .template-catalog-carousel-track,
  #critheraReaderRoot .template-catalog-carousel-slide {
    position: absolute;
    inset: 0;
  }

  #critheraReaderRoot .template-catalog-carousel-track {
    z-index: 0;
    overflow: hidden;
  }

  #critheraReaderRoot .template-catalog-carousel-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
  }

  #critheraReaderRoot .template-catalog-carousel-slide.active {
    opacity: 1;
    visibility: visible;
  }

  #critheraReaderRoot .template-catalog-carousel-slide img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
  }

  #critheraReaderRoot .template-catalog-placeholder {
    width: 100%;
    height: 100%;
    padding: 16px;
    color: var(--muted-2);
    display: grid;
    place-items: center;
  }

  #critheraReaderRoot .template-catalog-placeholder .ui-icon {
    width: 28px;
    height: 28px;
    opacity: .55;
  }

  #critheraReaderRoot .template-catalog-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    z-index: 4;
    max-width: calc(100% - 58px);
    min-height: 21px;
    padding: 4px 6px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(8,9,10,.48);
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    transform: translateX(-50%);
  }

  #critheraReaderRoot .template-catalog-carousel-dots::-webkit-scrollbar {
    display: none;
  }

  #critheraReaderRoot .template-catalog-carousel-dot {
    width: 5px;
    height: 5px;
    min-width: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.58);
  }

  #critheraReaderRoot .template-catalog-carousel-dot.active {
    width: 13px;
    min-width: 13px;
    border-radius: 999px;
    background: #ffffff;
  }

  #critheraReaderRoot .template-catalog-carousel-counter {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 4;
    min-height: 20px;
    padding: 0 6px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 6px;
    background: rgba(8,9,10,.52);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    font-size: 8px;
    font-weight: 650;
  }

  #critheraReaderRoot #panelViewElements.active {
    display: block;
  }

  #critheraReaderRoot .editor-resources-intro,
  #critheraReaderRoot .editor-resources-tabs,
  #critheraReaderRoot .native-elements-block {
    display: none !important;
  }

  #critheraReaderRoot .editor-resources-search {
    margin-bottom: 12px;
  }

  #critheraReaderRoot .editor-resources-grid {
    display: block;
  }

  #critheraReaderRoot .editor-resource-section {
    margin-bottom: 17px;
  }

  #critheraReaderRoot .editor-resource-section-head {
    min-height: 28px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  #critheraReaderRoot .editor-resource-section-head strong {
    min-width: 0;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.5px;
    font-weight: 680;
  }

  #critheraReaderRoot .editor-resource-view-all {
    flex: 0 0 auto;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 650;
    cursor: pointer;
  }

  #critheraReaderRoot .editor-resource-view-all:hover,
  #critheraReaderRoot .editor-resource-view-all:focus-visible {
    color: var(--text);
  }

  #critheraReaderRoot .editor-resource-section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  #critheraReaderRoot .editor-resource-visual-card,
  #critheraReaderRoot .editor-native-visual-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    overflow: hidden;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition:
      border-color .14s ease,
      background-color .14s ease,
      transform .14s ease;
  }

  #critheraReaderRoot .editor-resource-visual-card:hover,
  #critheraReaderRoot .editor-resource-visual-card:focus-visible,
  #critheraReaderRoot .editor-native-visual-card:hover,
  #critheraReaderRoot .editor-native-visual-card:focus-visible {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.065);
    transform: translateY(-1px);
  }

  #critheraReaderRoot .editor-resource-visual-card img {
    width: 82%;
    height: 82%;
    max-width: none;
    object-fit: contain;
    display: block;
  }

  #critheraReaderRoot .editor-resource-visual-card.editor-resource-preview-pending {
    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,.025),
        rgba(255,255,255,.07)
      );
  }

  #critheraReaderRoot .editor-resource-visual-card.editor-resource-preview-pending img,
  #critheraReaderRoot .editor-resource-visual-card.editor-resource-preview-pending .editor-resource-frame-visual {
    opacity: .22;
  }

  #critheraReaderRoot .editor-resource-visual-card img,
  #critheraReaderRoot .editor-resource-visual-card .editor-resource-frame-visual {
    transition: opacity .14s ease;
  }

  #critheraReaderRoot .editor-resource-visual-card.texture img,
  #critheraReaderRoot .editor-resource-visual-card.overlay img,
  #critheraReaderRoot .editor-resource-visual-card.mockup img {
    width: 100%;
    height: 100%;
  }

  #critheraReaderRoot .editor-resource-visual-card .editor-resource-frame-visual {
    width: 82%;
    height: 82%;
  }

  #critheraReaderRoot .editor-native-shape {
    width: 58%;
    height: 48%;
    border: 1.5px solid currentColor;
    background: currentColor;
    opacity: .85;
  }

  #critheraReaderRoot .editor-native-shape.rounded {
    border-radius: 9px;
  }

  #critheraReaderRoot .editor-native-shape.square {
    width: 48%;
    height: 48%;
  }

  #critheraReaderRoot .editor-native-shape.circle {
    width: 50%;
    height: 50%;
    border-radius: 50%;
  }

  #critheraReaderRoot .editor-native-line {
    width: 68%;
    border-top: 2px solid currentColor;
  }

  #critheraReaderRoot .editor-native-line.dashed {
    border-top-style: dashed;
  }

  #critheraReaderRoot .editor-native-line.dotted {
    border-top-style: dotted;
  }

  #critheraReaderRoot .photo-draggable-card {
    cursor: grab;
  }

  #critheraReaderRoot .photo-draggable-card:active {
    cursor: grabbing;
  }

  #critheraReaderRoot .photo-draggable-card.is-dragging {
    opacity: .52;
  }

  #critheraReaderRoot .reader-image-frame.photo-drop-target {
    outline: 3px solid #ffffff !important;
    outline-offset: 4px !important;
    box-shadow:
      0 0 0 2px rgba(8,9,10,.64),
      0 0 0 5px rgba(255,255,255,.72) !important;
  }

  #critheraReaderRoot.photo-drag-active .reader-image-frame[data-element-id] {
    transition: outline-color .12s ease, box-shadow .12s ease;
  }

  #critheraReaderRoot.canvas-photo-drag-active .reader-image-frame[data-element-id] {
    transition: outline-color .12s ease, box-shadow .12s ease;
  }

  #critheraReaderRoot .replace-source-button.ai-replace-source {
    grid-column: 1 / -1;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .editor-resource-section-grid {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
  }

  @media (max-width: 520px) {
    #critheraReaderRoot .editor-resource-section-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #critheraReaderRoot .template-catalog-carousel-slide {
      transition: none;
    }
  }

/* crithera-editor-cliente-v12-opaque-editing-surfaces */
/*
    Pente-fino V12
    Impede que estilos tardios do WordPress/Elementor ou auditorias antigas
    devolvam transparência às barras e aos controles de edição.
  */
  html body #critheraReaderRoot .contextbar,
  html body #critheraReaderRoot .contextbar:not(.is-text-style) {
    isolation: isolate;
    opacity: 1 !important;
    background-color: #101112 !important;
    background-image: none !important;
    color: #f7f8f8 !important;
    border-bottom-color: #242629 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color-scheme: dark;
  }

  html body #critheraReaderRoot .contextbar::before {
    background-color: #101112 !important;
    background-image: none !important;
    opacity: 1 !important;
  }

  html body #critheraReaderRoot .contextbar > *,
  html body #critheraReaderRoot .contextbar button,
  html body #critheraReaderRoot .contextbar input,
  html body #critheraReaderRoot .contextbar select,
  html body #critheraReaderRoot .contextbar label,
  html body #critheraReaderRoot .contextbar [role="button"] {
    opacity: 1 !important;
  }

  /*
    Superfícies escuras dos controles contextuais de imagem, forma,
    fundo, seleção múltipla, grupos e camadas.
  */
  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  :is(
    .context-background-label,
    .background-color-button,
    .context-frame-replace,
    .context-image-button,
    .context-shape-color,
    .context-number-compact,
    .context-control,
    .context-color-control,
    .context-segmented,
    .context-format-group,
    .context-layer-actions,
    .context-property,
    .context-action:not(.primary),
    .context-editing-label,
    .context-image-edit-label,
    .context-image-zoom,
    .context-image-fit,
    .context-line-select,
    .context-tool,
    .group-toolbar-button
  ) {
    opacity: 1 !important;
    background-color: #17181a !important;
    background-image: none !important;
    border-color: #303236 !important;
    color: #f7f8f8 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  :is(
    .context-layer-action,
    .context-format-button,
    .context-segmented button,
    .context-image-fit button,
    .context-tool,
    .group-toolbar-button
  ) {
    opacity: 1 !important;
    background-color: #17181a !important;
    background-image: none !important;
    border-color: #303236 !important;
    color: #d7dade !important;
    box-shadow: none !important;
  }

  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  :is(
    .context-layer-action,
    .context-format-button,
    .context-segmented button,
    .context-image-fit button,
    .context-tool,
    .group-toolbar-button
  ):hover:not(:disabled),
  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  :is(
    .context-layer-action,
    .context-format-button,
    .context-segmented button,
    .context-image-fit button,
    .context-tool,
    .group-toolbar-button
  ):focus-visible:not(:disabled) {
    background-color: #242629 !important;
    border-color: #44474d !important;
    color: #ffffff !important;
  }

  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  :is(
    .context-image-button.active,
    .context-shape-color.active,
    .context-color-button.active,
    .context-format-button.active,
    .context-segmented button.active,
    .context-image-fit button.active,
    .context-tool.active
  ) {
    background-color: #f7f8f8 !important;
    background-image: none !important;
    border-color: #f7f8f8 !important;
    color: #08090a !important;
  }

  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  :is(
    .context-layer-action,
    .context-format-button,
    .context-segmented button,
    .context-image-fit button,
    .context-tool,
    .group-toolbar-button
  ):disabled {
    opacity: 1 !important;
    background-color: #121315 !important;
    background-image: none !important;
    border-color: #25272a !important;
    color: #656a73 !important;
  }

  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  :is(
    .context-number-compact input,
    .context-control input,
    .context-control select,
    .context-line-select select,
    .context-property-value
  ) {
    opacity: 1 !important;
    background-color: #101112 !important;
    background-image: none !important;
    border-color: #303236 !important;
    color: #f7f8f8 !important;
    box-shadow: none !important;
  }

  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  :is(
    .context-control option,
    .context-line-select option
  ) {
    background-color: #17181a !important;
    color: #f7f8f8 !important;
  }

  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  :is(
    .context-control-label,
    .context-property-label,
    .context-number-compact > span,
    .context-image-zoom output,
    .context-type,
    .context-empty,
    .context-editing-help,
    .multi-selection-toolbar-label
  ) {
    opacity: 1 !important;
    color: #aeb2b9 !important;
  }

  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  .context-frame-replace,
  html body #critheraReaderRoot .contextbar:not(.is-text-style)
  .context-action.primary {
    opacity: 1 !important;
    background-color: #f7f8f8 !important;
    background-image: none !important;
    border-color: #f7f8f8 !important;
    color: #08090a !important;
  }

  html body #critheraReaderRoot
  .group-toolbar-button
  .toolbar-button-copy {
    opacity: 1 !important;
    color: inherit !important;
  }

  /*
    Toolbar de texto e de linha: superfície clara e controles brancos.
    A barra de linha usa o mesmo componente visual da toolbar de texto.
  */
  html body #critheraReaderRoot .contextbar.is-text-style {
    opacity: 1 !important;
    background-color: #eceff3 !important;
    background-image: none !important;
    color: #0f0f14 !important;
    border-bottom-color: #dfe2e7 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color-scheme: light;
  }

  html body #critheraReaderRoot .contextbar.is-text-style::before {
    background-color: #eceff3 !important;
  }

  html body #critheraReaderRoot
  :is(.canva-text-toolbar, .canva-line-toolbar) {
    opacity: 1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: #dfe2e7 !important;
    color: #0f0f14 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color-scheme: light;
  }

  html body #critheraReaderRoot
  :is(.canva-text-toolbar, .canva-line-toolbar)
  :is(
    .canva-toolbar-button,
    .canva-toolbar-label-button,
    .canva-font-button,
    .canva-size-control,
    .canva-size-control input,
    .context-shape-color,
    .context-number-compact,
    .canva-edit-action,
    .context-format-button
  ) {
    opacity: 1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: #dfe2e7 !important;
    color: #0f0f14 !important;
    box-shadow: none !important;
  }

  html body #critheraReaderRoot
  :is(.canva-text-toolbar, .canva-line-toolbar)
  :is(
    .canva-toolbar-button,
    .canva-toolbar-label-button,
    .canva-font-button,
    .canva-edit-action,
    .context-format-button
  ):hover:not(:disabled),
  html body #critheraReaderRoot
  :is(.canva-text-toolbar, .canva-line-toolbar)
  :is(
    .canva-toolbar-button,
    .canva-toolbar-label-button,
    .canva-font-button,
    .canva-edit-action,
    .context-format-button
  ):focus-visible:not(:disabled) {
    background-color: #f2f3f5 !important;
    border-color: #cfd3d9 !important;
    color: #0f0f14 !important;
  }

  html body #critheraReaderRoot
  :is(.canva-text-toolbar, .canva-line-toolbar)
  :is(
    .canva-toolbar-button.active,
    .canva-toolbar-label-button.active,
    .canva-font-button.active,
    .context-format-button.active
  ) {
    background-color: #e7e9ed !important;
    background-image: none !important;
    border-color: #c9cdd4 !important;
    color: #0f0f14 !important;
  }

  html body #critheraReaderRoot
  :is(.canva-text-toolbar, .canva-line-toolbar)
  :is(
    .canva-toolbar-button,
    .canva-toolbar-label-button,
    .canva-font-button,
    .canva-edit-action,
    .context-format-button
  ):disabled {
    opacity: 1 !important;
    background-color: #f1f1f3 !important;
    background-image: none !important;
    border-color: #dfe2e7 !important;
    color: #9a9ea6 !important;
  }

  html body #critheraReaderRoot
  :is(.canva-text-toolbar, .canva-line-toolbar)
  :is(
    .context-number-compact input,
    .canva-size-control input
  ) {
    opacity: 1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #0f0f14 !important;
  }

  html body #critheraReaderRoot
  :is(.canva-text-toolbar, .canva-line-toolbar)
  .canva-edit-action.primary {
    opacity: 1 !important;
    background-color: #0f0f14 !important;
    background-image: none !important;
    border-color: #0f0f14 !important;
    color: #ffffff !important;
  }

  /*
    Popovers abertos pelas barras: nada translúcido, inclusive opções.
  */
  html body #critheraReaderRoot .canva-toolbar-popover {
    opacity: 1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: #d5d8de !important;
    color: #0f0f14 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color-scheme: light;
  }

  html body #critheraReaderRoot .canva-toolbar-popover
  :is(
    .line-toolbar-option,
    .toolbar-anchor-button,
    .toolbar-align-button,
    .toolbar-effect-toggle,
    .toolbar-position-action,
    .corner-link-toggle,
    .corner-number,
    .corner-grid input,
    .toolbar-slider-value
  ) {
    opacity: 1 !important;
    background-color: #f7f7f9 !important;
    background-image: none !important;
    border-color: #d5d8de !important;
    color: #0f0f14 !important;
  }

  html body #critheraReaderRoot .canva-toolbar-popover
  :is(
    .line-toolbar-option,
    .toolbar-anchor-button,
    .toolbar-align-button,
    .toolbar-effect-toggle,
    .toolbar-position-action,
    .corner-link-toggle
  ):hover:not(:disabled) {
    background-color: #e9ebee !important;
    border-color: #b9bec6 !important;
  }

  html body #critheraReaderRoot .canva-toolbar-popover
  :is(
    .line-toolbar-option.active,
    .toolbar-anchor-button.active,
    .toolbar-align-button.active,
    .toolbar-effect-toggle.active,
    .corner-link-toggle.active
  ) {
    background-color: #e1e4e8 !important;
    border-color: #aeb3bb !important;
    color: #0f0f14 !important;
  }

  html body #critheraReaderRoot .canva-toolbar-popover
  :is(
    .toolbar-position-action,
    .toolbar-effect-toggle
  ):disabled {
    opacity: 1 !important;
    background-color: #f1f1f3 !important;
    border-color: #dfe2e7 !important;
    color: #9a9ea6 !important;
  }

  /*
    No celular todas as barras contextuais são claras e sólidas.
  */
  @media (max-width: 760px) {
    html body #critheraReaderRoot .contextbar,
    html body #critheraReaderRoot .contextbar:not(.is-text-style),
    html body #critheraReaderRoot .contextbar.is-text-style {
      opacity: 1 !important;
      background-color: #f7f7f9 !important;
      background-image: none !important;
      color: #0f0f14 !important;
      border-bottom-color: #dfe2e7 !important;
      box-shadow: 0 2px 8px rgba(25,30,38,.05) !important;
      color-scheme: light;
    }

    html body #critheraReaderRoot .contextbar::before,
    html body #critheraReaderRoot .contextbar:not(.is-text-style)::before,
    html body #critheraReaderRoot .contextbar.is-text-style::before {
      background-color: #f7f7f9 !important;
      background-image: none !important;
      opacity: 1 !important;
    }

    html body #critheraReaderRoot .contextbar
    :is(
      .context-background-label,
      .background-color-button,
      .context-frame-replace,
      .context-image-button,
      .context-shape-color,
      .context-number-compact,
      .context-control,
      .context-color-control,
      .context-segmented,
      .context-format-group,
      .context-layer-actions,
      .context-property,
      .context-action:not(.primary),
      .context-editing-label,
      .context-image-edit-label,
      .context-image-zoom,
      .context-image-fit,
      .context-line-select,
      .context-tool,
      .group-toolbar-button
    ) {
      opacity: 1 !important;
      background-color: #ffffff !important;
      background-image: none !important;
      border-color: #d5d8de !important;
      color: #0f0f14 !important;
      box-shadow: none !important;
    }

    html body #critheraReaderRoot .contextbar
    :is(
      .context-layer-action,
      .context-format-button,
      .context-segmented button,
      .context-image-fit button,
      .context-tool,
      .group-toolbar-button
    ) {
      opacity: 1 !important;
      background-color: #ffffff !important;
      background-image: none !important;
      border-color: #d5d8de !important;
      color: #444850 !important;
    }

    html body #critheraReaderRoot .contextbar
    :is(
      .context-layer-action,
      .context-format-button,
      .context-segmented button,
      .context-image-fit button,
      .context-tool,
      .group-toolbar-button
    ):hover:not(:disabled),
    html body #critheraReaderRoot .contextbar
    :is(
      .context-layer-action,
      .context-format-button,
      .context-segmented button,
      .context-image-fit button,
      .context-tool,
      .group-toolbar-button
    ):focus-visible:not(:disabled) {
      background-color: #f1f2f4 !important;
      border-color: #c5c9d0 !important;
      color: #0f0f14 !important;
    }

    html body #critheraReaderRoot .contextbar
    :is(
      .context-image-button.active,
      .context-shape-color.active,
      .context-color-button.active,
      .context-format-button.active,
      .context-segmented button.active,
      .context-image-fit button.active,
      .context-tool.active
    ) {
      background-color: #0f0f14 !important;
      background-image: none !important;
      border-color: #0f0f14 !important;
      color: #ffffff !important;
    }

    html body #critheraReaderRoot .contextbar
    :is(
      .context-layer-action,
      .context-format-button,
      .context-segmented button,
      .context-image-fit button,
      .context-tool,
      .group-toolbar-button
    ):disabled {
      opacity: 1 !important;
      background-color: #f1f1f3 !important;
      background-image: none !important;
      border-color: #dfe2e7 !important;
      color: #9a9ea6 !important;
    }

    html body #critheraReaderRoot .contextbar
    :is(
      .context-number-compact input,
      .context-control input,
      .context-control select,
      .context-line-select select,
      .context-property-value
    ) {
      opacity: 1 !important;
      background-color: #ffffff !important;
      background-image: none !important;
      border-color: #d5d8de !important;
      color: #0f0f14 !important;
    }

    html body #critheraReaderRoot .contextbar
    :is(
      .context-control-label,
      .context-property-label,
      .context-number-compact > span,
      .context-image-zoom output,
      .context-type,
      .context-empty,
      .context-editing-help,
      .multi-selection-toolbar-label
    ) {
      opacity: 1 !important;
      color: #6b6f78 !important;
    }

    html body #critheraReaderRoot .contextbar
    .context-frame-replace,
    html body #critheraReaderRoot .contextbar
    .context-action.primary {
      opacity: 1 !important;
      background-color: #0f0f14 !important;
      background-image: none !important;
      border-color: #0f0f14 !important;
      color: #ffffff !important;
    }

    html body #critheraReaderRoot
    .contextbar:not(.is-text-style)
    .group-toolbar-button {
      opacity: 1 !important;
      background-color: #17181a !important;
      background-image: none !important;
      border-color: #303236 !important;
      color: #ffffff !important;
    }

    html body #critheraReaderRoot
    .contextbar:not(.is-text-style)
    .group-toolbar-button
    .toolbar-button-copy {
      opacity: 1 !important;
      color: #ffffff !important;
    }
  }

/* crithera-editor-v14-2-mobile-guides-fix */
/*
    V14.2 — correção das guias no mobile.

    Na V14.1, o contêiner .workspace-rulers era ocultado por inteiro
    abaixo de 760px. Como a camada .workspace-guides-layer fica dentro
    desse contêiner, as linhas guias também desapareciam.

    A correção mantém somente as réguas visuais escondidas no celular,
    preservando a camada das guias e sua interação.
  */
  @media (max-width: 760px) {
    #critheraReaderRoot
    .workspace-rulers {
      display: block !important;
      pointer-events: none !important;
      overflow: hidden !important;
    }

    #critheraReaderRoot
    .workspace-ruler,
    #critheraReaderRoot
    .workspace-ruler-corner {
      display: none !important;
    }

    #critheraReaderRoot
    .workspace-guides-layer {
      display: block !important;
      inset: 0 !important;
      pointer-events: none !important;
      overflow: hidden !important;
    }

    #critheraReaderRoot
    .workspace-guides-layer.hidden {
      display: none !important;
    }

    #critheraReaderRoot
    .workspace-guide.vertical {
      top: 0 !important;
    }

    #critheraReaderRoot
    .workspace-guide.horizontal {
      left: 0 !important;
    }
  }

/* crithera-editor-v14-3-guides-visibility-fix */
/*
    V14.3 — guias realmente visíveis.

    As guias são botões para permitir arraste e acessibilidade. A auditoria
    cromática global interpretava o roxo funcional como vazamento de cor e
    aplicava background-color: transparent !important. A régua e o magnetismo
    continuavam funcionando, mas a linha ficava invisível.
  */
  #critheraReaderRoot
  .workspace-guides-layer {
    z-index: 4 !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  #critheraReaderRoot
  .workspace-guides-layer.hidden {
    display: none !important;
  }

  html body #critheraReaderRoot
  .workspace-guide,
  html body #critheraReaderRoot
  .workspace-guide:is(
    :hover,
    :focus,
    :focus-visible,
    :active
  ) {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: var(--guide-accent) !important;
    background-image: none !important;
    border-color: var(--guide-accent) !important;
    color: #ffffff !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  html body #critheraReaderRoot
  .workspace-guide.dragging {
    box-shadow:
      0 0 0 .5px rgba(139,61,255,.42),
      0 0 8px rgba(139,61,255,.20) !important;
  }

  html body #critheraReaderRoot
  .workspace-guide
  .guide-coordinate {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: var(--guide-accent) !important;
    background-image: none !important;
    color: #ffffff !important;
    filter: none !important;
  }

  @media (max-width: 760px) {
    html body #critheraReaderRoot
    .workspace-guide.vertical {
      width: 2px !important;
    }

    html body #critheraReaderRoot
    .workspace-guide.horizontal {
      height: 2px !important;
    }
  }

/* crithera-admin-replaceable-content-image-v3 */
#critheraReaderRoot .content-image-setting {
    margin-top: 16px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
  }

  #critheraReaderRoot .content-image-setting-row {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
  }

  #critheraReaderRoot .content-image-setting-copy {
    min-width: 0;
    flex: 1;
  }

  #critheraReaderRoot .content-image-setting-copy strong,
  #critheraReaderRoot .content-image-setting-copy span {
    display: block;
  }

  #critheraReaderRoot .content-image-setting-copy strong {
    color: var(--text);
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 650;
  }

  #critheraReaderRoot .content-image-setting-copy span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.48;
  }

  #critheraReaderRoot .content-image-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
  }

  #critheraReaderRoot .content-image-switch input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  #critheraReaderRoot .content-image-switch-track {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #0f1011;
    transition: background .16s ease, border-color .16s ease;
    pointer-events: none;
  }

  #critheraReaderRoot .content-image-switch-track::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #777c84;
    transition: transform .16s ease, background .16s ease;
  }

  #critheraReaderRoot .content-image-switch input:checked + .content-image-switch-track {
    border-color: #f7f8f8;
    background: #f7f8f8;
  }

  #critheraReaderRoot .content-image-switch input:checked + .content-image-switch-track::after {
    transform: translateX(18px);
    background: #08090a;
  }

  #critheraReaderRoot .content-image-switch input:focus-visible + .content-image-switch-track {
    outline: 2px solid rgba(255,255,255,.7);
    outline-offset: 2px;
  }

  #critheraReaderRoot .content-image-switch input:disabled + .content-image-switch-track {
    opacity: .38;
  }

  #critheraReaderRoot .content-image-setting-status {
    min-height: 24px;
    margin-top: 11px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    font-size: 8.5px;
    font-weight: 650;
  }

  #critheraReaderRoot .content-image-setting-status.is-replaceable {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.055);
    color: var(--text);
  }

/* crithera-admin-v3-interface-guards */
/* Recursos exclusivos da cliente que não pertencem ao fluxo de criação de templates. */
  #critheraReaderRoot.admin-editor:not(.user-editor) #captionTriggerBtn,
  #critheraReaderRoot.admin-editor:not(.user-editor) #captionPanel,
  #critheraReaderRoot.admin-editor:not(.user-editor) #captionPanelBackdrop {
    display: none !important;
  }

  #critheraReaderRoot.admin-editor:not(.user-editor) #userDownloadControl {
    display: block !important;
  }

  #critheraReaderRoot.admin-editor:not(.user-editor) .download-button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #f7f8f8;
    border-radius: 8px;
    background: #f7f8f8;
    color: #08090a;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }

  #critheraReaderRoot.admin-editor:not(.user-editor) .download-button:hover,
  #critheraReaderRoot.admin-editor:not(.user-editor) .download-button:focus-visible,
  #critheraReaderRoot.admin-editor:not(.user-editor) .download-button[aria-expanded="true"] {
    background: #ffffff;
  }

  #critheraReaderRoot.admin-editor:not(.user-editor) .download-button:disabled {
    opacity: .58;
    cursor: wait;
  }

  #critheraReaderRoot.admin-editor:not(.user-editor) .download-button .ui-icon {
    width: 15px;
    height: 15px;
  }

/* crithera-admin-editor-v31-stability-photo-masonry */
/* Viewport estável: nenhum foco do inspetor pode reduzir ou deslocar o editor. */
  html,
  body {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    background: #08090a !important;
  }

  #critheraReaderRoot {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overflow-anchor: none !important;
  }

  #critheraReaderRoot .main,
  #critheraReaderRoot .workspace,
  #critheraReaderRoot .stage,
  #critheraReaderRoot .admin-inspector,
  #critheraReaderRoot .admin-inspector-scroll,
  #critheraReaderRoot .sidepanel,
  #critheraReaderRoot .panel-content {
    min-height: 0 !important;
    overflow-anchor: none !important;
  }

  /* O campo invisível ocupa o próprio controle e não vira alvo fora da tela. */
  #critheraReaderRoot .admin-toggle {
    position: relative !important;
  }

  #critheraReaderRoot .admin-toggle input {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
  }

  /* Galerias em mosaico, com proporções reais e ordem variada por carregamento. */
  #critheraReaderRoot .pexels-photo-grid {
    display: block !important;
    width: 100% !important;
    column-count: 3 !important;
    column-gap: 7px !important;
  }

  #critheraReaderRoot .pexels-photo-grid:empty {
    display: none !important;
  }

  #critheraReaderRoot .pexels-photo-card {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 7px !important;
    aspect-ratio: var(--photo-ratio, .8) !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    display: inline-block !important;
    vertical-align: top !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }

  #critheraReaderRoot .pexels-photo-use,
  #critheraReaderRoot .pexels-photo-use img {
    width: 100% !important;
    height: 100% !important;
  }

  #critheraReaderRoot .pexels-photo-use img {
    object-fit: cover !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  /* Biblioteca CRITHERA limpa: metadados continuam disponíveis somente para busca e sistema. */
  #critheraReaderRoot .crithera-library-photo-use::after {
    display: none !important;
    content: none !important;
  }

  #critheraReaderRoot .pexels-load-more {
    display: none !important;
  }

  #critheraReaderRoot .pexels-loading {
    min-height: 92px !important;
  }

  @media (max-width: 470px) {
    #critheraReaderRoot .pexels-photo-grid {
      column-count: 2 !important;
    }
  }

/* crithera-semantic-elements-actions-menu-v1 */
#critheraReaderRoot .element-actions-menu-button {
    flex: 0 0 auto;
  }

  #critheraReaderRoot .canva-text-toolbar
  .element-actions-menu-button {
    width: 34px;
    height: 32px;
    border: 1px solid var(--toolbar-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--toolbar-text);
  }

  #critheraReaderRoot .element-actions-popover-list {
    display: grid;
    gap: 7px;
  }

  #critheraReaderRoot .element-actions-popover-action {
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #d5d8de;
    border-radius: 9px;
    background: #f7f7f9;
    color: #0f0f14;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font: 650 12px/1 Inter, sans-serif;
    text-align: left;
    cursor: pointer;
  }

  #critheraReaderRoot .element-actions-popover-action:hover,
  #critheraReaderRoot .element-actions-popover-action:focus-visible {
    background: #e9ebee;
    border-color: #b9bec6;
    outline: none;
  }

  #critheraReaderRoot .element-actions-popover-action.danger {
    color: #8b1e27;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .element-actions-menu-button {
      width: 38px;
      min-width: 38px;
      height: 36px;
    }

    #critheraReaderRoot .element-actions-popover-action {
      min-height: 48px;
      font-size: 13px;
    }
  }

/* crithera-corners-contrast-fix-v36 */
/*
    Cantos precisa respeitar o contraste da barra em que está inserido.
    A auditoria monocromática antiga deixava o texto escuro sobre a barra
    escura até o hover. Esta regra final blinda o botão e o popover.
  */
  html body #critheraReaderRoot
  .contextbar:not(.is-text-style)
  .corner-toolbar-button {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #17181a !important;
    background-image: none !important;
    border-color: #34373c !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  html body #critheraReaderRoot
  .contextbar:not(.is-text-style)
  .corner-toolbar-button
  :is(.toolbar-button-copy, .toolbar-chevron, svg, path) {
    opacity: 1 !important;
    color: inherit !important;
    stroke: currentColor !important;
  }

  html body #critheraReaderRoot
  .contextbar:not(.is-text-style)
  .corner-toolbar-button:hover:not(:disabled),
  html body #critheraReaderRoot
  .contextbar:not(.is-text-style)
  .corner-toolbar-button:focus-visible:not(:disabled) {
    background-color: #24262a !important;
    border-color: #555960 !important;
    color: #ffffff !important;
  }

  html body #critheraReaderRoot
  .canva-toolbar-popover.corner-popover {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: #d5d8de !important;
    color: #0f0f14 !important;
    color-scheme: light !important;
  }

  html body #critheraReaderRoot
  .canva-toolbar-popover.corner-popover
  :is(
    .corner-popover-title,
    .corner-field span,
    .corner-popover-hint
  ) {
    opacity: 1 !important;
    color: #4f545d !important;
  }

  html body #critheraReaderRoot
  .canva-toolbar-popover.corner-popover
  .corner-popover-title {
    color: #0f0f14 !important;
  }

  html body #critheraReaderRoot
  .canva-toolbar-popover.corner-popover
  :is(.corner-link-toggle, .corner-number, .corner-grid input) {
    opacity: 1 !important;
    background-color: #f7f7f9 !important;
    background-image: none !important;
    border-color: #d5d8de !important;
    color: #0f0f14 !important;
    -webkit-text-fill-color: #0f0f14 !important;
  }

  html body #critheraReaderRoot
  .canva-toolbar-popover.corner-popover
  input[type="range"] {
    opacity: 1 !important;
    accent-color: #111214 !important;
  }

  @media (max-width: 760px) {
    html body #critheraReaderRoot
    .contextbar:not(.is-text-style)
    .corner-toolbar-button {
      background-color: #ffffff !important;
      border-color: #d5d8de !important;
      color: #0f0f14 !important;
    }

    html body #critheraReaderRoot
    .contextbar:not(.is-text-style)
    .corner-toolbar-button:hover:not(:disabled),
    html body #critheraReaderRoot
    .contextbar:not(.is-text-style)
    .corner-toolbar-button:focus-visible:not(:disabled),
    html body #critheraReaderRoot
    .contextbar:not(.is-text-style)
    .corner-toolbar-button:active:not(:disabled) {
      background-color: #eceef1 !important;
      border-color: #b9bec6 !important;
      color: #0f0f14 !important;
    }
  }

/* crithera-texture-background-edit-fix */
/* A imagem de fundo pode ser selecionada nas áreas sem elementos. */
  #critheraReaderRoot .reader-canvas .reader-background-image:not(.reader-miniature) {
    pointer-events: auto;
    cursor: pointer;
  }

  #critheraReaderRoot .reader-canvas .reader-background-image:not(.reader-miniature):hover {
    box-shadow: inset 0 0 0 2px rgba(131, 92, 246, .42);
  }

  /* O bloco de substituição some por completo em texturas e elementos protegidos. */
  #critheraReaderRoot #imageReplaceSection[hidden] {
    display: none !important;
  }

/* crithera-rich-text-selection-weight-v1 */
#critheraReaderRoot .inline-text-editor,
  #critheraReaderRoot .inline-text-editor * {
    -webkit-user-select: text !important;
    user-select: text !important;
  }

  #critheraReaderRoot .inline-text-editor {
    outline-color: #6558ff !important;
    box-shadow: 0 0 0 1px rgba(101,88,255,.28) !important;
    caret-color: #245eea !important;
    -webkit-touch-callout: default;
  }

  #critheraReaderRoot .inline-text-editor::selection,
  #critheraReaderRoot .inline-text-editor *::selection {
    background: #2f6fe4 !important;
    color: #ffffff !important;
    text-shadow: none !important;
  }

  #critheraReaderRoot .canva-weight-button {
    min-width: 74px;
    max-width: 108px;
  }

  #critheraReaderRoot .canva-weight-button .toolbar-button-copy {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #critheraReaderRoot .toolbar-weight-list {
    display: grid;
    gap: 5px;
  }

  #critheraReaderRoot .toolbar-weight-option {
    width: 100%;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
  }

  #critheraReaderRoot .toolbar-weight-option:hover,
  #critheraReaderRoot .toolbar-weight-option.active {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.08);
  }

  #critheraReaderRoot .toolbar-weight-option small {
    color: var(--muted);
    font: 600 9px/1 Inter, sans-serif;
  }

  #critheraReaderRoot .weight-option[data-selection-weight="true"] {
    box-shadow: inset 3px 0 0 #6558ff;
  }

  #critheraReaderRoot .context-format-button[data-mixed="true"] {
    box-shadow: inset 0 -2px 0 #6558ff;
  }

  @media (max-width: 760px) {
    #critheraReaderRoot .inline-text-editor {
      touch-action: auto !important;
      -webkit-user-select: text !important;
      user-select: text !important;
    }

    #critheraReaderRoot .canva-weight-button {
      min-width: 68px;
      max-width: 92px;
    }
  }



/* =========================================================
   V4.13.2 — EXCLUSÃO SEGURA DO CARD ATUAL
   ========================================================= */
#critheraReaderRoot .page-action-button.danger {
  border-color: rgba(180,35,24,.28) !important;
  background-color: #fff !important;
  color: #B42318 !important;
}

#critheraReaderRoot .page-action-button.danger:hover,
#critheraReaderRoot .page-action-button.danger:focus-visible {
  border-color: #B42318 !important;
  background-color: #FFF5F4 !important;
  color: #B42318 !important;
}

#critheraReaderRoot .page-action-button.danger .page-action-icon,
#critheraReaderRoot .page-action-button.danger .page-action-copy strong,
#critheraReaderRoot .page-action-button.danger .page-action-copy small {
  color: inherit !important;
}

#critheraReaderRoot .page-action-button.danger:disabled {
  border-color: var(--workspace-line) !important;
  background-color: #fff !important;
  color: var(--workspace-muted) !important;
  opacity: .45 !important;
  cursor: not-allowed !important;
}

/* =========================================================
   CRITHERA — V4.13.3 FUNDO DE TEXTO POR LINHA (ESTILO CANVA)
   A tarja é uma camada visual independente: não participa da
   quebra do texto. O box-decoration-break clona fundo/borda em
   cada fragmento visual da linha.
   ========================================================= */
#critheraReaderRoot .reader-text.has-text-line-background {
  isolation: isolate;
  overflow: visible !important;
}

#critheraReaderRoot .reader-text .cr-text-line-background-render {
  position: absolute;
  z-index: -1;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  pointer-events: none;
  user-select: none;
  overflow: visible;
  white-space: pre-wrap;
  overflow-wrap: normal;
  word-break: normal;
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
  text-decoration: none !important;
  text-shadow: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

#critheraReaderRoot .reader-text .cr-text-line-background-render *,
#critheraReaderRoot .reader-text .cr-text-line-background-flow * {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

#critheraReaderRoot .reader-text .cr-text-line-background-flow {
  display: inline;
  margin: 0;
  padding:
    var(--cr-text-bg-pad-y, 2px)
    var(--cr-text-bg-pad-x, 6px);
  border:
    var(--cr-text-bg-border-width, 0px)
    var(--cr-text-bg-border-style, solid)
    var(--cr-text-bg-border-color, transparent);
  border-radius:
    var(--cr-text-bg-radius, 0px);
  background:
    var(--cr-text-bg-fill, #000000);
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Durante a edição, o texto real do nó-base fica transparente,
   mas a tarja permanece visível atrás do contenteditable. */
#critheraReaderRoot .reader-text.is-text-edit-background-source {
  background-image: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

#critheraReaderRoot
  .reader-text.is-text-edit-background-source
  > :not(.cr-text-line-background-render),
#critheraReaderRoot
  .reader-text.is-text-edit-background-source
  > :not(.cr-text-line-background-render) * {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

#critheraReaderRoot .toolbar-effect-background-controls {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

#critheraReaderRoot .toolbar-effect-background-controls[hidden] {
  display: none !important;
}

#critheraReaderRoot .toolbar-effect-color-button {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--toolbar-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--toolbar-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

#critheraReaderRoot .toolbar-effect-color-button:hover,
#critheraReaderRoot .toolbar-effect-color-button:focus-visible {
  border-color: #b9bac2;
  background: #f7f7fa;
}

#critheraReaderRoot .toolbar-effect-color-swatch {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(15,15,20,.12);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

/* crithera-editor-admin-v4-13-4-performance */
#critheraReaderRoot
  .reader-element.is-resizing {
  will-change: left, top, width, height, transform;
}

#critheraReaderRoot
  .reader-element.is-rotating {
  will-change: transform;
}

#critheraReaderRoot
  .selection-box.is-resizing,
#critheraReaderRoot
  .selection-box.is-rotating {
  will-change: left, top, width, height, transform;
}

#critheraReaderRoot
  .editor-resource-section,
#critheraReaderRoot
  .template-catalog-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 190px;
}

#critheraReaderRoot
  .page-mini-stage {
  contain: layout paint style;
}
