:root {
  --ep-bg: #f8fafc;
  --ep-surface: #ffffff;
  --ep-surface-soft: #f1f5f9;
  --ep-text: #0f172a;
  --ep-muted: #64748b;
  --ep-border: #e2e8f0;
  --ep-border-strong: #cbd5e1;
  --ep-blue: #2563eb;
  --ep-blue-hover: #1d4ed8;
  --ep-blue-soft: #eff6ff;
  --ep-green: #15803d;
  --ep-green-soft: #f0fdf4;
  --ep-red: #dc2626;
  --ep-shadow: 0 18px 52px rgba(15, 23, 42, .08);
  --ep-radius: 16px;
  --ep-control-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ep-text);
  background: var(--ep-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 3px;
}

::selection { background: #bfdbfe; color: #172554; }

[hidden] { display: none !important; }

.ep-global-drop {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(26px, 5vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(37, 99, 235, .24), transparent 42%),
    rgba(2, 6, 23, .68);
  backdrop-filter: blur(14px) saturate(72%);
  -webkit-backdrop-filter: blur(14px) saturate(72%);
  pointer-events: none;
  animation: ep-drop-overlay-in .24s cubic-bezier(.2, .75, .25, 1) both;
}

.ep-global-drop.ep-global-drop-closing {
  opacity: 0;
  animation: none;
  transition: opacity .18s ease;
}

.ep-global-drop.ep-global-drop-closing .ep-global-drop-card {
  opacity: 0;
  transform: translateY(-10px) scale(.97);
  animation: none;
  transition: opacity .16s ease, transform .18s ease;
}

.ep-global-drop::before {
  content: "";
  position: absolute;
  inset: clamp(16px, 3vw, 34px);
  border: 2px solid rgba(147, 197, 253, .72);
  border-radius: clamp(24px, 4vw, 42px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 0 80px rgba(37, 99, 235, .12),
    0 0 55px rgba(59, 130, 246, .18);
  animation: ep-drop-border-pulse 1.45s ease-in-out infinite alternate;
}

.ep-global-drop-card {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(560px, 100%);
  padding: clamp(30px, 6vw, 52px);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: clamp(24px, 4vw, 36px);
  background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(239, 246, 255, .91));
  color: #0f172a;
  text-align: center;
  box-shadow:
    0 35px 90px rgba(2, 6, 23, .42),
    0 0 0 10px rgba(255, 255, 255, .07);
  animation: ep-drop-card-in .38s cubic-bezier(.16, 1, .3, 1) both;
}

.ep-global-drop-card strong {
  margin-top: 22px;
  font-size: clamp(23px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.ep-global-drop-card > span:last-child {
  margin-top: 9px;
  color: #475569;
  font-size: clamp(14px, 2vw, 17px);
}

.ep-global-drop-icon {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 25px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .34);
  animation: ep-drop-icon-float 1.15s ease-in-out infinite alternate;
}

.ep-global-drop-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 19px;
  width: 20px;
  height: 20px;
  border-top: 4px solid white;
  border-left: 4px solid white;
  transform: translateX(-50%) rotate(45deg);
}

.ep-global-drop-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 4px;
  height: 34px;
  border-radius: 99px;
  background: white;
  transform: translateX(-50%);
}

.ep-global-drop-icon i {
  position: absolute;
  left: 19px;
  right: 19px;
  bottom: 17px;
  height: 17px;
  border: 4px solid white;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

body.ep-file-dragging { cursor: copy; }

.ep-global-drop-status {
  position: fixed;
  z-index: 320;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  width: min(520px, calc(100% - 32px));
  padding: 13px 17px;
  border: 1px solid rgba(254, 202, 202, .92);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  color: #b91c1c;
  font-size: 14px;
  font-weight: 720;
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .2);
  transform: translateX(-50%);
  animation: ep-drop-status-in .24s cubic-bezier(.16, 1, .3, 1) both;
}

.ep-global-drop-status-info {
  border-color: rgba(191, 219, 254, .94);
  color: #1d4ed8;
}

@keyframes ep-drop-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ep-drop-card-in {
  from { opacity: 0; transform: translateY(26px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ep-drop-border-pulse {
  from { opacity: .58; transform: scale(.995); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ep-drop-icon-float {
  from { transform: translateY(3px); }
  to { transform: translateY(-5px); }
}

@keyframes ep-drop-status-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.ep-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ep-skip {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ep-text);
  color: white;
  transform: translateY(-150%);
  transition: transform .16s ease;
}

.ep-skip:focus { transform: translateY(0); }

.ep-header,
.ep-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.ep-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ep-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ep-text);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.025em;
  text-decoration: none;
}

.ep-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(37, 99, 235, .18));
}

.ep-nav {
  display: none;
  margin-left: auto;
  gap: 26px;
  font-size: 14px;
  color: #475569;
}

.ep-nav a { text-decoration: none; }
.ep-nav a:hover { color: var(--ep-blue); }

.ep-language {
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid var(--ep-border);
  border-radius: 9px;
  background: var(--ep-surface);
  color: #475569;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.ep-language:hover {
  border-color: #93c5fd;
  background: var(--ep-blue-soft);
  color: var(--ep-blue);
}

.ep-main {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.ep-product {
  min-height: 580px;
  background: var(--ep-surface);
  overflow: clip;
}

.ep-view { animation: ep-fade .2s ease both; }

@keyframes ep-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.ep-upload-copy {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 20px 24px;
  text-align: center;
}

.ep-eyebrow {
  margin: 0 0 10px;
  color: var(--ep-blue);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 7.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.052em;
}

.ep-lead {
  max-width: 630px;
  margin: 0 auto;
  color: var(--ep-muted);
  font-size: 16px;
}

.ep-preserve-promise {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.ep-preserve-promise span {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(239, 246, 255, .8);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 720;
}

.ep-preserve-promise i { color: var(--ep-green); font-style: normal; }

.ep-recovery-card {
  width: calc(100% - 32px);
  max-width: 680px;
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: var(--ep-radius);
  background: var(--ep-blue-soft);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
}

.ep-recovery-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ep-blue);
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.ep-recovery-card strong { font-size: 14px; }
.ep-recovery-card p { margin: 2px 0 0; color: #59677a; font-size: 12px; }
.ep-recovery-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ep-recovery-actions .ep-action { width: 100%; }
.ep-recovery-actions .ep-danger-action { width: auto; margin: 0; padding-inline: 12px; }
.ep-dropzone.ep-recovery-blocked {
  border-color: #94a3b8;
  background: var(--ep-surface-soft);
  pointer-events: none;
}

.ep-dropzone {
  position: relative;
  width: calc(100% - 32px);
  max-width: 680px;
  min-height: 226px;
  margin: 0 auto;
  padding: 27px 18px 21px;
  border: 1.5px dashed var(--ep-border-strong);
  border-radius: var(--ep-radius);
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ep-dropzone:hover,
.ep-dropzone.ep-dragging {
  border-color: var(--ep-blue);
  background: var(--ep-blue-soft);
}

.ep-dropzone.ep-dragging { transform: scale(.995); }

.ep-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ep-upload-symbol {
  width: 48px;
  height: 48px;
  margin-bottom: 11px;
  border-radius: 14px;
  background: var(--ep-blue-soft);
  display: grid;
  place-items: center;
}

.ep-upload-symbol span {
  position: relative;
  width: 17px;
  height: 18px;
  border: 2px solid var(--ep-blue);
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
}

.ep-upload-symbol span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 7px;
  height: 7px;
  border-left: 2px solid var(--ep-blue);
  border-top: 2px solid var(--ep-blue);
  transform: translateX(-50%) rotate(45deg);
}

.ep-upload-symbol span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 2px;
  height: 13px;
  background: var(--ep-blue);
  transform: translateX(-50%);
}

.ep-drop-copy {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  font-size: 15px;
}

.ep-drop-copy strong { font-size: 17px; }
.ep-desktop-only { display: none; color: var(--ep-muted); }

.ep-action {
  min-height: 52px;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--ep-control-radius);
  cursor: pointer;
  font-weight: 760;
  line-height: 1.2;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.ep-action:hover { transform: translateY(-1px); }
.ep-action:active { transform: translateY(0); }
.ep-action:disabled { cursor: wait; opacity: .58; transform: none; }

.ep-action-primary {
  background: var(--ep-blue);
  color: white;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .2);
}

.ep-action-primary:hover { background: var(--ep-blue-hover); }

.ep-action-danger {
  background: var(--ep-red);
  color: white;
  box-shadow: 0 8px 22px rgba(220, 38, 38, .18);
}

.ep-action-danger:hover { background: #b91c1c; }

.ep-format-note {
  margin: 12px 0 0;
  color: var(--ep-muted);
  font-size: 12px;
}

.ep-trust-row {
  max-width: 760px;
  margin: 22px auto 0;
  padding: 0 20px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.ep-trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.ep-trust-row i { color: var(--ep-green); font-style: normal; font-weight: 850; }

.ep-message {
  width: calc(100% - 32px);
  max-width: 680px;
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
}

.ep-message.ep-message-info {
  border-color: #bfdbfe;
  background: var(--ep-blue-soft);
  color: #1e40af;
}

.ep-message.ep-message-success {
  border-color: #bbf7d0;
  background: var(--ep-green-soft);
  color: #166534;
}

.ep-queue-panel {
  min-height: 470px;
  padding: 72px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.ep-queue-panel h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; }
.ep-queue-panel p { max-width: 500px; margin: 0; color: var(--ep-muted); }

.ep-queue-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.ep-action-secondary {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ep-border-strong);
  background: var(--ep-surface);
  color: var(--ep-text);
  box-shadow: none;
}

.ep-action-secondary:hover { background: var(--ep-surface-soft); }

.ep-spinner {
  flex: 0 0 auto;
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid #bfdbfe;
  border-top-color: var(--ep-blue);
  border-radius: 50%;
  animation: ep-spin .75s linear infinite;
}

@keyframes ep-spin { to { transform: rotate(360deg); } }

.ep-editor { padding: 22px 16px 0; }

.ep-editor-actions {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.ep-back-action {
  min-height: 44px;
  margin: 0;
  padding: 8px 13px 8px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  background: var(--ep-blue-soft);
  box-shadow: 0 5px 14px rgba(37, 99, 235, .08);
  color: #1d4ed8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-align: left;
}

.ep-back-action:hover { border-color: #93c5fd; background: #dbeafe; }

.ep-back-action .ep-back-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--ep-blue);
  color: white;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.ep-back-action > span:last-child { line-height: 1.2; }

.ep-delete-current {
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--ep-red);
  cursor: pointer;
  font-size: 12px;
  font-weight: 730;
}

.ep-delete-current:hover { text-decoration: underline; }

.ep-editor-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.ep-editor-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.ep-editor-heading p:last-child {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--ep-muted);
  font-size: 14px;
}

.ep-complete-banner {
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid #bbf7d0;
  border-radius: var(--ep-radius);
  background: var(--ep-green-soft);
  color: #166534;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ep-complete-banner > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: #dcfce7;
  display: grid;
  place-items: center;
  font-weight: 850;
}

.ep-complete-banner p { margin: 2px 0 0; color: #3f7652; font-size: 12px; }

.ep-file-contract {
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid #bfdbfe;
  border-radius: var(--ep-radius);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
  display: grid;
  gap: 12px;
}

.ep-file-identity,
.ep-preserve-result {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-file-icon {
  width: 48px;
  height: 42px;
  padding: 0 5px;
  flex: 0 0 48px;
  box-sizing: border-box;
  border-radius: 12px;
  background: var(--ep-blue);
  color: white;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
}

.ep-file-identity > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.ep-preserve-result { align-items: flex-start; }
.ep-file-contract small,
.ep-preserve-result span { color: var(--ep-muted); font-size: 11px; }
.ep-file-contract strong { font-size: 13px; }
.ep-preserve-result { padding-left: 58px; }

.ep-text-action,
.ep-danger-action {
  min-height: 44px;
  padding: 8px 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ep-blue);
  font-size: 13px;
  font-weight: 700;
}

.ep-workspace {
  display: grid;
  grid-template-areas: "report" "image";
  gap: 16px;
}

.ep-image-column { min-width: 0; grid-area: image; }

.ep-canvas-shell {
  position: relative;
  min-height: 220px;
  border-radius: var(--ep-radius);
  background-color: #e2e8f0;
  background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f5f9 75%), linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  touch-action: none;
}

.ep-canvas-shell.ep-canvas-locked { touch-action: auto; }
.ep-canvas-shell.ep-canvas-locked #ep-editor-canvas { pointer-events: none; }

#ep-editor-canvas {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  cursor: crosshair;
}

#ep-editor-canvas.ep-canvas-moving { cursor: move; }

.ep-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(248, 250, 252, .92);
  color: #475569;
  font-size: 14px;
}

.ep-tool-dock {
  position: relative;
  z-index: 2;
  width: calc(100% - 16px);
  min-height: 58px;
  margin: -11px auto 0;
  padding: 7px;
  border: 1px solid rgba(203, 213, 225, .76);
  border-radius: 15px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ep-mask-option {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  background: var(--ep-surface);
  display: grid;
  gap: 12px;
}

.ep-mask-option strong { display: block; margin: 3px 0 2px; font-size: 14px; }
.ep-mask-option p { margin: 0; color: var(--ep-muted); font-size: 12px; }
.ep-mask-option .ep-action { width: 100%; }

.ep-optional-label {
  color: var(--ep-blue);
  font-size: 10px;
  font-weight: 830;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ep-masking-controls .ep-tool-dock { margin-top: 10px; }

@supports (backdrop-filter: blur(12px)) {
  .ep-tool-dock,
  .ep-sticky-inner {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
  }
}

.ep-tool-primary,
.ep-icon-action {
  height: 44px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 740;
}

.ep-tool-primary {
  padding: 0 11px;
  background: var(--ep-text);
  color: white;
  white-space: nowrap;
}

.ep-tool-primary span { margin-right: 3px; font-size: 18px; }
.ep-tool-primary.ep-active { background: var(--ep-blue); }

.ep-segmented {
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: 11px;
  background: var(--ep-surface-soft);
  display: flex;
  flex: 1;
}

.ep-segmented label { min-width: 0; flex: 1; cursor: pointer; }
.ep-segmented input { position: absolute; opacity: 0; pointer-events: none; }

.ep-segmented span {
  min-height: 38px;
  padding: 9px 7px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ep-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ep-segmented input:checked + span {
  background: white;
  color: var(--ep-text);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
}

.ep-segmented input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, .35); }

.ep-icon-action {
  width: 44px;
  flex: 0 0 44px;
  background: transparent;
  color: var(--ep-red);
  font-size: 27px;
  font-weight: 400;
}

.ep-icon-action:disabled { color: #94a3b8; cursor: default; opacity: .52; }
.ep-undo-action { color: var(--ep-text); }
.ep-undo-action svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  .ep-tool-primary { padding-inline: 8px; font-size: 12px; }
  .ep-icon-action { width: 38px; flex-basis: 38px; }
}

.ep-mask-summary {
  padding: 9px 3px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ep-muted);
  font-size: 12px;
}

.ep-keyboard-hint { display: none; }

.ep-report {
  grid-area: report;
  align-self: start;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  background: var(--ep-surface);
  overflow: hidden;
}

.ep-report details summary {
  min-height: 68px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ep-report details summary::-webkit-details-marker { display: none; }
.ep-report summary small { display: block; margin-bottom: 2px; color: var(--ep-muted); font-size: 11px; }
.ep-report summary strong { font-size: 15px; }

.ep-summary-chevron {
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border-right: 2px solid var(--ep-muted);
  border-bottom: 2px solid var(--ep-muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
}

.ep-report details[open] .ep-summary-chevron { transform: rotate(225deg); }

.ep-report-body {
  padding: 0 15px 15px;
  border-top: 1px solid var(--ep-border);
}

.ep-report-body > p { margin: 12px 0; color: var(--ep-muted); font-size: 13px; }

.ep-metadata-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ep-metadata-list li {
  min-height: 62px;
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fffaf5;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 13px;
}

.ep-metadata-list li:last-child { border-bottom: 1px solid #fed7aa; }

.ep-meta-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: #fff7ed;
  color: #c2410c;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 850;
  grid-row: 1 / span 2;
}

.ep-meta-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ep-meta-copy strong { color: var(--ep-text); font-size: 13px; }
.ep-meta-copy small { color: var(--ep-muted); font-size: 11px; line-height: 1.35; }
.ep-meta-status {
  width: max-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.ep-meta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.ep-meta-details {
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid #fdba74;
  border-radius: 9px;
  background: white;
  color: #9a3412;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.ep-meta-details:hover { background: #fff7ed; }

.ep-no-metadata {
  padding: 12px;
  border-radius: 10px;
  background: var(--ep-green-soft);
  color: #166534;
  font-size: 13px;
}

.ep-no-metadata strong { display: flex; align-items: center; gap: 6px; }
.ep-no-metadata p { margin: 7px 0 4px; color: #166534; font-size: 11px; line-height: 1.45; }
.ep-no-metadata small { display: block; color: #3f7652; font-size: 10px; line-height: 1.45; }

.ep-safe-note {
  padding: 12px 15px;
  border-top: 1px solid var(--ep-border);
  background: var(--ep-green-soft);
  display: flex;
  gap: 9px;
  color: #166534;
  font-size: 12px;
}

.ep-safe-note > span { font-weight: 850; }
.ep-safe-note p { margin: 0; }

.ep-sticky-zone {
  position: sticky;
  z-index: 8;
  bottom: 0;
  margin: 22px -16px 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(248, 250, 252, .88);
}

.ep-sticky-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(203, 213, 225, .76);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .13);
}

.ep-sticky-copy { display: none; }
.ep-sticky-inner .ep-action { width: 100%; }
.ep-sticky-actions { display: grid; gap: 7px; }

body.ep-modal-open { overflow: hidden; }

.ep-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: end;
}

.ep-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, .48);
  cursor: default;
}

.ep-modal-dialog {
  position: relative;
  width: 100%;
  max-height: min(88vh, 760px);
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -22px 60px rgba(15, 23, 42, .2);
  overflow: auto;
}

@supports (backdrop-filter: blur(18px)) {
  .ep-modal-dialog { background: rgba(255, 255, 255, .88); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); }
}

.ep-modal-handle { width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 99px; background: #cbd5e1; }

.ep-modal-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.ep-modal-head .ep-eyebrow { margin-bottom: 2px; font-size: 9px; }
.ep-modal-head h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }

.ep-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #fff7ed;
  color: #c2410c;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 850;
}

.ep-modal-close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ep-surface-soft); color: #475569; cursor: pointer; font-size: 25px; }
.ep-modal-intro { margin: 14px 0; color: var(--ep-muted); font-size: 13px; }
.ep-modal-body { min-height: 82px; }
.ep-modal-loading { min-height: 82px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--ep-muted); font-size: 13px; }

.ep-detail-list { margin: 0; display: grid; gap: 8px; }
.ep-detail-list > div { padding: 12px; border: 1px solid var(--ep-border); border-radius: 13px; background: rgba(248, 250, 252, .86); }
.ep-detail-list dt { margin-bottom: 5px; color: var(--ep-muted); font-size: 11px; font-weight: 750; }
.ep-detail-list dt small { display: block; margin-top: 1px; color: #94a3b8; font-size: 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ep-detail-list dd { margin: 0; color: var(--ep-text); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; white-space: pre-wrap; }
.ep-modal-empty { padding: 14px; border-radius: 12px; background: var(--ep-surface-soft); color: #475569; font-size: 13px; }
.ep-modal-error { background: #fef2f2; color: #991b1b; }

.ep-modal-privacy { margin-top: 12px; padding: 11px; border-radius: 12px; background: var(--ep-green-soft); color: #166534; display: flex; gap: 8px; font-size: 11px; }
.ep-modal-privacy p { margin: 0; }
.ep-modal-done { width: 100%; margin-top: 12px; }

.ep-confirm-dialog { max-height: none; }

.ep-confirm-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.ep-confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #fef2f2;
  color: var(--ep-red);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 500;
}

.ep-confirm-head h2 { margin: 1px 0 5px; font-size: 21px; line-height: 1.15; letter-spacing: -.03em; }
.ep-confirm-head p { margin: 0; color: var(--ep-muted); font-size: 13px; }

.ep-confirm-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.ep-confirm-actions .ep-action { width: 100%; min-height: 48px; padding-inline: 12px; }

.ep-danger-action {
  width: 100%;
  margin-top: 6px;
  color: #b91c1c;
}

.ep-danger-action:disabled { color: var(--ep-muted); cursor: default; }

.ep-info-section,
.ep-privacy-section {
  margin: 68px 16px 0;
}

.ep-info-section > h2,
.ep-privacy-section h2 {
  max-width: 680px;
  margin-bottom: 26px;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.ep-info-grid { display: grid; gap: 12px; }

.ep-info-grid article {
  padding: 20px;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  background: var(--ep-surface);
}

.ep-info-grid article > span {
  width: 30px;
  height: 30px;
  margin-bottom: 24px;
  border-radius: 9px;
  background: var(--ep-blue-soft);
  color: var(--ep-blue);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.ep-info-grid h3 { margin-bottom: 6px; font-size: 17px; }
.ep-info-grid p { margin: 0; color: var(--ep-muted); font-size: 14px; }

.ep-mobile-section {
  position: relative;
  margin: 68px 16px 0;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(147, 197, 253, .42), transparent 34%),
    linear-gradient(135deg, #172554 0%, #1d4ed8 58%, #2563eb 100%);
  box-shadow: 0 24px 58px rgba(30, 64, 175, .18);
  overflow: hidden;
}

.ep-mobile-section::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  bottom: -150px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, .035), 0 0 0 76px rgba(255, 255, 255, .025);
}

.ep-mobile-copy { position: relative; z-index: 2; }
.ep-mobile-kicker {
  margin: 0 0 16px;
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ep-mobile-kicker span {
  margin-right: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: white;
  letter-spacing: .04em;
}
.ep-mobile-copy h2 {
  max-width: 570px;
  margin: 0 0 13px;
  color: white;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.ep-mobile-lead {
  max-width: 590px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 15px;
}

.ep-mobile-platforms { display: grid; gap: 10px; }
.ep-platform-card {
  min-width: 0;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 15px;
  background: rgba(255, 255, 255, .1);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.ep-platform-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: white;
  color: #111827;
  display: grid;
  place-items: center;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 25px;
}
.ep-platform-android { background: #a3e635; color: #14532d; }
.ep-platform-android svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ep-platform-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.ep-platform-card small { color: #bfdbfe; font-size: 10px; }
.ep-platform-card strong { color: white; font-size: 13px; }
.ep-platform-card em {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: white;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .02em;
}
.ep-mobile-web-link {
  width: max-content;
  min-height: 46px;
  margin-top: 18px;
  padding: 11px 15px;
  border: 0;
  border-radius: 12px;
  background: white;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ep-mobile-web-link:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(15, 23, 42, .2); }
.ep-mobile-web-link:disabled { cursor: wait; opacity: .7; transform: none; }
.ep-mobile-web-link span { font-size: 18px; line-height: 1; }

.ep-mobile-preview {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  color: var(--ep-text);
  box-shadow: 0 24px 54px rgba(15, 23, 42, .22);
}
.ep-preview-head { padding-bottom: 13px; border-bottom: 1px solid var(--ep-border); display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.ep-preview-app { width: 42px; height: 42px; padding: 3px; border-radius: 13px; background: #eff6ff; display: grid; place-items: center; }
.ep-preview-app img { width: 36px; height: 36px; }
.ep-preview-head > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.ep-preview-head strong { font-size: 13px; }
.ep-preview-head small { color: var(--ep-muted); font-size: 9px; }
.ep-preview-head em { padding: 5px 7px; border-radius: 999px; background: var(--ep-blue-soft); color: var(--ep-blue); font-size: 9px; font-style: normal; font-weight: 800; }
.ep-preview-flow { padding: 8px 0 6px; }
.ep-preview-step { position: relative; padding: 8px 4px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; }
.ep-preview-step:not(:last-child)::after { content: ""; position: absolute; left: 20px; bottom: -5px; width: 1px; height: 10px; background: #cbd5e1; }
.ep-preview-step-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--ep-blue-soft); color: var(--ep-blue); display: grid; place-items: center; font-size: 12px; font-weight: 850; }
.ep-preview-step-ready .ep-preview-step-icon { background: #dcfce7; color: #15803d; }
.ep-preview-step > span:last-child { display: flex; flex-direction: column; }
.ep-preview-step strong { font-size: 12px; }
.ep-preview-step small { color: var(--ep-muted); font-size: 9px; }
.ep-preview-promises { padding-top: 11px; border-top: 1px solid var(--ep-border); display: flex; flex-wrap: wrap; gap: 6px 14px; color: #166534; font-size: 9px; font-weight: 750; }

.ep-privacy-section {
  margin-bottom: 72px;
  padding: 26px 22px;
  border-radius: 20px;
  background: var(--ep-text);
  color: white;
}

.ep-privacy-section .ep-eyebrow { color: #93c5fd; }
.ep-privacy-section h2 { margin-bottom: 16px; }
.ep-privacy-section > p { margin: 0; color: #cbd5e1; }

.ep-footer {
  padding: 22px 0 calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ep-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  color: var(--ep-muted);
  font-size: 12px;
}

.ep-footer p { margin: 0; }
.ep-footer-brand { display: grid; gap: 8px; }
.ep-footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.ep-footer-links a { color: #475569; text-decoration: none; }
.ep-footer-links a:hover { color: var(--ep-blue); text-decoration: underline; text-underline-offset: 3px; }
.ep-brand-small { font-size: 14px; }
.ep-brand-small img { width: 28px; height: 28px; }

.ep-legal-main {
  width: min(760px, calc(100% - 32px));
  margin: 40px auto 80px;
}

.ep-legal-main article {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--ep-border);
  border-radius: 24px;
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow);
}

.ep-legal-main h1 { font-size: clamp(34px, 7vw, 52px); }
.ep-legal-main h2 { margin: 34px 0 10px; font-size: 21px; letter-spacing: -.025em; }
.ep-legal-main p, .ep-legal-main li { color: #475569; }
.ep-legal-main ul { padding-left: 22px; }
.ep-legal-date { color: var(--ep-muted); font-size: 13px; }
.ep-legal-note { padding: 14px 16px; border-radius: 12px; background: var(--ep-blue-soft); }

.ep-how-intro { max-width: 640px; font-size: 18px; }
.ep-how-steps { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ep-how-steps li { padding: 20px; border: 1px solid var(--ep-border); border-radius: 16px; background: var(--ep-bg); }
.ep-how-step-number { width: 34px; height: 34px; margin-bottom: 16px; border-radius: 10px; background: var(--ep-blue); color: white; display: grid; place-items: center; font-weight: 800; }
.ep-how-steps h2 { margin: 0 0 8px; color: var(--ep-text); }
.ep-how-steps p { margin: 0; }
.ep-how-callout {
  margin-top: 34px;
  padding: 28px;
  border-radius: 16px;
  background: var(--ep-text);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title action"
    "copy action";
  column-gap: 28px;
  row-gap: 8px;
  align-items: center;
}
.ep-how-callout h2 { grid-area: title; margin: 0; color: white; }
.ep-how-callout p { grid-area: copy; margin: 0; color: #cbd5e1; }
.ep-how-callout .ep-action {
  grid-area: action;
  display: inline-flex;
  width: auto;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 539px) {
  .ep-how-callout {
    padding: 20px;
    grid-template-columns: 1fr;
    grid-template-areas: "title" "copy" "action";
    gap: 14px;
  }

  .ep-how-callout .ep-action { justify-content: center; white-space: normal; }

  .ep-info-section,
  .ep-mobile-section,
  .ep-privacy-section { margin-top: 52px; }

  .ep-info-section > h2,
  .ep-privacy-section h2 { font-size: 27px; }

  .ep-mobile-section {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .ep-mobile-kicker { margin-bottom: 13px; }
  .ep-mobile-copy h2 { margin-bottom: 11px; font-size: 29px; }
  .ep-mobile-lead { margin-bottom: 18px; font-size: 14px; }

  .ep-platform-card {
    min-height: 62px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .ep-platform-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 23px; }
  .ep-platform-android svg { width: 22px; height: 22px; }
  .ep-mobile-web-link { margin-top: 15px; }

  .ep-mobile-preview { margin-top: 22px; padding: 14px; }
  .ep-preview-head { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .ep-preview-app { width: 38px; height: 38px; }
  .ep-preview-app img { width: 32px; height: 32px; }
  .ep-preview-step { padding-block: 6px; grid-template-columns: 32px minmax(0, 1fr); }
  .ep-preview-step-icon { width: 32px; height: 32px; }
  .ep-preview-step:not(:last-child)::after { left: 19px; }

  .ep-privacy-section { margin-bottom: 48px; padding: 22px 18px; }
  .ep-privacy-section > p { font-size: 15px; }

  .ep-footer { padding-top: 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); gap: 18px; }
  .ep-footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }
}

@media (min-width: 540px) {
  .ep-trust-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
  .ep-desktop-only { display: inline; }
  .ep-dropzone { min-height: 250px; }
  .ep-sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .ep-sticky-copy { min-width: 0; display: flex; flex-direction: column; padding-left: 8px; }
  .ep-sticky-copy strong { font-size: 13px; }
  .ep-sticky-copy span { color: var(--ep-muted); font-size: 11px; }
  .ep-sticky-actions { display: flex; flex: 0 0 auto; }
  .ep-sticky-inner .ep-action { width: auto; min-width: 180px; }
  .ep-sticky-inner #ep-render-button { min-width: 240px; }
  .ep-file-contract { grid-template-columns: 1fr auto; align-items: center; }
  .ep-preserve-result { padding-left: 0; align-items: flex-end; text-align: right; }
  .ep-mask-option { grid-template-columns: 1fr auto; align-items: center; }
  .ep-mask-option .ep-action { width: auto; white-space: nowrap; }
  .ep-recovery-card { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .ep-recovery-actions { grid-column: auto; display: flex; }
  .ep-keyboard-hint { display: inline; }
  .ep-modal { align-items: center; padding: 24px; }
  .ep-modal-dialog { width: min(620px, 100%); margin: 0 auto; padding: 18px; border-radius: 24px; box-shadow: 0 24px 72px rgba(15, 23, 42, .24); }
  .ep-confirm-dialog { width: min(460px, 100%); }
  .ep-modal-handle { display: none; }
  .ep-info-grid { grid-template-columns: repeat(2, 1fr); }
  .ep-mobile-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .ep-footer-links { justify-content: flex-end; }
}

@media (min-width: 768px) {
  .ep-header { min-height: 82px; }
  .ep-nav { display: flex; }
  .ep-language { margin-left: 0; }
  .ep-main { width: min(1180px, calc(100% - 40px)); }
  .ep-product { border: 1px solid var(--ep-border); border-radius: 24px; box-shadow: var(--ep-shadow); }
  .ep-upload-copy { padding-top: 68px; }
  .ep-editor { padding: 30px 26px 0; }
  .ep-editor-heading h2 { font-size: 30px; }
  .ep-workspace { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "image report"; gap: 20px; }
  .ep-report details summary { cursor: default; }
  .ep-summary-chevron { display: none; }
  .ep-report details:not([open]) > *:not(summary) { display: block; }
  .ep-sticky-zone { margin-inline: -26px; padding-inline: 18px; }
  .ep-info-section,
  .ep-mobile-section,
  .ep-privacy-section { margin-left: 0; margin-right: 0; }
  .ep-mobile-section { min-height: 400px; padding: 40px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: center; gap: 40px; }
  .ep-mobile-preview { width: 100%; max-width: 340px; margin: 0 0 0 auto; transform: rotate(1.5deg); }
  .ep-privacy-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; padding: 46px; }
  .ep-privacy-section h2 { margin-bottom: 0; }
}

@media (min-width: 1024px) {
  .ep-upload-copy { padding-top: 76px; }
  .ep-editor { padding-inline: 34px; }
  .ep-sticky-zone { margin-inline: -34px; }
}

@media (max-width: 359px) {
  .ep-header,
  .ep-footer { width: calc(100% - 24px); }
  .ep-header { gap: 10px; }
  .ep-brand { font-size: 15px; }
  .ep-brand img { width: 36px; height: 36px; }
  .ep-upload-copy { padding-inline: 14px; }
  .ep-dropzone { width: calc(100% - 24px); }
  .ep-editor { padding-inline: 12px; }
  .ep-tool-dock { width: calc(100% - 8px); }
  .ep-tool-primary { padding-inline: 9px; font-size: 12px; }
  .ep-segmented span { padding-inline: 5px; font-size: 11px; }
  .ep-sticky-zone { margin-inline: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ep-global-drop,
  .ep-global-drop::before,
  .ep-global-drop-card,
  .ep-global-drop-icon,
  .ep-global-drop-status { animation: none; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Protected-share creator and recipient views. */
.ep-share-creator {
  margin: 18px 0 4px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(145deg, #eff6ff, #f8fafc);
}

.ep-share-creator-head { display: flex; align-items: flex-start; gap: 12px; }
.ep-share-creator-icon,
.ep-share-lock {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #dbeafe;
}
.ep-share-creator-icon::before,
.ep-share-lock::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 16px;
  height: 15px;
  border: 3px solid #2563eb;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}
.ep-share-creator-icon::after,
.ep-share-lock::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 7px;
  height: 19px;
  border-radius: 6px;
  background: #2563eb;
}
.ep-share-creator-head h3 { margin: 0; font-size: 18px; }
.ep-share-creator-head p { margin: 3px 0 0; color: var(--ep-muted); font-size: 13px; }
.ep-share-options { margin-top: 16px; display: grid; gap: 14px; }
.ep-share-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ep-share-fieldset legend { margin-bottom: 7px; color: #334155; font-size: 12px; font-weight: 800; }
.ep-share-choice-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ep-share-choice-row label { min-width: 0; cursor: pointer; }
.ep-share-choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.ep-share-choice-row span {
  min-height: 38px;
  padding: 8px 6px;
  border: 1px solid var(--ep-border-strong);
  border-radius: 10px;
  background: white;
  display: grid;
  place-items: center;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}
.ep-share-choice-row input:checked + span { border-color: var(--ep-blue); background: var(--ep-blue); color: white; }
.ep-share-choice-row input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.ep-share-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ep-share-toggle input { width: 18px; height: 18px; accent-color: var(--ep-blue); }
.ep-share-toggle span { font-size: 13px; font-weight: 800; }
.ep-share-creator .ep-action { width: 100%; }
.ep-share-result { margin-top: 16px; display: grid; gap: 10px; }
.ep-share-result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ep-share-result input {
  min-width: 0;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--ep-border-strong);
  border-radius: 10px;
  background: white;
  color: #334155;
  font-size: 12px;
}
.ep-share-result .ep-action { width: auto; min-width: 96px; }
.ep-share-result-summary { margin: 0; color: #334155; font-size: 12px; }
.ep-share-revoke { justify-self: start; border: 0; background: transparent; color: var(--ep-red); font-size: 12px; font-weight: 800; cursor: pointer; }
.ep-share-retention-note { margin: 0; color: var(--ep-muted); font-size: 11px; }

.ep-share-page { min-height: 100vh; background: radial-gradient(circle at 50% 0, #1e3a8a 0, #0f172a 45%, #020617 100%); }
.ep-share-header,
.ep-share-footer { width: min(920px, calc(100% - 32px)); margin-inline: auto; color: white; }
.ep-share-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ep-share-page .ep-brand { color: white; text-decoration: none; }
.ep-share-badge { padding: 6px 10px; border: 1px solid rgba(191, 219, 254, .3); border-radius: 999px; background: rgba(37, 99, 235, .22); color: #dbeafe; font-size: 11px; font-weight: 850; }
.ep-share-main { width: min(920px, calc(100% - 32px)); min-height: calc(100vh - 176px); margin: 0 auto; display: grid; align-content: center; }
.ep-share-landing,
.ep-share-viewer {
  width: min(680px, 100%);
  margin: 24px auto;
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 26px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 34px 90px rgba(2, 6, 23, .42);
}
.ep-share-landing { text-align: center; display: grid; justify-items: center; }
.ep-share-lock { width: 62px; height: 62px; border-radius: 19px; }
.ep-share-lock::before { left: 18px; top: 11px; width: 22px; height: 20px; border-width: 4px; border-bottom: 0; }
.ep-share-lock::after { left: 13px; right: 13px; bottom: 10px; height: 27px; border-radius: 8px; }
.ep-share-landing .ep-eyebrow { margin-top: 20px; }
.ep-share-landing h1 { max-width: 520px; margin: 5px 0 10px; font-size: clamp(30px, 7vw, 46px); line-height: 1.08; letter-spacing: -.045em; }
.ep-share-description { max-width: 510px; margin: 0; color: var(--ep-muted); }
.ep-share-policy { width: 100%; margin: 24px 0 16px; padding: 14px; border-radius: 13px; background: var(--ep-blue-soft); display: grid; gap: 3px; }
.ep-share-policy strong { font-size: 14px; }
.ep-share-policy span { color: #475569; font-size: 12px; }
.ep-share-landing .ep-action { width: min(330px, 100%); }
.ep-share-warning { margin: 10px 0 0; color: var(--ep-muted); font-size: 11px; }
.ep-share-main > .ep-message { width: min(680px, 100%); margin: 0 auto 24px; }
.ep-share-viewer { width: min(820px, 100%); }
.ep-share-view-head { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ep-share-view-head .ep-eyebrow { margin: 0; }
.ep-share-view-head h1 { margin: 2px 0 0; font-size: clamp(25px, 5vw, 36px); }
.ep-share-countdown { flex: 0 0 auto; min-width: 66px; padding: 9px 12px; border-radius: 999px; background: #fee2e2; color: #b91c1c; text-align: center; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ep-share-canvas-shell { position: relative; min-height: 220px; border-radius: 16px; overflow: hidden; background: #0f172a; display: grid; place-items: center; contain: layout paint style; isolation: isolate; transform: translateZ(0); }
.ep-share-canvas-shell canvas { display: block; max-width: 100%; max-height: min(70vh, 760px); width: auto; height: auto; pointer-events: none; contain: strict; transform: translate3d(0, 0, 0); backface-visibility: hidden; will-change: transform; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ep-share-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: #0f172a; color: #e2e8f0; font-size: 13px; }
.ep-share-view-note { margin: 12px 0 0; color: var(--ep-muted); text-align: center; font-size: 11px; }
.ep-share-lab-controls {
  margin-top: 14px;
  padding: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ep-share-lab-controls > div:first-child { display: grid; gap: 2px; }
.ep-share-lab-controls strong { color: #0f172a; font-size: 12px; }
.ep-share-lab-controls span { color: #64748b; font-size: 10px; }
.ep-share-lab-controls [role="group"] { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.ep-share-lab-controls button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  color: #334155;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.ep-share-lab-controls button.is-active { border-color: var(--ep-blue); background: var(--ep-blue); color: white; }
.ep-share-footer { min-height: 70px; padding-bottom: env(safe-area-inset-bottom); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #94a3b8; font-size: 11px; }

@media (max-width: 539px) {
  .ep-share-choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-share-result-row { grid-template-columns: 1fr; }
  .ep-share-result .ep-action { width: 100%; }
  .ep-share-header { min-height: 70px; }
  .ep-share-main { min-height: calc(100vh - 150px); }
  .ep-share-landing,
  .ep-share-viewer { margin-block: 12px; padding: 22px 16px; border-radius: 20px; }
  .ep-share-landing h1 { font-size: 31px; }
  .ep-share-lab-controls { align-items: stretch; flex-direction: column; }
  .ep-share-lab-controls [role="group"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ep-share-lab-controls button { padding-inline: 5px; }
  .ep-share-footer { min-height: 64px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
}
