

.hn-created-pdf-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 14px;
}

.hn-created-pdf-box strong {
  font-size: 17px;
}

.hn-created-pdf-box span {
  color: #4b5563;
  font-size: 14px;
}

.hn-created-pdf-box .hn-btn {
  width: fit-content;
}

/* Large preview modal */
.hn-large-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.hn-large-preview-modal {
  width: min(1100px, 96vw);
  max-height: 94vh;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.hn-large-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.hn-large-preview-header strong {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.hn-large-preview-header span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  margin-top: 3px;
}

.hn-large-preview-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hn-large-preview-body {
  min-height: 0;
  overflow: auto;
  background: #f8fafc;
  padding: 18px;
  display: flex;
  align-items: start;
  justify-content: center;
}

.hn-large-preview-body img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(17,24,39,.12);
}

.hn-large-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
}

/* v1.3.41 - All preview-modal footer actions match the PDF to JPG modal. */
.hn-large-preview-actions {
  align-items: center !important;
  background: #ffffff !important;
}

.hn-large-preview-actions .hn-btn,
.hn-large-preview-actions button {
  min-height: 44px !important;
  padding: 12px 18px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.hn-large-preview-actions .hn-btn.light,
.hn-large-preview-actions .hn-large-prev,
.hn-large-preview-actions .hn-large-next {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #D8E3F2 !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.04) !important;
}

.hn-large-preview-actions .hn-btn.light:hover,
.hn-large-preview-actions .hn-large-prev:hover,
.hn-large-preview-actions .hn-large-next:hover {
  border-color: #BFDBFE !important;
  background: #F8FAFC !important;
  transform: translateY(-1px) !important;
}

.hn-large-preview-actions .hn-btn.light:disabled,
.hn-large-preview-actions .hn-large-prev:disabled,
.hn-large-preview-actions .hn-large-next:disabled {
  color: #94A3B8 !important;
  border-color: #E5E7EB !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.hn-large-preview-actions .hn-large-download,
.hn-large-preview-actions .hn-btn:not(.light) {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border: 0 !important;
  box-shadow: 0 16px 30px rgba(37,99,235,.18) !important;
}

.hn-large-preview-actions .hn-large-download:hover,
.hn-large-preview-actions .hn-btn:not(.light):hover {
  background: #1D4ED8 !important;
  transform: translateY(-1px) !important;
}

.hn-large-preview-actions .hn-large-prev,
.hn-large-preview-actions .hn-large-next {
  min-width: 106px !important;
}

.hn-large-preview-actions .hn-large-download {
  min-width: 176px !important;
}

@media (max-width: 640px){

  .hn-large-preview-backdrop {
    padding: 8px;
  }

  .hn-large-preview-modal {
    width: 100%;
    max-height: 96vh;
    border-radius: 14px;
  }

  .hn-large-preview-body {
    padding: 10px;
  }

  .hn-large-preview-body img {
    max-height: 66vh;
  }

  .hn-large-preview-actions .hn-btn {
    width: 100%;
  }
}

/* On narrow cards, stack Preview and Download vertically to avoid text clipping */


/* On mobile card layout, keep right column from squeezing buttons too much */



/* HappyNooks PDF Tools v1.2.13 - multi PDF source labels */
.hn-edit-source {
  display: block;
  color: #1e3a8a !important;
  font-weight: 800;
  margin-top: 4px;
}

/* HappyNooks PDF Tools v1.2.14 - safer multi PDF limit messaging */
.hn-pdf-to-image .hn-result {
  max-width: 100%;
}


/* HappyNooks PDF Tools v1.2.15 - remove upload limit overlay text */
.hn-pdf-to-image .hn-file-drop span::after {
  content: "" !important;
  display: none !important;
}

.hn-pdf-to-image .hn-file-drop strong,
.hn-pdf-to-image .hn-file-drop span {
  position: relative !important;
  z-index: 2 !important;
}

.hn-pdf-to-image .hn-file-drop span {
  display: block !important;
  max-width: 100% !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}


/* HappyNooks PDF Tools v1.2.16 - warning text inside upload description */
.hn-pdf-to-image .hn-file-drop span::after {
  content: "" !important;
  display: none !important;
}

.hn-pdf-to-image .hn-file-drop span {
  display: block !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.5 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* HappyNooks PDF Tools v1.2.17 - full result screen, busy overlay and workspace fixes */
.hn-pdf-busy { position: relative; }
.hn-busy-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(233, 238, 247, .88);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hn-busy-card {
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .16);
  padding: 26px 24px;
  display: grid;
  gap: 12px;
  text-align: center;
}
.hn-busy-spinner {
  width: 68px;
  height: 68px;
  margin: 0 auto 4px;
  border-radius: 50%;
  border: 6px solid #dbeafe;
  border-top-color: #2563eb;
  animation: hnBusySpin .9s linear infinite;
  box-shadow: inset 0 0 0 6px #eff6ff;
}
@keyframes hnBusySpin { to { transform: rotate(360deg); } }
.hn-busy-title { font-size: 22px; color: #0f172a; }
.hn-busy-detail { color: #475569; font-size: 15px; line-height: 1.5; }
.hn-busy-meter { height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.hn-busy-meter-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2563eb,#60a5fa); transition: width .22s ease; }
.hn-busy-percent { color: #64748b; font-weight: 700; }

.hn-tool-shell.hn-convert-workspace .hn-tool-panel.hn-pdf-editor-mode > :not(.hn-result) {
  display: none !important;
}


/* HappyNooks PDF Tools v1.2.18 - corrected result layout */
.hn-pdf-main-convert,
.hn-tool-shell.hn-convert-workspace .hn-pdf-main-convert {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 0 !important;
  font-weight: 900 !important;
  min-height: 54px !important;
  box-shadow: 0 10px 24px rgba(37,99,235,.24) !important;
}

/* HappyNooks PDF Tools v1.3.0 - merge and split PDF tools */
.hn-pdf-manage .hn-split-options,
.hn-pdf-manage .hn-merge-options {
  align-items: start;
}

.hn-pdf-manage .hn-compression-note {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.hn-tool-shell.hn-convert-workspace .hn-pdf-manage .hn-options-with-convert {
  align-self: start;
}


/* HappyNooks PDF Tools v1.3.2 - safe PDF option fallback */
.hn-pdf-to-image {
  min-height: 1px;
}


/* HappyNooks PDF Tools v1.3.3 - jsDelivr primary CDN instead of Cloudflare cdnjs */
.hn-pdf-to-image,
.hn-pdf-manage,
.hn-images-to-pdf {
  min-height: 1px;
}


/* HappyNooks PDF Tools v1.3.6 - remove broken pseudo text overlay */
.hn-pdf-to-image .hn-file-drop span::after,
.hn-pdf-manage[data-mode="merge"] .hn-file-drop span::after {
  content: none !important;
  display: none !important;
}



/* Final edited PDF also uses HNTools.finishOutput and the standard Core result screen. */

/* HappyNooks PDF Tools v1.3.16 - Split PDF into pages */
.hn-pdf-manage[data-mode="split"] .hn-split-options {
  gap: 16px;
}

.hn-pdf-manage[data-mode="split"] .hn-split-after-field[hidden],
.hn-pdf-manage[data-mode="split"] .hn-split-ranges-field[hidden] {
  display: none !important;
}

.hn-pdf-manage[data-mode="split"] .hn-split-ranges {
  font-family: inherit;
}

.hn-tool-shell.hn-convert-workspace .hn-pdf-manage[data-mode="split"] .hn-options-with-convert .hn-field {
  width: 100%;
}


/* v1.3.22 - Delete PDF Pages settings card contains the load action */
.hn-pdf-delete-pages .hn-delete-options .hn-load-delete-pages {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-height: 56px !important;
  margin: 8px 0 0 0 !important;
  border-radius: 16px !important;
  background: #E11D2E !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 18px 34px rgba(225,29,46,.20) !important;
  font-weight: 950 !important;
}



/* v1.3.49 — result-card drag source/ghost/placeholder behavior is owned exclusively by Core. */

/* v1.3.40 - Standard PDF outputs inherit the shared Core result-card renderer.
   The working PDF to JPG .hn-edit-view card and modal flow remains unchanged. */


/* v1.3.55 — result-card floating shadow, source hiding and placeholder are owned only by Core. */

/* v1.3.56 — Add Page Numbers to PDF. Tool-specific controls only;
   shared workspace, result cards, preview modal, drag and shadows remain owned by Core. */
.hn-pdf-page-numbers .hn-page-number-layout {
  display: grid;
  grid-template-columns: minmax(300px, 38fr) minmax(440px, 62fr);
  gap: 22px;
  align-items: start;
  width: 100%;
}

.hn-pdf-page-numbers .hn-page-number-settings {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 14px;
  min-width: 0;
}

.hn-pdf-page-numbers .hn-page-number-section {
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  background: #fff;
  overflow: clip;
}

.hn-pdf-page-numbers .hn-page-number-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  user-select: none;
}

.hn-pdf-page-numbers .hn-page-number-section > summary::-webkit-details-marker { display: none; }
.hn-pdf-page-numbers .hn-page-number-section > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d8e3f2;
  border-radius: 9px;
  color: #475569;
  font-size: 17px;
}
.hn-pdf-page-numbers .hn-page-number-section[open] > summary::after { content: "−"; }

.hn-pdf-page-numbers .hn-page-number-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 17px 17px;
}

.hn-pdf-page-numbers .hn-page-number-grid .hn-field { min-width: 0; }
.hn-pdf-page-numbers .hn-page-number-grid .hn-input,
.hn-pdf-page-numbers .hn-page-number-grid .hn-select { width: 100%; }

.hn-pdf-page-numbers .hn-pn-check {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #e5eaf3;
  border-radius: 13px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.hn-pdf-page-numbers .hn-pn-check input {
  flex: 0 0 14px;
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  margin: 0;
  padding: 0 !important;
  accent-color: #e11d2e;
}

.hn-pdf-page-numbers input[type="color"] {
  width: 100%;
  min-height: 44px;
  padding: 5px;
  border: 1px solid #d8e3f2;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.hn-pdf-page-numbers input[type="range"] { width: 100%; accent-color: #e11d2e; }
.hn-pdf-page-numbers output {
  display: inline-block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.hn-pdf-page-numbers .hn-page-number-preview-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e5eaf3;
  border-radius: 20px;
  background: #fff;
}

.hn-pdf-page-numbers .hn-page-number-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hn-pdf-page-numbers .hn-page-number-preview-head > div:first-child {
  display: grid;
  gap: 4px;
}

.hn-pdf-page-numbers .hn-page-number-preview-head strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.hn-pdf-page-numbers .hn-page-number-preview-head span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.hn-pdf-page-numbers .hn-pn-preview-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hn-pdf-page-numbers .hn-pn-preview-nav .hn-btn {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 6px;
}

.hn-pdf-page-numbers .hn-pn-preview-nav label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hn-pdf-page-numbers .hn-pn-preview-page {
  width: 52px;
  min-height: 36px;
  padding: 5px 7px;
  border: 1px solid #d8e3f2;
  border-radius: 9px;
  text-align: center;
}

.hn-pdf-page-numbers .hn-pn-preview-stage {
  display: grid;
  place-items: center;
  min-height: 430px;
  max-height: 68vh;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background:
    linear-gradient(45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f8fafc 75%),
    linear-gradient(-45deg, transparent 75%, #f8fafc 75%),
    #eef2f7;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  overflow: auto;
}

.hn-pdf-page-numbers .hn-pn-preview-empty {
  max-width: 260px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  text-align: center;
}

.hn-pdf-page-numbers .hn-pn-preview-canvas-wrap {
  position: relative;
  flex: 0 0 auto;
  background: #fff;
  line-height: 0;
}

.hn-pdf-page-numbers .hn-pn-preview-canvas {
  display: block;
  max-width: none;
  background: #fff;
}

.hn-pdf-page-numbers .hn-pn-preview-number {
  position: absolute;
  z-index: 3;
  display: inline-block;
  max-width: 92%;
  color: #e11d2e;
  line-height: 1.1;
  text-align: center;
  white-space: pre-wrap;
  transform-origin: center center;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.hn-pdf-page-numbers .hn-pn-preview-number.is-draggable { cursor: grab; }
.hn-pdf-page-numbers .hn-pn-preview-number.is-draggable:active,
.hn-pdf-page-numbers .hn-pn-preview-number:active { cursor: grabbing; }

/* v1.9.35 — explicit drag affordance matching Watermark PDF. */
.hn-pdf-page-numbers .hn-pn-preview-drag-hint {
  position: sticky;
  left: 50%;
  bottom: 8px;
  z-index: 5;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  padding: 6px 10px;
  border: 1px solid rgba(225,29,46,.22);
  border-radius: 999px;
  background: rgba(15,23,42,.88);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.hn-pdf-page-numbers .hn-pn-preview-drag-hint[hidden] { display: none !important; }

.hn-pdf-page-numbers .hn-pn-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.hn-pdf-page-numbers .hn-pn-preview-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hn-pdf-page-numbers .hn-pn-preview-zoom { width: 96px; min-height: 24px !important; }
.hn-pdf-page-numbers .hn-pn-create { width: 100%; min-height: 50px; }


.hn-pdf-page-numbers .hn-pn-file-settings-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.hn-pdf-page-numbers .hn-pn-file-settings-actions .hn-btn {
  min-height: 42px;
  padding: 9px 10px;
  font-size: 12px;
}

@media (max-width: 1120px){
  .hn-pdf-page-numbers .hn-page-number-layout { grid-template-columns: 1fr; }
  .hn-pdf-page-numbers .hn-page-number-preview-panel { position: static; }
}

@media (max-width: 680px){
  .hn-pdf-page-numbers .hn-page-number-grid { grid-template-columns: 1fr; }
  .hn-pdf-page-numbers .hn-pn-file-settings-actions { grid-template-columns: 1fr; }
  .hn-pdf-page-numbers .hn-page-number-preview-head { display: grid; }
  .hn-pdf-page-numbers .hn-pn-preview-nav { justify-content: space-between; }
  .hn-pdf-page-numbers .hn-pn-preview-stage { min-height: 330px; padding: 8px; }
  .hn-pdf-page-numbers .hn-pn-preview-toolbar { align-items: flex-start; flex-direction: column; }
}


/* v1.3.58 — Add Page Numbers adopts Core's multi-document editor profile. */
.hn-pdf-page-numbers[data-hn-workspace-profile="multi-document-editor"] .hn-page-number-layout,
.hn-pdf-page-numbers[data-hn-workspace-profile="multi-document-editor"] .hn-page-number-settings,
.hn-pdf-page-numbers[data-hn-workspace-profile="multi-document-editor"] .hn-page-number-preview-panel,
.hn-pdf-page-numbers[data-hn-workspace-profile="multi-document-editor"] .hn-pn-preview-stage {
  min-width: 0;
  max-width: 100%;
}
.hn-pdf-page-numbers[data-hn-workspace-profile="multi-document-editor"] .hn-page-number-preview-head > div:first-child {
  min-width: 0;
}
.hn-pdf-page-numbers[data-hn-workspace-profile="multi-document-editor"] .hn-pn-document-info {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
@media (max-width: 1380px){
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace .hn-pdf-page-numbers .hn-page-number-layout {
    grid-template-columns: minmax(300px, 40fr) minmax(420px, 60fr);
  }
}
@media (max-width: 1180px){
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace .hn-pdf-page-numbers .hn-page-number-layout {
    grid-template-columns: minmax(0,1fr);
  }
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace .hn-pdf-page-numbers .hn-page-number-preview-panel {
    position: static;
  }
}


/* v1.3.59 — multi-document page-number editor layout refinements.
   The Core workspace root owns file-list placement; this module only controls
   the tool's internal settings/preview ratio. */
body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace .hn-pdf-page-numbers .hn-multi-document-workspace-root .hn-page-number-layout {
  grid-template-columns: minmax(270px, 34fr) minmax(520px, 66fr) !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace .hn-pdf-page-numbers .hn-multi-document-workspace-root .hn-page-number-settings,
body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace .hn-pdf-page-numbers .hn-multi-document-workspace-root .hn-page-number-preview-panel {
  min-width: 0 !important;
  max-width: 100% !important;
}
@media (max-width: 1180px){
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace .hn-pdf-page-numbers .hn-multi-document-workspace-root .hn-page-number-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* v1.3.60 — manual editor launch, wider preview and compact controls. */
.hn-pdf-page-numbers .hn-pn-launch-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
}
.hn-pdf-page-numbers .hn-pn-launch-card > div {
  display: grid;
  gap: 7px;
}
.hn-pdf-page-numbers .hn-pn-launch-card strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}
.hn-pdf-page-numbers .hn-pn-launch-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}
.hn-pdf-page-numbers .hn-pn-launch-card .hn-btn {
  width: 100%;
  min-height: 50px;
}
body .hn-tool-shell.hn-convert-workspace .hn-pdf-page-numbers.hn-multi-document-editor-active > .hn-pn-launch-card,
body .hn-tool-shell.hn-convert-workspace .hn-pdf-page-numbers[data-hn-main-output="1"] > .hn-pn-launch-card,
body .hn-tool-shell.hn-convert-workspace .hn-pdf-page-numbers.hn-processing-mode > .hn-pn-launch-card {
  display: none !important;
}
body .hn-tool-shell.hn-convert-workspace .hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"]):not(.hn-processing-mode) > .hn-pn-launch-card {
  grid-column: 2 !important;
  grid-row: 1 / span 4 !important;
  align-self: start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 360px !important;
  margin: 0 !important;
}
body .hn-tool-shell.hn-convert-workspace .hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"]):not(.hn-processing-mode) > .hn-file-drop,
body .hn-tool-shell.hn-convert-workspace .hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"]):not(.hn-processing-mode) > .hn-file-summary,
body .hn-tool-shell.hn-convert-workspace .hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"]):not(.hn-processing-mode) > .hn-file-queue {
  grid-column: 1 !important;
}
body .hn-tool-shell.hn-convert-workspace .hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"]):not(.hn-processing-mode) {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) !important;
}
.hn-pdf-page-numbers .hn-pn-preview-zoom-control {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.hn-pdf-page-numbers .hn-pn-preview-toolbar {
  min-height: 20px;
}
@media (max-width: 1180px){
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"]):not(.hn-processing-mode) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"]):not(.hn-processing-mode) > .hn-pn-launch-card {
    grid-column: 1 !important;
    grid-row: auto !important;
    max-width: 100% !important;
  }
}
@media (max-width: 760px){
  .hn-pdf-page-numbers .hn-pn-preview-nav {
    width: 100%;
    justify-content: space-between;
  }
  .hn-pdf-page-numbers .hn-pn-preview-zoom { width: 82px; }
}


/* v1.3.61 — Page-number actions live at the bottom of the settings column. */
.hn-pdf-page-numbers .hn-pn-settings-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.hn-pdf-page-numbers .hn-pn-settings-footer .hn-pn-create {
  width: 100%;
  min-height: 50px;
}

@media (max-width: 1180px){
  .hn-pdf-page-numbers .hn-pn-settings-footer {
    margin-top: 0;
  }
}

/* Keep the left action footer aligned with the bottom of the preview column. */
.hn-pdf-page-numbers .hn-page-number-layout {
  align-items: stretch;
}
.hn-pdf-page-numbers .hn-page-number-preview-panel {
  align-self: start;
}


/* v1.3.62 — Edit PDF Text, Phase 1. Uses Core multi-document workspace and result cards. */











































































/* v1.3.64 — PDF font detection, matching and on-demand font embedding. */


















/* v1.3.67 - PDF-compatible merged open-font embedding */




/* v1.3.68 — Edit PDF Text processing transition
   Core owns the processing screen. This rule only prevents the editor canvas from
   participating in a transitional paint before Core's progress screen is committed. */




/* v1.3.71 — Keep detected-font details inside the Font field, immediately below the selector. */



/* v1.3.72 — Natural text flow: grow horizontally to the remaining page width, then wrap and grow vertically. */





/* v1.3.73 — Text flow follows the detected content column; live edits update the overlay without repainting the PDF canvas. */



/* v1.3.74 — Smooth text dragging and clean selection visuals. */




/* v1.3.75 — Font-metric-aware text box height and descender-safe cover masks. */




/* v1.3.78 — PDF page-editor results consume the same Core-owned action-column
   dimensions as upload and standard output screens. No separate plugin width. */


/* v1.3.80 — Compact PDF page-result controls and summary surfaces.
   The viewport shell remains Core-owned; these rules only compact the
   PDF-to-image page editor's tool-specific card controls and information box. */


/* v1.3.80 final PDF-result column containment. */


/* v1.3.84 — compact page-number settings column, dual accordion controls,
   and preview navigation order. The standard + action keeps one section open;
   the adjacent stacked control opens/closes a section without closing others. */
@media (min-width: 1181px){
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-workspace-root .hn-page-number-layout {
    grid-template-columns: minmax(300px, 370px) minmax(0, 1fr) !important;
    gap: 12px !important;
  }
}

.hn-pdf-page-numbers .hn-page-number-section > summary {
  gap: 10px;
}
.hn-pdf-page-numbers .hn-page-number-section > summary::after {
  content: none !important;
  display: none !important;
}
.hn-pdf-page-numbers .hn-pn-section-title {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hn-pdf-page-numbers .hn-pn-section-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}
.hn-pdf-page-numbers .hn-pn-section-exclusive,
.hn-pdf-page-numbers .hn-pn-section-multi-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #d8e3f2;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  box-shadow: none;
}
.hn-pdf-page-numbers .hn-pn-section-exclusive::before {
  content: "+";
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.hn-pdf-page-numbers .hn-page-number-section[open] > summary .hn-pn-section-exclusive::before {
  content: "−";
}
.hn-pdf-page-numbers .hn-pn-section-multi-toggle {
  cursor: pointer;
}
.hn-pdf-page-numbers .hn-pn-section-multi-toggle:hover,
.hn-pdf-page-numbers .hn-pn-section-multi-toggle:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #2563eb;
  outline: none;
}
.hn-pdf-page-numbers .hn-pn-section-multi-toggle::before,
.hn-pdf-page-numbers .hn-pn-section-multi-toggle::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: #fff;
}
.hn-pdf-page-numbers .hn-pn-section-multi-toggle::before {
  transform: translate(-2px, 2px);
}
.hn-pdf-page-numbers .hn-pn-section-multi-toggle::after {
  transform: translate(2px, -2px);
}
.hn-pdf-page-numbers .hn-pn-section-multi-toggle[aria-pressed="true"] {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #2563eb;
}
.hn-pdf-page-numbers .hn-pn-preview-nav {
  flex-wrap: nowrap;
}
.hn-pdf-page-numbers .hn-pn-preview-zoom-control {
  margin-right: 2px;
}
@media (max-width: 1380px){
  .hn-pdf-page-numbers .hn-pn-preview-nav {
    flex-wrap: wrap;
  }
}


/* v1.3.85 — narrower Add Page Numbers settings rail.
   The editor keeps the same accordion and responsive behavior while giving
   the Live Preview more horizontal space on desktop. */
@media (min-width: 1181px){
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-workspace-root .hn-page-number-layout {
    grid-template-columns: minmax(300px, 370px) minmax(0, 1fr) !important;
  }
}


/* v1.3.86 — Safe Paragraph Edit foundation. */








/* v1.3.87 — paragraph selection, automatic cover and hard-boundary foundation. */








/* v1.3.88 — stable paragraph transaction and table safety lock. */









/* v1.3.90 - on-page text editing is the primary input flow; table lock only follows repeated cell columns. */










/* v1.3.92 — paragraph-wide source cover, compact page navigation, cleaner inspector. */







/* v1.3.93 — single editor instruction, narrower page rail, wider canvas, 125% default zoom. */



/* v1.3.94 — detected tables use bounded editable cell proxies instead of the old blanket lock. */



/* v1.3.95 — hard field boundaries and visible overflow feedback. */





/* v1.3.96 — field-aware text flow and dismissible save errors. */





/* v1.3.97 — Empty inspector copy is intentionally removed. */



/* v1.3.99 — layout-preserving paragraph entry and baseline-locked line editing. */



/* v1.3.101 — paragraph boundaries and source-indent preserving on-page editing. */




/* v1.3.101 — source font-size, baseline spacing and alignment preservation. */




/* v1.3.102 — source-baseline paragraph editing without entry-time reflow. */







/* v1.3.105 — invisible trailing-space edits stay visually pristine; edited
   source rows may use their real blank right-side capacity. */



/* v1.3.106 — source-row overflow creates an explicit continuation row instead
   of horizontally scrolling the whole paragraph toward the caret. */




/* v1.3.109 — true whole-page selection without flattening mixed formatting. */



/* v1.3.110: unified PDF to Image format selector. */
.hn-pdf-to-image .hn-pdf-image-options{align-items:start}
.hn-pdf-to-image .hn-pdf-image-format-note,
.hn-pdf-to-image .hn-pdf-image-quality-note{display:block;margin-top:8px;line-height:1.45}
.hn-pdf-to-image[data-active-format="tiff"] .hn-pdf-image-format-note{color:#475569}


/* v1.3.111 — Delete PDF Pages uses lightweight card thumbnails and a
   separate high-resolution, lossless preview rendered lazily from the source
   PDF. The obsolete preview-size selector is removed. */
.hn-pdf-delete-pages .hn-delete-options {
  grid-template-columns: 1fr !important;
}
.hn-large-preview-loading {
  width: min(560px, calc(100% - 32px));
  min-height: 260px;
  margin: auto;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border: 1px solid #dbe7f5;
  border-radius: 20px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 18px 46px rgba(15,23,42,.10);
}
.hn-large-preview-loading > span {
  width: 48px;
  height: 48px;
  border: 5px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: hn-pdf-preview-spin .8s linear infinite;
}
.hn-large-preview-loading strong { font-size: 17px; }
.hn-large-preview-loading small { color: #64748b; line-height: 1.5; }
.hn-large-preview-loading.is-error { border-color: #fecaca; background: #fff7f7; color: #991b1b; }
@keyframes hn-pdf-preview-spin { to { transform: rotate(360deg); } }

body .hn-large-preview-body img {
  image-rendering: auto !important;
  object-fit: contain !important;
}

/* v1.3.113 — Delete PDF Pages no longer owns a result layout. Its page
   previews are rendered by the shared Core showOutputList() grid. */
.hn-pdf-delete-pages .hn-delete-options{grid-template-columns:1fr!important}


/* v1.3.114 — Delete PDF Pages uses the Core page-management variant; no tool-owned result layout. */


/* v1.3.118 — PDF compression settings use the shared Core workspace. */
.hn-pdf-compress .hn-pdf-compress-options{
  align-items:start;
}
.hn-pdf-compress .hn-pdf-compress-level-note{
  display:block;
  margin-top:8px;
  line-height:1.45;
}
.hn-pdf-compress .hn-pdf-compress-mode-note{
  display:grid;
  gap:5px;
  margin:4px 0 14px;
  padding:13px 15px;
  border:1px solid #dbe7f5;
  border-radius:14px;
  background:#f8fbff;
  color:#334155;
  line-height:1.48;
}
.hn-pdf-compress .hn-pdf-compress-mode-note strong{
  color:#0f172a;
  font-size:14px;
}
.hn-pdf-compress .hn-pdf-compress-mode-note span{
  font-size:12.5px;
}
.hn-pdf-compress .hn-pdf-compress-mode-note.is-raster{
  border-color:#fde68a;
  background:#fffbeb;
}
.hn-pdf-compress .hn-pdf-compress-mode-note.is-lossless{
  border-color:#bbf7d0;
  background:#f0fdf4;
}
.hn-pdf-compress .hn-compress-pdf{
  min-width:190px;
}
.hn-pdf-compress .hn-select:disabled{
  opacity:.58;
  cursor:not-allowed;
}


/* v1.3.120 — PDF to Word shared-workspace options. */






/* ============================================================
   v1.3.138 — Add Page Numbers mobile editor containment
   Core owns the active multi-document root. This tool only guarantees that
   its settings/preview flow remains in normal document flow on phones.
============================================================ */
@media (max-width: 780px){
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-workspace-root,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-workspace-root > [data-hn-multi-editor-content="1"] {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-layout {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-settings {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-panel {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 12px 0 0 !important;
    padding: 12px !important;
    overflow: visible !important;
    transform: none !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-section {
    position: relative !important;
    z-index: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-section > summary {
    min-height: 58px !important;
    padding: 12px 14px !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 0 14px 14px !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-stage {
    min-height: 300px !important;
    max-height: none !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-settings-footer {
    padding-bottom: 18px !important;
  }
}

/* ============================================================
   v1.3.140 — Add Page Numbers mobile state/scroll rebuild
   Keep Core's manual-open lifecycle authoritative:
   1) upload/launch state => editor root hidden
   2) active editor => upload surface hidden, root visible
   The Core shell remains the one and only vertical scroller.
============================================================ */
@media (max-width: 780px){
  /* INACTIVE / MANUAL-OPEN STATE
     Never let tool-specific CSS resurrect the editor content before Edit opens. */
  body .hn-tool-shell.hn-convert-workspace
    > .hn-tool-panel.hn-pdf-page-numbers:not(.hn-multi-document-editor-active)
    > .hn-multi-document-workspace-root,
  body .hn-tool-shell.hn-convert-workspace
    > .hn-tool-panel.hn-pdf-page-numbers:not(.hn-multi-document-editor-active)
    > [data-hn-multi-editor-content="1"] {
    display: none !important;
  }

  body .hn-tool-shell.hn-convert-workspace
    > .hn-tool-panel.hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"]) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    touch-action: pan-y !important;
  }

  body .hn-tool-shell.hn-convert-workspace
    > .hn-tool-panel.hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"])
    > .hn-file-drop,
  body .hn-tool-shell.hn-convert-workspace
    > .hn-tool-panel.hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"])
    > .hn-file-queue,
  body .hn-tool-shell.hn-convert-workspace
    > .hn-tool-panel.hn-pdf-page-numbers:not(.hn-multi-document-editor-active):not([data-hn-main-output="1"])
    > .hn-pn-launch-card {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  /* ACTIVE EDITOR STATE
     Core owns the source list. Remove the legacy upload surface completely. */
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-file-drop,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-file-summary,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-file-queue,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-pn-launch-card {
    display: none !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    touch-action: pan-y !important;
  }

  /* Core's structural root: file row first, editor second, no nested scroller. */
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-multi-document-workspace-root {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 0 calc(var(--hn-mobile-rail-measured, 84px) + 44px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: visible !important;
    transform: none !important;
    touch-action: pan-y !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-workspace-root
    > .hn-multi-document-list {
    display: grid !important;
    gap: 10px !important;
    position: static !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    touch-action: pan-y !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-row {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-workspace-root
    > [data-hn-multi-editor-content="1"] {
    display: block !important;
    position: static !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    touch-action: pan-y !important;
  }

  /* Tool editor itself is a single vertical document flow. */
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-layout {
    display: block !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-settings {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: none !important;
    touch-action: pan-y !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-section {
    position: relative !important;
    z-index: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-section > summary {
    min-height: 58px !important;
    padding: 12px 14px !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 0 14px 14px !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-panel {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 14px 0 0 !important;
    padding: 12px !important;
    overflow: visible !important;
    transform: none !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-stage {
    min-height: 300px !important;
    max-height: none !important;
    overflow: auto !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior: contain !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-settings-footer {
    margin-top: 0 !important;
    padding-bottom: 12px !important;
  }
}


/* ============================================================
   v1.3.141 — Add Page Numbers mobile state authority
   The tool no longer uses a manual launch state. Core automatically activates
   the multi-document editor as soon as at least one PDF exists.
   Empty state = upload only. Loaded state = editor only.
============================================================ */
.hn-pdf-page-numbers > .hn-pn-launch-card { display:none !important; }

/* Empty/upload state: editor content must never be visible. */
body .hn-tool-shell.hn-convert-workspace
  > .hn-tool-panel.hn-pdf-page-numbers:not(.hn-multi-document-editor-active)
  > [data-hn-multi-editor-content="1"],
body .hn-tool-shell.hn-convert-workspace
  > .hn-tool-panel.hn-pdf-page-numbers:not(.hn-multi-document-editor-active)
  > .hn-multi-document-workspace-root {
  display:none !important;
}

@media (max-width:780px){
  /* Loaded/editor state: only Core's editor root remains in the source area. */
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-file-drop,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-file-summary,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-file-queue,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-pn-launch-card {
    display:none !important;
  }

  /* Do not create an inner vertical scroller. The Core shell is the only
     vertical scroller on phones, matching the rest of the workspace tools. */
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-multi-document-workspace-root,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-workspace-root
    > [data-hn-multi-editor-content="1"],
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-layout,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-settings,
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-panel {
    position:relative !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    transform:none !important;
    touch-action:pan-y !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-multi-document-workspace-root {
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    padding:0 0 calc(var(--hn-mobile-rail-measured,84px) + 40px + env(safe-area-inset-bottom,0px)) !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-workspace-root
    > .hn-multi-document-list {
    display:grid !important;
    gap:10px !important;
    position:relative !important;
    width:100% !important;
    max-height:none !important;
    overflow:visible !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-layout {
    display:block !important;
    margin:0 !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-settings {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
    margin:0 !important;
  }

  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-panel {
    display:flex !important;
    flex-direction:column !important;
    margin:14px 0 0 !important;
  }

  /* The preview itself may scroll in two dimensions, but reaching its edge
     must hand vertical movement back to the page rather than trapping it. */
  body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-stage {
    max-height:none !important;
    overscroll-behavior:auto !important;
    touch-action:pan-x pan-y !important;
  }
}

/* ============================================================
   v1.3.142 — Add Page Numbers mobile editor: dedicated scroller
   The generic Core shell scroll chain is intentionally bypassed for this
   editor on phones. The workspace bar and bottom tool rail remain fixed,
   while the page-number editor panel owns the vertical scroll viewport.
============================================================ */
@media (max-width: 780px){
  /* Prevent two competing vertical scrollers while this editor is active. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace:has(
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
  ) {
    overflow-y: hidden !important;
    overscroll-behavior-y: none !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active {
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: calc(100dvh - var(--hn-mobile-topbar-height, 60px)) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - var(--hn-mobile-topbar-height, 60px)) !important;
    margin: 0 !important;
    padding: 14px 14px calc(var(--hn-mobile-rail-measured, 84px) + 34px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-x: none !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scroll-padding-bottom: calc(var(--hn-mobile-rail-measured, 84px) + 34px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-multi-document-workspace-root {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    position: static !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: max-content !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 0 20px !important;
    overflow: visible !important;
    transform: none !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > .hn-multi-document-list,
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > [data-hn-multi-editor-content="1"],
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-layout,
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-settings,
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-preview-panel {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  /* Preview may still pan internally; when collapsed it cannot trap page scroll. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-pn-preview-stage {
    max-height: 62dvh !important;
    overflow: auto !important;
    overscroll-behavior: auto !important;
    touch-action: pan-x pan-y !important;
  }
}

/* ============================================================
   v1.3.143 — Add Page Numbers mobile preview bottom breathing room
   Keeps the Live Preview card visually clear of the fixed mobile rail.
============================================================ */
@media (max-width: 780px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-page-number-preview-panel {
    margin-bottom: 28px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-multi-document-workspace-root {
    padding-bottom: 44px !important;
  }
}


/* ============================================================
   v1.3.144 — Add Page Numbers mobile preview/rail clearance
   Use a real final flex item after Live Preview. This is intentionally
   not a margin/padding trick: the spacer participates in the editor's
   own scroll height, so Android Chrome can scroll the preview fully
   above the fixed mobile tool rail.
============================================================ */
.hn-pn-mobile-rail-spacer {
  display: none;
}

@media (max-width: 780px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-pn-mobile-rail-spacer {
    display: block !important;
    flex: 0 0 calc(var(--hn-mobile-rail-measured, 96px) + 32px + env(safe-area-inset-bottom, 0px)) !important;
    width: 100% !important;
    height: calc(var(--hn-mobile-rail-measured, 96px) + 32px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(var(--hn-mobile-rail-measured, 96px) + 32px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  /* The real spacer owns the clearance; remove the ineffective old margin. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-page-number-preview-panel {
    margin-bottom: 0 !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-multi-document-workspace-root {
    padding-bottom: 0 !important;
  }
}

/* ============================================================
   v1.3.145 — Edit PDF Text mobile workspace rebuild
   This editor now owns one deterministic mobile vertical scroll viewport.
   Upload and editor states stay separate, legacy queue surfaces cannot paint
   under the editor, and real terminal spacer elements reserve the fixed rail.
============================================================ */


@media (max-width: 780px){
  /* -------------------------
     UPLOAD / LAUNCH STATE
     ------------------------- */
  

  

  /* Real scroll-height reserve below Ready to edit PDF text?. */
  

  /* Editor DOM must never appear while the manual launch screen is active. */
  

  /* -------------------------
     ACTIVE EDITOR STATE
     ------------------------- */
  

  /* Kill every legacy upload surface once the real editor is open. */
  

  /* The editor panel is the one vertical scroller, like Page Numbers. */
  

  

  /* Source file cards are one normal-flow block; no second/ghost upload tile. */
  

  

  /* Rebuild editor content as a true vertical flow. */
  

  

  /* Page thumbnails scroll sideways only; they never trap vertical movement. */
  

  

  /* Canvas keeps its own 2D pan area, but no fixed editor-column height. */
  

  

  

  /* Real last item: the fixed rail can never cover the final editor controls. */
  
}


/* ============================================================
   v1.3.146 — Edit PDF Text mobile upload clearance cleanup
   The upload screen must not manufacture a card-shaped empty region. The
   launch card is the terminal visible block and the panel itself owns the
   bottom rail clearance. Empty result placeholders are hard-hidden here so
   Core's generic mobile last-child rules cannot surface them.
============================================================ */


/* v1.3.152: specialist editor stylesheet is registered with Core and preloaded before dynamic workspace switches. */


/* v1.3.157 — outer PDF editor/result geometry is Core-owned.
   PDF Tools must not add an independent viewport inset, height, background,
   grid column, margin, or action-column width. Internal editor layouts remain
   tool-specific inside the Core-positioned panel. */
@media (min-width: 781px){
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-editor-mode {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    background: #f4f7fb !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}


/* ============================================================
   v1.3.159 — Core-owned outer editor geometry retained
   Page Numbers and Edit PDF Text keep their internal layouts, but no PDF Tools
   wrapper may add a second desktop margin/padding/origin around the editor.
============================================================ */


/* ============================================================
   v1.3.161 — Add Page Numbers desktop four-zone editor

   Core still owns the outer workspace and creates the multi-document list.
   PDF Tools owns only this tool's desktop internal presentation:
     [uploaded PDFs] [Live Preview controls]
     [settings rail] [large page preview]

   The .hn-page-number-layout wrapper becomes layout-transparent on large
   desktop so its Settings and Preview children can participate directly in
   Core's structural multi-document root. Mobile/tablet keep the established
   single-column flow unchanged.
============================================================ */
@media (min-width: 1181px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active {
    overflow: hidden !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active
    > .hn-multi-document-workspace-root {
    display: grid !important;
    grid-template-columns: minmax(0, 25%) minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  /* Upper-left: Core-generated uploaded PDF list. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > .hn-multi-document-list {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    gap: 5px !important;
    width: 100% !important;
    max-height: 132px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 2px 0 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 6px 7px !important;
    border-radius: 12px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-main {
    gap: 6px !important;
    min-width: 0 !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-order {
    width: 21px !important;
    height: 21px !important;
    font-size: 9px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-icon {
    width: 29px !important;
    height: 29px !important;
    border-radius: 9px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-copy {
    gap: 1px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-copy strong {
    max-width: none !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-copy small {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-actions .hn-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 27px !important;
    padding: 3px 3px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
  }

  /* Make Settings + Preview direct participants in the two-column root grid. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > .hn-page-number-layout {
    display: contents !important;
  }

  /* Lower-left: independent settings scroller. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-settings {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 2px 0 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-section {
    flex: 0 0 auto !important;
    border-radius: 14px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-section > summary {
    min-height: 47px !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-grid {
    gap: 10px !important;
    padding: 0 12px 12px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-settings-footer {
    flex: 0 0 auto !important;
    margin-top: 2px !important;
    padding-top: 4px !important;
  }

  /* Entire right side: controls at top, page surface consumes the rest. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-preview-panel {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    position: relative !important;
    top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  /* Upper-right: Live Preview controls as a dedicated compact strip. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-head {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 13px !important;
    background: #fff !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-head > div:first-child {
    gap: 1px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-head strong {
    font-size: 13px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-head span {
    font-size: 10px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav {
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav .hn-btn {
    width: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 5px !important;
    border-radius: 9px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav label {
    gap: 4px !important;
    font-size: 10px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-zoom {
    width: 112px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-page {
    width: 50px !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 4px 6px !important;
  }

  /* Main right page surface: no old 68vh ceiling. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-stage {
    flex: 1 1 auto !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 13px !important;
    overflow: auto !important;
    scrollbar-gutter: stable !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-toolbar {
    flex: 0 0 auto !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    font-size: 10px !important;
  }
}


/* ============================================================
   v1.3.163 — Page Numbers exact owner-level 25 / 75 desktop grid
   Core's structural multi-document selector is intentionally matched and
   further specialized by the Page Numbers owner class. This prevents the
   generic one-column root contract from winning by specificity.
============================================================ */
@media (min-width: 1181px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace:not(.hn-empty-workspace)
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace:not(.hn-empty-workspace)
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root
    > .hn-multi-document-list {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: 132px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace:not(.hn-empty-workspace)
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root
    > .hn-page-number-layout[data-hn-multi-editor-content="1"] {
    display: contents !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    max-width: none !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace:not(.hn-empty-workspace)
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root
    > .hn-page-number-layout[data-hn-multi-editor-content="1"]
    > .hn-page-number-settings {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace:not(.hn-empty-workspace)
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root
    > .hn-page-number-layout[data-hn-multi-editor-content="1"]
    > .hn-page-number-preview-panel {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
  }
}


/* ============================================================
   v1.3.163 — Page Numbers Live Preview quick controls.
   Typography moves out of the left accordion and remains part of the
   per-file settings model in the right-side live strip. Preview zoom uses
   +/- controls with a 70% initial value. Advanced position settings stay left.
============================================================ */
.hn-pdf-page-numbers .hn-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 1181px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-head {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 58px !important;
    padding: 7px 9px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-title {
    display: grid !important;
    gap: 1px !important;
    min-width: 108px !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-title > strong {
    font-size: 14px !important;
    line-height: 1.15 !important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-title > span {
    font-size: 10.5px !important;
    line-height: 1.2 !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-live-settings {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .hn-pdf-page-numbers .hn-pn-live-field {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  .hn-pdf-page-numbers .hn-pn-live-field > span {
    font-size: 10.5px !important;
    color: #64748b !important;
  }

  .hn-pdf-page-numbers .hn-pn-live-settings .hn-select,
  .hn-pdf-page-numbers .hn-pn-live-settings .hn-input {
    min-height: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .hn-pdf-page-numbers .hn-pn-live-font .hn-pn-font {
    width: 92px !important;
    padding-left: 8px !important;
    padding-right: 24px !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-size .hn-pn-font-size {
    width: 52px !important;
    padding-left: 7px !important;
    padding-right: 4px !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-position .hn-pn-position {
    width: 118px !important;
    padding-left: 8px !important;
    padding-right: 24px !important;
  }

  .hn-pdf-page-numbers .hn-pn-live-color {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    width: auto !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 3px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color .hn-pn-color {
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
  }

  .hn-pdf-page-numbers .hn-pn-live-format {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-toggle {
    position: relative !important;
    display: inline-flex !important;
    margin: 0 !important;
    cursor: pointer !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-toggle > input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #334155 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    transition: border-color .12s ease, background .12s ease, color .12s ease !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-bold { font-weight: 900 !important; }
  .hn-pdf-page-numbers .hn-pn-format-italic { font-style: italic !important; }
  .hn-pdf-page-numbers .hn-pn-format-underline { text-decoration: underline !important; text-underline-offset: 2px !important; }
  .hn-pdf-page-numbers .hn-pn-format-toggle > input:checked + .hn-pn-format-icon {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #2563eb !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-toggle:hover .hn-pn-format-icon,
  .hn-pdf-page-numbers .hn-pn-format-toggle > input:focus-visible + .hn-pn-format-icon {
    border-color: #93c5fd !important;
    color: #2563eb !important;
  }

  .hn-pdf-page-numbers .hn-pn-live-opacity {
    gap: 3px !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity .hn-pn-opacity {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 76px !important;
    min-height: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(to right, #e11d2e 0 var(--hn-range-progress, 100%), #d9e0e8 var(--hn-range-progress, 100%) 100%) !important;
    background-size: 100% 4px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    cursor: pointer !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity .hn-pn-opacity::-webkit-slider-runnable-track {
    height: 4px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity .hn-pn-opacity::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 14px !important;
    height: 14px !important;
    margin-top: -5px !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: #e11d2e !important;
    box-shadow: 0 0 0 1px rgba(225,29,46,.20), 0 1px 4px rgba(15,23,42,.18) !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity .hn-pn-opacity::-moz-range-track {
    height: 4px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #d9e0e8 !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity .hn-pn-opacity::-moz-range-progress {
    height: 4px !important;
    border-radius: 999px !important;
    background: #e11d2e !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity .hn-pn-opacity::-moz-range-thumb {
    width: 14px !important;
    height: 14px !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: #e11d2e !important;
    box-shadow: 0 0 0 1px rgba(225,29,46,.20), 0 1px 4px rgba(15,23,42,.18) !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity output {
    width: 34px !important;
    color: #475569 !important;
    font-size: 10.5px !important;
    text-align: right !important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .hn-pdf-page-numbers .hn-pn-preview-zoom-control {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin: 0 2px 0 0 !important;
  }
  .hn-pdf-page-numbers .hn-pn-preview-zoom {
    display: none !important;
  }
  .hn-pdf-page-numbers .hn-pn-preview-zoom-control .hn-btn,
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav > .hn-btn {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }
  .hn-pdf-page-numbers .hn-pn-zoom-value {
    min-width: 36px !important;
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-align: center !important;
  }
  .hn-pdf-page-numbers .hn-pn-page-control {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 1500px) and (min-width: 1181px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-head {
    grid-template-columns: auto minmax(0,1fr) !important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav {
    grid-column: 2 !important;
    justify-self: end !important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-live-settings {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 1180px){
  .hn-pdf-page-numbers .hn-page-number-preview-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-settings {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-field {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 10px !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-settings .hn-select,
  .hn-pdf-page-numbers .hn-pn-live-settings .hn-input {
    min-height: 36px !important;
    height: 36px !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-toggle > input {
    position: absolute !important;
    opacity: 0 !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 9px !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-toggle > input:checked + .hn-pn-format-icon {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #2563eb !important;
  }
  .hn-pdf-page-numbers .hn-pn-preview-zoom { display: none !important; }
  .hn-pdf-page-numbers .hn-pn-preview-zoom-control {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .hn-pdf-page-numbers .hn-pn-preview-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
  }
}


/* ============================================================
   v1.3.164 — Page Numbers Live Preview toolbar correctness.
============================================================ */
@media (min-width: 1181px){
  .hn-pdf-page-numbers .hn-pn-live-zoom {
    flex: 0 0 auto !important;
    gap: 4px !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-zoom .hn-pn-preview-zoom-control {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin: 0 !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color {
    position: static !important;
    overflow: hidden !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color > .hn-color-reset-btn {
    position: static !important;
    width: auto !important;
    min-width: 34px !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 !important;
    padding: 0 6px !important;
    border: 0 !important;
    border-left: 1px solid #dbe4f0 !important;
    border-radius: 0 5px 5px 0 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color > .hn-color-reset-btn:hover {
    background: #eef2f7 !important;
    color: #0f172a !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color > .hn-color-reset-btn::before {
    content: none !important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav {
    justify-self: end !important;
    margin-left: 4px !important;
  }
  .hn-pdf-page-numbers .hn-pn-page-total {
    display: inline-block !important;
    min-width: 24px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-align: left !important;
  }
}

@media (max-width: 1180px){
  .hn-pdf-page-numbers .hn-pn-live-color {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    position: static !important;
    overflow: hidden !important;
    padding: 3px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 9px !important;
    background: #fff !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color > .hn-color-reset-btn {
    position: static !important;
    width: auto !important;
    min-width: 38px !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 7px !important;
    border: 0 !important;
    border-left: 1px solid #dbe4f0 !important;
    border-radius: 0 6px 6px 0 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color > .hn-color-reset-btn::before {
    content: none !important;
  }
}


/* ============================================================
   v1.3.166 — Live Preview readability / opacity / color-reset polish.
   Core owner rules above are edited directly; this tail only documents the
   version boundary and intentionally adds no competing geometry overrides.
============================================================ */


/* Document Engine v2 Quality Lab: only exposed with ?hn_quality_lab=1. */
.hn-de2-open-lab{margin-left:8px;background:#fff;color:#0f172a;border:1px solid #cbd5e1}
.hn-de2-lab{position:fixed;inset:0;z-index:2147483000;display:none;font-family:Arial,sans-serif;color:#0f172a}
.hn-de2-lab.is-open{display:block}.hn-de2-lab-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58)}
.hn-de2-lab-dialog{position:absolute;inset:3vh 3vw;background:#f8fafc;border-radius:14px;box-shadow:0 24px 80px rgba(15,23,42,.35);display:flex;flex-direction:column;overflow:hidden}
.hn-de2-lab-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#fff;border-bottom:1px solid #e2e8f0}.hn-de2-lab-dialog>header>div:first-child{display:flex;gap:10px;align-items:baseline}.hn-de2-lab-version{font-size:12px;color:#64748b}
.hn-de2-lab-actions{display:flex;gap:8px}.hn-de2-lab-actions button,.hn-de2-lab-toolbar select{border:1px solid #cbd5e1;background:#fff;border-radius:7px;padding:7px 10px;color:#0f172a}.hn-de2-lab-actions button:last-child{font-size:22px;line-height:18px;padding:6px 10px}
.hn-de2-lab-summary{display:flex;gap:18px;align-items:center;padding:10px 18px;border-bottom:1px solid #e2e8f0}.hn-de2-lab-summary.is-pass{background:#ecfdf5}.hn-de2-lab-summary.is-review{background:#fffbeb}.hn-de2-lab-summary.is-block{background:#fef2f2}.hn-de2-lab-summary span{font-size:13px}
.hn-de2-lab-toolbar{display:flex;gap:18px;padding:9px 18px;background:#fff;border-bottom:1px solid #e2e8f0}.hn-de2-lab-toolbar label{display:flex;gap:7px;align-items:center;font-size:13px;font-weight:600}
.hn-de2-lab-main{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 340px}.hn-de2-lab-canvas{min-width:0;overflow:auto;padding:18px;display:flex;align-items:flex-start;justify-content:center;background:#e2e8f0}.hn-de2-lab-canvas svg{width:min(100%,850px);height:auto;background:#fff;box-shadow:0 4px 20px rgba(15,23,42,.16)}
.hn-de2-lab-main aside{overflow:auto;padding:16px;background:#fff;border-left:1px solid #e2e8f0}.hn-de2-lab-main aside h3{margin:4px 0 10px;font-size:14px}.hn-de2-lab-findings article{padding:9px 10px;margin:0 0 8px;border-left:4px solid #94a3b8;background:#f8fafc}.hn-de2-lab-findings article.is-error{border-color:#dc2626}.hn-de2-lab-findings article.is-warning{border-color:#d97706}.hn-de2-lab-findings article.is-info{border-color:#2563eb}.hn-de2-lab-findings article strong{display:block;font-size:12px}.hn-de2-lab-findings article span{font-size:11px;color:#64748b}.hn-de2-lab-findings article p{font-size:12px;margin:5px 0 0;line-height:1.35}.hn-de2-empty{font-size:12px;color:#64748b}
.hn-de2-lab-metrics>div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid #f1f5f9;font-size:11px}.hn-de2-lab-metrics span{color:#475569}.hn-de2-lab-metrics strong{text-align:right}
@media (max-width:900px){.hn-de2-lab-dialog{inset:1vh 1vw}.hn-de2-lab-main{grid-template-columns:1fr}.hn-de2-lab-main aside{border-left:0;border-top:1px solid #e2e8f0;max-height:38vh}}


/* v1.3.233 — Compact PDF-to-Word right rail. */











/* v1.3.240 — Semantic Document Graph architecture; PDF-to-Word rail remains compact. */


/* v1.3.241 — Rotate PDF workspace controls. */
.hn-pdf-rotate .hn-rotate-options {
  grid-template-columns: 1fr;
  gap: 16px;
}
.hn-pdf-rotate .hn-rotate-options .hn-field {
  margin: 0;
}
.hn-pdf-rotate .hn-rotate-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hn-pdf-rotate .hn-rotate-choice {
  min-width: 0;
  min-height: 72px;
  padding: 10px 8px;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15,23,42,.04);
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.hn-pdf-rotate .hn-rotate-choice:hover {
  border-color: #93c5fd;
  background: #f8fbff;
  transform: translateY(-1px);
}
.hn-pdf-rotate .hn-rotate-choice.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37,99,235,.10), 0 8px 18px rgba(37,99,235,.10);
}
.hn-pdf-rotate .hn-rotate-choice-icon {
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}
.hn-pdf-rotate .hn-rotate-create {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
}
.hn-pdf-rotate .hn-settings-secure-note {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 520px){
  .hn-pdf-rotate .hn-rotate-choice-grid {
    grid-template-columns: 1fr;
  }
  .hn-pdf-rotate .hn-rotate-choice {
    min-height: 48px;
    flex-direction: row;
  }
}

/* v1.9.1 — Watermark PDF professional three-column studio. */
.hn-pdf-watermark{--wm-border:#dbe3ef;--wm-soft:#f8fafc;--wm-navy:#0f172a;--wm-blue:#2563eb;--wm-red:#e11d2e;--wm-muted:#64748b;--wm-panel:#fff}
.hn-pdf-watermark:not(.has-files) .hn-watermark-studio,
.hn-pdf-watermark:not(.has-files) .hn-watermark-actions{display:none!important}
.hn-watermark-studio{min-width:0}
.hn-watermark-settings{display:grid;gap:10px;min-width:0;align-content:start}
.hn-watermark-section{margin:0;border:1px solid var(--wm-border);background:var(--wm-panel);border-radius:15px;padding:14px;box-shadow:0 5px 18px rgba(15,23,42,.035);min-width:0}
details.hn-watermark-section{padding:0;overflow:hidden}
.hn-watermark-section-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:11px}.hn-watermark-section-head>div{display:grid;gap:3px}.hn-watermark-section-head strong{font-size:13px;color:var(--wm-navy)}.hn-watermark-section-head span{font-size:11px;line-height:1.4;color:var(--wm-muted)}
.hn-watermark-section-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:11px 14px;list-style:none;cursor:pointer;user-select:none}.hn-watermark-section-summary::-webkit-details-marker{display:none}.hn-watermark-section-summary>span:first-child{display:grid;gap:2px;min-width:0}.hn-watermark-section-summary strong{font-size:13px;line-height:1.2;color:var(--wm-navy)}.hn-watermark-section-summary small{font-size:10.5px;line-height:1.35;color:var(--wm-muted);font-weight:550}.hn-watermark-chevron{display:grid;place-items:center;flex:0 0 auto;width:26px;height:26px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;font-size:16px;transition:transform .16s ease}.hn-watermark-accordion[open] .hn-watermark-chevron{transform:rotate(180deg)}.hn-watermark-accordion[open]>.hn-watermark-section-summary{border-bottom:1px solid #eef2f7}.hn-watermark-section-body{padding:13px 14px 14px}
.hn-watermark-preset-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.hn-watermark-preset{border:1px solid #dbe3ef;border-radius:9px;background:#fff;color:#334155;font-size:9.5px;font-weight:850;letter-spacing:.025em;min-height:36px;padding:7px 6px;cursor:pointer;transition:.16s ease}.hn-watermark-preset:hover,.hn-watermark-preset.is-active{border-color:#f1a5ae;background:#fff5f6;color:#b91c1c;box-shadow:0 0 0 2px rgba(225,29,46,.07)}
.hn-watermark-source-tabs{display:inline-flex;padding:3px;border-radius:10px;background:#f1f5f9;gap:3px;margin-bottom:11px}.hn-watermark-source-tab{border:0;background:transparent;color:#64748b;border-radius:7px;padding:7px 11px;font-size:11px;font-weight:800;cursor:pointer}.hn-watermark-source-tab.is-active{background:#fff;color:#0f172a;box-shadow:0 1px 4px rgba(15,23,42,.10)}
body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark .hn-watermark-text{width:100%!important;min-height:72px!important;height:auto!important;resize:vertical;margin-top:5px;padding:10px 11px!important;border-radius:10px!important;font-family:inherit;font-size:13px!important;line-height:1.45!important}
.hn-watermark-token-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.hn-watermark-token-row button{border:1px solid #cbd5e1;background:#f8fafc;color:#334155;border-radius:999px;padding:5px 8px;font:700 10px/1.15 ui-monospace,SFMono-Regular,Menlo,monospace;cursor:pointer}.hn-watermark-token-row button:hover{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.hn-watermark-grid{display:grid;gap:10px;margin-top:0}.hn-watermark-grid+.hn-watermark-grid{margin-top:10px}.hn-watermark-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.hn-watermark-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.hn-watermark-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.hn-pdf-watermark .hn-field{margin:0!important;min-width:0}.hn-pdf-watermark .hn-label{margin-bottom:6px!important;color:#334155;font-size:11px!important;line-height:1.2;font-weight:800!important}
body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark .hn-select,
body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark input.hn-input{min-height:40px!important;height:40px!important;padding:8px 32px 8px 10px!important;border-radius:10px!important;font-size:12px!important;line-height:1.2!important}
.hn-watermark-toggle-row{display:flex;flex-wrap:wrap;gap:7px;min-height:40px;align-items:center}.hn-watermark-check{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 9px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;color:#334155;font-size:11px;font-weight:750}.hn-watermark-check input{accent-color:#2563eb}
body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark input[type=checkbox]{width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;margin:0!important;padding:0!important}
.hn-watermark-color-field{display:flex;align-items:center;gap:8px;min-height:40px;border:1px solid #d7dfeb;border-radius:10px;background:#fff;padding:5px 8px;color:#475569;font-size:11px;font-weight:750}.hn-watermark-color-field span{white-space:nowrap}
body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark input[type=color]{appearance:none;-webkit-appearance:none;width:42px!important;min-width:42px!important;max-width:42px!important;height:28px!important;min-height:28px!important;padding:2px!important;margin:0!important;border:1px solid #d7dfeb!important;border-radius:7px!important;background:#fff!important;cursor:pointer}
.hn-watermark-style-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.hn-watermark-style-option{display:grid;grid-template-columns:16px minmax(0,1fr) 36px;gap:8px;align-items:center;min-height:54px;padding:8px 9px;border:1px solid #e2e8f0;border-radius:11px;background:#fafcff;cursor:pointer}.hn-watermark-style-option-copy{display:grid;gap:1px;min-width:0}.hn-watermark-style-option-copy strong{font-size:11px;color:#1e293b}.hn-watermark-style-option-copy small{font-size:9.5px;color:#64748b;line-height:1.25}.hn-watermark-style-option-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#f1f5f9;color:#64748b;font-size:16px}
.hn-watermark-image-picker{display:flex;align-items:center;gap:11px;border:1px dashed #94a3b8;background:#f8fafc;border-radius:12px;padding:12px;cursor:pointer;position:relative}.hn-watermark-image-picker:hover{border-color:#2563eb;background:#f7fbff}.hn-watermark-image-picker input{position:absolute;inset:0;opacity:0;cursor:pointer}.hn-watermark-image-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#eaf2ff;color:#2563eb;font-size:19px}.hn-watermark-image-picker span:nth-child(2){display:grid;gap:2px}.hn-watermark-image-picker strong{font-size:12px;color:#0f172a}.hn-watermark-image-picker small,.hn-watermark-image-state{font-size:10px;line-height:1.4;color:#64748b}.hn-watermark-image-state{margin-top:7px}
.hn-watermark-range-wrap{display:grid;grid-template-columns:minmax(70px,1fr) 44px;gap:7px;align-items:center;min-height:38px}.hn-watermark-range-wrap input[type=range]{width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:0!important;accent-color:#2563eb}.hn-watermark-range-wrap output{text-align:right;color:#334155;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
.hn-watermark-position-wrap{display:grid;grid-template-columns:max-content minmax(160px,1fr);gap:14px;margin-top:11px;align-items:center}.hn-watermark-position-grid{display:grid;grid-template-columns:repeat(3,28px);grid-template-rows:repeat(3,28px);gap:4px;padding:8px;width:max-content;border:1px solid #dbe3ef;border-radius:11px;background:#f8fafc}.hn-watermark-position{display:grid;place-items:center;border:1px solid transparent;border-radius:7px;background:#fff;cursor:pointer;padding:0}.hn-watermark-position span{width:7px;height:7px;border-radius:50%;background:#94a3b8}.hn-watermark-position:hover,.hn-watermark-position.is-active{border-color:#93c5fd;background:#eff6ff}.hn-watermark-position.is-active span{background:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14)}.hn-watermark-placement-note{display:grid;gap:3px;padding:10px 11px;border:1px solid #dbeafe;border-radius:11px;background:#f8fbff}.hn-watermark-placement-note strong{font-size:11px;color:#1e3a8a}.hn-watermark-placement-note span{font-size:10px;line-height:1.4;color:#64748b}
.hn-watermark-custom-position{min-width:0;margin-top:10px}.hn-watermark-mini-field{display:grid;grid-template-columns:18px minmax(0,1fr) 16px;gap:5px;align-items:center;font-size:11px;font-weight:800;color:#475569}.hn-watermark-mini-field .hn-input{min-width:0}
.hn-watermark-preview-panel{position:sticky;top:0;border:1px solid #cbd5e1;border-radius:16px;background:#0f172a;padding:12px;box-shadow:0 14px 32px rgba(15,23,42,.17);min-width:0;align-self:start}.hn-watermark-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#fff}.hn-watermark-preview-head>div{display:grid;gap:2px;min-width:0}.hn-watermark-preview-head strong{font-size:13px}.hn-watermark-preview-head span:not(.hn-watermark-preview-badge){font-size:9.5px;color:#94a3b8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hn-watermark-preview-badge{flex:0 0 auto;border:1px solid #334155;border-radius:999px;padding:4px 7px;color:#cbd5e1;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.hn-watermark-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:8px}.hn-watermark-preview-pages,.hn-watermark-preview-zoom{display:flex;align-items:center;gap:3px}.hn-watermark-preview-toolbar button,.hn-watermark-preview-page-status{display:inline-flex;align-items:center;justify-content:center;height:28px;min-height:28px;border:1px solid #334155;border-radius:7px;background:#172033;color:#dbeafe;font-size:10px;font-weight:800;line-height:1;padding:0 8px}.hn-watermark-preview-toolbar button{cursor:pointer}.hn-watermark-preview-toolbar button:hover:not(:disabled){background:#1e293b;border-color:#475569}.hn-watermark-preview-toolbar button:disabled{opacity:.38;cursor:default}.hn-watermark-preview-page-status{min-width:74px;color:#cbd5e1;background:#111827}.hn-watermark-preview-zoom-level{min-width:44px}.hn-watermark-preview-fit.is-active{border-color:#60a5fa;color:#bfdbfe;background:#1e3a5f}
.hn-watermark-preview-stage{position:relative;display:grid;place-items:center;min-height:410px;max-height:calc(100vh - 240px);overflow:auto;border-radius:11px;background:repeating-conic-gradient(#172033 0 25%,#111827 0 50%) 50%/18px 18px;padding:13px}.hn-watermark-canvas-wrap{position:relative;display:block;flex:0 0 auto;line-height:0}.hn-watermark-preview-canvas{display:block;width:100%;max-width:none;height:auto;background:#fff;box-shadow:0 10px 28px rgba(0,0,0,.35);cursor:grab;touch-action:none}.hn-watermark-preview-canvas.is-dragging{cursor:grabbing}.hn-watermark-preview-selection{position:absolute;z-index:3;box-sizing:border-box;border:1.5px solid #3b82f6;box-shadow:0 0 0 1px rgba(255,255,255,.65),0 0 0 3px rgba(59,130,246,.12);pointer-events:none;transform-origin:center}.hn-watermark-preview-selection i{position:absolute;width:7px;height:7px;border:1px solid #fff;border-radius:50%;background:#2563eb;box-shadow:0 1px 4px rgba(15,23,42,.28)}.hn-watermark-preview-selection i:nth-child(1){left:-4px;top:-4px}.hn-watermark-preview-selection i:nth-child(2){right:-4px;top:-4px}.hn-watermark-preview-selection i:nth-child(3){right:-4px;bottom:-4px}.hn-watermark-preview-selection i:nth-child(4){left:-4px;bottom:-4px}.hn-watermark-preview-drag-hint{position:sticky;left:50%;bottom:8px;z-index:5;transform:translateX(-50%);width:max-content;max-width:90%;padding:6px 10px;border:1px solid rgba(147,197,253,.38);border-radius:999px;background:rgba(15,23,42,.88);color:#dbeafe;font-size:9px;font-weight:800;letter-spacing:.02em;backdrop-filter:blur(8px);pointer-events:none}.hn-watermark-preview-empty{display:grid;place-items:center;text-align:center;gap:7px;max-width:250px;color:#94a3b8;padding:30px 10px}.hn-watermark-preview-empty>span{font-size:30px;color:#475569}.hn-watermark-preview-empty strong{color:#e2e8f0;font-size:12px}.hn-watermark-preview-empty small{font-size:10px;line-height:1.45}.hn-watermark-preview-note{margin-top:8px;color:#94a3b8;font-size:9.5px;line-height:1.4}
.hn-watermark-actions{display:flex;align-items:center;gap:11px;min-width:0;padding:9px 11px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.035)}.hn-watermark-create{min-width:172px;min-height:46px!important}.hn-watermark-actions .hn-compression-note{font-size:10px!important;line-height:1.35!important}.hn-pdf-watermark [hidden]{display:none!important}

/* v1.9.2 — Watermark workspace geometry.
   The file queue and editor studio are independent columns. This prevents the
   queue height from participating in the settings/preview row sizing. */
@media (min-width:1181px){
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not(.hn-processing-mode):not([data-hn-main-output="1"]){display:grid!important;grid-template-columns:minmax(176px,210px) minmax(0,1fr)!important;grid-template-rows:max-content!important;gap:12px!important;align-items:start!important;overflow-x:hidden!important;overflow-y:auto!important;padding:10px!important}
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-watermark-pdf-drop{display:none!important}
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:max-content!important;width:100%!important;min-width:0!important;max-width:210px!important;min-height:0!important;height:auto!important;margin:0!important;padding:4px 2px 26px!important;gap:12px!important;align-content:start!important;align-self:start!important;overflow:visible!important}
  :is(body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]), body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card,
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-file-queue > .hn-workspace-add-card,
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue > .hn-workspace-add-card,
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-file-queue > .hn-workspace-blank-card,
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue > .hn-workspace-blank-card{width:100%!important;max-width:none!important;min-width:0!important}
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{grid-column:2!important;grid-row:1!important;display:grid!important;grid-template-columns:minmax(420px,1fr) minmax(330px,390px)!important;grid-template-rows:max-content max-content!important;gap:12px!important;min-width:0!important;align-items:start!important;align-self:start!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) .hn-watermark-actions{grid-column:1 / 3!important;grid-row:1!important;margin:0!important;align-self:start!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{grid-column:1!important;grid-row:2!important;min-width:0!important;margin:0!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) .hn-watermark-preview-panel{grid-column:2!important;grid-row:2!important;min-width:0!important;margin:0!important}
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-result{grid-column:2!important;grid-row:2!important}
}

@media (max-width:1180px) and (min-width:781px){
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not(.hn-processing-mode):not([data-hn-main-output="1"]){display:grid!important;grid-template-columns:minmax(160px,190px) minmax(0,1fr)!important;grid-template-rows:max-content!important;gap:12px!important;align-items:start!important;padding:10px!important}
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-watermark-pdf-drop{display:none!important}
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:1fr!important;min-height:0!important;height:auto!important;margin:0!important;padding:4px 2px 20px!important;gap:10px!important;align-content:start!important;align-self:start!important}
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{grid-column:2!important;grid-row:1!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:max-content max-content max-content!important;gap:12px!important;min-width:0!important;align-self:start!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) .hn-watermark-actions{grid-column:1!important;grid-row:1!important;margin:0!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{grid-column:1!important;grid-row:2!important;margin:0!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) .hn-watermark-preview-panel{grid-column:1!important;grid-row:3!important;position:relative!important;top:auto!important;margin:0!important}
}

@media (max-width:780px){
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]){display:flex!important;flex-direction:column!important;gap:10px!important}
  /* v1.9.41 -- happynooks-tools-core's generic .hn-tool-panel already draws
     its own soft-gray bordered card behind everything (background, border,
     border-radius, padding -- see hn-tools-core's shared stylesheet), and on
     desktop's wide multi-column grid that outer frame reads fine. On mobile,
     stacked in one narrow column, it sits directly behind Watermark's own
     already-carded "Filigran Ekle" action box and "Hazır tasarımlar" /
     settings accordion -- both of which draw their own white background,
     border and shadow -- producing a visible card-inside-a-card-inside-a-card
     look. Watermark's own inner cards already provide all the framing this
     view needs, so the outer Core panel chrome is flattened away here,
     specifically for Watermark on phones only. */
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]){
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0!important;
  }
  /* v1.9.43 -- flattening only .hn-tool-panel above was one layer too
     shallow: .hn-tool-shell itself (its parent) draws an identical
     white-card frame (background, border, border-radius, box-shadow,
     16-28px padding -- see Core's shared stylesheet) around everything,
     including the title header above the tool. Removing only the inner
     panel's chrome left this outer one still fully visible, so the
     "box behind the boxes" look persisted exactly as reported. Scoped
     with :has() to shells actually showing loaded Watermark, so no other
     tool's shell chrome is touched. */
  body .hn-tool-shell.hn-convert-workspace:has(> .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"])){
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  /* v1.9.45 -- deliberately a SEPARATE rule, not comma-joined with the
     :has() one above: an invalid selector inside a comma-separated list
     throws out the ENTIRE list in every browser (only :is()/:where() get
     "forgiving list" behavior, and only inside their own parentheses), so
     if :has() isn't supported here, joining the two would have silently
     killed this fallback too instead of rescuing it. See
     syncWatermarkShellFlattenClass() in the JS for what sets this class. */
  body .hn-tool-shell.hn-convert-workspace.hn-watermark-flatten-shell{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark.has-files > .hn-watermark-pdf-drop{display:none!important}
  /* v1.9.41 -- the file rail (.hn-file-queue) was never given explicit mobile
     geometry here, so at <=780px it fell through to happynooks-tools-core's
     generic, non-watermark-aware .hn-file-queue rules (grid-column
     assignments, position:relative, min-height:calc(100vh - 150px), etc. --
     written for Core's own default multi-column workspace grid, not for
     Watermark's flex-column mobile layout). Depending on which of Core's many
     versioned rules happened to still match, the rail could keep a stale
     desktop width/height/overflow instead of becoming a normal, full-width
     block in the page's own flow, making it visually stack on top of the
     settings accordion below it instead of pushing it down. This rule set
     forces the rail back into plain, predictable document flow on mobile,
     regardless of what Core's shared stylesheet is currently doing to it. */
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    order:0!important;
    position:static!important;
    display:grid!important;
    grid-template-columns:repeat(auto-fill,minmax(140px,1fr))!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    gap:10px!important;
    overflow:visible!important;
    transform:none!important;
    z-index:auto!important;
  }
  :is(body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]), body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card,
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark.has-files:not([data-hn-main-output="1"]) > .hn-file-queue > .hn-workspace-add-card,
  body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue > .hn-workspace-add-card{
    width:100%!important;max-width:none!important;min-width:0!important;position:relative!important;
  }
  .hn-pdf-watermark.has-files>.hn-watermark-studio{display:flex!important;flex-direction:column!important;gap:10px!important;order:1!important}
  .hn-watermark-preview-panel{position:relative;top:auto;order:3}
  .hn-watermark-actions{order:1;align-items:stretch;flex-direction:column}
  .hn-watermark-settings{order:2}
  .hn-watermark-create{width:100%}
  .hn-watermark-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hn-watermark-grid-2,.hn-watermark-grid-3,.hn-watermark-grid-4,.hn-watermark-position-wrap,.hn-watermark-style-options{grid-template-columns:1fr}
  .hn-watermark-preview-stage{min-height:300px;max-height:none}
  .hn-watermark-preview-toolbar{align-items:stretch;flex-direction:column}
  .hn-watermark-preview-pages,.hn-watermark-preview-zoom{justify-content:center}
  /* v1.9.41 -- .hn-watermark-preview-head (file name + the "Büyük önizleme"
     expand button) never got its own <=780px rule either, same gap as the
     file rail and outer panel above: its only wrap/stacking fix lives in
     the >=1181px block. At <=780px the head stayed a plain
     justify-content:space-between row with no wrapping, so a longer file
     name could squeeze the expand button down to a sliver -- explaining
     both the "scattered" toolbar look and taps that miss the button
     entirely. Mirrors the desktop wrap behavior at this width instead. */
  .hn-watermark-preview-head{flex-wrap:wrap!important;row-gap:6px!important}
  .hn-watermark-preview-head>div:first-child{min-width:0!important;flex:1 1 auto!important}
  .hn-watermark-preview-head-actions{flex:0 0 auto!important}
  .hn-watermark-preview-expand{flex:0 0 auto!important}
}

/* ============================================================
   v1.9.3 — Watermark workspace horizontal geometry hardening
   Core's standard workspace owns a generic [main | action] two-slot grid.
   Watermark is a specialist studio with [files | settings + preview], so its
   loaded-state panel explicitly owns this geometry with higher specificity.
   This removes the unused generic main-slot width between the file rail and
   the Watermark studio regardless of stylesheet enqueue order.
============================================================ */
@media (min-width:1181px){
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not(.hn-processing-mode):not([data-hn-main-output="1"]){
    display:grid!important;
    grid-template-columns:210px minmax(0,1fr)!important;
    grid-template-rows:max-content!important;
    column-gap:12px!important;
    row-gap:0!important;
    align-items:start!important;
    justify-items:stretch!important;
    padding:10px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    grid-column:1!important;
    grid-row:1!important;
    width:210px!important;
    min-width:210px!important;
    max-width:210px!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:4px 2px 26px!important;
    align-self:start!important;
    justify-self:start!important;
    align-content:start!important;
    overflow:visible!important;
  }
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    justify-self:stretch!important;
    align-self:start!important;
    display:grid!important;
    grid-template-columns:minmax(420px,1fr) minmax(330px,390px)!important;
    grid-template-rows:max-content max-content!important;
    gap:12px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-actions{
    min-height:58px!important;
    padding:7px 10px!important;
    gap:10px!important;
    border-radius:13px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-create{
    min-width:164px!important;
    min-height:42px!important;
    height:42px!important;
    padding:9px 16px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-actions .hn-compression-note{
    margin:0!important;
    max-width:520px!important;
    font-size:9.5px!important;
    line-height:1.3!important;
  }
}

@media (max-width:1180px) and (min-width:781px){
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not(.hn-processing-mode):not([data-hn-main-output="1"]){
    display:grid!important;
    grid-template-columns:190px minmax(0,1fr)!important;
    grid-template-rows:max-content!important;
    gap:12px!important;
    align-items:start!important;
    padding:10px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    grid-column:1!important;
    grid-row:1!important;
    width:190px!important;
    min-width:190px!important;
    max-width:190px!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:4px 2px 20px!important;
    align-self:start!important;
    justify-self:start!important;
  }
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    justify-self:stretch!important;
  }
}


/* v1.9.4 — Watermark geometry fallback without parent-shape assumptions.
   The live workspace can be re-composed by Core, therefore Watermark's own panel
   selector must remain valid regardless of the shell's direct-child structure. */
@media (min-width:1181px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not(.hn-processing-mode):not([data-hn-main-output="1"]){
    display:grid!important;
    grid-template-columns:210px minmax(0,1fr)!important;
    grid-template-rows:max-content!important;
    column-gap:12px!important;
    row-gap:0!important;
    align-items:start!important;
    padding:10px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    grid-column:1!important;grid-row:1!important;width:210px!important;min-width:210px!important;max-width:210px!important;margin:0!important;justify-self:start!important;align-self:start!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;justify-self:stretch!important;align-self:start!important;
  }
}
@media (max-width:1180px) and (min-width:781px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not(.hn-processing-mode):not([data-hn-main-output="1"]){grid-template-columns:190px minmax(0,1fr)!important;column-gap:12px!important}
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{width:190px!important;min-width:190px!important;max-width:190px!important}
}


/* v1.9.5 — Watermark editor balance + expanded live preview. */
@media (min-width:1181px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-columns:minmax(440px,1fr) minmax(430px,.92fr)!important;
    gap:12px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{min-width:0!important;max-width:none!important}
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-preview-panel{min-width:430px!important;width:100%!important;max-width:none!important}
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-preview-stage{min-height:500px!important;max-height:calc(100vh - 205px)!important}
}
.hn-watermark-preview-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 auto}
.hn-watermark-preview-expand{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:27px;padding:0 8px;border:1px solid #475569;border-radius:8px;background:#172033;color:#dbeafe;font-size:8.5px;font-weight:850;line-height:1;cursor:pointer;white-space:nowrap}
.hn-watermark-preview-expand:hover{border-color:#60a5fa;background:#1e3a5f;color:#eff6ff}
.hn-watermark-preview-expand span{font-size:13px;line-height:1}
body.hn-watermark-modal-open{overflow:hidden!important}
.hn-watermark-preview-modal[hidden]{display:none!important}
.hn-watermark-preview-modal:not([hidden]){position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:18px}
.hn-watermark-preview-modal-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.76);backdrop-filter:blur(7px)}
.hn-watermark-preview-modal-dialog{position:relative;z-index:1;width:min(96vw,1560px);height:min(94vh,980px);min-height:560px;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;border:1px solid #334155;border-radius:20px;background:#0f172a;box-shadow:0 32px 90px rgba(2,6,23,.58)}
.hn-watermark-preview-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 16px;border-bottom:1px solid #263246;background:#101827;color:#fff}
.hn-watermark-preview-modal-title{display:grid;gap:3px;min-width:0}.hn-watermark-preview-modal-title strong{font-size:15px}.hn-watermark-preview-modal-title span{max-width:72vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#94a3b8;font-size:10px}
.hn-watermark-preview-modal-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid #334155;border-radius:9px;background:#172033;color:#e2e8f0;font-size:24px;font-weight:400;line-height:1;cursor:pointer}.hn-watermark-preview-modal-close:hover{border-color:#64748b;background:#1e293b;color:#fff}
.hn-watermark-preview-modal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;border-bottom:1px solid #263246;background:#111a2a}
.hn-watermark-preview-modal-toolbar .hn-watermark-preview-pages,.hn-watermark-preview-modal-toolbar .hn-watermark-preview-zoom{gap:5px}
.hn-watermark-preview-modal-toolbar button,.hn-watermark-expanded-page-status{display:inline-flex;align-items:center;justify-content:center;height:32px;min-height:32px;border:1px solid #334155;border-radius:8px;background:#172033;color:#dbeafe;font-size:10px;font-weight:850;line-height:1;padding:0 10px}
.hn-watermark-preview-modal-toolbar button{cursor:pointer}.hn-watermark-preview-modal-toolbar button:hover:not(:disabled){border-color:#64748b;background:#1e293b}.hn-watermark-preview-modal-toolbar button:disabled{opacity:.35;cursor:default}.hn-watermark-expanded-page-status{min-width:90px;background:#0f172a;color:#cbd5e1}.hn-watermark-expanded-zoom-level{min-width:52px}.hn-watermark-expanded-fit.is-active{border-color:#60a5fa!important;background:#1e3a5f!important;color:#bfdbfe!important}
.hn-watermark-expanded-stage{position:relative;min-width:0;min-height:0;display:grid;place-items:center;overflow:auto;padding:22px;background:repeating-conic-gradient(#182235 0 25%,#111827 0 50%) 50%/22px 22px;overscroll-behavior:contain}
.hn-watermark-expanded-canvas-wrap{position:relative;display:block;flex:0 0 auto;line-height:0}
.hn-watermark-expanded-canvas{display:block;width:100%;max-width:none;height:auto;background:#fff;box-shadow:0 20px 54px rgba(0,0,0,.48);cursor:grab;touch-action:none}.hn-watermark-expanded-canvas.is-dragging{cursor:grabbing}
.hn-watermark-expanded-selection{position:absolute;z-index:3;box-sizing:border-box;border:1.5px solid #3b82f6;box-shadow:0 0 0 1px rgba(255,255,255,.72),0 0 0 4px rgba(59,130,246,.13);pointer-events:none;transform-origin:center}.hn-watermark-expanded-selection i{position:absolute;width:8px;height:8px;border:1px solid #fff;border-radius:50%;background:#2563eb;box-shadow:0 1px 5px rgba(15,23,42,.32)}.hn-watermark-expanded-selection i:nth-child(1){left:-5px;top:-5px}.hn-watermark-expanded-selection i:nth-child(2){right:-5px;top:-5px}.hn-watermark-expanded-selection i:nth-child(3){right:-5px;bottom:-5px}.hn-watermark-expanded-selection i:nth-child(4){left:-5px;bottom:-5px}
.hn-watermark-expanded-drag-hint{position:sticky;left:50%;bottom:12px;z-index:5;transform:translateX(-50%);width:max-content;max-width:90%;padding:7px 11px;border:1px solid rgba(147,197,253,.42);border-radius:999px;background:rgba(15,23,42,.9);color:#dbeafe;font-size:9.5px;font-weight:850;letter-spacing:.02em;backdrop-filter:blur(8px);pointer-events:none}
.hn-watermark-expanded-empty{display:grid;place-items:center;text-align:center;gap:8px;max-width:300px;color:#94a3b8;padding:40px 16px}.hn-watermark-expanded-empty>span{font-size:38px;color:#475569}.hn-watermark-expanded-empty strong{color:#e2e8f0;font-size:13px}.hn-watermark-expanded-empty small{font-size:10px;line-height:1.45}
@media (max-width:780px){
  .hn-watermark-preview-head{align-items:flex-start}.hn-watermark-preview-head-actions{flex-direction:column;align-items:flex-end}.hn-watermark-preview-badge{display:none}.hn-watermark-preview-expand{min-height:30px;font-size:9px}
  .hn-watermark-preview-modal:not([hidden]){padding:0}.hn-watermark-preview-modal-dialog{width:100vw;height:100vh;min-height:0;border:0;border-radius:0}.hn-watermark-preview-modal-toolbar{align-items:stretch;flex-direction:column}.hn-watermark-preview-modal-toolbar .hn-watermark-preview-pages,.hn-watermark-preview-modal-toolbar .hn-watermark-preview-zoom{justify-content:center}.hn-watermark-expanded-stage{padding:12px}.hn-watermark-preview-modal-title span{max-width:72vw}
}


/* v1.9.6 — Wider live preview + deterministic expanded-preview visibility. */
@media (min-width:1500px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-columns:minmax(520px,.82fr) minmax(560px,1.18fr)!important;
    gap:12px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-preview-panel{
    min-width:560px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-preview-stage{
    min-height:560px!important;
  }
}
/* Author CSS display declarations otherwise override the HTML hidden attribute. */
.hn-watermark-expanded-empty[hidden],
.hn-watermark-expanded-canvas-wrap[hidden],
.hn-watermark-expanded-selection[hidden],
.hn-watermark-expanded-drag-hint[hidden]{display:none!important}
/* The diagnostics floater owns the maximum browser z-index; suppress it only while the
   dedicated large preview is open so the modal remains visually modal. */
body.hn-watermark-modal-open .pct-diag-panel{display:none!important}


/* ============================================================
   v1.9.7 — Compact settings / preview-first desktop layout
   The settings editor has a deliberate max width; all remaining horizontal
   workspace belongs to Live Preview. Do not impose a minimum width on the
   preview child itself because doing so can overflow the browser viewport.
============================================================ */
@media (min-width:1500px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-columns:minmax(520px,680px) minmax(0,1fr)!important;
    gap:12px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{
    width:100%!important;min-width:0!important;max-width:680px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-preview-panel{
    width:100%!important;min-width:0!important;max-width:none!important;
  }
}
@media (min-width:1181px) and (max-width:1499px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-columns:minmax(480px,620px) minmax(0,1fr)!important;
    gap:12px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{
    width:100%!important;min-width:0!important;max-width:620px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-preview-panel{
    width:100%!important;min-width:0!important;max-width:none!important;
  }
}
@media (min-width:1181px){
  .hn-watermark-preview-head{min-width:0!important;flex-wrap:wrap!important}
  .hn-watermark-preview-head-actions{min-width:0!important;flex-wrap:wrap!important}
  .hn-watermark-preview-toolbar{min-width:0!important;flex-wrap:wrap!important}
  .hn-watermark-preview-pages,.hn-watermark-preview-zoom{min-width:0!important;flex-wrap:wrap!important}
}


/* ============================================================
   v1.9.8 — Compact narrow-desktop settings rail
   Preview-first responsive geometry for 1181px+ browser widths. The settings
   rail is deliberately narrow and its form controls collapse more efficiently;
   Live Preview receives all remaining width. Color-reset actions remain usable
   as compact icon buttons instead of wrapping long labels.
============================================================ */
@media (min-width:1600px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-columns:minmax(500px,560px) minmax(0,1fr)!important;
    gap:12px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{max-width:560px!important}
}
@media (min-width:1400px) and (max-width:1599px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-columns:minmax(460px,500px) minmax(0,1fr)!important;
    gap:12px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{max-width:500px!important}
}
@media (min-width:1181px) and (max-width:1399px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-columns:minmax(410px,440px) minmax(0,1fr)!important;
    gap:10px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{
    width:100%!important;min-width:0!important;max-width:440px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-preview-panel{
    width:100%!important;min-width:0!important;max-width:none!important;
  }
}

@media (min-width:1181px) and (max-width:1399px){
  .hn-pdf-watermark .hn-watermark-settings{gap:7px!important}
  .hn-pdf-watermark .hn-watermark-section{border-radius:12px!important}
  .hn-pdf-watermark .hn-watermark-section-head{margin-bottom:7px!important}
  .hn-pdf-watermark .hn-watermark-section-summary{min-height:46px!important;padding:8px 10px!important;gap:8px!important}
  .hn-pdf-watermark .hn-watermark-section-summary strong{font-size:12px!important}
  .hn-pdf-watermark .hn-watermark-section-summary small{font-size:9.5px!important;line-height:1.25!important}
  .hn-pdf-watermark .hn-watermark-chevron{width:24px!important;height:24px!important;border-radius:7px!important;font-size:14px!important}
  .hn-pdf-watermark .hn-watermark-section-body{padding:9px 10px 10px!important}
  .hn-pdf-watermark .hn-watermark-preset-grid{gap:5px!important}
  .hn-pdf-watermark .hn-watermark-preset{min-height:32px!important;padding:5px 4px!important;font-size:8.5px!important;border-radius:8px!important}
  .hn-pdf-watermark .hn-watermark-source-tabs{margin-bottom:8px!important;padding:2px!important}
  .hn-pdf-watermark .hn-watermark-source-tab{padding:6px 9px!important;font-size:10px!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark .hn-watermark-text{min-height:56px!important;padding:8px 9px!important;font-size:12px!important;line-height:1.35!important}
  .hn-pdf-watermark .hn-watermark-grid{gap:7px!important}
  .hn-pdf-watermark .hn-watermark-grid+.hn-watermark-grid{margin-top:7px!important}
  .hn-pdf-watermark .hn-label{margin-bottom:4px!important;font-size:10px!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark .hn-select,
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark input.hn-input{min-height:34px!important;height:34px!important;padding:6px 28px 6px 8px!important;border-radius:8px!important;font-size:11px!important}
  .hn-pdf-watermark .hn-watermark-toggle-row{min-height:34px!important;gap:5px!important}
  .hn-pdf-watermark .hn-watermark-check{min-height:30px!important;padding:0 7px!important;gap:5px!important;border-radius:8px!important;font-size:10px!important}
  .hn-pdf-watermark .hn-watermark-color-field{min-height:34px!important;padding:3px 5px!important;gap:5px!important;border-radius:8px!important;font-size:10px!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark input[type=color]{width:34px!important;min-width:34px!important;max-width:34px!important;height:24px!important;min-height:24px!important;border-radius:6px!important}
  .hn-pdf-watermark .hn-watermark-style-options{gap:5px!important;margin-top:7px!important}
  .hn-pdf-watermark .hn-watermark-style-option{grid-template-columns:14px minmax(0,1fr) 28px!important;gap:5px!important;min-height:46px!important;padding:6px!important;border-radius:9px!important}
  .hn-pdf-watermark .hn-watermark-style-option-copy strong{font-size:10px!important}
  .hn-pdf-watermark .hn-watermark-style-option-copy small{font-size:8.5px!important;line-height:1.15!important}
  .hn-pdf-watermark .hn-watermark-style-option-icon{width:26px!important;height:26px!important;border-radius:7px!important;font-size:14px!important}
  .hn-pdf-watermark .hn-watermark-range-wrap{grid-template-columns:minmax(55px,1fr) 37px!important;gap:4px!important;min-height:32px!important}
  .hn-pdf-watermark .hn-watermark-range-wrap output{font-size:10px!important}
  .hn-pdf-watermark .hn-watermark-position-wrap{gap:8px!important;margin-top:8px!important;grid-template-columns:max-content minmax(120px,1fr)!important}
  .hn-pdf-watermark .hn-watermark-position-grid{grid-template-columns:repeat(3,24px)!important;grid-template-rows:repeat(3,24px)!important;gap:3px!important;padding:6px!important;border-radius:9px!important}
  .hn-pdf-watermark .hn-watermark-placement-note{padding:7px 8px!important;border-radius:9px!important}
  .hn-pdf-watermark .hn-watermark-placement-note strong{font-size:10px!important}
  .hn-pdf-watermark .hn-watermark-placement-note span{font-size:9px!important;line-height:1.3!important}
  .hn-pdf-watermark .hn-watermark-custom-position{margin-top:7px!important}
  .hn-pdf-watermark .hn-watermark-mini-field{font-size:10px!important}
  .hn-pdf-watermark .hn-watermark-actions{min-height:52px!important;padding:6px 8px!important;gap:8px!important;border-radius:12px!important}
  .hn-pdf-watermark .hn-watermark-create{min-width:150px!important;min-height:38px!important;height:38px!important;padding:7px 13px!important}
  .hn-pdf-watermark .hn-watermark-actions .hn-compression-note{font-size:8.8px!important;line-height:1.25!important}
  .hn-pdf-watermark .hn-watermark-preview-stage{min-height:430px!important;max-height:calc(100vh - 190px)!important}
}

/* Core may inject reset buttons next to color inputs. Keep the action, but make
   it an icon so narrow rails never create multi-line "Reset color" labels. */
.hn-pdf-watermark .hn-watermark-color-field button,
.hn-pdf-watermark .hn-watermark-style-option button{
  flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important;text-indent:-9999px!important;border-radius:7px!important;
}
.hn-pdf-watermark .hn-watermark-color-field button::after,
.hn-pdf-watermark .hn-watermark-style-option button::after{
  content:"↺";display:grid;place-items:center;width:100%;height:100%;text-indent:0;font-size:12px;font-weight:900;line-height:1;color:#64748b;
}
/* ============================================================
   v1.9.9 — Preview-centered studio + compact right inspector
   Files remain left. Live Preview is the flexible center canvas. Settings are
   a capped right-side inspector. Reset actions are text links, not square
   controls, so they cannot be confused with checkboxes.
============================================================ */
@media (min-width:1181px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-rows:max-content max-content!important;
    gap:10px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-actions{
    grid-column:1 / 3!important;grid-row:1!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-preview-panel{
    grid-column:1!important;grid-row:2!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{
    grid-column:2!important;grid-row:2!important;width:100%!important;min-width:0!important;margin:0!important;
  }
}
@media (min-width:1600px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-columns:minmax(0,1fr) 420px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{max-width:420px!important}
}
@media (min-width:1400px) and (max-width:1599px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-columns:minmax(0,1fr) 390px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{max-width:390px!important}
}
@media (min-width:1181px) and (max-width:1399px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-columns:minmax(0,1fr) 350px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{max-width:350px!important}
}

/* Right-inspector compaction. */
@media (min-width:1181px){
  .hn-pdf-watermark .hn-watermark-settings{gap:7px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section{border-radius:12px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-head{margin-bottom:6px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-summary{min-height:44px!important;padding:7px 9px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-summary strong{font-size:11.5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-summary small{font-size:9px!important;line-height:1.2!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-body{padding:8px 9px 9px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-preset{min-height:30px!important;font-size:8.2px!important;padding:4px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-text{min-height:52px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-grid-3>.hn-field:first-child{grid-column:1 / -1!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option:nth-child(3){grid-column:1 / -1!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option{position:relative!important;min-height:58px!important;padding:7px 7px 22px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-position-wrap{grid-template-columns:max-content minmax(0,1fr)!important;gap:8px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-token-row{gap:4px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-token-row button{padding:4px 6px!important;font-size:9px!important}
  .hn-pdf-watermark .hn-watermark-preview-stage{min-height:500px!important}
}

/* v1.9.44 -- a second, even older generation of the same reset-button
   redesign the color-field fix in v1.9.42 already addressed. This one
   predates the .hn-color-reset-btn class entirely and matches ANY plain
   <button> in these containers via a bare element selector, so it still
   matches today's .hn-color-reset-btn buttons too (they're still
   buttons). Its own ::after{content:"↺ Reset"} was missed in v1.9.42
   because it lives under an entirely different, older comment/selector
   than the one that was found and fixed there -- confirmed still present
   in the shipped v1.9.43 file. A higher-specificity rule elsewhere should
   in theory already out-rank this one for the *current* buttons, but two
   competing sources of truth for the same pseudo-element is exactly the
   kind of thing that keeps producing this bug across every past redesign
   of this control; killed at the source instead of trusting specificity
   math to keep protecting against it. */
.hn-pdf-watermark .hn-watermark-color-field button,
.hn-pdf-watermark .hn-watermark-style-option button{
  width:auto!important;min-width:0!important;max-width:none!important;height:22px!important;min-height:22px!important;
  padding:0 5px!important;border:0!important;border-radius:5px!important;background:transparent!important;box-shadow:none!important;
  overflow:visible!important;white-space:nowrap!important;cursor:pointer!important;color:#64748b!important;
}
.hn-pdf-watermark .hn-watermark-color-field button::after,
.hn-pdf-watermark .hn-watermark-style-option button::after{
  content:none!important;display:none!important;
}
.hn-pdf-watermark .hn-watermark-color-field button:hover,
.hn-pdf-watermark .hn-watermark-style-option button:hover{background:#f1f5f9!important;color:#334155!important}
.hn-pdf-watermark .hn-watermark-style-option button{position:absolute!important;right:5px!important;bottom:3px!important}
.hn-pdf-watermark .hn-watermark-color-field button{flex:0 0 auto!important;margin-left:auto!important}


/* ============================================================
   v1.9.10 — Compact file rail
   Watermark keeps the source-file queue deliberately narrow so the center
   preview remains the primary workspace. Runtime geometry mirrors these sizes.
============================================================ */
@media (min-width:1600px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not(.hn-processing-mode):not([data-hn-main-output="1"]){
    grid-template-columns:165px minmax(0,1fr)!important;
    column-gap:10px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    width:165px!important;min-width:165px!important;max-width:165px!important;padding:3px 0 20px!important;gap:9px!important;
  }
}
@media (min-width:1181px) and (max-width:1599px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not(.hn-processing-mode):not([data-hn-main-output="1"]){
    grid-template-columns:150px minmax(0,1fr)!important;
    column-gap:10px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    width:150px!important;min-width:150px!important;max-width:150px!important;padding:3px 0 18px!important;gap:8px!important;
  }
}
@media (min-width:781px) and (max-width:1180px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not(.hn-processing-mode):not([data-hn-main-output="1"]){
    grid-template-columns:145px minmax(0,1fr)!important;
    column-gap:10px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    width:145px!important;min-width:145px!important;max-width:145px!important;padding:3px 0 16px!important;gap:8px!important;
  }
}
@media (min-width:781px){
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]), html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card,
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue > .hn-workspace-add-card,
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue > .hn-workspace-add-card,
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue > .hn-workspace-blank-card,
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue > .hn-workspace-blank-card{
    width:100%!important;min-width:0!important;max-width:none!important;
  }
}


/* ============================================================
   v1.9.11 — Hard preview-center placement fallback
   Keep the visual order Files | Preview | Settings even if shared workspace
   state classes are refreshed after the specialist module mounts.
============================================================ */
@media (min-width:1181px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-watermark-studio{
    grid-template-areas:"actions actions" "preview settings"!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-actions{
    grid-area:actions!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-panel{
    grid-area:preview!important;width:100%!important;min-width:0!important;max-width:none!important;justify-self:stretch!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-settings{
    grid-area:settings!important;width:100%!important;min-width:0!important;justify-self:stretch!important;
  }
}
@media (min-width:1600px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-watermark-studio{
    grid-template-columns:minmax(0,1fr) 420px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-settings{max-width:420px!important}
}
@media (min-width:1400px) and (max-width:1599px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-watermark-studio{
    grid-template-columns:minmax(0,1fr) 390px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-settings{max-width:390px!important}
}
@media (min-width:1181px) and (max-width:1399px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-watermark-studio{
    grid-template-columns:minmax(0,1fr) 350px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-settings{max-width:350px!important}
}


/* ============================================================
   v1.9.13 — Compact source rail + inspector-owned primary action
   Watermark keeps the document as the visual center. The source rail is a
   compact navigator and the primary action belongs to the right inspector,
   not to a full-width banner above the canvas.
============================================================ */
@media (min-width:1181px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-watermark-studio{
    grid-template-areas:"preview actions" "preview settings"!important;
    grid-template-rows:max-content max-content!important;
    align-items:start!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-panel{
    grid-area:preview!important;
    grid-row:1 / 3!important;
    align-self:start!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-actions{
    grid-area:actions!important;
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:0!important;
    margin:0!important;
    padding:8px!important;
    gap:5px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    border-radius:12px!important;
    box-shadow:0 4px 14px rgba(15,23,42,.035)!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-create{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:40px!important;
    height:40px!important;
    padding:8px 12px!important;
    border-radius:10px!important;
    font-size:12px!important;
    box-shadow:0 7px 18px rgba(37,99,235,.16)!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-actions .hn-compression-note{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0 2px!important;
    color:#64748b!important;
    font-size:8.5px!important;
    line-height:1.25!important;
    text-align:center!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-settings{
    grid-area:settings!important;
    grid-column:2!important;
    grid-row:2!important;
  }

  /* Watermark-only source card: smaller controls, calmer chrome. */
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media{
    border-radius:14px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-index,
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-file-order-badge.hn-upload-thumb-index{
    top:6px!important;left:6px!important;min-width:25px!important;height:25px!important;padding:0 7px!important;font-size:10px!important;
    box-shadow:0 4px 10px rgba(15,23,42,.16)!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-top-actions{
    top:6px!important;right:6px!important;gap:3px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-top-btn{
    width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;
    border-radius:8px!important;border-color:rgba(203,213,225,.78)!important;box-shadow:0 3px 9px rgba(15,23,42,.08)!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-top-btn svg{
    width:14px!important;height:14px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-dock{
    left:6px!important;right:6px!important;bottom:4px!important;height:28px!important;gap:2px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-tool{
    flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:28px!important;min-height:28px!important;max-height:28px!important;
    border-radius:7px!important;opacity:.86!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-tool:hover:not(:disabled){opacity:1!important}
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-tool svg{
    width:14px!important;height:14px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-position{
    flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:28px!important;border-radius:7px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-position select{
    padding:0 10px 0 5px!important;font-size:9px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-info{
    padding:6px 2px 0!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-name{
    display:-webkit-box!important;
    margin:0!important;
    max-height:25px!important;
    overflow:hidden!important;
    white-space:normal!important;
    text-overflow:clip!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    color:#0f172a!important;
    font-size:10.5px!important;
    line-height:1.17!important;
    font-weight:800!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-meta{
    margin-top:2px!important;font-size:9px!important;line-height:1.15!important;
  }

  /* The secondary Add-more tile is navigation, not a second document card. */
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-file-queue > .hn-workspace-add-card,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-workspace-add-card{
    min-height:132px!important;height:132px!important;padding:9px!important;border-radius:14px!important;box-shadow:none!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-file-queue > .hn-workspace-add-card > div,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-workspace-add-card > div{
    gap:4px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-file-queue > .hn-workspace-add-card .hn-workspace-add-icon,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-workspace-add-card .hn-workspace-add-icon{
    width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;border-radius:13px!important;font-size:19px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-file-queue > .hn-workspace-add-card strong,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-workspace-add-card strong{
    font-size:10.5px!important;line-height:1.15!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-file-queue > .hn-workspace-add-card > div > span:not(.hn-workspace-add-icon),
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-workspace-add-card > div > span:not(.hn-workspace-add-icon){
    font-size:8.8px!important;line-height:1.2!important;
  }
}

/* ============================================================
   v1.9.13 — Multi-file live preview + direct resize + inspector polish
============================================================ */
.hn-pdf-watermark .hn-watermark-inspector{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:max-content max-content;
  gap:8px;
  min-width:0;
  align-content:start;
}
.hn-pdf-watermark .hn-watermark-inspector>.hn-watermark-actions,
.hn-pdf-watermark .hn-watermark-inspector>.hn-watermark-settings{margin:0!important;min-width:0;max-width:none!important;width:100%}

/* Section headers are inspector controls, not content cards. */
.hn-pdf-watermark .hn-watermark-accordion{
  overflow:hidden;
  border-color:#d9e2ee!important;
  background:#fff!important;
}
.hn-pdf-watermark .hn-watermark-section-summary{
  background:linear-gradient(180deg,#f8fafc 0%,#f3f6fa 100%)!important;
  box-shadow:inset 3px 0 0 #dbe7f6;
}
.hn-pdf-watermark .hn-watermark-accordion[open]>.hn-watermark-section-summary{
  background:linear-gradient(180deg,#f2f7ff 0%,#eef4fb 100%)!important;
  box-shadow:inset 3px 0 0 #60a5fa;
  border-bottom:1px solid #dbe5f0!important;
}
.hn-pdf-watermark .hn-watermark-section-summary strong{letter-spacing:.005em}
.hn-pdf-watermark .hn-watermark-section-body{background:#fff}
.hn-pdf-watermark .hn-watermark-presets{border-color:#d9e2ee!important}
.hn-pdf-watermark .hn-watermark-presets .hn-watermark-section-head{
  background:linear-gradient(180deg,#fbfcfe 0%,#f7f9fc 100%);
  border-bottom:1px solid #edf1f6;
}

/* File navigation lives beside page navigation in both preview surfaces. */
.hn-watermark-preview-files{display:flex;align-items:center;gap:3px;min-width:0}
.hn-watermark-preview-toolbar .hn-watermark-preview-file-status,
.hn-watermark-preview-modal-toolbar .hn-watermark-expanded-file-status{
  display:inline-flex;align-items:center;justify-content:center;height:28px;min-height:28px;min-width:72px;
  padding:0 8px;border:1px solid #334155;border-radius:7px;background:#111827;color:#cbd5e1;
  font-size:10px;font-weight:800;line-height:1;white-space:nowrap
}
.hn-watermark-preview-modal-toolbar .hn-watermark-preview-files button,
.hn-watermark-preview-modal-toolbar .hn-watermark-preview-pages button,
.hn-watermark-preview-modal-toolbar .hn-watermark-preview-zoom button{
  min-width:30px
}

/* Eight real resize handles: sides stretch one axis, corners preserve ratio. */
.hn-watermark-preview-selection,
.hn-watermark-expanded-selection{pointer-events:none!important}
.hn-watermark-preview-selection i,
.hn-watermark-expanded-selection i{
  box-sizing:border-box!important;
  position:absolute!important;
  z-index:5!important;
  margin:0!important;
  background:#2563eb!important;
  border:1.5px solid #fff!important;
  box-shadow:0 1px 5px rgba(15,23,42,.32)!important;
  pointer-events:auto!important;
  touch-action:none!important;
}
.hn-watermark-preview-selection [data-resize-handle="nw"],
.hn-watermark-expanded-selection [data-resize-handle="nw"]{left:-5px!important;top:-5px!important;width:10px!important;height:10px!important;border-radius:50%!important;cursor:nwse-resize!important}
.hn-watermark-preview-selection [data-resize-handle="n"],
.hn-watermark-expanded-selection [data-resize-handle="n"]{left:50%!important;top:-5px!important;width:18px!important;height:8px!important;border-radius:5px!important;transform:translateX(-50%)!important;cursor:ns-resize!important}
.hn-watermark-preview-selection [data-resize-handle="ne"],
.hn-watermark-expanded-selection [data-resize-handle="ne"]{right:-5px!important;top:-5px!important;width:10px!important;height:10px!important;border-radius:50%!important;cursor:nesw-resize!important}
.hn-watermark-preview-selection [data-resize-handle="e"],
.hn-watermark-expanded-selection [data-resize-handle="e"]{right:-5px!important;top:50%!important;width:8px!important;height:18px!important;border-radius:5px!important;transform:translateY(-50%)!important;cursor:ew-resize!important}
.hn-watermark-preview-selection [data-resize-handle="se"],
.hn-watermark-expanded-selection [data-resize-handle="se"]{right:-5px!important;bottom:-5px!important;width:10px!important;height:10px!important;border-radius:50%!important;cursor:nwse-resize!important}
.hn-watermark-preview-selection [data-resize-handle="s"],
.hn-watermark-expanded-selection [data-resize-handle="s"]{left:50%!important;bottom:-5px!important;width:18px!important;height:8px!important;border-radius:5px!important;transform:translateX(-50%)!important;cursor:ns-resize!important}
.hn-watermark-preview-selection [data-resize-handle="sw"],
.hn-watermark-expanded-selection [data-resize-handle="sw"]{left:-5px!important;bottom:-5px!important;width:10px!important;height:10px!important;border-radius:50%!important;cursor:nesw-resize!important}
.hn-watermark-preview-selection [data-resize-handle="w"],
.hn-watermark-expanded-selection [data-resize-handle="w"]{left:-5px!important;top:50%!important;width:8px!important;height:18px!important;border-radius:5px!important;transform:translateY(-50%)!important;cursor:ew-resize!important}
.hn-watermark-preview-selection.is-resizing,
.hn-watermark-expanded-selection.is-resizing{border-color:#1d4ed8!important;box-shadow:0 0 0 1px rgba(255,255,255,.85),0 0 0 4px rgba(37,99,235,.18)!important}

.hn-pdf-watermark .hn-watermark-resize-status{
  display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding-top:7px;border-top:1px solid #e6ebf2
}
.hn-pdf-watermark .hn-watermark-resize-readout{color:#475569;font-size:9px;font-weight:750;white-space:nowrap}
.hn-pdf-watermark .hn-watermark-resize-reset{
  appearance:none;border:0;background:transparent;color:#2563eb;padding:2px 0;font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap
}
.hn-pdf-watermark .hn-watermark-resize-reset:hover{text-decoration:underline}

@media (min-width:1181px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    grid-template-areas:"preview inspector"!important;
    grid-template-rows:max-content!important;
    align-items:start!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-panel{
    grid-area:preview!important;grid-column:1!important;grid-row:1!important
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-inspector{
    grid-area:inspector!important;grid-column:2!important;grid-row:1!important;align-self:start!important
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-inspector .hn-watermark-actions,
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-inspector .hn-watermark-settings{
    grid-column:1!important;width:100%!important;max-width:none!important;margin:0!important
  }
}
@media (max-width:1180px) and (min-width:781px){
  .hn-pdf-watermark .hn-watermark-inspector{gap:7px}
}
@media (max-width:780px){
  .hn-pdf-watermark .hn-watermark-inspector{display:contents}
}
/* Neutralize legacy four-corner nth-child positions before eight-handle placement. */
.hn-watermark-preview-selection [data-resize-handle],
.hn-watermark-expanded-selection [data-resize-handle]{left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important}
.hn-watermark-preview-selection [data-resize-handle="nw"],.hn-watermark-expanded-selection [data-resize-handle="nw"]{left:-5px!important;right:auto!important;top:-5px!important;bottom:auto!important}
.hn-watermark-preview-selection [data-resize-handle="n"],.hn-watermark-expanded-selection [data-resize-handle="n"]{left:50%!important;right:auto!important;top:-5px!important;bottom:auto!important;transform:translateX(-50%)!important}
.hn-watermark-preview-selection [data-resize-handle="ne"],.hn-watermark-expanded-selection [data-resize-handle="ne"]{left:auto!important;right:-5px!important;top:-5px!important;bottom:auto!important}
.hn-watermark-preview-selection [data-resize-handle="e"],.hn-watermark-expanded-selection [data-resize-handle="e"]{left:auto!important;right:-5px!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important}
.hn-watermark-preview-selection [data-resize-handle="se"],.hn-watermark-expanded-selection [data-resize-handle="se"]{left:auto!important;right:-5px!important;top:auto!important;bottom:-5px!important}
.hn-watermark-preview-selection [data-resize-handle="s"],.hn-watermark-expanded-selection [data-resize-handle="s"]{left:50%!important;right:auto!important;top:auto!important;bottom:-5px!important;transform:translateX(-50%)!important}
.hn-watermark-preview-selection [data-resize-handle="sw"],.hn-watermark-expanded-selection [data-resize-handle="sw"]{left:-5px!important;right:auto!important;top:auto!important;bottom:-5px!important}
.hn-watermark-preview-selection [data-resize-handle="w"],.hn-watermark-expanded-selection [data-resize-handle="w"]{left:-5px!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important}

/* ============================================================
   v1.9.14 — Compact preview chrome + precise resize handles
============================================================ */
@media (min-width:781px){
  .hn-pdf-watermark .hn-watermark-preview-panel{
    padding:8px 10px 10px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-head{
    min-height:30px!important;
    margin-bottom:4px!important;
    gap:8px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-head>div:first-child{
    display:flex!important;
    align-items:baseline!important;
    gap:8px!important;
    min-width:0!important;
    max-width:calc(100% - 190px)!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-head strong{
    flex:0 0 auto!important;
    font-size:12px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-head span:not(.hn-watermark-preview-badge){
    min-width:0!important;
    max-width:100%!important;
    font-size:8.5px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-head-actions{gap:4px!important}
  .hn-pdf-watermark .hn-watermark-preview-badge{
    padding:3px 6px!important;
    font-size:7px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-expand{
    min-height:24px!important;
    height:24px!important;
    padding:0 7px!important;
    border-radius:7px!important;
    font-size:8px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-expand span{font-size:11px!important}
  .hn-pdf-watermark .hn-watermark-preview-toolbar{
    min-height:25px!important;
    margin-bottom:5px!important;
    gap:5px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-toolbar button,
  .hn-pdf-watermark .hn-watermark-preview-page-status,
  .hn-pdf-watermark .hn-watermark-preview-file-status{
    height:24px!important;
    min-height:24px!important;
    padding:0 7px!important;
    border-radius:6px!important;
    font-size:9px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-page-status,
  .hn-pdf-watermark .hn-watermark-preview-file-status{min-width:68px!important}
  .hn-pdf-watermark .hn-watermark-preview-zoom-level{min-width:42px!important}
  .hn-pdf-watermark .hn-watermark-preview-stage{
    padding:10px!important;
    max-height:calc(100vh - 190px)!important;
  }
}

/* Resize controls: small visual anchors with larger invisible hit areas.
   Cursor direction is assigned by JS from the current watermark rotation. */
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle]{
  width:8px!important;
  height:8px!important;
  min-width:8px!important;
  min-height:8px!important;
  border:1.5px solid #fff!important;
  border-radius:50%!important;
  background:#2563eb!important;
  box-shadow:0 1px 4px rgba(15,23,42,.32),0 0 0 1px rgba(37,99,235,.14)!important;
  opacity:.96!important;
}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle]::after,
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle]::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:8px;
}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="n"],
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="s"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="n"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="s"]{
  width:12px!important;min-width:12px!important;height:6px!important;min-height:6px!important;border-radius:4px!important;
}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="e"],
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="w"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="e"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="w"]{
  width:6px!important;min-width:6px!important;height:12px!important;min-height:12px!important;border-radius:4px!important;
}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="nw"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="nw"]{left:-4px!important;top:-4px!important}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="n"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="n"]{left:50%!important;top:-3px!important;transform:translateX(-50%)!important}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="ne"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="ne"]{right:-4px!important;top:-4px!important}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="e"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="e"]{right:-3px!important;top:50%!important;transform:translateY(-50%)!important}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="se"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="se"]{right:-4px!important;bottom:-4px!important}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="s"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="s"]{left:50%!important;bottom:-3px!important;transform:translateX(-50%)!important}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="sw"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="sw"]{left:-4px!important;bottom:-4px!important}
.hn-pdf-watermark .hn-watermark-preview-selection [data-resize-handle="w"],
.hn-pdf-watermark .hn-watermark-expanded-selection [data-resize-handle="w"]{left:-3px!important;top:50%!important;transform:translateY(-50%)!important}

/* ============================================================
   v1.9.15 — Ultra-compact preview controls + dense inspector UI
============================================================ */
@media (min-width:781px){
  /* Preview chrome: remove decorative vertical space and keep controls tight. */
  .hn-pdf-watermark .hn-watermark-preview-panel{padding:6px 8px 8px!important}
  .hn-pdf-watermark .hn-watermark-preview-head{
    min-height:22px!important;height:22px!important;margin:0 0 2px!important;gap:6px!important
  }
  .hn-pdf-watermark .hn-watermark-preview-head>div:first-child{
    gap:6px!important;max-width:calc(100% - 112px)!important;white-space:nowrap!important;overflow:hidden!important
  }
  .hn-pdf-watermark .hn-watermark-preview-head strong{font-size:11px!important;line-height:1!important}
  .hn-pdf-watermark .hn-watermark-preview-head .hn-watermark-preview-file{
    font-size:7.8px!important;line-height:1!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important
  }
  .hn-pdf-watermark .hn-watermark-preview-head-actions{gap:3px!important;align-items:center!important}
  .hn-pdf-watermark .hn-watermark-preview-expand{
    min-height:21px!important;height:21px!important;padding:0 6px!important;border-radius:6px!important;font-size:7.5px!important;line-height:1!important
  }
  .hn-pdf-watermark .hn-watermark-preview-expand span{font-size:9px!important}
  .hn-pdf-watermark .hn-watermark-preview-toolbar{
    min-height:22px!important;height:22px!important;margin:0 0 3px!important;gap:4px!important;align-items:center!important
  }
  .hn-pdf-watermark .hn-watermark-preview-toolbar button,
  .hn-pdf-watermark .hn-watermark-preview-page-status,
  .hn-pdf-watermark .hn-watermark-preview-file-status{
    height:21px!important;min-height:21px!important;padding:0 6px!important;border-radius:5px!important;font-size:8px!important;line-height:1!important
  }
  .hn-pdf-watermark .hn-watermark-preview-page-status,
  .hn-pdf-watermark .hn-watermark-preview-file-status{min-width:60px!important}
  .hn-pdf-watermark .hn-watermark-preview-zoom-level{min-width:38px!important}
  .hn-pdf-watermark .hn-watermark-preview-stage{padding:7px!important;max-height:calc(100vh - 160px)!important}

  /* Inspector: denser accordion headers and bodies. */
  .hn-pdf-watermark .hn-watermark-inspector{gap:5px!important}
  .hn-pdf-watermark .hn-watermark-settings{gap:5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section{border-radius:9px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-summary{
    min-height:34px!important;padding:4px 7px!important;gap:6px!important
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-summary>span:first-child{gap:0!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-summary strong{font-size:10px!important;line-height:1.1!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-summary small{font-size:7.8px!important;line-height:1.15!important;margin-top:1px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-chevron{
    width:21px!important;height:21px!important;border-radius:6px!important;font-size:12px!important
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-body{padding:6px 7px 7px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-head{margin-bottom:5px!important;gap:6px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-head strong{font-size:10px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-head span{font-size:8px!important;line-height:1.15!important}

  .hn-pdf-watermark .hn-watermark-settings .hn-label{margin-bottom:3px!important;font-size:9px!important;line-height:1.1!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-compression-note{font-size:7.8px!important;line-height:1.18!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark .hn-watermark-settings .hn-select,
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark .hn-watermark-settings input.hn-input{
    min-height:30px!important;height:30px!important;padding:4px 25px 4px 7px!important;border-radius:7px!important;font-size:10px!important
  }
  .hn-pdf-watermark .hn-watermark-settings textarea.hn-watermark-text{
    min-height:44px!important;height:44px!important;padding:7px 8px!important;border-radius:8px!important;font-size:10px!important;line-height:1.25!important
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-source-tabs{padding:2px!important;gap:2px!important;border-radius:7px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-source-tabs button{
    min-height:27px!important;height:27px!important;padding:0 8px!important;border-radius:6px!important;font-size:9px!important
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-grid{gap:5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-grid+.hn-watermark-grid{margin-top:5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-options{gap:4px!important;margin-top:5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option{
    min-height:44px!important;padding:5px 5px 18px!important;border-radius:8px!important;gap:4px!important
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option-copy strong{font-size:9px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option-copy small{font-size:7.5px!important;line-height:1.1!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option-icon{width:22px!important;height:22px!important;border-radius:6px!important;font-size:12px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option button{right:4px!important;bottom:2px!important;font-size:7.5px!important;padding:1px 2px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-token-row{gap:3px!important;margin-top:4px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-token-row button{
    padding:3px 5px!important;border-radius:999px!important;font-size:8px!important
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-mini-field{font-size:9px!important;gap:3px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-custom-position{margin-top:5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-position-wrap{gap:5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-resize-status{margin-top:5px!important;padding-top:5px!important;gap:5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-resize-readout,
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-resize-reset{font-size:8px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-preset-grid{gap:4px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-preset{min-height:27px!important;padding:3px!important;font-size:7.7px!important;border-radius:7px!important}
}

/* v1.9.16 — proportional safe-margin presets + compact custom percentage. */
.hn-pdf-watermark .hn-watermark-margin-custom-field{display:grid;grid-template-columns:minmax(0,1fr) 86px;align-items:center;gap:6px;margin-top:5px;font-size:9px;font-weight:800;color:#64748b}
.hn-pdf-watermark .hn-watermark-margin-custom-field[hidden]{display:none!important}
.hn-pdf-watermark .hn-watermark-margin-custom-control{display:grid;grid-template-columns:minmax(0,1fr) 14px;align-items:center;gap:3px}
.hn-pdf-watermark .hn-watermark-margin-custom-control .hn-input{height:28px!important;min-height:28px!important;padding:3px 6px!important;font-size:10px!important}
.hn-pdf-watermark .hn-watermark-margin-custom-control b{font-size:9px;color:#64748b}

/* ============================================================
   v1.9.17 — Multi-file rail containment + professional color reset placement
   Keep long source queues inside their own scroller so they cannot dictate the
   document page height. Reset actions are quiet inline actions beside swatches,
   not detached square controls or a second row beneath the setting.
============================================================ */
@media (min-width:1181px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    max-height:calc(100vh - 104px)!important;
    height:auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
    padding-right:4px!important;
    padding-bottom:8px!important;
    align-self:start!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue::-webkit-scrollbar,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue::-webkit-scrollbar{width:6px}
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue::-webkit-scrollbar-track,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue::-webkit-scrollbar-track{background:transparent}
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue::-webkit-scrollbar-thumb,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
}

/* Text color: swatch + label + quiet reset link on one line. */
/* v1.9.41 -- the swatch column was hardcoded to 34px here while the actual
   input[type=color] it holds is 42px!important wide almost everywhere (see
   above) -- only the narrow 1181-1399px window ever set the swatch back to
   34px to match. Everywhere else the 8px-wider swatch overflowed into this
   column's own 6px gap and the "Text"/"Metin" label next to it, making the
   label render right up against (or slightly under) the swatch. Widened to
   42px so the two actually agree at the widths that matter most. */
.hn-pdf-watermark .hn-watermark-color-field{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:6px!important;
}
.hn-pdf-watermark .hn-watermark-color-field > input[type="color"]{grid-column:1!important;grid-row:1!important}
.hn-pdf-watermark .hn-watermark-color-field > span{grid-column:2!important;grid-row:1!important;min-width:0!important}
.hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn{
  grid-column:3!important;grid-row:1!important;
}

/* Background / Border: reset sits between copy and swatch on the same row. */
/* v1.9.43 -- same class of bug as the plain color-field fix above: this
   grid reserved 30px for the swatch column while the swatch itself is
   42px!important (only the >=1181px desktop variants of this same rule
   ever matched the width to 40px), so at every width below that -- every
   phone and tablet -- the 12px-wider swatch overflowed into the reset
   button's column right next to it, reading as the reset pill sitting on
   top of the color swatch. Widened to 42px to match. */
.hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]){
  position:relative!important;
  display:grid!important;
  grid-template-columns:14px minmax(0,1fr) auto 42px!important;
  align-items:center!important;
  gap:5px!important;
  min-height:42px!important;
  padding:5px 6px!important;
}
.hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]) > input[type="checkbox"]{grid-column:1!important;grid-row:1!important}
.hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]) > .hn-watermark-style-option-copy{grid-column:2!important;grid-row:1!important}
.hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]) > .hn-color-reset-btn{grid-column:3!important;grid-row:1!important;position:static!important}
.hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]) > input[type="color"]{grid-column:4!important;grid-row:1!important}

/* Reset is a subtle text action, never a checkbox-looking control. */
.hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn,
.hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  padding:2px 1px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#64748b!important;
  font-size:0!important;
  font-weight:800!important;
  line-height:1!important;
  text-indent:0!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  opacity:.86!important;
}
/* v1.9.41 -- this ::after used to be the reset button's only visible label
   ("Reset", hardcoded English, never localized since CSS content: strings
   are invisible to the site's text-based translation layer). A later
   redesign (see .hn-color-reset-btn below) switched to showing the
   button's own native, localized text (e.g. "Sıfırla") with a small
   ::before{content:"↺"} icon instead, and added a min-width:1181px-only
   rule to kill this ::after. But this rule's own base definition -- the
   one actually setting the "↺ Reset" text -- was never removed, so at any
   width below 1181px (i.e. on every phone and tablet) both the native,
   localized label AND this stale, unlocalized "↺ Reset" rendered at once:
   "Sıfırla ↺ Reset". Neutralized here instead of only at the wide
   breakpoint, so it is inert at every screen size for good. */
.hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn::after,
.hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn::after{
  content:none!important;
  display:none!important;
}
.hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn:hover,
.hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn:hover{
  background:transparent!important;
  color:#2563eb!important;
  opacity:1!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}
.hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn:focus-visible,
.hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn:focus-visible{
  outline:2px solid #93c5fd!important;
  outline-offset:2px!important;
}

/* ============================================================
   v1.9.18 — Readable compact inspector + bounded desktop workspace
   Restores readable typography without returning to oversized controls,
   makes color reset actions explicit pill controls, and gives Watermark its
   own viewport-bounded app canvas so a long source queue cannot create a
   large empty document area beside the editor.
============================================================ */
@media (min-width:1181px){
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]){
    height:calc(100dvh - 92px)!important;
    min-height:560px!important;
    max-height:calc(100dvh - 92px)!important;
    overflow:hidden!important;
    align-content:start!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    height:100%!important;
    max-height:none!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    align-self:stretch!important;
    padding-bottom:10px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
    align-self:stretch!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-panel{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-stage{
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:auto!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-inspector{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    align-content:start!important;
    padding-right:3px!important;
    scrollbar-gutter:stable!important;
  }

  /* Readability: compact dimensions stay, text returns to a professional UI scale. */
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-summary{min-height:36px!important;padding:5px 8px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-summary strong{font-size:11.5px!important;line-height:1.15!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-summary small{font-size:9.4px!important;line-height:1.2!important;margin-top:2px!important;color:#64748b!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-head strong{font-size:11.5px!important;line-height:1.15!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section-head span{font-size:9.5px!important;line-height:1.2!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-label{font-size:10.5px!important;line-height:1.15!important;margin-bottom:4px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-compression-note{font-size:9.3px!important;line-height:1.25!important}
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark .hn-watermark-settings .hn-select,
  body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark .hn-watermark-settings input.hn-input{
    font-size:11px!important;
  }
  .hn-pdf-watermark .hn-watermark-settings textarea.hn-watermark-text{font-size:11px!important;line-height:1.3!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-source-tabs button{font-size:10px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option-copy strong{font-size:10.5px!important;line-height:1.15!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option-copy small{font-size:9px!important;line-height:1.15!important;color:#64748b!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-token-row button{font-size:9.5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-mini-field{font-size:10px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-resize-readout,
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-resize-reset{font-size:9.5px!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-preset{font-size:8.8px!important}

  /* Color controls: swatch + copy + one unmistakable Reset pill. */
  .hn-pdf-watermark .hn-watermark-color-field{
    grid-template-columns:42px minmax(0,1fr) auto!important;
    gap:6px!important;
  }
  .hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]){
    grid-template-columns:14px minmax(0,1fr) 30px auto!important;
    gap:6px!important;
    min-height:44px!important;
    padding:6px!important;
  }
  .hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]) > input[type="color"]{grid-column:3!important}
  .hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]) > .hn-color-reset-btn{grid-column:4!important}

  .hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn,
  .hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    width:auto!important;
    min-width:52px!important;
    height:24px!important;
    min-height:24px!important;
    padding:0 7px!important;
    border:1px solid #dbe3ee!important;
    border-radius:999px!important;
    background:#f8fafc!important;
    color:#64748b!important;
    box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
    font-size:9.5px!important;
    font-weight:750!important;
    line-height:1!important;
    text-decoration:none!important;
    opacity:1!important;
    white-space:nowrap!important;
  }
  .hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn::before,
  .hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn::before{
    content:"↺"!important;
    font-size:10px!important;
    line-height:1!important;
  }
  .hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn::after,
  .hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn::after{content:none!important;display:none!important}
  .hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn:hover,
  .hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn:hover{
    color:#1d4ed8!important;
    border-color:#bfdbfe!important;
    background:#eff6ff!important;
    text-decoration:none!important;
  }
}


/* ============================================================
   v1.9.19 — hard bounded workspace track + refined reset actions
   The desktop workspace uses one minmax(0,1fr) grid row. Long file queues,
   preview and inspector scroll inside that row; none can enlarge the document.
============================================================ */
@media (min-width:1181px){
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]){
    box-sizing:border-box!important;
    height:calc(100dvh - 84px)!important;
    min-height:520px!important;
    max-height:calc(100dvh - 84px)!important;
    grid-template-rows:minmax(0,1fr)!important;
    align-items:stretch!important;
    align-content:stretch!important;
    overflow:hidden!important;
  }
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-file-queue,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    height:100%!important;min-height:0!important;max-height:100%!important;
    align-self:stretch!important;overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;
  }
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio{
    height:100%!important;min-height:0!important;max-height:100%!important;
    grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;
    align-self:stretch!important;overflow:hidden!important;
  }
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-panel{
    height:100%!important;min-height:0!important;max-height:100%!important;
    align-self:stretch!important;overflow:hidden!important;
  }
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-stage{
    flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;
  }
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"] .hn-watermark-inspector{
    height:100%!important;min-height:0!important;max-height:100%!important;
    align-self:stretch!important;overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;
  }

  /* Reset is a secondary action: compact, consistent, and never checkbox-like. */
  .hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn,
  .hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn{
    min-width:0!important;height:22px!important;min-height:22px!important;
    padding:0 6px!important;border:0!important;border-radius:6px!important;
    background:transparent!important;box-shadow:none!important;color:#64748b!important;
    font-size:9px!important;font-weight:750!important;gap:3px!important;
  }
  .hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn::before,
  .hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn::before{
    font-size:10px!important;
  }
  .hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn:hover,
  .hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn:hover{
    color:#1d4ed8!important;background:#eff6ff!important;
  }
  .hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]){
    grid-template-columns:14px minmax(0,1fr) 30px auto!important;
    column-gap:5px!important;
  }
}

/* ================================================================
   v1.9.20 — quiet color controls
   Reset is contextual: hidden at defaults, visible only after change.
   ================================================================ */
.hn-pdf-watermark .hn-watermark-color-field,
.hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]){
  position:relative!important;
}

/* Text color keeps a simple swatch + label. */
.hn-pdf-watermark .hn-watermark-color-field{
  grid-template-columns:42px minmax(0,1fr)!important;
  padding-right:8px!important;
}
.hn-pdf-watermark .hn-watermark-color-field > input[type="color"]{
  grid-column:1!important;
}
.hn-pdf-watermark .hn-watermark-color-field > span{
  grid-column:2!important;
}

/* Background / Border: copy gets the room, swatch stays at the far right. */
.hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]){
  grid-template-columns:16px minmax(0,1fr) 40px!important;
  column-gap:7px!important;
  padding-right:7px!important;
}
.hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]) > input[type="checkbox"]{
  grid-column:1!important;
}
.hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]) > .hn-watermark-style-option-copy{
  grid-column:2!important;
}
.hn-pdf-watermark .hn-watermark-style-option:has(> input[type="color"]) > input[type="color"]{
  grid-column:3!important;
  justify-self:end!important;
}

/* Reset does not consume layout space until there is something to reset. */
.hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn,
.hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn{
  position:absolute!important;
  right:7px!important;
  bottom:3px!important;
  width:auto!important;
  min-width:0!important;
  height:18px!important;
  min-height:18px!important;
  padding:0 4px!important;
  border:0!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:none!important;
  color:#64748b!important;
  font-size:8.5px!important;
  font-weight:750!important;
  line-height:18px!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(2px)!important;
  transition:opacity .14s ease, transform .14s ease, color .14s ease!important;
  z-index:2!important;
}
.hn-pdf-watermark .hn-watermark-color-field.is-color-dirty > .hn-color-reset-btn,
.hn-pdf-watermark .hn-watermark-style-option.is-color-dirty > .hn-color-reset-btn{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:none!important;
}
.hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn::before,
.hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn::before{
  content:"↺"!important;
  margin-right:3px!important;
  font-size:9px!important;
}
.hn-pdf-watermark .hn-watermark-color-field > .hn-color-reset-btn:hover,
.hn-pdf-watermark .hn-watermark-style-option > .hn-color-reset-btn:hover{
  color:#1d4ed8!important;
  text-decoration:underline!important;
}

/* Shadow is already controlled by its checkbox; no decorative pseudo-control. */
.hn-pdf-watermark .hn-watermark-style-option:not(:has(> input[type="color"])){
  grid-template-columns:16px minmax(0,1fr)!important;
}
.hn-pdf-watermark .hn-watermark-style-option-icon{display:none!important}

/* ================================================================
   v1.9.22 — Add Page Numbers Watermark-studio workspace parity
   Desktop visual order: Files | Live Preview | Settings.
   Existing quick typography/position/zoom controls remain in the preview
   top bar. Only presentation/geometry changes; numbering logic is untouched.
   ================================================================ */
@media (min-width:1181px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]{
    box-sizing:border-box!important;
    height:calc(100dvh - 84px)!important;
    min-height:520px!important;
    max-height:calc(100dvh - 84px)!important;
    overflow:hidden!important;
    padding:10px!important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root{
    display:grid!important;
    grid-template-columns:150px minmax(0,1fr) 390px!important;
    grid-template-rows:minmax(0,1fr)!important;
    gap:10px!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
    overflow:hidden!important;
    align-items:stretch!important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > .hn-page-number-layout[data-hn-multi-editor-content="1"]{
    display:contents!important;
  }

  /* Files — compact Watermark-style source rail. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > .hn-multi-document-list{
    grid-column:1!important;
    grid-row:1!important;
    display:grid!important;
    align-content:start!important;
    gap:7px!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
    margin:0!important;
    padding:1px 3px 8px 1px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:7px!important;
    border:1px solid #dfe7f2!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(15,23,42,.035)!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-row.is-active{
    border-color:#93c5fd!important;
    background:#f8fbff!important;
    box-shadow:0 0 0 2px rgba(37,99,235,.07),0 5px 16px rgba(15,23,42,.05)!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-main{
    display:grid!important;
    grid-template-columns:25px minmax(0,1fr)!important;
    align-items:start!important;
    gap:6px!important;
    min-width:0!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-order{
    width:25px!important;height:25px!important;font-size:10px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-icon{display:none!important}
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-copy{gap:2px!important;min-width:0!important}
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-copy strong{
    display:-webkit-box!important;
    max-width:none!important;
    max-height:27px!important;
    overflow:hidden!important;
    white-space:normal!important;
    text-overflow:clip!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow-wrap:anywhere!important;
    font-size:10.5px!important;
    line-height:1.2!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-copy small{
    font-size:8.8px!important;line-height:1.18!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;
    width:100%!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-multi-document-actions .hn-btn{
    width:100%!important;
    min-width:0!important;
    min-height:27px!important;
    height:27px!important;
    padding:3px 4px!important;
    border-radius:7px!important;
    font-size:8.7px!important;
    line-height:1!important;
  }

  /* Live Preview — visual center, matching Watermark's dark canvas. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-preview-panel{
    grid-column:2!important;
    grid-row:1!important;
    position:relative!important;
    top:auto!important;
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:none!important;
    max-height:100%!important;
    margin:0!important;
    padding:10px!important;
    border:1px solid rgba(148,163,184,.20)!important;
    border-radius:16px!important;
    background:#0f172a!important;
    box-shadow:0 14px 30px rgba(15,23,42,.13)!important;
    overflow:hidden!important;
  }

  /* Top bar: title + page navigation first row, existing live settings second row. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-page-number-preview-head{
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:"title nav" "live live"!important;
    align-items:center!important;
    gap:5px 8px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-title{
    grid-area:title!important;
    display:flex!important;
    align-items:baseline!important;
    gap:6px!important;
    min-width:0!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-title strong{
    color:#f8fafc!important;
    font-size:12px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-title span{
    min-width:0!important;
    overflow:hidden!important;
    color:#94a3b8!important;
    font-size:9px!important;
    line-height:1.1!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav{
    grid-area:nav!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-self:end!important;
    gap:3px!important;
    min-width:0!important;
    margin:0!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav > .hn-btn{
    width:27px!important;min-width:27px!important;height:27px!important;min-height:27px!important;
    padding:0!important;border-color:#334155!important;border-radius:7px!important;
    background:#111c30!important;color:#e2e8f0!important;font-size:11px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-page-control{
    gap:3px!important;color:#cbd5e1!important;font-size:9px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-page{
    width:40px!important;height:27px!important;min-height:27px!important;
    padding:2px 4px!important;border-color:#334155!important;border-radius:7px!important;
    background:#111c30!important;color:#f8fafc!important;font-size:9.5px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-page-total{color:#94a3b8!important;font-size:9px!important}

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-live-settings{
    grid-area:live!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:4px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:5px!important;
    border:1px solid rgba(148,163,184,.18)!important;
    border-radius:10px!important;
    background:#111c30!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    scrollbar-width:thin!important;
    scrollbar-color:#475569 transparent!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-field,
  .hn-pdf-page-numbers .hn-pn-live-field > span{
    color:#aebbd0!important;
    font-size:8.5px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-settings .hn-select,
  .hn-pdf-page-numbers .hn-pn-live-settings .hn-input{
    min-height:27px!important;height:27px!important;
    padding-top:2px!important;padding-bottom:2px!important;
    border-color:#334155!important;border-radius:7px!important;
    background:#f8fafc!important;color:#0f172a!important;
    font-size:9.5px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-font .hn-pn-font{width:80px!important}
  .hn-pdf-page-numbers .hn-pn-live-size .hn-pn-font-size{width:44px!important}
  .hn-pdf-page-numbers .hn-pn-live-position .hn-pn-position{width:106px!important}
  .hn-pdf-page-numbers .hn-pn-live-color{
    height:27px!important;padding:2px!important;border-color:#334155!important;border-radius:7px!important;background:#f8fafc!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color .hn-pn-color{width:22px!important;height:22px!important;min-height:22px!important}
  .hn-pdf-page-numbers .hn-pn-format-icon{
    width:27px!important;height:27px!important;border-color:#334155!important;border-radius:7px!important;font-size:12px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity .hn-pn-opacity{width:62px!important}
  .hn-pdf-page-numbers .hn-pn-live-opacity output{width:30px!important;color:#cbd5e1!important;font-size:8.5px!important}
  .hn-pdf-page-numbers .hn-pn-preview-zoom-control .hn-btn{
    width:27px!important;min-width:27px!important;height:27px!important;min-height:27px!important;
    border-color:#334155!important;border-radius:7px!important;background:#172238!important;color:#e2e8f0!important;
  }
  .hn-pdf-page-numbers .hn-pn-zoom-value{min-width:32px!important;color:#f8fafc!important;font-size:9px!important}

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-stage{
    flex:1 1 auto!important;
    display:grid!important;
    place-items:center!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:10px!important;
    border:0!important;
    border-radius:12px!important;
    background-color:#0b1425!important;
    background-image:linear-gradient(45deg,rgba(148,163,184,.05) 25%,transparent 25%),linear-gradient(-45deg,rgba(148,163,184,.05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(148,163,184,.05) 75%),linear-gradient(-45deg,transparent 75%,rgba(148,163,184,.05) 75%)!important;
    background-size:20px 20px!important;
    background-position:0 0,0 10px,10px -10px,-10px 0!important;
    overflow:auto!important;
    scrollbar-gutter:stable!important;
  }
  .hn-pdf-page-numbers .hn-pn-preview-empty{color:#94a3b8!important;font-size:10px!important}
  .hn-pdf-page-numbers .hn-pn-preview-canvas-wrap{box-shadow:0 8px 24px rgba(0,0,0,.22)!important}
  .hn-pdf-page-numbers .hn-pn-preview-toolbar{
    flex:0 0 auto!important;
    min-height:18px!important;
    margin:0!important;
    padding:0 3px!important;
    color:#94a3b8!important;
    font-size:8.5px!important;
  }

  /* Settings — compact inspector rail, Watermark-like accordion hierarchy. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-settings{
    grid-column:3!important;
    grid-row:1!important;
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
    margin:0!important;
    padding:0 3px 6px 0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
  }
  .hn-pdf-page-numbers .hn-page-number-section{
    flex:0 0 auto!important;
    margin:0!important;
    border:1px solid #dbe4ef!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(15,23,42,.025)!important;
    overflow:hidden!important;
  }
  .hn-pdf-page-numbers .hn-page-number-section > summary{
    min-height:40px!important;
    padding:7px 9px!important;
    border-left:3px solid #dbeafe!important;
    background:#f8fbff!important;
    color:#0f172a!important;
    font-size:11px!important;
    line-height:1.15!important;
  }
  .hn-pdf-page-numbers .hn-page-number-section[open] > summary{
    border-left-color:#2563eb!important;
    background:#eff6ff!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-title{font-size:11px!important;font-weight:850!important}
  .hn-pdf-page-numbers .hn-page-number-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:9px!important;
  }
  .hn-pdf-page-numbers .hn-page-number-grid .hn-field{min-width:0!important}
  .hn-pdf-page-numbers .hn-page-number-settings .hn-label{font-size:10px!important;line-height:1.15!important;margin-bottom:3px!important}
  .hn-pdf-page-numbers .hn-page-number-settings .hn-compression-note{font-size:8.8px!important;line-height:1.2!important}
  .hn-pdf-page-numbers .hn-page-number-settings .hn-pn-check{font-size:9.5px!important;line-height:1.2!important}
  .hn-pdf-page-numbers .hn-page-number-settings .hn-input,
  .hn-pdf-page-numbers .hn-page-number-settings .hn-select{
    min-height:34px!important;height:34px!important;padding-top:4px!important;padding-bottom:4px!important;
    border-radius:8px!important;font-size:10.5px!important;
  }
  .hn-pdf-page-numbers .hn-pn-settings-footer{
    position:sticky!important;
    bottom:0!important;
    z-index:4!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:7px!important;
    border:1px solid #dbe4ef!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 -6px 16px rgba(15,23,42,.05)!important;
    backdrop-filter:blur(8px)!important;
  }
  .hn-pdf-page-numbers .hn-pn-file-settings-actions{gap:5px!important}
  .hn-pdf-page-numbers .hn-pn-file-settings-actions .hn-btn{
    min-height:31px!important;padding:5px 7px!important;border-radius:8px!important;font-size:9.2px!important;
  }
  .hn-pdf-page-numbers .hn-pn-create{
    min-height:40px!important;height:40px!important;margin-top:6px!important;padding:7px 10px!important;
    border-radius:10px!important;font-size:11px!important;
  }
}

@media (min-width:1600px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root{
    grid-template-columns:165px minmax(0,1fr) 420px!important;
  }
}
@media (min-width:1181px) and (max-width:1399px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root{
    grid-template-columns:145px minmax(0,1fr) 350px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-settings{gap:3px!important}
}

/* ================================================================
   v1.9.23 — Add Page Numbers inspector visual parity with Watermark PDF
   Presentation only. Existing accordion behavior and numbering engine stay intact.
   ================================================================ */
@media (min-width:1181px){
  /* Match Watermark inspector rail rhythm. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-settings{
    gap:5px!important;
    padding:0 3px 6px 0!important;
  }

  /* Same card shell as Watermark accordion. */
  .hn-pdf-page-numbers .hn-page-number-section{
    border:1px solid #d9e2ee!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(15,23,42,.025)!important;
    overflow:hidden!important;
  }

  /* Watermark-style header strip and active blue rail. */
  .hn-pdf-page-numbers .hn-page-number-section > summary{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    min-height:44px!important;
    padding:7px 9px!important;
    border:0!important;
    border-bottom:1px solid transparent!important;
    border-left:0!important;
    border-radius:0!important;
    background:linear-gradient(180deg,#f8fafc 0%,#f3f6fa 100%)!important;
    box-shadow:inset 3px 0 0 #dbe7f6!important;
    color:#0f172a!important;
  }
  .hn-pdf-page-numbers .hn-page-number-section[open] > summary{
    background:linear-gradient(180deg,#f2f7ff 0%,#eef4fb 100%)!important;
    box-shadow:inset 3px 0 0 #60a5fa!important;
    border-bottom-color:#dbe5f0!important;
  }

  .hn-pdf-page-numbers .hn-pn-section-copy{
    display:grid!important;
    gap:2px!important;
    min-width:0!important;
    padding-left:1px!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-title{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#0f172a!important;
    font-size:11.5px!important;
    font-weight:850!important;
    line-height:1.15!important;
    letter-spacing:.005em!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-copy small{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#64748b!important;
    font-size:9.4px!important;
    font-weight:550!important;
    line-height:1.2!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  /* Watermark has one clean chevron affordance; remove the duplicate +/− visual. */
  .hn-pdf-page-numbers .hn-pn-section-exclusive{display:none!important}
  .hn-pdf-page-numbers .hn-pn-section-actions{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    gap:0!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-multi-toggle{
    position:relative!important;
    display:grid!important;
    place-items:center!important;
    width:24px!important;
    min-width:24px!important;
    height:24px!important;
    min-height:24px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #e2e8f0!important;
    border-radius:8px!important;
    background:#f8fafc!important;
    color:#64748b!important;
    box-shadow:none!important;
    transition:background .16s ease,border-color .16s ease,color .16s ease!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-multi-toggle::before{
    content:""!important;
    position:static!important;
    width:7px!important;
    height:7px!important;
    border:0!important;
    border-right:1.7px solid currentColor!important;
    border-bottom:1.7px solid currentColor!important;
    border-radius:0!important;
    background:transparent!important;
    transform:translateY(-2px) rotate(45deg)!important;
    transition:transform .16s ease!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-multi-toggle::after{display:none!important;content:none!important}
  .hn-pdf-page-numbers .hn-pn-section-multi-toggle[aria-pressed="true"]{
    border-color:#bfdbfe!important;
    background:#eff6ff!important;
    color:#2563eb!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-multi-toggle[aria-pressed="true"]::before{
    transform:translateY(2px) rotate(225deg)!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-multi-toggle:hover,
  .hn-pdf-page-numbers .hn-pn-section-multi-toggle:focus-visible{
    border-color:#bfdbfe!important;
    background:#eff6ff!important;
    color:#2563eb!important;
  }

  /* Body follows Watermark's white section body and compact field rhythm. */
  .hn-pdf-page-numbers .hn-page-number-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    padding:8px 9px 9px!important;
    background:#fff!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-label{
    margin-bottom:4px!important;
    color:#0f172a!important;
    font-size:10.5px!important;
    font-weight:750!important;
    line-height:1.15!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-compression-note{
    color:#64748b!important;
    font-size:9.3px!important;
    line-height:1.25!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-pn-check{
    display:flex!important;
    align-items:flex-start!important;
    gap:6px!important;
    min-height:28px!important;
    padding:6px 7px!important;
    border:1px solid #e5eaf1!important;
    border-radius:9px!important;
    background:#fbfcfe!important;
    color:#334155!important;
    font-size:10px!important;
    line-height:1.2!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-pn-check input[type="checkbox"]{
    flex:0 0 auto!important;
    margin:1px 0 0!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-input,
  .hn-pdf-page-numbers .hn-page-number-settings .hn-select{
    min-height:32px!important;
    height:32px!important;
    padding:4px 8px!important;
    border:1px solid #dbe3ec!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#0f172a!important;
    font-size:10.5px!important;
    box-shadow:none!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-input:focus,
  .hn-pdf-page-numbers .hn-page-number-settings .hn-select:focus{
    border-color:#93c5fd!important;
    box-shadow:0 0 0 3px rgba(37,99,235,.08)!important;
    outline:0!important;
  }

  /* Footer as the Watermark inspector's clean action card. */
  .hn-pdf-page-numbers .hn-pn-settings-footer{
    margin-top:2px!important;
    padding:8px!important;
    border:1px solid #d9e2ee!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 3px 12px rgba(15,23,42,.04)!important;
  }
  .hn-pdf-page-numbers .hn-pn-file-settings-actions{gap:5px!important}
  .hn-pdf-page-numbers .hn-pn-file-settings-actions .hn-btn{
    min-height:30px!important;
    padding:5px 7px!important;
    border-radius:8px!important;
    font-size:9.5px!important;
  }
  .hn-pdf-page-numbers .hn-pn-create{
    min-height:38px!important;
    height:38px!important;
    margin-top:6px!important;
    padding:7px 10px!important;
    border-radius:10px!important;
    font-size:10.8px!important;
  }
}


/* ================================================================
   v1.9.25 — Add Page Numbers inspector BODY parity with Watermark PDF
   File rail intentionally stays on the pre-v1.9.24 compact text-card design.
   Only opened accordion bodies are refined; numbering logic is untouched.
   ================================================================ */
@media (min-width:1181px){
  /* Watermark-equivalent accordion rhythm. */
  .hn-pdf-page-numbers .hn-page-number-section > summary{
    min-height:36px!important;
    padding:5px 8px!important;
    gap:6px!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-title{
    font-size:11.5px!important;
    line-height:1.15!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-copy small{
    margin-top:2px!important;
    font-size:9.4px!important;
    line-height:1.2!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-multi-toggle{
    width:24px!important;
    min-width:24px!important;
    height:24px!important;
    min-height:24px!important;
  }

  /* Open body: same density and visual hierarchy as Watermark settings. */
  .hn-pdf-page-numbers .hn-page-number-section[open] > .hn-page-number-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    padding:10px 7px 7px!important;
    border-top:0!important;
    background:#fff!important;
  }
  .hn-pdf-page-numbers .hn-page-number-grid .hn-field{
    display:grid!important;
    align-content:start!important;
    gap:3px!important;
    min-width:0!important;
    margin:0!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-label{
    margin:0!important;
    color:#0f172a!important;
    font-size:10.5px!important;
    font-weight:750!important;
    line-height:1.15!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-compression-note{
    margin:0!important;
    color:#64748b!important;
    font-size:9.3px!important;
    line-height:1.22!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-input,
  .hn-pdf-page-numbers .hn-page-number-settings .hn-select{
    width:100%!important;
    min-width:0!important;
    min-height:30px!important;
    height:30px!important;
    padding:3px 7px!important;
    border:1px solid #dbe3ec!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#0f172a!important;
    font-size:11px!important;
    line-height:1.15!important;
    box-shadow:none!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-input:focus,
  .hn-pdf-page-numbers .hn-page-number-settings .hn-select:focus{
    border-color:#93c5fd!important;
    box-shadow:0 0 0 3px rgba(37,99,235,.08)!important;
    outline:0!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings input[type="color"]{
    width:34px!important;
    min-width:34px!important;
    height:28px!important;
    min-height:28px!important;
    padding:2px!important;
    border-radius:7px!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings input[type="range"]{
    min-width:0!important;
    height:22px!important;
    margin:0!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings output{
    font-size:9.5px!important;
    line-height:1!important;
  }

  /* Checkbox rows use Watermark's compact option-card language. */
  .hn-pdf-page-numbers .hn-page-number-settings .hn-pn-check{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    min-width:0!important;
    min-height:30px!important;
    margin:0!important;
    padding:5px 7px!important;
    border:1px solid #e5eaf1!important;
    border-radius:8px!important;
    background:#fbfcfe!important;
    color:#334155!important;
    font-size:10.2px!important;
    font-weight:650!important;
    line-height:1.15!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-pn-check:hover{
    border-color:#d7e2ef!important;
    background:#f8fbff!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-pn-check input[type="checkbox"]{
    width:14px!important;
    height:14px!important;
    min-width:14px!important;
    margin:0!important;
  }

  /* Dynamic fields do not leave phantom gaps while hidden. */
  .hn-pdf-page-numbers .hn-page-number-grid > [hidden]{display:none!important}

  /* Compact sticky footer, matching Watermark inspector weight. */
  .hn-pdf-page-numbers .hn-pn-settings-footer{
    margin-top:0!important;
    padding:6px!important;
    border-radius:10px!important;
  }
  .hn-pdf-page-numbers .hn-pn-file-settings-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
  }
  .hn-pdf-page-numbers .hn-pn-file-settings-actions .hn-btn{
    min-height:28px!important;
    height:auto!important;
    padding:4px 6px!important;
    border-radius:7px!important;
    font-size:9px!important;
    line-height:1.15!important;
  }
  .hn-pdf-page-numbers .hn-pn-create{
    min-height:36px!important;
    height:36px!important;
    margin-top:5px!important;
    padding:6px 9px!important;
    border-radius:9px!important;
    font-size:10.5px!important;
  }
}

@media (min-width:1181px) and (max-width:1399px){
  .hn-pdf-page-numbers .hn-page-number-section[open] > .hn-page-number-grid{
    gap:5px!important;
    padding:9px 6px 6px!important;
  }
  .hn-pdf-page-numbers .hn-page-number-settings .hn-input,
  .hn-pdf-page-numbers .hn-page-number-settings .hn-select{font-size:10.5px!important}
}


/* ================================================================
   v1.9.26 — Add Page Numbers inspector clearance + preview fidelity
   Gives opened settings a clearer gap below the accordion divider.
   Preview raster quality is handled in JS without changing PDF output.
   ================================================================ */
@media (min-width:1181px){
  .hn-pdf-page-numbers .hn-page-number-section[open] > summary{
    border-bottom-color:#d8e2ee!important;
  }
  .hn-pdf-page-numbers .hn-page-number-section[open] > .hn-page-number-grid > .hn-field:first-child,
  .hn-pdf-page-numbers .hn-page-number-section[open] > .hn-page-number-grid > .hn-field:nth-child(2){
    margin-top:0!important;
  }
}

/* ================================================================
   v1.9.27 — Add Page Numbers opened-section top clearance
   Exact target: distance between summary divider and the first form labels.
   ================================================================ */
@media (min-width:1181px){
  .hn-pdf-page-numbers .hn-page-number-section[open] > .hn-page-number-grid{
    padding-top:15px!important;
    row-gap:8px!important;
  }
}
@media (min-width:1181px) and (max-width:1399px){
  .hn-pdf-page-numbers .hn-page-number-section[open] > .hn-page-number-grid{
    padding-top:13px!important;
  }
}

/* ================================================================
   v1.9.28 — Add Page Numbers final open-body clearance + preview polish
   An explicit grid spacer guarantees visual clearance below the summary
   divider even when older workspace rules change the body's padding.
   ================================================================ */
@media (min-width:1181px){
  .hn-pdf-page-numbers .hn-page-number-section[open] > .hn-page-number-grid{
    padding-top:6px!important;
    row-gap:7px!important;
  }
  .hn-pdf-page-numbers .hn-page-number-section[open] > .hn-page-number-grid::before{
    content:""!important;
    display:block!important;
    grid-column:1 / -1!important;
    width:100%!important;
    height:8px!important;
    min-height:8px!important;
    margin:0!important;
    padding:0!important;
    pointer-events:none!important;
  }

  /* Keep the title and document identity readable as two distinct items. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-title{
    gap:0!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-title > span{
    margin-left:10px!important;
    padding-left:10px!important;
    border-left:1px solid rgba(148,163,184,.32)!important;
  }

  .hn-pdf-page-numbers .hn-pn-preview-canvas{
    image-rendering:auto!important;
  }
}

/* ================================================================
   v1.9.29 — Add Page Numbers left rail proportions + fixed action dock
   Slightly taller uploaded-files zone. Settings sections scroll independently;
   apply/reset/create actions stay pinned at the bottom-left editor rail.
   Presentation only; numbering/output engine is unchanged.
   ================================================================ */
@media (min-width:1181px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root{
    display:grid!important;
    grid-template-columns:minmax(300px,25%) minmax(0,1fr)!important;
    grid-template-rows:168px minmax(0,1fr)!important;
    column-gap:12px!important;
    row-gap:10px!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  /* Uploaded PDFs: only a modest increase from the previous compact height. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > .hn-multi-document-list{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    height:168px!important;
    min-height:168px!important;
    max-height:168px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    scrollbar-gutter:stable!important;
  }

  /* Keep Settings in the lower-left and Preview on the full right side. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > .hn-page-number-layout[data-hn-multi-editor-content="1"]{
    display:contents!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-settings{
    grid-column:1!important;
    grid-row:2!important;
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    padding:0 2px 0 0!important;
    overflow:hidden!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-pn-settings-scroll{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
    padding:0 2px 2px 0!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-pn-settings-footer{
    position:relative!important;
    inset:auto!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    padding:7px!important;
    border:1px solid #d9e2ee!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:0 -4px 14px rgba(15,23,42,.045)!important;
    z-index:5!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-preview-panel{
    grid-column:2!important;
    grid-row:1 / 3!important;
    min-height:0!important;
    height:100%!important;
    max-height:100%!important;
  }
}

@media (min-width:1181px) and (max-height:760px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root{
    grid-template-rows:154px minmax(0,1fr)!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > .hn-multi-document-list{
    height:154px!important;
    min-height:154px!important;
    max-height:154px!important;
  }
}

/* ================================================================
   v1.9.30 — Add Page Numbers adaptive uploaded-files rail
   The first desktop grid row follows actual file-list content instead of a
   fixed 168px reservation. It grows naturally only until the established cap,
   then the list scrolls internally. The pinned settings action dock remains in
   the lower-left rail.
   ================================================================ */
@media (min-width:1181px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root{
    grid-template-rows:auto minmax(0,1fr)!important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > .hn-multi-document-list{
    align-self:start!important;
    height:auto!important;
    min-height:0!important;
    max-height:168px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    scrollbar-gutter:stable!important;
  }
}

@media (min-width:1181px) and (max-height:760px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    > .hn-tool-panel.hn-pdf-page-numbers.hn-multi-document-editor-active[data-hn-workspace-profile="multi-document-editor"]
    > .hn-multi-document-workspace-root{
    grid-template-rows:auto minmax(0,1fr)!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active
    .hn-multi-document-workspace-root > .hn-multi-document-list{
    height:auto!important;
    min-height:0!important;
    max-height:154px!important;
  }
}

/* ================================================================
   v1.9.31 — Add Page Numbers left-rail width alignment
   Settings cards and pinned action dock use exactly the same horizontal
   content rail as the uploaded-file cards. Presentation only.
   ================================================================ */
@media (min-width:1181px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-settings{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    padding-left:1px!important;
    padding-right:3px!important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-pn-settings-scroll{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-section,
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-pn-settings-footer{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin-left:0!important;
    margin-right:0!important;
  }
}


/* ================================================================
   v1.9.32 — Add Page Numbers exact left-rail visible width alignment
   Root cause: the settings scroller reserved a permanent scrollbar gutter,
   making every accordion card visually ~15-20px narrower than the uploaded
   file card even when no settings scrollbar was visible.
   ================================================================ */
@media (min-width:1181px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-pn-settings-scroll{
    scrollbar-gutter:auto!important;
    padding-right:0!important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-settings{
    padding-left:0!important;
    padding-right:0!important;
  }

  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-page-number-section,
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers.hn-multi-document-editor-active .hn-pn-settings-footer{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
}


/* ============================================================
   v1.9.34 — Direct watermark rotation handle in live previews
============================================================ */
.hn-pdf-watermark .hn-watermark-preview-selection .hn-watermark-rotate-handle,
.hn-pdf-watermark .hn-watermark-expanded-selection .hn-watermark-rotate-handle{
  appearance:none!important;
  position:absolute!important;
  left:50%!important;
  top:-31px!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  padding:0!important;
  margin:0!important;
  transform:translateX(-50%)!important;
  border:2px solid #fff!important;
  border-radius:50%!important;
  background:#2563eb!important;
  box-shadow:0 2px 8px rgba(15,23,42,.35),0 0 0 1px rgba(37,99,235,.22)!important;
  cursor:grab!important;
  pointer-events:auto!important;
  touch-action:none!important;
  z-index:8!important;
}
.hn-pdf-watermark .hn-watermark-preview-selection .hn-watermark-rotate-handle::before,
.hn-pdf-watermark .hn-watermark-expanded-selection .hn-watermark-rotate-handle::before{
  content:"";
  position:absolute;
  left:50%;
  top:16px;
  width:1.5px;
  height:13px;
  transform:translateX(-50%);
  border-radius:999px;
  background:#2563eb;
  box-shadow:0 0 0 1px rgba(255,255,255,.65);
}
.hn-pdf-watermark .hn-watermark-preview-selection .hn-watermark-rotate-handle::after,
.hn-pdf-watermark .hn-watermark-expanded-selection .hn-watermark-rotate-handle::after{
  content:"↻";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:1;
}
.hn-pdf-watermark .hn-watermark-preview-selection .hn-watermark-rotate-handle:hover,
.hn-pdf-watermark .hn-watermark-expanded-selection .hn-watermark-rotate-handle:hover{
  background:#1d4ed8!important;
}
.hn-pdf-watermark .hn-watermark-preview-selection.is-rotating .hn-watermark-rotate-handle,
.hn-pdf-watermark .hn-watermark-expanded-selection.is-rotating .hn-watermark-rotate-handle{
  cursor:grabbing!important;
  background:#1d4ed8!important;
  box-shadow:0 2px 10px rgba(15,23,42,.4),0 0 0 3px rgba(96,165,250,.24)!important;
}
.hn-pdf-watermark .hn-watermark-preview-selection.is-rotating .hn-watermark-rotate-handle[data-angle]::after,
.hn-pdf-watermark .hn-watermark-expanded-selection.is-rotating .hn-watermark-rotate-handle[data-angle]::after{
  content:attr(data-angle);
  inset:auto auto 24px 50%;
  transform:translateX(-50%);
  width:max-content;
  min-width:36px;
  height:20px;
  padding:0 6px;
  border-radius:6px;
  background:#0f172a;
  color:#fff;
  font-size:9px;
  font-weight:800;
  line-height:20px;
  box-shadow:0 3px 10px rgba(15,23,42,.28);
}

/* v1.9.34 — Page Numbers toolbar geometry must not move when B/I/U toggles change state. */
.hn-pdf-page-numbers .hn-pn-live-settings{
  align-items:center!important;
}
.hn-pdf-page-numbers .hn-pn-live-format{
  display:inline-flex!important;align-items:center!important;gap:3px!important;
  height:27px!important;min-height:27px!important;max-height:27px!important;
  line-height:27px!important;vertical-align:middle!important;
}
.hn-pdf-page-numbers .hn-pn-format-toggle{
  position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:27px!important;min-width:27px!important;max-width:27px!important;
  height:27px!important;min-height:27px!important;max-height:27px!important;
  flex:0 0 27px!important;margin:0!important;padding:0!important;line-height:1!important;vertical-align:middle!important;
}
.hn-pdf-page-numbers .hn-pn-format-toggle>input{
  position:absolute!important;width:1px!important;min-width:0!important;height:1px!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;
  left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
}
.hn-pdf-page-numbers .hn-pn-format-icon{
  box-sizing:border-box!important;width:27px!important;min-width:27px!important;max-width:27px!important;
  height:27px!important;min-height:27px!important;max-height:27px!important;flex:0 0 27px!important;
  margin:0!important;padding:0!important;border-width:1px!important;line-height:1!important;transform:none!important;
}
.hn-pdf-page-numbers .hn-pn-format-toggle>input:checked+.hn-pn-format-icon{
  border-width:1px!important;transform:none!important;box-shadow:none!important;
}


/* ================================================================
   v1.9.46 — Watermark mobile polish + preview hardening follow-up
   ================================================================ */
@media (max-width:780px){
  /* Remove any remaining wrapper chrome behind Watermark's own cards. */
  html body .hn-tool-shell.hn-convert-workspace.hn-watermark-flatten-shell,
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]),
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio,
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-inspector{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0!important;
  }

  /* Keep reset beside the swatch instead of floating over it. */
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-color-field{
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) auto!important;
    align-items:center!important;
    column-gap:8px!important;
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-color-field > span{min-width:0!important}
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-color-field > .hn-color-reset-btn{
    position:static!important;
    right:auto!important;
    bottom:auto!important;
    margin-left:auto!important;
    align-self:center!important;
    height:22px!important;
    min-height:22px!important;
    padding:0 6px!important;
    transform:none!important;
    background:#fff!important;
    border:1px solid #dbe3ef!important;
    border-radius:7px!important;
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option:has(> input[type="color"]){
    grid-template-columns:16px minmax(0,1fr) 42px auto!important;
    align-items:center!important;
    padding:8px 9px!important;
    min-height:54px!important;
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option:has(> input[type="color"]) > input[type="color"]{
    grid-column:3!important;
    justify-self:end!important;
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-style-option:has(> input[type="color"]) > .hn-color-reset-btn{
    position:static!important;
    grid-column:4!important;
    grid-row:1!important;
    margin-left:auto!important;
    align-self:center!important;
    height:22px!important;
    min-height:22px!important;
    padding:0 6px!important;
    transform:none!important;
    background:#fff!important;
    border:1px solid #dbe3ef!important;
    border-radius:7px!important;
  }

  /* Tidy live-preview controls into consistent control rows. */
  .hn-pdf-watermark .hn-watermark-preview-toolbar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
    align-items:stretch!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-files,
  .hn-pdf-watermark .hn-watermark-preview-pages{
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr) 32px!important;
    gap:4px!important;
    align-items:center!important;
    padding:4px!important;
    border:1px solid #243145!important;
    border-radius:10px!important;
    background:#111827!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-zoom{
    display:grid!important;
    grid-template-columns:32px minmax(50px,1fr) 32px minmax(58px,auto)!important;
    gap:4px!important;
    align-items:center!important;
    padding:4px!important;
    border:1px solid #243145!important;
    border-radius:10px!important;
    background:#111827!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-toolbar button,
  .hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-file-status,
  .hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-page-status{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-file-status,
  .hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-page-status,
  .hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-zoom-level{
    font-variant-numeric:tabular-nums!important;
  }
}

@media (min-width:781px){
  /* Watermark-only desktop source cards: slightly shorter left rail. */
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card{
    padding:8px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:104px!important;
    min-height:104px!important;
    max-height:104px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-info{
    padding:5px 1px 0!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-name{
    max-height:23px!important;
    font-size:10px!important;
    line-height:1.14!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-meta{
    margin-top:1px!important;
  }
}


/* ================================================================
   v1.9.47 — Watermark follow-up fixes and premium preview polish
   ================================================================ */
@media (max-width:780px){
  /* Remove the last remaining outer wrapper/card feel around the settings stack. */
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]){
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0!important;
  }
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-watermark-studio,
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-inspector,
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-settings{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0!important;
  }
  .hn-pdf-watermark .hn-watermark-settings{display:contents!important}

  /* Mobile preview area should not trap scroll or jump the page. */
  .hn-pdf-watermark .hn-watermark-preview-panel{
    position:static!important;
    top:auto!important;
  }

  /* Preserve neat spacing after flattening the outer wrapper. */
  .hn-pdf-watermark .hn-watermark-actions{margin-bottom:8px!important}
}

@media (min-width:781px){
  /* Premium desktop preview composition. */
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-panel{
    border-radius:20px!important;
    padding:16px!important;
    border:1px solid rgba(59,130,246,.18)!important;
    box-shadow:0 18px 42px rgba(15,23,42,.18)!important;
    background:linear-gradient(180deg,#0b1730 0%, #0f172a 100%)!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-head{
    margin-bottom:12px!important;
    padding-bottom:10px!important;
    border-bottom:1px solid rgba(148,163,184,.16)!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-head strong{
    font-size:15px!important;
    letter-spacing:.01em!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-head span:not(.hn-watermark-preview-badge){
    font-size:10.5px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-toolbar{
    gap:8px!important;
    margin-bottom:12px!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-files,
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-pages,
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-zoom{
    padding:4px!important;
    border:1px solid rgba(148,163,184,.14)!important;
    border-radius:10px!important;
    background:rgba(15,23,42,.38)!important;
    backdrop-filter:blur(6px)!important;
  }
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-stage{
    border-radius:14px!important;
    padding:16px!important;
    background:repeating-conic-gradient(#16223a 0 25%,#101827 0 50%) 50%/18px 18px!important;
    box-shadow:inset 0 0 0 1px rgba(148,163,184,.10)!important;
  }

  /* Restore left source cards to a calmer compact size (not too small). */
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card{
    padding:9px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:116px!important;
    min-height:116px!important;
    max-height:116px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-name{
    max-height:24px!important;
    font-size:10.3px!important;
    line-height:1.16!important;
  }
}


/* ================================================================
   v1.9.48 — Watermark preview/button/card follow-up
   ================================================================ */
@media (min-width:781px){
  /* Give Watermark's left source rail more presence on desktop. */
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card{
    padding:10px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:132px!important;
    min-height:132px!important;
    max-height:132px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-name{
    max-height:26px!important;
    font-size:10.8px!important;
    line-height:1.18!important;
  }

  /* Desktop preview toolbar: cleaner segmented groups and calmer spacing. */
  html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] .hn-watermark-preview-toolbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;
    gap:10px!important;
    align-items:stretch!important;
    margin-bottom:14px!important;
  }
}

/* Unified compact preview control language. */
.hn-pdf-watermark .hn-watermark-preview-files,
.hn-pdf-watermark .hn-watermark-preview-pages{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) 36px!important;
  gap:6px!important;
  align-items:center!important;
  min-width:0!important;
  padding:5px!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:12px!important;
  background:rgba(15,23,42,.32)!important;
}
.hn-pdf-watermark .hn-watermark-preview-zoom{
  display:grid!important;
  grid-template-columns:36px minmax(54px,1fr) 36px auto!important;
  gap:6px!important;
  align-items:center!important;
  min-width:0!important;
  padding:5px!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:12px!important;
  background:rgba(15,23,42,.32)!important;
}
.hn-pdf-watermark .hn-watermark-preview-toolbar button,
.hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-file-status,
.hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-page-status{
  height:36px!important;
  min-height:36px!important;
  border-radius:10px!important;
  font-size:12px!important;
}
.hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-file-status,
.hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-page-status{
  min-width:0!important;
  padding:0 10px!important;
}
.hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-zoom-level{
  min-width:54px!important;
  font-variant-numeric:tabular-nums!important;
}

@media (max-width:780px){
  /* Mobile preview toolbar: simpler, less chunky. */
  .hn-pdf-watermark .hn-watermark-preview-toolbar{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    align-items:stretch!important;
    margin-bottom:10px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-files{grid-column:1!important;grid-row:1!important}
  .hn-pdf-watermark .hn-watermark-preview-pages{grid-column:2!important;grid-row:1!important}
  .hn-pdf-watermark .hn-watermark-preview-zoom{grid-column:1 / -1!important;grid-row:2!important}
  .hn-pdf-watermark .hn-watermark-preview-files,
  .hn-pdf-watermark .hn-watermark-preview-pages,
  .hn-pdf-watermark .hn-watermark-preview-zoom{
    padding:4px!important;
    gap:4px!important;
    border-radius:11px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-files,
  .hn-pdf-watermark .hn-watermark-preview-pages{
    grid-template-columns:32px minmax(0,1fr) 32px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-zoom{
    grid-template-columns:32px minmax(48px,1fr) 32px auto!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-toolbar button,
  .hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-file-status,
  .hn-pdf-watermark .hn-watermark-preview-toolbar .hn-watermark-preview-page-status{
    height:34px!important;
    min-height:34px!important;
    font-size:11px!important;
  }
}


/* ================================================================
   v1.9.49 — Watermark mobile settings restore + premium large preview
   ================================================================ */
@media (max-width:780px){
  /* Restore the settings stack; only flatten the outer chrome, not the content tree. */
  .hn-pdf-watermark .hn-watermark-settings{
    display:grid!important;
    gap:8px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .hn-pdf-watermark .hn-watermark-inspector{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:max-content max-content!important;
    gap:8px!important;
  }
  .hn-pdf-watermark .hn-watermark-actions{
    background:#fff!important;
    border:1px solid #e2e8f0!important;
    border-radius:18px!important;
    box-shadow:0 8px 26px rgba(15,23,42,.07)!important;
    padding:18px!important;
    margin-bottom:8px!important;
  }
  .hn-pdf-watermark .hn-watermark-settings .hn-watermark-section{
    border-radius:18px!important;
    border:1px solid #e2e8f0!important;
    background:#fff!important;
    box-shadow:0 8px 26px rgba(15,23,42,.05)!important;
    overflow:hidden!important;
  }
}

@media (min-width:781px){
  /* Desktop source rail: genuinely larger card footprint. */
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card{
    padding:11px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:154px!important;
    min-height:154px!important;
    max-height:154px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-name{
    max-height:28px!important;
    font-size:11px!important;
    line-height:1.2!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-meta{
    font-size:9.6px!important;
  }
}

/* Large preview modal: more premium control language. */
.hn-watermark-preview-modal-dialog{
  border-radius:24px!important;
  box-shadow:0 38px 120px rgba(2,6,23,.62)!important;
}
.hn-watermark-preview-modal-head{
  padding:18px 20px!important;
  background:linear-gradient(180deg,#0d1830 0%, #0f172a 100%)!important;
}
.hn-watermark-preview-modal-title strong{font-size:18px!important;letter-spacing:-.01em!important}
.hn-watermark-preview-modal-title span{font-size:12px!important;color:#9fb0c7!important}
.hn-watermark-preview-modal-close{
  width:54px!important;height:54px!important;border-radius:16px!important;
  background:rgba(15,23,42,.58)!important;border:1px solid rgba(148,163,184,.18)!important;
  box-shadow:0 10px 28px rgba(2,6,23,.28)!important;color:#e5edf8!important;font-size:28px!important;
}
.hn-watermark-preview-modal-close:hover{background:#1b2840!important;border-color:#7aa2ff!important}
.hn-watermark-preview-modal-toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:stretch!important;
  padding:14px 20px!important;
  background:linear-gradient(180deg,#0f1b32 0%, #0f1a2d 100%)!important;
}
.hn-watermark-preview-modal-toolbar .hn-watermark-preview-files,
.hn-watermark-preview-modal-toolbar .hn-watermark-preview-pages{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) 40px!important;
  gap:6px!important;
  align-items:center!important;
  padding:6px!important;
  border:1px solid rgba(148,163,184,.16)!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.35)!important;
}
.hn-watermark-preview-modal-toolbar .hn-watermark-preview-zoom{
  display:grid!important;
  grid-template-columns:40px minmax(62px,1fr) 40px auto!important;
  gap:6px!important;
  align-items:center!important;
  padding:6px!important;
  border:1px solid rgba(148,163,184,.16)!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.35)!important;
}
.hn-watermark-preview-modal-toolbar button,
.hn-watermark-preview-modal-toolbar .hn-watermark-expanded-file-status,
.hn-watermark-preview-modal-toolbar .hn-watermark-expanded-page-status,
.hn-watermark-preview-modal-toolbar .hn-watermark-expanded-zoom-level{
  height:42px!important;
  min-height:42px!important;
  border-radius:12px!important;
  font-size:14px!important;
  font-weight:800!important;
}
.hn-watermark-preview-modal-toolbar .hn-watermark-expanded-file-status,
.hn-watermark-preview-modal-toolbar .hn-watermark-expanded-page-status{
  min-width:0!important;
  padding:0 14px!important;
}
.hn-watermark-preview-modal-toolbar .hn-watermark-expanded-zoom-level{
  min-width:62px!important;
  font-variant-numeric:tabular-nums!important;
}
.hn-watermark-preview-modal-toolbar .hn-watermark-expanded-fit{
  min-width:92px!important;
  padding:0 16px!important;
}
.hn-watermark-expanded-stage{
  padding:18px!important;
  background:linear-gradient(180deg,#0d172b 0%,#0b1424 100%)!important;
}

@media (max-width:780px){
  .hn-watermark-preview-modal-head{padding:16px 18px!important}
  .hn-watermark-preview-modal-title strong{font-size:17px!important}
  .hn-watermark-preview-modal-close{width:50px!important;height:50px!important;border-radius:14px!important}
  .hn-watermark-preview-modal-toolbar{
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    padding:12px 16px!important;
  }
  .hn-watermark-preview-modal-toolbar .hn-watermark-preview-files{grid-column:1!important;grid-row:1!important}
  .hn-watermark-preview-modal-toolbar .hn-watermark-preview-pages{grid-column:2!important;grid-row:1!important}
  .hn-watermark-preview-modal-toolbar .hn-watermark-preview-zoom{grid-column:1 / -1!important;grid-row:2!important}
  .hn-watermark-preview-modal-toolbar .hn-watermark-preview-files,
  .hn-watermark-preview-modal-toolbar .hn-watermark-preview-pages{grid-template-columns:36px minmax(0,1fr) 36px!important}
  .hn-watermark-preview-modal-toolbar .hn-watermark-preview-zoom{grid-template-columns:36px minmax(56px,1fr) 36px auto!important}
  .hn-watermark-preview-modal-toolbar button,
  .hn-watermark-preview-modal-toolbar .hn-watermark-expanded-file-status,
  .hn-watermark-preview-modal-toolbar .hn-watermark-expanded-page-status,
  .hn-watermark-preview-modal-toolbar .hn-watermark-expanded-zoom-level{
    height:40px!important;min-height:40px!important;font-size:13px!important;
  }
}


/* ================================================================
   v1.9.50 — Watermark mobile wrapper cleanup + filename clamp + taller cards
   ================================================================ */
/* Live preview header: never let long filenames push the action button down. */
.hn-pdf-watermark .hn-watermark-preview-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:start!important;
}
.hn-pdf-watermark .hn-watermark-preview-head > div:first-child{
  min-width:0!important;
  display:grid!important;
  gap:4px!important;
}
.hn-pdf-watermark .hn-watermark-preview-head .hn-watermark-preview-file{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.hn-pdf-watermark .hn-watermark-preview-head-actions{
  justify-self:end!important;
  align-self:start!important;
  flex:0 0 auto!important;
}
.hn-pdf-watermark .hn-watermark-preview-expand{max-width:100%!important}

/* Large-preview title row: clamp the filename there too. */
.hn-watermark-preview-modal-title{min-width:0!important}
.hn-watermark-preview-modal-title span{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

@media (max-width:780px){
  /* Remove the remaining mobile outer wrapper only; keep inner cards/sections. */
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-watermark-studio,
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"] > .hn-watermark-studio > .hn-watermark-inspector{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0!important;
    overflow:visible!important;
  }
  /* Keep action and setting sections as the only visible cards. */
  .hn-pdf-watermark .hn-watermark-actions{
    margin-top:0!important;
  }
}

@media (min-width:781px){
  /* Do not widen the rail; make cards taller instead. */
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card{
    padding:10px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:184px!important;
    min-height:184px!important;
    max-height:184px!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-info{
    padding:6px 1px 0!important;
  }
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-name{
    max-height:30px!important;
    font-size:11px!important;
    line-height:1.2!important;
  }
}


/* ================================================================
   v1.9.51 — exact mobile outer-panel removal + card height trim
   ================================================================ */
@media (max-width:780px){
  /* Exact target: the remaining rounded white box is the loaded Watermark
     tool panel itself. Remove only its chrome; inner action/settings cards
     keep their own backgrounds, borders and shadows. */
  html body .hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]){
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    outline:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0!important;
  }
  html body .hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio,
  html body .hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) > .hn-watermark-studio > .hn-watermark-inspector,
  html body .hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]) .hn-watermark-settings{
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    outline:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
}

@media (min-width:781px){
  /* Keep the corrected narrow rail; trim only vertical card height. */
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:166px!important;
    min-height:166px!important;
    max-height:166px!important;
  }
}


/* ================================================================
   v1.9.52 — exact Core settings-wrapper removal on Watermark mobile
   ================================================================ */
@media (max-width:780px){
  /* Root cause: Core may wrap tool settings in this generic white card.
     Watermark already has its own action/preset/accordion cards, so the
     generic wrapper must contribute layout only, never another visible card. */
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"].has-files .hn-workspace-settings-card,
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"].has-files .hn-workspace-settings-body,
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"].has-files > .hn-workspace-settings-card,
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"].has-files > .hn-workspace-settings-card > .hn-workspace-settings-body{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    outline:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  html body .hn-tool-shell.hn-convert-workspace .hn-pdf-watermark[data-mode="watermark"].has-files .hn-workspace-settings-head{
    display:none!important;
  }

  /* Also neutralize a wrapper if Core places it directly beside the Watermark
     studio instead of inside it during a workspace refresh. */
  html body .hn-tool-shell.hn-convert-workspace:has(> .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files)
    > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files > .hn-workspace-settings-card{
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
}

@media (min-width:781px){
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:154px!important;
    min-height:154px!important;
    max-height:154px!important;
  }
}


/* ================================================================
   v1.9.53 — dynamic common-ancestor chrome removal
   ================================================================ */
@media (max-width:780px){
  /* JS marks every common ancestor around Add Watermark + Quick Designs.
     Kill element chrome AND pseudo-element chrome; keep the real inner cards. */
  html body .hn-watermark-mobile-outer-chrome{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    border:0!important;
    outline:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    filter:none!important;
    backdrop-filter:none!important;
  }
  html body .hn-watermark-mobile-outer-chrome::before,
  html body .hn-watermark-mobile-outer-chrome::after{
    content:none!important;
    display:none!important;
    background:none!important;
    border:0!important;
    box-shadow:none!important;
  }
}

@media (min-width:781px){
  /* Same width as v1.9.52; just a small vertical reduction. */
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  :is(html body .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"], html body .hn-tool-panel.hn-pdf-redact.hn-redact-has-file) > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:146px!important;
    min-height:146px!important;
    max-height:146px!important;
  }
}


/* ================================================================
   v1.9.57 — Watermark mobile preview / fixed-rail clearance
   Real final flex item, matching the stable Page Numbers solution.
   ================================================================ */
.hn-watermark-mobile-rail-spacer{
  display:none;
}
@media (max-width:780px){
  html body .hn-tool-shell.hn-convert-workspace
    .hn-pdf-watermark[data-mode="watermark"].has-files
    .hn-watermark-mobile-rail-spacer{
    display:block!important;
    flex:0 0 calc(var(--hn-mobile-rail-measured,96px) + 32px + env(safe-area-inset-bottom,0px))!important;
    width:100%!important;
    height:calc(var(--hn-mobile-rail-measured,96px) + 32px + env(safe-area-inset-bottom,0px))!important;
    min-height:calc(var(--hn-mobile-rail-measured,96px) + 32px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    pointer-events:none!important;
    visibility:hidden!important;
  }
}


/* ================================================================
   v1.9.58 — authoritative mobile rail clearance + desktop rail inset
   ================================================================ */
/* v1.9.57's local spacer is retired. */
.hn-watermark-mobile-rail-spacer{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important}

@media (max-width:780px){
  /* v1.9.51 intentionally removed the visible outer Watermark panel chrome,
     but its padding:0 also erased Core's real fixed-bottom-rail scroll reserve.
     Keep the panel transparent while restoring ONLY a bottom flow inset. */
  html body .hn-tool-shell.hn-convert-workspace
    > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]){
    padding-top:0!important;
    padding-right:0!important;
    padding-left:0!important;
    padding-bottom:calc(var(--hn-mobile-rail-measured,84px) + 44px + env(safe-area-inset-bottom,0px))!important;
    height:auto!important;
    min-height:calc(100dvh - var(--hn-mobile-topbar-height,60px))!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
    box-sizing:border-box!important;
    scroll-margin-bottom:calc(var(--hn-mobile-rail-measured,84px) + 24px)!important;
  }

  /* The preview remains normal-flow/full-size; only its scroll target gets
     rail-aware breathing room when brought to the end of the viewport. */
  html body .hn-pdf-watermark[data-mode="watermark"].has-files .hn-watermark-preview-panel{
    max-height:none!important;
    margin-bottom:0!important;
    scroll-margin-bottom:calc(var(--hn-mobile-rail-measured,84px) + 44px + env(safe-area-inset-bottom,0px))!important;
  }
}

@media (min-width:781px){
  /* Keep the existing rounded source-rail box. Remove only the oversized
     generic Core inset between that box and its Watermark cards. */
  html body .hn-tool-shell.hn-convert-workspace:not(.hn-empty-workspace)
    > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"])
    > .hn-file-queue,
html body .hn-tool-shell.hn-convert-workspace:not(.hn-empty-workspace)
    > .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"])
    > .hn-file-queue{
    padding:5px 4px 7px!important;
    gap:8px!important;
    height:auto!important;
    min-height:0!important;
    max-height:100%!important;
    align-content:start!important;
    align-self:start!important;
    box-sizing:border-box!important;
  }
}


/* ================================================================
   v1.9.59 — authoritative Watermark mobile single-scroller repair
   ================================================================ */
@media (max-width:780px){
  /* Core's fixed workspace shell is the ONLY vertical scroller. */
  html body .hn-tool-shell.hn-convert-workspace.hn-watermark-flatten-shell,
  html body .hn-tool-shell.hn-convert-workspace:has(> .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files){
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    scroll-behavior:auto!important;
  }

  /* Watermark content participates in shell flow; never become a nested scroller. */
  html body .hn-tool-shell.hn-convert-workspace
    > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]){
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
    overscroll-behavior:auto!important;
    touch-action:pan-y!important;
    padding-bottom:calc(var(--hn-mobile-rail-measured,84px) + 88px + env(safe-area-inset-bottom,0px))!important;
  }
  html body .hn-pdf-watermark[data-mode="watermark"].has-files > .hn-watermark-studio,
  html body .hn-pdf-watermark[data-mode="watermark"].has-files .hn-watermark-inspector,
  html body .hn-pdf-watermark[data-mode="watermark"].has-files .hn-watermark-settings,
  html body .hn-pdf-watermark[data-mode="watermark"].has-files .hn-watermark-preview-panel{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    overscroll-behavior:auto!important;
  }
}


/* ================================================================
   v1.9.60 — Watermark mobile reserve, hint placement, and upload screen polish
   ================================================================ */
@media (max-width:780px){
  /* 1) The page was overshooting below the preview because bottom reserve was too large.
     Keep enough room for the fixed tool rail, but match the other tools' feel. */
  html body .hn-tool-shell.hn-convert-workspace
    > .hn-tool-panel.hn-pdf-watermark[data-mode="watermark"].has-files:not([data-hn-main-output="1"]){
    padding-bottom:calc(var(--hn-mobile-rail-measured,84px) + 12px + env(safe-area-inset-bottom,0px))!important;
    scroll-margin-bottom:calc(var(--hn-mobile-rail-measured,84px) + 12px + env(safe-area-inset-bottom,0px))!important;
  }
  html body .hn-pdf-watermark[data-mode="watermark"].has-files .hn-watermark-preview-panel{
    scroll-margin-bottom:calc(var(--hn-mobile-rail-measured,84px) + 12px + env(safe-area-inset-bottom,0px))!important;
  }

  /* 2) Place the drag hint as a centered premium chip instead of an awkward sticky bubble. */
  .hn-pdf-watermark .hn-watermark-preview-stage{
    position:relative!important;
    padding-bottom:52px!important;
  }
  .hn-pdf-watermark .hn-watermark-preview-drag-hint{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    bottom:12px!important;
    top:auto!important;
    transform:translateX(-50%)!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    max-width:calc(100% - 24px)!important;
    padding:8px 14px!important;
    border-radius:999px!important;
    border:1px solid rgba(147,197,253,.34)!important;
    background:rgba(15,23,42,.92)!important;
    box-shadow:0 10px 24px rgba(2,6,23,.24)!important;
    color:#eff6ff!important;
    font-size:10px!important;
    font-weight:800!important;
    letter-spacing:.01em!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    backdrop-filter:blur(10px)!important;
  }

}

/* v1.9.67 — Add Page Numbers mobile polish: accordion copy, live controls, drag hint. */
@media (max-width:780px){
  .hn-pdf-page-numbers .hn-page-number-section > summary{
    min-height:74px!important;
    padding:12px 14px!important;
    gap:12px!important;
    align-items:center!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-copy{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:5px!important;
    min-width:0!important;
    flex:1 1 auto!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-title{
    display:block!important;
    width:100%!important;
    overflow:visible!important;
    white-space:normal!important;
    text-overflow:clip!important;
    font-size:14px!important;
    font-weight:850!important;
    line-height:1.18!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-copy small{
    display:block!important;
    width:100%!important;
    margin:0!important;
    overflow:visible!important;
    white-space:normal!important;
    text-overflow:clip!important;
    color:#64748b!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1.35!important;
  }
  .hn-pdf-page-numbers .hn-pn-section-actions{
    flex:0 0 auto!important;
    gap:7px!important;
  }

  /* Live-preview controls: real mobile rows, no clipped half-controls. */
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-live-settings{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px 9px!important;
    width:100%!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    overflow:visible!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-field{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:7px!important;
    min-width:0!important;
    font-size:12px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-field > span{
    font-size:12px!important;
    line-height:1.2!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-settings .hn-select,
  .hn-pdf-page-numbers .hn-pn-live-settings .hn-input{
    width:100%!important;
    min-width:0!important;
    height:42px!important;
    min-height:42px!important;
    padding:7px 10px!important;
    border:1px solid #d8e0ea!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#0f172a!important;
    font-size:13px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-font .hn-pn-font,
  .hn-pdf-page-numbers .hn-pn-live-size .hn-pn-font-size,
  .hn-pdf-page-numbers .hn-pn-live-position .hn-pn-position{
    width:100%!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color,
  .hn-pdf-page-numbers .hn-pn-live-format,
  .hn-pdf-page-numbers .hn-pn-live-opacity,
  .hn-pdf-page-numbers .hn-pn-preview-zoom-control{
    min-height:44px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    padding:5px!important;
    border:1px solid #d8e0ea!important;
    border-radius:12px!important;
    background:#fff!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color .hn-pn-color{
    width:42px!important;height:42px!important;min-height:42px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-format{
    display:flex!important;align-items:center!important;gap:6px!important;
  }
  .hn-pdf-page-numbers .hn-pn-format-icon{
    width:42px!important;height:42px!important;border-radius:12px!important;font-size:16px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity{
    grid-column:1 / -1!important;
    display:grid!important;
    grid-template-columns:auto minmax(120px,1fr) auto!important;
    gap:9px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity .hn-pn-opacity{width:100%!important}
  .hn-pdf-page-numbers .hn-pn-live-opacity output{width:auto!important;font-size:12px!important;color:#64748b!important}
  .hn-pdf-page-numbers .hn-pn-live-position{grid-column:1 / -1!important}

  .hn-pdf-page-numbers .hn-pn-preview-nav{
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr) 52px!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav > .hn-btn{
    width:52px!important;min-width:52px!important;height:52px!important;min-height:52px!important;
    border:1px solid #d8e0ea!important;border-radius:14px!important;background:#fff!important;color:#0f172a!important;font-size:18px!important;
  }
  .hn-pdf-page-numbers .hn-pn-page-control{
    justify-self:center!important;
    display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
    font-size:13px!important;color:#475569!important;
  }
  .hn-pdf-page-numbers .hn-pn-preview-page{
    width:58px!important;height:52px!important;min-height:52px!important;
    border:1px solid #d8e0ea!important;border-radius:14px!important;background:#fff!important;color:#0f172a!important;font-size:16px!important;text-align:center!important;
  }
  .hn-pdf-page-numbers .hn-pn-page-total{font-size:13px!important;color:#64748b!important}

  /* Drag instruction stays centered inside the preview and never clips off-screen. */
  .hn-pdf-page-numbers .hn-pn-preview-stage{
    position:relative!important;
    padding-bottom:54px!important;
  }
  .hn-pdf-page-numbers .hn-pn-preview-drag-hint{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    bottom:12px!important;
    top:auto!important;
    transform:translateX(-50%)!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:max-content!important;
    max-width:calc(100% - 28px)!important;
    padding:8px 13px!important;
    border:1px solid rgba(148,163,184,.34)!important;
    border-radius:999px!important;
    background:rgba(15,23,42,.92)!important;
    box-shadow:0 8px 22px rgba(15,23,42,.2)!important;
    color:#fff!important;
    font-size:10.5px!important;
    font-weight:800!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    pointer-events:none!important;
  }
  .hn-pdf-page-numbers .hn-pn-preview-drag-hint[hidden]{display:none!important}
}


/* ================================================================
   v1.9.68 — Add Page Numbers compact mobile live-preview control matrix
   ================================================================ */
@media (max-width:780px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-live-settings{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:
      "zoom color"
      "font size"
      "format opacity"
      "position position"!important;
    gap:10px 12px!important;
    width:100%!important;
    align-items:center!important;
  }

  .hn-pdf-page-numbers .hn-pn-live-zoom{grid-area:zoom!important}
  .hn-pdf-page-numbers .hn-pn-live-color{grid-area:color!important}
  .hn-pdf-page-numbers .hn-pn-live-font{grid-area:font!important}
  .hn-pdf-page-numbers .hn-pn-live-size{grid-area:size!important}
  .hn-pdf-page-numbers .hn-pn-live-format{grid-area:format!important}
  .hn-pdf-page-numbers .hn-pn-live-opacity{grid-area:opacity!important}
  .hn-pdf-page-numbers .hn-pn-live-position{grid-area:position!important}

  .hn-pdf-page-numbers .hn-pn-live-field,
  .hn-pdf-page-numbers .hn-pn-live-color,
  .hn-pdf-page-numbers .hn-pn-live-format{
    min-width:0!important;
  }

  .hn-pdf-page-numbers .hn-pn-live-field{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:8px!important;
    align-items:center!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-field > span,
  .hn-pdf-page-numbers .hn-pn-live-inline-label{
    flex:0 0 auto!important;
    color:#64748b!important;
    font-size:11.5px!important;
    font-weight:650!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }

  /* Zoom becomes one compact segmented control instead of oversized buttons. */
  .hn-pdf-page-numbers .hn-pn-preview-zoom-control{
    display:grid!important;
    grid-template-columns:38px minmax(46px,1fr) 38px!important;
    align-items:center!important;
    gap:0!important;
    min-height:42px!important;
    overflow:hidden!important;
    border:1px solid #d8e0ea!important;
    border-radius:12px!important;
    background:#fff!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-zoom-control .hn-btn{
    width:38px!important;
    min-width:38px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:transparent!important;
    color:#0f172a!important;
    font-size:16px!important;
    font-weight:850!important;
  }
  .hn-pdf-page-numbers .hn-pn-preview-zoom-control .hn-btn:first-of-type{border-right:1px solid #e5eaf0!important}
  .hn-pdf-page-numbers .hn-pn-preview-zoom-control .hn-btn:last-of-type{border-left:1px solid #e5eaf0!important}
  .hn-pdf-page-numbers .hn-pn-zoom-value{
    min-width:0!important;
    text-align:center!important;
    color:#0f172a!important;
    font-size:12.5px!important;
    font-weight:800!important;
    font-variant-numeric:tabular-nums!important;
  }

  /* Color shares the first row with zoom. */
  .hn-pdf-page-numbers .hn-pn-live-color{
    display:grid!important;
    grid-template-columns:auto 42px minmax(48px,auto)!important;
    align-items:center!important;
    gap:7px!important;
    min-height:42px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color .hn-pn-color{
    width:42px!important;
    height:42px!important;
    min-height:42px!important;
    border-radius:11px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-color .hn-color-reset-btn{
    position:static!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 9px!important;
    margin:0!important;
    border:0!important;
    border-radius:9px!important;
    background:#f8fafc!important;
    box-shadow:none!important;
    color:#475569!important;
    font-size:10.5px!important;
    font-weight:800!important;
  }

  /* Font and size: balanced—not full-width, not cramped. */
  .hn-pdf-page-numbers .hn-pn-live-settings .hn-select,
  .hn-pdf-page-numbers .hn-pn-live-settings .hn-input{
    height:42px!important;
    min-height:42px!important;
    padding:7px 10px!important;
    border-radius:12px!important;
    font-size:12.5px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-size .hn-pn-font-size{
    max-width:none!important;
  }

  /* Style and opacity share one row. Style is a compact segmented button group. */
  .hn-pdf-page-numbers .hn-pn-live-format{
    display:grid!important;
    grid-template-columns:auto repeat(3,38px)!important;
    align-items:center!important;
    justify-content:start!important;
    gap:0!important;
    min-height:42px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-format .hn-pn-live-inline-label{margin-right:8px!important}
  .hn-pdf-page-numbers .hn-pn-format-toggle{display:block!important;margin:0!important}
  .hn-pdf-page-numbers .hn-pn-format-icon{
    width:38px!important;
    height:38px!important;
    border-radius:0!important;
    border:1px solid #d8e0ea!important;
    background:#fff!important;
    font-size:15px!important;
  }
  .hn-pdf-page-numbers .hn-pn-format-toggle:nth-of-type(1) .hn-pn-format-icon{
    border-radius:10px 0 0 10px!important;
  }
  .hn-pdf-page-numbers .hn-pn-format-toggle:nth-of-type(2) .hn-pn-format-icon{
    border-left:0!important;
    border-right:0!important;
  }
  .hn-pdf-page-numbers .hn-pn-format-toggle:nth-of-type(3) .hn-pn-format-icon{
    border-radius:0 10px 10px 0!important;
  }

  .hn-pdf-page-numbers .hn-pn-live-opacity{
    display:grid!important;
    grid-template-columns:auto minmax(70px,1fr) auto!important;
    gap:7px!important;
    align-items:center!important;
    min-height:42px!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity .hn-pn-opacity{
    min-width:70px!important;
    width:100%!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-opacity output{
    min-width:38px!important;
    text-align:right!important;
    font-size:11.5px!important;
    font-weight:800!important;
  }

  /* Position gets the space it actually needs. */
  .hn-pdf-page-numbers .hn-pn-live-position{
    grid-template-columns:auto minmax(0,1fr)!important;
  }

  /* Page navigation: compact center capsule and touch-safe arrows. */
  .hn-pdf-page-numbers .hn-pn-preview-nav{
    display:grid!important;
    grid-template-columns:46px minmax(128px,190px) 46px!important;
    justify-content:center!important;
    align-items:center!important;
    gap:12px!important;
    margin-top:2px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-preview-nav > .hn-btn{
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    border-radius:12px!important;
    font-size:18px!important;
  }
  .hn-pdf-page-numbers .hn-pn-page-control{
    min-height:46px!important;
    padding:0 10px!important;
    border:1px solid #d8e0ea!important;
    border-radius:12px!important;
    background:#fff!important;
    gap:6px!important;
  }
  .hn-pdf-page-numbers .hn-pn-preview-page{
    width:44px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:15px!important;
    font-weight:850!important;
  }

  /* Final drag affordance: anchored inside preview, centered, concise. */
  .hn-pdf-page-numbers .hn-pn-preview-stage{padding-bottom:50px!important}
  .hn-pdf-page-numbers .hn-pn-preview-drag-hint{
    bottom:10px!important;
    max-width:calc(100% - 24px)!important;
    padding:7px 12px!important;
    font-size:10px!important;
    box-shadow:0 8px 20px rgba(15,23,42,.18)!important;
  }
}

/* v1.9.70: server-rendered fixed-output value for specialist conversion routes. */
.hn-tool-panel .hn-fixed-control{display:flex;align-items:center;min-height:42px;padding:9px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;font-weight:700;box-sizing:border-box}


/* ================================================================
   v1.9.74 — Add Page Numbers: Text format in Live Preview toolbar
   ================================================================ */
@media (min-width:781px){
  .hn-pdf-page-numbers .hn-pn-live-text-format .hn-pn-live-text-format-select{
    width:118px!important;
    min-width:118px!important;
    padding-left:7px!important;
    padding-right:22px!important;
  }
}
@media (min-width:1181px) and (max-width:1399px){
  .hn-pdf-page-numbers .hn-pn-live-text-format .hn-pn-live-text-format-select{
    width:108px!important;
    min-width:108px!important;
  }
}
@media (max-width:780px){
  html body .hn-tool-shell.hn-convert-workspace.hn-multi-document-workspace
    .hn-pdf-page-numbers .hn-pn-live-settings{
    grid-template-areas:
      "zoom color"
      "textformat textformat"
      "font size"
      "format opacity"
      "position position"!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-text-format{
    grid-area:textformat!important;
    grid-template-columns:auto minmax(0,1fr)!important;
  }
  .hn-pdf-page-numbers .hn-pn-live-text-format .hn-pn-live-text-format-select{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}

/* ============================================================
   v1.9.75 — Page Numbers mobile B/I/U segmented-control repair.
   A legacy 27px toolbar contract remained active on the label wrappers while
   the mobile icons had grown to 38px, so the children overflowed their labels
   and the three style controls looked detached/misaligned. Keep one true
   38px segmented group on phones and target the semantic icon classes instead
   of nth-of-type, which is fragile inside the mixed live-toolbar markup.
============================================================ */
@media (max-width: 780px){
  .hn-pdf-page-numbers .hn-pn-live-format {
    display: grid !important;
    grid-template-columns: auto repeat(3, 38px) !important;
    align-items: center !important;
    justify-content: start !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    min-height: 42px !important;
    height: auto !important;
    max-height: none !important;
    line-height: normal !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-icon {
    box-sizing: border-box !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d8e0ea !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-icon.hn-pn-format-bold {
    border-radius: 10px 0 0 10px !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-icon.hn-pn-format-italic {
    border-left: 0 !important;
    border-right: 0 !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-icon.hn-pn-format-underline {
    border-radius: 0 10px 10px 0 !important;
  }
  .hn-pdf-page-numbers .hn-pn-format-toggle > input:checked + .hn-pn-format-icon {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.08) !important;
  }
}

/* ============================================================
   v1.9.76 — Page Numbers style glyph clarity.
   The prior A/A/A samples relied on subtle font styling and were ambiguous on
   small screens. Use standard B / I / U toolbar glyphs and a stronger selected
   state while preserving the same checkbox/state/output contract.
============================================================ */
.hn-pdf-page-numbers .hn-pn-format-icon.hn-pn-format-bold {
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}
.hn-pdf-page-numbers .hn-pn-format-icon.hn-pn-format-italic {
  font-style: italic !important;
  font-weight: 700 !important;
}
.hn-pdf-page-numbers .hn-pn-format-icon.hn-pn-format-underline {
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}
.hn-pdf-page-numbers .hn-pn-format-toggle > input:checked + .hn-pn-format-icon {
  border-color: #2563eb !important;
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  box-shadow: inset 0 0 0 1px #2563eb !important;
}
@media (max-width: 780px){
  .hn-pdf-page-numbers .hn-pn-format-icon {
    font-size: 17px !important;
  }
}

/* v1.9.78 — Redact PDF workspace. */

.hn-redact-controls,.hn-redact-editor{border:1px solid #dbe3ef;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.055);}

.hn-redact-mode-group{display:grid;gap:9px}.hn-redact-mode-group>.hn-label{font-weight:800;color:#0f172a}
.hn-redact-mode-card{position:relative;display:grid;gap:4px;padding:12px 12px 12px 38px;border:1px solid #dbe3ef;border-radius:12px;background:#f8fafc;cursor:pointer}
.hn-redact-mode-card input{position:absolute;left:13px;top:15px}.hn-redact-mode-card strong{font-size:13px;color:#0f172a}.hn-redact-mode-card span{font-size:11px;line-height:1.45;color:#64748b}
.hn-redact-mode-card.is-active{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.08)}
.hn-redact-option-grid{display:grid;grid-template-columns:1fr;gap:10px}.hn-redact-inline-actions{display:flex;gap:7px;flex-wrap:wrap}
.hn-redact-warning{padding:10px 11px;border-radius:10px;font-size:11px;line-height:1.45}.hn-redact-warning-permanent{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.hn-redact-warning-visual{background:#fff7ed;border:1px solid #fdba74;color:#9a3412}


.hn-redact-stage{background:#e9eef5;}.hn-redact-empty{margin:auto;color:#64748b;font-size:13px}
.hn-redact-canvas-wrap{line-height:0;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.18);user-select:none;-webkit-user-select:none;touch-action:none;}
.hn-redact-page-canvas{display:block;max-width:100%;height:auto}.hn-redact-overlay-canvas{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;touch-action:none}
.hn-redact-hint{margin:0;padding:9px 12px;border-top:1px solid #e2e8f0;background:#fff;color:#64748b;font-size:11px;line-height:1.45}
.hn-redact-export-row{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 14px;border:1px solid #dbe3ef;border-radius:14px;background:#fff}.hn-redact-export-summary{margin-right:auto;color:#64748b;font-size:12px;font-weight:700}.hn-redact-export{min-width:190px}
@media (max-width:980px){.hn-redact-export-row{grid-column:auto}}
@media (max-width:640px){.hn-redact-export-row{align-items:stretch;flex-direction:column}.hn-redact-export-summary{margin-right:0}.hn-redact-export{width:100%}}

/* v1.9.82 — Redact PDF workspace UI ownership. */

body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded .hn-workspace-add-card{display:none!important}


.hn-pdf-redact .hn-redact-mode-card{position:relative!important;display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:10px!important;row-gap:2px!important;padding:11px 12px!important;border-radius:12px!important;align-items:start!important}
.hn-pdf-redact .hn-redact-mode-card input[type="radio"]{position:static!important;grid-column:1!important;grid-row:1 / span 2!important;width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;min-height:17px!important;max-height:17px!important;margin:1px 0 0!important;padding:0!important;border-radius:50%!important;appearance:auto!important;-webkit-appearance:radio!important;box-shadow:none!important;transform:none!important;accent-color:#2563eb!important}
.hn-pdf-redact .hn-redact-mode-card strong{grid-column:2!important;grid-row:1!important;font-size:13px!important;line-height:1.25!important}
.hn-pdf-redact .hn-redact-mode-card span{grid-column:2!important;grid-row:2!important;font-size:11px!important;line-height:1.38!important}
.hn-pdf-redact .hn-redact-option-grid{gap:9px!important}
.hn-pdf-redact .hn-redact-option-grid .hn-field{margin-bottom:0!important}
.hn-pdf-redact .hn-redact-inline-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
.hn-pdf-redact .hn-redact-inline-actions .hn-btn{width:100%!important;min-width:0!important;min-height:40px!important;padding:8px 10px!important;font-size:12px!important}
.hn-pdf-redact .hn-redact-warning{margin:0!important}
.hn-pdf-redact .hn-redact-export-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-top:2px!important;padding:12px!important;border:1px solid #dbe3ef!important;border-radius:12px!important;background:#f8fafc!important;box-shadow:none!important}
.hn-pdf-redact .hn-redact-export-summary{margin:0!important;min-height:0!important;font-size:11px!important;line-height:1.35!important;color:#64748b!important}
.hn-pdf-redact .hn-redact-export{width:100%!important;min-width:0!important;min-height:46px!important;margin:0!important;background:#e11d2e!important;box-shadow:0 10px 22px rgba(225,29,46,.18)!important}
.hn-pdf-redact .hn-redact-export:hover{background:#be123c!important}


@media (max-width:640px){.hn-pdf-redact .hn-redact-inline-actions{grid-template-columns:1fr!important}.hn-pdf-redact .hn-redact-mode-card{grid-template-columns:18px minmax(0,1fr)!important;padding:10px!important}}


/* v1.9.83 — Redact PDF: reset-safe state + compact professional desktop workspace.
   One-file Redact does not need Core's add/blank board. Reclaim that space for
   the PDF canvas and keep the controls close to the uploaded file card. */







/* Redact page navigation: one compact control bar instead of three oversized buttons. */








/* v1.9.84 — Redact PDF uploaded-file rail: remove Core generic main-slot gutters.
   The generic loaded-workspace queue deliberately carries 24px/18px padding and
   a 100% minimum height. Redact is a compact one-file editor, so its file rail
   must start flush with the controls/preview and let the uploaded card occupy
   the whole rail instead of floating inside an oversized empty slot. */
@media (min-width:981px){
  

  

  

  /* All three desktop zones begin on the same top baseline. */
  
}

/* v1.9.85 — Searchable Secure Redaction + Smart Scan. */
.hn-pdf-redact .hn-redact-warning-searchable{
  background:#eff6ff!important;
  border:1px solid #bfdbfe!important;
  color:#1e3a8a!important;
}
.hn-pdf-redact .hn-redact-smart{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  padding:10px!important;
  border:1px solid #dbe3ef!important;
  border-radius:12px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
}
.hn-pdf-redact .hn-redact-smart-head{
  grid-column:1/-1!important;
  min-width:0!important;
}
.hn-pdf-redact .hn-redact-smart-head > div{
  display:grid!important;
  gap:2px!important;
}
.hn-pdf-redact .hn-redact-smart-head strong{
  color:#0f172a!important;
  font-size:12.5px!important;
  line-height:1.25!important;
}
.hn-pdf-redact .hn-redact-smart-head span{
  color:#64748b!important;
  font-size:10.5px!important;
  line-height:1.4!important;
}
.hn-pdf-redact .hn-redact-smart-phrase-field{
  min-width:0!important;
  margin:0!important;
}
.hn-pdf-redact .hn-redact-smart-phrase-field .hn-label{
  font-size:10.5px!important;
  line-height:1.25!important;
}
.hn-pdf-redact .hn-redact-smart-phrase{
  width:100%!important;
  min-width:0!important;
  height:36px!important;
  min-height:36px!important;
  padding:7px 9px!important;
  font-size:11.5px!important;
}
.hn-pdf-redact .hn-redact-smart-scan{
  align-self:end!important;
  width:auto!important;
  min-width:92px!important;
  min-height:36px!important;
  height:36px!important;
  padding:7px 10px!important;
  font-size:11px!important;
  white-space:nowrap!important;
}
.hn-pdf-redact .hn-redact-smart-summary{
  grid-column:1/-1!important;
  min-height:0!important;
  color:#64748b!important;
  font-size:10px!important;
  line-height:1.35!important;
}
@media (max-width:1180px){
  .hn-pdf-redact .hn-redact-smart{grid-template-columns:1fr!important}
  .hn-pdf-redact .hn-redact-smart-scan{width:100%!important}
}


/* v1.9.86 — Redact settings must remain reachable in the fixed desktop workspace.
   The PDF stage keeps its own scroll; the settings column gets an independent,
   bounded vertical scroller instead of being clipped by the panel overflow. */



/* v1.9.87 — compact mode copy + explicit exact/automatic Smart Scan workflow. */
.hn-pdf-redact .hn-redact-mode-card{
  grid-template-columns:20px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  row-gap:4px!important;
  padding:10px 11px!important;
}
.hn-pdf-redact .hn-redact-mode-card input[type="radio"]{
  grid-column:1!important;
  grid-row:1!important;
  align-self:center!important;
}
.hn-pdf-redact .hn-redact-mode-card strong{
  grid-column:2!important;
  grid-row:1!important;
  align-self:center!important;
}
.hn-pdf-redact .hn-redact-mode-card span{
  grid-column:1/-1!important;
  grid-row:2!important;
  padding:0!important;
  margin:0!important;
  font-size:10.5px!important;
  line-height:1.35!important;
}
.hn-pdf-redact .hn-redact-smart{
  grid-template-columns:1fr!important;
  gap:7px!important;
}
.hn-pdf-redact .hn-redact-smart-head,
.hn-pdf-redact .hn-redact-smart-summary{grid-column:1!important}
.hn-pdf-redact .hn-redact-smart-exact,
.hn-pdf-redact .hn-redact-smart-scan{
  width:100%!important;
  min-width:0!important;
  min-height:36px!important;
  height:auto!important;
  align-self:stretch!important;
  white-space:normal!important;
}
.hn-pdf-redact .hn-redact-smart-exact{
  background:#fff!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
}
.hn-pdf-redact .hn-redact-overlay-canvas:focus-visible{
  outline:2px solid #2563eb!important;
  outline-offset:2px!important;
}


/* v1.9.88 — Redact professional desktop composition + direct mask manipulation. */


.hn-pdf-redact .hn-redact-page-actions{
  margin:0!important;
  padding:9px 10px!important;
  border:1px solid #dbe3ef!important;
  border-radius:11px!important;
  background:#f8fafc!important;
}
.hn-pdf-redact .hn-redact-page-actions>.hn-label{display:block!important;margin-bottom:7px!important;font-size:10.5px!important;line-height:1.2!important;}
.hn-pdf-redact .hn-redact-page-actions .hn-redact-inline-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;}
.hn-pdf-redact .hn-redact-page-actions .hn-btn{min-height:36px!important;padding:7px 8px!important;font-size:11px!important;}
.hn-pdf-redact .hn-redact-overlay-canvas{cursor:crosshair;}


/* v1.9.89 — compact immediate-edit toolbar + measured exact-match mask coverage. */
.hn-pdf-redact .hn-redact-page-actions{
  margin:-1px 0 0!important;
  padding:2px 0 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.hn-pdf-redact .hn-redact-page-actions>.hn-label{display:none!important;}
.hn-pdf-redact .hn-redact-page-actions .hn-redact-inline-actions{
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;
}
.hn-pdf-redact .hn-redact-page-actions .hn-btn{
  min-height:32px!important;height:32px!important;padding:5px 7px!important;
  font-size:10.5px!important;line-height:1.15!important;border-radius:9px!important;
}
.hn-pdf-redact .hn-redact-page-actions .hn-redact-undo::before{
  content:"↶";display:inline-block;margin-right:5px;font-size:14px;line-height:1;vertical-align:-1px;
}
.hn-pdf-redact .hn-redact-page-actions .hn-redact-undo:not(:disabled){
  border-color:#bfdbfe!important;background:#eff6ff!important;color:#1d4ed8!important;
}
.hn-pdf-redact .hn-redact-page-actions .hn-redact-clear:not(:disabled){
  border-color:#e2e8f0!important;background:#fff!important;color:#334155!important;
}
.hn-pdf-redact .hn-redact-page-actions .hn-btn:disabled{opacity:.58!important;}
.hn-pdf-redact .hn-redact-smart-exact{
  min-height:33px!important;height:33px!important;padding:5px 9px!important;
  font-size:11.5px!important;line-height:1.1!important;font-weight:700!important;
}
.hn-pdf-redact .hn-redact-smart-scan{
  min-height:32px!important;height:32px!important;padding:5px 9px!important;
  font-size:10.5px!important;line-height:1.1!important;font-weight:650!important;
}


/* v1.9.90 — Redact output/searchability repair + precise auto-mask geometry. */
.hn-pdf-redact .hn-redact-hint{
  display:none!important;
}
.hn-pdf-redact .hn-redact-stage{border-bottom-left-radius:16px!important;border-bottom-right-radius:16px!important;}


/* v1.9.91 processing override retired in v1.9.96; Core owns processing UI. */

/* v1.9.92 — flat Redact workspace, compact scan selectors, true undo history. */
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file{border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;}
@media (max-width:980px){
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file{box-shadow:none!important;background:transparent!important;}
}
.hn-pdf-redact .hn-redact-sensitive-options{
  margin:1px 0 0!important;
  padding:8px!important;
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  background:#fff!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:6px 8px!important;
  min-width:0!important;
}
.hn-pdf-redact .hn-redact-sensitive-options legend{
  padding:0 4px!important;
  color:#475569!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1.2!important;
}
.hn-pdf-redact .hn-redact-sensitive-options label{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  color:#334155!important;
  font-size:9.8px!important;
  font-weight:650!important;
  line-height:1.2!important;
}
.hn-pdf-redact .hn-redact-sensitive-options input[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  min-height:14px!important;
  margin:0!important;
  padding:0!important;
  accent-color:#2563eb!important;
}
.hn-pdf-redact .hn-redact-sensitive-address{grid-column:1/-1!important;}
.hn-pdf-redact .hn-redact-page-actions .hn-redact-undo::before{content:"↶"!important;}


/* v1.9.93 — flatten the actual Core workspace shell/main slot for Redact. */
html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;}
html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact,
html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact::before,
html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact::after{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;}





/* v1.9.93 processing override retired in v1.9.96; Core processing contract restored. */



/* v1.9.94 processing override retired in v1.9.96. */

/* v1.9.96 — Redact processing UI is fully owned by HappyNooks Tools Core.
   No Redact-specific processing panel/progress/busy CSS is allowed here. */


/* ============================================================
   v1.9.97 — Redact defers completely to the shared Core processing geometry.
   Loaded editor/file-rail columns must never survive into processing state.
============================================================ */



/* v1.9.99 — first-file correction is JavaScript-only. Normal editor and
   user-initiated export processing geometry remain unchanged from v1.9.97. */

/* v1.9.100 — the Redact editor is a full application surface. Keeping the
   Core shell opaque prevents the public tool page underneath from bleeding
   through editor gaps and during the editor-to-result handoff. */
html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded{
  background:#e9eef7!important;
}
html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded.hn-external-result-active{
  background:#e9eef7!important;
}


/* v1.9.103 — Redact preview toolbar owns immediate edit/style controls. */










.hn-pdf-redact .hn-redact-toolbar-quality[hidden],
.hn-pdf-redact .hn-redact-quality-field[hidden]{display:none!important;}

.hn-pdf-redact .hn-redact-hint{
  display:flex!important;
  align-items:flex-start!important;
  gap:7px!important;
  margin:0!important;
  padding:8px 11px!important;
  border-top:1px solid #e2e8f0!important;
  background:#f8fafc!important;
  color:#475569!important;
  font-size:10.5px!important;
  font-weight:550!important;
  line-height:1.42!important;
}
.hn-pdf-redact .hn-redact-hint-icon{
  flex:0 0 auto!important;
  color:#2563eb!important;
  font-size:12px!important;
  line-height:1.3!important;
}

@media (max-width:560px){
  
  
  
  .hn-pdf-redact .hn-redact-hint{font-size:10px!important;padding:7px 9px!important;}
}

.hn-pdf-redact .hn-redact-stage{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;}


/* v1.9.104 — polished Redact editing guide */
.hn-pdf-redact .hn-redact-hint{
  display:grid!important;
  grid-template-columns:26px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  margin:0!important;
  padding:9px 12px!important;
  border-top:1px solid #e2e8f0!important;
  background:#fff!important;
  color:#334155!important;
  font-size:10.5px!important;
  font-weight:500!important;
  line-height:1.25!important;
}
.hn-pdf-redact .hn-redact-hint-icon{
  display:grid!important;
  place-items:center!important;
  width:24px!important;
  height:24px!important;
  border:1px solid #bfdbfe!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#2563eb!important;
  font-size:11px!important;
  font-weight:800!important;
  font-style:normal!important;
  line-height:1!important;
}
.hn-pdf-redact .hn-redact-hint-content{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}
.hn-pdf-redact .hn-redact-hint-title{
  flex:0 0 auto!important;
  color:#0f172a!important;
  font-size:10px!important;
  font-weight:750!important;
  letter-spacing:.02em!important;
  white-space:nowrap!important;
}
.hn-pdf-redact .hn-redact-hint-steps{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  min-width:0!important;
}
.hn-pdf-redact .hn-redact-hint-step{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:27px!important;
  padding:4px 8px 4px 5px!important;
  border:1px solid #e2e8f0!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  color:#64748b!important;
  white-space:nowrap!important;
}
.hn-pdf-redact .hn-redact-hint-step > span:last-child{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:4px!important;
}
.hn-pdf-redact .hn-redact-hint-step strong{
  color:#1e293b!important;
  font-size:10.5px!important;
  font-weight:700!important;
}
.hn-pdf-redact .hn-redact-hint-number{
  display:grid!important;
  place-items:center!important;
  width:17px!important;
  height:17px!important;
  border-radius:5px!important;
  background:#eaf2ff!important;
  color:#2563eb!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1!important;
}
@media (max-width:900px){
  .hn-pdf-redact .hn-redact-hint-content{align-items:flex-start!important;flex-direction:column!important;gap:6px!important;}
  .hn-pdf-redact .hn-redact-hint-step{white-space:normal!important;}
}
@media (max-width:560px){
  .hn-pdf-redact .hn-redact-hint{grid-template-columns:22px minmax(0,1fr)!important;padding:8px 9px!important;gap:8px!important;}
  .hn-pdf-redact .hn-redact-hint-icon{width:21px!important;height:21px!important;font-size:10px!important;}
  .hn-pdf-redact .hn-redact-hint-steps{display:grid!important;grid-template-columns:1fr!important;width:100%!important;}
  .hn-pdf-redact .hn-redact-hint-step{width:100%!important;}
}

/* ============================================================
   v1.9.106 — Redact multi-PDF navigation uses Core left rail only
============================================================ */

.hn-pdf-redact.hn-redact-scan-busy .hn-redact-editor{pointer-events:none!important;}


/* ============================================================
   v1.9.107 — Redact live rail + explicit multi-PDF action scopes
============================================================ */
.hn-pdf-redact .hn-redact-smart-action-row{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(112px,145px)!important;gap:7px!important;align-items:end!important;width:100%!important;
}
.hn-pdf-redact .hn-redact-smart-action-row .hn-btn{width:100%!important;}
.hn-pdf-redact .hn-redact-action-scope{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important;margin:0!important;}
.hn-pdf-redact .hn-redact-action-scope>span{font-size:9.5px!important;font-weight:750!important;color:#64748b!important;line-height:1!important;}
.hn-pdf-redact .hn-redact-action-scope .hn-select{width:100%!important;min-width:0!important;min-height:34px!important;height:34px!important;padding-top:4px!important;padding-bottom:4px!important;font-size:10.5px!important;}

@media (max-width:560px){
  .hn-pdf-redact .hn-redact-smart-action-row{grid-template-columns:1fr!important;}
  .hn-pdf-redact .hn-redact-action-scope{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:7px!important;}
}


/* ============================================================
   v1.9.108 — compact Redact settings + scrollable file rail
============================================================ */

/* Many PDFs remain reachable without scrolling the whole application shell. */
@media (min-width:1181px){
  
  
  
  
}


/* Right settings column: concise hierarchy instead of stacked instruction cards. */

.hn-pdf-redact .hn-redact-mode-group{display:grid!important;gap:6px!important;}
.hn-pdf-redact .hn-redact-mode-group>.hn-label{margin:0 0 1px!important;font-size:12px!important;}
.hn-pdf-redact .hn-redact-mode-card{
  grid-template-columns:18px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:8px!important;row-gap:2px!important;
  padding:9px 10px!important;border-radius:10px!important;
  background:#fff!important;
}
.hn-pdf-redact .hn-redact-mode-card input[type="radio"]{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;margin-top:1px!important;}
.hn-pdf-redact .hn-redact-mode-card strong{font-size:12px!important;line-height:1.2!important;}
.hn-pdf-redact .hn-redact-mode-card span{grid-column:2!important;grid-row:2!important;font-size:9.6px!important;line-height:1.25!important;color:#64748b!important;}
.hn-pdf-redact .hn-redact-mode-card.is-active{background:#f8fbff!important;border-color:#60a5fa!important;box-shadow:0 0 0 1px rgba(37,99,235,.06)!important;}

.hn-pdf-redact .hn-redact-smart{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px!important;border-radius:11px!important;background:#fff!important;}
.hn-pdf-redact .hn-redact-smart-head>div{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:8px!important;}
.hn-pdf-redact .hn-redact-smart-head strong{font-size:12.5px!important;white-space:nowrap!important;}
.hn-pdf-redact .hn-redact-smart-head span{font-size:9.5px!important;line-height:1.2!important;text-align:right!important;}
.hn-pdf-redact .hn-redact-smart-block{display:grid!important;gap:6px!important;min-width:0!important;}
.hn-pdf-redact .hn-redact-smart-block + .hn-redact-smart-block{padding-top:8px!important;border-top:1px solid #eef2f7!important;}
.hn-pdf-redact .hn-redact-smart-phrase-field .hn-label{margin-bottom:5px!important;font-size:10px!important;}
.hn-pdf-redact .hn-redact-smart-phrase{height:34px!important;min-height:34px!important;padding:6px 9px!important;font-size:11px!important;border-radius:9px!important;}

.hn-pdf-redact .hn-redact-smart-action-row{display:grid!important;grid-template-columns:minmax(0,1fr) 78px!important;gap:6px!important;align-items:stretch!important;}
.hn-pdf-redact .hn-redact-scope{display:grid!important;grid-template-columns:1fr 1fr!important;min-width:0!important;padding:2px!important;border:1px solid #dbe3ef!important;border-radius:9px!important;background:#f1f5f9!important;}
.hn-pdf-redact .hn-redact-scope label{position:relative!important;min-width:0!important;margin:0!important;cursor:pointer!important;}
.hn-pdf-redact .hn-redact-scope input{position:absolute!important;opacity:0!important;pointer-events:none!important;}
.hn-pdf-redact .hn-redact-scope span{display:flex!important;align-items:center!important;justify-content:center!important;height:28px!important;padding:0 5px!important;border-radius:7px!important;color:#64748b!important;font-size:9.5px!important;font-weight:750!important;line-height:1!important;white-space:nowrap!important;}
.hn-pdf-redact .hn-redact-scope input:checked + span{background:#fff!important;color:#1d4ed8!important;box-shadow:0 1px 3px rgba(15,23,42,.10)!important;}
.hn-pdf-redact .hn-redact-scope input:focus-visible + span{outline:2px solid #93c5fd!important;outline-offset:1px!important;}
.hn-pdf-redact .hn-redact-smart-action-row .hn-btn{width:78px!important;min-width:78px!important;height:34px!important;min-height:34px!important;padding:5px 7px!important;border-radius:9px!important;font-size:10.5px!important;font-weight:750!important;white-space:nowrap!important;}
.hn-pdf-redact .hn-redact-smart-exact{border-color:#bfdbfe!important;background:#eff6ff!important;color:#1d4ed8!important;}
.hn-pdf-redact .hn-redact-smart-scan{border-color:#2563eb!important;background:#2563eb!important;color:#fff!important;box-shadow:none!important;}

.hn-pdf-redact .hn-redact-sensitive-options{margin:0!important;padding:7px 8px!important;gap:5px 7px!important;border-radius:9px!important;background:#f8fafc!important;}
.hn-pdf-redact .hn-redact-sensitive-options legend{font-size:9.5px!important;}
.hn-pdf-redact .hn-redact-sensitive-options label{font-size:9.5px!important;line-height:1.1!important;}
.hn-pdf-redact .hn-redact-sensitive-options input[type="checkbox"]{width:13px!important;height:13px!important;min-width:13px!important;min-height:13px!important;}
.hn-pdf-redact .hn-redact-smart-summary:empty{display:none!important;}
.hn-pdf-redact .hn-redact-smart-summary:not(:empty){display:block!important;margin-top:1px!important;padding:6px 7px!important;border-radius:7px!important;background:#f8fafc!important;color:#64748b!important;font-size:9.5px!important;line-height:1.25!important;}

/* Searchable/Raster behavior is already stated in the mode cards. Keep only the security-critical visual warning. */
.hn-pdf-redact .hn-redact-warning-searchable,
.hn-pdf-redact .hn-redact-warning-permanent{display:none!important;}
.hn-pdf-redact .hn-redact-warning-visual{margin:0!important;padding:8px 9px!important;border-radius:9px!important;font-size:9.8px!important;line-height:1.25!important;}

@media (max-width:560px){
  .hn-pdf-redact .hn-redact-smart-head>div{align-items:flex-start!important;flex-direction:column!important;gap:2px!important;}
  .hn-pdf-redact .hn-redact-smart-head span{text-align:left!important;}
  .hn-pdf-redact .hn-redact-smart-action-row{grid-template-columns:minmax(0,1fr) 76px!important;}
  .hn-pdf-redact .hn-redact-smart-action-row .hn-btn{width:76px!important;min-width:76px!important;}
}


/* ============================================================
   v1.9.109 — Redact rail viewport + batch live thumbnails
============================================================ */




/* v1.9.111 — compact Redact preview zoom controls. Zoom is document-local and
   changes only the editor render scale; normalized mask/export geometry stays intact. */






/* ============================================================
   v1.9.112 — true Redact preview zoom above 100%
   Do not let the responsive canvas rule shrink a zoomed render back to the
   editor width. Auto margins center pages while they fit and collapse to zero
   once the page is wider than the scroll viewport, keeping both edges reachable.
============================================================ */


.hn-pdf-redact .hn-redact-page-canvas{
  display:block!important;
  max-width:none!important;
  width:auto;
  height:auto;
}


/* v1.9.113 — compact detected-match review + sanitize controls. */
.hn-pdf-redact .hn-redact-review{display:grid!important;gap:6px!important;margin-top:2px!important;padding:8px!important;border:1px solid #dbe3ef!important;border-radius:10px!important;background:#f8fafc!important;min-width:0!important}
.hn-pdf-redact .hn-redact-review[hidden]{display:none!important}
.hn-pdf-redact .hn-redact-review-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto 26px 26px!important;gap:4px!important;align-items:center!important}
.hn-pdf-redact .hn-redact-review-head strong{font-size:11px!important;color:#0f172a!important}
.hn-pdf-redact .hn-redact-review-counter{font-size:9.5px!important;font-weight:800!important;color:#64748b!important;white-space:nowrap!important}
.hn-pdf-redact .hn-redact-review-head .hn-btn{width:26px!important;min-width:26px!important;height:26px!important;min-height:26px!important;padding:0!important;border-radius:7px!important;font-size:15px!important;line-height:1!important}
.hn-pdf-redact .hn-redact-review-meta{font-size:9px!important;font-weight:750!important;color:#64748b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.hn-pdf-redact .hn-redact-review-text{padding:6px 7px!important;border:1px solid #e2e8f0!important;border-radius:7px!important;background:#fff!important;color:#0f172a!important;font-size:10px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.hn-pdf-redact .hn-redact-review-actions{display:grid!important;grid-template-columns:1fr 1fr 1.25fr!important;gap:5px!important}
.hn-pdf-redact .hn-redact-review-actions .hn-btn,.hn-pdf-redact .hn-redact-review-batch .hn-btn{width:100%!important;min-width:0!important;height:29px!important;min-height:29px!important;padding:4px 6px!important;border-radius:7px!important;font-size:9.5px!important;font-weight:750!important;white-space:nowrap!important}
.hn-pdf-redact .hn-redact-review-keep{border-color:#bbf7d0!important;background:#f0fdf4!important;color:#166534!important}
.hn-pdf-redact .hn-redact-review-remove{border-color:#fecaca!important;background:#fff1f2!important;color:#be123c!important}
.hn-pdf-redact .hn-redact-review-all{border-color:#bfdbfe!important;background:#eff6ff!important;color:#1d4ed8!important}
.hn-pdf-redact .hn-redact-review-batch{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;padding-top:5px!important;border-top:1px solid #e2e8f0!important}
.hn-pdf-redact .hn-redact-review-batch .hn-btn{height:25px!important;min-height:25px!important;background:#fff!important;color:#475569!important}
.hn-pdf-redact .hn-redact-export-row{grid-template-columns:1fr!important}
.hn-pdf-redact .hn-redact-sanitize{display:flex!important;align-items:center!important;gap:7px!important;min-height:30px!important;padding:6px 8px!important;border:1px solid #dbe3ef!important;border-radius:8px!important;background:#fff!important;color:#334155!important;font-size:10.5px!important;font-weight:750!important;cursor:pointer!important}
.hn-pdf-redact .hn-redact-sanitize input{width:14px!important;height:14px!important;margin:0!important;accent-color:#2563eb!important}
.hn-pdf-redact .hn-redact-export-summary{font-size:9.5px!important;line-height:1.2!important}
@media (max-width:640px){.hn-pdf-redact .hn-redact-review-actions{grid-template-columns:1fr 1fr!important}.hn-pdf-redact .hn-redact-review-all{grid-column:1/-1!important}}

/* ============================================================
   v1.9.114 — page/range scan scopes + custom sensitive rules
============================================================ */
.hn-pdf-redact .hn-redact-smart-action-row{align-items:start!important;}
.hn-pdf-redact .hn-redact-scope-wrap{display:grid!important;gap:5px!important;min-width:0!important;}
.hn-pdf-redact .hn-redact-scope{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.hn-pdf-redact .hn-redact-scope span{padding:0 3px!important;font-size:8.8px!important;}
.hn-pdf-redact .hn-redact-page-range{height:30px!important;min-height:30px!important;padding:5px 8px!important;border-radius:8px!important;font-size:10px!important;}
.hn-pdf-redact .hn-redact-page-range[hidden]{display:none!important;}
.hn-pdf-redact .hn-redact-custom-rule{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:6px!important;align-items:center!important;}
.hn-pdf-redact .hn-redact-custom-rule[hidden]{display:none!important;}
.hn-pdf-redact .hn-redact-custom-rule .hn-input{height:31px!important;min-height:31px!important;padding:5px 7px!important;border-radius:8px!important;font-size:9.8px!important;min-width:0!important;}
.hn-pdf-redact .hn-redact-review-actions{grid-template-columns:1fr 1fr!important;}
.hn-pdf-redact .hn-redact-review-all{grid-column:1/-1!important;}
.hn-pdf-redact .hn-redact-review-actions .hn-btn{white-space:normal!important;line-height:1.15!important;}
@media (max-width:560px){
  .hn-pdf-redact .hn-redact-scope span{font-size:8.4px!important;}
  .hn-pdf-redact .hn-redact-custom-rule{grid-template-columns:80px minmax(0,1fr)!important;}
}

/* ============================================================
   v1.9.115 — one shared Smart Scan scope for Find + Scan
   The narrow settings rail no longer duplicates four scope buttons twice.
============================================================ */
.hn-pdf-redact .hn-redact-shared-scope-wrap{
  display:grid!important;
  gap:5px!important;
  padding:0 0 2px!important;
  min-width:0!important;
}
.hn-pdf-redact .hn-redact-shared-scope{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  width:100%!important;
  padding:2px!important;
  border:1px solid #dbe3ef!important;
  border-radius:9px!important;
  background:#f1f5f9!important;
}
.hn-pdf-redact .hn-redact-shared-scope span{
  height:28px!important;
  padding:0 4px!important;
  font-size:9.4px!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
.hn-pdf-redact .hn-redact-shared-scope-wrap .hn-redact-page-range{
  width:100%!important;
  height:31px!important;
  min-height:31px!important;
  margin:0!important;
}
.hn-pdf-redact .hn-redact-smart-action-row{
  grid-template-columns:1fr!important;
  gap:0!important;
}
.hn-pdf-redact .hn-redact-smart-action-row .hn-btn,
.hn-pdf-redact .hn-redact-smart-exact,
.hn-pdf-redact .hn-redact-smart-scan{
  width:100%!important;
  min-width:0!important;
  height:33px!important;
  min-height:33px!important;
  padding:5px 9px!important;
  font-size:10.5px!important;
}
.hn-pdf-redact .hn-redact-exact-block,
.hn-pdf-redact .hn-redact-auto-block{
  gap:6px!important;
}
@media (max-width:560px){
  .hn-pdf-redact .hn-redact-shared-scope span{font-size:9px!important;padding:0 2px!important;}
}


/* ============================================================
   v1.9.116 — plain-language custom-code input
   Technical Pattern / Prefix / Regex choices are intentionally not exposed.
============================================================ */
.hn-pdf-redact .hn-redact-custom-rule{
  display:block!important;
  width:100%!important;
  margin-top:5px!important;
}
.hn-pdf-redact .hn-redact-custom-rule[hidden]{display:none!important;}
.hn-pdf-redact .hn-redact-custom-rule .hn-redact-custom-value{
  width:100%!important;
  height:33px!important;
  min-height:33px!important;
  padding:6px 9px!important;
  border-radius:9px!important;
  font-size:10.5px!important;
}
/* ============================================================
   v1.9.117 — clearer custom-code + hidden-data privacy copy
============================================================ */
.hn-pdf-redact .hn-redact-custom-rule{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:4px!important;
}
.hn-pdf-redact .hn-redact-custom-help{
  display:block!important;
  margin:0 2px!important;
  color:#64748b!important;
  font-size:9px!important;
  line-height:1.28!important;
  font-weight:500!important;
}
.hn-pdf-redact .hn-redact-sanitize{
  align-items:flex-start!important;
  gap:7px!important;
  padding:7px 8px!important;
}
.hn-pdf-redact .hn-redact-sanitize input{
  flex:0 0 auto!important;
  margin-top:1px!important;
}
.hn-pdf-redact .hn-redact-sanitize-copy{
  display:grid!important;
  gap:1px!important;
  min-width:0!important;
}
.hn-pdf-redact .hn-redact-sanitize-copy strong{
  color:#334155!important;
  font-size:10.3px!important;
  line-height:1.2!important;
  font-weight:800!important;
}
.hn-pdf-redact .hn-redact-sanitize-copy small{
  color:#64748b!important;
  font-size:8.9px!important;
  line-height:1.25!important;
  font-weight:500!important;
}


/* ============================================================
   v1.9.130 — calm Redact document-switch presentation
   Preserve the last committed page during PDF-to-PDF navigation and show only
   a small professional status chip. First-load remains centered, but there is no
   full-stage grey curtain and no stale/new canvas coexistence.
============================================================ */
.hn-pdf-redact .hn-redact-stage{isolation:isolate!important;}

.hn-pdf-redact .hn-redact-stage.hn-redact-document-switching .hn-redact-canvas-wrap{pointer-events:none!important;}
.hn-pdf-redact .hn-redact-stage.hn-redact-document-switch-preserve .hn-redact-canvas-wrap{opacity:.86!important;filter:saturate(.96)!important;transition:opacity .14s ease,filter .14s ease!important;}
.hn-pdf-redact .hn-redact-switch-badge{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  z-index:40!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:34px!important;
  max-width:min(360px,calc(100% - 28px))!important;
  padding:7px 12px!important;
  transform:translate(-50%,-50%)!important;
  border:1px solid rgba(203,213,225,.92)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 8px 24px rgba(15,23,42,.12)!important;
  color:#475569!important;
  font-size:10.5px!important;
  line-height:1.2!important;
  font-weight:700!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  backdrop-filter:blur(6px)!important;
  -webkit-backdrop-filter:blur(6px)!important;
}
.hn-pdf-redact .hn-redact-switch-badge[hidden]{display:none!important;}
.hn-pdf-redact .hn-redact-stage.hn-redact-document-switch-preserve .hn-redact-switch-badge{
  top:14px!important;
  transform:translateX(-50%)!important;
}
.hn-pdf-redact .hn-redact-switch-spinner{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  border:2px solid #dbe3ef!important;
  border-top-color:#2563eb!important;
  border-radius:50%!important;
  animation:hn-redact-document-switch-spin .72s linear infinite!important;
}
.hn-pdf-redact .hn-redact-switch-copy{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@keyframes hn-redact-document-switch-spin{to{transform:rotate(360deg)}}
@media (max-width:640px){
  .hn-pdf-redact .hn-redact-stage.hn-redact-document-switch-preserve .hn-redact-switch-badge{top:9px!important;}
  .hn-pdf-redact .hn-redact-switch-badge{min-height:32px!important;padding:6px 10px!important;font-size:10px!important;}
}
@media (prefers-reduced-motion:reduce){
  .hn-pdf-redact .hn-redact-switch-spinner{animation:none!important;border-top-color:#64748b!important;}
  .hn-pdf-redact .hn-redact-stage.hn-redact-document-switch-preserve .hn-redact-canvas-wrap{transition:none!important;}
}


/* v1.9.137 — Redact Security & Review Closure */
.hn-pdf-redact .hn-redact-warning-searchable[hidden],
.hn-pdf-redact .hn-redact-warning-permanent[hidden]{display:none!important;}
.hn-pdf-redact .hn-redact-warning-searchable:not([hidden]),
.hn-pdf-redact .hn-redact-warning-permanent:not([hidden]){display:block!important;margin:0!important;padding:8px 9px!important;border-radius:9px!important;font-size:9.8px!important;line-height:1.3!important;}
.hn-pdf-redact .hn-redact-warning-searchable:not([hidden]){background:#eff6ff!important;border:1px solid #bfdbfe!important;color:#1e40af!important;}
.hn-pdf-redact .hn-redact-warning-permanent:not([hidden]){background:#ecfdf5!important;border:1px solid #a7f3d0!important;color:#065f46!important;}
.hn-pdf-redact .hn-redact-scan-error-review{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important;padding:7px 8px!important;border:1px solid #fde68a!important;border-radius:8px!important;background:#fffbeb!important;color:#92400e!important;}
.hn-pdf-redact .hn-redact-scan-error-review[hidden]{display:none!important;}
.hn-pdf-redact .hn-redact-scan-error-copy{font-size:9.5px!important;line-height:1.3!important;min-width:0!important;}
.hn-pdf-redact .hn-redact-scan-error-action{min-height:29px!important;height:auto!important;padding:5px 7px!important;border-color:#f59e0b!important;background:#fff!important;color:#92400e!important;font-size:9px!important;font-weight:800!important;white-space:normal!important;}
.hn-pdf-redact .hn-redact-review-stats{padding:5px 7px!important;border-radius:7px!important;background:#eef2ff!important;color:#4338ca!important;font-size:9px!important;font-weight:800!important;line-height:1.2!important;}
.hn-pdf-redact .hn-redact-review-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;align-items:end!important;}
.hn-pdf-redact .hn-redact-review-filters>label{display:grid!important;gap:3px!important;min-width:0!important;color:#64748b!important;font-size:8.5px!important;font-weight:800!important;}
.hn-pdf-redact .hn-redact-review-filters .hn-select{width:100%!important;min-width:0!important;height:29px!important;min-height:29px!important;padding:3px 22px 3px 6px!important;border-radius:7px!important;font-size:9px!important;}
.hn-pdf-redact .hn-redact-review-low-filter{display:flex!important;align-items:center!important;gap:5px!important;min-height:29px!important;padding:4px 6px!important;border:1px solid #e2e8f0!important;border-radius:7px!important;background:#fff!important;color:#475569!important;}
.hn-pdf-redact .hn-redact-review-low-filter input{margin:0!important;flex:0 0 auto!important;}
.hn-pdf-redact .hn-redact-review-low-filter span{font-size:8.8px!important;line-height:1.15!important;}
@media (max-width:640px){
  .hn-pdf-redact .hn-redact-scan-error-review{grid-template-columns:1fr!important;}
  .hn-pdf-redact .hn-redact-scan-error-action{width:100%!important;}
  .hn-pdf-redact .hn-redact-review-filters{grid-template-columns:1fr!important;}
}

/* ============================================================
   v1.9.138 — Redact low-confidence OCR filter geometry repair
   ============================================================ */
.hn-pdf-redact .hn-redact-review-filters > label.hn-redact-review-low-filter{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  align-self:end!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  min-height:29px!important;
  height:29px!important;
  padding:4px 7px!important;
  margin:0!important;
  border:1px solid #e2e8f0!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#475569!important;
  box-sizing:border-box!important;
  cursor:pointer!important;
}
.hn-pdf-redact .hn-redact-review-filters > label.hn-redact-review-low-filter > input[type="checkbox"].hn-redact-review-low-confidence{
  display:block!important;
  position:static!important;
  inset:auto!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  max-width:14px!important;
  min-height:14px!important;
  max-height:14px!important;
  flex:0 0 14px!important;
  margin:0!important;
  padding:0!important;
  border:initial!important;
  border-radius:3px!important;
  background:initial!important;
  box-shadow:none!important;
  transform:none!important;
  opacity:1!important;
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  accent-color:#2563eb!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-review-filters > label.hn-redact-review-low-filter > span{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:#475569!important;
  font-size:8.8px!important;
  font-weight:800!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  cursor:pointer!important;
}


/* ============================================================
   v1.9.139 — Plain-language help for low-confidence OCR filter
   ============================================================ */
.hn-pdf-redact .hn-redact-review-filters > label.hn-redact-review-low-filter::after{
  content:"?"!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
  margin-left:auto!important;
  padding:0!important;
  border:1px solid #cbd5e1!important;
  border-radius:50%!important;
  background:#f8fafc!important;
  color:#475569!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-review-filters > label.hn-redact-review-low-filter:hover::after,
.hn-pdf-redact .hn-redact-review-filters > label.hn-redact-review-low-filter:focus-within::after{
  border-color:#93c5fd!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.12)!important;
}

/* ============================================================
   v1.9.140 — Redact OCR review clarity + main-workspace progress
   ============================================================ */
.hn-pdf-redact .hn-redact-review-filters > .hn-redact-review-low-filter{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  align-self:end!important;
  width:100%!important;
  min-width:0!important;
  min-height:29px!important;
  height:29px!important;
  padding:3px 5px 3px 7px!important;
  margin:0!important;
  border:1px solid #e2e8f0!important;
  border-radius:7px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-review-low-option{
  display:flex!important;
  flex:1 1 auto!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:#475569!important;
  cursor:pointer!important;
}
.hn-pdf-redact .hn-redact-review-low-option > input[type="checkbox"].hn-redact-review-low-confidence{
  display:block!important;
  position:static!important;
  inset:auto!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  max-width:14px!important;
  min-height:14px!important;
  max-height:14px!important;
  flex:0 0 14px!important;
  margin:0!important;
  padding:0!important;
  border:initial!important;
  border-radius:3px!important;
  background:initial!important;
  box-shadow:none!important;
  transform:none!important;
  opacity:1!important;
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  accent-color:#2563eb!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-review-low-option > span{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  color:#475569!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.hn-pdf-redact .hn-redact-review-low-help{
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 17px!important;
  width:17px!important;
  height:17px!important;
  min-width:17px!important;
  min-height:17px!important;
  margin:0 0 0 auto!important;
  padding:0!important;
  border:1px solid #bfdbfe!important;
  border-radius:50%!important;
  background:#eff6ff!important;
  color:#2563eb!important;
  box-shadow:none!important;
  font:800 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  cursor:help!important;
  position:relative!important;
  z-index:3!important;
}
.hn-pdf-redact .hn-redact-review-low-help:hover,
.hn-pdf-redact .hn-redact-review-low-help:focus-visible,
.hn-pdf-redact .hn-redact-review-low-help[aria-expanded="true"]{
  border-color:#60a5fa!important;
  background:#dbeafe!important;
  color:#1d4ed8!important;
  outline:none!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.13)!important;
}
.hn-pdf-redact .hn-redact-review-low-help-popover{
  position:absolute!important;
  right:0!important;
  top:calc(100% + 6px)!important;
  z-index:100!important;
  width:min(260px,calc(100vw - 44px))!important;
  padding:9px 10px!important;
  border:1px solid #cbd5e1!important;
  border-radius:9px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(15,23,42,.16)!important;
  color:#334155!important;
  font-size:10px!important;
  font-weight:550!important;
  line-height:1.4!important;
  text-align:left!important;
  white-space:normal!important;
}
.hn-pdf-redact .hn-redact-review-low-help-popover[hidden]{display:none!important;}

/* During an active scan the user should see progress in the document workspace,
   not in a tiny sidebar line under the Scan button. */
.hn-pdf-redact.hn-redact-scan-busy .hn-redact-smart-summary{
  display:none!important;
}
.hn-pdf-redact .hn-redact-work-progress{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-height:44px!important;
  padding:7px 12px!important;
  border-bottom:1px solid #bfdbfe!important;
  background:linear-gradient(90deg,#eff6ff 0%,#f8fbff 100%)!important;
  color:#1e3a8a!important;
  box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-work-progress[hidden]{display:none!important;}
.hn-pdf-redact .hn-redact-work-progress-spinner{
  width:18px!important;
  height:18px!important;
  border:2px solid #bfdbfe!important;
  border-top-color:#2563eb!important;
  border-radius:50%!important;
  animation:hn-redact-work-progress-spin .72s linear infinite!important;
  box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-work-progress-content{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:5px!important;
  min-width:0!important;
}
.hn-pdf-redact .hn-redact-work-progress-copy{
  display:block!important;
  min-width:0!important;
  color:#1e40af!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.hn-pdf-redact .hn-redact-work-progress-track{
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:4px!important;
  overflow:hidden!important;
  border-radius:999px!important;
  background:#dbeafe!important;
}
.hn-pdf-redact .hn-redact-work-progress-bar{
  display:block!important;
  height:100%!important;
  width:36%;
  border-radius:999px!important;
  background:#2563eb!important;
  transition:width .18s ease!important;
}
.hn-pdf-redact .hn-redact-work-progress.hn-is-indeterminate .hn-redact-work-progress-bar{
  width:36%!important;
  animation:hn-redact-work-progress-slide 1.05s ease-in-out infinite!important;
}
@keyframes hn-redact-work-progress-spin{to{transform:rotate(360deg)}}
@keyframes hn-redact-work-progress-slide{0%{transform:translateX(-120%)}50%{transform:translateX(90%)}100%{transform:translateX(280%)}}
@media (max-width:640px){
  .hn-pdf-redact .hn-redact-work-progress{min-height:42px!important;padding:7px 9px!important;gap:7px!important;}
  .hn-pdf-redact .hn-redact-work-progress-copy{font-size:10.5px!important;}
  .hn-pdf-redact .hn-redact-review-low-help-popover{right:-2px!important;width:min(240px,calc(100vw - 34px))!important;}
}
@media (prefers-reduced-motion:reduce){
  .hn-pdf-redact .hn-redact-work-progress-spinner,
  .hn-pdf-redact .hn-redact-work-progress.hn-is-indeterminate .hn-redact-work-progress-bar{animation:none!important;}
}


/* ============================================================
   v1.9.141 — Redact scan visibility, scroll continuity & calm guide
============================================================ */

.hn-pdf-redact .hn-redact-work-progress{position:absolute!important;z-index:18!important;top:14px!important;left:50%!important;transform:translateX(-50%)!important;width:min(520px,calc(100% - 28px))!important;min-height:54px!important;padding:10px 13px!important;border:1px solid #bfdbfe!important;border-radius:12px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 12px 30px rgba(15,23,42,.16)!important;backdrop-filter:blur(8px)!important;pointer-events:none!important;}
.hn-pdf-redact .hn-redact-work-progress[hidden]{display:none!important;}
.hn-pdf-redact.hn-redact-scan-busy .hn-redact-editor{pointer-events:auto!important;}
.hn-pdf-redact.hn-redact-scan-busy .hn-redact-toolbar,.hn-pdf-redact.hn-redact-scan-busy .hn-redact-canvas-wrap,.hn-pdf-redact.hn-redact-scan-busy .hn-redact-hint{pointer-events:none!important;}
.hn-pdf-redact.hn-redact-scan-busy .hn-redact-stage{pointer-events:auto!important;cursor:progress!important;}
.hn-pdf-redact .hn-redact-hint.hn-redact-hint-compact{display:flex!important;align-items:center!important;gap:8px!important;min-height:38px!important;padding:7px 10px!important;border-top:1px solid #e2e8f0!important;background:#fff!important;color:#64748b!important;font-size:10px!important;line-height:1.3!important;}
.hn-pdf-redact .hn-redact-hint-compact .hn-redact-hint-icon{width:20px!important;height:20px!important;min-width:20px!important;border-color:#dbeafe!important;background:#f8fbff!important;}
.hn-pdf-redact .hn-redact-hint-compact .hn-redact-hint-content{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;flex-wrap:wrap!important;}
.hn-pdf-redact .hn-redact-hint-compact .hn-redact-hint-step{display:inline!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#64748b!important;white-space:normal!important;}
.hn-pdf-redact .hn-redact-hint-compact .hn-redact-hint-step strong{color:#334155!important;font-size:10px!important;font-weight:750!important;}
.hn-pdf-redact .hn-redact-hint-compact .hn-redact-hint-separator{color:#cbd5e1!important;font-weight:800!important;}
@media (max-width:760px){.hn-pdf-redact .hn-redact-work-progress{top:10px!important;width:calc(100% - 20px)!important;}.hn-pdf-redact .hn-redact-hint-compact .hn-redact-hint-content{gap:4px!important;}.hn-pdf-redact .hn-redact-hint-compact .hn-redact-hint-separator{display:none!important;}.hn-pdf-redact .hn-redact-hint-compact .hn-redact-hint-step{display:block!important;width:100%!important;}}







/* ============================================================
   v1.9.144 — Redact toolbar balanced accent
============================================================ */
html.hn-redact-active-page [data-hn-redact-suppressed-open-pages="1"]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}






/* ============================================================
   v1.9.145 — OCR help: compact inline note, no control overlap
   ============================================================ */
.hn-pdf-redact .hn-redact-review-filters > .hn-redact-review-low-help-popover{
  position:static!important;
  inset:auto!important;
  grid-column:1 / -1!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:1px 0 0!important;
  padding:7px 8px!important;
  border:1px solid #dbe4ee!important;
  border-left:2px solid #93c5fd!important;
  border-radius:7px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
  color:#475569!important;
  font-size:9.2px!important;
  font-weight:550!important;
  line-height:1.35!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  box-sizing:border-box!important;
  z-index:auto!important;
}
.hn-pdf-redact .hn-redact-review-filters > .hn-redact-review-low-help-popover[hidden]{display:none!important;}
@media (max-width:760px){
  .hn-pdf-redact .hn-redact-review-filters > .hn-redact-review-low-help-popover{
    padding:6px 7px!important;
    font-size:9px!important;
    line-height:1.32!important;
  }
}


/* ============================================================
   v1.9.146 — Redact progress stays visible while the PDF stage scrolls
============================================================ */

.hn-pdf-redact .hn-redact-work-progress{
  position:relative!important;
  z-index:22!important;
  top:auto!important;
  left:auto!important;
  transform:none!important;
  width:calc(100% - 20px)!important;
  max-width:620px!important;
  min-height:46px!important;
  margin:7px auto!important;
  padding:8px 11px!important;
  flex:0 0 auto!important;
  align-self:center!important;
  box-sizing:border-box!important;
  box-shadow:0 5px 16px rgba(15,23,42,.11)!important;
}
.hn-pdf-redact .hn-redact-work-progress[hidden]{display:none!important;}
@media (max-width:980px){
  
  .hn-pdf-redact .hn-redact-work-progress{
    width:calc(100% - 16px)!important;
    margin:6px auto!important;
    min-height:43px!important;
  }
}






/* ============================================================
   v1.9.147 — Compact persistent scan status
   Keep scan/OCR state visible without adding a second toolbar row.
============================================================ */




.hn-pdf-redact .hn-redact-toolbar > .hn-redact-work-progress{
  position:absolute!important;
  z-index:40!important;
  top:calc(100% + 7px)!important;
  right:10px!important;
  left:auto!important;
  transform:none!important;
  display:grid!important;
  grid-template-columns:16px minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  width:min(292px,calc(100vw - 52px))!important;
  max-width:292px!important;
  min-width:0!important;
  min-height:38px!important;
  margin:0!important;
  padding:7px 9px!important;
  border:1px solid #cbd5e1!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.97)!important;
  color:#334155!important;
  box-shadow:0 5px 16px rgba(15,23,42,.12)!important;
  backdrop-filter:blur(6px)!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-work-progress[hidden]{display:none!important;}
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-work-progress .hn-redact-work-progress-spinner{
  width:14px!important;
  height:14px!important;
  border-width:2px!important;
}
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-work-progress .hn-redact-work-progress-content{
  gap:4px!important;
}
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-work-progress .hn-redact-work-progress-copy{
  color:#1e3a8a!important;
  font-size:10.5px!important;
  font-weight:750!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-work-progress .hn-redact-work-progress-track{
  height:3px!important;
  background:#e2e8f0!important;
}
@media (max-width:760px){
  .hn-pdf-redact .hn-redact-toolbar > .hn-redact-work-progress{
    top:calc(100% + 6px)!important;
    right:7px!important;
    width:min(260px,calc(100vw - 28px))!important;
    max-width:260px!important;
    min-height:36px!important;
    padding:6px 8px!important;
  }
  .hn-pdf-redact .hn-redact-toolbar > .hn-redact-work-progress .hn-redact-work-progress-copy{
    font-size:10px!important;
  }
}

/* v1.9.152: editor mask translucency is canvas-driven; export remains opaque. */


/* ============================================================
   v1.9.153 — Redact mask Review/Output view + toolbar alignment
   ============================================================ */







/* Core may inject the color-reset action either inside the color label or as a
   sibling in the style group. Normalize both shapes to the toolbar's 32px row. */








/* ============================================================
   v1.9.154 — Redact desktop toolbar single-row geometry
   Keep all immediate editor actions on one professional control strip.
   ============================================================ */
.hn-pdf-redact .hn-redact-editor{container-type:inline-size;}
@container (min-width: 900px){
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}

/* Narrow editor columns may need two logical rows, but never split the style
   controls internally. This applies by editor width, not browser width. */
@container (max-width: 899px){
  
}

/* ============================================================
   v1.9.163 — stable Redact workspace containment
   Reverts the v1.9.162 nested-studio experiment. The three desktop zones
   remain direct tracks of one grid and are forbidden from painting into a
   neighbour. Toolbar rows are driven by the real editor width.
   ============================================================ */



/* One grid, three bounded tracks. Only the track widths change. */






/* Toolbar never escapes the editor track. */
@media (min-width:761px){
  .hn-pdf-redact .hn-redact-toolbar-overflow-wrap,
  .hn-pdf-redact .hn-redact-responsive-tools{
    display:none!important;
  }

  

  

  
  
  
  
  

  
  
  

  /* Wide editors: one clean row. */
  @container (min-width:820px){
    
    
    
    
  }

  /* Windowed desktop: exactly two rows. Row 1 can never reach the settings rail. */
  @container (max-width:819px){
    

    

    

    
    
    
    
    
    

    /* Compact but still understandable style controls. */
    
    .hn-pdf-redact .hn-redact-color{width:30px!important;min-width:30px!important;height:30px!important;}
    
    
    
    
    
    
  }

  /* Very narrow editor track: keep two rows by compacting labels, never overlap. */
  @container (max-width:470px){
    
    
    
    
    
    
    
    
    
  }

  .hn-pdf-redact .hn-redact-toolbar > .hn-redact-work-progress{
    top:calc(100% + 6px)!important;
    right:8px!important;
    left:auto!important;
  }
}

/* Existing phone layout remains the source of truth. Do not turn the clear
   actions into a desktop popover below the mobile breakpoint. */


/* ============================================================
   v1.9.164 — responsive Redact stack + collision-proof toolbar
   Wide desktop keeps Files | Preview | Settings. Narrow desktop/tablet
   stacks Files → Preview → Settings instead of squeezing three columns.
   ============================================================ */



/* Wide desktop only: three side-by-side regions. */


/* Narrow desktop / tablet: stack the three major regions vertically. */


/* Smaller stacked windows flow downward; never collide sideways. */


/* ============================================================
   v1.9.165 — Redact responsive flow reset
   The workspace stops squeezing Files | Preview | Settings when the
   available desktop width is no longer comfortable. Below 1280px the
   three regions become a normal vertical document flow:
   Files strip -> Preview -> Settings. No display:contents cross-grid
   placement is used in the stacked layout.
   ============================================================ */

/* Wide desktop keeps the established three-column composition. */


/* Windowed desktop and tablet: vertical flow, never squeezed side by side. */
@media (max-width:1279px){
  

  

  /* Compact horizontal uploaded-files strip. */
  

  

  

  /* Keep studio as a real container. Editor first, settings immediately after. */
  

  

  

  

  /* Toolbar belongs only to Preview and flows downward instead of colliding. */
  

  
  
  
  

  

  
  
}

/* Narrow window: toolbar gets three deliberate rows; main regions stay vertical. */


/* Phone-width browser windows keep the same safe vertical flow. */


/* v1.9.165 specificity lock: older Redact desktop rules intentionally carry
   long state selectors. Match/exceed them so the stacked flow really wins. */




/* ============================================================
   v1.9.166 — Redact responsive containment repair

   Root cause addressed here:
   - the previous stack was selected only from viewport breakpoints while the
     real editable width is reduced by the site rail / window chrome;
   - stacked file cards were given max-heights, so a card could be visibly cut
     off before Preview started;
   - older desktop rules still imposed bounded rail/editor overflow.

   The Redact shell is now the responsive reference. Whenever the actual tool
   shell is below 1500px, Files -> Preview -> Settings are normal-flow blocks.
   A viewport fallback mirrors the same behavior on browsers without container
   queries. No OCR, detection, mask, review or export-security behavior lives
   in this stylesheet.
   ============================================================ */

/* Measure the real tool area instead of only the browser viewport. */


/* Shared stacked-layout declarations. The @media block is the compatibility
   fallback; the @container block is the authoritative actual-width trigger. */
@media (max-width:1499px){
  

  

  

  

  /* A genuinely compact file strip: shrink the preview itself instead of
     clipping the card with max-height. File name/meta remain available. */
  

  

  

  

  

  

  /* Toolbar is bounded by the Preview card. Mask count has an independent
     grid cell, so it cannot paint over the DPI selector or any action group. */
  
  
  
  
  
  
  
  
}



/* Smaller stacked windows: keep the strip compact and give the toolbar three
   intentional rows. No card/editor/settings max-height clipping is allowed. */





/* ============================================================
   v1.9.167 — Redact mid-width responsive hard lock

   v1.9.166 made the outer tool shell a query container. On the live page that
   shell also participates in Core/Layout workspace sizing, so the 901–1499px
   transition could leave the Redact studio without a painted box while the
   file rail remained visible. Do not turn the shared shell into a container.

   Stacked geometry is now selected by the Redact runtime from the real window
   / available panel space and applied with inline-important properties. This
   final CSS only removes the container side effect and supplies a class-level
   safety net. No document-processing behavior is defined here.
   ============================================================ */







/* ============================================================
   v1.9.168 — Redact usable-width breakpoint + compact full-width toolbar

   The permanent navigation rail means viewport width is not the usable editor
   width. Runtime stack mode is selected from the real panel width in JS. These
   final rules make that stacked state fully self-contained and keep the
   desktop toolbar on one deliberate row whenever the browser is wide enough.
   ============================================================ */

/* Runtime stacked mode is a real vertical flow: Files -> Preview -> Settings. */







/* 1200px+ browsers have enough room once the stack uses the full content
   width. Use one clean toolbar row and a single Clear menu instead of three
   permanent clear buttons. */

/* ============================================================
   v1.9.185 — REDACT WORKSPACE: SINGLE TOOL-SPECIFIC GEOMETRY
   This block is the final owner of Redact workspace geometry. Watermark stays
   untouched. The Redact source rail is a full-height white document navigator,
   cards are larger, the inspector is narrower, preview gets more width, and the
   toolbar centers itself and compacts downward from the editor's real width.
   ============================================================ */
.hn-pdf-redact.hn-redact-has-file.has-files > .hn-file-drop{display:none!important;}
.hn-pdf-redact:not(.has-files) > .hn-file-queue,
.hn-pdf-redact:not(.hn-redact-has-file) > .hn-file-queue{display:none!important;}
.hn-pdf-redact > .hn-redact-studio[hidden],
.hn-pdf-redact:not(.has-files) > .hn-redact-studio,
.hn-pdf-redact:not(.hn-redact-has-file) > .hn-redact-studio{display:none!important;}
.hn-pdf-redact:not(.has-files) > .hn-file-drop,
.hn-pdf-redact:not(.hn-redact-has-file) > .hn-file-drop{
  grid-column:1 / -1!important;width:100%!important;min-width:0!important;max-width:none!important;
}

/* ---------- Redact source rail: white, full-height, naturally extensible ---------- */
@media (min-width:781px){
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-rows:max-content!important;
    width:auto!important;
    height:auto!important;
    min-height:calc(100dvh - 98px)!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-x:hidden!important;
    margin:0!important;
    padding:9px 8px 14px!important;
    gap:10px!important;
    align-content:start!important;
    align-self:start!important;
    justify-self:start!important;
    box-sizing:border-box!important;
    scrollbar-gutter:auto!important;
    border:1px solid #e2e8f0!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(15,23,42,.055)!important;
  }
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card,
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-workspace-add-card,
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-workspace-blank-card{
    width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;
  }
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card{
    padding:9px!important;border-radius:14px!important;
  }
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:128px!important;min-height:128px!important;max-height:128px!important;
  }
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-info{padding:6px 1px 1px!important;}
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-name{
    max-height:27px!important;font-size:10.8px!important;line-height:1.18!important;
  }
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-meta{
    margin-top:2px!important;font-size:9.6px!important;line-height:1.2!important;
  }
}
@media (min-width:1600px){
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:138px!important;min-height:138px!important;max-height:138px!important;
  }
}
@media (min-width:781px) and (max-width:1180px){
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:116px!important;min-height:116px!important;max-height:116px!important;
  }
}

/* ---------- Redact studio / preview / inspector ---------- */
.hn-pdf-redact .hn-redact-studio{min-width:0!important;}
.hn-pdf-redact .hn-redact-editor{
  min-width:0!important;overflow:hidden!important;display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto!important;
  gap:0!important;align-items:stretch!important;container-type:inline-size;container-name:hn-redact-editor;
}
.hn-pdf-redact .hn-redact-controls{
  min-width:0!important;display:flex!important;flex-direction:column!important;gap:8px!important;
  padding:10px!important;box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-stage{
  position:relative!important;isolation:isolate!important;display:flex!important;
  align-items:flex-start!important;justify-content:flex-start!important;width:100%!important;
  min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;
  overflow:auto!important;padding:10px!important;box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-canvas-wrap{
  position:relative!important;display:block!important;flex:0 0 auto!important;min-width:0!important;
  max-width:none!important;margin-left:auto!important;margin-right:auto!important;line-height:0!important;box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-page-canvas{display:block!important;width:100%!important;max-width:none!important;height:auto!important;}
.hn-pdf-redact .hn-redact-overlay-canvas{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;}

/* ---------- Redact toolbar: wide one-row, centered responsive wrap ---------- */
.hn-pdf-redact .hn-redact-toolbar{
  position:relative!important;z-index:20!important;display:flex!important;flex-wrap:nowrap!important;
  align-items:center!important;align-content:center!important;justify-content:center!important;
  gap:8px 10px!important;width:100%!important;min-width:0!important;max-width:100%!important;
  min-height:58px!important;height:auto!important;padding:10px 12px!important;overflow:visible!important;
  box-sizing:border-box!important;white-space:normal!important;
  background:linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%)!important;border-bottom:1px solid #d6e0eb!important;
}
.hn-pdf-redact .hn-redact-toolbar-group{
  display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
.hn-pdf-redact .hn-redact-toolbar-nav{order:1!important;flex-wrap:nowrap!important;}
.hn-pdf-redact .hn-redact-toolbar-zoom{order:2!important;flex-wrap:nowrap!important;}
.hn-pdf-redact .hn-redact-toolbar-edit{order:3!important;flex-wrap:nowrap!important;}
.hn-pdf-redact .hn-redact-toolbar-style{
  order:4!important;display:flex!important;flex:0 1 auto!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:center!important;gap:6px 8px!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
.hn-pdf-redact .hn-redact-mask-count{order:5!important;}
.hn-pdf-redact .hn-redact-mask-count{
  position:static!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:0 11px!important;height:36px!important;white-space:nowrap!important;z-index:auto!important;
  border:1px solid #d8e1ed!important;border-radius:10px!important;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;color:#64748b!important;
  font-size:10.6px!important;line-height:1!important;font-weight:800!important;box-shadow:0 1px 2px rgba(15,23,42,.05)!important;
}
.hn-pdf-redact .hn-redact-toolbar .hn-btn{
  height:36px!important;min-height:36px!important;min-width:36px!important;padding:0 11px!important;
  font-size:11px!important;line-height:1!important;border-radius:10px!important;white-space:nowrap!important;
  border:1px solid #d7e0eb!important;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;color:#0f172a!important;
  box-shadow:0 1px 2px rgba(15,23,42,.05)!important;font-weight:700!important;
}
.hn-pdf-redact .hn-redact-toolbar-nav > .hn-redact-prev,
.hn-pdf-redact .hn-redact-toolbar-nav > .hn-redact-next,
.hn-pdf-redact .hn-redact-toolbar-zoom > .hn-redact-zoom-out,
.hn-pdf-redact .hn-redact-toolbar-zoom > .hn-redact-zoom-in{
  width:36px!important;min-width:36px!important;max-width:36px!important;padding:0!important;font-size:14px!important;
}
.hn-pdf-redact .hn-redact-page-control{
  display:flex!important;align-items:center!important;gap:6px!important;height:36px!important;min-height:36px!important;margin:0!important;
  padding:0 8px!important;border:1px solid #d7e0eb!important;border-radius:10px!important;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;color:#334155!important;
  font-size:10.4px!important;font-weight:800!important;white-space:nowrap!important;box-shadow:0 1px 2px rgba(15,23,42,.05)!important;
}
.hn-pdf-redact .hn-redact-page-control .hn-input{
  width:42px!important;min-width:42px!important;max-width:42px!important;height:28px!important;min-height:28px!important;max-height:28px!important;
  margin:0!important;padding:2px 4px!important;text-align:center!important;font-size:11px!important;line-height:1!important;border-radius:8px!important;
  border:1px solid #d7e0eb!important;background:#fff!important;
}
.hn-pdf-redact .hn-redact-total{min-width:23px!important;color:#475569!important;font-size:10.2px!important;font-weight:800!important;}
.hn-pdf-redact .hn-redact-zoom-value{
  display:flex!important;align-items:center!important;justify-content:center!important;min-width:50px!important;height:36px!important;padding:0 8px!important;
  border:1px solid #d7e0eb!important;border-radius:10px!important;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;color:#334155!important;
  font-size:11px!important;font-weight:850!important;line-height:1!important;font-variant-numeric:tabular-nums!important;user-select:none!important;box-shadow:0 1px 2px rgba(15,23,42,.05)!important;
}
.hn-pdf-redact .hn-redact-toolbar-color,
.hn-pdf-redact .hn-redact-toolbar-view,
.hn-pdf-redact .hn-redact-toolbar-quality{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;
}
.hn-pdf-redact .hn-redact-toolbar-color > span:first-child,
.hn-pdf-redact .hn-redact-toolbar-view > span:first-child,
.hn-pdf-redact .hn-redact-toolbar-quality > span:first-child{font-size:10px!important;font-weight:800!important;color:#475569!important;}
.hn-pdf-redact .hn-redact-color{
  width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:3px!important;border-radius:10px!important;
  border:1px solid #d7e0eb!important;box-shadow:0 1px 2px rgba(15,23,42,.05)!important;background:#fff!important;
}
.hn-pdf-redact .hn-redact-toolbar-style > .hn-color-reset-btn{
  height:36px!important;min-height:36px!important;padding:0 10px!important;font-size:10.8px!important;border-radius:10px!important;position:static!important;transform:none!important;
}
.hn-pdf-redact .hn-redact-view-toggle{
  display:flex!important;align-items:center!important;height:36px!important;min-height:36px!important;padding:3px!important;
  border:1px solid #d7e0eb!important;border-radius:10px!important;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;overflow:hidden!important;
  box-shadow:0 1px 2px rgba(15,23,42,.05)!important;
}
.hn-pdf-redact .hn-redact-view-option{
  display:flex!important;align-items:center!important;justify-content:center!important;min-height:28px!important;padding:0 8px!important;border:0!important;
  border-radius:8px!important;background:transparent!important;color:#64748b!important;font-size:9.8px!important;font-weight:800!important;white-space:nowrap!important;cursor:pointer!important;
}
.hn-pdf-redact .hn-redact-view-option.is-active{background:#dbeafe!important;color:#1d4ed8!important;box-shadow:inset 0 0 0 1px rgba(29,78,216,.06)!important;}
.hn-pdf-redact .hn-redact-toolbar-quality{flex:0 1 auto!important;}
.hn-pdf-redact .hn-redact-toolbar-quality > .hn-select{
  width:178px!important;min-width:146px!important;max-width:178px!important;height:36px!important;min-height:36px!important;
  padding:0 30px 0 10px!important;font-size:10.4px!important;border-radius:10px!important;border:1px solid #d7e0eb!important;
  background-color:#fff!important;box-shadow:0 1px 2px rgba(15,23,42,.05)!important;
}
.hn-pdf-redact .hn-redact-clear-menu-wrap{display:flex!important;position:relative!important;align-items:center!important;min-width:0!important;}
.hn-pdf-redact .hn-redact-clear-menu-trigger{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;height:36px!important;min-height:36px!important;
  padding:0 10px!important;white-space:nowrap!important;font-size:11px!important;
}
.hn-pdf-redact .hn-redact-clear-menu{
  display:none!important;position:absolute!important;top:calc(100% + 6px)!important;left:50%!important;transform:translateX(-50%)!important;
  z-index:90!important;width:max-content!important;min-width:176px!important;padding:8px!important;border:1px solid #d7e0eb!important;border-radius:12px!important;
  background:#fff!important;box-shadow:0 14px 32px rgba(15,23,42,.16)!important;
}
.hn-pdf-redact .hn-redact-clear-menu.is-open{display:flex!important;flex-direction:column!important;gap:5px!important;}
.hn-pdf-redact .hn-redact-clear-menu .hn-btn{display:flex!important;width:100%!important;min-width:160px!important;justify-content:flex-start!important;}
.hn-pdf-redact .hn-redact-clear-menu-chevron{font-size:11px!important;line-height:1!important;}

/* Only when the editor itself is genuinely narrow do we wrap. Every wrapped row stays centered. */
@container hn-redact-editor (max-width:900px){
  .hn-pdf-redact .hn-redact-toolbar{
    flex-wrap:wrap!important;justify-content:center!important;gap:7px 8px!important;padding:8px 9px!important;
  }
  .hn-pdf-redact .hn-redact-toolbar-style{order:6!important;flex:1 0 100%!important;flex-wrap:wrap!important;justify-content:center!important;}
  .hn-pdf-redact .hn-redact-mask-count{order:5!important;}
}
@container hn-redact-editor (max-width:620px){
  .hn-pdf-redact .hn-redact-toolbar{gap:6px 7px!important;padding:7px 8px!important;}
  .hn-pdf-redact .hn-redact-toolbar .hn-btn{height:34px!important;min-height:34px!important;padding:0 8px!important;font-size:10.2px!important;}
  .hn-pdf-redact .hn-redact-toolbar-nav > .hn-redact-prev,
  .hn-pdf-redact .hn-redact-toolbar-nav > .hn-redact-next,
  .hn-pdf-redact .hn-redact-toolbar-zoom > .hn-redact-zoom-out,
  .hn-pdf-redact .hn-redact-toolbar-zoom > .hn-redact-zoom-in{width:34px!important;min-width:34px!important;max-width:34px!important;}
  .hn-pdf-redact .hn-redact-page-control,.hn-pdf-redact .hn-redact-zoom-value{height:34px!important;min-height:34px!important;}
  .hn-pdf-redact .hn-redact-page-control .hn-input{height:28px!important;min-height:28px!important;max-height:28px!important;width:40px!important;min-width:40px!important;max-width:40px!important;}
  .hn-pdf-redact .hn-redact-zoom-value{min-width:48px!important;}
  .hn-pdf-redact .hn-redact-clear-menu-trigger{height:34px!important;min-height:34px!important;}
  .hn-pdf-redact .hn-redact-toolbar-quality > .hn-select{width:160px!important;min-width:132px!important;max-width:160px!important;height:34px!important;min-height:34px!important;}
}
@container hn-redact-editor (max-width:430px){
  .hn-pdf-redact .hn-redact-toolbar-style{gap:5px 6px!important;}
  .hn-pdf-redact .hn-redact-toolbar-color > span:first-child,
  .hn-pdf-redact .hn-redact-toolbar-view > span:first-child,
  .hn-pdf-redact .hn-redact-toolbar-quality > span:first-child{font-size:9px!important;}
}
@container hn-redact-editor (max-width:360px){
  .hn-pdf-redact .hn-redact-toolbar-style{flex-direction:column!important;align-items:center!important;width:100%!important;max-width:100%!important;}
  .hn-pdf-redact .hn-redact-page-control > span:first-child{display:none!important;}
}


/* v1.9.193: toolbar visual cleanup */
.hn-pdf-redact .hn-redact-toolbar-nav > .hn-redact-prev,
.hn-pdf-redact .hn-redact-toolbar-nav > .hn-redact-next{display:none!important;}
.hn-pdf-redact .hn-redact-toolbar-nav{gap:0!important;}
.hn-pdf-redact .hn-redact-page-control{padding:0 10px!important;}
.hn-pdf-redact .hn-redact-color{
  width:30px!important;min-width:30px!important;max-width:30px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;
  padding:2px!important;border-radius:9px!important;
}
.hn-pdf-redact .hn-redact-toolbar-style > .hn-color-reset-btn{padding:0 12px!important;}
.hn-pdf-redact .hn-redact-toolbar-view{gap:5px!important;}
.hn-pdf-redact .hn-redact-view-toggle{padding:2px!important;}
.hn-pdf-redact .hn-redact-view-option{min-width:46px!important;padding:0 10px!important;font-size:9.9px!important;overflow:visible!important;}
.hn-pdf-redact .hn-redact-clear-menu-trigger{padding:0 12px!important;}
.hn-pdf-redact .hn-redact-clear-menu-chevron{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:12px!important;height:12px!important;line-height:1!important;transform:translateY(-1px)!important;
}
@container hn-redact-editor (max-width:620px){
  .hn-pdf-redact .hn-redact-color{
    width:28px!important;min-width:28px!important;max-width:28px!important;
    height:28px!important;min-height:28px!important;max-height:28px!important;
    padding:2px!important;border-radius:8px!important;
  }
  .hn-pdf-redact .hn-redact-view-option{min-width:42px!important;padding:0 8px!important;font-size:9.5px!important;}
}

/* ---------- Phone: normal vertical flow, no overlap ---------- */
@media (max-width:780px){
  html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file{
    display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;width:100%!important;min-width:0!important;max-width:100%!important;
    height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;gap:10px!important;overflow:visible!important;align-items:stretch!important;box-sizing:border-box!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file > .hn-file-queue{
    order:1!important;display:flex!important;flex-direction:row!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;
    height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:8px!important;overflow-x:auto!important;overflow-y:hidden!important;
    border:1px solid #e2e8f0!important;border-radius:16px!important;background:#fff!important;box-sizing:border-box!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card{
    flex:0 0 160px!important;width:160px!important;min-width:160px!important;max-width:160px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:108px!important;min-height:108px!important;max-height:108px!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file > .hn-redact-studio:not([hidden]){
    order:2!important;display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;gap:10px!important;overflow:visible!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file > .hn-redact-studio > .hn-redact-editor{
    order:1!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:430px!important;max-height:none!important;margin:0!important;overflow:hidden!important;
  }
  html body .hn-tool-shell.hn-convert-workspace.hn-redact-loaded > .hn-tool-panel.hn-pdf-redact.hn-redact-has-file > .hn-redact-studio > .hn-redact-controls{
    order:2!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;overflow:visible!important;
  }
}


/* v1.9.195 — refined professional Redact toolbar controls with fully aligned heights. */
.hn-pdf-redact .hn-redact-toolbar{
  gap:0!important;
  padding:9px 12px!important;
  min-height:54px!important;
  background:#f7f9fc!important;
  border-bottom:1px solid #dbe3ec!important;
}
.hn-pdf-redact .hn-redact-toolbar-group{gap:6px!important;align-items:center!important;}
.hn-pdf-redact .hn-redact-toolbar-zoom,
.hn-pdf-redact .hn-redact-toolbar-edit,
.hn-pdf-redact .hn-redact-toolbar-style,
.hn-pdf-redact .hn-redact-mask-count{margin-left:10px!important;}
.hn-pdf-redact .hn-redact-toolbar-zoom,
.hn-pdf-redact .hn-redact-toolbar-edit,
.hn-pdf-redact .hn-redact-toolbar-style{
  position:relative!important;
  padding-left:11px!important;
}
.hn-pdf-redact .hn-redact-toolbar-zoom::before,
.hn-pdf-redact .hn-redact-toolbar-edit::before,
.hn-pdf-redact .hn-redact-toolbar-style::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:7px!important;
  bottom:7px!important;
  width:1px!important;
  background:#dbe3ec!important;
}
.hn-pdf-redact .hn-redact-toolbar .hn-btn,
.hn-pdf-redact .hn-redact-page-control,
.hn-pdf-redact .hn-redact-zoom-value,
.hn-pdf-redact .hn-redact-view-toggle,
.hn-pdf-redact .hn-redact-toolbar-quality > .hn-select,
.hn-pdf-redact .hn-redact-mask-count,
.hn-pdf-redact .hn-redact-color{
  border-color:#d5dee9!important;
  background:#fff!important;
  box-shadow:0 1px 1px rgba(15,23,42,.035)!important;
}
.hn-pdf-redact .hn-redact-toolbar .hn-btn{
  height:34px!important;min-height:34px!important;max-height:34px!important;
  min-width:34px!important;padding:0 10px!important;border-radius:8px!important;
  font-size:10.8px!important;font-weight:750!important;color:#1f2937!important;
}
.hn-pdf-redact .hn-redact-toolbar .hn-btn:hover:not(:disabled){border-color:#bcc8d8!important;background:#f8fafc!important;}
.hn-pdf-redact .hn-redact-toolbar-nav > .hn-redact-prev,
.hn-pdf-redact .hn-redact-toolbar-nav > .hn-redact-next{display:none!important;}
.hn-pdf-redact .hn-redact-page-control{
  height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:0 8px 0 10px!important;gap:5px!important;border-radius:8px!important;font-size:10.2px!important;
}
.hn-pdf-redact .hn-redact-page-control .hn-input{
  width:40px!important;min-width:40px!important;max-width:40px!important;
  height:26px!important;min-height:26px!important;max-height:26px!important;
  border:0!important;border-radius:6px!important;background:#f8fafc!important;
  box-shadow:inset 0 0 0 1px #e2e8f0!important;font-size:10.8px!important;
}
.hn-pdf-redact .hn-redact-total{font-size:10px!important;}
.hn-pdf-redact .hn-redact-toolbar-zoom > .hn-redact-zoom-out,
.hn-pdf-redact .hn-redact-toolbar-zoom > .hn-redact-zoom-in{
  width:34px!important;min-width:34px!important;max-width:34px!important;padding:0!important;font-size:14px!important;
}
.hn-pdf-redact .hn-redact-zoom-value{
  height:34px!important;min-height:34px!important;max-height:34px!important;
  min-width:48px!important;padding:0 7px!important;border-radius:8px!important;font-size:10.8px!important;
}
.hn-pdf-redact .hn-redact-toolbar-color,
.hn-pdf-redact .hn-redact-toolbar-view,
.hn-pdf-redact .hn-redact-toolbar-quality{gap:5px!important;align-items:center!important;}
.hn-pdf-redact .hn-redact-toolbar-color > span:first-child,
.hn-pdf-redact .hn-redact-toolbar-view > span:first-child,
.hn-pdf-redact .hn-redact-toolbar-quality > span:first-child{
  font-size:9.7px!important;font-weight:750!important;color:#526173!important;line-height:34px!important;
}
.hn-pdf-redact .hn-redact-color{
  display:block!important;align-self:center!important;appearance:none!important;-webkit-appearance:none!important;
  width:34px!important;min-width:34px!important;max-width:34px!important;
  height:34px!important;min-height:34px!important;max-height:34px!important;
  margin:0!important;padding:4px!important;border:1px solid #cbd5e1!important;border-radius:8px!important;
  background:#fff!important;box-shadow:0 1px 1px rgba(15,23,42,.035)!important;cursor:pointer!important;vertical-align:middle!important;
}
.hn-pdf-redact .hn-redact-color::-webkit-color-swatch-wrapper{padding:0!important;}
.hn-pdf-redact .hn-redact-color::-webkit-color-swatch{border:0!important;border-radius:4px!important;}
.hn-pdf-redact .hn-redact-color::-moz-color-swatch{border:0!important;border-radius:4px!important;}
.hn-pdf-redact .hn-redact-toolbar-style > .hn-color-reset-btn{
  height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:0 9px!important;border-radius:8px!important;font-size:10.2px!important;font-weight:700!important;box-shadow:none!important;
}
.hn-pdf-redact .hn-redact-view-toggle{
  height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:2px!important;border-radius:8px!important;box-shadow:none!important;align-items:center!important;
}
.hn-pdf-redact .hn-redact-view-option{
  min-width:46px!important;height:30px!important;min-height:30px!important;max-height:30px!important;
  padding:0 9px!important;border-radius:6px!important;font-size:9.7px!important;line-height:30px!important;overflow:visible!important;
}
.hn-pdf-redact .hn-redact-view-option.is-active{background:#e8f1ff!important;color:#1d4ed8!important;box-shadow:none!important;}
.hn-pdf-redact .hn-redact-toolbar-quality > .hn-select{
  width:170px!important;min-width:145px!important;max-width:170px!important;
  height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:0 28px 0 9px!important;border-radius:8px!important;font-size:10.1px!important;box-shadow:none!important;
}
.hn-pdf-redact .hn-redact-clear-menu-trigger{
  height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:0 10px!important;gap:5px!important;align-items:center!important;
}
.hn-pdf-redact .hn-redact-clear-menu-chevron{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:10px!important;height:10px!important;margin:0 0 0 1px!important;line-height:10px!important;
  transform:none!important;position:relative!important;top:-1px!important;font-size:9px!important;
}
.hn-pdf-redact .hn-redact-mask-count{
  height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:0 9px!important;border-radius:8px!important;font-size:10px!important;box-shadow:none!important;
}
@container hn-redact-editor (max-width:900px){
  .hn-pdf-redact .hn-redact-toolbar{gap:6px 0!important;}
  .hn-pdf-redact .hn-redact-toolbar-style{margin-left:0!important;padding-left:0!important;}
  .hn-pdf-redact .hn-redact-toolbar-style::before{display:none!important;}
}
@container hn-redact-editor (max-width:620px){
  .hn-pdf-redact .hn-redact-toolbar-zoom,
  .hn-pdf-redact .hn-redact-toolbar-edit,
  .hn-pdf-redact .hn-redact-mask-count{margin-left:7px!important;}
  .hn-pdf-redact .hn-redact-toolbar-zoom,
  .hn-pdf-redact .hn-redact-toolbar-edit{padding-left:8px!important;}
}


/* v1.9.196 — final Redact toolbar/file-rail polish.
   - restore live blackout thumbnails in the left source cards
   - make Redact source cards taller on desktop
   - force color control + all toolbar controls onto one shared 34px rhythm */
.hn-pdf-redact .hn-redact-toolbar,
.hn-pdf-redact .hn-redact-toolbar-group,
.hn-pdf-redact .hn-redact-toolbar-color,
.hn-pdf-redact .hn-redact-toolbar-view,
.hn-pdf-redact .hn-redact-toolbar-quality,
.hn-pdf-redact .hn-redact-toolbar-style,
.hn-pdf-redact .hn-redact-toolbar-zoom,
.hn-pdf-redact .hn-redact-toolbar-edit{
  align-items:center!important;
}
.hn-pdf-redact .hn-redact-toolbar-color{
  min-height:34px!important;
}
.hn-pdf-redact .hn-redact-toolbar .hn-btn,
.hn-pdf-redact .hn-redact-page-control,
.hn-pdf-redact .hn-redact-zoom-value,
.hn-pdf-redact .hn-redact-view-toggle,
.hn-pdf-redact .hn-redact-toolbar-quality > .hn-select,
.hn-pdf-redact .hn-redact-mask-count,
.hn-pdf-redact .hn-redact-toolbar-style > .hn-color-reset-btn,
.hn-pdf-redact .hn-redact-color{
  align-self:center!important;
  box-sizing:border-box!important;
}
.hn-pdf-redact .hn-redact-toolbar-color > span:first-child,
.hn-pdf-redact .hn-redact-toolbar-view > span:first-child,
.hn-pdf-redact .hn-redact-toolbar-quality > span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  height:34px!important;
  line-height:1!important;
  margin:0!important;
}
.hn-pdf-redact .hn-redact-color{
  flex:0 0 34px!important;
  vertical-align:middle!important;
  position:relative!important;
  top:0!important;
  inset:auto!important;
}
@media (min-width:781px){
  html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file.has-files:not([data-hn-main-output="1"]) > .hn-file-queue{
    padding:10px 10px 18px!important;
  }
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card{
    min-height:246px!important;
    padding:10px!important;
    border-radius:16px!important;
  }
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:146px!important;min-height:146px!important;max-height:146px!important;
  }
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-info{
    padding:8px 2px 2px!important;
  }
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-name{
    max-height:36px!important;
  }
}
@media (min-width:1600px){
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:158px!important;min-height:158px!important;max-height:158px!important;
  }
}
@media (min-width:781px) and (max-width:1180px){
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card{
    min-height:232px!important;
  }
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card .hn-upload-thumb-media,
  html body .hn-tool-panel.hn-pdf-redact[data-mode="redact-pdf"].hn-redact-has-file > .hn-file-queue > .hn-file-card.hn-upload-thumb-card > .hn-upload-thumb-media > .hn-file-thumb{
    height:132px!important;min-height:132px!important;max-height:132px!important;
  }
}
.hn-pdf-redact .hn-redact-rail-live-preview{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;border-radius:inherit!important;object-fit:contain!important;pointer-events:none!important;z-index:1!important;
}
.hn-pdf-redact .hn-redact-rail-mask-badge{
  position:absolute!important;left:6px!important;bottom:6px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:22px!important;height:22px!important;padding:0 7px!important;border-radius:999px!important;background:#fff1f2!important;color:#be123c!important;border:1px solid #fecdd3!important;font-size:11px!important;font-weight:800!important;line-height:1!important;z-index:3!important;box-shadow:0 3px 10px rgba(15,23,42,.08)!important;pointer-events:none!important;
}

/* v1.9.197 — exact 34px vertical rhythm for every Redact toolbar control. */
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-toolbar-nav,
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-toolbar-zoom,
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-toolbar-edit,
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-toolbar-style{
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  align-items:center!important;
}
.hn-pdf-redact .hn-redact-toolbar-color,
.hn-pdf-redact .hn-redact-toolbar-view,
.hn-pdf-redact .hn-redact-toolbar-quality{
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0!important;
  align-items:center!important;
}
/* This exact selector intentionally outranks the legacy v1.9.117 color-input rule. */
.hn-pdf-redact .hn-redact-toolbar-color > input.hn-redact-color[type="color"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:block!important;
  box-sizing:border-box!important;
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  flex:0 0 34px!important;
  margin:0!important;
  padding:4px!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 1px 1px rgba(15,23,42,.035)!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  vertical-align:middle!important;
  line-height:1!important;
}
.hn-pdf-redact .hn-redact-toolbar-color > input.hn-redact-color[type="color"]::-webkit-color-swatch-wrapper{padding:0!important;}
.hn-pdf-redact .hn-redact-toolbar-color > input.hn-redact-color[type="color"]::-webkit-color-swatch{border:0!important;border-radius:4px!important;}
.hn-pdf-redact .hn-redact-toolbar-color > input.hn-redact-color[type="color"]::-moz-color-swatch{border:0!important;border-radius:4px!important;}
.hn-pdf-redact .hn-redact-toolbar .hn-btn,
.hn-pdf-redact .hn-redact-page-control,
.hn-pdf-redact .hn-redact-zoom-value,
.hn-pdf-redact .hn-redact-clear-menu-trigger,
.hn-pdf-redact .hn-redact-toolbar-style > .hn-color-reset-btn,
.hn-pdf-redact .hn-redact-view-toggle,
.hn-pdf-redact .hn-redact-toolbar-quality > .hn-select,
.hn-pdf-redact .hn-redact-mask-count{
  box-sizing:border-box!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin-top:0!important;
  margin-bottom:0!important;
  align-self:center!important;
  vertical-align:middle!important;
}
@container hn-redact-editor (max-width:900px){
  .hn-pdf-redact .hn-redact-toolbar > .hn-redact-toolbar-style{
    height:auto!important;
    min-height:34px!important;
    max-height:none!important;
  }
}
.hn-pdf-redact .hn-redact-toolbar .hn-btn,
.hn-pdf-redact .hn-redact-clear-menu-trigger,
.hn-pdf-redact .hn-redact-toolbar-style > .hn-color-reset-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
}
.hn-pdf-redact .hn-redact-page-control,
.hn-pdf-redact .hn-redact-zoom-value,
.hn-pdf-redact .hn-redact-mask-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
}

/* v1.9.198 — Redact toolbar: one exact control box + center line. */
.hn-pdf-redact .hn-redact-toolbar{
  --hn-redact-control-h:34px;
  align-items:center!important;
}
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-toolbar-group,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-clear-menu-wrap,
.hn-pdf-redact .hn-redact-toolbar-color,
.hn-pdf-redact .hn-redact-toolbar-view,
.hn-pdf-redact .hn-redact-toolbar-quality{
  display:inline-flex!important;
  align-items:center!important;
  min-height:var(--hn-redact-control-h)!important;
  margin-block:0!important;
  vertical-align:middle!important;
}
.hn-pdf-redact .hn-redact-toolbar .hn-btn,
.hn-pdf-redact .hn-redact-page-control,
.hn-pdf-redact .hn-redact-zoom-value,
.hn-pdf-redact .hn-redact-clear-menu-trigger,
.hn-pdf-redact .hn-redact-toolbar-style > .hn-color-reset-btn,
.hn-pdf-redact .hn-redact-view-toggle,
.hn-pdf-redact .hn-redact-toolbar-quality > .hn-select,
.hn-pdf-redact .hn-redact-mask-count,
.hn-pdf-redact .hn-redact-toolbar-color > input.hn-redact-color[type="color"]{
  box-sizing:border-box!important;
  height:var(--hn-redact-control-h)!important;
  min-height:var(--hn-redact-control-h)!important;
  max-height:var(--hn-redact-control-h)!important;
  margin-top:0!important;
  margin-bottom:0!important;
  align-self:center!important;
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  vertical-align:middle!important;
}
.hn-pdf-redact .hn-redact-toolbar-color > input.hn-redact-color[type="color"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:inline-block!important;
  width:var(--hn-redact-control-h)!important;
  min-width:var(--hn-redact-control-h)!important;
  max-width:var(--hn-redact-control-h)!important;
  flex:0 0 var(--hn-redact-control-h)!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
  line-height:normal!important;
}
.hn-pdf-redact .hn-redact-toolbar-color > input.hn-redact-color[type="color"]::-webkit-color-swatch-wrapper{
  padding:3px!important;
}
.hn-pdf-redact .hn-redact-toolbar-color > input.hn-redact-color[type="color"]::-webkit-color-swatch{
  border:0!important;
  border-radius:5px!important;
}
.hn-pdf-redact .hn-redact-toolbar-color > input.hn-redact-color[type="color"]::-moz-color-swatch{
  border:3px solid #fff!important;
  border-radius:7px!important;
}
.hn-pdf-redact .hn-redact-toolbar-color > span:first-child,
.hn-pdf-redact .hn-redact-toolbar-view > span:first-child,
.hn-pdf-redact .hn-redact-toolbar-quality > span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  height:var(--hn-redact-control-h)!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
}
/* Safety: old cached/generated markup may still contain the removed arrows. */
.hn-pdf-redact .hn-redact-prev,
.hn-pdf-redact .hn-redact-next{
  display:none!important;
}


/* v1.9.200 — PDF Redact toolbar authoritative geometry lock.
   Every visible top-row control is exactly 34px high and shares one center line. */
.hn-pdf-redact .hn-redact-toolbar{
  --hn-redact-control-h:34px;
  display:flex!important;
  align-items:center!important;
  align-content:center!important;
}
.hn-pdf-redact .hn-redact-toolbar > .hn-redact-toolbar-group,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-clear-menu-wrap,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-color,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-view,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-quality{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  align-self:center!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  vertical-align:middle!important;
}

/* Every actual button in the toolbar, including dynamically injected Reset color
   and Clear-menu buttons, uses exactly the same outer height. */
.hn-pdf-redact .hn-redact-toolbar button{
  box-sizing:border-box!important;
  height:var(--hn-redact-control-h)!important;
  min-height:var(--hn-redact-control-h)!important;
  max-height:var(--hn-redact-control-h)!important;
  margin-top:0!important;
  margin-bottom:0!important;
  align-self:center!important;
  vertical-align:middle!important;
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  line-height:1!important;
}

/* Non-button controls that visually occupy the same toolbar row. */
.hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-zoom-value,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-view-toggle,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-quality,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-mask-count,
.hn-pdf-redact .hn-redact-toolbar input.hn-redact-color[type="color"]{
  box-sizing:border-box!important;
  height:var(--hn-redact-control-h)!important;
  min-height:var(--hn-redact-control-h)!important;
  max-height:var(--hn-redact-control-h)!important;
  margin-top:0!important;
  margin-bottom:0!important;
  align-self:center!important;
  vertical-align:middle!important;
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
}

/* Page is one 34px control; its number field stays intentionally inset. */
.hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-page{
  box-sizing:border-box!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  align-self:center!important;
}

/* Native color inputs have browser-specific internal chrome; neutralize it. */
.hn-pdf-redact .hn-redact-toolbar input.hn-redact-color[type="color"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:block!important;
  width:var(--hn-redact-control-h)!important;
  min-width:var(--hn-redact-control-h)!important;
  max-width:var(--hn-redact-control-h)!important;
  flex:0 0 var(--hn-redact-control-h)!important;
  padding:0!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#fff!important;
  overflow:hidden!important;
  line-height:normal!important;
}
.hn-pdf-redact .hn-redact-toolbar input.hn-redact-color[type="color"]::-webkit-color-swatch-wrapper{
  padding:3px!important;
  margin:0!important;
}
.hn-pdf-redact .hn-redact-toolbar input.hn-redact-color[type="color"]::-webkit-color-swatch{
  border:0!important;
  border-radius:5px!important;
}
.hn-pdf-redact .hn-redact-toolbar input.hn-redact-color[type="color"]::-moz-color-swatch{
  border:3px solid #fff!important;
  border-radius:7px!important;
}

/* Reset color may be injected by shared UI inside an extra wrapper. */
.hn-pdf-redact .hn-redact-toolbar .hn-color-reset-btn{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:var(--hn-redact-control-h)!important;
  min-height:var(--hn-redact-control-h)!important;
  max-height:var(--hn-redact-control-h)!important;
  margin:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  align-self:center!important;
  vertical-align:middle!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  line-height:1!important;
}
.hn-pdf-redact .hn-redact-toolbar .hn-color-reset-btn:not(:first-child){margin-left:0!important;}
.hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-color > *,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-style > *{
  align-self:center!important;
  margin-top:0!important;
  margin-bottom:0!important;
}

/* Review / Output are buttons too: no 28px inner exception. */
.hn-pdf-redact .hn-redact-toolbar .hn-redact-view-toggle{
  display:inline-flex!important;
  align-items:center!important;
  padding:0!important;
  overflow:hidden!important;
}
.hn-pdf-redact .hn-redact-toolbar .hn-redact-view-option{
  height:var(--hn-redact-control-h)!important;
  min-height:var(--hn-redact-control-h)!important;
  max-height:var(--hn-redact-control-h)!important;
  border-radius:8px!important;
}

/* Labels sit on the exact same visual center line as their controls. */
.hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-color > span:first-child,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-view > span:first-child,
.hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-quality > span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  align-self:center!important;
  height:var(--hn-redact-control-h)!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
}

/* Removed page arrows must never reappear through cached/legacy markup. */
.hn-pdf-redact .hn-redact-prev,
.hn-pdf-redact .hn-redact-next{
  display:none!important;
}


/* v1.9.200 specificity guard — beats shared/Core button rules even when they use !important. */
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-style .hn-color-reset-btn,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-edit .hn-redact-undo,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-edit .hn-redact-clear-menu-trigger,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-zoom .hn-redact-zoom-out,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-zoom .hn-redact-zoom-in,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-view .hn-redact-view-option{
  box-sizing:border-box!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin-top:0!important;
  margin-bottom:0!important;
  align-self:center!important;
  vertical-align:middle!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-color input.hn-redact-color[type="color"],
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-toolbar-quality select.hn-redact-quality,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-zoom-value,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-view-toggle,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-mask-count{
  box-sizing:border-box!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin-top:0!important;
  margin-bottom:0!important;
  align-self:center!important;
  vertical-align:middle!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
}

/* v1.9.201 — Professional page-control treatment.
   Preserve the compact "Page 1 / N" logic, but remove the nested-input/pill look.
   The outer shell is the single visual control; the editable page number is flat,
   tabular, centered and gets a subtle focus state only while editing. */
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  min-width:104px!important;
  padding:0 9px!important;
  overflow:hidden!important;
  border:1px solid #d7e0eb!important;
  border-radius:9px!important;
  background:#fff!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
  color:#334155!important;
  white-space:nowrap!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  align-self:center!important;
  height:18px!important;
  margin:0 7px 0 0!important;
  padding:0 7px 0 0!important;
  border-right:1px solid #e2e8f0!important;
  color:#64748b!important;
  font-size:10px!important;
  font-weight:700!important;
  line-height:18px!important;
  letter-spacing:0!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page{
  -webkit-appearance:none!important;
  appearance:none!important;
  box-sizing:border-box!important;
  display:block!important;
  width:28px!important;
  min-width:28px!important;
  max-width:28px!important;
  height:24px!important;
  min-height:24px!important;
  max-height:24px!important;
  margin:0!important;
  padding:0 2px!important;
  border:0!important;
  border-radius:6px!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#0f172a!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:24px!important;
  text-align:center!important;
  font-variant-numeric:tabular-nums!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page:hover{
  background:#f8fafc!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page:focus{
  background:#eff6ff!important;
  box-shadow:inset 0 0 0 1px #bfdbfe!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-total,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > span:last-child{
  display:inline-flex!important;
  align-items:center!important;
  align-self:center!important;
  justify-content:flex-start!important;
  min-width:26px!important;
  height:24px!important;
  margin:0!important;
  padding:0 0 0 4px!important;
  color:#64748b!important;
  font-size:10.5px!important;
  font-weight:700!important;
  line-height:24px!important;
  font-variant-numeric:tabular-nums!important;
}

/* v1.9.202 — Redact toolbar polish: clean page navigator + optical chevron. */
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  min-width:0!important;
  width:auto!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#334155!important;
  white-space:nowrap!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:34px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  color:#475569!important;
  font-size:10.5px!important;
  font-weight:750!important;
  line-height:1!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page{
  -webkit-appearance:textfield!important;
  appearance:textfield!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0 5px!important;
  border:1px solid #d7e0eb!important;
  border-radius:8px!important;
  outline:0!important;
  background:#fff!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
  color:#0f172a!important;
  font-size:11px!important;
  font-weight:750!important;
  line-height:32px!important;
  text-align:center!important;
  font-variant-numeric:tabular-nums!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page::-webkit-inner-spin-button,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page::-webkit-outer-spin-button{
  -webkit-appearance:none!important;
  margin:0!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page:hover{
  border-color:#c5d0de!important;
  background:#fff!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page:focus{
  border-color:#93c5fd!important;
  background:#fff!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.10)!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-total,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > span:last-child{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-width:24px!important;
  height:34px!important;
  margin:0!important;
  padding:0!important;
  color:#64748b!important;
  font-size:10.5px!important;
  font-weight:700!important;
  line-height:1!important;
  font-variant-numeric:tabular-nums!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-clear-menu-trigger{
  gap:6px!important;
  padding:0 10px 0 11px!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-clear-menu-chevron{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 12px!important;
  width:12px!important;
  height:12px!important;
  margin:0!important;
  padding:0!important;
  color:#64748b!important;
  line-height:0!important;
  transform:none!important;
  transform-origin:50% 50%!important;
  transition:transform .16s ease!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-clear-menu-chevron svg{
  display:block!important;
  width:12px!important;
  height:12px!important;
  overflow:visible!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-clear-menu-trigger[aria-expanded="true"] .hn-redact-clear-menu-chevron{
  transform:rotate(180deg)!important;
}

/* v1.9.203 — Restore compact page-control shell; equalize current/total number typography. */
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:auto!important;
  min-width:122px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0 8px!important;
  overflow:hidden!important;
  border:1px solid #d7e0eb!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
  color:#334155!important;
  white-space:nowrap!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > span:first-child{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  height:26px!important;
  margin:0!important;
  padding:0 1px!important;
  border:0!important;
  color:#475569!important;
  font-size:10.5px!important;
  font-weight:700!important;
  line-height:26px!important;
  letter-spacing:0!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page{
  -webkit-appearance:textfield!important;
  appearance:textfield!important;
  box-sizing:border-box!important;
  display:block!important;
  flex:0 0 38px!important;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  padding:0 4px!important;
  border:1px solid #d7e0eb!important;
  border-radius:7px!important;
  outline:0!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#0f172a!important;
  font-size:10.5px!important;
  font-weight:700!important;
  line-height:24px!important;
  text-align:center!important;
  font-variant-numeric:tabular-nums!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page::-webkit-inner-spin-button,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page::-webkit-outer-spin-button{
  -webkit-appearance:none!important;
  margin:0!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page:hover{
  border-color:#cbd5e1!important;
  background:#fff!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > input.hn-redact-page:focus{
  border-color:#93c5fd!important;
  background:#fff!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.09)!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-total,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > span:last-child{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex:0 0 auto!important;
  min-width:26px!important;
  height:26px!important;
  margin:0!important;
  padding:0!important;
  color:#475569!important;
  font-size:10.5px!important;
  font-weight:700!important;
  line-height:26px!important;
  font-variant-numeric:tabular-nums!important;
}


/* v1.9.205 — compact page stepper: upper arrow goes backward, lower arrow goes forward. */
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-page-stepper{
  position:relative!important;
  display:inline-block!important;
  flex:0 0 38px!important;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  padding:0!important;
  vertical-align:middle!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-page-stepper > input.hn-redact-page{
  box-sizing:border-box!important;
  display:block!important;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  padding:0 13px 0 4px!important;
  border:1px solid #d7e0eb!important;
  border-radius:7px!important;
  outline:0!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#0f172a!important;
  font-size:10.5px!important;
  font-weight:700!important;
  line-height:24px!important;
  text-align:center!important;
  font-variant-numeric:tabular-nums!important;
  -webkit-appearance:textfield!important;
  appearance:textfield!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-page-stepper > input.hn-redact-page::-webkit-inner-spin-button,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-page-stepper > input.hn-redact-page::-webkit-outer-spin-button{
  -webkit-appearance:none!important;
  margin:0!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-page-stepper:focus-within > input.hn-redact-page{
  border-color:#93c5fd!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.09)!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-page-stepper > .hn-redact-page-step-buttons{
  position:absolute!important;
  z-index:2!important;
  top:1px!important;
  right:1px!important;
  display:grid!important;
  grid-template-rows:12px 12px!important;
  width:12px!important;
  height:24px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border-left:1px solid #edf1f5!important;
  border-radius:0 6px 6px 0!important;
  background:rgba(248,250,252,.92)!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-down{
  appearance:none!important;
  -webkit-appearance:none!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:12px!important;
  min-width:12px!important;
  max-width:12px!important;
  height:12px!important;
  min-height:12px!important;
  max-height:12px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  color:#64748b!important;
  box-shadow:none!important;
  cursor:pointer!important;
  line-height:0!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up{
  border-bottom:1px solid #edf1f5!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up svg,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-down svg{
  display:block!important;
  width:7px!important;
  height:5px!important;
  pointer-events:none!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up:hover,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-down:hover{
  background:#eef4fb!important;
  color:#334155!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up:disabled,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-down:disabled{
  color:#cbd5e1!important;
  background:transparent!important;
  cursor:default!important;
}


/* v1.9.206 — refined compact page stepper.
   Keep the v1.9.203 shell, but place two quiet custom chevrons beside the number
   instead of squeezing browser-like spinner controls into the input. */
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-page-stepper{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  padding:0!important;
  position:static!important;
  overflow:visible!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-page-stepper > input.hn-redact-page{
  flex:0 0 38px!important;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  padding:0 4px!important;
  text-align:center!important;
  border:1px solid #d7e0eb!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control > .hn-redact-page-stepper > .hn-redact-page-step-buttons{
  position:static!important;
  display:grid!important;
  grid-template-rows:12px 12px!important;
  gap:2px!important;
  flex:0 0 15px!important;
  width:15px!important;
  min-width:15px!important;
  max-width:15px!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-down{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:15px!important;
  min-width:15px!important;
  max-width:15px!important;
  height:12px!important;
  min-height:12px!important;
  max-height:12px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #dbe3ed!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#64748b!important;
  box-shadow:none!important;
  cursor:pointer!important;
  line-height:0!important;
  transition:background-color .12s ease,border-color .12s ease,color .12s ease!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up{
  border-bottom:1px solid #dbe3ed!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up svg,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-down svg{
  width:8px!important;
  height:6px!important;
  display:block!important;
  pointer-events:none!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up:hover:not(:disabled),
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-down:hover:not(:disabled){
  background:#f1f5f9!important;
  border-color:#cbd5e1!important;
  color:#334155!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up:active:not(:disabled),
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-down:active:not(:disabled){
  background:#e8eef6!important;
}
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-up:disabled,
html body .hn-pdf-redact .hn-redact-toolbar .hn-redact-page-control .hn-redact-page-step-down:disabled{
  opacity:.34!important;
  background:#f8fafc!important;
  color:#94a3b8!important;
  cursor:default!important;
}

/* ============================================================
   v1.9.208 — REDACT EXPORT PROCESSING: HARD FULL-WIDTH HANDOFF
   Core still owns the actual processing/progress UI. Redact only gets its
   loaded-workspace chrome out of the way while export is running.
   ============================================================ */
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy{
  display:block!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:calc(100dvh - 96px)!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  overflow:visible!important;
  background:#fff!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* Source rail must never remain beside the processing screen. */
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy > .hn-file-queue,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy > .hn-file-drop,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy > .hn-file-summary{
  display:none!important;
}

/* Keep the runtime host, but remove all Redact editor chrome around Core progress. */
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy > .hn-redact-studio{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
}
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy .hn-redact-controls,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy .hn-redact-toolbar,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy .hn-redact-hint,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy .hn-redact-work-progress{
  display:none!important;
}
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy .hn-redact-editor{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:calc(100dvh - 96px)!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:#fff!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-redact-export-busy .hn-redact-stage{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:calc(100dvh - 96px)!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:#fff!important;
}

/* If Core also marks the panel as processing-mode, preserve the same cleanup. */
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-processing-mode > .hn-file-queue,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-processing-mode .hn-redact-toolbar,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-processing-mode .hn-redact-controls,
html body .hn-tool-shell.hn-convert-workspace > .hn-tool-panel.hn-pdf-redact.hn-processing-mode .hn-redact-hint{
  display:none!important;
}


/* v1.9.208 — broad fallback selectors for Core/runtime shell variations.
   JS owns the inline !important rail suppression; these rules cover markup variants. */
html body .hn-pdf-redact.hn-redact-export-busy > .hn-file-queue,
html body .hn-pdf-redact.hn-redact-export-busy .hn-file-queue,
html body .hn-pdf-redact.hn-processing-mode > .hn-file-queue{
  display:none!important;visibility:hidden!important;width:0!important;min-width:0!important;max-width:0!important;
  height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;pointer-events:none!important;
}
html body .hn-pdf-redact.hn-redact-export-busy{
  grid-template-columns:minmax(0,1fr)!important;column-gap:0!important;row-gap:0!important;gap:0!important;padding:0!important;
}
html body .hn-pdf-redact.hn-redact-export-busy > .hn-redact-studio{
  grid-column:1 / -1!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;
}

/* v1.9.209 — Smart Redaction precision/recall balancing is implemented in JS. */

/* v1.9.210 — OCR fidelity change only; no visual geometry changes. */

/* v1.9.219 — page-local Redact review. The inspector follows the visible PDF
   page and lists every automatic blackout on that page in reading order. */
.hn-pdf-redact .hn-redact-review{
  gap:7px!important;
  padding:9px!important;
}
.hn-pdf-redact .hn-redact-review-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:24px!important;
}
.hn-pdf-redact .hn-redact-review-head strong{
  font-size:11.5px!important;
  font-weight:850!important;
}
.hn-pdf-redact .hn-redact-review-counter,
.hn-pdf-redact .hn-redact-review-prev,
.hn-pdf-redact .hn-redact-review-next,
.hn-pdf-redact .hn-redact-review-stats,
.hn-pdf-redact .hn-redact-review-filters,
.hn-pdf-redact .hn-redact-review-meta,
.hn-pdf-redact .hn-redact-review-text,
.hn-pdf-redact .hn-redact-review-actions,
.hn-pdf-redact .hn-redact-review-batch{
  display:none!important;
}
.hn-pdf-redact .hn-redact-review-page-title{
  display:flex!important;
  align-items:center!important;
  min-height:22px!important;
  padding:4px 7px!important;
  border-radius:7px!important;
  background:#eef2ff!important;
  color:#475569!important;
  font-size:9.5px!important;
  line-height:1.2!important;
  font-weight:800!important;
  font-variant-numeric:tabular-nums!important;
}
.hn-pdf-redact .hn-redact-review-page-list{
  display:grid!important;
  gap:5px!important;
  min-width:0!important;
  max-height:310px!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  padding-right:1px!important;
}
.hn-pdf-redact .hn-redact-review-page-empty{
  padding:9px 8px!important;
  border:1px dashed #d9e2ee!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#64748b!important;
  font-size:9.5px!important;
  line-height:1.3!important;
  text-align:center!important;
}
.hn-pdf-redact .hn-redact-review-page-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 58px!important;
  align-items:stretch!important;
  gap:5px!important;
  min-width:0!important;
  padding:4px!important;
  border:1px solid #e2e8f0!important;
  border-radius:9px!important;
  background:#fff!important;
  box-shadow:0 1px 2px rgba(15,23,42,.025)!important;
}
.hn-pdf-redact .hn-redact-review-page-row.is-approved{
  border-color:#bbf7d0!important;
  background:#fbfffc!important;
}
.hn-pdf-redact .hn-redact-review-page-main{
  appearance:none!important;
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
  width:100%!important;
  padding:4px 5px!important;
  margin:0!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#0f172a!important;
  text-align:left!important;
  cursor:pointer!important;
}
.hn-pdf-redact .hn-redact-review-page-main:hover,
.hn-pdf-redact .hn-redact-review-page-main:focus-visible{
  background:#f8fafc!important;
  outline:none!important;
}
.hn-pdf-redact .hn-redact-review-page-text{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
  line-height:1.25!important;
  font-weight:750!important;
  color:#0f172a!important;
}
.hn-pdf-redact .hn-redact-review-page-meta{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:8.2px!important;
  line-height:1.2!important;
  font-weight:700!important;
  color:#94a3b8!important;
}
.hn-pdf-redact .hn-redact-review-page-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:4px!important;
  align-items:stretch!important;
}
.hn-pdf-redact .hn-redact-review-page-actions button{
  appearance:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:27px!important;
  min-width:27px!important;
  height:100%!important;
  min-height:34px!important;
  padding:0!important;
  margin:0!important;
  border-radius:7px!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.hn-pdf-redact .hn-redact-review-page-approve{
  border:1px solid #bbf7d0!important;
  background:#f0fdf4!important;
  color:#15803d!important;
}
.hn-pdf-redact .hn-redact-review-page-row.is-approved .hn-redact-review-page-approve{
  background:#dcfce7!important;
  border-color:#86efac!important;
}
.hn-pdf-redact .hn-redact-review-page-remove{
  border:1px solid #fecaca!important;
  background:#fff1f2!important;
  color:#be123c!important;
}
.hn-pdf-redact .hn-redact-review-page-actions button:hover,
.hn-pdf-redact .hn-redact-review-page-actions button:focus-visible{
  filter:brightness(.985)!important;
  outline:2px solid rgba(37,99,235,.12)!important;
  outline-offset:1px!important;
}
@media (max-width:640px){
  .hn-pdf-redact .hn-redact-review-page-list{max-height:250px!important;}
}

/* v1.9.220 — review counters + export-owned DPI control */
.hn-pdf-redact .hn-redact-review-mask-summary{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:5px!important;
  min-width:0!important;
}
.hn-pdf-redact .hn-redact-review-mask-summary > span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:27px!important;
  padding:5px 7px!important;
  border:1px solid #dbe4ef!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#334155!important;
  font-size:9.4px!important;
  line-height:1!important;
  font-weight:800!important;
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
}
.hn-pdf-redact .hn-redact-review-page-mask-count{background:#f8fafc!important;}
.hn-pdf-redact .hn-redact-review-total-mask-count{background:#f1f5f9!important;}

.hn-pdf-redact .hn-redact-export-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
}
.hn-pdf-redact .hn-redact-export-quality{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
.hn-pdf-redact .hn-redact-export-quality > span:first-child{
  color:#475569!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.hn-pdf-redact .hn-redact-export-quality > .hn-redact-quality{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  border-radius:9px!important;
}
.hn-pdf-redact .hn-redact-export-actions > .hn-redact-export{
  width:100%!important;
  margin:0!important;
}

/* v1.9.221 — Redact review mask-origin legend. This is editor-only metadata;
   the exported PDF always uses the user's selected mask colour. */
.hn-pdf-redact .hn-redact-mask-origin-legend{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  min-height:26px;
  padding:4px 10px 5px;
  border-bottom:1px solid rgba(148,163,184,.22);
  background:rgba(248,250,252,.88);
  color:#475569;
  font-size:11px;
  line-height:1.2;
}
.hn-pdf-redact .hn-redact-origin-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-weight:600;}
.hn-pdf-redact .hn-redact-origin-swatch{display:inline-block;width:20px;height:0;border-top:2px solid #2563eb;border-radius:999px;}
.hn-pdf-redact .hn-redact-origin-item.is-manual .hn-redact-origin-swatch{border-top-color:#d97706;border-top-style:dashed;}
.hn-pdf-redact[data-hn-redact-view="output"] .hn-redact-mask-origin-legend{display:none;}
@media (max-width:760px){.hn-pdf-redact .hn-redact-mask-origin-legend{gap:9px;padding-inline:8px;font-size:10.5px;}}

/* v1.9.222 — make the detector category unmistakable in page-local Review. */
.hn-pdf-redact .hn-redact-review-page-meta{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
.hn-pdf-redact .hn-redact-review-page-type,
.hn-pdf-redact .hn-redact-review-page-source{
  display:inline-flex!important;
  align-items:center!important;
  min-height:16px!important;
  padding:1px 5px!important;
  border-radius:999px!important;
  font-size:7.8px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:.01em!important;
}
.hn-pdf-redact .hn-redact-review-page-type{
  border:1px solid #bfdbfe!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
}
.hn-pdf-redact .hn-redact-review-page-source{
  border:1px solid #e2e8f0!important;
  background:#f8fafc!important;
  color:#64748b!important;
}
