/* ADD-TEXT-STYLE-2 — Rotate Handle
   Tool CSS only. Shared start/workspace/export/result/history remain shared-owned. */

.ept-add-text-template-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.22);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.88);
}

.ept-add-text-template-header,
.ept-add-text-panel {
  display: grid;
  gap: 12px;
}

.ept-add-text-template-header strong,
.ept-add-text-panel__summary strong {
  font-size: 14px;
  line-height: 1.25;
}

.ept-add-text-template-header span,
.ept-add-text-panel__summary small,
.ept-add-text-panel__hint,
.ept-add-text-panel__locks {
  font-size: 12px;
  line-height: 1.45;
}

.ept-add-text-panel {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.ept-add-text-panel__summary {
  display: grid;
  gap: 4px;
}

.ept-add-text-panel__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.ept-add-text-panel__tab {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 9px;
}

.ept-add-text-panel__tab.is-active {
  box-shadow: inset 0 0 0 1px currentColor;
}

.ept-add-text-panel__sections {
  display: grid;
  gap: 10px;
}

.ept-add-text-panel__section {
  display: none;
  gap: 10px;
}

.ept-add-text-panel__section.is-active {
  display: grid;
}

.ept-add-text-panel label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.ept-add-text-panel input,
.ept-add-text-panel textarea,
.ept-add-text-panel select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
}

.ept-add-text-panel input[type="color"] {
  min-height: 40px;
  padding: 4px;
}

.ept-add-text-panel input[type="range"] {
  padding-left: 0;
  padding-right: 0;
}

.ept-add-text-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ept-add-text-panel__hint,
.ept-add-text-panel__locks,
.ept-add-text-template-summary {
  opacity: 0.78;
}

[data-ept-add-text-shared-start-contract="true"] {
  --ept-add-text-upload-owner: "shared-start";
}

[data-ept-add-text-shared-workspace-contract="true"] {
  --ept-add-text-workspace-owner: "shared-workspace";
}

[data-ept-add-text-local-upload-bridge="false"],
[data-ept-add-text-workspace-rescue="false"] {
  --ept-add-text-local-workaround: "disabled";
}

[data-ept-add-text-panel-mounted="true"] {
  --ept-add-text-panel-stage: "ADD-TEXT-STYLE-2";
}

[data-ept-add-text-overlay-layer-reserved="true"][data-ept-add-text-overlay-live="false"] {
  --ept-add-text-overlay-live: "deferred";
}


.ept-add-text-live-preview {
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px dashed currentColor;
  border-radius: 6px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.25;
  z-index: 4;
  user-select: none;
}

[data-ept-add-text-preview="true"][data-ept-add-text-preview-draggable="false"],
[data-ept-overlay-object="true"][data-ept-add-text-drag-active="false"] {
  cursor: grab;
  pointer-events: auto;
}

[data-ept-add-text-preview-layer-active="true"] {
  --ept-add-text-preview-stage: "ADD-TEXT-STYLE-2";
}

[data-ept-add-text-preview-exportable="false"] {
  --ept-add-text-preview-exportable: "false";
}


[data-ept-add-text-shared-overlay-object="true"] {
  --ept-add-text-overlay-stage: "ADD-TEXT-STYLE-2";
}

[data-ept-overlay-object="true"][data-ept-overlay-tool="add-text"][data-ept-overlay-type="text"] {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
}

[data-ept-add-text-drag-active="false"] {
  --ept-add-text-drag-stage: "locked";
}


[data-ept-add-text-drag-active="true"][data-ept-overlay-drag-contract="true"] {
  cursor: grab;
  touch-action: none;
}

[data-ept-add-text-drag-active="true"][data-ept-overlay-dragging="true"] {
  cursor: grabbing;
}

[data-ept-add-text-drag-bound="true"] {
  --ept-add-text-drag-stage: "ADD-TEXT-STYLE-2";
}


[data-ept-coordinate-contract="true"][data-ept-add-text-coordinate-bound="true"] {
  --ept-add-text-coordinate-stage: "ADD-TEXT-STYLE-2";
}

[data-ept-add-text-coordinate-export-ready="false"] {
  --ept-add-text-export-parity: "locked";
}


[data-ept-add-text-selection-active="true"][data-ept-overlay-selected="true"] {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

[data-ept-add-text-selection-bound="true"] {
  --ept-add-text-selection-stage: "ADD-TEXT-STYLE-2";
}

[data-ept-overlay-selection-ready="true"][data-ept-overlay-object="true"] {
  user-select: none;
}


/* ADD-TEXT-HOME-POLISH-1 — Add Text start/home layout polish.
   Tool CSS only: shared Start runtime, upload, workspace, export, result,
   and history flows stay shared-owned. */
[data-edit-pdf-shared-bench][data-context-key="add-text"] {
  --ept-add-text-home-polish-stage: "ADD-TEXT-HOME-POLISH-1";
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-start {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: clamp(500px, 72vh, 650px) !important;
  overflow: hidden !important;
  padding: 58px 28px 46px !important;
  text-align: center !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-start::before {
  height: 112px !important;
  max-width: 420px !important;
  opacity: 0.82 !important;
  top: 18px !important;
  width: min(420px, 70%) !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-flow-start__orbital {
  height: 108px !important;
  margin: 0 auto 8px !important;
  max-width: 300px !important;
  width: min(300px, 64%) !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-flow-start__sheet {
  height: 42px !important;
  opacity: 0.58 !important;
  width: 68px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-flow-start__sheet--left {
  transform: translate(-42px, -50%) rotate(-9deg) !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-flow-start__sheet--right {
  transform: translate(42px, -50%) rotate(9deg) !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-start__hero-icon {
  border-radius: 17px !important;
  font-size: 19px !important;
  height: 58px !important;
  width: 58px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-start__hero-icon::after {
  bottom: -5px !important;
  font-size: 10px !important;
  height: 24px !important;
  min-width: 24px !important;
  right: -5px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-local-pill {
  margin: 4px auto 14px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-start h3 {
  letter-spacing: -0.045em !important;
  line-height: 1.04 !important;
  margin: 0 auto 10px !important;
  max-width: 620px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-start p {
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 auto 18px !important;
  max-width: 575px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-start-cta,
.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final button.ept-start-cta {
  margin: 0 auto !important;
  min-height: 48px !important;
  min-width: 184px !important;
  padding: 13px 24px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-benefits {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin: 18px auto 0 !important;
  max-width: 650px !important;
  width: min(650px, 100%) !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-benefit {
  align-items: flex-start !important;
  border-radius: 14px !important;
  gap: 10px !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  min-height: 74px !important;
  padding: 13px 14px !important;
  text-align: left !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-benefit b {
  display: block !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  margin-bottom: 3px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-benefit span:last-child {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}

@media (max-width: 720px) {
  .ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-start {
    min-height: auto !important;
    padding: 44px 16px 28px !important;
  }

  .ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-start::before {
    height: 96px !important;
    width: min(330px, 82%) !important;
  }

  .ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-flow-start__orbital {
    height: 92px !important;
    width: min(260px, 72%) !important;
  }

  .ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-benefits {
    grid-template-columns: 1fr !important;
    max-width: 420px !important;
  }
}

@media (max-width: 520px) {
  .ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-start h3 {
    font-size: clamp(24px, 9vw, 30px) !important;
  }

  .ept-bench.ept-mode-production[data-context-key="add-text"][data-ept-production-state="start"] .ept-start-final .ept-flow-start p {
    max-width: 330px !important;
  }
}


[data-ept-keyboard-nudge-target="true"] {
  outline-offset: 3px;
}

[data-ept-keyboard-nudge-target="true"]:focus-visible,
[data-ept-add-text-preview="true"][data-ept-overlay-selected="true"]:focus-visible {
  outline: 2px solid currentColor;
}

[data-ept-add-text-keyboard-bound="true"][data-ept-add-text-preview="true"] {
  --ept-add-text-keyboard-stage: "ADD-TEXT-STYLE-2";
}


/* ADD-TEXT-RESIZE-1 — selected text box resize handle. */
[data-ept-add-text-resize-active="true"][data-ept-add-text-preview="true"] {
  resize: none;
}

[data-ept-add-text-resize-handle-active="true"][data-ept-add-text-preview="true"][data-ept-overlay-selected="true"]::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.78);
  cursor: nwse-resize;
  pointer-events: none;
}

[data-ept-add-text-resize-bound="true"][data-ept-add-text-preview="true"] {
  --ept-add-text-resize-stage: "ADD-TEXT-RESIZE-1";
}

[data-ept-add-text-resizing="true"][data-ept-add-text-preview="true"] {
  cursor: nwse-resize;
  touch-action: none;
}


/* ADD-TEXT-STYLE-2 — selected text box rotate handle. */
[data-ept-add-text-rotate-active="true"][data-ept-add-text-preview="true"] {
  --ept-add-text-rotate-stage: "ADD-TEXT-STYLE-2";
}

[data-ept-add-text-rotate-handle-active="true"][data-ept-add-text-preview="true"][data-ept-overlay-selected="true"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.78);
  cursor: grab;
  pointer-events: none;
}

[data-ept-add-text-rotate-handle-active="true"][data-ept-add-text-preview="true"][data-ept-overlay-selected="true"]::after {
  /* resize handle remains the bottom-right handle from ADD-TEXT-RESIZE-1. */
}

[data-ept-add-text-rotate-bound="true"][data-ept-add-text-preview="true"] {
  --ept-add-text-rotate-bound: "true";
}

[data-ept-add-text-rotating="true"][data-ept-add-text-preview="true"] {
  cursor: grabbing;
  touch-action: none;
}


/* ADD-TEXT-STYLE-2 — Bold / Italic / Underline controls. */
.ept-add-text-style-toggles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ept-add-text-style-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

[data-ept-add-text-style-active="true"][data-ept-add-text-preview="true"] {
  --ept-add-text-style-stage: "ADD-TEXT-STYLE-2";
}

@media (max-width: 520px) {
  .ept-add-text-style-toggles {
    grid-template-columns: 1fr;
  }
}


/* ADD-TEXT-STYLE-2 — Font Family / Background / Border controls. */
.ept-add-text-style-advanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.32);
}

.ept-add-text-style-advanced label {
  display: grid;
  gap: 4px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.ept-add-text-style-advanced label:has(input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-ept-add-text-style-2-active="true"][data-ept-add-text-preview="true"] {
  --ept-add-text-style-2-stage: "ADD-TEXT-STYLE-2";
}

@media (max-width: 520px) {
  .ept-add-text-style-advanced {
    grid-template-columns: 1fr;
  }
}


.ept-add-text-panel [data-ept-add-text-page-range-input="true"] {
  font-variant-numeric: tabular-nums;
}

.ept-add-text-panel [data-ept-add-text-target-pages-summary="true"] {
  display: block;
  margin-top: 8px;
}

/* ADD-TEXT-POLISH-1 — UI Final Polish for the current stable Add Text scope.
   Tool CSS only: shared upload, workspace, overlay, export, result, and
   metadata-only history stay shared-owned. */
[data-ept-add-text-polish-active="true"] {
  --ept-add-text-polish-stage: "ADD-TEXT-POLISH-1";
}

.ept-add-text-panel {
  gap: 14px;
  max-width: 100%;
}

.ept-add-text-panel__summary {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.9));
}

.ept-add-text-panel__summary .ept-slot-label,
.ept-add-text-template-header .ept-slot-label {
  width: fit-content;
  max-width: 100%;
}

.ept-add-text-panel__tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(8px);
}

.ept-add-text-panel__tab {
  min-height: 34px;
  background: transparent;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ept-add-text-panel__tab:hover,
.ept-add-text-panel__tab:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  outline: none;
}

.ept-add-text-panel__tab.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ept-add-text-panel label span[data-ept-add-text-opacity-value] {
  justify-self: end;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.72;
}

.ept-add-text-panel button,
.ept-add-text-preset-apply,
.ept-add-text-preset-card {
  font: inherit;
}

.ept-add-text-preset-apply,
.ept-add-text-custom-preset-save button {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  min-height: 38px;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
}

.ept-add-text-preset-apply:hover,
.ept-add-text-custom-preset-save button:hover,
.ept-add-text-preset-apply:focus-visible,
.ept-add-text-custom-preset-save button:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  outline: 2px solid rgba(15, 23, 42, 0.18);
  outline-offset: 2px;
}

.ept-add-text-preset-cards {
  display: grid;
  gap: 8px;
}

.ept-add-text-preset-card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.ept-add-text-preset-card:hover,
.ept-add-text-preset-card:focus-visible {
  border-color: rgba(15, 23, 42, 0.34);
  outline: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.ept-add-text-preset-card.is-active {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}

.ept-add-text-preset-card span {
  font-size: 11.5px;
  line-height: 1.35;
  opacity: 0.76;
}

.ept-add-text-custom-preset-save {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.78);
}

.ept-add-text-panel h4 {
  margin: 2px 0 0;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.ept-add-text-panel__locks {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.82);
}

.ept-add-text-live-preview[data-ept-overlay-selected="true"] {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.18);
}

@media (max-width: 640px) {
  .ept-add-text-panel__tabs {
    border-radius: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ept-add-text-panel__tab {
    border-radius: 12px;
  }

  .ept-add-text-panel__grid,
  .ept-add-text-style-advanced {
    grid-template-columns: 1fr;
  }
}


/* ADD-TEXT-PANEL-PARITY-1 — Shared right-panel design parity.
 * The Add Text tool now uses the shared editor-panel tabs/chrome like
 * Add Page Numbers and Add Header/Footer. Tool-owned tabs stay hidden.
 */
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-tabs][data-ept-add-text-panel-parity-1-active="true"],
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-tabs][data-ept-shared-tabs-stage="SHARED-TABS-1"] {
  display: flex !important;
  visibility: visible !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel__tabs,
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel__tab {
  display: none !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel,
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel--shared-parity {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 12px !important;
  padding: 0 !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel__summary {
  background: #f8fbff !important;
  border: 1px solid var(--ept-border, rgba(148, 163, 184, .34)) !important;
  border-radius: 16px !important;
  display: grid !important;
  gap: 4px !important;
  padding: 10px 12px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel__summary .ept-slot-label {
  display: none !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel__summary strong {
  color: var(--ept-text, #0f172a) !important;
  font-size: .86rem !important;
  font-weight: 950 !important;
  letter-spacing: -.012em !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel__summary small {
  color: var(--ept-muted, #64748b) !important;
  font-size: .74rem !important;
  font-weight: 680 !important;
  line-height: 1.35 !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel__section {
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  border-radius: 18px !important;
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel__section[hidden] {
  display: none !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel label {
  color: var(--ept-muted-strong, #334155) !important;
  font-size: .76rem !important;
  font-weight: 850 !important;
  gap: 7px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel input,
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel textarea,
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel select {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(148, 163, 184, .46) !important;
  border-radius: 12px !important;
  color: var(--ept-text, #111827) !important;
  font-size: 13px !important;
  padding: 10px 11px !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel textarea {
  min-height: 78px !important;
  resize: vertical !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel input:focus,
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel textarea:focus,
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel select:focus {
  background: #fff !important;
  border-color: rgba(37, 99, 235, .70) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14) !important;
  outline: none !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel__hint,
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-panel__locks {
  background: #f8fbff !important;
  border: 1px dashed rgba(148, 163, 184, .34) !important;
  border-radius: 14px !important;
  color: var(--ept-muted-strong, #475569) !important;
  font-size: .78rem !important;
  line-height: 1.42 !important;
  opacity: 1 !important;
  padding: 10px 12px !important;
}

.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-preset-card,
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] .ept-add-text-preset-apply,
.ept-bench.ept-mode-production[data-context-key="add-text"] [data-ept-tool-panel-mount] [data-ept-add-text-custom-preset-save] {
  border-radius: 14px !important;
}
