/* Universal PDF workspace. Shared native controls and RecodeX tokens stay canonical. */
.ue-dialog {
  --ue-dialog-accent: #4358c7;
  --ue-dialog-danger: #ba3451;
  position: fixed;
  margin: 0;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  max-width: calc(100% - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 25px;
  border: 1px solid var(--border, #dce2ef);
  border-radius: 20px;
  background: var(--surface, #fff);
  color: var(--text, #243047);
  box-shadow: 0 20px 80px #17244340;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
}
.dark .ue-dialog {
  --ue-dialog-accent: #b1beff;
  --ue-dialog-danger: #ffacbe;
}
.ue-dialog::backdrop {
  background: #10182891;
  backdrop-filter: blur(2px);
}
.ue-dialog-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid var(--border, #dce2ef);
  border-radius: 13px;
  background: var(--soft, #eef1ff);
  color: var(--ue-dialog-accent);
  font-size: 20px;
}
.ue-dialog-danger .ue-dialog-icon {
  background: #fff0f3;
  color: var(--ue-dialog-danger);
}
.dark .ue-dialog-danger .ue-dialog-icon {
  background: #402936;
}
.ue-dialog > h2 {
  margin: 0 0 10px;
  color: var(--text, #243047);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ue-dialog > p {
  margin: 0;
  color: var(--muted, #606b82);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ue-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
.ue-dialog-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 100px;
  padding: 10px 17px;
  border: 1px solid var(--border, #dce2ef);
  border-radius: 10px;
  background: var(--bg, #f7f9ff);
  color: var(--text, #243047);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.ue-dialog-button:hover {
  border-color: var(--ue-dialog-accent);
  color: var(--ue-dialog-accent);
}
.ue-dialog-button:focus-visible {
  outline: 3px solid var(--ue-dialog-accent);
  outline-offset: 3px;
}
.ue-dialog-confirm {
  border-color: transparent;
  background: var(--ue-dialog-accent);
  color: #fff;
}
.ue-dialog-danger .ue-dialog-confirm {
  background: var(--ue-dialog-danger);
}
.ue-dialog-confirm:hover {
  border-color: transparent;
  color: #fff;
  filter: brightness(0.94);
}
.dark .ue-dialog-confirm,
.dark .ue-dialog-confirm:hover {
  color: #172044;
}
.ue-app {
  --ink: var(--text);
  --line: var(--border);
  --ue-accent: #4358c7;
  --ue-danger: #ba3451;
  --ue-canvas: #e9edf5;
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 14px 26px 22px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}
.dark .ue-app {
  --ue-danger: #ffacbe;
  --ue-accent: #b1beff;
  --ue-canvas: #111722;
}
.ue-app [hidden] {
  display: none !important;
}
.ue-app :where(button, input, textarea, select) {
  font: inherit;
}
.ue-app
  :where(button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid #8294f4;
  outline-offset: 3px;
}
.ue-app :where(button, summary) {
  -webkit-tap-highlight-color: transparent;
}
.ue-app h2,
.ue-app h3,
.ue-app p {
  margin-top: 0;
}
.ue-app h2 {
  letter-spacing: -0.45px;
}
.ue-app .m-btn {
  white-space: nowrap;
}
.ue-app .m-btn:hover:not(:disabled) {
  color: var(--ue-accent);
}
.ue-app .m-btn:disabled {
  opacity: 0.44;
}
.ue-app .m-btn.primary {
  color: #fff;
}
.dark .ue-app .m-btn.primary {
  color: #172044;
}
.ue-app .m-btn.primary:hover:not(:disabled) {
  background: #435bcc;
  color: #fff;
}
.dark .ue-app .m-btn.primary:hover:not(:disabled) {
  background: #b6c2ff;
  color: #172044;
}
.ue-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ue-preflight {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 9px 24px;
  margin: 0 2px 17px;
  color: var(--muted);
  font-size: 11px;
}
.ue-private,
.ue-engine-status {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}
.ue-private > i {
  color: #26856a;
  font-size: 15px;
}
.dark .ue-private > i {
  color: #8ad9b8;
}
.ue-private strong {
  color: var(--text);
  font-weight: 600;
}
.ue-engine-status {
  max-width: 650px;
  font-size: 10px;
}
.ue-engine-status .m-btn {
  padding: 4px 7px;
  font-size: 10px;
  min-height: 30px;
}
.ue-engine-dot,
.ue-local-badge > span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.ue-engine-status.ready .ue-engine-dot {
  background: #2a9a74;
}
.ue-engine-status.failed .ue-engine-dot,
.ue-engine-status.error .ue-engine-dot {
  background: #c64e63;
}
.ue-workbench {
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: 0 12px 38px #27365908;
  overflow: clip;
}
.ue-workbench.drag-over,
.ue-workbench.dragging {
  border-color: var(--ue-accent);
  box-shadow: 0 0 0 4px #7d8fe327;
}
.ue-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ue-editor-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 6px;
}
.ue-editor-mark {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--ue-accent);
  width: 39px;
  height: 39px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 20px;
}
.ue-editor-identity strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.3px;
}
.ue-editor-identity strong > span {
  font-weight: 500;
  color: var(--muted);
}
.ue-editor-identity small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.ue-file-actions,
.ue-history,
.ue-save-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ue-file-actions {
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.ue-filename-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  flex: 1 1 145px;
  min-width: 100px;
  max-width: 260px;
  margin: 0 auto 0 5px;
}
.ue-filename-field > i {
  color: #bd596c;
}
.ue-filename-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 4px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
}
.ue-filename-field > #ue-filename {
  display: block;
  padding: 7px 4px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  color: var(--text);
}
.ue-filename-field input:hover,
.ue-filename-field input:focus {
  border-color: var(--border);
  background: var(--bg);
}
.ue-history {
  border-right: 1px solid var(--border);
  padding-right: 11px;
}
.ue-history .m-btn {
  padding: 7px 9px;
}
.ue-history .m-btn > span {
  display: none;
}
.ue-save-actions {
  margin-left: auto;
}
.ue-save-actions .ue-save {
  padding: 9px 14px;
  min-height: 38px;
  font-size: 11px;
}
.ue-topbar .m-btn.small {
  font-size: 10px;
  min-height: 36px;
}
.ue-editor-grid {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) 277px;
  align-items: stretch;
}
.ue-tools {
  padding: 20px 11px 18px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  min-width: 0;
}
.ue-rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 17px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.8px;
  font-weight: 700;
}
.ue-rail-heading > i {
  font-size: 12px;
  letter-spacing: normal;
}
.ue-tool-group {
  padding-bottom: 10px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--border);
}
.ue-tool-group:last-of-type {
  border-bottom: 0;
}
.ue-tool-group > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.ue-tool-group > summary::-webkit-details-marker {
  display: none;
}
.ue-tool-group > summary > i {
  font-size: 9px;
  transition: transform 0.2s;
}
.ue-tool-group[open] > summary > i {
  transform: rotate(180deg);
}
.ue-tool-list {
  display: grid;
  gap: 3px;
}
.ue-tool {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  position: relative;
}
.ue-tool > i {
  color: var(--muted);
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.ue-tool > span {
  flex: 1;
}
.ue-tool > small {
  font-size: 7px;
  color: var(--muted);
  position: absolute;
  right: 8px;
  bottom: 0;
}
.ue-tool:hover:not(:disabled) {
  background: var(--bg);
  color: var(--ue-accent);
}
.ue-tool.selected,
.ue-tool.active,
.ue-tool[aria-pressed="true"] {
  background: var(--soft);
  color: var(--ue-accent);
  border-color: color-mix(in srgb, var(--brand) 18%, transparent);
}
.ue-tool.selected > i,
.ue-tool.active > i,
.ue-tool[aria-pressed="true"] > i {
  color: var(--ue-accent);
}
.ue-tool:disabled {
  opacity: 0.5;
}
.ue-rail-note {
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
  margin: 20px 9px 0;
}
.ue-center {
  padding: 23px 22px 14px;
  min-width: 0;
  background: var(--bg);
}
.ue-document-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 19px;
  min-width: 0;
}
.ue-eyebrow {
  color: var(--ue-accent);
  font-size: 8px;
  letter-spacing: 1.6px;
  font-weight: 750;
}
.ue-document-header h2 {
  font-size: 20px;
  margin: 5px 0 5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ue-document-header p {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.ue-local-badge {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.ue-local-badge > span {
  width: 5px;
  height: 5px;
  background: #2b9a75;
}
.ue-upload {
  padding: 48px 20px 36px;
  min-height: 630px;
  border: 1.5px dashed #bfc9ed;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 20%, #7289e00b, transparent 65%),
    var(--surface);
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.ue-upload:hover,
.ue-upload.drag-over {
  border-color: var(--ue-accent);
  background-color: color-mix(in srgb, var(--surface) 90%, var(--soft));
}
.ue-upload-art {
  position: relative;
  width: 114px;
  height: 110px;
  margin: 0 auto 28px;
}
.ue-upload-sheet {
  position: absolute;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 72px;
  height: 88px;
  border: 1px solid #cbd4ef;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 10px 25px #2b3d7411;
}
.ue-upload-sheet.sheet-back {
  top: 1px;
  left: 15px;
  transform: rotate(-12deg);
  background: var(--soft);
}
.ue-upload-sheet.sheet-front {
  top: 13px;
  left: 32px;
  transform: rotate(8deg);
}
.ue-upload-sheet > i {
  font-size: 31px;
  color: #ce6076;
}
.ue-upload-sheet > b {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #ac4660;
}
.dark .ue-upload-sheet > b {
  color: #ffaac1;
}
.ue-upload-plus {
  position: absolute;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  bottom: 0;
  left: 7px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  color: #fff;
  background: #687be1;
  font-size: 12px;
}
.ue-upload > h2 {
  font-size: clamp(28px, 2.2vw, 38px);
  line-height: 1.14;
  letter-spacing: -1.2px;
  margin: 12px 0 17px;
  font-weight: 700;
}
.ue-upload > p {
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 24px;
}
.ue-upload .ue-upload-button {
  min-width: 195px;
  min-height: 49px;
  padding: 13px 24px;
  font-size: 12px;
}
.ue-upload > .ue-drop-hint {
  font-size: 10px;
  margin: 12px 0 30px;
}
.ue-upload > small {
  font-size: 9px;
  line-height: 1.9;
  color: var(--muted);
}
.ue-upload > small > i {
  margin-right: 5px;
  color: var(--ue-accent);
}
.ue-canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.ue-page-navigation,
.ue-zoom-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ue-page-navigation {
  color: var(--muted);
  font-size: 10px;
}
.ue-page-navigation label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ue-page-navigation input {
  width: 45px;
  min-width: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 32px;
  text-align: center;
  padding: 5px 3px;
  font-size: 11px;
}
.ue-app .ue-icon-button {
  min-width: 31px;
  min-height: 32px;
  width: 31px;
  padding: 6px;
  border-radius: 8px;
  font-size: 11px;
}
.ue-icon-button > span {
  display: none;
}
.ue-canvas-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 0 11px;
}
.ue-canvas-options .m-option {
  align-items: center;
  font-size: 10px;
  gap: 7px;
}
.ue-canvas-options .m-option input {
  margin: 0;
  width: 15px;
  height: 15px;
}
.ue-view-mode {
  width: 136px;
  margin-left: auto;
}
.ue-view-mode select,
.ue-view-mode .rx-select-trigger {
  min-height: 30px;
  font-size: 9px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 7px;
}
.ue-canvas-options > .m-btn {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 9px;
}
.ue-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px 6px 11px;
  margin-bottom: 12px;
}
.ue-search-bar > i {
  font-size: 11px;
  color: var(--muted);
}
.ue-search-bar input {
  min-width: 0;
  flex: 1;
  width: 70px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 4px 1px;
  font-size: 11px;
  outline-offset: 4px;
}
.ue-search-bar > span {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.ue-search-bar .ue-icon-button {
  width: 27px;
  min-width: 27px;
  min-height: 27px;
  border: 0;
  background: var(--bg);
}
.ue-canvas-area {
  min-height: 320px;
  height: 630px;
  max-height: 82vh;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--ue-canvas);
  position: relative;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.ue-stage {
  position: relative;
  margin: auto;
  width: 0;
  height: 0;
  min-width: 0;
  flex-shrink: 0;
  isolation: isolate;
  background: white;
  box-shadow: 0 3px 17px #17244324;
}
.ue-stage > canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.ue-overlay,
.ue-text-layer {
  position: absolute;
  inset: 0;
}
.ue-overlay {
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}
.ue-overlay > * {
  pointer-events: auto;
}
.ue-text-layer {
  overflow: hidden;
  opacity: 1;
  line-height: 1;
  text-align: initial;
  transform-origin: 0 0;
  z-index: 2;
  color: transparent;
  forced-color-adjust: none;
}
.ue-text-layer span,
.ue-text-layer br {
  position: absolute;
  white-space: pre;
  color: transparent;
  cursor: text;
  transform-origin: 0 0;
}
.ue-text-layer ::selection {
  background: #6d8df95e;
}
.ue-text-layer .ue-search-match {
  background: #ffc94f75;
  border-radius: 1px;
}
.ue-text-layer .ue-search-match.active {
  background: #ff9c467d;
  outline: 1px solid #b96720;
}
.ue-text-layer .highlight {
  background: #ffc94f75;
}
.ue-empty-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  gap: 16px;
  min-height: 260px;
  text-align: center;
  font-size: 12px;
}
.ue-empty-canvas > i {
  font-size: 38px;
  color: #95a4c7;
}
.ue-inline {
  position: absolute;
  z-index: 12;
  background: #ffffffee;
  color: #243047;
  border: 2px solid #5269de;
  border-radius: 2px;
  resize: none;
  padding: 0;
  margin: 0;
  min-width: 30px;
  min-height: 20px;
  outline: 0;
  transform-origin: center;
  box-shadow: 0 0 0 3px #5269de22;
}
.ue-context {
  position: absolute;
  z-index: 14;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 5px 18px #1724432b;
  max-width: min(320px, 100%);
}
.ue-context button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 9px;
  min-height: 30px;
  min-width: 30px;
  padding: 5px 7px;
  background: var(--surface);
  color: var(--text);
  border: 0;
  border-radius: 5px;
}
.ue-context button:hover {
  background: var(--soft);
}
.ue-canvas-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 1px 0;
  font-size: 9px;
  color: var(--muted);
}
.ue-canvas-footer p {
  margin: 0;
  line-height: 1.8;
}
.ue-canvas-footer > span {
  display: flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}
.ue-properties {
  padding: 23px 19px 18px;
  border-left: 1px solid var(--border);
  min-width: 0;
  background: var(--surface);
}
.ue-properties-heading {
  padding: 0 0 17px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.ue-properties-heading h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.ue-properties-heading p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.ue-properties-body {
  min-width: 0;
  min-height: 210px;
}
.ue-properties-body > :first-child {
  margin-top: 0;
}
.ue-property-empty {
  padding: 29px 6px;
  text-align: center;
}
.ue-property-empty > span {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin: 0 auto 17px;
  color: var(--ue-accent);
  background: var(--soft);
  border-radius: 14px;
  font-size: 20px;
}
.ue-property-empty strong {
  font-size: 12px;
  font-weight: 650;
}
.ue-property-empty p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  margin: 9px 0 0;
}
.ue-properties-body .m-field,
.ue-advanced .m-field {
  font-size: 10px;
  gap: 7px;
  margin: 0 0 13px;
}
.ue-properties-body .m-field > input,
.ue-properties-body .m-field > select,
.ue-properties-body .m-field > textarea,
.ue-advanced .m-field > input,
.ue-advanced .m-field > select,
.ue-advanced .m-field > textarea {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 8px 9px;
  width: 100%;
  min-width: 0;
  font-size: 11px;
}
.ue-properties-body textarea,
.ue-advanced textarea {
  resize: vertical;
  min-height: 88px !important;
  line-height: 1.6;
}
.ue-properties-body input[type="color"],
.ue-advanced input[type="color"] {
  padding: 4px;
  cursor: pointer;
}
.ue-properties-body input[type="range"],
.ue-advanced input[type="range"] {
  width: 100%;
  accent-color: var(--ue-accent);
  cursor: pointer;
}
.ue-properties-body .m-option,
.ue-advanced .m-option {
  font-size: 10px;
  gap: 8px;
  margin: 13px 0;
}
.ue-properties-body .m-option strong,
.ue-advanced .m-option strong {
  font-size: 10px;
}
.ue-properties-body .m-option small,
.ue-advanced .m-option small {
  font-size: 9px;
}
.ue-properties-body .rx-select-trigger,
.ue-advanced .rx-select-trigger {
  min-height: 36px;
  font-size: 11px;
  padding: 8px 9px;
  border-radius: 8px;
}
.ue-properties-body .m-toolbar,
.ue-advanced .m-toolbar {
  gap: 7px;
  margin: 13px 0;
}
.ue-properties-body .m-btn,
.ue-advanced .m-btn {
  white-space: normal;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 10px;
}
.ue-properties-body > h3,
.ue-advanced-body > h3 {
  font-size: 12px;
  margin: 19px 0 13px;
}
.ue-properties-body > p,
.ue-advanced-body > p,
.ue-hint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.ue-properties-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.ue-property-grid,
.ue-two-fields,
.ue-properties-body .m-two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.ue-property-grid > *,
.ue-two-fields > * {
  min-width: 0;
}
.ue-advanced,
.ue-module-details {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 9px;
}
.ue-advanced > summary,
.ue-module-details > summary {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 11px 0;
  font-size: 11px;
  font-weight: 650;
}
.ue-advanced > summary::-webkit-details-marker,
.ue-module-details > summary::-webkit-details-marker {
  display: none;
}
.ue-advanced > summary > i:first-child,
.ue-module-details > summary > i:first-child {
  color: var(--ue-accent);
  font-size: 13px;
}
.ue-advanced > summary > i:last-child,
.ue-module-details > summary > i:last-child {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
  transition: transform 0.2s;
}
.ue-advanced[open] > summary > i:last-child,
.ue-module-details[open] > summary > i:last-child {
  transform: rotate(180deg);
}
#ue-advanced-body {
  padding-top: 8px;
}
.ue-module-details {
  margin-top: 7px;
}
#ue-capability-status {
  display: grid;
  gap: 7px;
  padding: 5px 0 10px;
  font-size: 9px;
}
#ue-capability-status > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
#ue-capability-status strong {
  font-weight: 500;
  color: var(--text);
}
#ue-capability-status button {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 5px;
  background: var(--bg);
  font-size: 9px;
}
.ue-properties-footnote {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.9;
  padding: 17px 0 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--border);
}
.ue-properties-footnote > i {
  color: var(--ue-accent);
  margin-right: 4px;
}
.ue-strip {
  border-top: 1px solid var(--border);
  padding: 17px 20px 15px;
  background: var(--surface);
}
.ue-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 14px;
}
.ue-strip-header > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 15px;
}
.ue-strip-header h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  margin: 0;
  letter-spacing: 0;
}
.ue-strip-header h2 > i {
  color: var(--ue-accent);
  font-size: 14px;
}
.ue-strip-header span {
  font-size: 9px;
  color: var(--muted);
}
.ue-strip-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ue-strip-actions .m-btn {
  font-size: 9px;
  padding: 5px 8px;
  min-height: 30px;
}
.ue-thumbnails {
  display: flex;
  align-items: stretch;
  gap: 13px;
  min-width: 0;
  overflow: auto;
  max-height: 205px;
  scrollbar-gutter: stable;
  padding: 5px 3px 12px;
}
.ue-thumbnails:empty {
  min-height: 55px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--bg);
  position: relative;
}
.ue-thumbnails:empty::before {
  content: "Page thumbnails appear here after you open a PDF.";
  font-size: 10px;
  color: var(--muted);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
}
.ue-thumbnail,
.ue-page-card,
#ue-thumbnails > button,
#ue-thumbnails > div {
  flex: 0 0 102px;
  max-width: 130px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  padding: 8px;
  position: relative;
}
.ue-thumbnail img,
.ue-thumbnail canvas,
.ue-page-card img,
.ue-page-card canvas,
#ue-thumbnails > button img,
#ue-thumbnails > div img {
  display: block;
  margin: 0 auto 7px;
  max-width: 100%;
  height: 100px;
  width: auto;
  max-height: 115px;
  object-fit: contain;
  border-radius: 2px;
  background: white;
  box-shadow: 0 2px 6px #1b2c5712;
  pointer-events: none;
}
.ue-thumbnail.active,
.ue-thumbnail[aria-current="true"],
.ue-page-card.active,
#ue-thumbnails > *.active,
#ue-thumbnails > *[aria-current="true"] {
  border-color: var(--ue-accent);
  box-shadow: 0 0 0 2px #8294f42e;
}
.ue-thumbnail.selected,
.ue-page-card.selected,
#ue-thumbnails > *.selected {
  background: var(--soft);
  border-color: var(--ue-accent);
}
.ue-thumbnail > span,
.ue-page-card > span,
#ue-thumbnails > button > span {
  font-size: 9px;
  display: block;
  text-align: center;
}
.ue-thumbnails input[type="checkbox"] {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  accent-color: var(--ue-accent);
}
.ue-strip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.ue-strip-paging,
.ue-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.ue-page-actions .m-btn {
  font-size: 9px;
  padding: 6px 9px;
  min-height: 31px;
}
.ue-app .ue-danger,
.ue-app button[data-danger="true"] {
  color: var(--ue-danger);
}
.ue-processing,
.ue-result {
  margin-top: 25px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--surface);
  padding: 45px 25px;
}
.ue-process-art,
.ue-result-art {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  background: var(--soft);
  color: var(--ue-accent);
  font-size: 30px;
}
.ue-result-art {
  color: #2c8e68;
  background: #ebf8f0;
}
.dark .ue-result-art {
  color: #9be0bc;
  background: #203c30;
}
.ue-processing h2,
.ue-result h2 {
  font-size: 29px;
  line-height: 1.3;
  margin: 10px 0 15px;
  letter-spacing: -0.8px;
}
.ue-processing p,
.ue-result-summary {
  max-width: 760px;
  margin: 0 auto 21px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.ue-processing progress {
  display: block;
  width: min(440px, 100%);
  height: 8px;
  accent-color: var(--ue-accent);
  margin: 25px auto;
}
.ue-downloads,
.ue-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.ue-downloads a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 14px 23px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  min-height: 48px;
  font-weight: 600;
}
.dark .ue-downloads a {
  color: #172044;
}
.ue-result > small,
.ue-privacy-footnote {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.85;
}
.ue-privacy-footnote {
  text-align: center;
  margin: 20px 0 0;
  font-size: 9px;
}
.ue-privacy-footnote > i {
  color: var(--ue-accent);
  margin-right: 5px;
}
.ue-mobile-nav {
  display: none;
}
.ue-overlay > .ue-object-layer,
.ue-overlay > .ue-form-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ue-object-layer {
  overflow: visible;
  z-index: 1;
}
.ue-object-layer .ue-object {
  pointer-events: all;
  cursor: move;
  touch-action: none;
}
.ue-object-layer .ue-object > text {
  user-select: none;
}
.ue-object-layer .ue-selection {
  pointer-events: none;
}
.ue-object-layer .ue-hitbox {
  pointer-events: all;
}
.ue-object-layer .ue-handle {
  cursor: nwse-resize;
  pointer-events: all;
}
.ue-text-layer {
  pointer-events: none;
  user-select: none;
}
.ue-text-layer.ue-text-selectable {
  pointer-events: auto;
  user-select: text;
}
.ue-overlay > .ue-form-layer {
  z-index: 2;
}
.ue-form-layer > .ue-form-widget {
  pointer-events: auto;
  min-width: 4px;
  min-height: 4px;
  box-sizing: border-box;
}
.ue-form-widget.selected {
  outline: 2px solid #5269de;
  outline-offset: 2px;
}
.ue-form-label,
.ue-form-guide {
  display: block;
  position: absolute;
  pointer-events: none;
  left: 4px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #344477;
  font-size: 10px;
  line-height: 1.3;
}
.ue-form-label {
  top: 2px;
  font-weight: 650;
}
.ue-form-guide {
  bottom: 1px;
  font-size: 8px;
  opacity: 0.8;
}
.ue-form-resize {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 11px;
  height: 11px;
  min-width: 11px;
  min-height: 11px;
  padding: 0;
  border: 1.5px solid #fff;
  background: #5269de;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #5269de;
  cursor: nwse-resize;
  touch-action: none;
}
.ue-form-widget :is(.form-value-control, .form-widget-inner) {
  width: 100%;
  height: 100%;
  min-width: 0;
}
.ue-form-widget .rx-select {
  width: 100%;
  height: 100%;
}
.ue-form-widget .rx-select-trigger {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}
.ue-form-widget .rx-select-arrow {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}
.ue-help {
  font-size: 10px;
  line-height: 1.85;
  color: var(--muted);
  margin: 11px 0 17px;
  overflow-wrap: anywhere;
}
.ue-help.warning {
  padding: 10px 11px;
  border: 1px solid #ead7af;
  border-radius: 8px;
  background: #fff9ee;
  color: #806127;
}
.dark .ue-help.warning {
  border-color: #655232;
  background: #332b20;
  color: #e8c98f;
}
.ue-control-group {
  border-top: 1px solid var(--border);
  margin-top: 21px;
  padding-top: 16px;
  min-width: 0;
}
.ue-control-group > h3 {
  font-size: 12px;
  margin: 0 0 14px;
  letter-spacing: -0.1px;
}
.ue-field > input[type="range"] {
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--brand);
}
.ue-check > span {
  font-size: 10px;
  line-height: 1.8;
  font-weight: 500;
}
.ue-thumb {
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.ue-thumb[draggable="true"] {
  cursor: grab;
}
.ue-thumb[draggable="true"]:active {
  cursor: grabbing;
}
.ue-thumb-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 5px;
}
.ue-thumb-open > strong {
  font-size: 10px;
  display: block;
  line-height: 1.5;
  font-weight: 600;
}
.ue-thumb-image {
  display: grid;
  place-items: center;
  height: 113px;
  min-height: 80px;
  margin-bottom: 7px;
  padding: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: color-mix(in srgb, var(--border) 45%, var(--surface));
}
.ue-thumb-image > span {
  font-size: 10px;
  color: var(--muted);
}
.ue-thumb .ue-thumb-image > img {
  margin: 0;
  height: auto;
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
}
.ue-report {
  max-height: 310px;
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  font:
    10px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  text-align: left;
}
.ue-continuous {
  display: grid;
  gap: 22px;
  justify-items: center;
  min-width: 0;
  margin: 26px auto 0;
}
.ue-continuous-page {
  position: relative;
  width: min(100%, 610px);
  display: block;
  padding: 0;
  border: 1px solid #c4cddd;
  border-radius: 2px;
  background: white;
  color: #243047;
  box-shadow: 0 3px 15px #17244318;
}
.ue-continuous-page canvas {
  width: 100%;
  height: auto;
  display: block;
}
.ue-continuous-page > span {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #d8def0;
  background: #fffffff2;
  border-radius: 14px;
  padding: 5px 10px;
  color: #43516f;
  font-size: 9px;
  white-space: nowrap;
}
.ue-continuous > .ue-help {
  max-width: 530px;
  text-align: center;
  color: var(--muted);
  margin: 0;
}
.ue-saved-preview {
  margin: 23px auto 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg);
  overflow: auto;
  max-height: 850px;
}
.ue-saved-preview .m-toolbar {
  justify-content: center;
  margin: 0 0 13px;
}
.ue-saved-preview > p {
  font-size: 10px;
  margin-bottom: 12px;
}
.ue-saved-preview canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: auto;
  box-shadow: 0 2px 12px #17244320;
  background: white;
}
.ue-download {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal !important;
  word-break: break-word;
}
.ue-overlay .ue-object.selected {
  outline: 1.5px solid #5269de;
}
.ue-overlay .ue-handle {
  width: 10px;
  height: 10px;
  border: 1.5px solid #5269de;
  background: #fff;
  border-radius: 3px;
  position: absolute;
  padding: 0;
  touch-action: none;
}
.ue-overlay .ue-object:focus-visible {
  outline-offset: 4px;
}
.ue-overlay .ue-form-widget {
  position: absolute;
  background: #f0f3ff;
  color: #243047;
  border: 1px solid #7186dc;
}
.ue-overlay .ue-form-widget input,
.ue-overlay .ue-form-widget textarea,
.ue-overlay .ue-form-widget select {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 1px 3px;
  background: transparent;
  color: inherit;
}
.ue-overlay .ue-form-widget input[type="checkbox"],
.ue-overlay .ue-form-widget input[type="radio"] {
  padding: 0;
  accent-color: #5269de;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  flex: none;
  background-size: 80% 80%;
  border-radius: 18%;
}
.ue-overlay .ue-form-widget input[type="radio"] {
  border-radius: 50%;
}
/* Form geometry belongs to the PDF. Global 44px controls apply to the sidebar,
   while widgets must respect their rotated document rectangle at every zoom. */
.ue-overlay .ue-form-widget .ue-form-input {
  position: absolute;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  pointer-events: auto;
  line-height: 1.2;
}
.ue-overlay
  .ue-form-input
  > :is(input, textarea, select):not(.rx-native-select),
.ue-overlay .ue-form-input > .rx-select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 1px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  resize: none;
}
.ue-overlay .ue-form-input > .rx-select {
  padding: 0;
}
.ue-overlay .ue-form-input .rx-select .rx-select-trigger {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 1px 2px;
  gap: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  box-shadow: none;
}
.ue-overlay .ue-form-input .rx-select .rx-select-trigger:hover:not(:disabled) {
  background: #5269de0d;
  color: inherit;
}
.ue-app
  .ue-overlay
  .ue-form-widget
  .ue-form-input
  :is(input, textarea, select):focus-visible,
.ue-overlay .ue-form-input .rx-select .rx-select-trigger:focus-visible {
  outline: 2px solid #4358c7;
  outline-offset: 2px;
}
.ue-overlay .ue-form-input .rx-select .rx-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: inherit;
}
.ue-overlay
  .ue-form-widget
  .ue-form-input
  :is(input[type="checkbox"], input[type="radio"]) {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0 !important;
  flex: none;
  background-size: 80% 80%;
}
.ue-properties-body .form-value-control {
  margin: 10px 0 17px;
  min-width: 0;
}
.ue-properties-body
  .form-value-control
  > :is(input[type="text"], textarea, select) {
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}
.ue-properties-body .form-value-control select[multiple] {
  min-height: 110px;
}
.ue-canvas-area:fullscreen {
  background: var(--ue-canvas, #e9edf5);
  padding: 25px;
  width: 100vw;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  overflow: auto;
}
.ue-app:fullscreen {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 12px;
  background: var(--bg);
}
.ue-app:fullscreen .ue-canvas-area {
  height: 73vh;
  max-height: none;
}
@media (min-width: 1600px) {
  .ue-editor-grid {
    grid-template-columns: 188px minmax(0, 1fr) 294px;
  }
  .ue-canvas-area {
    height: 720px;
  }
}
@media (max-width: 1230px) {
  .ue-app {
    padding: 12px 16px 20px;
  }
  .ue-editor-grid {
    grid-template-columns: 150px minmax(0, 1fr) 240px;
  }
  .ue-topbar {
    padding: 14px;
    gap: 10px;
  }
  .ue-editor-identity small {
    display: none;
  }
  .ue-editor-identity strong {
    font-size: 12px;
  }
  .ue-editor-mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .ue-topbar .m-btn.small {
    padding: 7px 9px;
  }
  .ue-file-actions {
    padding-left: 10px;
  }
  .ue-topbar #ue-add span,
  .ue-topbar #ue-export span {
    display: none;
  }
  .ue-filename-field {
    max-width: 210px;
  }
  .ue-center {
    padding: 20px 15px 13px;
  }
  .ue-properties {
    padding: 20px 15px 16px;
  }
  .ue-tools {
    padding: 17px 7px;
  }
  .ue-tool {
    font-size: 10px;
    padding: 8px;
    gap: 8px;
  }
  .ue-tool > i {
    font-size: 14px;
  }
  .ue-canvas-area {
    height: 600px;
    padding: 16px;
  }
  .ue-canvas-options {
    gap: 7px;
  }
  .ue-view-mode {
    width: 115px;
  }
  .ue-canvas-options #ue-copy-selection span {
    display: none;
  }
  .ue-zoom-controls {
    gap: 3px;
  }
}
@media (max-width: 980px) {
  .ue-topbar {
    gap: 10px;
  }
  .ue-editor-identity {
    margin-right: auto;
  }
  .ue-editor-identity strong {
    font-size: 13px;
  }
  .ue-filename-field {
    flex: 1 1 120px;
    max-width: 200px;
    margin-right: 0;
  }
  .ue-history {
    padding-right: 0;
    border-right: 0;
  }
  .ue-save-actions {
    margin-left: 0;
  }
  .ue-topbar #ue-add span {
    display: inline;
  }
  .ue-editor-grid {
    grid-template-columns: 138px minmax(0, 1fr);
  }
  .ue-tools {
    grid-column: 1;
    grid-row: 1/3;
  }
  .ue-center {
    grid-column: 2;
    grid-row: 1;
  }
  .ue-properties {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .ue-properties-heading,
  .ue-properties-footnote {
    grid-column: 1/-1;
  }
  .ue-properties-body {
    grid-column: 1;
    grid-row: 2/5;
  }
  .ue-advanced,
  .ue-module-details {
    grid-column: 2;
    margin: 0 0 9px;
  }
  .ue-advanced {
    grid-row: 2;
  }
  .ue-module-details {
    grid-row: 3;
  }
  .ue-property-empty {
    padding: 12px 7px;
  }
  .ue-canvas-area {
    height: 600px;
  }
  .ue-upload {
    min-height: 550px;
  }
  .ue-preflight {
    font-size: 10px;
    gap: 7px;
  }
  .ue-private > span {
    display: none;
  }
}
@media (max-width: 720px) {
  .ue-app {
    padding: 8px 10px 20px;
  }
  .ue-preflight {
    margin: 0 2px 12px;
  }
  .ue-engine-status {
    font-size: 9px;
    flex: 1 1 100%;
    line-height: 1.7;
  }
  .ue-private {
    font-size: 10px;
  }
  .ue-private > span {
    display: inline;
  }
  .ue-workbench {
    border-radius: 16px;
  }
  .ue-topbar {
    padding: 12px;
    gap: 9px;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 3px 10px #17244305;
  }
  .ue-editor-identity {
    width: calc(100% - 202px);
    min-width: 116px;
  }
  .ue-editor-identity strong {
    font-size: 11px;
  }
  .ue-editor-identity strong > span {
    display: block;
    font-size: 10px;
    margin-top: 1px;
  }
  .ue-editor-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 10px;
  }
  .ue-save-actions {
    order: 2;
    margin-left: auto;
    gap: 5px;
  }
  .ue-save-actions .m-btn {
    min-height: 38px;
  }
  .ue-save-actions .ue-save {
    padding: 9px 11px;
    font-size: 10px;
  }
  .ue-save-actions #ue-save-as {
    padding: 7px;
    min-width: 35px;
  }
  .ue-save-actions #ue-save-as span,
  .ue-save-actions #ue-export {
    display: none;
  }
  .ue-file-actions {
    order: 3;
    padding: 0;
    border: 0;
  }
  .ue-topbar .ue-file-actions .m-btn {
    min-height: 35px;
    font-size: 9px;
    padding: 7px 9px;
  }
  .ue-filename-field {
    order: 4;
    flex: 1 1 65px;
    margin: 0;
    max-width: none;
    font-size: 10px;
  }
  .ue-filename-field > i {
    display: none;
  }
  .ue-filename-field input {
    padding: 7px 3px;
    font-size: 10px;
  }
  .ue-history {
    order: 5;
    gap: 3px;
  }
  .ue-history .m-btn {
    min-height: 35px;
    width: 32px;
    min-width: 32px;
    padding: 5px;
  }
  .ue-mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 3px;
    padding: 7px 9px;
  }
  .ue-mobile-nav > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    color: var(--muted);
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 10px;
    padding: 8px 4px;
    background: transparent;
  }
  .ue-mobile-nav > button > i {
    font-size: 13px;
  }
  .ue-mobile-nav > button.selected,
  .ue-mobile-nav > button[aria-pressed="true"] {
    color: var(--ue-accent);
    background: var(--soft);
    border-color: color-mix(in srgb, var(--brand) 18%, transparent);
  }
  .ue-editor-grid {
    display: block;
  }
  .ue-tools,
  .ue-properties,
  .ue-center {
    border: 0;
    padding: 20px 15px;
  }
  .ue-tools,
  .ue-properties,
  .ue-strip {
    display: none;
  }
  .ue-app[data-layout="tools"] .ue-tools {
    display: block;
  }
  .ue-app[data-layout="properties"] .ue-properties {
    display: block;
  }
  .ue-app[data-layout="pages"] .ue-strip {
    display: block;
    border-top: 0;
  }
  .ue-app[data-layout="tools"] .ue-center,
  .ue-app[data-layout="properties"] .ue-center,
  .ue-app[data-layout="pages"] .ue-center {
    display: none;
  }
  .ue-tools {
    min-height: 450px;
  }
  .ue-tool-group {
    padding-bottom: 13px;
    margin-bottom: 12px;
  }
  .ue-tool-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .ue-tool {
    min-height: 46px;
    border-color: var(--border);
    padding: 10px;
    font-size: 11px;
  }
  .ue-tool > i {
    font-size: 15px;
  }
  .ue-tool-group > summary {
    font-size: 12px;
    padding: 9px 1px 15px;
  }
  .ue-rail-heading {
    font-size: 9px;
    padding: 0 1px 12px;
  }
  .ue-rail-note {
    margin: 15px 0;
    font-size: 10px;
  }
  .ue-document-header {
    margin-bottom: 18px;
  }
  .ue-document-header h2 {
    font-size: 19px;
  }
  .ue-document-header p {
    font-size: 10px;
  }
  .ue-eyebrow {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  .ue-upload {
    min-height: 495px;
    padding: 35px 15px 28px;
  }
  .ue-upload > h2 {
    font-size: 33px;
  }
  .ue-upload > p {
    font-size: 11px;
  }
  .ue-upload .ue-upload-button {
    width: min(100%, 260px);
    padding: 14px 17px;
    min-height: 49px;
  }
  .ue-canvas-toolbar {
    gap: 9px;
  }
  .ue-app .ue-icon-button {
    min-height: 37px;
    width: 35px;
    min-width: 35px;
    font-size: 12px;
  }
  .ue-page-navigation {
    font-size: 10px;
    gap: 7px;
  }
  .ue-page-navigation input {
    min-height: 37px;
    width: 49px;
  }
  .ue-zoom-controls {
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
  }
  .ue-canvas-options {
    gap: 10px;
    padding: 5px 0 12px;
  }
  .ue-canvas-options .m-option {
    font-size: 10px;
  }
  .ue-view-mode {
    width: 132px;
  }
  .ue-view-mode .rx-select-trigger {
    min-height: 36px;
    font-size: 10px;
  }
  .ue-canvas-options > .m-btn {
    min-height: 36px;
    width: 36px;
  }
  .ue-search-bar {
    padding: 6px;
    gap: 5px;
  }
  .ue-search-bar > i {
    margin-left: 3px;
  }
  .ue-search-bar input {
    font-size: 10px;
  }
  .ue-search-bar .ue-icon-button {
    min-height: 32px;
    min-width: 29px;
    width: 29px;
  }
  .ue-canvas-area {
    padding: 13px;
    height: 540px;
    min-height: 300px;
    max-height: 77vh;
    border-radius: 10px;
  }
  .ue-canvas-footer {
    font-size: 9px;
  }
  .ue-canvas-footer > span {
    display: none;
  }
  .ue-properties {
    min-height: 490px;
  }
  .ue-properties-heading h2 {
    font-size: 21px;
  }
  .ue-properties-heading p {
    font-size: 11px;
  }
  .ue-properties-body {
    min-height: 230px;
  }
  .ue-properties-body .m-field,
  .ue-advanced .m-field {
    font-size: 12px;
    margin-bottom: 17px;
  }
  .ue-properties-body .m-field > input,
  .ue-properties-body .m-field > textarea,
  .ue-advanced .m-field > input,
  .ue-advanced .m-field > textarea {
    min-height: 44px;
    font-size: 14px;
  }
  .ue-properties-body .rx-select-trigger,
  .ue-advanced .rx-select-trigger {
    min-height: 44px;
    font-size: 13px;
  }
  .ue-properties-body .m-btn,
  .ue-advanced .m-btn {
    min-height: 44px;
    font-size: 12px;
  }
  .ue-properties-body .m-option,
  .ue-advanced .m-option {
    font-size: 12px;
    gap: 10px;
  }
  .ue-properties-body > p,
  .ue-hint {
    font-size: 11px;
  }
  .ue-advanced > summary,
  .ue-module-details > summary {
    min-height: 44px;
    font-size: 12px;
  }
  .ue-strip {
    padding: 21px 15px 18px;
    min-height: 400px;
  }
  .ue-strip-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .ue-strip-header > div:first-child {
    flex-basis: 100%;
    justify-content: space-between;
  }
  .ue-strip-header h2 {
    font-size: 15px;
  }
  .ue-strip-header span {
    font-size: 10px;
  }
  .ue-strip-actions {
    width: 100%;
  }
  .ue-strip-actions .m-btn {
    min-height: 42px;
    font-size: 10px;
    padding: 7px 10px;
  }
  .ue-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding: 4px 2px 12px;
  }
  .ue-thumbnail,
  .ue-page-card,
  #ue-thumbnails > button,
  #ue-thumbnails > div {
    width: 100%;
    max-width: none;
  }
  .ue-thumbnail img,
  .ue-page-card img,
  #ue-thumbnails > button img,
  #ue-thumbnails > div img {
    height: 107px;
  }
  .ue-strip-footer {
    flex-wrap: wrap;
    margin-top: 12px;
    gap: 13px;
  }
  .ue-strip-paging {
    width: 100%;
    justify-content: center;
  }
  .ue-page-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .ue-page-actions .m-btn {
    min-height: 44px;
    font-size: 11px;
    padding: 9px;
  }
  .ue-context {
    gap: 2px;
    padding: 4px;
  }
  .ue-context button {
    min-height: 36px;
    min-width: 36px;
    font-size: 10px;
  }
  .ue-overlay .ue-handle {
    width: 14px;
    height: 14px;
  }
  .ue-processing,
  .ue-result {
    padding: 33px 17px;
  }
  .ue-processing h2,
  .ue-result h2 {
    font-size: 25px;
  }
  .ue-result-actions .m-btn,
  .ue-downloads a {
    min-height: 44px;
    flex: 1 1 auto;
  }
  .ue-privacy-footnote {
    margin: 17px 10px 0;
    font-size: 9px;
  }
}
@media (max-width: 400px) {
  .ue-app {
    padding-left: 7px;
    padding-right: 7px;
  }
  .ue-topbar {
    padding: 10px;
    gap: 7px;
  }
  .ue-editor-identity {
    gap: 7px;
    width: calc(100% - 173px);
    min-width: 116px;
  }
  .ue-editor-identity strong {
    font-size: 10px;
  }
  .ue-save-actions .ue-save {
    padding: 8px 9px;
    gap: 6px;
  }
  .ue-save-actions #ue-save-as {
    min-width: 32px;
    padding: 7px;
  }
  .ue-topbar .ue-file-actions .m-btn {
    padding: 6px 7px;
    font-size: 9px;
  }
  .ue-topbar #ue-add span {
    display: none;
  }
  .ue-filename-field {
    min-width: 65px;
  }
  .ue-center {
    padding: 18px 11px 13px;
  }
  .ue-upload {
    min-height: 480px;
    padding: 29px 11px;
  }
  .ue-upload > h2 {
    font-size: 30px;
  }
  .ue-document-header h2 {
    font-size: 17px;
  }
  .ue-mobile-nav > button {
    font-size: 9px;
    gap: 4px;
  }
  .ue-mobile-nav > button > i {
    font-size: 12px;
  }
  .ue-canvas-toolbar {
    justify-content: center;
  }
  .ue-zoom-controls {
    justify-content: center;
  }
  .ue-canvas-area {
    padding: 9px;
  }
  .ue-canvas-options {
    gap: 7px;
  }
  .ue-view-mode {
    width: 124px;
  }
  .ue-search-bar > span {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ue-tool-list {
    gap: 6px;
  }
  .ue-tool {
    font-size: 10px;
    padding: 9px 8px;
  }
  .ue-thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ue-app *,
  .ue-app *::before,
  .ue-app *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Original PDF object selection shares the same physical-point canvas as the
   normal editor. Only actual object hit areas consume pointer events. */
.ue-native-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 7;
}
.ue-native-object.ue-native-paragraph {
  cursor: text;
}
.ue-native-paragraph .ue-native-hit {
  fill: transparent;
  stroke: transparent;
  stroke-dasharray: none;
}
.ue-native-paragraph:hover .ue-native-hit,
.ue-native-paragraph:focus-visible .ue-native-hit,
.ue-native-paragraph.selected .ue-native-hit {
  fill: #5168cd06;
  stroke: #6178d7a0;
  stroke-width: 1;
}
.ue-paragraph-editor {
  position: absolute;
  z-index: 12;
  pointer-events: auto;
  border: 0;
  outline: 1px solid #6475d5;
  box-shadow: 0 0 0 3px #6475d515;
  background: transparent;
  overflow: visible;
  color-scheme: light;
}
.ue-paragraph-editor.preparing {
  background: transparent;
}
.ue-paragraph-editor.preparing .ue-paragraph-input {
  opacity: 0;
}
.ue-paragraph-editor.invalid {
  outline-color: #c84252;
}
.ue-paragraph-input {
  position: relative;
  display: block;
  width: 100%;
  min-height: 1em;
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  border-radius: 0;
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  font-kerning: none;
  font-variant-ligatures: none;
  cursor: text;
  caret-color: #354bc2;
  user-select: text;
  touch-action: manipulation;
}
.ue-rich-run {
  position: absolute;
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 0;
  white-space: pre;
  font-size: 0;
  line-height: 0;
}
.ue-rich-glyphs {
  display: inline-block;
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: 0;
  white-space: pre;
  font-kerning: none;
  font-variant-ligatures: none;
  letter-spacing: 0;
}
.ue-rich-gap {
  position: absolute;
  display: inline-block;
  width: 0;
  height: 1px;
  overflow: hidden;
  color: transparent;
  font-size: 1px;
  white-space: pre;
}
.ue-paragraph-input:empty::before {
  content: "\200b";
}
.ue-paragraph-toolbar {
  position: absolute;
  z-index: 13;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
  padding: 4px 5px 4px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface, #fff);
  box-shadow: 0 4px 14px #24304712;
  color: var(--text);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: auto;
}
.ue-paragraph-toolbar .ue-action {
  min-height: 25px;
  padding: 5px 9px;
  font-size: 10px;
}
.ue-paragraph-status {
  color: inherit;
  font: inherit;
}
.ue-native-object {
  pointer-events: all;
  cursor: move;
  outline: none;
}
.ue-native-object .ue-native-hit {
  fill: #5168cd05;
  stroke: #6178d765;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
  transition:
    fill 160ms ease,
    stroke 160ms ease;
}
.ue-native-object:hover .ue-native-hit,
.ue-native-object:focus-visible .ue-native-hit {
  fill: #5168cd18;
  stroke: #5268ce;
  stroke-width: 1.7;
  stroke-dasharray: none;
}
.ue-native-object.selected .ue-native-hit {
  fill: #5168cd0b;
  stroke: #5268ce;
  stroke-width: 2;
  stroke-dasharray: none;
}
.ue-native-object:focus-visible .ue-native-hit {
  stroke-width: 3;
}
.ue-native-object.unsupported {
  cursor: help;
}
.ue-native-object.unsupported .ue-native-hit {
  stroke: #ab8555;
  fill: #ab855508;
}
.ue-native-resize,
.ue-native-rotate {
  fill: #fff;
  stroke: #5168cd;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
}
.ue-native-resize {
  cursor: nwse-resize;
}
.ue-native-rotate {
  cursor: grab;
  fill: #5168cd;
}
.ue-native-rotation-stem {
  stroke: #5168cd;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.ue-native-layer.processing .ue-native-object {
  cursor: progress;
}
.ue-native-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  margin: 0 0 12px;
  border: 1px solid var(--border, #dfe4ee);
  border-radius: 10px;
  background: var(--soft, #f4f6fc);
  color: var(--text, #3f4a62);
  font-size: 10px;
  line-height: 1.5;
}
.ue-native-badge i {
  color: #677ac0;
  font-size: 14px;
}
.ue-native-object-list {
  display: grid;
  gap: 6px;
  max-height: 270px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 11px 0;
  padding: 2px;
}
.ue-native-object-list .ue-action {
  display: flex;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 36px;
  width: 100%;
}
.ue-native-object-list .unavailable {
  opacity: 0.7;
}
.ue-native-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 9px;
}
.ue-native-actions .ue-action {
  padding: 9px 6px;
  font-size: 10px;
  justify-content: center;
}
@media (pointer: coarse) {
  .ue-native-object-list .ue-action {
    min-height: 44px;
  }
  .ue-native-object .ue-native-hit {
    stroke-width: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ue-native-object .ue-native-hit {
    transition: none;
  }
}

/* Keep the document beside the editing tools. Navigation floats over the
   lower canvas instead of taking space above the first PDF page. */
.ue-app .ue-center {
  padding: 10px 10px 8px;
}
.ue-document-shell {
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.ue-document-shell .ue-canvas-area {
  box-sizing: border-box;
  height: var(--ue-reader-height, 680px);
  min-height: 0;
  max-height: none;
  padding: 12px 12px 94px;
  border-radius: 12px;
  scroll-padding: 18px 18px 110px;
}
.ue-document-shell .ue-continuous {
  margin-top: 0;
}
.ue-canvas-dock {
  position: absolute;
  z-index: 15;
  left: 50%;
  bottom: 16px;
  width: max-content;
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text);
  box-shadow:
    0 6px 26px #17244324,
    0 1px 3px #1724430d;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dark .ue-canvas-dock {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow:
    0 6px 26px #0006,
    0 1px 3px #0003;
}
.ue-canvas-dock .ue-canvas-toolbar {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  padding: 7px;
  margin: 0;
}
.ue-canvas-dock .ue-page-navigation,
.ue-canvas-dock .ue-zoom-controls {
  flex: 0 1 auto;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.ue-canvas-dock .ue-page-navigation {
  padding-right: 8px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.ue-canvas-dock .ue-page-navigation label {
  gap: 5px;
  font-size: 10px;
}
.ue-canvas-dock .ue-page-navigation input {
  width: 38px;
  min-height: 36px;
  padding: 4px 2px;
  border-color: transparent;
  background: var(--bg);
  font-size: 11px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.ue-canvas-dock .ue-page-navigation input::-webkit-inner-spin-button,
.ue-canvas-dock .ue-page-navigation input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.ue-app .ue-canvas-dock .ue-icon-button,
.ue-canvas-dock #ue-view-options > summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.ue-canvas-dock .ue-icon-button:hover:not(:disabled),
.ue-canvas-dock #ue-view-options > summary:hover,
.ue-canvas-dock #ue-view-options[open] > summary,
.ue-canvas-dock #ue-search-toggle[aria-expanded="true"] {
  background: var(--soft);
  color: var(--ue-accent);
}
.ue-canvas-dock .ue-icon-button:disabled {
  cursor: default;
}
.ue-canvas-dock #ue-zoom-value {
  min-width: 42px;
  text-align: center;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.ue-canvas-dock #ue-view-options {
  flex: 0 0 36px;
}
.ue-canvas-dock #ue-view-options > summary {
  list-style: none;
}
.ue-canvas-dock #ue-view-options > summary::-webkit-details-marker {
  display: none;
}
.ue-canvas-dock #ue-view-options > summary > span {
  display: none;
}
.ue-canvas-dock .ue-canvas-options {
  box-sizing: border-box;
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: min(260px, calc(100vw - 48px));
  max-height: min(400px, 60dvh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 30px #17244326;
}
.ue-canvas-dock .ue-canvas-options .m-option {
  min-height: 32px;
  gap: 9px;
  font-size: 11px;
}
.ue-canvas-dock .ue-canvas-options .m-option input {
  width: 18px;
  height: 18px;
}
.ue-canvas-dock .ue-view-mode {
  width: 100%;
  margin: 0;
}
.ue-canvas-dock .ue-view-mode select,
.ue-canvas-dock .ue-view-mode .rx-select-trigger {
  min-height: 38px;
  font-size: 11px;
}
.ue-canvas-dock .ue-canvas-options > .m-btn {
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 11px;
}
.ue-canvas-dock .ue-canvas-options #ue-copy-selection span {
  display: inline;
}
.ue-document-shell > .ue-search-bar {
  box-sizing: border-box;
  position: absolute;
  z-index: 14;
  top: 12px;
  left: 12px;
  width: min(410px, calc(100% - 24px));
  margin: 0;
  box-shadow: 0 5px 24px #17244324;
}
.ue-document-shell > .ue-search-bar[hidden],
.ue-continuous-preview[hidden] {
  display: none !important;
}
.ue-continuous-preview:focus-visible {
  outline: 3px solid #6475d5 !important;
  outline-offset: 3px;
}
.ue-document-shell:fullscreen {
  width: 100vw;
  height: 100dvh;
  background: var(--ue-canvas);
}
.ue-document-shell:fullscreen .ue-canvas-area {
  height: 100% !important;
  border-radius: 0;
}
.ue-document-shell > .ue-search-bar input {
  min-height: 32px;
}
.ue-document-shell > .ue-search-bar .ue-icon-button {
  min-width: 32px;
  width: 32px;
  min-height: 36px;
}
.ue-app .ue-canvas-footer {
  align-items: flex-start;
  gap: 6px 12px;
  padding: 8px 2px 0;
  font-size: 9px;
}
.ue-canvas-footer #ue-source-status {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
}
@media (min-width: 981px) {
  .ue-tools,
  .ue-properties {
    align-self: start;
  }
}
@media (max-width: 720px) {
  .ue-app .ue-center {
    padding: 8px;
  }
  .ue-document-shell .ue-canvas-area {
    height: var(--ue-reader-height, 540px);
    padding: 9px 9px 132px;
    border-radius: 10px;
    scroll-padding-bottom: 145px;
  }
  .ue-canvas-dock {
    bottom: 12px;
    max-width: calc(100% - 18px);
    border-radius: 14px;
  }
  .ue-canvas-dock .ue-canvas-toolbar {
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
  }
  .ue-canvas-dock .ue-page-navigation {
    border: 0;
    padding: 0;
    justify-content: center;
    gap: 3px;
  }
  .ue-canvas-dock .ue-zoom-controls {
    flex: 0 0 100%;
    order: 2;
    justify-content: center;
    gap: 3px;
  }
  .ue-canvas-dock #ue-zoom-value {
    min-width: 39px;
  }
  .ue-canvas-dock .ue-canvas-options {
    width: min(260px, calc(100vw - 48px));
    padding: 14px;
  }
  .ue-document-shell > .ue-search-bar {
    top: 9px;
    left: 9px;
    width: calc(100% - 18px);
    gap: 3px;
    padding: 5px;
  }
  .ue-document-shell > .ue-search-bar > i {
    display: none;
  }
  .ue-document-shell > .ue-search-bar input {
    width: 40px;
    font-size: 11px;
  }
  .ue-document-shell > .ue-search-bar > span {
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ue-app .ue-canvas-footer {
    flex-direction: column;
    gap: 2px;
  }
  .ue-app .ue-canvas-footer > span {
    display: block;
    white-space: normal;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .ue-canvas-dock {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* The public page starts with file selection. Once a document is opened,
   the private workspace fills the viewport and each panel owns its scroll. */
.ue-app[data-mode="launcher"] {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
}
.ue-app[data-mode="launcher"] .ue-workbench {
  order: 1;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.ue-app[data-mode="launcher"] .ue-editor-grid {
  display: block;
}
.ue-app[data-mode="launcher"] .ue-center {
  padding: 0;
  background: transparent;
}
.ue-app[data-mode="launcher"]
  :is(
    .ue-topbar,
    .ue-mobile-nav,
    .ue-left-panel,
    .ue-tools,
    .ue-properties,
    .ue-strip,
    .ue-privacy-footnote
  ) {
  display: none;
}
.ue-app[data-mode="launcher"] .ue-upload {
  min-height: 430px;
  padding: 34px 22px 30px;
}
.ue-app[data-mode="launcher"] .ue-preflight {
  order: 2;
  justify-content: center;
  margin: 14px 0 0;
  padding: 0 12px;
}
.ue-app[data-mode="launcher"] .ue-preflight .ue-private {
  display: none;
}
.ue-app[data-mode="launcher"] .ue-engine-status {
  flex: 0 1 auto;
  text-align: center;
}
.ue-app[data-mode="launcher"] .ue-processing,
.ue-app[data-mode="launcher"] .ue-result {
  order: 1;
}

html.ue-full-editor,
body.ue-full-editor {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
.ue-app[data-mode="editor"] {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.ue-app[data-mode="editor"] .ue-workbench {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.ue-app[data-mode="editor"][data-document="empty"]
  :is(
    .ue-left-panel,
    .ue-properties,
    .ue-mobile-nav,
    .ue-file-actions,
    .ue-history,
    .ue-filename-field,
    .ue-save-actions
  ) {
  display: none;
}
.ue-app[data-mode="editor"][data-document="empty"] .ue-editor-grid {
  grid-template-columns: minmax(0, 1fr);
}
.ue-app[data-mode="editor"][data-document="empty"] .ue-center {
  grid-column: 1;
}
.ue-app[data-mode="editor"][data-document="empty"] .ue-upload {
  flex: 1 1 0;
  width: 100%;
  max-width: 880px;
  min-height: 0;
  align-self: center;
  justify-content: center;
  padding: clamp(12px, 3dvh, 28px);
  overflow: auto;
  overscroll-behavior: contain;
}
.ue-app .ue-resume {
  margin-top: 10px;
}
.ue-app[data-mode="editor"][data-screen="processing"] .ue-workbench,
.ue-app[data-mode="editor"][data-screen="result"] .ue-workbench,
.ue-app[data-mode="editor"][data-screen="processing"] #ue-result,
.ue-app[data-mode="launcher"] :is(#ue-processing, #ue-result) {
  display: none;
}
.ue-app[data-mode="editor"] .ue-topbar {
  position: relative;
  z-index: 25;
  flex: 0 0 auto;
  gap: 9px;
  padding: 10px 14px;
  box-shadow: 0 1px 8px #17244305;
}
.ue-app[data-mode="editor"] .ue-editor-identity {
  min-width: 0;
  width: auto;
  margin-right: 0;
}
.ue-app[data-mode="editor"] #ue-back {
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 7px;
}
.ue-app[data-mode="editor"] #ue-back > span {
  display: none;
}
.ue-app[data-mode="editor"] .ue-editor-identity small {
  display: none;
}
.ue-app[data-mode="editor"] .ue-editor-identity strong {
  white-space: nowrap;
}
.ue-app[data-mode="editor"] .ue-file-actions {
  padding-left: 10px;
}
.ue-app[data-mode="editor"] .ue-file-actions .m-btn,
.ue-app[data-mode="editor"] .ue-history .m-btn {
  min-height: 36px;
}
.ue-app[data-mode="editor"] .ue-filename-field {
  min-width: 70px;
  max-width: 300px;
  flex-basis: 120px;
}
.ue-app[data-mode="editor"] .ue-preflight {
  order: 10;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-height: 32px;
  margin: 0;
  padding: 3px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 9px;
  line-height: 1.6;
}
.ue-app[data-mode="editor"] .ue-preflight .ue-private,
.ue-app[data-mode="editor"] .ue-privacy-footnote {
  display: none;
}
.ue-app[data-mode="editor"] .ue-engine-status {
  flex: 1 1 auto;
  max-width: none;
  font-size: 9px;
  line-height: 1.6;
}
.ue-app[data-mode="editor"] #ue-status {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ue-app[data-mode="editor"] .ue-engine-status .m-btn {
  min-height: 24px;
  padding: 2px 7px;
}
.ue-app[data-mode="editor"] #ue-error {
  position: fixed;
  z-index: 55;
  top: 74px;
  left: 50%;
  width: min(680px, calc(100% - 28px));
  max-height: min(220px, 40dvh);
  margin: 0;
  transform: translateX(-50%);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 8px 30px #17244326;
}
.ue-app[data-mode="editor"] .ue-editor-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 280px;
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.ue-app[data-mode="editor"] .ue-left-panel {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.ue-app[data-mode="editor"] .ue-sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ue-app[data-mode="editor"] .ue-sidebar-tabs > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.ue-app[data-mode="editor"] .ue-sidebar-tabs > button:hover {
  color: var(--ue-accent);
  background: var(--bg);
}
.ue-app[data-mode="editor"] .ue-sidebar-tabs > button[aria-pressed="true"] {
  color: var(--ue-accent);
  border-color: color-mix(in srgb, var(--brand) 18%, transparent);
  background: var(--soft);
}
.ue-app[data-mode="editor"] .ue-tools {
  display: block;
  flex: 1 1 0;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  padding: 12px 8px;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.ue-app[data-mode="editor"][data-sidebar="pages"] .ue-tools,
.ue-app[data-mode="editor"]:not([data-sidebar="pages"])
  .ue-left-panel
  .ue-strip {
  display: none;
}
.ue-app[data-mode="editor"] .ue-rail-heading {
  padding: 2px 9px 12px;
}
.ue-app[data-mode="editor"] .ue-tool {
  min-height: 38px;
}
.ue-app[data-mode="editor"] .ue-left-panel .ue-strip {
  grid-template-rows: auto minmax(0, 1fr) auto;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  border: 0;
  overflow: hidden;
}
.ue-app[data-mode="editor"][data-sidebar="pages"] .ue-left-panel .ue-strip {
  display: grid;
}
.ue-app[data-mode="editor"] .ue-strip-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 0 10px;
}
.ue-app[data-mode="editor"] .ue-strip-header > div:first-child {
  display: grid;
  gap: 4px;
}
.ue-app[data-mode="editor"] .ue-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}
.ue-app[data-mode="editor"] .ue-strip-actions .m-btn {
  flex: 1 1 auto;
  min-height: 36px;
  padding: 7px;
  font-size: 9px;
}
.ue-app[data-mode="editor"] #ue-strip-toggle > span {
  display: none;
}
.ue-app[data-mode="editor"] #ue-strip-toggle {
  flex: 0 0 36px;
  width: 36px;
}
.ue-app[data-mode="editor"] .ue-thumbnails {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  max-height: none;
  padding: 5px 7px 12px 3px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.ue-app[data-mode="editor"] #ue-thumbnails > div {
  width: 100%;
  max-width: 170px;
}
.ue-app[data-mode="editor"] .ue-thumb-image {
  height: 150px;
  min-height: 0;
}
.ue-app[data-mode="editor"] .ue-thumb .ue-thumb-image > img {
  height: auto;
  max-height: 140px;
}
.ue-app[data-mode="editor"] .ue-strip-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}
.ue-app[data-mode="editor"] .ue-strip-paging {
  width: 100%;
  justify-content: center;
}
.ue-app[data-mode="editor"] .ue-page-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}
.ue-app[data-mode="editor"] .ue-page-actions .m-btn {
  min-width: 0;
  min-height: 36px;
  gap: 5px;
  padding: 7px 5px;
  font-size: 9px;
}
.ue-app[data-mode="editor"] .ue-center {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  overflow: hidden;
}
.ue-app[data-mode="editor"] #ue-document {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
.ue-app[data-mode="editor"] .ue-document-shell {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
}
.ue-app[data-mode="editor"] .ue-document-shell .ue-canvas-area {
  flex: 1 1 0;
  width: 100%;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-height: none;
  padding: 14px 14px 98px;
  scroll-padding: 18px 18px 112px;
}
.ue-app[data-mode="editor"] .ue-canvas-dock {
  bottom: 12px !important;
  max-width: calc(100% - 20px);
}
.ue-app[data-mode="editor"] .ue-canvas-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  max-height: 32px;
  padding: 5px 2px 0;
  font-size: 9px;
  line-height: 1.6;
  overflow: hidden;
}
.ue-app[data-mode="editor"] .ue-canvas-footer p {
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.ue-app[data-mode="editor"] #ue-canvas-status {
  flex: 1 1 auto;
}
.ue-app[data-mode="editor"] #ue-source-status {
  flex: 0 1 auto;
}
.ue-app[data-mode="editor"] .ue-properties {
  display: block;
  align-self: stretch;
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  padding: 17px 15px;
  border-top: 0;
  border-left: 1px solid var(--border);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.ue-app[data-mode="editor"] .ue-properties-heading {
  margin-bottom: 14px;
  padding-bottom: 13px;
}
.ue-app[data-mode="editor"] .ue-properties-body {
  min-height: 0;
}
.ue-app[data-mode="editor"] .ue-property-empty {
  padding: 22px 3px;
}
.ue-app[data-mode="editor"] .ue-processing,
.ue-app[data-mode="editor"] .ue-result {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: clamp(25px, 7dvh, 70px) 24px;
  border: 0;
  border-radius: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.ue-app[data-mode="editor"] :is(.ue-downloads, .ue-result-actions) {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 981px) and (max-width: 1280px) {
  .ue-app[data-mode="editor"] .ue-editor-grid {
    grid-template-columns: 180px minmax(0, 1fr) 252px;
  }
  .ue-app[data-mode="editor"] .ue-topbar {
    gap: 7px;
    padding-right: 10px;
    padding-left: 10px;
  }
  .ue-app[data-mode="editor"] .ue-file-actions {
    gap: 5px;
    padding-left: 8px;
  }
  .ue-app[data-mode="editor"] .ue-editor-identity strong {
    font-size: 12px;
  }
}
@media (max-width: 980px) {
  .ue-app[data-mode="editor"] .ue-mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex: 0 0 auto;
    gap: 4px;
    padding: 5px 8px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
  .ue-app[data-mode="editor"] .ue-mobile-nav > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 40px;
    padding: 7px 4px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
  }
  .ue-app[data-mode="editor"] .ue-mobile-nav > button[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--brand) 18%, transparent);
    background: var(--soft);
    color: var(--ue-accent);
  }
  .ue-app[data-mode="editor"] .ue-editor-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .ue-app[data-mode="editor"] :is(.ue-left-panel, .ue-center, .ue-properties) {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    border: 0;
  }
  .ue-app[data-mode="editor"]
    :is(
      .ue-left-panel,
      .ue-properties,
      .ue-sidebar-tabs,
      .ue-tools,
      .ue-left-panel .ue-strip
    ) {
    display: none;
  }
  .ue-app[data-mode="editor"][data-layout="tools"] .ue-left-panel,
  .ue-app[data-mode="editor"][data-layout="pages"] .ue-left-panel {
    display: flex;
  }
  .ue-app[data-mode="editor"][data-layout="tools"] .ue-tools {
    display: block;
    padding: 16px;
  }
  .ue-app[data-mode="editor"][data-layout="pages"] .ue-left-panel .ue-strip {
    display: grid;
    padding: 14px;
  }
  .ue-app[data-mode="editor"][data-layout="properties"] .ue-properties {
    display: block;
    padding: 18px;
  }
  .ue-app[data-mode="editor"][data-layout="document"] .ue-center {
    display: flex;
  }
  .ue-app[data-mode="editor"][data-layout="tools"] .ue-center,
  .ue-app[data-mode="editor"][data-layout="pages"] .ue-center,
  .ue-app[data-mode="editor"][data-layout="properties"] .ue-center {
    display: none;
  }
  .ue-app[data-mode="editor"] .ue-tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .ue-app[data-mode="editor"] .ue-tool {
    min-height: 44px;
    border-color: var(--border);
    padding: 10px;
    font-size: 11px;
  }
  .ue-app[data-mode="editor"] .ue-properties-body {
    max-width: 680px;
  }
  .ue-app[data-mode="editor"] .ue-advanced,
  .ue-app[data-mode="editor"] .ue-module-details {
    max-width: 680px;
  }
  .ue-app[data-mode="editor"] .ue-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 5px 7px 14px 3px;
  }
  .ue-app[data-mode="editor"] .ue-strip-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }
  .ue-app[data-mode="editor"] .ue-strip-header > div:first-child {
    gap: 5px;
  }
  .ue-app[data-mode="editor"] .ue-strip-actions {
    width: auto;
  }
  .ue-app[data-mode="editor"] .ue-strip-actions .m-btn {
    min-height: 40px;
    font-size: 10px;
    padding: 8px 10px;
  }
  .ue-app[data-mode="editor"] .ue-strip-footer {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .ue-app[data-mode="editor"] .ue-page-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ue-app[data-mode="editor"] .ue-page-actions .m-btn {
    min-height: 40px;
    font-size: 10px;
  }
}
@media (max-width: 720px) {
  .ue-app[data-mode="launcher"] .ue-upload {
    min-height: 405px;
    padding: 26px 14px;
  }
  .ue-app[data-mode="launcher"] .ue-upload > h2 {
    font-size: 32px;
  }
  .ue-app[data-mode="launcher"] .ue-preflight {
    margin-top: 12px;
  }
  .ue-app[data-mode="editor"] .ue-topbar {
    display: grid;
    grid-template-columns: 36px 36px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px;
  }
  .ue-app[data-mode="editor"] #ue-back {
    grid-column: 1;
    grid-row: 1;
  }
  .ue-app[data-mode="editor"] .ue-editor-identity {
    grid-column: 2 / 4;
    grid-row: 1;
    gap: 7px;
    min-width: 0;
    padding: 0;
  }
  .ue-app[data-mode="editor"] .ue-editor-identity strong {
    font-size: 12px;
  }
  .ue-app[data-mode="editor"] .ue-editor-identity strong > span {
    display: inline;
    margin: 0;
    font-size: 11px;
  }
  .ue-app[data-mode="editor"] .ue-save-actions {
    grid-column: 4;
    grid-row: 1;
    gap: 4px;
    margin: 0;
  }
  .ue-app[data-mode="editor"] .ue-save-actions .ue-save {
    gap: 6px;
    min-height: 38px;
    padding: 8px 10px;
  }
  .ue-app[data-mode="editor"] .ue-save-actions #ue-save-as {
    width: 36px;
    min-width: 36px;
    min-height: 38px;
    padding: 7px;
  }
  .ue-app[data-mode="editor"] .ue-file-actions {
    grid-column: 1 / 3;
    grid-row: 2;
    gap: 4px;
    padding: 0;
    border: 0;
  }
  .ue-app[data-mode="editor"] .ue-file-actions .m-btn {
    justify-content: center;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 7px;
  }
  .ue-app[data-mode="editor"] .ue-file-actions .m-btn span {
    display: none;
  }
  .ue-app[data-mode="editor"] .ue-filename-field {
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
    max-width: none;
    margin: 0;
    font-size: 10px;
  }
  .ue-app[data-mode="editor"] .ue-filename-field input {
    min-height: 36px;
    padding: 6px 4px;
  }
  .ue-app[data-mode="editor"] .ue-history {
    grid-column: 4;
    grid-row: 2;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    border: 0;
  }
  .ue-app[data-mode="editor"] .ue-history .m-btn {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 6px;
  }
  .ue-app[data-mode="editor"] .ue-center {
    padding: 5px;
  }
  .ue-app[data-mode="editor"] .ue-document-shell .ue-canvas-area {
    padding: 9px 9px 132px;
    border-radius: 9px;
    scroll-padding: 12px 12px 145px;
  }
  .ue-app[data-mode="editor"] .ue-canvas-footer {
    flex-direction: row;
    gap: 8px;
    max-height: 23px;
    padding-top: 4px;
    font-size: 8px;
  }
  .ue-app[data-mode="editor"] #ue-source-status {
    max-width: 45%;
  }
  .ue-app[data-mode="editor"] .ue-preflight {
    max-height: 28px;
    padding: 2px 8px;
  }
  .ue-app[data-mode="editor"] .ue-strip-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .ue-app[data-mode="editor"] .ue-page-actions .m-btn {
    min-height: 44px;
    font-size: 10px;
  }
}
@media (max-width: 380px) {
  .ue-app[data-mode="editor"] .ue-editor-identity {
    gap: 6px;
  }
  .ue-app[data-mode="editor"] .ue-editor-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 14px;
  }
  .ue-app[data-mode="editor"] .ue-editor-identity strong {
    font-size: 11px;
  }
  .ue-app[data-mode="editor"] .ue-editor-identity strong > span {
    display: block;
    font-size: 10px;
  }
  .ue-app[data-mode="editor"] .ue-mobile-nav {
    gap: 2px;
    padding-right: 5px;
    padding-left: 5px;
  }
  .ue-app[data-mode="editor"] .ue-mobile-nav > button {
    gap: 5px;
    min-height: 42px;
    font-size: 9px;
  }
  .ue-app[data-mode="editor"] .ue-strip-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .ue-app[data-mode="editor"] .ue-strip-actions {
    justify-content: space-between;
  }
}
@media (pointer: coarse) {
  .ue-app[data-mode="editor"] .ue-sidebar-tabs > button,
  .ue-app[data-mode="editor"] .ue-tool,
  .ue-app[data-mode="editor"] .ue-mobile-nav > button {
    min-height: 44px;
  }
}
