:root {
  --paper: #fbfcfd;
  --surface: #ffffff;
  --ink: #14263e;
  --muted: #5b6b78;
  --accent: #087e90;
  --cyan: #1da8ba;
  --action: #087e90;
  --action-hover: #066575;
  --green: #087e90;
  --line: #dce3e5;
  --surface-muted: #edf4f6;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-card: 0 0 0 1px var(--line), 0 4px 16px rgb(20 38 62 / 3%);
}

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../vendor/manrope/manrope-latin-wght-normal.woff2") format("woff2");
}

/* A quiet workspace: restrained surfaces, readable controls, immediate feedback. */
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 "Manrope Variable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: var(--accent); text-underline-offset: 3px; }
button, a, input, select, summary, .drop-zone { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-header, main, footer { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 800; letter-spacing: -1.2px; color: var(--ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.brand-symbol { display: block; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; }
.brand-tools { color: var(--ink); font-weight: 450; margin-left: 5px; }
nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
nav a { color: var(--muted); text-decoration: none; padding-block: 12px; }
nav .nav-tool { color: var(--ink); }
.local-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.local-label svg { width: 14px; height: 14px; }
.intro { padding: 54px 0 30px; }
h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 650; line-height: 1.18; letter-spacing: -1.65px; margin: 0 0 14px; text-wrap: balance; }
h1 span { color: var(--ink); }
.intro > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.intro-tags { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.intro-tags span { display: inline-flex; align-items: center; gap: 6px; }
.intro-tags svg { width: 14px; height: 14px; color: var(--green); }
.banner { border: 1px solid #dce3e5; border-radius: 8px; padding: 10px 14px; margin-bottom: 20px; font-size: 12px; color: #365565; background: #edf4f6; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-card); }
.editor-panel { padding: 28px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-heading > div { display: flex; align-items: center; gap: 9px; }
.panel-heading h2 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; margin: 0; }
.panel-heading svg { width: 17px; height: 17px; color: var(--muted); }
#photo-count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--surface-muted); border-radius: 5px; padding: 2px 7px; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 226px; padding: 24px 16px; border: 1px dashed #bbced3; border-radius: 9px; background: #fbfcfd; text-align: center; cursor: pointer; }
.drop-zone.dragging { border-color: var(--action, #087e90); background: #e6f3f5; }
.upload-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 7px; border-radius: 10px; background: white; color: var(--muted); box-shadow: 0 0 0 1px rgb(25 35 55 / 8%), 0 2px 3px rgb(25 35 55 / 4%); }
.drop-zone strong { font-size: 14px; font-weight: 550; }
.drop-zone > span:not(.button):not(.upload-icon) { font-size: 12px; font-weight: 400; color: var(--muted); }
.drop-zone small { font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; background: var(--action, #087e90); color: white; box-shadow: inset 0 1px 0 rgb(255 255 255 / 13%), 0 1px 2px rgb(22 38 80 / 12%); font-size: 13px; font-weight: 550; text-decoration: none; transition: transform 140ms var(--ease-out); }
.button svg { width: 16px; height: 16px; }
.drop-zone .button { margin-top: 10px; }
.primary-button { width: 100%; min-height: 44px; }
.secondary-button { width: 100%; background: white; color: var(--ink); border-color: #dfe2e7; box-shadow: 0 1px 2px rgb(25 35 55 / 4%); }
.button:disabled { background: #e6e9ef; color: #687180; border-color: #e1e5ed; box-shadow: none; }
.subtle { color: var(--muted); font-size: 12px; line-height: 1.65; }
#format-help { margin: 12px 0 18px; }
.settings { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 22px; }
.settings .panel-heading { margin-bottom: 15px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
label { font-size: 12px; font-weight: 500; }
select, input[type=text], input:not([type]) { display: block; width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; margin-top: 6px; border: 1px solid #dfe2e7; border-radius: 6px; background: white; color: var(--ink); font-size: 14px; box-shadow: 0 1px 2px rgb(25 35 55 / 3%); }
select { margin-bottom: 15px; }
.filename-input { display: flex; align-items: center; border: 1px solid #dfe2e7; border-radius: 6px; margin-top: 6px; background: white; box-shadow: 0 1px 2px rgb(25 35 55 / 3%); }
.filename-input input { border: 0; margin: 0; background: transparent; box-shadow: none; }
.filename-input > span { padding-inline: 12px; color: var(--muted); font-size: 12px; border-left: 1px solid var(--line); }
.settings > .subtle { margin-bottom: 0; }
.preview-panel { display: flex; flex-direction: column; min-width: 0; padding: 28px; border-left: 1px solid var(--line); border-radius: 0 8px 8px 0; background: #edf4f6; }
.preview-tag { color: var(--muted); font-size: 11px; font-weight: 500; }
.preview-stage { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 6px 16px 24px; min-height: 360px; }
.paper-preview { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 224px; aspect-ratio: 210 / 297; padding: 18px; border-radius: 2px; background: white; box-shadow: 0 0 0 1px rgb(23 34 51 / 5%), 0 2px 4px rgb(23 34 51 / 5%), 0 12px 24px rgb(23 34 51 / 7%); }
.paper-preview.landscape { aspect-ratio: 297 / 210; max-width: 300px; }
.paper-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
#preview-empty { text-align: center; color: var(--muted); }
#preview-empty > svg { display: block; width: 32px; height: 38px; margin: 0 auto 14px; color: #a3aab6; stroke-width: 1; }
#preview-empty strong { font-size: 12px; font-weight: 500; }
#preview-empty p { font-size: 11px; line-height: 1.7; margin: 5px 0 0; }
.export-box { border-top: 1px solid var(--line); padding-top: 20px; }
.access-status { min-height: 20px; margin-bottom: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.export-box > p { margin: 10px 0; text-align: center; }
.trust-line { display: flex; justify-content: center; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 11px; text-align: center; }
.trust-line svg { width: 14px; height: 14px; margin-top: 2px; }
.photo-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow: auto; scrollbar-gutter: stable; }
.photo-list:not(:empty) { padding-block: 4px; }
.photo-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.photo-row[data-selected=true] { border-color: #83bac3; background: #f1f8f9; }
.photo-thumb { display: block; width: 32px; height: 40px; object-fit: contain; }
.photo-info { flex: 1; min-width: 0; }
.photo-name { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 12px; font-weight: 500; }
.photo-meta { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.photo-actions { display: flex; gap: 2px; }
.icon-button { display: grid; place-items: center; min-width: 32px; min-height: 36px; padding: 3px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #4e596b; font-size: 17px; transition: transform 140ms var(--ease-out); }
.icon-button:disabled { color: #a2a9b5; }
.photo-row > .icon-button { box-shadow: 0 0 0 1px rgb(24 32 48 / 6%); background: white; }
.text-button { min-height: 36px; padding: 6px 2px; border: 0; background: none; color: var(--action, #087e90); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.list-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); }
.app-message { min-height: 28px; padding: 10px 0 0; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.app-message.error { color: #a32535; }
.download-result { padding: 24px; border-radius: 10px; border: 1px solid #c6dfd1; background: #f4faf6; margin-top: 16px; text-align: center; }
.download-result strong { display: block; font-weight: 600; }
.download-result .button { margin-top: 12px; }
.download-result p { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.pricing-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: center; gap: 36px 100px; padding: 48px 0; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pricing-section h2, .faq h2 { font-size: 25px; font-weight: 600; letter-spacing: -.8px; line-height: 1.25; margin: 0 0 14px; text-wrap: balance; }
.pricing-section > div > p:not(.eyebrow) { max-width: 330px; color: var(--muted); font-size: 14px; }
.price-card { min-width: 0; padding: 24px; border-radius: 12px; background: white; box-shadow: var(--shadow-card); }
.price-card .preview-tag { font-size: 13px; font-weight: 550; color: var(--ink); }
.price { font-size: 42px; font-weight: 600; letter-spacing: -1.7px; line-height: 1.2; margin: 16px 0 8px; font-variant-numeric: tabular-nums; }
.price > span { font-size: 26px; font-weight: 500; color: var(--muted); }
.price-card > p:not(.price) { font-size: 12px; color: var(--muted); }
.price-card ul { padding: 0; list-style: none; font-size: 12px; margin: 20px 0; }
.price-card li { display: flex; gap: 8px; margin: 8px 0; }
.price-card li::before { content: '✓'; color: var(--green); }
.faq { max-width: 720px; margin: 56px auto; }
.faq h2 { margin-bottom: 22px; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding-block: 16px; list-style: none; font-size: 13px; font-weight: 500; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: 0 0 auto; width: 20px; font-size: 20px; font-weight: 400; color: var(--muted); text-align: center; }
details[open] > summary::after { content: '−'; }
details p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 30px 20px 0; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 64px; padding: 28px 0 36px; border-top: 1px solid var(--line); }
footer .brand { font-size: 20px; }
footer .brand-symbol { width: 32px; height: 32px; }
footer p { width: 100%; order: 3; color: var(--muted); font-size: 12px; margin: 0; }
footer > div { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a:not(.brand) { display: inline-block; padding-block: 8px; font-size: 12px; color: var(--muted); }
dialog { width: min(470px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 0; border-radius: 8px; background: white; box-shadow: 0 0 0 1px rgb(24 32 48 / 10%), 0 24px 80px rgb(12 20 35 / 20%); color: var(--ink); overscroll-behavior: contain; }
dialog::backdrop { background: rgb(18 24 36 / 35%); }
dialog h2 { font-size: 24px; font-weight: 600; letter-spacing: -.7px; margin: 0 0 12px; }
dialog > p { font-size: 13px; color: var(--muted); }
dialog .eyebrow { padding-right: 32px; margin-top: 4px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 6px; background: var(--surface-muted); color: var(--muted); font-size: 22px; line-height: 1; transition: transform 140ms var(--ease-out); }
.check-label { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; font-size: 12px; font-weight: 400; }
.check-label input { width: 17px; height: 17px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--action, #087e90); }
.return-card, .legal-page { max-width: 700px; margin: 64px auto 80px; }
.return-card { max-width: 560px; text-align: center; padding: 32px 16px; }
.return-card .upload-icon { margin: 0 auto 24px; color: var(--green); }
.return-card h1 { font-size: 30px; letter-spacing: -1px; }
.return-card p, .legal-page p { color: var(--muted); font-size: 14px; }
.return-card .primary-button { width: auto; margin-top: 16px; }
.return-card .text-button { display: block; margin: 8px auto; }
.legal-page h1 { font-size: 34px; letter-spacing: -1px; }
.legal-page h2 { font-size: 18px; font-weight: 600; letter-spacing: -.3px; margin-top: 32px; }
.legal-page { overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 10; background: white; padding: 12px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--action, #087e90); outline-offset: 4px; }
.drop-zone:has(+ input:focus-visible), .filename-input:focus-within { outline: 2px solid var(--action, #087e90); outline-offset: 3px; }
.filename-input input:focus-visible { outline: none; }
/* Feedback on presses only; keyboard focus and repeated actions stay immediate. */
.button:not(:disabled):active:not(:focus-visible), .icon-button:not(:disabled):active:not(:focus-visible), .dialog-close:active:not(:focus-visible), .drop-zone:active .button { transform: scale(.97); }
.button:focus-visible, .icon-button:focus-visible, .dialog-close:focus-visible { transition: none; }
@media (hover: hover) and (pointer: fine) {
  nav a:hover, footer a:hover { color: var(--ink); }
  .button:not(:disabled):hover { background: var(--action-hover, #066575); }
  .button.secondary-button:not(:disabled):hover { background: var(--surface-muted); }
  .icon-button:not(:disabled):hover, .dialog-close:hover { background: #e3eef1; color: var(--ink); }
  .drop-zone:hover { background: #edf4f6; border-color: #81aab5; }
  summary:hover { color: var(--action, #087e90); }
}
@media (pointer: coarse) {
  .icon-button, .dialog-close { min-width: 44px; min-height: 44px; }
  .text-button { min-height: 44px; }
  .photo-row { flex-wrap: wrap; }
  .photo-actions { justify-content: flex-end; width: 100%; border-top: 1px solid var(--line); padding-top: 4px; }
}
@media (max-width: 900px) {
  .local-label { display: none; }
  .pricing-section { gap: 36px; }
  .editor-panel, .preview-panel { padding: 22px; }
  .preview-stage { padding-inline: 0; }
  .photo-row { flex-wrap: wrap; }
  .photo-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 650px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  .site-header { min-height: 74px; gap: 16px; }
  .brand { font-size: 21px; }
  .brand-symbol { width: 36px; height: 36px; }
  nav { gap: 16px; font-size: 12px; flex-shrink: 0; }
  .nav-tool { display: none; }
  .intro { padding: 36px 0 26px; }
  h1 { max-width: 340px; letter-spacing: -1px; }
  .intro > p { font-size: 14px; }
  .desktop-only { display: none; }
  .intro-tags { gap: 8px 14px; font-size: 11px; margin-top: 16px; }
  .banner { font-size: 11px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .editor-panel, .preview-panel { padding: 22px 18px; }
  .preview-panel { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
  .preview-stage { min-height: 0; padding: 8px 0 24px; }
  .paper-preview { max-width: 190px; }
  select, input[type=text], input:not([type]) { font-size: 16px; min-height: 44px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .photo-actions .icon-button { min-width: 44px; min-height: 44px; }
  .drop-zone { padding: 24px 12px; }
  .drop-zone small { max-width: 220px; }
  .pricing-section { grid-template-columns: minmax(0, 1fr); margin-top: 30px; padding-block: 32px; gap: 20px; }
  .pricing-section h2, .faq h2 { font-size: 23px; }
  .price-card { padding: 22px; }
  .faq { margin-block: 40px; }
  footer { margin-top: 40px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  dialog { padding: 24px; }
  .return-card, .legal-page { margin-block: 36px; }
  .legal-page h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:active, .icon-button:active, .dialog-close:active, .drop-zone:active .button { transform: none !important; }
}

/* Shared catalogue, kept independent of converter scripts and paid access checks. */
.catalog-intro { padding-block: 64px 42px; }
.catalog-intro > p { max-width: 550px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; }
.catalog-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.catalog-heading > span { color: var(--muted); font-size: 12px; }
.tool-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-card); }
.tool-illustration { display: grid; place-items: center; min-height: 340px; padding: 24px; border-radius: 8px 0 0 8px; background: var(--surface-muted); border-right: 1px solid var(--line); }
.conversion-illustration { display: block; width: 100%; max-width: 390px; height: auto; }
.tool-card-content { padding: 36px; }
.tool-card-content .eyebrow { color: var(--accent); }
.tool-card-content h3 { margin: 0 0 12px; font-size: 27px; line-height: 1.25; letter-spacing: -.8px; font-weight: 600; }
.tool-card-content > p:not(.eyebrow) { max-width: 420px; color: var(--muted); }
.tool-features { list-style: none; padding: 0; margin: 22px 0; font-size: 13px; color: var(--muted); }
.tool-features li { display: flex; gap: 8px; margin-block: 8px; }
.tool-features li::before { content: '✓'; color: var(--green); }
.tool-price-link { display: inline-block; margin-left: 16px; padding-block: 10px; font-size: 12px; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 12px; text-decoration: none; }
.pricing-page { margin-top: 0; }
@media (max-width: 650px) {
  .catalog-intro { padding-block: 36px 30px; }
  .catalog-heading > span { display: none; }
  .tool-card { grid-template-columns: minmax(0, 1fr); }
  .tool-illustration { min-height: 230px; padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
  .tool-card-content { padding: 24px; }
  .tool-card-content h3 { font-size: 25px; }
  .tool-price-link { margin-left: 12px; }
}

/* Native disclosure: usable by keyboard and without JavaScript. */
footer .service-credit { width: 100%; order: 3; display: flex; align-items: center; justify-content: flex-start; gap: 4px; color: var(--muted); font-size: 12px; }
.footer-contact { position: relative; border: 0; }
.footer-contact > summary { display: inline-flex; min-height: 44px; padding: 6px 2px; font-size: 12px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact > summary::after, .footer-contact[open] > summary::after { content: none; }
.footer-contact-panel { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 2; width: max-content; max-width: calc(100vw - 64px); padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-card); }
footer .footer-contact-panel a { color: var(--accent); overflow-wrap: anywhere; }

/* Shared compression tools, keeping file details readable on narrow screens. */
.tool-catalog > .tool-card + .tool-card { margin-top: 24px; }
.selected-file { overflow-wrap: anywhere; color: var(--ink); font-size: 13px; }
.compression-workspace .drop-zone:has(+ input:focus-visible) { outline: 2px solid var(--action, #087e90); outline-offset: 3px; }
.compression-preview { flex: 1; display: grid; place-items: center; min-height: 260px; padding-block: 24px; text-align: center; color: var(--muted); }
.compression-preview img { display: block; max-width: 100%; max-height: 320px; object-fit: contain; border-radius: 3px; }
#compression-empty svg { width: 38px; height: 46px; }
.compression-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.compression-sizes dt { color: var(--muted); font-size: 12px; }
.compression-sizes dd { margin: 5px 0 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.compression-saving { color: var(--accent); font-size: 15px; font-weight: 600; text-align: center; min-height: 24px; }
.compression-warning { border-left: 3px solid var(--accent); padding-left: 12px; font-size: 12px; color: var(--ink); }
@media (max-width: 650px) {
  .compression-preview { min-height: 180px; }
}

/* Optional customer accounts: compact forms and readable purchase history. */
.account-page { max-width: 460px; margin: 56px auto 80px; }
.account-page h1 { font-size: 32px; }
.account-page > p:not(.eyebrow), .account-dashboard > p { color: var(--muted); }
.account-form { margin-top: 24px; }
.account-field { margin-bottom: 18px; }
.account-form input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.account-form .errorlist { margin-block: 6px; padding-left: 18px; color: #a32535; font-size: 12px; }
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; font-size: 13px; }
.account-notice { padding: 14px; border-radius: 6px; background: var(--surface-muted); color: var(--ink); }
.account-dashboard { margin-block: 48px 72px; overflow-wrap: anywhere; }
.account-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.account-heading h1 { margin-bottom: 8px; }
.account-heading form { flex: 0 0 auto; }
.account-claim { background: var(--surface-muted); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 36px; }
.account-dashboard h2 { font-size: 22px; letter-spacing: -.5px; }
.account-order { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.account-order h3 { margin: 0; font-size: 16px; }
.account-order p { margin: 7px 0 0; }
.account-order > div:last-child { font-size: 12px; color: var(--muted); }
@media (max-width: 650px) {
  .account-page, .account-dashboard { margin-block: 36px; }
  .account-heading, .account-order { flex-direction: column; gap: 14px; }
  .account-form input { font-size: 16px; }
  .account-claim { padding: 20px; }
}

.language-switch { position: relative; flex-shrink: 0; font-size: 12px; }
.language-switch summary { cursor: pointer; min-height: 44px; gap: 4px; padding: 8px 4px; font-size: 12px; }
.language-switch summary::after, .language-switch[open] > summary::after { content: "⌄"; width: 10px; font-size: 14px; }
.language-switch form { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 120px; padding: 8px; background: #fff; border: 1px solid #d6dfe5; border-radius: 8px; box-shadow: 0 8px 24px #14263e12; }
.language-switch button { display: block; width: 100%; padding: 10px; border: 0; background: transparent; color: #14263e; text-align: left; cursor: pointer; }
.language-switch button:hover, .language-switch button:focus-visible { background: #edf5f6; }
@media (max-width: 480px) { .site-header { gap: 8px; } .site-header nav { gap: 8px; } .site-header .brand { font-size: 19px; white-space: nowrap; flex-shrink: 0; gap: 7px; } .site-header .brand-symbol { width: 32px; height: 32px; } }

.merge-workspace { max-width: 850px; margin: 0 auto 64px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.merge-list { list-style: none; margin: 20px 0; padding: 0; }
.merge-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.merge-position { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--accent); border-radius: 50%; font-weight: 700; }
.merge-actions { display: flex; gap: 10px; }
.merge-actions button { min-height: 44px; }
.merge-actions .icon-button { min-width: 44px; }
.merge-workspace .primary-button { margin-top: 12px; }
@media (max-width: 650px) { .merge-workspace { padding: 18px; } .merge-row { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; } .merge-actions { grid-column: 2; flex-wrap: wrap; gap: 14px; } }

.merge-actions button:disabled { opacity: .35; cursor: default; text-decoration: none; }
@media (max-width: 650px) { .merge-actions { grid-column: 1 / -1; justify-content: flex-end; gap: 10px; } }

#pdf-preview { margin-block: 16px; }
#pdf-preview-canvas { display: block; max-width: 100%; height: auto; margin-inline: auto; background: white; border: 1px solid var(--line); }
.pdf-preview-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-block: 10px; }
.pdf-preview-controls button { min-height: 44px; }
.account-page input[type="email"], #checkout-email { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; padding: 10px; margin-block: 6px; }

#merge-preview { margin-block: 24px; }
#merge-preview-canvas { display: block; max-width: 100%; height: auto; margin: auto; border: 1px solid var(--line); }

.account-page > p.account-danger{color:#9f2033;border-left:3px solid currentColor;padding-left:1rem}.danger-button{background:#9f2033;color:#fff}.danger-button:hover{background:#7d1727}

.account-consent{display:grid;grid-template-columns:1.25rem minmax(0,1fr);gap:.75rem;align-items:start;margin:1rem 0}.account-form .account-consent input[type=checkbox]{width:1.25rem;height:1.25rem;min-height:0;margin:.2rem 0 0;padding:0;accent-color:#9f2033}.account-consent label{margin:0}

.offer-description, #selected-offer-description{overflow-wrap:anywhere;white-space:normal}

.merge-row .photo-info > .text-button { display: block; width: fit-content; }

/* Empty live regions remain available to scripts without adding visual spacing. */
.app-message:empty, #purchase-message:empty, #selected-offer-description:empty, #preview-summary:empty, #merge-preview-message:empty, #pdf-preview-message:empty { margin: 0; padding: 0; min-height: 0; }
.output-details summary { cursor: pointer; font-size: 12px; color: var(--muted); padding-block: 12px; line-height: 20px; }
