/* Shared visual language: neutral surfaces, quiet borders and yellow accents. */
:root {
 --ink:#151515;--ink-soft:#707070;--ink-faint:#707070;--border:#e6e6e6;
 --bg-soft:#f1f1f1;--bg-soft-2:#ececee;--page-bg:#fff;
 --action:#171717;--action-text:#fff;--demo-light:#ececee;--demo-dark:#d9dade;
}
html.dark {
 --ink:#f4f4f4;--ink-soft:#aaa;--ink-faint:#aaa;--border:#343434;
 --bg:#202020;--bg-soft:#292929;--bg-soft-2:#343434;--page-bg:#171717;
 --action:#f4f4f4;--action-text:#171717;--demo-light:#555;--demo-dark:#666;
}
:is(.home-page,.tool-page) { max-width:1200px;margin-inline:auto;border-inline:1px solid var(--border);background:var(--page-bg); }
header.site .brand,footer.site .footer-brand { gap:8px;font-weight:600;line-height:1.1;letter-spacing:-.055em; }
header.site .brand { font-size:22px; }
:is(header.site .brand,footer.site .footer-brand) .brand-mark { display:block;flex:0 0 36px;width:36px;height:36px; }
header.site .brand > span { display:inline; }
:is(.home-page,.tool-page) > section { background:transparent; }
:is(.home-page,.tool-page) > .hero { padding-top:64px; }
:is(.home-page,.tool-page) .hero-title { font-weight:550;letter-spacing:-.055em;line-height:1.08; }
:is(.home-page,.tool-page) .badge { padding:6px 12px;background:var(--bg);border:1px solid var(--border);color:var(--ink-soft);border-radius:7px;box-shadow:0 2px 3px #00000004;font-weight:500; }
:is(.home-page,.tool-page) .badge::before { background:var(--ink); }
:is(.home-page,.tool-page) .home-upload-mascot { display:none; }
:is(.home-page,.tool-page) #tool-card:not(.has-image) .dropzone { background:var(--bg);border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 12px #00000004; }
:is(.home-page,.tool-page) #tool-card:not(.has-image) .dropzone:is(:hover,.is-dragover) { border-color:#b6b6b6;background:var(--bg); }
:is(.home-page,.tool-page) #tool-card .dropzone .cloud-ic { width:28px;height:28px;background:transparent;border:0;border-radius:0;color:var(--ink-soft); }
:is(.home-page,.tool-page) #tool-card .dropzone .cloud-ic svg { width:28px;height:28px;stroke-width:1.5; }
html body :is(.home-page,.tool-page) :is(.download-btn,.cta-green,.batch-save),
:is(.home-page,.tool-page) #tool-card .dz-sub .link,
html body .tool-mobile-actions .download-btn { background:var(--action);color:var(--action-text);border-radius:7px;border-color:var(--action); }
html body :is(.home-page,.tool-page) :is(.download-btn,.cta-green,.batch-save):hover:not(:disabled),
:is(.home-page,.tool-page) #tool-card .dz-sub .link:hover,
html body .tool-mobile-actions .download-btn:hover:not(:disabled) { background:color-mix(in srgb,var(--action),var(--bg) 15%);color:var(--action-text); }
html body :is(.home-page,.tool-page) .batch-results .batch-save { background:var(--action);color:var(--action-text)!important;border-radius:7px; }
html body :is(.home-page,.tool-page) :is(.download-btn,.cta-green):disabled,
html body .tool-mobile-actions .download-btn:disabled { background:var(--bg-soft-2);color:var(--ink-faint);border-color:var(--border); }
html body .tool-mobile-actions button { border-radius:7px; }
/* Shared image viewers keep their controls separate from the image surface. */
:is(.tool-preview-dialog,.batch-preview-dialog) { box-sizing:border-box;width:min(1120px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--border);border-radius:12px;background:var(--bg);color:var(--ink);box-shadow:0 24px 80px -32px #00000070;overflow:hidden; }
:is(.tool-preview-dialog,.batch-preview-dialog)[open] { display:flex;flex-direction:column; }
:is(.tool-preview-dialog,.batch-preview-dialog)::backdrop { background:rgba(15,15,15,.48); }
:is(.tool-preview-header,.batch-preview-header) { flex:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 24px;border-bottom:1px solid var(--border); }
:is(.tool-preview-header,.batch-preview-header) h2 { min-width:0;margin:0;font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere; }
:is(.tool-preview-close,.batch-preview-close) { flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--ink);font-size:24px;line-height:1;cursor:pointer; }
:is(.tool-preview-close,.batch-preview-close):hover { background:var(--bg-soft); }
:is(.tool-preview-dialog,.batch-preview-dialog) .tool-preview-actions { flex:none;justify-content:space-between;gap:16px;margin:0;padding:12px 24px;border-bottom:1px solid var(--border); }
.tool-preview-switch { display:flex;min-width:0;padding:4px;border:1px solid var(--border);border-radius:9px;background:var(--bg-soft-2); }
html body :is(.tool-preview-dialog,.batch-preview-dialog) .tool-preview-switch > button { flex:1 1 auto;min-width:0;min-height:36px;max-width:none;margin:0;padding:8px 14px;border:0;border-radius:5px;background:transparent;color:var(--ink);font:500 14px var(--font);line-height:1.45;white-space:normal;overflow-wrap:anywhere; }
html body :is(.tool-preview-dialog,.batch-preview-dialog) .tool-preview-switch > button[aria-pressed="true"] { background:var(--bg);font-weight:600;box-shadow:0 1px 3px #0000000d; }
html body :is(.tool-preview-dialog,.batch-preview-dialog) .tool-preview-switch > button:disabled { opacity:.45;cursor:default; }
html body :is(.tool-preview-dialog,.batch-preview-dialog) .tool-preview-zoom { min-height:44px;margin:0;padding:10px 14px;border:1px solid var(--border);border-radius:7px;background:var(--bg);color:var(--ink);font:500 14px var(--font);line-height:1.45;white-space:normal; }
html body :is(.tool-preview-dialog,.batch-preview-dialog) .tool-preview-zoom:hover { background:var(--bg-soft); }
html body :is(.tool-preview-dialog,.batch-preview-dialog) .tool-preview-zoom[aria-pressed="true"] { border-color:var(--ink-soft);background:var(--bg-soft-2); }
.batch-preview-info { flex:none;margin:0;padding:10px 24px;font-size:12px;line-height:1.5; }
:is(.tool-preview-viewport,.batch-preview-viewport) { flex:1;display:grid;place-items:center;min-height:0;max-height:calc(100dvh - 220px);padding:24px;border-radius:0;background:var(--bg-soft);overflow:auto; }
:is(.tool-preview-viewport,.batch-preview-viewport) :is(img,canvas) { display:block;max-width:100%;max-height:calc(100dvh - 268px);width:auto;height:auto;margin:auto;background:repeating-conic-gradient(var(--bg) 0% 25%,var(--border) 0% 50%) 50%/16px 16px; }
.batch-preview-viewport img { max-height:calc(100dvh - 312px); }
:is(.tool-preview-viewport,.batch-preview-viewport).is-actual-size { display:block;padding:0; }
:is(.tool-preview-viewport,.batch-preview-viewport).is-actual-size :is(img,canvas) { max-width:none;max-height:none;margin:0; }
@media(max-width:600px) {
 :is(.tool-preview-dialog,.batch-preview-dialog) { width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:10px; }
 :is(.tool-preview-header,.batch-preview-header) { gap:12px;padding:12px 16px; }
 :is(.tool-preview-dialog,.batch-preview-dialog) .tool-preview-actions { display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px 16px; }
 html body :is(.tool-preview-dialog,.batch-preview-dialog) .tool-preview-switch > button { flex:1 1 0;min-height:40px;padding-inline:10px; }
 :is(.tool-preview-viewport,.batch-preview-viewport) { padding:16px;max-height:calc(100dvh - 244px); }
 :is(.tool-preview-viewport,.batch-preview-viewport) :is(img,canvas) { max-height:calc(100dvh - 276px); }
 .batch-preview-viewport img { max-height:calc(100dvh - 316px); }
 .batch-preview-info { padding:8px 16px; }
}
html body :is(.home-page,.tool-page) .cta-green:is([data-i18n="toolBack"],[data-i18n="convBackHome"]) { background:transparent;color:var(--ink-soft); }
html body :is(.home-page,.tool-page) .cta-green:is([data-i18n="toolBack"],[data-i18n="convBackHome"]):hover { background:var(--bg-soft-2);color:var(--ink); }
:is(.home-page,.tool-page) .batch-results .dropzone .link { color:var(--ink);background:transparent; }
.batch-results .dropzone .upload-symbol { display:none; }
.home-trust-row { color:var(--ink-soft);font-size:14px; }
.home-partner-banner { border-radius:10px; }
.tool-page > section:not(.hero):not(.home-partner):not(.tool-guides) { padding-block:64px; }
.tool-page > .home-partner { padding-block:16px 24px; }
.tool-page .section-title { font-weight:550;letter-spacing:-.04em; }
.tool-page :is(.converter-card,.tool-guide-card,.how-step,.format-quality-tip) { border-color:var(--border);border-radius:10px; }
.tool-page :is(.converter-card,.tool-guide-card) { background:var(--bg); }
.tool-page .conv-ic { color:var(--ink-soft);background:transparent; }
/* Full-width data reports stay unframed; only editing settings get a surface. */
.tool-page:not(.metadata-tool-page) .workspace-settings { padding:24px;border:1px solid var(--border);border-radius:12px;background:var(--bg-soft); }
.tool-page .tool-choices label:has(input:checked) > span { background:var(--bg-soft-2);border-color:var(--ink-soft); }
:is(.guide-page,.guide-index) .guide-heading h1 { font-weight:550;letter-spacing:-.045em; }
:is(.guide-page,.guide-index) :is(.guide-card,.guide-toc details,.format-quality-tip,.guide-preferred-source) { border-color:var(--border);border-radius:10px; }
:is(.guide-page,.guide-index) .guide-card { background:var(--bg); }
.guide-index .guide-search-field { border-radius:8px;border-color:var(--border); }
/* A light editorial refresh for the guide library. */
.guide-index.wrap { max-width:1088px; }
.guide-index .guide-heading { margin:20px auto 32px; }
.guide-index .guide-heading .section-eyebrow { display:inline-flex;margin:0;padding:5px 9px;border:1px solid var(--border);border-radius:6px;color:var(--ink-soft);font-size:12px;font-weight:500;line-height:1.4;letter-spacing:normal;text-transform:none; }
.guide-index .guide-heading h1 { margin:14px 0 18px;font-size:clamp(34px,4vw,48px);line-height:1.1; }
.guide-index .guide-lead { max-width:66ch;margin:0 auto;line-height:1.65; }
.guide-index .guide-toolbar { margin-bottom:28px;padding-bottom:20px; }
.guide-index .guide-search-field { background:var(--bg); }
.guide-index .guide-search-field:focus-within { border-color:var(--ink-soft);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink),transparent 94%); }
html body .guide-index #guide-topic-select { padding-inline:12px 28px;border:1px solid var(--border);border-radius:8px;background:var(--bg);font-weight:500; }
.guide-index .guide-card { border-color:var(--border);border-radius:10px; }
.guide-index .guide-card > img { aspect-ratio:2/1; }
.guide-index .guide-card-copy { padding:20px; }
.guide-index .guide-card .guide-category { color:var(--ink-soft);font-size:12px;font-weight:500;line-height:1.5; }
.guide-index .guide-card h2 { margin:10px 0;font-size:20px;font-weight:550;line-height:1.35;letter-spacing:-.025em; }
.guide-index .guide-card p { margin-bottom:20px;font-size:14px;line-height:1.65; }
.guide-index .guide-card .guide-read { font-size:14px;font-weight:600; }
.guide-index .guide-card:is(:hover,:focus-visible) { border-color:var(--ink-soft); }
@media(max-width:760px) {
 .guide-index .guide-heading { margin-block:16px 28px; }
 .guide-index .guide-toolbar { margin-bottom:24px; }
}
/* Missing pages use the shared shell and direct routes back to useful content. */
.not-found-page { min-height:50dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-block:80px;text-align:center; }
.not-found-page h1 { margin:0;font-size:clamp(32px,4vw,48px);font-weight:550;line-height:1.15;letter-spacing:-.045em; }
.not-found-message { max-width:52ch;margin:20px 0 0;color:var(--ink-soft);font-size:16px;line-height:1.7; }
.not-found-actions { display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:28px; }
.not-found-actions a { display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--border);border-radius:7px;background:var(--bg);color:var(--ink);font-size:14px;font-weight:500;line-height:1.5;text-decoration:none; }
.not-found-actions a:hover { background:var(--bg-soft); }
.not-found-actions a.not-found-home { border-color:var(--action);background:var(--action);color:var(--action-text); }
.not-found-actions a.not-found-home:hover { background:color-mix(in srgb,var(--action),var(--bg) 15%); }
.not-found-actions a:focus-visible { outline:2px solid var(--ink);outline-offset:3px; }
@media(max-width:600px) { .not-found-page { padding-block:56px; } }
/* Article polish keeps the existing reading column and contents navigation. */
.guide-page { --guide-text:color-mix(in srgb,var(--ink) 82%,var(--bg)); }
.guide-page .guide-heading > .section-eyebrow { font-size:12px;font-weight:500;letter-spacing:.045em; }
.guide-page .guide-lead { color:var(--guide-text); }
.guide-page .guide-meta { font-size:13px;line-height:1.7; }
.guide-page .guide-meta a { color:var(--ink);text-decoration-color:var(--border);text-underline-offset:3px; }
.guide-page .guide-prose { color:var(--guide-text);font-size:17px;line-height:1.8; }
.guide-page .guide-prose > h2,.guide-page .guide-prose .format-test > h2 { font-size:26px;font-weight:550;letter-spacing:-.025em;line-height:1.35; }
.guide-page .guide-prose > h3 { margin:28px 0 12px;font-size:20px;font-weight:550;letter-spacing:-.02em;line-height:1.4; }
.guide-page .guide-prose strong { color:var(--ink);font-weight:600; }
.guide-page .guide-prose :is(p,li,figcaption,td) a { color:var(--ink);text-decoration-color:color-mix(in srgb,var(--ink) 35%,var(--bg));text-decoration-thickness:1px;text-underline-offset:3px; }
.guide-page .guide-prose :is(p,li,figcaption,td) a:hover { text-decoration-color:var(--ink); }
.guide-page :is(.guide-prose a,.guide-toc a,.guide-card):focus-visible { outline:2px solid var(--ink);outline-offset:4px;border-radius:3px; }
.guide-page .guide-prose :is(ul,ol) { padding-inline-start:26px; }
.guide-page .guide-prose li { padding-inline-start:4px; }
.guide-page .guide-prose li::marker { color:var(--ink-soft);font-weight:500;font-variant-numeric:tabular-nums; }
.guide-page .guide-checklist { margin:18px 0 28px;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--bg); }
.guide-page .guide-checklist-tools { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border);font-size:14px; }
.guide-page .guide-checklist-tools output { font-variant-numeric:tabular-nums;color:var(--ink); }
.guide-page .guide-checklist-tools button { min-height:36px;padding:6px 12px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--ink);font:inherit;cursor:pointer; }
.guide-page .guide-checklist-tools button:hover:enabled { background:var(--bg-soft); }
.guide-page .guide-checklist-tools button:disabled { opacity:.45;cursor:default; }
.guide-page .guide-checklist h3 { margin:0;padding:12px 16px;border-bottom:1px solid var(--border);background:var(--bg-soft);color:var(--ink);font-size:14px;font-weight:600;line-height:1.5; }
.guide-page .guide-checklist ul + h3 { border-top:1px solid var(--border); }
.guide-page .guide-prose .guide-checklist ul { margin:0;padding:0;list-style:none; }
.guide-page .guide-prose .guide-checklist li { margin:0;padding:0; }
.guide-page .guide-checklist li + li { border-top:1px solid var(--border); }
.guide-page .guide-checklist label { display:flex;align-items:flex-start;gap:12px;min-height:48px;padding:14px 16px;font-size:16px;line-height:1.65;cursor:pointer; }
.guide-page .guide-checklist label:hover,.guide-page .guide-checklist label:has(input:checked) { background:var(--bg-soft); }
.guide-page .guide-checklist input[type="checkbox"] { flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:3px 0 0;accent-color:var(--action);cursor:pointer; }
.guide-page .guide-checklist :is(input,button):focus-visible { outline:2px solid var(--ink);outline-offset:3px; }
.guide-page .guide-prose :not(pre) > code { padding:2px 5px;border:1px solid var(--border);border-radius:4px;background:var(--bg-soft);color:var(--ink);font-size:.875em;box-decoration-break:clone;-webkit-box-decoration-break:clone; }
.guide-page .guide-prose .format-quality-tip { flex-direction:row;align-items:flex-start;gap:16px;padding:22px 24px;border:1px solid var(--border);border-radius:10px;background:color-mix(in srgb,var(--bg-soft) 50%,var(--bg)); }
.guide-page .format-quality-tip .format-quality-icon { width:32px;height:32px;border:1px solid var(--border);border-radius:7px;background:var(--bg);color:var(--ink-soft); }
.guide-page .format-quality-icon svg { width:18px;height:18px;stroke-width:1.65; }
.guide-page .format-quality-text { min-width:0; }
.guide-page .format-quality-text :is(h2,h3) { margin:0 0 8px;font-size:16px;font-weight:600;line-height:1.5; }
.guide-page .format-quality-text p { color:var(--guide-text);font-size:15px;line-height:1.75; }
.guide-page .guide-table-wrap { border-radius:8px;background:var(--bg); }
.guide-page .guide-table-wrap table { color:var(--guide-text);font-size:14px;line-height:1.65; }
.guide-page .guide-table-wrap caption { padding:16px 18px;background:var(--bg);font-size:15px;font-weight:600;line-height:1.5; }
.guide-page .guide-table-wrap thead th { background:var(--bg-soft);font-size:13px;font-weight:600; }
.guide-page .guide-table-wrap tbody th { font-weight:500; }
.guide-page .guide-table-wrap pre { background:var(--bg-soft); }
.guide-page .guide-prose > pre { max-width:100%;overflow-x:auto;margin:24px 0;padding:20px;border:1px solid var(--border);border-radius:8px;background:var(--bg-soft);color:var(--ink);font:14px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2; }
.guide-page .guide-prose > pre code { font:inherit; }
.guide-page .guide-cover { border-radius:8px; }
.guide-page .guide-figure > img.guide-cover { border:1px solid var(--border); }
.guide-page .guide-figure figcaption { font-size:13px;line-height:1.7; }
.guide-page :is(.guide-ai-services a,.guide-preferred-link) { border-radius:7px;font-weight:500; }
.guide-page .guide-action { border-color:var(--border);border-radius:10px;background:color-mix(in srgb,var(--bg-soft) 50%,var(--bg)); }
.guide-page .guide-action h2 { font-size:22px;font-weight:550;letter-spacing:-.02em;line-height:1.35; }
.guide-page .guide-action p { color:var(--guide-text);font-size:15px;line-height:1.75; }
.guide-page .guide-action > a { max-width:100%;min-height:44px;align-items:center;font-size:14px;font-weight:500;line-height:1.5;overflow-wrap:anywhere; }
.guide-page .guide-action > a:not(.cta-green) { color:var(--ink);text-underline-offset:4px; }
.guide-page .guide-related .guide-category { font-size:12px;font-weight:500; }
.guide-page .guide-related .guide-card h2 { font-size:20px;font-weight:550;letter-spacing:-.025em;line-height:1.4; }
.guide-page .guide-related .guide-read { font-size:14px;font-weight:600; }
html body .guide-page .guide-action .cta-green { background:var(--action);color:var(--action-text);border-radius:7px; }
html body .guide-page .guide-action .cta-green:hover { background:color-mix(in srgb,var(--action),var(--bg) 15%); }
@media(max-width:600px) {
 .guide-page .guide-prose { font-size:16px; }
 .guide-page .guide-prose > h2,.guide-page .guide-prose .format-test > h2 { font-size:24px; }
 .guide-page .guide-prose .format-quality-tip { gap:12px;padding:18px; }
 .guide-page .format-quality-tip .format-quality-icon { flex-basis:28px;width:28px;height:28px; }
 .guide-page .guide-action { padding:20px; }
}

/* Homepage layout. The compressor itself keeps its existing structure. */
.home-page > section > .wrap { max-width:1088px; }
.home-page > .hero { padding-bottom:32px; }
.home-page > .hero .hero-intro { max-width:900px;margin-bottom:16px; }
.home-page > .hero h1.hero-title { max-width:850px;font-size:clamp(40px,4.6vw,64px);font-weight:550;line-height:1.08;letter-spacing:-.055em;margin:0 auto 22px; }
.home-page:not(:has(.batch-tool.has-image)) > .hero h1.hero-title > span { display:block; }
.home-page .hero-muted { color:#858585; }
.home-page > .hero .hero-desc { max-width:560px;font-size:16px;line-height:1.65; }
.home-page .hero-format { padding:3px 6px;border-radius:4px;background:var(--bg-soft);color:var(--ink);box-shadow:0 1px 3px #0000000d;white-space:nowrap; }
.home-page:has(.batch-tool.has-image) > .hero h1.hero-title { font-size:34px;margin-bottom:0; }
.home-page #tool-card .upload-symbol { flex:none;width:28px;height:28px;margin:0 auto 18px;color:var(--ink-soft);stroke-width:1.5; }
.home-page .home-trust-row { margin-top:16px;font-size:14px;gap:14px 26px; }
.home-page .home-trust-row svg { width:16px;height:16px; }
.home-page > .home-partner { padding:16px 0 24px; }
.home-page .home-partner-banner { max-width:760px; }
html:not(.dark) .home-page .home-partner-banner { background:var(--bg);border-color:var(--border); }
.home-page .home-stats { padding:20px 0 40px; }
.home-stats dl { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:26px 0;margin:0;background:var(--bg);border:1px solid var(--border);border-radius:10px; }
.home-stats dl > div { display:flex;flex-direction:column;align-items:flex-start;padding:0 28px; }
.home-stats dl > div + div { border-left:1px solid var(--border); }
.home-stats dt { order:1;font-size:14px;font-weight:600;margin:8px 0 4px; }
.home-stats dd { order:0;margin:0;font-size:38px;line-height:1;letter-spacing:-.045em;font-weight:500; }
.home-stats .home-stat-help { order:2;margin:0;color:var(--ink-soft);font-size:14px;font-weight:400;letter-spacing:0;line-height:1.6; }
.home-page .home-section { padding:64px 0;border-top:1px solid var(--border);scroll-margin-top:96px; }
.home-split { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:center; }
.home-section-copy { min-width:0; }
.home-eyebrow,.tool-page section:has([data-related-tools]) .section-eyebrow,:is(.home-page,.tool-page) #faq .section-eyebrow { display:inline-flex;align-items:center;gap:6px;width:fit-content;margin:0 0 16px;padding:5px 9px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--ink-soft);font-size:12px;font-weight:500;line-height:1.4;text-transform:none;letter-spacing:normal; }
.home-section-copy h2,.home-centered-heading h2,.tool-page section:has([data-related-tools]) .section-title { margin:0 0 16px;font-size:clamp(30px,3.1vw,42px);font-weight:550;line-height:1.08;letter-spacing:-.045em; }
.home-section-copy > p:not(.home-eyebrow) { margin:0 0 20px;font-size:16px;color:var(--ink-soft);line-height:1.65; }
.home-steps { margin:20px 0 0;padding:0;list-style:none;counter-reset:steps;display:grid;gap:14px; }
.home-steps li { counter-increment:steps;display:flex;align-items:flex-start;gap:12px;font-size:15px;line-height:1.65; }
.home-steps li::before { content:counter(steps);flex:0 0 23px;display:grid;place-items:center;height:23px;border-radius:6px;background:var(--yellow);color:#171717;font-size:11px;font-weight:600; }
.home-steps strong { font-weight:600; }
.home-compression-demo,.home-format-demo { min-width:0;margin:0; }
.home-example-frame { padding:22px;background:var(--bg);border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 12px #00000003; }
.example-file-labels { display:flex;justify-content:space-between;gap:16px;font-size:12px;font-weight:600;margin-bottom:12px; }
.example-file-labels span:last-child { color:var(--ink-soft); }
.example-comparison { display:grid;grid-template-columns:1fr 1fr;gap:2px;background:var(--bg);border-radius:7px;overflow:hidden;height:170px; }
.example-comparison > div:first-child { background:var(--demo-light); }
.example-comparison > div:last-child { background:var(--demo-dark); }
.example-quality { display:flex;align-items:center;gap:12px;font-size:12px;margin-top:12px;color:var(--ink-soft); }
.quality-track { height:5px;flex:1;background:var(--border);border-radius:10px; }
.quality-track > span { display:block;width:72%;height:100%;border-radius:10px;background:var(--ink); }
.home-compression-demo > figcaption { margin:10px 10px 0;font-size:12px;color:var(--ink-soft);line-height:1.5; }
.format-example-header,.format-example-row { display:grid;grid-template-columns:50px minmax(0,1fr) minmax(90px,1fr);gap:12px;align-items:center; }
.format-example-header { margin-bottom:10px;font-size:11px;font-weight:500;text-transform:uppercase;color:var(--ink-soft);overflow-wrap:anywhere; }
.format-example-row { min-height:50px;margin-inline:-8px;padding:10px 8px;border-top:1px solid var(--border);border-radius:6px;color:var(--ink);text-decoration:none;font-size:14px; }
.format-example-row strong { font-weight:600; }
.format-example-row > span:nth-child(2) { color:var(--ink-soft);line-height:1.5;overflow-wrap:anywhere; }
.format-example-row:is(:hover,:focus-visible) { background:var(--bg-soft); }
.format-example-row:focus-visible { outline:2px solid var(--ink);outline-offset:2px; }
.example-bar { display:block;height:5px;background:var(--border);border-radius:4px; }
.example-bar > span { transform-origin:left;display:block;height:100%;border-radius:4px;background:var(--ink); }
.format-example-row:last-of-type .example-bar > span { background:var(--yellow); }
.home-format-demo figcaption { margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--ink-soft); }
.home-text-link { color:var(--ink);font-size:14px;font-weight:600;text-decoration:underline;text-decoration-color:var(--yellow-dark);text-underline-offset:5px; }
.home-centered-heading { text-align:center;margin-bottom:32px; }
.home-centered-heading h2 { max-width:640px;margin-inline:auto;overflow-wrap:anywhere; }
.home-tool-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px; }
.tool-page .home-tool-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.tool-page > .section-soft:has([data-related-tools]) { background:transparent;border-top:1px solid var(--border); }
.tool-page section:has([data-related-tools]) .section-head { max-width:640px;margin:0 auto 32px;text-align:center; }
.tool-page [data-related-tools] .home-tool:focus-visible { outline:3px solid var(--ink);outline-offset:3px; }
.home-tool { display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:130px;padding:22px 18px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--ink);text-decoration:none; }
.home-tool h3 { display:flex;align-items:flex-start;gap:10px;margin:0 0 8px;font-size:16px;font-weight:600;line-height:1.4;letter-spacing:-.025em; }
.home-tool h3 > span { min-width:0;overflow-wrap:anywhere; }
.home-tool-icon { flex:none;width:20px;height:20px;margin-top:1px;stroke-width:1.65;color:var(--ink-soft); }
.home-tool p { margin:0 0 18px;color:var(--ink-soft);font-size:14px;line-height:1.6;overflow-wrap:anywhere; }
.home-tool > span { margin-top:auto;font-size:14px;font-weight:600; }
.home-tool:is(:hover,:focus-visible) { background:var(--bg-soft);border-color:#b6b6b6; }
.home-tool-featured { border-color:var(--action);background:var(--action);color:var(--action-text); }
.home-tool-featured h3 { color:var(--action-text); }
.home-tool-featured p { color:#c7c7c7; }
.home-tool-featured .home-tool-icon { color:inherit;opacity:.85; }
.home-tool-featured:is(:hover,:focus-visible) { background:color-mix(in srgb,var(--action),var(--bg) 15%);border-color:var(--action); }
html.dark .home-tool-featured p { color:#555; }
.home-extra-tools { margin-top:12px;scroll-margin-top:100px; }
.home-tool-group { grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;gap:16px;margin:12px 0 0;padding:16px 0 12px;border-bottom:1px solid var(--border);font-size:16px;font-weight:600;line-height:1.4;letter-spacing:-.02em; }
.home-tool-group > span { color:var(--ink-soft);font-size:13px;font-weight:400; }
.home-all-tools { margin-top:24px;text-align:center; }
.home-all-tools > button { display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:600 14px var(--font);text-decoration:underline;text-decoration-color:#aaa;text-underline-offset:5px;cursor:pointer; }
.home-all-tools > button:hover { background:var(--bg-soft); }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) { border-top:1px solid var(--border);padding:56px 0;background:var(--bg-soft); }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .section-head { margin:0 0 26px;text-align:left; }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .section-title { margin:0;font-size:36px;font-weight:550;line-height:1.15;letter-spacing:-.045em; }
:is(.home-page,.tool-page) .home-guide-grid { gap:18px; }
:is(.home-page,.tool-page) .home-guide-card { overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--bg); }
:is(.home-page,.tool-page) .home-guide-card > img { width:100%;height:132px;object-fit:cover;aspect-ratio:auto;background:var(--bg); }
:is(.home-page,.tool-page) .home-guide-card .home-guide-copy { display:flex;flex:1;flex-direction:column;padding:20px; }
:is(.home-page,.tool-page) .home-guide-copy .guide-category { font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.035em;color:var(--ink-soft); }
:is(.home-page,.tool-page) .home-guide-copy h3 { margin:10px 0 16px;font-size:18px;font-weight:600;line-height:1.25;letter-spacing:-.035em; }
:is(.home-page,.tool-page) .home-guide-copy .guide-read { margin-top:auto;font-size:14px;font-weight:600; }
:is(.home-page,.tool-page) .home-guide-card:is(:hover,:focus-visible) { border-color:#b6b6b6;box-shadow:0 3px 10px #00000004; }
.home-page .home-faq { border-top:1px solid var(--border);padding:56px 0 96px;scroll-margin-top:96px; }
.home-page .home-faq > .wrap { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:start; }
.home-page .home-faq .section-head { position:static;margin:0;text-align:left; }
.home-page .home-faq .section-title { margin:12px 0 14px;font-size:40px;font-weight:550;line-height:1.08;letter-spacing:-.045em; }
.home-page .home-faq .section-desc { font-size:14px;color:var(--ink-soft);line-height:1.65; }
.home-page .home-faq .faq-list { margin:0; }
.home-page .home-faq .faq-item { margin:0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent; }
.home-page .home-faq .faq-item:first-child { border-top:1px solid var(--border); }
.home-page .home-faq .faq-item summary { min-height:54px;padding:16px 0;font-size:14px; }
.home-page .home-faq .faq-item[open] summary { border-bottom:0; }
.home-page .home-faq .faq-answer { padding:0 0 18px; }
.home-page .home-faq .faq-answer p { font-size:14px;line-height:1.65;color:var(--ink-soft); }
@media(min-width:901px) {
 :is(.home-page,.tool-page) #faq .section-head { position:sticky;top:100px;align-self:start; }
}
@media (prefers-reduced-motion:no-preference) {
 .format-example-row { transition:background-color 180ms ease; }
 .home-tool { transition:border-color 180ms ease,background-color 180ms ease; }
 .home-guide-card { transition:border-color 180ms ease,box-shadow 180ms ease; }
 .home-tool > span > span,.home-guide-card .guide-read > span { display:inline-block;transition:transform 180ms ease-out; }
 .home-tool:is(:hover,:focus-visible) > span > span,.home-guide-card:is(:hover,:focus-visible) .guide-read > span { transform:translateX(3px); }
}
@media(max-width:900px) {
 .home-split { gap:32px; }
 .home-tool-grid,.tool-page .home-tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 :is(.home-page,.tool-page) .home-guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .home-page .home-faq > .wrap { gap:32px; }
 :is(.home-page,.tool-page) .home-guide-card .home-guide-copy { padding:16px; }
 .format-example-header,.format-example-row { grid-template-columns:42px minmax(0,1fr) minmax(60px,1fr);gap:8px; }
 .home-example-frame { padding:16px; }
}
@media(max-width:760px) {
 :is(.home-page,.tool-page) { border-inline:0; }
 :is(.home-page,.tool-page) > .hero { padding-top:36px; }
 .tool-page > section:not(.hero):not(.home-partner):not(.tool-guides) { padding-block:40px; }
 .tool-page:not(.metadata-tool-page) .workspace-settings { padding:16px; }
}
@media(max-width:680px) {
 .home-page > .hero h1.hero-title { font-size:40px; }
 .home-page:has(.batch-tool.has-image) > .hero h1.hero-title { font-size:28px; }
 .home-page > .hero .hero-intro { margin-bottom:12px; }
 .home-page .home-trust-row { gap:10px 16px; }
 .home-page .home-stats { padding:16px 0 24px; }
 .home-stats dl { padding-block:22px; }
 .home-stats dl > div { padding-inline:14px; }
 .home-stats dd { font-size:clamp(24px,7.4vw,29px); }
 .home-stats dt { font-size:12px;line-height:1.5; }
 .home-stats .home-stat-help { display:none; }
 .home-page .home-section { padding-block:40px; }
 .home-split { grid-template-columns:1fr;gap:26px; }
 .home-formats .home-section-copy { grid-row:1; }
 .home-section-copy h2,.home-centered-heading h2,.tool-page section:has([data-related-tools]) .section-title { font-size:34px; }
 .example-comparison { height:160px; }
 .format-example-header,.format-example-row { grid-template-columns:50px minmax(0,1fr) minmax(70px,1fr);gap:10px; }
 .home-example-frame { padding:18px; }
 .home-tool { padding:18px 14px;min-height:142px; }
 .home-tool-grid { gap:10px; }
 .home-extra-tools { margin-top:10px; }
 :is(.home-page,.tool-page) :is(.home-guides,.tool-guides) { padding:40px 0 36px; }
 :is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .section-title { font-size:30px; }
 :is(.home-page,.tool-page) .home-guide-grid { grid-template-columns:1fr;gap:14px; }
 :is(.home-page,.tool-page) .home-guide-card { display:grid;grid-template-columns:110px minmax(0,1fr); }
 :is(.home-page,.tool-page) .home-guide-card > img { height:100%;min-height:150px;object-fit:contain; }
 :is(.home-page,.tool-page) .home-guide-copy h3 { margin:8px 0 12px; }
 .home-page .home-faq { padding:40px 0 64px; }
 .home-page .home-faq > .wrap { grid-template-columns:1fr;gap:28px; }
 .home-page .home-faq .section-title { font-size:34px; }
}

/* Shared navigation and footer refinements. */
header.site > .wrap { max-width:1088px; }
header.site .header-inner { min-height:64px;padding:6px 0;gap:20px; }
header.site :is(.theme-toggle,.menu-toggle) { border:0; }
header.site nav.main-nav > a { min-height:44px;padding:10px 14px;border-radius:8px; }
header.site #recommended-desktop-slot .recommended-menu > summary { min-height:44px;padding:10px 12px;border-radius:8px; }
@media(max-width:520px) { header.site .header-inner { min-height:60px;gap:12px; } }
footer.site { padding-top:48px; }
footer.site > .wrap { max-width:1088px; }
footer.site .footer-inner { gap:32px; }
footer.site .footer-column h2 { margin-bottom:12px; }
footer.site .footer-links { gap:0; }
footer.site .footer-bottom { margin-top:32px;padding-top:20px; }
footer.site .locale-links { gap:4px 8px; }
@media(min-width:901px) {
 footer.site .footer-links :is(a,.cookie-settings-link) { min-height:32px;padding-block:4px; }
}
@media(max-width:520px) { footer.site { padding-top:36px; } }

/* Approved homepage illustrations and tool refinements. */

:is(.home-page,.tool-page) > .home-partner { padding-bottom:48px; }
@media(max-width:760px) { :is(.home-page,.tool-page) > .home-partner { padding-bottom:40px; } }
.home-page .hero-muted { color:var(--ink); }
.home-page .hero-accent { padding:0 .05em;margin-inline:-.05em;border-radius:0;color:inherit;background:linear-gradient(transparent 58%,var(--yellow) 58%,var(--yellow) 94%,transparent 94%);box-decoration-break:clone;-webkit-box-decoration-break:clone; }
:is(.home-page,.tool-page) #faq .faq-item summary { padding-inline-end:36px; }
:is(.home-page,.tool-page) #faq .faq-item summary > span:first-child { flex:1;min-width:0;white-space:normal;overflow-wrap:break-word;line-height:1.5; }
:is(.home-page,.tool-page) #faq .faq-item summary .chevron { right:0; }
html body .tool-page .workspace-settings .tool-choices label > span { background:var(--bg); }
html body .tool-page .workspace-settings :is(.tool-reset,.tool-secondary) { border-radius:7px; }
.tool-page .editor-settings-group > legend { margin-bottom:0; }
.tool-page .workspace-settings .watermark-placement { grid-template-columns:repeat(2,minmax(0,1fr));align-items:end; }
html body .tool-page .workspace-settings .tool-segmented-choices { display:block; }
html body .tool-page .workspace-settings :is(.tool-segments,.markup-effect-options) { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--border);border-radius:10px;background:var(--bg-soft-2); }
html body .tool-page .workspace-settings :is(.tool-segments,.markup-effect-options) label > span { min-height:38px;height:100%;padding:8px 10px;border:0;border-radius:6px;background:transparent;color:var(--ink);overflow-wrap:anywhere;hyphens:auto; }
html body .tool-page .workspace-settings :is(.tool-segments,.markup-effect-options) label:has(input:checked) > span { background:var(--bg);color:var(--ink);font-weight:600;box-shadow:0 1px 3px #0000000d; }
@media(max-width:520px) {
 .tool-page .workspace-settings .watermark-placement { grid-template-columns:minmax(0,1fr); }
 .tool-page .workspace-settings .watermark-placement label:has(#mark-size) { flex-direction:row;align-items:center;justify-content:space-between;gap:12px; }
 .tool-page .workspace-settings .watermark-placement #mark-size { flex:0 0 88px;width:88px; }
}
.favicon-package > summary { padding-inline:0; }
.editor-page .image-preview-item figcaption .tool-secondary { padding-inline:12px; }
.tool-page :is(#crop-change,#choose-another,#favicon-reset):not([hidden]) { display:inline-flex;align-items:center;justify-content:center;gap:8px; }
.tool-page :is(#crop-change,#choose-another,#favicon-reset)::before { content:"";flex:0 0 16px;width:16px;height:16px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat; }
.motion-demo { position:relative; }
.motion-stage { position:relative;isolation:isolate;height:328px;perspective:1100px; }
.motion-floor { position:absolute;left:12%;right:12%;bottom:34px;height:34px;background:radial-gradient(ellipse,#00000019,transparent 68%);filter:blur(10px); }
.motion-card { position:absolute;left:50%;top:50%;width:min(65%,292px);padding:9px;border:1px solid #d9dcd7;border-radius:13px;background:#fff;transform-style:preserve-3d;box-shadow:0 2px 4px #00000005,0 22px 38px -22px #00000050; }
.motion-card-label { display:flex;align-items:center;gap:7px;height:26px;padding:0 3px 7px;color:#666c64;font-size:10px;font-weight:500;letter-spacing:.01em; }
.motion-card-label > svg { width:14px;height:14px; }
.motion-filetype { margin-left:auto;padding:2px 5px;border:1px solid #e7e9e5;border-radius:4px;color:#777d74;font-size:9px; }
.motion-landscape { display:block;width:100%;height:auto;border-radius:6px; }
.motion-card-footer { display:flex;align-items:center;justify-content:space-between;gap:12px;height:35px;padding:8px 3px 0; }
.motion-size { display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;line-height:1.3;color:#343a31; }
.motion-original { color:#777d74;font-size:11px;font-weight:400;text-decoration:line-through;text-decoration-color:#b5bab1; }
.motion-size-arrow { color:#959b90;font-weight:400; }
.motion-saving { color:#5d6656;font-size:11px;font-weight:500; }
.motion-back-footer { height:35px; }
.motion-back { z-index:1;transform:translate(-61%,-53%) rotateX(8deg) rotateY(-12deg) rotateZ(-13deg);opacity:.6; }
.motion-middle { z-index:2;transform:translate(-35%,-53%) rotateX(8deg) rotateY(-8deg) rotateZ(11deg);opacity:.85; }
.motion-front { z-index:3;transform:translate(-50%,-47%) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
.home-page .motion-demo > figcaption { margin:8px 26px 0;text-align:center; }
html.dark .motion-stage { filter:brightness(.92); }
.tool-page > .home-tools { padding:64px 0;border-top:1px solid var(--border);background:transparent;scroll-margin-top:96px; }
.tool-page > .home-tools > .wrap { max-width:1088px; }
.tool-page .home-tools .home-tool-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.converter-group-heading { grid-column:1 / -1;margin-top:12px;padding:16px 0 12px;border-bottom:1px solid var(--border); }
.converter-group-heading .home-tool-group { margin:0;padding:0;border:0; }
.converter-group-heading p { margin:6px 0 0;color:var(--ink-soft);font-size:14px;line-height:1.5; }
#all-tools .home-tool-group > span { display:none; }
.converter-format-grid { grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,auto);grid-auto-flow:column;column-gap:64px; }
.converter-format-row { display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:20px;min-width:0;min-height:76px;padding:14px 0;border-bottom:1px solid color-mix(in srgb,var(--border),transparent 30%); }
.converter-format-row h4 { display:flex;align-items:center;gap:10px;min-width:0;margin:0;font-size:16px;font-weight:600;line-height:1.4;letter-spacing:-.025em; }
.converter-format-row .home-tool-icon { margin-top:0; }
.converter-format-arrow { margin-left:auto;color:var(--ink-soft);font-size:16px;font-weight:400; }
.converter-targets { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:216px; }
.converter-target { display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:9px 14px;border:1px solid var(--border);border-radius:7px;background:var(--bg);color:var(--ink);font-size:14px;font-weight:500;line-height:1.4;text-decoration:none; }
.converter-target:is(:hover,:focus-visible) { background:var(--bg-soft);border-color:var(--ink-soft); }
.converter-target:focus-visible { outline:2px solid var(--ink);outline-offset:3px; }
@media(max-width:900px) { .converter-format-grid { grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-flow:row; } }
@media(max-width:480px) { .converter-format-row { grid-template-columns:94px minmax(0,1fr);gap:12px;min-height:72px; } .converter-format-row h4 { gap:8px;font-size:15px; } .converter-target { padding-inline:8px; } .converter-targets { gap:6px; } }
@media(max-width:360px) { .converter-target { font-size:13px; } }
@media(max-width:900px) { .tool-page .home-tools .home-tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .tool-page > .home-tools { padding-block:40px; } }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) { background:transparent;border-bottom:0; }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-grid { gap:36px; }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-card { display:flex;padding:25px;border:1px solid var(--border);border-radius:10px;background:var(--bg);box-shadow:none; }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-copy { padding:24px 0 0; }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-copy h3 { margin:12px 0 10px;font-size:20px;font-weight:550;line-height:1.35;letter-spacing:-.03em; }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-copy :is(.guide-category,h3) { hyphens:auto;overflow-wrap:anywhere; }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-description { margin:0 0 20px;font-size:14px;line-height:1.65;color:var(--ink-soft); }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-card:is(:hover,:focus-visible) { background:var(--bg);border-color:var(--ink-soft);box-shadow:none;transform:none; }
:is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-card > img { height:156px;min-height:0;margin-top:0;object-fit:contain;background:#fff;border-radius:6px; }
@media(max-width:680px) {
 :is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-grid { gap:28px; }
 :is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-copy { padding-top:20px; }
 :is(.home-page,.tool-page) :is(.home-guides,.tool-guides) .home-guide-card > img { width:100%;height:auto;aspect-ratio:16 / 9; }
}
@media(prefers-reduced-motion:no-preference) {
 .motion-demo.motion-ready:not(.is-in-view) .motion-front { transform:translate(-50%,-47%) translateY(8px) rotateY(-3deg) rotateZ(-2deg); }
 .motion-demo.motion-ready.is-in-view .motion-front { animation:motion-settle 1000ms cubic-bezier(.22,1,.36,1) both; }
 .home-format-demo.motion-ready:not(.is-in-view) .example-bar > span { transform:scaleX(0);transition:none; }
 .home-format-demo.motion-ready.is-in-view .example-bar > span { transform:scaleX(1);transition:transform 900ms cubic-bezier(.22,1,.36,1); }
 .home-format-demo.motion-ready .format-example-row:nth-of-type(1) .example-bar > span { transition-delay:0ms; }
 .home-format-demo.motion-ready .format-example-row:nth-of-type(2) .example-bar > span { transition-delay:90ms; }
 .home-format-demo.motion-ready .format-example-row:nth-of-type(3) .example-bar > span { transition-delay:180ms; }
 .home-format-demo.motion-ready .format-example-row:nth-of-type(4) .example-bar > span { transition-delay:270ms; }
}
@keyframes motion-settle {
 from { transform:translate(-50%,-47%) translateY(8px) rotateY(-3deg) rotateZ(-2deg); }
 100% { transform:translate(-50%,-47%) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
}
@media(max-width:680px) {
 .motion-stage { height:300px; }
 .motion-card { width:68%;padding:8px; }
 .home-page .motion-demo > figcaption { margin-inline:12px; }
}

/* Homepage format examples: decorative previews within localized links. */
.home-page #image-format-guide.home-format-guide { padding-block:64px; }
.home-page #image-format-guide.home-format-guide > .wrap { max-width:none;padding-inline:40px; }
.format-section-heading { display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center;margin-bottom:32px; }
.format-section-heading h2 { margin:0;white-space:pre-line;font-size:34px;font-weight:500;line-height:1.12;letter-spacing:-.04em; }
.format-section-heading > p { max-width:410px;margin:0;padding-left:24px;border-left:1px solid var(--border);color:var(--ink-soft);font-size:15px;line-height:1.6; }
.format-card-grid { display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px; }
.format-option { position:relative;grid-column:span 7;min-width:0;min-height:444px;overflow:hidden;isolation:isolate;border:1px solid #ebebeb;border-radius:10px;background:var(--bg);color:var(--ink);text-decoration:none;transition:border-color .2s; }
.format-option:nth-child(2),.format-option:nth-child(3) { grid-column:span 5; }
.format-option:hover { border-color:#bfc1bc; }
.format-option:focus-visible { outline:2px solid var(--ink);outline-offset:3px; }
.format-option-copy { position:relative;z-index:4;padding:32px 32px 0; }
.format-option h3 { margin:0;padding-right:28px;font-size:18px;line-height:1.35;font-weight:550;letter-spacing:-.02em; }
.format-option-copy p { max-width:350px;margin:8px 0 0;color:var(--ink-soft);font-size:14px;line-height:1.6; }
.format-option-link { position:absolute;right:32px;top:32px;color:#858881;font-size:15px;line-height:1.6; }
.format-scene { position:relative;height:300px;margin-top:20px;pointer-events:none;user-select:none;color:#353932; }
.scene-jpg { min-height:300px; }
.scene-avif { min-height:318px; }
.format-scene::after { content:'';position:absolute;z-index:1;inset:auto 0 0;height:65px;background:linear-gradient(transparent,var(--bg) 95%); }
.ui-window { border:1px solid #eceee9;border-radius:10px;background:#fff;box-shadow:0 2px 3px #00000003,0 20px 35px -20px #00000038; }
.ui-window-title { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 18px;color:#697063;font-size:12px;font-weight:500; }
.ui-window-title > span { color:#9aa192;font-size:10px;font-weight:400; }
.ui-source { display:flex;align-items:center;gap:10px;padding:4px 18px 15px;font-size:12px; }
.ui-source small,.jpg-focus-heading small,.png-focus-top small,.webp-focus small { display:block;margin-top:4px;color:#969b91;font-size:10px;font-weight:400; }
.ui-thumbnail { display:block;flex:0 0 40px;width:40px;overflow:hidden;border:1px solid #e4e7df;border-radius:5px; }
.ui-thumbnail .motion-landscape { display:block;width:100%;height:30px;object-fit:cover;border-radius:0; }
.ui-format-icon { display:grid;place-items:center;flex:0 0 38px;width:38px;height:42px;border:1px solid #e2e5dc;border-radius:6px;background:#fafbf8;color:#616959;font-size:10px;font-weight:600; }
.ui-tick { display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#f1f4ec;color:#77816d;font-size:12px; }
.export-background { position:absolute;top:0;left:50%;width:calc(100% - 64px);max-width:515px;height:278px;opacity:.4;transform:translateX(-50%);mask-image:linear-gradient(#000 68%,transparent); }
.ui-settings-row { display:flex;justify-content:space-between;align-items:center;margin:0 18px;padding:12px 0;border-top:1px solid #e9ece3;color:#92998b;font-size:11px; }
.ui-settings-row > span:last-child { min-width:112px;padding:7px 9px;border:1px solid #e5e9df;border-radius:5px;background:#fff;color:#6c7562; }
.ui-settings-row i { float:right;font-style:normal;color:#a5ad9b; }
.jpg-focus { position:absolute;z-index:2;top:105px;left:50%;width:calc(100% - 112px);max-width:445px;padding:18px 20px 0;transform:translateX(-50%);box-shadow:0 3px 5px #00000005,0 20px 28px -15px #0000003b; }
.jpg-focus-heading { display:flex;align-items:center;gap:11px; }
.jpg-focus-heading strong { font-size:14px;font-weight:550; }
.jpg-focus-heading .ui-tick { margin-left:auto; }
.ui-slider-label { display:flex;justify-content:space-between;align-items:center;margin:19px 0 12px;font-size:11px;color:#79816f; }
.ui-slider-label strong { color:#373c31;font-size:12px;font-weight:500; }
.ui-slider { position:relative;height:4px;border-radius:4px;background:#eceee8; }
.ui-slider > span { display:block;width:80%;height:100%;border-radius:inherit;background:#42493a; }
.ui-slider > i { position:absolute;left:80%;top:50%;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#42493a;box-shadow:0 0 0 1px #d8dcd1;transform:translate(-50%,-50%); }
.jpg-result { display:flex;justify-content:space-between;gap:14px;margin-top:20px;padding:13px 0;border-top:1px solid #edf0e7;font-size:10px;color:#8c9383; }
.jpg-result strong { font-size:13px;font-weight:550;color:#42493b; }
.scene-png { perspective:1100px; }
.png-format-list { position:absolute;z-index:2;top:-10px;left:50%;width:344px;transform:translateX(-36%) rotateX(12deg) rotateY(-12deg) rotateZ(-13deg);transform-origin:center; }
.png-list-heading { display:flex;justify-content:space-between;gap:12px;padding:12px 17px;color:#b8bdb1;font-size:12px; }
.png-list-heading > span { font-size:9px; }
.png-muted-row { display:flex;align-items:center;gap:20px;height:51px;padding:0 18px;color:#bdc3b6;font-size:11px;opacity:.55; }
.png-muted-row b { min-width:40px;font-weight:500; }
.png-muted-row:last-child { filter:blur(1px);opacity:.3; }
.png-focus { position:relative;z-index:2;padding:15px 16px 12px;box-shadow:0 3px 5px #00000004,0 22px 28px -13px #00000030; }
.png-focus-top { display:flex;align-items:center;gap:10px; }
.png-focus-top strong { font-size:16px;font-weight:550; }
.png-focus-top .ui-tick { margin-left:auto; }
.png-preview { display:grid;place-items:center;height:83px;margin-top:12px;border:1px solid #eceee8;border-radius:5px;background:conic-gradient(#f0f2ec 25%,#fff 0 50%,#f0f2ec 0 75%,#fff 0) 0 0 / 14px 14px; }
.png-symbol { display:grid;grid-template-columns:repeat(2,18px);gap:4px;transform:rotate(-8deg); }
.png-symbol i { width:18px;height:18px;border-radius:5px;background:#353b2e; }
.png-symbol i:first-child { border-radius:50%;background:#ffe01b; }
.png-alpha { display:flex;align-items:center;gap:7px;margin-top:12px;color:#818a76;font-size:10px; }
.ui-checkbox { display:grid;place-items:center;width:13px;height:13px;border-radius:3px;background:#f2f4ed;color:#647253;font-size:9px; }
.scene-webp { margin-top:22px; }
.webp-browser { position:absolute;left:52px;top:7px;width:374px;min-height:294px;opacity:.38;transform:rotate(3deg);mask-image:linear-gradient(#000 55%,transparent 96%); }
.ui-browser-bar { display:flex;align-items:center;gap:35px;height:32px;padding-inline:13px;border-bottom:1px solid #edf0e7;color:#a6ad9c;font-size:9px; }
.ui-browser-bar > span:first-child { display:flex;gap:4px; }
.ui-browser-bar i { width:4px;height:4px;border-radius:50%;background:#b4bcaa; }
.webp-page { padding:17px 18px; }
.webp-page-title,.webp-page-line { display:block;width:50%;height:6px;border-radius:4px;background:#b9c2ae; }
.webp-page-line { width:68%;height:3px;margin-top:7px;background:#d7ddce; }
.webp-page > div { display:flex;gap:13px;margin-top:15px; }
.webp-page-photo { display:block;flex:0 0 105px; }
.webp-page-photo .motion-landscape { width:100%;height:65px;object-fit:cover;border-radius:3px; }
.webp-page-lines { display:flex;flex:1;flex-direction:column;gap:7px;padding-top:4px; }
.webp-page-lines i { display:block;width:90%;height:3px;background:#d9ded1; }
.webp-page-lines i:nth-child(3) { width:60%; }
.webp-page-lines b { width:45px;height:12px;margin-top:5px;border-radius:3px;background:#e8ecdf; }
.webp-assets { padding:2px 18px;font-size:10px;color:#b0b9a4; }
.webp-assets > div { display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #e8ede0; }
.webp-focus { position:absolute;z-index:2;top:157px;left:32px;display:flex;align-items:center;gap:11px;width:calc(100% - 55px);min-width:295px;max-width:390px;padding:18px 17px;box-shadow:0 3px 4px #00000003,0 20px 30px -16px #00000030;transform:rotate(-3deg); }
.webp-focus strong { font-size:13px;font-weight:550; }
.webp-result { margin-left:auto;text-align:right;white-space:nowrap; }
.webp-result > strong { font-size:16px; }
.webp-result > small { color:#7b8c67; }
.avif-comparison { position:absolute;top:4px;left:50%;width:calc(100% - 64px);max-width:510px;padding-bottom:18px;opacity:.6;transform:translateX(-50%);mask-image:linear-gradient(#000 80%,transparent); }
.avif-file { display:flex;justify-content:space-between;gap:12px;height:28px;padding:0 18px 10px;color:#929b85;font-size:10px;line-height:18px; }
.format-compare-row { display:grid;grid-template-columns:42px minmax(0,1fr) 46px;gap:16px;align-items:center;padding:13px 18px;border-top:1px solid #edf0e8;font-size:11px;color:#9ba58e; }
.format-compare-row b { font-weight:500; }
.format-compare-row > span { height:3px;border-radius:3px;background:#e7ecdf; }
.format-compare-row i { display:block;height:100%;border-radius:3px;background:#a0ac91; }
.format-compare-row em { font-style:normal;text-align:right; }
.faded-avif { opacity:.3; }
.avif-focus { position:absolute;z-index:2;top:202px;left:50%;width:calc(100% - 105px);max-width:470px;padding:17px 20px 14px;border:1px solid #292d25;border-radius:9px;background:#20231d;color:#fff;box-shadow:0 20px 28px -18px #00000070;transform:translateX(-50%); }
.avif-focus-top { display:flex;align-items:center;gap:13px; }
.avif-focus-top strong { font-size:15px;font-weight:550; }
.avif-focus-top > span { color:#b6beac;font-size:10px; }
.avif-focus-top b { margin-left:auto;font-size:17px;font-weight:500; }
.avif-focus-track { display:block;height:4px;margin-top:16px;border-radius:4px;background:#444a3d; }
.avif-focus-track i { display:block;width:30%;height:100%;border-radius:4px;background:#ffe01b; }
.avif-focus-bottom { display:flex;justify-content:space-between;gap:12px;margin-top:12px;color:#b1bba4;font-size:9px; }
.format-section-footer { display:flex;justify-content:space-between;align-items:baseline;gap:28px;margin-top:22px; }
.format-section-footer p { max-width:650px;margin:0;color:var(--ink-soft);font-size:12px;line-height:1.65; }
.format-section-footer .home-text-link { flex-shrink:0;font-size:13px; }
@media(max-width:1000px) {
 .home-page #image-format-guide.home-format-guide > .wrap { padding-inline:24px; }
 .format-option-copy { padding:27px 26px 0; }
 .format-option-link { top:27px;right:26px; }
 .format-option { min-height:444px; }
 .format-scene { margin-top:14px; }
 .png-format-list { transform:translateX(-42%) scale(.9) rotateX(12deg) rotateY(-12deg) rotateZ(-13deg);transform-origin:top center; }
 .webp-browser { left:24px; }
 .webp-focus { left:18px;min-width:260px;padding-inline:12px;gap:8px; }
 .webp-focus .ui-thumbnail { flex-basis:32px;width:32px; }
 .jpg-focus { width:calc(100% - 60px); }
 .avif-focus { width:calc(100% - 52px); }
}
@media(max-width:760px) {
 .home-page #image-format-guide.home-format-guide { padding-block:40px; }
 .home-page #image-format-guide.home-format-guide > .wrap { padding-inline:16px; }
 .format-section-heading { grid-template-columns:1fr;gap:18px;margin-bottom:26px; }
 .format-section-heading h2 { font-size:30px; }
 .format-section-heading > p { padding-left:0;border-left:0;font-size:14px; }
 .format-card-grid { grid-template-columns:1fr;gap:8px; }
 .format-option,.format-option:nth-child(2),.format-option:nth-child(3) { grid-column:auto;min-height:422px; }
 .format-option.format-avif { min-height:444px; }
 .format-option-copy { padding:26px 24px 0; }
 .format-option-copy p { max-width:340px; }
 .format-option-link { right:24px;top:26px; }
 .format-scene { height:286px;margin-top:18px; }
 .export-background,.avif-comparison { width:calc(100% - 36px); }
 .jpg-focus { top:105px;width:calc(100% - 46px);padding-inline:15px; }
 .jpg-focus-heading strong { font-size:13px; }
 .png-format-list { transform:translateX(-42%) scale(.92) rotateX(12deg) rotateY(-12deg) rotateZ(-13deg); }
 .webp-browser { left:35px; }
 .webp-focus { top:157px;left:20px;width:calc(100% - 40px);min-width:0; }
 .avif-focus { top:207px;width:calc(100% - 38px);padding-inline:16px; }
 .avif-focus-top { gap:10px; }
 .format-section-footer { flex-direction:column;gap:16px; }
}
@media(prefers-reduced-motion:reduce) { .format-option { transition:none; } }

/* FAQ: compact introduction, wider readable questions. */
:is(.home-page,.tool-page) #faq { border-top:1px solid var(--border);padding:64px 0 72px; }
:is(.home-page,.tool-page) #faq > .wrap { display:grid;max-width:1088px;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:72px;align-items:start; }
:is(.home-page,.tool-page) #faq .section-head { max-width:none;margin:0;text-align:left; }
:is(.home-page,.tool-page) #faq .section-title { max-width:270px;margin:0 0 16px;font-size:32px;font-weight:500;line-height:1.15;letter-spacing:-.035em; }
:is(.home-page,.tool-page) #faq .section-desc { max-width:270px;margin:0;font-size:14px;line-height:1.7; }
:is(.home-page,.tool-page) #faq .faq-list { min-width:0;gap:0; }
:is(.home-page,.tool-page) #faq .faq-item summary { min-height:60px;padding:18px 40px 18px 0;font-size:16px;font-weight:500;line-height:1.5; }
:is(.home-page,.tool-page) #faq .faq-item summary:hover { background:transparent; }
:is(.home-page,.tool-page) #faq .faq-item[open] summary { font-weight:600; }
:is(.home-page,.tool-page) #faq .faq-item summary .chevron { right:4px; }
:is(.home-page,.tool-page) #faq .faq-answer { padding:0 40px 22px 0; }
:is(.home-page,.tool-page) #faq .faq-answer p { max-width:64ch;font-size:15px;line-height:1.75; }
@media(min-width:901px) { :is(.home-page,.tool-page) #faq .section-head { position:sticky;top:100px; } }
@media(max-width:900px) {
 :is(.home-page,.tool-page) #faq { padding:40px 0 56px; }
 :is(.home-page,.tool-page) #faq > .wrap { grid-template-columns:minmax(0,1fr);gap:28px; }
 :is(.home-page,.tool-page) #faq .section-head { position:static; }
 :is(.home-page,.tool-page) #faq .section-title { max-width:none;font-size:30px; }
 :is(.home-page,.tool-page) #faq .section-desc { max-width:48ch; }
 :is(.home-page,.tool-page) #faq .faq-item summary { min-height:56px;padding-block:16px;font-size:15px; }
 :is(.home-page,.tool-page) #faq .faq-answer { padding-right:28px; }
}
/* Actual file details are separated from dimensions-only export plans. */
.workspace-output-size > strong, .workspace-output-size > span,
.image-preview-item figcaption > span > strong, .image-preview-item figcaption > span > span { display:block; }
.workspace-output-size > strong { color:var(--ink); margin-bottom:4px; }
.tool-result-change { margin-top:4px; font-variant-numeric:tabular-nums; }
.tool-result-note { margin-top:8px; padding-left:10px; border-left:2px solid var(--border); line-height:1.5; }
.editor-page .tool-card .workspace-grid .image-tool-preview:not(.is-batch) > img { width:auto; height:auto; max-width:100%; max-height:480px; }
@media (max-width:760px) {
 .editor-page .tool-card .workspace-grid .image-tool-preview:not(.is-batch) > img { max-height:280px; }
}

/* Product images: review the batch, open an image only when it needs attention. */
.product-page.editor-page .tool-card .workspace-grid { grid-template-areas:"preview settings" "export export"; }
.product-page.editor-page .workspace-grid > .tool-preview-column { position:static; }
.product-page #product-gallery { scroll-margin-top:84px; }
.product-gallery-nav { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px; }
.product-gallery-nav h2 { margin:0;font-size:16px;font-weight:600;line-height:1.5; }
.product-page #product-gallery:not(.is-grid) .product-gallery-nav { display:none; }
.product-page #product-back { display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:8px;max-width:50%;margin:0;padding:10px 12px;font:inherit;font-size:13px;font-weight:500;line-height:20px;min-height:44px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--ink);text-align:left; }
.product-page #product-back:hover:not(:disabled) { background:var(--bg-soft);border-color:var(--ink-faint); }
.product-page #product-back span { display:inline;margin:0; }
.product-page #product-grid-hint { font-size:13px;line-height:1.6;color:var(--ink-soft);margin:0 0 16px; }
.product-image-heading { display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:14px;scroll-margin-top:180px; }
.product-image-heading > div:first-child { min-width:0;flex:1 1 180px; }
.product-image-heading strong { display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere; }
.product-image-heading span { display:block;margin-top:4px;font-size:12px;color:var(--ink-soft); }
.product-image-heading .product-image-scope { margin:0 0 4px;font-size:11px; }
.product-image-actions { display:flex;align-items:center;flex-wrap:wrap;gap:4px; }
.product-page #product-image-actions { margin-bottom:12px; }
.product-page .product-image-actions button { font-size:13px;padding:8px 12px;min-height:40px; }
.product-page #product-image-actions .tool-preview-toolbar { display:contents; }
.product-page #product-image-actions button.tool-preview-trigger { border:0;border-radius:8px;padding:8px 12px;min-height:40px; }
.product-page #tool-card :is(#product-image-actions,.tool-result-actions,.tool-source-actions) > button,
.product-page #tool-card #product-image-actions .tool-preview-trigger { display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;margin:0;padding:10px 12px;font-family:inherit;font-size:14px;font-weight:500;line-height:20px;border:0;border-radius:8px; }
.product-page #product-add > span[aria-hidden] { display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:18px;line-height:1; }
.product-image-more { position:relative;margin-left:auto; }
.product-image-more > summary { display:flex;align-items:center;justify-content:center;width:44px;height:44px;list-style:none;cursor:pointer;font-size:22px;border-radius:8px; }
.product-image-more > summary::-webkit-details-marker { display:none; }
.product-image-more > summary:hover { background:var(--bg-soft); }
.product-image-more > div { position:absolute;top:100%;right:0;z-index:8;display:flex;flex-direction:column;align-items:stretch;min-width:180px;padding:6px;background:var(--bg);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px #00000012; }
.product-image-more button { text-align:left;white-space:normal; }
.product-page #product-crop-done { background:var(--action);color:var(--action-text);border-radius:8px; }
.product-page .tool-card .workspace-grid #preview { display:flex;align-items:center;justify-content:center;min-height:0;max-height:none;overflow:visible;background:transparent;border-radius:0; }
.product-page .tool-card .workspace-grid #product-canvas { width:auto;height:auto;max-width:100%;max-height:min(560px,calc(100svh - 420px));touch-action:none;cursor:grab;border:1px solid var(--border);border-radius:8px; }
.product-page #product-gallery .product-preview-caption { display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin:20px 0 16px; }
.product-page #product-gallery .product-preview-hint { flex:1 1 300px;margin:0;font-size:12px;line-height:1.6;color:var(--ink-soft); }
.product-transparency-note { display:inline-flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;color:var(--ink-soft); }
.product-transparency-swatch { display:inline-block;flex:0 0 18px;width:18px;height:18px;border:1px solid var(--border);border-radius:3px; }
.product-page :is(#product-canvas,.product-thumbs canvas,.product-transparency-swatch) { background:repeating-conic-gradient(var(--bg) 0% 25%,color-mix(in srgb,var(--ink) 14%,var(--bg)) 0% 50%) 50%/16px 16px; }
.product-page #product-image-warning { font-size:13px;color:var(--ink-soft);margin:12px 0; }
.product-page #product-position-controls { margin:12px 0 0;border-top:1px solid var(--border); }
.product-page #product-crop-controls { margin:0 0 16px; }
.product-page #product-position-controls > p,.product-page #product-crop-controls > p { margin:0 0 12px;font-size:13px;line-height:1.6;color:var(--ink-soft); }
.product-fine-controls > summary { padding:12px 0;font-size:13px;line-height:20px;cursor:pointer;min-height:44px;box-sizing:border-box; }
.product-fine-controls .edit-dimensions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.product-page #product-crop-error { color:var(--ink);margin-top:12px; }
.product-page #product-position-controls output { float:right;color:var(--ink-soft);font-size:12px; }
.product-page .product-thumbs { display:flex;gap:10px;max-width:100%;overflow-x:auto;padding:4px 2px 12px;margin:0 0 14px; }
.product-thumb { flex:0 0 84px;min-width:0;margin:0; }
#product-thumbs .product-thumb-select { position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:68px;padding:6px;border:1px solid var(--border);border-radius:8px;background:var(--bg);cursor:pointer; }
#product-thumbs .product-thumb-select[aria-pressed=true] { border-color:var(--ink);box-shadow:0 0 0 1px var(--ink); }
.product-thumb-select:focus-visible { outline:2px solid var(--ink);outline-offset:3px; }
.product-page .product-thumbs canvas { display:block;width:auto;height:auto;max-width:100%;max-height:100%; }
.product-thumb figcaption { padding-top:8px;font-size:12px;line-height:1.5;overflow-wrap:anywhere; }
.product-thumb figcaption strong { font-weight:500; }
.product-thumb-detail { display:block;color:var(--ink-soft);margin-top:4px; }
.product-thumb-warning { display:inline-block;font-size:11px;line-height:1.5;padding:3px 6px;margin-top:6px;border-radius:4px;background:var(--bg-soft);color:var(--ink); }
.product-thumb.has-warning .product-thumb-select::after { content:'';position:absolute;right:5px;top:5px;width:7px;height:7px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 2px var(--bg); }
.product-image-switcher { min-width:0; }
.product-page #product-gallery:not(.is-grid) .product-image-switcher { position:sticky;top:72px;z-index:4;display:flex;align-items:center;gap:14px;padding:8px 0 12px;margin-bottom:14px;background:var(--bg);border-bottom:1px solid var(--border); }
.product-page #product-gallery:not(.is-grid) .product-thumbs { flex:1;min-width:0;margin:0;padding:4px 2px; }
.product-page #product-gallery:not(.is-grid) .product-thumb figcaption { display:none; }
.product-page #product-gallery:not(.is-grid) :is(.product-thumb-detail,.product-thumb-warning,.product-save) { display:none; }
.product-page .product-save { padding:4px 8px;margin-left:-8px;min-height:44px;font-size:12px; }
.product-page #product-gallery.is-grid :is(#preview,[data-product-image]) { display:none; }
.product-page #product-gallery.is-grid .product-thumbs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;align-items:start; }
.product-page #product-gallery.is-grid .product-thumb-select { height:auto;aspect-ratio:1;min-height:0; }
.product-page #product-gallery.is-cropping :is(#product-image-actions,#product-image-more,.product-preview-caption) { display:none; }
.product-page #product-gallery.is-cropping #product-canvas { cursor:crosshair; }
.product-page #product-canvas:focus-visible { outline:2px solid var(--ink);outline-offset:4px; }
.product-page :is(#product-position-controls,#product-crop-controls) label { display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:400;line-height:1.5; }
.product-page #product-crop-controls input[type=number] { box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--ink);padding:10px 12px;font:inherit; }
.product-thumb figcaption strong { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.product-export-settings { border-top:1px solid var(--border);padding-top:4px; }
.product-export-settings > summary { cursor:pointer;padding:12px 0;font-size:14px;font-weight:500; }
.product-export-settings > summary span { float:right;font-size:12px;font-weight:400;color:var(--ink-soft); }
.product-export-settings > :not(summary) { margin-top:16px !important; }
.product-page #product-export { grid-area:export;position:sticky;bottom:12px;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:var(--bg);border:1px solid var(--border);border-radius:12px;box-shadow:0 6px 24px #0000000a; }
.product-export-info { flex:1;min-width:0; }
.product-export-info > strong { display:block;font-size:13px;line-height:1.6;font-weight:500;overflow-wrap:anywhere; }
.product-page #product-export .workspace-output-size { margin:3px 0 0;font-size:12px; }
.product-page #product-export .workspace-output-size > span { display:inline; }
.product-page #product-export #status { margin:3px 0 0;font-size:12px;line-height:1.5;color:var(--ink-soft); }
.product-page #product-export #status:empty { display:none; }
.product-page #product-export .tool-download-actions { margin:0;flex:0 0 auto;width:auto;max-width:100%; }
.product-page #product-export .tool-flow-control { display:none; }
.product-page #product-export #download { flex:0 0 auto;width:auto;min-width:220px;min-height:48px;margin:0;font-size:14px; }
@media (max-width:760px) {
 .product-page.editor-page .tool-card .workspace-grid { grid-template-areas:"preview" "settings" "export"; }
 .product-page .tool-card .workspace-grid #product-canvas { max-height:360px; }
 .product-page #product-image-actions { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch; }
 .product-page #tool-card #product-image-actions :is(button.tool-secondary,button.tool-preview-trigger) { min-width:0;padding:10px 8px;font-size:13px;white-space:normal; }
 .product-page #product-gallery.is-grid .product-thumbs { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .product-page .workspace-header .tool-result-actions { width:100%;justify-content:flex-start; }
 .product-page #product-export { bottom:8px;flex-direction:column;align-items:stretch;gap:10px;padding:12px; }
 .product-page #product-export #download { width:100%;min-width:0; }
 .product-page #product-export .tool-download-actions { display:block; }
 .product-page .tool-source-actions:has(> button:not([hidden])) { display:flex;flex-wrap:wrap;margin:0 0 20px;background:transparent;border-style:solid; }
 html body .product-page .tool-source-actions > :is(.tool-reset,.tool-secondary) { flex:1;min-width:110px;min-height:44px;padding:10px 8px;font-size:12px; }
 .product-page #tool-card .tool-source-actions > :is(#product-add,#choose-another) { padding:8px;font-size:13px; }
 html body .product-page .tool-source-actions:has(#product-add) > #choose-another { border-top:0;border-left:1px solid var(--border); }
}
