.et-embed-pagebind {
    :root {
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: #171714;
      background: #efebe2;
      font-synthesis: none;
      text-rendering: optimizeLegibility;
      --ink: #171714;
      --muted: #6d6960;
      --paper: #f8f5ee;
      --white: #fffefa;
      --line: #d7d1c5;
      --accent: #cf4d28;
      --accent-dark: #953016;
      --green: #2f6d4c;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; min-width: 320px; min-height: 100vh; background: #efebe2; }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    button:disabled { cursor: not-allowed; }
    a { color: inherit; }
    :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
    .skip-link { position: fixed; left: 14px; top: 14px; z-index: 100; transform: translateY(-160%); padding: 10px 13px; border: 1px solid var(--ink); background: var(--white); font-weight: 800; }
    .skip-link:focus { transform: translateY(0); }

    .app-shell {
      width: min(1480px, calc(100% - 36px));
      margin: 18px auto;
      border: 1px solid var(--ink);
      background: var(--paper);
      box-shadow: 7px 7px 0 var(--ink);
    }

    .topbar {
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 0 24px;
      border-bottom: 1px solid var(--ink);
    }

    .brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.035em; text-decoration: none; }
    .brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: var(--paper); font-size: 18px; }
    .header-actions { display: flex; align-items: center; gap: 10px; }
    .header-link { padding: 8px 2px; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
    .header-link:hover { color: var(--ink); }
    .privacy-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #9eb8a8; background: #eaf4ed; color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }

    .hero { display: grid; grid-template-columns: 1.28fr .72fr; gap: 56px; align-items: end; padding: 52px 42px 40px; border-bottom: 1px solid var(--ink); }
    .eyebrow { margin: 0 0 15px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--accent-dark); }
    h1 { max-width: 900px; margin: 0; font-size: clamp(44px, 6.6vw, 92px); line-height: .92; letter-spacing: -.067em; }
    .hero-copy { max-width: 490px; margin: 0; color: #4f4d47; font-size: 16px; line-height: 1.7; }
    .hero-copy strong { color: var(--ink); }

    .workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
    .main-panel { min-width: 0; padding: 30px; border-right: 1px solid var(--ink); }
    .settings-card { align-self: start; position: sticky; top: 18px; padding: 28px 26px; }
    .settings-title { display: flex; align-items: center; gap: 10px; margin-bottom: 27px; }
    .settings-title h2, .section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }

    .dropzone { min-height: 205px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 28px; border: 1.5px dashed #aaa497; background: #f4f0e7; transition: .18s ease; cursor: pointer; }
    .dropzone:hover { border-color: #716c63; background: #f7f3eb; }
    .dropzone.is-over { background: #fff0e8; border-color: var(--accent); transform: translateY(-2px); }
    .dropzone.compact { min-height: 110px; justify-content: flex-start; }
    .drop-icon { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--white); box-shadow: 3px 3px 0 var(--ink); font-size: 25px; }
    .dropzone strong, .dropzone span { display: block; }
    .dropzone strong { margin-bottom: 6px; font-size: 16px; }
    .dropzone span { color: var(--muted); font-size: 13px; }
    .dropzone .secondary-button { margin-left: auto; }

    .secondary-button, .primary-button, .text-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
    .secondary-button { padding: 11px 14px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font-size: 13px; font-weight: 750; box-shadow: 3px 3px 0 var(--ink); }
    .secondary-button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
    .text-button { padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
    .text-button.danger:hover { color: #a52c1e; }

    .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 15px; }
    .section-heading .eyebrow { margin-bottom: 7px; }
    .image-list { border-top: 1px solid var(--ink); }
    .image-row { min-height: 98px; display: grid; grid-template-columns: 28px 42px 82px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--line); background: transparent; transition: background .15s, opacity .15s; }
    .image-row:hover { background: #f4f0e7; }
    .image-row.dragging { opacity: .42; }
    .drag-handle { color: #938e84; cursor: grab; font-size: 19px; user-select: none; }
    .page-number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--accent-dark); }
    .thumbnail-wrap { width: 76px; height: 68px; display: grid; place-items: center; overflow: hidden; border: 1px solid #c7c1b5; background: #e8e3d8; }
    .thumbnail-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s ease; }
    .image-info { min-width: 0; }
    .image-info strong, .image-info span { display: block; }
    .image-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
    .image-info span { margin-top: 6px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
    .row-actions { display: flex; gap: 4px; }
    .icon-button { width: 34px; height: 34px; border: 1px solid transparent; background: transparent; color: #555249; font-size: 16px; }
    .icon-button:hover { border-color: var(--line); background: var(--white); }
    .icon-button:disabled { opacity: .28; }
    .icon-button.delete:hover { color: #aa271d; border-color: #e4b8b2; background: #fff1ef; }
    .empty-state { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); color: #8a867c; text-align: center; }
    .empty-state .empty-icon { font-size: 30px; }
    .empty-state p { margin: 13px 0 5px; color: #4c4943; font-weight: 750; }
    .empty-state span { font-size: 12px; }

    .field-label { display: block; margin-bottom: 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #57534c; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    .filename-field { display: flex; align-items: center; height: 44px; border: 1px solid var(--line); background: var(--white); }
    .filename-field input { min-width: 0; flex: 1; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; }
    .filename-field span { padding-right: 12px; color: #8a867e; font-size: 12px; }
    .field-group { margin-top: 23px; }
    .field-group small { display: block; margin-top: 8px; color: #7a766e; font-size: 10px; line-height: 1.45; }
    .segmented { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); background: var(--white); }
    .segmented.three { grid-template-columns: repeat(3, 1fr); }
    .segmented button { min-height: 39px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #67635b; font-size: 11px; font-weight: 750; }
    .segmented button:last-child { border-right: 0; }
    .segmented button.active { background: var(--ink); color: var(--paper); }
    .label-row { display: flex; align-items: center; justify-content: space-between; }
    .label-row strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
    input[type='range'] { width: 100%; accent-color: var(--ink); }
    select { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 0; outline: none; background: var(--white); color: var(--ink); font-size: 12px; }
    .summary-box { margin: 25px 0 16px; padding: 14px; border: 1px solid var(--line); background: #f4f0e7; }
    .summary-box div { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; color: #77736a; font-size: 11px; }
    .summary-box strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
    .primary-button { width: 100%; min-height: 50px; padding: 0 18px; border: 0; background: var(--accent); color: white; font-weight: 800; box-shadow: 4px 4px 0 var(--ink); }
    .primary-button:not(:disabled):hover { background: #bc3f20; transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }
    .primary-button:disabled { background: #b6b1a8; color: #ece9e1; box-shadow: none; }
    .message { display: none; margin-top: 14px; padding: 10px 11px; border: 1px solid #d4c9b8; background: #fff8e8; color: #6e5224; font-size: 11px; line-height: 1.5; }
    .message.visible { display: block; }
    .message.error { border-color: #dfb4ac; background: #fff0ed; color: #82291b; }

    .info-section { padding: 52px 42px; border-top: 1px solid var(--ink); }
    .info-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; margin-bottom: 28px; }
    .info-heading h2 { max-width: 680px; margin: 0; font-size: clamp(30px, 4vw, 56px); line-height: .98; letter-spacing: -.05em; }
    .info-heading p { max-width: 620px; margin: 3px 0 0; color: var(--muted); line-height: 1.75; }
    .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
    .feature-card { min-height: 190px; padding: 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
    .feature-card span { display: block; margin-bottom: 34px; color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 750; }
    .feature-card h3 { margin: 0 0 10px; font-size: 17px; }
    .feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
    .faq { margin-top: 36px; border-top: 1px solid var(--ink); }
    .faq details { border-bottom: 1px solid var(--line); }
    .faq summary { padding: 18px 2px; cursor: pointer; font-weight: 800; }
    .faq p { max-width: 820px; margin: -3px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }

    footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 24px; border-top: 1px solid var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #69655d; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
    footer a { color: var(--ink); text-underline-offset: 3px; }

    @media (max-width: 980px) {
      .hero { grid-template-columns: 1fr; gap: 28px; }
      .workspace { grid-template-columns: 1fr; }
      .main-panel { border-right: 0; border-bottom: 1px solid var(--ink); }
      .settings-card { position: static; }
      .info-heading { grid-template-columns: 1fr; }
      .feature-grid { grid-template-columns: 1fr; }
      .feature-card { min-height: 0; }
    }

    @media (max-width: 640px) {
      .app-shell { width: 100%; margin: 0; border-left: 0; border-right: 0; box-shadow: none; }
      .topbar { padding: 0 15px; }
      .privacy-pill, .header-link { display: none; }
      .hero { padding: 40px 20px 32px; }
      h1 { font-size: 50px; }
      .main-panel { padding: 20px; }
      .dropzone, .dropzone.compact { min-height: 220px; flex-direction: column; text-align: center; }
      .dropzone .secondary-button { margin-left: 0; }
      .image-row { grid-template-columns: 20px 30px 64px minmax(0, 1fr); gap: 8px; }
      .thumbnail-wrap { width: 58px; height: 54px; }
      .row-actions { grid-column: 3 / -1; justify-content: flex-end; flex-wrap: wrap; }
      .info-section { padding: 40px 20px; }
      footer { flex-direction: column; }
    }
}
/* scoped root variables */
.et-embed-pagebind {
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: #171714;
      background: #efebe2;
      font-synthesis: none;
      text-rendering: optimizeLegibility;
      --ink: #171714;
      --muted: #6d6960;
      --paper: #f8f5ee;
      --white: #fffefa;
      --line: #d7d1c5;
      --accent: #cf4d28;
      --accent-dark: #953016;
      --green: #2f6d4c;
    }
