@font-face { font-family: "KCH Sign Dancing"; src: url("/static/fonts/edit/DancingScript-400.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "KCH Sign GreatVibes"; src: url("/static/fonts/edit/GreatVibes-400.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "KCH Sign Caveat"; src: url("/static/fonts/edit/Caveat-400.ttf") format("truetype"); font-display: swap; }

/* PDF editor fonts (also embedded by the server; see static/fonts/edit/LICENSES.txt) */
@font-face {
  font-family: "KCH Edit Arimo";
  src: url("/static/fonts/edit/Arimo-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Arimo";
  src: url("/static/fonts/edit/Arimo-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Tinos";
  src: url("/static/fonts/edit/Tinos-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Tinos";
  src: url("/static/fonts/edit/Tinos-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Cousine";
  src: url("/static/fonts/edit/Cousine-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Cousine";
  src: url("/static/fonts/edit/Cousine-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Caladea";
  src: url("/static/fonts/edit/Caladea-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Caladea";
  src: url("/static/fonts/edit/Caladea-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Carlito";
  src: url("/static/fonts/edit/Carlito-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Carlito";
  src: url("/static/fonts/edit/Carlito-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Open Sans";
  src: url("/static/fonts/edit/OpenSans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Open Sans";
  src: url("/static/fonts/edit/OpenSans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Roboto";
  src: url("/static/fonts/edit/Roboto-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Roboto";
  src: url("/static/fonts/edit/Roboto-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Roboto Mono";
  src: url("/static/fonts/edit/RobotoMono-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KCH Edit Roboto Mono";
  src: url("/static/fonts/edit/RobotoMono-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* PDF editor app shell (2026-10-22): mirrors the Smallpdf editor layout.
   Measured reference (1440x900): app rail 72px, header 56px, mode row, 40px tool row
   ending at y=160, thumbnail sidebar 194px, viewer #f2f6ff, floating bottom bar 274x42.
   Everything is scoped to the editor root so other tools are untouched. */

.edit[data-edit-root] {
  --ea-navy: #00194c;
  --ea-blue: #2f6bf0;
  --ea-blue-strong: #1f57d6;
  --ea-blue-soft: #e8f0ff;
  --ea-ink: #1a1a1a;
  --ea-muted: #5b6475;
  --ea-line: #dfe3ea;
  --ea-viewer: #f2f6ff;
  --ea-rail: #e9effd;
  --ea-shadow: 0 4px 8px rgba(26, 26, 26, 0.12);
}

/* Old two-column editor rules used named grid areas; clear them first. */
.edit[data-edit-root] .edit__layout > *,
.edit[data-edit-root] .edit__body > *,
.edit[data-edit-root] .edit__commandbar > *,
.edit[data-edit-root] .edit__main > * {
  grid-area: auto;
  order: 0;
}

.edit[data-edit-root] .ei {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}
.edit[data-edit-root] .ei--caret {
  width: 16px;
  height: 16px;
  margin-left: -2px;
}
.edit[data-edit-root] .edit__sr,
.edit[data-edit-root] .edit__sr-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

/* ---------- full-screen app once a PDF is open ---------- */
body.edit-app-open {
  overflow: hidden;
}
body.edit-app-open .site_header,
body.edit-app-open .mobile_nav_dialog,
body.edit-app-open .site_footer {
  display: none !important;
}
.edit[data-edit-root] .edit__layout:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-areas: none;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: 56px 52px 52px minmax(0, 1fr);
  flex-direction: unset;
  gap: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--ea-ink);
  font-size: 16px;
}

/* ---------- left app rail ---------- */
.edit[data-edit-root] .edit__apprail {
  grid-row: 1 / -1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0 12px;
  background: var(--ea-navy);
  overflow: hidden;
}
.edit[data-edit-root] .edit__apprail-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.edit[data-edit-root] .edit__apprail-logo svg {
  width: 40px;
  height: 40px;
}
.edit[data-edit-root] .edit__apprail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 56px;
  height: 52px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.edit[data-edit-root] .edit__apprail-item .ei {
  width: 22px;
  height: 22px;
}
.edit[data-edit-root] .edit__apprail-item:hover,
.edit[data-edit-root] .edit__apprail-item.is-active {
  background: rgba(255, 255, 255, 0.14);
}
.edit[data-edit-root] .edit__apprail-sep {
  width: 40px;
  height: 1px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.28);
}
.edit[data-edit-root] .edit__apprail-account {
  margin-top: auto;
  cursor: default;
}
.edit[data-edit-root] .edit__apprail-item:focus-visible,
.edit[data-edit-root] .edit__apprail-logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

/* ---------- header rows ---------- */
.edit[data-edit-root] .edit__topbar {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-bottom: 1px solid var(--ea-line);
}
.edit[data-edit-root] .edit__topbar-user {
  padding: 0 12px;
  color: var(--ea-muted);
  font-size: 14px;
}
.edit[data-edit-root] .edit__commandbar {
  grid-row: 2;
  grid-column: 2;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 8px 0 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.edit[data-edit-root] .edit__docinfo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.edit[data-edit-root] .edit__doc-name {
  max-width: 260px;
  overflow: hidden;
  padding: 1px 0;
  border-bottom: 1px dashed #8a93a6;
  color: var(--ea-ink);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: text;
  outline: none;
}
.edit[data-edit-root] .edit__doc-name:focus {
  border-bottom-color: var(--ea-blue);
  text-overflow: clip;
}
.edit[data-edit-root] .edit__linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--ea-blue);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.edit[data-edit-root] .edit__linkbtn:hover {
  text-decoration: underline;
}
.edit[data-edit-root] .edit__modes {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.edit[data-edit-root] .edit__mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: #eff2f8;
  color: var(--ea-ink);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.edit[data-edit-root] .edit__mode:hover {
  background: #e3e8f3;
}
.edit[data-edit-root] .edit__modes .edit__mode[aria-selected="true"] {
  background: var(--ea-navy);
  color: #fff;
  box-shadow: none;
}
.edit[data-edit-root] .edit__modes .edit__mode[aria-selected="true"]::after {
  display: none;
}
.edit[data-edit-root] .edit__actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.edit[data-edit-root] .edit__btn-share,
.edit[data-edit-root] .edit__btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ea-blue);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.edit[data-edit-root] .edit__btn-share {
  background: #fff;
  color: var(--ea-blue);
}
.edit[data-edit-root] .edit__btn-share:hover {
  background: var(--ea-blue-soft);
}
.edit[data-edit-root] .edit__split-btn {
  display: inline-flex;
}
.edit[data-edit-root] .edit__btn-download {
  background: var(--ea-blue);
  color: #fff;
  border-radius: 4px 0 0 4px;
}
.edit[data-edit-root] .edit__btn-download--caret {
  width: 42px;
  padding: 0;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0 4px 4px 0;
}
.edit[data-edit-root] .edit__btn-download:hover {
  background: var(--ea-blue-strong);
}

/* ---------- menus (dropdowns) ---------- */
.edit[data-edit-root] .edit__menu {
  position: absolute;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 168px;
  padding: 6px 0;
  border: 1px solid var(--ea-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.16);
}
.edit[data-edit-root] .edit__menu[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__menu > button,
.edit[data-edit-root] .edit__menu > .edit__tool {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ea-ink);
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}
.edit[data-edit-root] .edit__menu > button:hover,
.edit[data-edit-root] .edit__menu > button[aria-pressed="true"] {
  background: #f1f4fa;
  color: var(--ea-blue);
}
.edit[data-edit-root] .edit__menu kbd {
  margin-left: auto;
  color: var(--ea-muted);
  font: inherit;
  font-size: 13px;
}
.edit[data-edit-root] .edit__menu-sep {
  height: 1px;
  margin: 6px 0;
  background: var(--ea-line);
}
.edit[data-edit-root] .edit__menu--download {
  top: calc(100% + 4px);
  right: 0;
}

/* ---------- tool row ---------- */
.edit[data-edit-root] .edit__toolbar {
  grid-row: 3;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 8px 0 24px;
  border-bottom: 1px solid var(--ea-line);
  background: #fff;
}
.edit[data-edit-root] .edit__toolset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.edit[data-edit-root] .edit__toolset--end {
  margin-left: auto;
  gap: 12px;
}
.edit[data-edit-root] .edit__toolset--organize {
  margin-left: auto;
  gap: 8px;
}
.edit[data-edit-root] .edit__toolbar-sep {
  width: 1px;
  height: 24px;
  margin: 0 18px;
  background: var(--ea-line);
}
.edit[data-edit-root] .edit__dock {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.edit[data-edit-root] .edit__dock[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__toolbar .edit__tool,
.edit[data-edit-root] .edit__toolbar .edit__group-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--ea-line);
  border-radius: 4px;
  background: #fff;
  color: var(--ea-ink);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}
.edit[data-edit-root] .edit__toolbar .edit__tool:hover:not(:disabled),
.edit[data-edit-root] .edit__toolbar .edit__group-btn:hover {
  background: #f5f7fb;
}
.edit[data-edit-root] .edit__toolbar .edit__tool[aria-pressed="true"],
.edit[data-edit-root] .edit__toolbar .edit__tool[aria-selected="true"],
.edit[data-edit-root] .edit__toolbar .edit__group.is-active > .edit__group-btn {
  border-color: #b8cdfb;
  background: var(--ea-blue-soft);
  color: var(--ea-blue);
}
.edit[data-edit-root] .edit__toolbar .edit__tool:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.edit[data-edit-root] .edit__tool .ei-crown {
  width: 18px;
  height: 18px;
}
.edit[data-edit-root] .edit__group {
  position: relative;
  display: inline-flex;
}
.edit[data-edit-root] .edit__group > .edit__menu {
  top: calc(100% + 4px);
  left: 0;
}
.edit[data-edit-root] .edit__segmented {
  display: inline-flex;
  border: 1px solid var(--ea-line);
  border-radius: 4px;
  overflow: hidden;
}
.edit[data-edit-root] .edit__segmented > button {
  border: 0 !important;
  border-radius: 0 !important;
}
.edit[data-edit-root] .edit__segmented > button + button {
  border-left: 1px solid var(--ea-line) !important;
}
.edit[data-edit-root] .edit__iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--ea-ink);
  cursor: pointer;
}
.edit[data-edit-root] .edit__iconbtn:hover:not(:disabled) {
  background: #f1f4fa;
}
.edit[data-edit-root] .edit__iconbtn:disabled {
  color: #b9bfcb;
  cursor: default;
}
.edit[data-edit-root] .edit__iconbtn--boxed {
  border: 1px solid var(--ea-line);
}
.edit[data-edit-root] .edit__iconbtn[aria-pressed="true"] {
  background: var(--ea-blue-soft);
  color: var(--ea-blue);
}
.edit[data-edit-root] .edit__iconbtn--primary {
  background: var(--ea-blue);
  color: #fff;
}
.edit[data-edit-root] .edit__iconbtn--primary:hover:not(:disabled) {
  background: var(--ea-blue-strong);
}
.edit[data-edit-root] [data-edit-modes-for].is-mode-hidden,
.edit[data-edit-root] .edit__tool.is-mode-hidden {
  display: none !important;
}

/* watermark / crop bars take over the mode row like Smallpdf */
.edit[data-edit-root] .edit__watermarkbar,
.edit[data-edit-root] .edit__cropbar {
  grid-row: 2;
  grid-column: 2;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
}
.edit[data-edit-root] .edit__watermarkbar[hidden],
.edit[data-edit-root] .edit__cropbar[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__watermarkbar input[type="text"] {
  width: 420px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ea-line);
  border-radius: 4px;
  font-size: 16px;
}
.edit[data-edit-root] .edit__switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}
.edit[data-edit-root] .edit__switch input {
  position: absolute;
  opacity: 0;
}
.edit[data-edit-root] .edit__switch-ui {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #c4cad6;
  transition: background 0.15s;
}
.edit[data-edit-root] .edit__switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.edit[data-edit-root] .edit__switch input:checked + .edit__switch-ui {
  background: var(--ea-blue);
}
.edit[data-edit-root] .edit__switch input:checked + .edit__switch-ui::after {
  transform: translateX(16px);
}
.edit[data-edit-root] .edit__switch input:focus-visible + .edit__switch-ui {
  outline: 2px solid var(--ea-blue);
  outline-offset: 2px;
}

/* ---------- body: sidebar + viewer ---------- */
.edit[data-edit-root] .edit__body {
  grid-row: 4;
  grid-column: 2;
  display: grid;
  grid-template-columns: 194px 32px minmax(0, 1fr);
  min-height: 0;
}
.edit[data-edit-root] .edit__layout.is-rail-collapsed .edit__body {
  grid-template-columns: 0 32px minmax(0, 1fr);
}
.edit[data-edit-root] .edit__rail {
  grid-column: 1;
  position: static;
  max-height: none;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 0 24px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: var(--ea-rail);
}
.edit[data-edit-root] .edit__layout.is-rail-collapsed .edit__rail {
  visibility: hidden;
  padding: 0;
}
.edit[data-edit-root] .edit__rail-toggle {
  grid-column: 2;
  align-self: center;
  justify-self: start;
  display: grid;
  place-items: center;
  width: 16px;
  min-width: 16px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--ea-rail);
  color: var(--ea-ink);
  cursor: pointer;
}
.edit[data-edit-root] .edit__rail-toggle .ei {
  width: 14px;
  height: 14px;
}
.edit[data-edit-root] .edit__layout.is-rail-collapsed .edit__rail-toggle .ei {
  transform: scaleX(-1);
}
.edit[data-edit-root] .edit__body > .edit__rail-toggle {
  background: transparent;
}
.edit[data-edit-root] .edit__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.edit[data-edit-root] .edit__page-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}
.edit[data-edit-root] .edit__thumbcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.edit[data-edit-root] .edit__page-btn {
  position: relative;
  display: block;
  width: 125px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 30, 70, 0.12);
  cursor: pointer;
}
.edit[data-edit-root] .edit__page-btn[aria-current="page"] {
  border-color: var(--ea-blue);
}
.edit[data-edit-root] .edit__page-btn canvas,
.edit[data-edit-root] .edit__page-btn img {
  display: block;
  width: 100%;
  height: auto;
}
.edit[data-edit-root] .edit__page-btn .edit__page-num,
.edit[data-edit-root] .edit__page-btn .edit__page-badge {
  display: none;
}
.edit[data-edit-root] .edit__thumb-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2px;
  margin-top: -18px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 30, 70, 0.14);
}
.edit[data-edit-root] .edit__thumb-actions button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  min-width: 30px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--ea-ink);
  cursor: pointer;
}
.edit[data-edit-root] .edit__thumb-actions button:hover:not(:disabled) {
  background: #eef2fa;
}
.edit[data-edit-root] .edit__thumb-actions button:disabled {
  color: #c0c6d2;
}
.edit[data-edit-root] .edit__thumb-actions .ei {
  width: 18px;
  height: 18px;
}
.edit[data-edit-root] .edit__thumb-num {
  margin-top: 6px;
  color: var(--ea-ink);
  font-size: 13px;
}
.edit[data-edit-root] .edit__page-insert {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin: 10px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #7aa3f5;
  cursor: pointer;
}
.edit[data-edit-root] .edit__page-insert:hover {
  color: var(--ea-blue);
}
.edit[data-edit-root] .edit__page-insert .ei {
  width: 26px;
  height: 26px;
}
.edit[data-edit-root] .edit__addfile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 125px;
  height: 176px;
  margin: 4px auto 0;
  padding: 10px;
  border: 1px dashed var(--ea-blue);
  border-radius: 2px;
  background: transparent;
  color: var(--ea-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}
.edit[data-edit-root] .edit__addfile .ei {
  width: 22px;
  height: 22px;
}
.edit[data-edit-root] .edit__page-item.is-dragging .edit__page-btn {
  opacity: 0.4;
}
.edit[data-edit-root] .edit__page-item.is-drop-target .edit__page-btn {
  outline: 2px dashed var(--ea-blue);
  outline-offset: 3px;
}

.edit[data-edit-root] .edit__main {
  grid-column: 3;
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--ea-viewer);
}
.edit[data-edit-root] .edit__layout.is-rail-collapsed .edit__main,
.edit[data-edit-root] .edit__body > .edit__main {
  grid-column: 2 / 4;
  margin-left: 0;
}
.edit[data-edit-root] .edit__body > .edit__rail-toggle {
  position: relative;
  z-index: 3;
  grid-row: 1;
  background: var(--ea-viewer);
}
.edit[data-edit-root] .edit__body > .edit__main {
  grid-row: 1;
}
.edit[data-edit-root] .edit__viewport {
  position: absolute;
  inset: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border-radius: 0;
  background: var(--ea-viewer);
}
.edit[data-edit-root] .edit__doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  padding: 57px 32px 120px;
}
.edit[data-edit-root] .edit__slot {
  position: relative;
  flex: none;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 30, 70, 0.1);
}
.edit[data-edit-root] .edit__slot-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
}
.edit[data-edit-root] .edit__slot-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.edit[data-edit-root] .edit__slot .edit__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  box-shadow: none;
}
.edit[data-edit-root] .edit__slot .edit__stage:focus-visible {
  outline: 2px solid var(--ea-blue);
  outline-offset: 2px;
}
.edit[data-edit-root] .edit__page-image[hidden] {
  display: none !important;
}
.edit[data-edit-root] .edit__layer {
  overflow: visible;
}
.edit[data-edit-root] .edit__layout[data-tool="hand"] .edit__viewport,
.edit[data-edit-root] .edit__layout[data-tool="hand"] .edit__layer {
  cursor: grab;
}
.edit[data-edit-root] .edit__layout.is-panning .edit__viewport,
.edit[data-edit-root] .edit__layout.is-panning .edit__layer {
  cursor: grabbing;
}
.edit[data-edit-root] .edit__layout[data-tool="select"] .edit__layer {
  cursor: default;
}
.edit[data-edit-root] .edit__layout[data-tool="text"] .edit__layer,
.edit[data-edit-root] .edit__layout[data-tool="date"] .edit__layer {
  cursor: text;
}
.edit[data-edit-root] .edit__layout[data-tool="eraser"] .edit__layer {
  cursor: cell;
}

/* search hits */
.edit[data-edit-root] .edit__search-hit {
  fill: #ffd600;
  fill-opacity: 0.35;
}
.edit[data-edit-root] .edit__search-hit.is-current {
  fill: #ff9800;
  fill-opacity: 0.5;
}

/* ---------- floating property bar ---------- */
.edit[data-edit-root] .edit__inspector.edit__propbar {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 12;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: auto;
  max-width: calc(100% - 32px);
  height: 42px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 4px;
  overflow: visible;
  border: 1px solid #b8cdfb;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  transform: translateX(-50%);
}
.edit[data-edit-root] .edit__propbar.is-empty {
  display: none;
}
.edit[data-edit-root] .edit__propbar .edit__ctl {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}
.edit[data-edit-root] .edit__propbar .edit__ctl[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__propbar .edit__ctl:first-child .edit__prop-sep:first-child,
.edit[data-edit-root] .edit__propbar .edit__ctl.is-first > .edit__prop-sep:first-child {
  display: none;
}
.edit[data-edit-root] .edit__prop-sep {
  width: 1px;
  height: 40px;
  margin: 0 4px;
  background: #d5def0;
}
.edit[data-edit-root] .edit__prop-select {
  width: 160px;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ea-ink);
  font-size: 14px;
}
.edit[data-edit-root] .edit__prop-num {
  width: 64px;
  height: 28px;
  min-height: 28px;
  padding: 0 4px 0 10px;
  border: 1px solid var(--ea-line);
  border-radius: 3px;
  font-size: 14px;
}
.edit[data-edit-root] .edit__prop-icon {
  margin: 0 4px 0 6px;
  color: var(--ea-ink);
}
.edit[data-edit-root] .edit__propbar .edit__style,
.edit[data-edit-root] .edit__swatch-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  min-width: 38px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--ea-ink);
  cursor: pointer;
}
.edit[data-edit-root] .edit__propbar .edit__style:hover,
.edit[data-edit-root] .edit__swatch-btn:hover {
  background: #f1f4fa;
}
.edit[data-edit-root] .edit__propbar .edit__style[aria-pressed="true"] {
  background: var(--ea-blue-soft);
  color: var(--ea-blue);
}
.edit[data-edit-root] .edit__swatch {
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  background: var(--swatch, #000);
}
.edit[data-edit-root] .edit__swatch--none {
  background: linear-gradient(135deg, transparent 45%, #f4504c 45%, #f4504c 55%, transparent 55%), #fff;
}
.edit[data-edit-root] .edit__swatch--ring {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--swatch, #000);
}
.edit[data-edit-root] .edit__propbar .edit__assets,
.edit[data-edit-root] .edit__propbar .edit__hidden-tools,
.edit[data-edit-root] .edit__presets {
  display: none;
}

/* colour palette popover */
.edit[data-edit-root] .edit__palette {
  position: absolute;
  z-index: 40;
  width: 196px;
  padding: 12px;
  border: 1px solid var(--ea-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.16);
}
.edit[data-edit-root] .edit__palette[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 8px;
}
.edit[data-edit-root] .edit__palette-grid button,
.edit[data-edit-root] .edit__palette-none,
.edit[data-edit-root] .edit__palette-custom {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background: var(--swatch, #fff);
  cursor: pointer;
}
.edit[data-edit-root] .edit__palette-grid button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ea-blue);
}
.edit[data-edit-root] .edit__palette-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.edit[data-edit-root] .edit__palette-custom {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--ea-ink);
  font-size: 18px;
}
.edit[data-edit-root] .edit__palette-custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* selection popover (navy) */
.edit[data-edit-root] .edit__selpop {
  position: absolute;
  z-index: 8;
  display: flex;
  gap: 2px;
  padding: 0;
  border-radius: 2px;
  background: var(--ea-navy);
  transform: translateX(-50%);
}
.edit[data-edit-root] .edit__selpop[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__selpop-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.edit[data-edit-root] .edit__selpop-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.edit[data-edit-root] .edit__selpop-btn[hidden] {
  display: none;
}

/* inline text editor */
.edit[data-edit-root] .edit__inline-text {
  position: absolute;
  z-index: 7;
  min-width: 40px;
  margin: 0;
  padding: 0 2px;
  border: 1px dashed var(--ea-blue);
  background: rgba(255, 255, 255, 0.6);
  outline: none;
  line-height: 1.15;
  white-space: pre;
  overflow: hidden;
  resize: none;
}
.edit[data-edit-root] .edit__inline-text::placeholder {
  color: #9aa3b2;
}

/* selection frame + handles (Smallpdf: dashed box, blue square handles, rotate knob) */
.edit[data-edit-root] .edit__layer [data-edit-frame] {
  fill: none;
  stroke: #5b8def;
  stroke-dasharray: 4 3;
}
.edit[data-edit-root] .edit__layer [data-edit-handle] {
  fill: #5b8def;
  stroke: #fff;
}

/* ---------- search bar ---------- */
.edit[data-edit-root] .edit__searchbar {
  position: absolute;
  top: 8px;
  right: 24px;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 0 6px 0 10px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--ea-shadow);
}
.edit[data-edit-root] .edit__searchbar[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__searchbar input {
  width: 220px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--ea-line);
  border-radius: 4px;
  font-size: 15px;
}
.edit[data-edit-root] .edit__search-count {
  min-width: 52px;
  color: var(--ea-muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- floating bottom bar ---------- */
.edit[data-edit-root] .edit__pill {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 42px;
  box-sizing: border-box;
  padding: 0 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ea-shadow);
  transform: translateX(-50%);
}
.edit[data-edit-root] .edit__pill .edit__iconbtn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
}
.edit[data-edit-root] .edit__page-input {
  width: 30px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ea-ink);
  font-size: 15px;
  text-align: center;
}
.edit[data-edit-root] .edit__page-input:focus {
  background: #f1f4fa;
  outline: 1px solid var(--ea-blue);
}
.edit[data-edit-root] .edit__page-total {
  padding-right: 6px;
  color: var(--ea-ink);
  font-size: 15px;
  white-space: nowrap;
}
.edit[data-edit-root] .edit__pill-sep {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: var(--ea-line);
}
.edit[data-edit-root] .edit__zoom-btn {
  min-width: 56px;
  height: 34px;
  min-height: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--ea-ink);
  font-size: 15px;
  cursor: pointer;
}
.edit[data-edit-root] .edit__zoom-btn:hover {
  background: #f1f4fa;
}
.edit[data-edit-root] .edit__zoom-value {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
}
.edit[data-edit-root] .edit__menu--zoom {
  right: 0;
  bottom: calc(100% + 6px);
}

/* ---------- page organize mode: grid replaces the viewer ---------- */
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__body {
  grid-template-columns: minmax(0, 1fr);
}
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__rail {
  grid-column: 1;
  grid-row: 1;
  visibility: visible;
  padding: 16px 34px 40px;
  background: var(--ea-viewer);
}
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__main,
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__rail-toggle {
  display: none;
}
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__pages {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 0;
}
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__page-item {
  flex-direction: row;
  align-items: flex-start;
  width: auto;
}
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__page-insert {
  margin: 82px 22px 0;
}
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__addfile {
  margin: 0 0 0 4px;
}
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__toolbar {
  justify-content: center;
}
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__toolset--organize {
  margin-left: 0;
}
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__toolset--end {
  margin-left: 0;
}
.edit[data-edit-root] .edit__organize {
  display: none !important;
}

/* status / errors float over the app */
body.edit-app-open .edit[data-edit-root] .edit__alert:not([hidden]),
body.edit-app-open .edit[data-edit-root] .edit__status:not(:empty),
body.edit-app-open .edit[data-edit-root] .edit__notice:not([hidden]) {
  position: fixed;
  left: 50%;
  bottom: 72px;
  z-index: 80;
  max-width: 640px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: var(--ea-shadow);
  transform: translateX(-50%);
}
body.edit-app-open .edit[data-edit-root] .edit__status:not(:empty) {
  background: var(--ea-navy);
  color: #fff;
}
body.edit-app-open .edit[data-edit-root] .edit__drop {
  visibility: hidden;
}

/* dialogs keep working above the app */
.edit[data-edit-root] .edit__dialog {
  z-index: 100;
}

/* thumbnails */
.edit[data-edit-root] .edit__thumbcol {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.edit[data-edit-root] .edit__thumb {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.edit[data-edit-root] .edit__thumb canvas,
.edit[data-edit-root] .edit__thumb img,
.edit[data-edit-root] .edit__thumb-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.edit[data-edit-root] .edit__thumb canvas:not([data-rendered]) {
  visibility: hidden;
}
.edit[data-edit-root] .edit__thumb-layer {
  pointer-events: none;
}

/* "양식 입력란 감지" panel */
.edit[data-edit-root] .edit__fieldspanel {
  position: absolute;
  top: 8px;
  left: 24px;
  z-index: 13;
  width: 320px;
  max-height: calc(100% - 96px);
  overflow: auto;
  padding: 12px 14px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.16);
}
.edit[data-edit-root] .edit__fieldspanel[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__fieldspanel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.edit[data-edit-root] .edit__fieldspanel .edit__form-section > summary {
  display: none;
}
.edit[data-edit-root] .edit__fieldspanel .edit__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 14px;
}
.edit[data-edit-root] .edit__fieldspanel input[type="text"],
.edit[data-edit-root] .edit__fieldspanel select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--ea-line);
  border-radius: 4px;
}

/* Beat the old editor's !important rules (readability.css, ux-fixes.css, design-v2.css). */
.edit[data-edit-root] .edit__layout:not([hidden]) {
  grid-template-columns: 72px minmax(0, 1fr) !important;
  grid-template-areas: none !important;
  min-block-size: 0 !important;
}
.edit[data-edit-root] .edit__inspector.edit__propbar {
  inline-size: auto !important;
  grid-column: auto;
}
.edit[data-edit-root] .edit__propbar .edit__ctl,
.edit[data-edit-root] .edit__propbar .edit__label {
  font-size: 14px !important;
}
.edit[data-edit-root] .edit__toolbar .edit__dock {
  position: static !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  margin: 0 !important;
}
.edit[data-edit-root] .edit__toolbar .edit__tool,
.edit[data-edit-root] .edit__menu > .edit__tool {
  font-size: 16px !important;
}
.edit[data-edit-root] .edit__layout:not([hidden]) {
  align-items: stretch !important;
  justify-items: stretch !important;
}
.edit[data-edit-root] .edit__layout > *,
.edit[data-edit-root] .edit__body > .edit__rail,
.edit[data-edit-root] .edit__body > .edit__main {
  align-self: stretch;
  margin: 0;
}
.edit[data-edit-root] .edit__toolbar > *,
.edit[data-edit-root] .edit__dock > *,
.edit[data-edit-root] .edit__toolset > * {
  flex-shrink: 0;
}
.edit[data-edit-root] .edit__toolbar {
  overflow: visible;
  flex-wrap: nowrap;
}
.edit[data-edit-root] .edit__commandbar,
.edit[data-edit-root] .edit__toolbar,
.edit[data-edit-root] .edit__dock,
.edit[data-edit-root] .edit__modes,
.edit[data-edit-root] .edit__rail {
  top: auto !important;
  z-index: auto;
}
.edit[data-edit-root] .edit__commandbar {
  position: relative !important;
  z-index: 3;
}
.edit[data-edit-root] .edit__toolbar {
  position: relative;
  z-index: 2;
}
/* fine alignment with the Smallpdf measurements */
.edit[data-edit-root] .edit__body > .edit__main {
  grid-column: 3 !important;
}
.edit[data-edit-root] .edit__layout.is-rail-collapsed .edit__body > .edit__main {
  grid-column: 2 / 4 !important;
}
.edit[data-edit-root] .edit__body > .edit__rail-toggle {
  grid-column: 2;
  align-self: stretch;
  justify-self: stretch;
  width: auto;
  height: auto;
  border-radius: 0;
  background: var(--ea-viewer);
}

.edit[data-edit-root] .edit__doc {
  padding-top: 57px !important;
}
.edit[data-edit-root] .edit__mode {
  min-width: 136px;
}
.edit[data-edit-root] .edit__doc-name {
  display: inline-block;
  max-width: 220px;
}
.edit[data-edit-root] .edit__apprail-item,
.edit[data-edit-root] .edit__apprail-item:visited,
.edit[data-edit-root] .edit__apprail-item[aria-current="page"] {
  color: #fff !important;
  text-decoration: none !important;
}
/* property bar: one horizontal row (old inspector stacked controls vertically) */
.edit[data-edit-root] .edit__propbar > .edit__ctl {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.edit[data-edit-root] .edit__propbar > .edit__ctl[hidden] {
  display: none !important;
}
.edit[data-edit-root] .edit__propbar > .edit__ctl > * {
  flex: none;
  margin: 0 !important;
}
.edit[data-edit-root] .edit__propbar .edit__prop-select {
  width: 160px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent !important;
  font-size: 14px !important;
}
.edit[data-edit-root] .edit__propbar .edit__prop-num {
  width: 64px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 4px 0 10px !important;
  border: 1px solid var(--ea-line) !important;
  border-radius: 3px !important;
  font-size: 14px !important;
}
.edit[data-edit-root] .edit__propbar .edit__swatch-btn,
.edit[data-edit-root] .edit__propbar .edit__style {
  width: 38px !important;
  height: 36px !important;
  min-width: 38px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none;
}
.edit[data-edit-root] .edit__propbar .edit__style[aria-pressed="true"] {
  background: var(--ea-blue-soft) !important;
}
.edit[data-edit-root] .edit__propbar .edit__style[hidden] {
  display: none !important;
}
.edit[data-edit-root] .edit__propbar .edit__prop-sep {
  display: block;
}
.edit[data-edit-root] .edit__propbar > .edit__ctl.is-first > .edit__prop-sep:first-child {
  display: none !important;
}

.edit[data-edit-root] .edit__watermarkbar,
.edit[data-edit-root] .edit__cropbar {
  position: relative;
  z-index: 5;
}

/* ---------- signature dialog (Smallpdf "서명 만들기") ---------- */
.edit[data-edit-root] .edit__signdialog {
  width: 640px;
  max-width: calc(100vw - 32px);
  padding: 20px 24px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 25, 76, 0.25);
}
.edit[data-edit-root] .edit__signdialog::backdrop {
  background: rgba(0, 25, 76, 0.35);
}
.edit[data-edit-root] .edit__signdialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.edit[data-edit-root] .edit__signdialog-head h3 {
  margin: 0;
  font-size: 20px;
}
.edit[data-edit-root] .edit__signtabs {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ea-line);
}
.edit[data-edit-root] .edit__signtab {
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--ea-muted);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.edit[data-edit-root] .edit__signtab[aria-selected="true"] {
  border-bottom-color: var(--ea-blue);
  color: var(--ea-ink);
}
.edit[data-edit-root] .edit__signpanel[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__signpad-wrap {
  position: relative;
}
.edit[data-edit-root] .edit__signdialog .edit__sign-pad {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 220;
  border: 1px dashed #b8c2d6;
  border-radius: 6px;
  background: #f7f9fd;
  touch-action: none;
  cursor: crosshair;
}
.edit[data-edit-root] .edit__signpad-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #a3abbb;
  font-size: 22px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.edit[data-edit-root] .edit__signpad-hint[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__signtyped {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--ea-line);
  border-radius: 4px;
  font-size: 16px;
}
.edit[data-edit-root] .edit__signfonts {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.edit[data-edit-root] .edit__signfont {
  height: 64px;
  padding: 0 16px;
  border: 1px solid var(--ea-line);
  border-radius: 6px;
  background: #fff;
  font-size: 34px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}
.edit[data-edit-root] .edit__signfont[aria-checked="true"] {
  border-color: var(--ea-blue);
  box-shadow: 0 0 0 1px var(--ea-blue);
}
.edit[data-edit-root] .edit__signupload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 160px;
  border: 1px dashed var(--ea-blue);
  border-radius: 6px;
  color: var(--ea-blue);
  font-weight: 600;
  cursor: pointer;
}
.edit[data-edit-root] .edit__signupload input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.edit[data-edit-root] .edit__signupload-preview {
  display: block;
  max-width: 100%;
  max-height: 140px;
  margin: 12px auto 0;
}
.edit[data-edit-root] .edit__signupload-preview[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__signfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.edit[data-edit-root] .edit__inks {
  display: flex;
  gap: 10px;
}
.edit[data-edit-root] .edit__ink {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px #c9d0dc;
  cursor: pointer;
}
.edit[data-edit-root] .edit__ink[aria-checked="true"] {
  box-shadow: 0 0 0 2px var(--ea-blue);
}
.edit[data-edit-root] .edit__signfoot .edit__btn[hidden] {
  display: none;
}

/* 텍스트 편집: dashed blue boxes around the page's own sentences */
.edit[data-edit-root] .edit__layer .edit__span {
  fill: transparent;
  stroke: #5b8def;
  stroke-width: 0.8;
  stroke-dasharray: 3 2;
  cursor: text;
}
.edit[data-edit-root] .edit__layer .edit__span:hover {
  fill: rgba(91, 141, 239, 0.08);
}
.edit[data-edit-root] .edit__layer .edit__span--active {
  stroke-width: 1.4;
  stroke-dasharray: none;
  fill: rgba(91, 141, 239, 0.1);
}
.edit[data-edit-root] .edit__layer .edit__span--edited {
  stroke: #2e9e4f;
}
.edit[data-edit-root] .edit__inline-text--span {
  border-style: solid;
  padding: 0;
}

.edit[data-edit-root] .edit__layer [data-edit-handle="rotate"] {
  fill: transparent;
  stroke: none;
}
.edit[data-edit-root] .edit__layer .edit__rotate-knob circle:first-child {
  fill: #ffffff;
}

.edit[data-edit-root] .edit__menu-head {
  padding: 8px 16px 4px;
  color: var(--ea-muted);
  font-size: 13px;
  font-weight: 700;
}
.edit[data-edit-root] .edit__menu--sign {
  min-width: 200px;
}

/* watermark / crop bars replace the TOOL row (the mode pills stay), search stays at the right */
.edit[data-edit-root] .edit__watermarkbar,
.edit[data-edit-root] .edit__cropbar {
  grid-row: 3 !important;
  grid-column: 2;
  margin-right: 60px;
  border-bottom: 1px solid var(--ea-line);
  gap: 6px;
}
.edit[data-edit-root] .edit__wm-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.edit[data-edit-root] .edit__watermarkbar .edit__wm-field input[type="text"] {
  width: 280px;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--ea-line);
  border-radius: 4px;
  font-size: 16px;
}
.edit[data-edit-root] .edit__wm-clear {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ea-ink);
  cursor: pointer;
}
.edit[data-edit-root] .edit__iconbtn--gray {
  background: #f1f3f7;
}
.edit[data-edit-root] .edit__cropbar .edit__iconbtn[aria-pressed="true"] {
  background: var(--ea-blue-soft);
  color: var(--ea-blue);
}
.edit[data-edit-root] .edit__cropbar .edit__switch {
  margin: 0 6px;
}

/* ===== QA round 1 (Kimi K3) fixes ===== */
/* tool row: transparent buttons, #ddd border, 112px from the top */
.edit[data-edit-root] .edit__toolbar {
  align-items: flex-start !important;
  padding-top: 4px !important;
}
.edit[data-edit-root] .edit__toolbar .edit__tool,
.edit[data-edit-root] .edit__toolbar .edit__group-btn,
.edit[data-edit-root] .edit__toolbar .edit__iconbtn--boxed,
.edit[data-edit-root] .edit__segmented {
  background: transparent !important;
  border-color: #dddddd !important;
}
.edit[data-edit-root] .edit__toolbar .edit__tool:hover:not(:disabled),
.edit[data-edit-root] .edit__toolbar .edit__group-btn:hover,
.edit[data-edit-root] .edit__toolbar .edit__group-btn[aria-expanded="true"] {
  background: #f0f2f5 !important;
}
/* Smallpdf does not tint the active annotate tool; only 텍스트 편집 and the select/hand icons */
.edit[data-edit-root] .edit__toolbar .edit__tool[aria-pressed="true"],
.edit[data-edit-root] .edit__toolbar .edit__group.is-active > .edit__group-btn {
  border-color: #dddddd !important;
  background: transparent !important;
  color: var(--ea-ink) !important;
}
.edit[data-edit-root] .edit__toolbar .edit__tool[aria-selected="true"] {
  border-color: #dddddd !important;
  background: #e8f0ff !important;
  color: var(--ea-blue) !important;
}
.edit[data-edit-root] .edit__toolbar .edit__iconbtn[aria-pressed="true"] {
  background: #e8f0ff !important;
  color: var(--ea-blue) !important;
}
/* dropdown menus */
.edit[data-edit-root] .edit__menu {
  min-width: 224px;
  padding: 4px 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.14);
  z-index: 60;
}
.edit[data-edit-root] .edit__menu > button,
.edit[data-edit-root] .edit__menu > .edit__tool {
  height: 48px !important;
  min-height: 48px !important;
  gap: 12px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ea-ink) !important;
  font-size: 16px !important;
}
.edit[data-edit-root] .edit__menu > button:hover,
.edit[data-edit-root] .edit__menu > .edit__tool:hover {
  background: #f1f4fa !important;
}
.edit[data-edit-root] .edit__menu--zoom {
  min-width: 190px;
}
.edit[data-edit-root] .edit__menu--zoom > button {
  height: 44px !important;
  min-height: 44px !important;
  font-size: 15px !important;
}
.edit[data-edit-root] .edit__menu--download {
  min-width: 200px;
}
.edit[data-edit-root] .edit__toolbar,
.edit[data-edit-root] .edit__commandbar {
  z-index: 25 !important;
}
/* thumbnails: 125x178 page, blue ring only when current */
.edit[data-edit-root] .edit__page-btn {
  border: 0 !important;
  outline: 2px solid transparent;
  outline-offset: 0;
}
.edit[data-edit-root] .edit__page-btn[aria-current="page"] {
  outline-color: var(--ea-blue);
}
/* collapsed sidebar: chevron stays mid-height at the left edge of the viewer */
.edit[data-edit-root] .edit__layout.is-rail-collapsed .edit__body > .edit__rail-toggle {
  position: relative;
  z-index: 4;
  align-self: center;
  height: 48px;
  background: transparent;
}
/* search: centred two-row panel, light-blue hits */
.edit[data-edit-root] .edit__searchbar {
  top: 8px !important;
  right: auto !important;
  left: 50% !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 320px;
  height: auto !important;
  padding: 0 !important;
  border: 1px solid #b8cdfb;
  border-radius: 2px !important;
  box-shadow: none !important;
  transform: translateX(-50%);
}
.edit[data-edit-root] .edit__search-row {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 0 0 8px;
}
.edit[data-edit-root] .edit__search-row + .edit__search-row {
  border-top: 1px solid var(--ea-line);
}
.edit[data-edit-root] .edit__search-icon {
  margin-right: 8px;
}
.edit[data-edit-root] .edit__searchbar .edit__search-row input {
  flex: 1;
  width: auto !important;
  height: 38px !important;
  padding: 0 6px !important;
  border: 0 !important;
  font-size: 14px !important;
  outline: none;
}
.edit[data-edit-root] .edit__search-row > .edit__iconbtn {
  width: 42px;
  height: 40px;
  min-height: 40px;
  border-left: 1px solid var(--ea-line);
  border-radius: 0;
}
.edit[data-edit-root] .edit__search-row--nav .edit__search-count {
  flex: 1;
  text-align: left;
  color: var(--ea-ink);
  font-size: 13px;
}
.edit[data-edit-root] .edit__search-row--nav .edit__iconbtn {
  border-left: 0;
}
.edit[data-edit-root] .edit__search-hit {
  fill: #3d7cff;
  fill-opacity: 0.25;
}
.edit[data-edit-root] .edit__search-hit.is-current {
  fill: #3d7cff;
  fill-opacity: 0.35;
}
/* fill & sign: Smallpdf toolbar order and right-hand form-field panel */
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__toolset--nav .edit__iconbtn[data-edit-tool="hand"] { order: 1; }
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__toolset--nav .edit__iconbtn[data-edit-tool="select"] { order: 2; }
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__dock > [data-edit-fields] { order: 1; }
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__dock > [data-edit-group="sign"] { order: 2; }
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__dock > [data-edit-request-sign] { order: 3; }
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__dock > [data-edit-tool="date"] { order: 4; }
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__dock > [data-edit-tool="text"] { order: 5; }
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__dock > [data-edit-group="shape"] { order: 6; }
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__dock {
  margin-left: auto;
  margin-right: auto;
}
.edit[data-edit-root] .edit__layout.has-sidepanel .edit__body {
  grid-template-columns: 194px 32px minmax(0, 1fr) 280px !important;
}
.edit[data-edit-root] .edit__layout.has-sidepanel.is-rail-collapsed .edit__body {
  grid-template-columns: 0 32px minmax(0, 1fr) 280px !important;
}
.edit[data-edit-root] .edit__body > .edit__fieldspanel {
  position: static !important;
  grid-column: 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  width: auto !important;
  max-height: none !important;
  min-height: 0;
  margin: 0;
  padding: 0 !important;
  border-left: 1px solid var(--ea-line);
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none !important;
  overflow: hidden;
}
.edit[data-edit-root] .edit__body > .edit__fieldspanel[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__fieldspanel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin: 0 !important;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--ea-line);
  font-size: 16px;
}
.edit[data-edit-root] .edit__fieldspanel-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
}
.edit[data-edit-root] .edit__fieldspanel-art {
  display: grid;
  place-items: center;
  height: 160px;
  background: #e8efff;
}
.edit[data-edit-root] .edit__fieldspanel-art svg {
  width: 100%;
  height: 100%;
}
.edit[data-edit-root] .edit__fieldspanel-title {
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.edit[data-edit-root] .edit__fieldspanel-text {
  margin: 0;
  color: var(--ea-muted);
  font-size: 15px;
  line-height: 1.6;
}
.edit[data-edit-root] .edit__fieldspanel-result {
  margin-top: 16px;
}
.edit[data-edit-root] .edit__fieldspanel-result[hidden] {
  display: none;
}
.edit[data-edit-root] .edit__fieldspanel-cta {
  height: 40px;
  margin: 8px;
  border: 0;
  border-radius: 4px;
  background: var(--ea-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
/* text-edit blocks */
.edit[data-edit-root] .edit__layer .edit__span {
  fill: transparent;
  stroke: #5b8def;
}
.edit[data-edit-root] .edit__layer .edit__span--active {
  fill: transparent;
}
.edit[data-edit-root] textarea.edit__inline-text--span {
  padding: 0;
  border: 1px dashed #5b8def;
  overflow: hidden;
}
.edit[data-edit-root] .edit__layer .edit__span--active { stroke-dasharray: 3 2; stroke-width: 0.8; }

/* separators like Smallpdf: before undo/redo; fill & sign tools centred */
.edit[data-edit-root] .edit__toolset--end::before {
  content: "";
  align-self: center;
  width: 1px;
  height: 24px;
  margin-right: 16px;
  background: var(--ea-line);
}
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__toolset--end,
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__toolset--end {
  margin-left: 0 !important;
}
.edit[data-edit-root] .edit__layout[data-mode="sign"] .edit__toolbar {
  justify-content: space-between;
}
.edit[data-edit-root] .edit__layout[data-mode="organize"] .edit__toolset--end::before {
  display: none;
}
.edit[data-edit-root] .edit__watermarkbar .edit__wm-field input[type="text"] { width: 277px; }
