body.seal-execution-open { overflow: hidden; }
body.seal-execution-open #confirm-modal { z-index: 1301; }
body.seal-execution-open .modal-backdrop { z-index: 1300; }
body.seal-execution-open #toast-container { z-index: 1400; }
.seal-execution-host { margin: 0; padding: 0; border: 0; background: transparent; }
.seal-execution-host.d-none { display: none !important; }
.seal-execution { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; background: #fff; color: #30343b; font: 14px/1.4 Arial, sans-serif; text-align: left; }
.seal-execution * { box-sizing: border-box; }
.seal-execution__header { flex: 0 0 52px; display: flex; align-items: center; gap: 14px; padding: 0 14px; color: #fff; background: #303030; }
.seal-execution__header strong { font-size: 19px; white-space: nowrap; }
.seal-execution__header-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c8c8c8; }
.seal-execution__back { flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 22px; }
.seal-execution__preview-button { margin-left: auto; flex: 0 0 auto; padding: 8px 17px; border: 1px solid #ddd; border-radius: 3px; color: #fff; background: transparent; font-weight: 700; }
.seal-execution__preview-button:hover:not(:disabled) { background: #555; }
.seal-execution__preview-button:disabled { opacity: .5; cursor: wait; }
.seal-execution__submit { flex: 0 0 auto; padding: 8px 17px; border: 0; border-radius: 3px; color: #fff; background: #c72d2d; font-weight: 700; }
.seal-execution__submit:hover:not(:disabled) { background: #ad2020; }
.seal-execution__submit:disabled { opacity: .5; cursor: not-allowed; }
.seal-execution__mobile-nav, .seal-execution__mobile-hint { display: none; }
.seal-execution__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr) 284px; }
.seal-execution__files, .seal-execution__seals { min-height: 0; overflow-y: auto; background: #fff; }
.seal-execution__files { border-right: 1px solid #e0e0e0; padding: 15px 12px; }
.seal-execution__seals { border-left: 1px solid #e0e0e0; padding: 15px 12px; }
.seal-execution__files h3, .seal-execution__seals h3 { margin: 0; font-size: 15px; font-weight: 700; }
.seal-execution__files h3 span { color: #888; font-weight: 400; }
.seal-execution__files > p, .seal-execution__seals > p { margin: 6px 0 15px; color: #777; font-size: 12px; }
.seal-execution__file { padding: 9px 0 13px; border-top: 1px solid #e5e5e5; }
.seal-execution__file.is-current { background: #f4f6fa; }
.seal-execution__file > button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; padding: 5px; background: transparent; color: #30343b; text-align: center; }
.seal-execution__thumbnail { width: 108px; height: 142px; display: grid; place-items: center; overflow: hidden; border: 1px solid #c7cbd3; background: #fff; }
.seal-execution__thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.seal-execution__thumbnail i { font-size: 44px; color: #c54242; }
.seal-execution__file-name { width: 100%; overflow-wrap: anywhere; font-size: 12px; }
.seal-execution__file label { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 7px 0 3px; font-size: 12px; }
.seal-execution__file small { display: block; text-align: center; color: #888; }
.seal-execution__viewer { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #ececec; }
.seal-execution__toolbar { flex: 0 0 42px; display: flex; align-items: center; justify-content: center; gap: 35px; padding: 0 16px; border-bottom: 1px solid #dedede; background: #fafafa; }
.seal-execution__pages, .seal-execution__zoom { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.seal-execution__pages button { width: 26px; height: 26px; border: 0; background: transparent; color: #474747; font-size: 19px; }
.seal-execution__page-jump, .seal-execution__signed-preview-page-jump { display: flex; align-items: center; gap: 4px; }
.seal-execution__page-jump input, .seal-execution__signed-preview-page-jump input { width: 50px; height: 32px; padding: 2px 4px; border: 1px solid #bfc5cd; border-radius: 4px; background: #fff; color: #30343b; text-align: center; font: inherit; }
.seal-execution__page-jump button, .seal-execution__signed-preview-page-jump button { width: auto; min-width: 36px; height: 32px; padding: 0 6px; border: 1px solid #bfc5cd; border-radius: 4px; background: #fff; color: #30343b; font-size: 13px; font-weight: 600; }
.seal-execution__page-jump button:disabled, .seal-execution__signed-preview-page-jump button:disabled { opacity: .5; cursor: wait; }
.seal-execution__zoom input { width: 110px; accent-color: #555; }
.seal-execution__zoom span { min-width: 42px; font-size: 12px; }
.seal-execution__zoom button { width: 28px; height: 28px; border: 0; background: transparent; color: #30343b; font-size: 20px; }
.seal-execution__canvas-scroll { flex: 1; min-height: 0; overflow: auto; padding: 22px; text-align: center; }
.seal-execution__preview { position: relative; width: 720px; max-width: none; margin: 0 auto; border: 1px solid #d5d5d5; background: #fff; box-shadow: 0 2px 8px #0002; touch-action: auto; cursor: crosshair; }
.seal-execution__preview > img { display: block; width: 100%; height: auto; }
.seal-execution__overlays { position: absolute; inset: 0; }
.seal-execution__stamp { position: absolute; border: 1px dashed #d22f3a; background: #fff8; cursor: grab; touch-action: none; }
.seal-execution__stamp.is-selected { outline: 2px solid #4d69e8; }
.seal-execution__stamp > img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.seal-execution__resize { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 2px; background: #4d69e8; cursor: nwse-resize; }
.seal-execution__message { flex: 0 0 auto; min-height: 24px; margin: 0; padding: 3px 12px; display: flex; align-items: center; gap: 8px; color: #b42335; background: #fafafa; font-size: 12px; text-align: left; }
.seal-execution__message [data-message-text], .seal-execution__signed-preview-message [data-message-text] { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.seal-execution__message-close { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.seal-execution__message-close:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.seal-execution__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seal-execution__seal-card { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 5px; border: 1px solid #e4e4e4; background: #fff; color: #30343b; cursor: grab; }
.seal-execution__seal-card.is-selected { border-color: #c72d2d; box-shadow: 0 0 0 2px #c72d2d22; }
.seal-execution__seal-card:focus-visible { outline: 2px solid #4d69e8; outline-offset: 2px; }
.seal-execution__seal-image { width: 88px; height: 88px; display: grid; place-items: center; }
.seal-execution__seal-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.seal-execution__seal-card strong { max-width: 100%; overflow-wrap: anywhere; font-size: 12px; }
.seal-execution__seal-card small { max-width: 100%; overflow-wrap: anywhere; color: #888; font-size: 10px; }
.seal-execution__notice { padding: 12px; border: 1px solid #e5b75e; background: #fff8e7; color: #72510c !important; font-size: 12px !important; }
.seal-execution__placement-list { margin-top: 20px; border-top: 1px solid #e5e5e5; padding-top: 12px; }
.seal-execution__placement-list h4 { margin: 0 0 9px; font-size: 13px; }
.seal-execution__placement-list p { color: #888; font-size: 12px; }
.seal-execution__placement { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #eee; font-size: 12px; }
.seal-execution__placement button { padding: 0; border: 0; background: transparent; color: #b42335; }
.seal-execution__loading { padding: 14px; }
.seal-execution__signed-preview { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; background: #fff; }
.seal-execution__signed-preview.d-none { display: none !important; }
.seal-execution__signed-preview-header { min-height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: #303030; color: #fff; }
.seal-execution__signed-preview-header span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ddd; }
.seal-execution__signed-preview-header button { flex: 0 0 auto; padding: 7px 13px; border: 1px solid #ddd; border-radius: 3px; color: #fff; background: transparent; }
.seal-execution__signed-preview-header [data-close-signed-preview] { margin-left: auto; }
.seal-execution__signed-preview-header .seal-execution__submit { border: 0; background: #c72d2d; }
.seal-execution__open-preview { color: #fff; white-space: nowrap; }
.seal-execution__signed-preview iframe { flex: 1; width: 100%; border: 0; }
.seal-execution__signed-preview-mobile { display: none; }
@media (max-width: 900px) {
  .seal-execution__header { flex-basis: auto; min-height: 94px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 5px 10px; padding: 8px 12px; }
  .seal-execution__back { grid-column: 1; grid-row: 1; }
  .seal-execution__header strong { grid-column: 2 / 4; grid-row: 1; font-size: 17px; }
  .seal-execution__header-file { display: none; }
  .seal-execution__preview-button { grid-column: 1 / 3; grid-row: 2; width: 100%; min-height: 40px; margin: 0; }
  .seal-execution__submit { grid-column: 3; grid-row: 2; min-height: 40px; padding: 7px 12px; }
  .seal-execution__mobile-nav { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #ddd; }
  .seal-execution__mobile-nav button { min-height: 44px; border: 0; background: #fff; color: #30343b; font-weight: 600; }
  .seal-execution__mobile-nav button[aria-pressed="true"] { color: #c72d2d; border-bottom: 3px solid #c72d2d; }
  .seal-execution__body { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
  .seal-execution__files, .seal-execution__viewer, .seal-execution__seals { grid-area: 1 / 1; min-width: 0; }
  .seal-execution__body:not([data-active-mobile-view="files"]) .seal-execution__files,
  .seal-execution__body:not([data-active-mobile-view="document"]) .seal-execution__viewer,
  .seal-execution__body:not([data-active-mobile-view="seals"]) .seal-execution__seals { display: none; }
  .seal-execution__files, .seal-execution__seals { border: 0; padding: 16px; }
  .seal-execution__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seal-execution__file > button { align-items: flex-start; flex-direction: row; text-align: left; }
  .seal-execution__file label { justify-content: flex-start; min-height: 44px; }
  .seal-execution__file label input { width: 20px; height: 20px; }
  .seal-execution__thumbnail { flex: 0 0 70px; width: 70px; height: 90px; }
  .seal-execution__toolbar { justify-content: space-between; gap: 8px; padding: 0 8px; }
  .seal-execution__pages button, .seal-execution__zoom button { width: 38px; height: 38px; }
  .seal-execution__zoom input { width: min(22vw, 110px); }
  .seal-execution__mobile-hint { display: block; margin: 0; padding: 5px 10px; background: #fff; color: #555; font-size: 12px; }
  .seal-execution__canvas-scroll { padding: 12px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .seal-execution__resize { right: -10px; bottom: -10px; width: 24px; height: 24px; }
  .seal-execution__message-close { flex-basis: 44px; width: 44px; height: 44px; }
  .seal-execution__signed-preview-header { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 8px 12px; }
  .seal-execution__signed-preview-header strong { font-size: 14px; }
  .seal-execution__signed-preview-header span { grid-column: 1 / -1; grid-row: 2; }
  .seal-execution__signed-preview-header [data-close-signed-preview] { grid-column: 3; grid-row: 1; margin: 0; }
  .seal-execution__signed-preview-header .seal-execution__submit { grid-column: 1 / 3; grid-row: 3; min-height: 40px; }
  .seal-execution__signed-preview-header .seal-execution__open-preview { grid-column: 3; grid-row: 3; align-self: center; }
  .seal-execution__signed-preview.is-mobile-pdf iframe { display: none; }
  .seal-execution__signed-preview-mobile:not(.d-none) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .seal-execution__signed-preview-pages { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-bottom: 1px solid #ddd; }
  .seal-execution__signed-preview-pages button { min-width: 72px; min-height: 40px; border: 0; background: transparent; color: #30343b; font-weight: 600; }
  .seal-execution__signed-preview-pages button:disabled { color: #aaa; }
  .seal-execution__signed-preview-pages span { min-width: 76px; text-align: center; }
  .seal-execution__signed-preview-page-jump button { min-width: 36px; min-height: 36px; border: 1px solid #bfc5cd; border-radius: 4px; background: #fff; color: #30343b; }
  .seal-execution__signed-preview-scroll { flex: 1; min-height: 0; overflow: auto; padding: 12px; background: #ececec; -webkit-overflow-scrolling: touch; }
  .seal-execution__signed-preview-scroll canvas { display: block; max-width: 100%; height: auto; margin: 0 auto; background: #fff; box-shadow: 0 2px 8px #0002; }
  .seal-execution__signed-preview-message { flex: 0 0 auto; min-height: 24px; margin: 0; padding: 4px 12px; display: flex; align-items: center; gap: 8px; color: #b42335; font-size: 12px; text-align: left; }
}
@media (max-width: 620px) {
  .seal-execution__submit { font-size: 12px; }
  .seal-execution__toolbar { flex: 0 0 auto; min-height: 88px; flex-direction: column; justify-content: center; gap: 0; padding: 2px 8px; }
  .seal-execution__pages button, .seal-execution__zoom button { width: 44px; height: 40px; }
  .seal-execution__page-jump button { width: auto; height: 40px; }
  .seal-execution__page-jump input { height: 40px; }
  .seal-execution__zoom input { width: 100px; }
  .seal-execution__signed-preview-pages { flex-wrap: wrap; padding: 4px 8px; }
  .seal-execution__signed-preview-page-jump { flex: 1 1 100%; justify-content: center; }
}
