:root {
  --bg: #f7f8fa; --surface: #fff; --surface-subtle: #fafbfc;
  --text: #0f172a; --secondary: #334155; --muted: #64748b; --subtle: #94a3b8;
  --line: #d1d5db; --line-strong: #d1d5db;
  --primary: #174a78; --primary-dark: #103a61; --soft: #edf3f8;
  --danger: #c2413b; --success: #277a50; --radius: 8px;
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { font-weight: 600; }
[hidden] { display: none !important; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { height: 60px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.brand-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 5px; background: var(--text); color: #fff; font-size: 13px; font-weight: 600; }
.nav nav { display: flex; gap: 28px; color: var(--secondary); font-size: 13px; }
.nav a, footer a { transition: color 140ms ease; }
.nav nav a:hover, footer a:hover { color: var(--text); }
.nav nav a:focus-visible, footer a:focus-visible, .contact-trigger:focus-visible { outline: 2px solid rgba(23,74,120,.25); outline-offset: 4px; border-radius: 3px; }

.home-hero { padding: 82px 0 26px; text-align: left; }
.home-hero h1 { max-width: 680px; margin: 17px 0 20px; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; font-weight: 600; letter-spacing: -.045em; }
.home-hero .lead { max-width: 590px; margin: 0; }
.hero-tag, .eyebrow, .section-heading > p:not(.section-desc) { margin: 0; color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.hero-tag { display: inline-block; padding-bottom: 7px; border-bottom: 1px solid var(--line-strong); }
.lead { color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); column-gap: 64px; align-items: center; padding-top: 70px; padding-bottom: 48px; }
.hero-copy { align-self: center; }
.hero h1 { margin: 12px 0; font-size: clamp(35px, 4vw, 48px); line-height: 1.12; font-weight: 600; letter-spacing: -.04em; }
.hero .lead { margin: 0; font-size: 16px; }
.hero-meta { margin: 20px 0 0; color: var(--subtle); font-size: 12px; }
.hero-meta span { padding-inline: 3px; }

.upload-card { position: relative; width: 100%; min-height: 292px; margin: 0; padding: 11px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--card-shadow); }
.drop-zone { min-height: 268px; padding: 28px; border: 1px dashed #aab5c0; border-radius: 6px; background: var(--surface-subtle); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
.drop-zone:hover, .drop-zone.dragging { background: var(--soft); border-color: var(--primary); }
.drop-zone:focus-within { outline: 2px solid rgba(23,74,120,.22); outline-offset: 2px; }
.upload-icon { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--primary); display: grid; place-items: center; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.drop-zone strong { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.3; }
.drop-zone small { color: var(--subtle); font-size: 12px; }
.upload-button, .button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--primary); border-radius: 6px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
.upload-button:hover, .button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.upload-button:focus-visible, .button:focus-visible { outline: 2px solid rgba(23,74,120,.24); outline-offset: 3px; }
.progress-panel { min-height: 268px; padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.selected-file { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; text-align: left; }
.file-badge { width: 42px; height: 42px; flex: none; border: 1px solid #e6c9c7; border-radius: 6px; background: #fbf2f1; color: #963b36; display: grid; place-items: center; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.file-details { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.file-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.file-details span { color: var(--muted); font-size: 12px; }
.progress-track { width: 100%; height: 5px; overflow: hidden; border-radius: 99px; background: #e5e9ee; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--primary); transition: width 250ms ease; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.upload-error { margin: 10px 4px 0; color: var(--danger); font-size: 13px; text-align: left; }
.turnstile-challenge { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; pointer-events: none; }
#turnstile-widget { pointer-events: auto; }
.trust-row { grid-column: 2; display: flex; align-items: center; justify-content: flex-start; gap: 7px; margin: 12px 0 0; color: var(--subtle); font-size: 12px; }
.trust-row svg { flex: none; }

.content-section { padding-top: 68px; padding-bottom: 68px; }
.tools-section { padding-top: 0; padding-bottom: 72px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 20px; text-align: left; }
.section-heading h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.benefits-section .section-heading h2, .how-it-works .section-heading h2 { font-size: 22px; font-weight: 600; }
.section-desc { margin: 0; color: var(--subtle); font-size: 12px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-card { position: relative; display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "icon name action" "icon desc action" "icon format action"; column-gap: 16px; align-items: start; padding: 33px 23px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); transition: border-color 150ms ease, background-color 150ms ease; }
.tool-card:hover { border-color: #aeb7c1; background: #fcfcfd; }
.tool-card:focus-visible { outline: 2px solid rgba(23,74,120,.22); outline-offset: 3px; }
.tool-icon { grid-area: icon; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-subtle); color: var(--primary); }
.tool-name { grid-area: name; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.tool-desc { grid-area: desc; max-width: 370px; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tool-format { grid-area: format; justify-self: start; margin-top: 13px; color: var(--subtle); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; letter-spacing: .02em; }
.tool-action { grid-area: action; align-self: center; color: var(--primary); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tool-action span { margin-left: 4px; }

.benefits-section, .how-it-works { border-top: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.benefits-grid article, .features article { padding: 0; background: transparent; border: 0; border-radius: 0; }
.benefits-grid article::before { content: ""; display: block; width: 20px; height: 1px; margin-bottom: 17px; background: var(--primary); }
.benefits-grid h3, .features h2 { margin: 0 0 7px; font-size: 14px; font-weight: 600; }
.benefits-grid p, .features p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding-top: 29px; padding-bottom: 62px; border-top: 1px solid var(--line); }
.features article { padding-left: 15px; border-left: 1px solid var(--line-strong); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 14px; }
.steps li > span { color: var(--subtle); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 600; line-height: 1.9; }
.steps h3 { margin: 0 0 5px; font-size: 14px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.faq-section { max-width: 800px; }
.how-it-works + .faq-section { padding-top: 32px; }
.faq-section .section-heading { display: block; }
.faq-section .section-heading > p { margin-bottom: 8px; }
.faq { border-top: 1px solid var(--line); }
.faq details { padding: 17px 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding-right: 32px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: -3px; color: var(--subtle); font-size: 19px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 36px 1px 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.conversion-options { min-height: 268px; padding: 25px 28px; }
.conversion-options fieldset { border: 0; margin: 18px 0 0; padding: 0; }
.conversion-options legend { color: var(--secondary); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: center; cursor: pointer; font-size: 13px; font-weight: 600; }
.segmented input:checked + span { color: var(--primary); border-color: #7c9ab5; background: var(--soft); }
.segmented input:focus-visible + span { outline: 2px solid rgba(23,74,120,.22); }
.option-replace { border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.start-conversion { width: 100%; margin-top: 20px; }

.image-pdf-hero.editing { display: block; padding-top: 48px; }
.image-pdf-hero.editing .hero-copy { display: none; }
.image-pdf-page { color: #1f2328; }
.image-pdf-page h1, .image-pdf-page h2, .image-pdf-page h3, .image-pdf-page summary { color: #1f2328; font-weight: 600; line-height: 1.25; }
.image-pdf-page .lead, .image-pdf-page .steps p, .image-pdf-page .faq p { color: #656d76; font-weight: 400; line-height: 1.5; }
.image-pdf-page .drop-zone strong { color: #1f2328; font-weight: 600; }
.image-pdf-page .drop-zone small { color: #656d76; font-weight: 400; line-height: 1.4; }
.image-pdf-page .hero-meta, .image-pdf-page .image-local-note { color: #8c959f; font-weight: 400; line-height: 1.4; }
.image-pdf-page button { font-weight: 500; }
.image-pdf-app { min-width: 0; }
.image-pdf-hero.editing .image-pdf-app { width: min(1080px, 100%); margin-inline: auto; padding: 0; overflow: hidden; border-color: var(--line); box-shadow: var(--card-shadow); }
.image-upload-icon { font-size: 9px; }
.image-editor { background: #f2f4f7; }
.image-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 26px; border-bottom: 1px solid var(--line); background: #fff; }
.image-editor-head h2 { margin: 4px 0 0; color: #1f2328; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.image-editor-head .editor-count { margin: 6px 0 0; color: #656d76; font-size: 12px; font-weight: 500; line-height: 1.4; }
.image-editor-head .editor-order-hint { margin: 1px 0 0; color: #8c959f; font-size: 11px; font-weight: 400; line-height: 1.4; }
.image-editor-head .button { flex: none; }
.image-pdf-error { margin: 15px 26px 0; }
.image-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; min-height: 340px; }
.pdf-split-layout { display: block; min-height: 0; }
.pdf-split-layout .pdf-settings { border-left: 0; }
.gallery-panel { min-width: 0; padding: 22px 24px 28px; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: #8c959f; font-size: 11px; font-weight: 400; line-height: 1.4; }
.gallery-toolbar span:first-child { color: #1f2328; font-size: 12px; font-weight: 600; line-height: 1.25; }
.image-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 16px; margin: 0; padding: 0; list-style: none; }
.image-row { position: relative; min-width: 0; padding: 7px 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--card-shadow); cursor: grab; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, opacity 130ms ease; }
.image-row:hover { border-color: #aebac6; box-shadow: 0 7px 18px rgba(23,32,46,.09); transform: translateY(-1px); }
.image-row:focus-visible { outline: 2px solid rgba(23,74,120,.28); outline-offset: 3px; }
.image-row.drag-over { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(23,74,120,.13); }
.image-row.is-dragging { opacity: .4; transform: scale(.98); }
.thumbnail-frame { position: relative; height: 160px; overflow: hidden; border-radius: 6px; background: #e8ebef; }
.image-thumbnail { width: 100%; height: 100%; background: #e8ebef; object-fit: contain; }
.drag-handle { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 54px; height: 27px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; background: rgba(17,24,39,.76); color: #fff; font-size: 10px; font-weight: 600; line-height: 1; cursor: grab; user-select: none; backdrop-filter: blur(3px); }
.page-number { position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; background: rgba(17,24,39,.72); color: #fff; font: 600 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; backdrop-filter: blur(3px); }
.image-details { min-width: 0; display: flex; flex-direction: column; padding: 8px 2px 0; }
.image-details strong { overflow: hidden; color: #1f2328; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; line-height: 1.4; }
.image-details span { color: #656d76; font-size: 10px; font-weight: 400; line-height: 1.4; }
.image-actions { display: flex; align-items: center; gap: 6px; }
.mobile-order-actions { display: none; }
.icon-action, .delete-action { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-size: 12px; cursor: pointer; }
.icon-action:hover { color: var(--text); border-color: var(--line-strong); }
.delete-action { position: absolute; z-index: 2; top: 8px; right: 8px; width: 29px; min-height: 29px; padding: 0; border: 0; border-radius: 50%; background: rgba(17,24,39,.76); color: #fff; font-size: 19px; line-height: 1; opacity: 0; transform: scale(.88); transition: opacity 130ms ease, transform 130ms ease, background-color 130ms ease; backdrop-filter: blur(3px); }
.image-row:hover .delete-action, .image-row:focus-within .delete-action { opacity: 1; transform: scale(1); }
.delete-action:hover { background: var(--danger); }
.icon-action:disabled { opacity: .4; cursor: not-allowed; }
.icon-action:focus-visible, .delete-action:focus-visible { outline: 2px solid rgba(23,74,120,.24); outline-offset: 2px; }
.pdf-settings { display: flex; min-width: 0; padding: 24px 20px 20px; border-left: 1px solid var(--line); background: #fff; flex-direction: column; }
.settings-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.settings-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--primary); font-size: 9px; font-weight: 700; }
.pdf-settings h3 { margin: 0; color: #1f2328; font-size: 15px; font-weight: 600; line-height: 1.25; }
.settings-heading p { margin: 1px 0 0; color: #656d76; font-size: 10px; font-weight: 400; line-height: 1.4; }
.setting-groups { display: grid; gap: 11px; }
.setting-groups fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.setting-card { padding: 13px !important; border: 1px solid var(--line) !important; border-radius: 8px; background: var(--surface-subtle); box-shadow: var(--card-shadow); }
.setting-groups legend { float: left; width: 100%; margin-bottom: 8px; color: #1f2328; font-size: 11px; font-weight: 600; line-height: 1.25; }
.setting-groups legend + * { clear: both; }
.setting-card .segmented { gap: 5px; }
.setting-card .segmented span { padding: 6px 4px; color: #656d76; font-size: 11px; font-weight: 500; line-height: 1.4; }
.setting-card .segmented input:checked + span { color: var(--primary); }
.segmented-three { grid-template-columns: repeat(3, 1fr); }
.settings-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; padding: 11px; border-radius: 7px; background: #f2f7f4; color: var(--success); }
.settings-note > span { font-size: 11px; font-weight: 700; }
.settings-note p { margin: 0; color: #656d76; font-size: 10px; font-weight: 400; line-height: 1.4; }
.settings-note strong { display: block; color: #335b47; font-size: 11px; font-weight: 600; line-height: 1.25; }
.generate-area { margin-top: auto; padding-top: 22px; }
.generate-area p { margin: 0 0 8px; color: #656d76; font-size: 11px; font-weight: 400; line-height: 1.4; text-align: center; }
.generate-pdf { display: flex; width: 100%; margin: 0; }
.generate-pdf:disabled { opacity: .65; cursor: wait; }
.image-local-note { grid-column: 2; }
.image-pdf-hero.editing .image-local-note { width: min(1080px, 100%); margin: 12px auto 0; }

.pdf-card-preview { display: grid; place-items: center; background: #f4f5f7; }
.pdf-card-icon { position: relative; display: grid; place-items: center; width: 66px; height: 82px; border: 1px solid #d9b6b3; border-radius: 5px; background: #fff; color: #a33c36; font-size: 12px; font-weight: 700; letter-spacing: .06em; box-shadow: var(--card-shadow); }
.pdf-card-icon::after { content: ""; position: absolute; right: -1px; top: -1px; width: 18px; height: 18px; border-bottom: 1px solid #d9b6b3; border-left: 1px solid #d9b6b3; background: #f8e9e8; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.pdf-file-card .drag-handle { touch-action: none; }
.merge-summary { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); box-shadow: var(--card-shadow); }
.merge-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: var(--surface-subtle); }
.merge-summary span { color: #656d76; font-size: 11px; }
.merge-summary strong { min-width: 0; overflow: hidden; color: #1f2328; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.merge-result { min-height: 390px; padding: 58px 28px; text-align: center; }
.merge-result-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; border: 1px solid #b9d6c5; border-radius: 50%; background: #eef7f1; color: var(--success); font-size: 20px; font-weight: 600; }
.merge-result h2 { margin: 7px 0 0; font-size: 25px; }
.merge-result-file { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 14px 0 25px; color: #656d76; font-size: 12px; }
.merge-result-file strong { color: #1f2328; font-weight: 600; }
.merge-result .button { min-width: 180px; }
.merge-again { display: block; margin: 16px auto 0; border: 0; background: transparent; cursor: pointer; }
.merge-privacy { color: #656d76 !important; }

.task-main { min-height: calc(100vh - 230px); padding: 68px 20px 80px; }
.task-card { width: min(580px, 100%); margin: auto; padding: 38px; text-align: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--card-shadow); }
.task-icon { position: relative; width: 48px; height: 48px; margin: 20px auto 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); }
.task-icon span::before, .task-icon span::after { content: ""; position: absolute; }
.task-icon span::before { inset: 13px; border: 2px solid var(--primary); border-top-color: transparent; border-radius: 50%; }
.task-icon span::after { width: 6px; height: 6px; top: 11px; right: 11px; border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); transform: rotate(20deg); }
.task-icon.completed { background: #f0f7f3; border-color: #cee4d7; }
.task-icon.completed span::before { inset: auto; width: 18px; height: 9px; left: 14px; top: 16px; border: 0; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); border-radius: 0; transform: rotate(-45deg); }
.task-icon.completed span::after { display: none; }
.task-icon.failed { background: #fbf2f1; border-color: #ead1cf; }
.task-icon.failed span::before, .task-icon.failed span::after { width: 20px; height: 2px; left: 13px; top: 22px; border: 0; border-radius: 2px; background: var(--danger); transform: rotate(45deg); }
.task-icon.failed span::after { transform: rotate(-45deg); }
.task-card h1 { margin: 7px 0; font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.task-file { margin: 0; color: var(--muted); word-break: break-all; font-size: 13px; font-weight: 500; }
.task-progress { margin: 30px 0 0; }
.task-message { margin: 24px 0 0; font-size: 13px; }
.task-message.error { color: var(--danger); }
.task-message.success { color: var(--success); }
.task-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.button.secondary { background: #fff; border-color: var(--line-strong); color: var(--text); }
.button.secondary:hover { background: var(--surface-subtle); border-color: #aeb7c1; }
.text-link { color: var(--primary); font-size: 13px; }
.text-link:hover { text-decoration: underline; }
.task-retention { margin: 22px 0 0; color: var(--subtle); font-size: 12px; }

.article { min-height: 70vh; padding: 64px 0 88px; }
.article h1 { margin: 0 0 15px; font-size: 36px; font-weight: 600; letter-spacing: -.04em; }
.article .lead { margin: 0 0 38px; }
.article h2 { margin-top: 36px; font-size: 20px; font-weight: 600; }
.article li, .article p { color: var(--muted); }
footer { padding: 32px 0 25px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); }
.footer-stack { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 18px 40px; }
.footer-summary { grid-row: span 2; }
.footer-brand { color: var(--text); }
.footer-tagline { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.footer-stack nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; }
.friend-links { color: var(--subtle); }
.friend-links span { color: var(--subtle); }
.copyright { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; }
.contact-float { position: fixed; right: 0; top: 50%; z-index: 100; transform: translateY(-50%); }
.contact-trigger { display: flex; width: 48px; min-height: 112px; padding: 13px 10px; border: 1px solid var(--primary); border-right: 0; border-radius: 8px 0 0 8px; background: var(--primary); color: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 8px 24px rgba(23,74,120,.2); cursor: pointer; transition: background-color 140ms ease, box-shadow 140ms ease; }
.contact-trigger:hover, .contact-trigger[aria-expanded="true"] { background: var(--primary-dark); box-shadow: 0 10px 28px rgba(23,74,120,.28); }
.contact-trigger svg { width: 19px; height: 19px; flex: none; }
.contact-trigger span { font-size: 13px; font-weight: 600; letter-spacing: .08em; line-height: 1.15; writing-mode: vertical-rl; }
.contact-popover { position: absolute; right: 60px; top: 50%; width: 260px; padding: 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 14px 40px rgba(23,32,46,.14); text-align: center; transform: translateY(-50%); }
.contact-popover h3 { margin: 12px 0 5px; font-size: 14px; font-weight: 600; }
.contact-popover p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.contact-qr { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 5px; background: #fff; object-fit: contain; }
.contact-close { position: absolute; top: 7px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 5px; background: transparent; color: var(--subtle); font-size: 18px; cursor: pointer; }
.contact-close:hover { background: var(--bg); color: var(--text); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 54px; }
  .hero-copy { max-width: 600px; }
  .upload-card { max-width: 700px; }
  .trust-row { grid-column: 1; }
  .tools-grid { grid-template-columns: 1fr; }
  .image-local-note { grid-column: 1; }
  .image-editor-layout { grid-template-columns: 1fr; }
  .pdf-settings { border-top: 1px solid var(--line); border-left: 0; }
  .setting-groups { grid-template-columns: 1fr 1fr; }
  .generate-area { width: 220px; margin: 18px 0 0 auto; padding-top: 0; }
  .generate-pdf { width: 100%; margin: 0; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 32px, 1080px); }
  .site-header { height: 56px; }
  .nav nav { gap: 18px; }
  .home-hero { padding: 58px 0 22px; }
  .home-hero h1 { font-size: 39px; }
  .lead { font-size: 15px; }
  .hero { padding-top: 45px; padding-bottom: 40px; }
  .hero h1 { font-size: 35px; }
  .hero-meta { line-height: 1.8; }
  .upload-card { min-height: 248px; padding: 8px; }
  .drop-zone, .progress-panel, .conversion-options { min-height: 230px; }
  .drop-zone { padding: 24px 18px; }
  .progress-panel { padding: 28px 18px; }
  .content-section { padding-top: 52px; padding-bottom: 52px; }
  .tools-section { padding-top: 0; }
  .tool-card { grid-template-columns: 40px 1fr; grid-template-areas: "icon name" "icon desc" "icon format" "action action"; }
  .tool-action { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
  .benefits-grid, .features, .steps { grid-template-columns: 1fr; }
  .benefits-grid { gap: 26px; }
  .features, .steps { gap: 24px; }
  .section-heading { align-items: flex-end; }
  .faq-section .section-heading { display: block; }
  .task-main { padding: 48px 16px 62px; }
  .task-card { padding: 34px 20px; }
  .task-actions { flex-direction: column; }
  .task-actions .button { width: 100%; }
  .footer-stack { grid-template-columns: 1fr; }
  .footer-summary { grid-row: auto; }
  .footer-stack nav { justify-content: flex-start; }
  .copyright { grid-column: 1; }
  .contact-trigger { width: 44px; min-height: 104px; padding-inline: 8px; }
  .contact-popover { right: 54px; width: min(260px, calc(100vw - 70px)); }
  .article { padding-top: 48px; }
  .article h1 { font-size: 32px; }
  .image-pdf-hero.editing { padding-top: 28px; }
  .image-pdf-error { margin-inline: 12px; }
  .image-editor-head { align-items: flex-start; padding: 18px 16px; }
  .image-editor-head .button { min-height: 38px; padding-inline: 12px; }
  .gallery-panel { padding: 17px 12px 22px; }
  .gallery-toolbar span:last-child { display: none; }
  .image-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .image-row { padding: 6px; }
  .thumbnail-frame { height: 145px; }
  .drag-handle { display: none; }
  .delete-action { opacity: 1; transform: scale(1); }
  .mobile-order-actions { display: flex; margin-top: 7px; }
  .mobile-order-actions .icon-action { min-height: 32px; flex: 1; padding-inline: 5px; }
  .pdf-settings { padding: 20px 16px; }
  .setting-groups { grid-template-columns: 1fr; gap: 11px; }
  .generate-area { width: 100%; }
  .merge-result { min-height: 340px; padding: 44px 18px; }
}
@media (hover: none) {
  .delete-action { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
.admin-tasks { max-width: 980px; margin: 2rem auto; }
.task-support { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; text-align: left; background: #f8fafc; }
.task-support p { line-height: 1.7; font-size: 14px; }
.task-support input { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; margin-top: 6px; border: 1px solid var(--line); border-radius: 6px; font-family: monospace; }
.admin-search { display: flex; gap: .75rem; align-items: end; margin: 1.5rem 0; }
.admin-search label { display: grid; gap: .35rem; font-weight: 600; }
.admin-search input { min-width: 320px; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: .4rem; }
.admin-task-list { display: grid; gap: 1rem; }
.admin-task { border: 1px solid var(--line); border-radius: .6rem; padding: 1rem; background: #fff; }
.admin-task header { display: flex; justify-content: space-between; gap: 1rem; overflow-wrap: anywhere; }
.admin-task-actions { margin: .9rem 0 0; }
.admin-task dl { display: grid; grid-template-columns: 7rem 1fr; gap: .45rem .75rem; margin: 1rem 0 0; }
.admin-task dt { color: var(--muted); }.admin-task dd { margin: 0; overflow-wrap: anywhere; }
.task-status { border-radius: 999px; padding: .15rem .55rem; font-size: .8rem; background: #e2e8f0; }.task-status.failed { background: #fee2e2; color: #991b1b; }.task-status.completed { background: #dcfce7; color: #166534; }
.admin-error { margin-top: 1rem; }.admin-error summary { cursor: pointer; font-weight: 600; }.admin-error pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 28rem; overflow: auto; padding: .75rem; background: #0f172a; color: #e2e8f0; border-radius: .4rem; font-size: .78rem; }
@media (max-width: 600px) { .admin-search { align-items: stretch; flex-direction: column; }.admin-search input { min-width: 0; width: 100%; }.admin-task dl { grid-template-columns: 1fr; gap: .2rem; }.admin-task dd { margin-bottom: .55rem; } }

/* Infrastructure admin console */
.admin-console { min-height: 100vh; display: flex; background: #f5f7fa; color: #172033; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column; width: 238px; padding: 25px 16px 20px; border-right: 1px solid #e4e8ee; background: #fff; }
.admin-brand { display: inline-flex; align-items: center; gap: 10px; padding: 0 12px 30px; color: #172033; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.admin-sidebar-label { margin: 0 12px 8px; color: #9aa5b5; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.admin-menu { display: grid; gap: 4px; }
.admin-menu a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 7px; color: #667286; font-size: 13px; font-weight: 600; }
.admin-menu a:hover { background: #f5f8fb; color: #174a78; }
.admin-menu a.active { background: #edf3f8; color: #174a78; }
.menu-icon { width: 18px; color: currentColor; font-size: 16px; text-align: center; }
.admin-sidebar-bottom { display: grid; grid-template-columns: 9px 1fr; gap: 3px 8px; align-items: center; margin: auto 8px 0; padding: 13px 11px; border: 1px solid #e7ebf0; border-radius: 7px; color: #627084; font-size: 11px; }
.admin-sidebar-bottom small { grid-column: 2; color: #a3adbb; font-size: 10px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #aab4c0; }
.status-dot.online { background: #2da66d; box-shadow: 0 0 0 3px #e4f5ec; }.status-dot.offline { background: #aab4c0; }.status-dot.disabled { background: #d25a55; }.status-dot.error { background: #d28b28; }
.admin-main { width: calc(100% - 238px); margin-left: 238px; }
.admin-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 116px; padding: 30px clamp(25px, 5vw, 62px) 25px; border-bottom: 1px solid #e4e8ee; background: #fff; }
.admin-breadcrumb { margin: 0 0 8px; color: #94a0b0; font-size: 11px; font-weight: 600; }.admin-topbar h1 { margin: 0; color: #172033; font-size: 27px; letter-spacing: -.035em; }
.admin-view-site { padding: 8px 13px; border: 1px solid #d8dee7; border-radius: 6px; color: #536175; font-size: 12px; font-weight: 600; }.admin-view-site:hover { border-color: #9fb0c2; color: #174a78; }
.admin-content { width: min(1180px, calc(100% - 80px)); margin: 0 auto; padding: 29px 0 70px; }
.admin-alert { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; padding: 13px 16px; border: 1px solid #bfe4ce; border-radius: 8px; background: #f1fbf5; color: #226744; }.admin-alert p { margin: 2px 0 0; font-size: 12px; }.alert-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2c9b65; color: white; font-size: 12px; font-weight: 700; }
.admin-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }.admin-stat-card { min-height: 116px; padding: 18px 19px; border: 1px solid #e1e6ed; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(24,39,58,.03); }.stat-label { display: block; color: #8b97a8; font-size: 11px; font-weight: 600; }.admin-stat-card strong { display: block; margin-top: 10px; color: #1c293a; font-size: 22px; font-weight: 700; letter-spacing: -.025em; text-transform: uppercase; }.admin-stat-card .stat-good { color: #268157; font-size: 18px; text-transform: none; }.stat-meta { display: block; margin-top: 4px; color: #a3adbb; font-size: 11px; }
.admin-panel { margin-bottom: 22px; border: 1px solid #e1e6ed; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(24,39,58,.03); }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 25px 19px; border-bottom: 1px solid #edf0f4; }.panel-kicker { margin: 0 0 4px; color: #426b91; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.panel-heading h2 { margin: 0; color: #1c293a; font-size: 18px; letter-spacing: -.025em; }.panel-heading p:not(.panel-kicker) { margin: 5px 0 0; color: #8591a1; font-size: 12px; }.panel-badge { flex: none; padding: 5px 9px; border: 1px solid #cce8d8; border-radius: 99px; background: #f1fbf5; color: #268157; font-size: 10px; font-weight: 700; }.panel-badge.neutral { border-color: #e0e5eb; background: #f8fafc; color: #768397; }
.admin-form { padding: 0 25px; }.form-section { padding: 22px 0; border-bottom: 1px solid #edf0f4; }.form-section h3 { margin: 0; color: #253348; font-size: 13px; }.form-section > p { margin: 3px 0 14px; color: #929dab; font-size: 11px; }.form-section label { display: grid; gap: 6px; max-width: 560px; color: #536175; font-size: 11px; font-weight: 700; }.form-section input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #d9e0e8; border-radius: 6px; background: #fbfcfd; color: #1e2d41; font-size: 13px; outline: none; }.form-section input:focus { border-color: #7898b5; box-shadow: 0 0 0 3px #edf3f8; background: #fff; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; }.form-grid label { max-width: none; }.small-button { min-height: 34px; margin-top: 12px; padding: 0 12px; font-size: 11px; }.secret-reveal { max-width: 560px; margin: 12px 0 0; padding: 12px; overflow-wrap: anywhere; border: 1px solid #ecd79e; border-radius: 6px; background: #fffaf0; color: #755b1d; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 23px; color: #8b97a8; font-size: 11px; }.form-actions .button { flex: none; min-height: 38px; font-size: 12px; }
.worker-table-wrap { overflow-x: auto; }.worker-table { width: 100%; border-collapse: collapse; min-width: 720px; }.worker-table th { padding: 12px 18px; border-bottom: 1px solid #e9edf2; color: #8d98a7; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; }.worker-table td { padding: 15px 18px; border-bottom: 1px solid #f0f2f5; color: #657286; font-size: 12px; white-space: nowrap; }.worker-table tbody tr:last-child td { border-bottom: 0; }.worker-table tbody tr:hover { background: #fbfcfd; }.worker-name { display: grid; grid-template-columns: 9px 1fr; gap: 2px 8px; align-items: center; min-width: 130px; }.worker-name strong { color: #253348; font-size: 12px; }.worker-name small { grid-column: 2; overflow: hidden; max-width: 145px; color: #a1abb8; font-size: 10px; text-overflow: ellipsis; }.node-status { padding: 4px 8px; border-radius: 99px; background: #f0f2f5; color: #6e7b8e; font-size: 10px; font-weight: 700; text-transform: capitalize; }.node-status.online { background: #e9f7ef; color: #237a4d; }.node-status.disabled { background: #fceceb; color: #a84843; }.node-status.error { background: #fff4df; color: #946d21; }.worker-table code { color: #536b82; font-size: 10px; }.table-action { padding: 5px 9px; border: 1px solid #d9e0e8; border-radius: 5px; background: #fff; color: #627084; font-size: 11px; cursor: pointer; }.table-action:hover { border-color: #9eb0c2; color: #174a78; }
.admin-danger { border-color: #efd8d6; }.admin-danger .panel-heading { border-bottom-color: #f5e6e5; }.danger-kicker { color: #ae514a; }.danger-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #fcedeb; color: #b14c46; font-weight: 700; }.danger-note { margin: 0; padding: 16px 25px 20px; color: #9b6661; font-size: 12px; }
.admin-empty { display: grid; justify-items: center; padding: 45px 20px; color: #8c98a8; text-align: center; }.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 50%; background: #f2f5f8; color: #8090a2; font-size: 22px; }.admin-empty strong { color: #536175; font-size: 13px; }.admin-empty p { margin: 4px 0 0; font-size: 11px; }
@media (max-width: 900px) { .admin-sidebar { position: static; width: 100%; min-height: auto; padding: 15px 18px; border-right: 0; border-bottom: 1px solid #e4e8ee; }.admin-console { display: block; }.admin-brand { padding: 0 0 14px; }.admin-sidebar-label, .admin-sidebar-bottom { display: none; }.admin-menu { display: flex; gap: 5px; }.admin-menu a { min-height: 36px; padding: 0 10px; }.admin-main { width: 100%; margin-left: 0; }.admin-content { width: min(100% - 32px, 720px); }.admin-overview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .admin-topbar { align-items: flex-start; flex-direction: column; min-height: auto; padding: 24px 16px 20px; }.admin-content { width: calc(100% - 24px); padding-top: 18px; }.admin-overview-grid { gap: 8px; }.admin-stat-card { min-height: 100px; padding: 14px; }.admin-stat-card strong { font-size: 18px; }.panel-heading, .admin-form { padding-left: 16px; padding-right: 16px; }.form-grid { grid-template-columns: 1fr; }.form-actions { align-items: stretch; flex-direction: column; }.form-actions .button { width: 100%; }.worker-table th, .worker-table td { padding-left: 12px; padding-right: 12px; } }
.form-section select { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #d9e0e8; border-radius: 6px; background: #fbfcfd; color: #1e2d41; font-size: 13px; outline: none; }
.form-section select:focus { border-color: #7898b5; box-shadow: 0 0 0 3px #edf3f8; background: #fff; }
