:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #243b53; background: #e4ebf1; line-height: 1.4; color-scheme: light;
}
[data-theme="dark"] { color: #e6edf3; background: #162532; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; }
.site-header { height: 48px; background: #102a43; color: #fff; }
.header-inner { max-width: 1180px; height: 100%; margin: auto; padding: 0 20px; display: flex; align-items: center; gap: 12px; font-size: .82rem; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: #fff; text-decoration: none; font-size: 1.05rem; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.product-name { opacity: .65; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 32px; margin-left: auto; padding: 0 8px; border: 1px solid #c4d1dc; border-radius: 6px; background: #f5f8fa; color: #243b53; font-size: 1rem; cursor: pointer; transition: all .2s ease; }
.theme-toggle:hover { border-color: #1976a8; background: #e0edf3; }
main { max-width: 1180px; margin: auto; padding: 14px 20px 24px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.eyebrow { font-size: .6rem; letter-spacing: .13em; color: #1976a8; font-weight: 800; margin: 0; }
.hero h1 { font-size: 1.55rem; line-height: 1.05; margin: 1px 0 2px; letter-spacing: -.03em; }
.hero p { font-size: .83rem; color: #486581; margin: 0; }
.availability { font-size: .72rem !important; color: #27815c !important; white-space: nowrap; }
.card { background: #f5f8fa; border: 1px solid #c4d1dc; border-radius: 11px; padding: 16px; box-shadow: 0 5px 16px #102a4312; }
.card-heading { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.card h2 { font-size: 1.05rem; margin: 0; }
.dropzone { border: 1px dashed #87a0b3; border-radius: 8px; min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-align: center; background: #eaf1f5; }
.dropzone:hover, .dropzone:focus-within { border-color: #1976a8; background: #e0edf3; }
.dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.drop-icon { font-size: 1.45rem; color: #1976a8; }
.dropzone strong { font-size: .88rem; }.dropzone em { font-style: normal; font-weight: 400; color: #627d98; font-size: .82rem; }
.dropzone small, .muted, small { color: #627d98; font-size: .72rem; }
.queue { display: grid; gap: 6px; margin: 8px 0; }.file-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 10px; background: #e5edf2; border-radius: 7px; font-size: .82rem; }.file-item div { display: grid; gap: 0; }.file-item button { border: 0; background: none; color: #b42318; cursor: pointer; font-size: .75rem; }
.preserve { display: flex; gap: 9px; align-items: center; background: #e0f0e6; border: 1px solid #9bc9ad; padding: 8px 10px; border-radius: 7px; margin: 12px 0; }.preserve label { display: flex; align-items: baseline; gap: 7px; }.preserve span { font-size: .74rem; color: #486581; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }fieldset { border: 1px solid #c4d1dc; border-radius: 8px; padding: 9px 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }legend { padding: 0 5px; font-size: .74rem; font-weight: 800; color: #486581; }fieldset label { display: grid; gap: 3px; font-weight: 700; font-size: .78rem; }fieldset select, fieldset input[type=number] { width: 100%; padding: 7px; border: 1px solid #a9bac8; border-radius: 6px; background: #f5f8fa; color: #243b53; font: inherit; }fieldset input[type=range] { width: 100%; accent-color: #1976a8; }fieldset output { font-weight: 800; color: #1976a8; font-size: .75rem; }.dimension-fields { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 18px 1fr; align-items: end; gap: 8px; }.dimension-x { color: #627d98; text-align: center; padding-bottom: 8px; }
.options-panel { margin: 10px 0 0; border: 1px solid #c4d1dc; border-radius: 8px; background: #eef4f8; }.options-panel[hidden] { display: none; }.options-panel > summary { cursor: pointer; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #486581; padding: 7px 10px; }.options-body { display: grid; gap: 6px; padding: 0 10px 10px; }.options-body .preserve { margin: 0; }
.actions { display: flex; gap: 8px; margin-top: 12px; }.primary, .secondary { border: 0; border-radius: 6px; padding: 9px 14px; font: inherit; font-weight: 700; cursor: pointer; font-size: .82rem; }.primary { background: #1976a8; color: #fff; }.secondary { background: #d5e0e8; color: #243b53; }.status { margin: 10px 0 0; color: #486581; font-size: .78rem; }.status.busy { color: #1976a8; }.results { display: grid; gap: 5px; margin-top: 8px; }.result-item { display: flex; justify-content: space-between; padding: 8px; border: 1px solid #9bc9ad; border-radius: 7px; color: #176b45; text-decoration: none; background: #edf8f0; font-size: .8rem; }.result-item small { color: #176b45; }.error { color: #b42318; font-size: .8rem; }
.pwa-install-prompt { position: fixed; right: 20px; bottom: 20px; z-index: 10; width: min(24rem, calc(100vw - 40px)); padding: 12px; border: 1px solid #c4d1dc; border-radius: 8px; background: #f5f8fa; box-shadow: 0 .75rem 2rem #0003; }.pwa-install-prompt p { margin: 0 0 8px; font-size: .82rem; }.pwa-install-prompt div { display: flex; flex-wrap: wrap; gap: 8px; }.pwa-install-prompt button { padding: 7px 12px; }
.convert-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }.convert-links a { background: #eaf1f5; border: 1px solid #c4d1dc; border-radius: 999px; padding: 6px 12px; font-size: .76rem; color: #1976a8; text-decoration: none; font-weight: 700; }.convert-links a:hover { background: #e0edf3; border-color: #1976a8; }.convert-links a small { color: #627d98; font-weight: 400; }
.breadcrumb { font-size: .72rem; color: #627d98; margin: 0 0 8px; }.breadcrumb a { color: #1976a8; text-decoration: none; }.breadcrumb a:hover { text-decoration: underline; }
.output-fixed { margin: 0; font-weight: 800; font-size: .95rem; color: #243b53; }
.faq details { border: 1px solid #c4d1dc; border-radius: 8px; padding: 8px 12px; margin: 6px 0; background: #eef4f8; }.faq summary { cursor: pointer; font-weight: 700; font-size: .84rem; }.faq details p { margin: 8px 0 2px; font-size: .82rem; color: #486581; }
.cross-promo { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 12px 0 0; padding: 14px 16px; background: #eef4f8; border: 1px solid #c4d1dc; border-radius: 11px; }.cross-promo p { margin: 0; font-size: .82rem; color: #486581; }.cross-promo strong { color: #243b53; }.cross-promo .cross-cta { flex-shrink: 0; background: #1976a8; color: #fff; text-decoration: none; font-weight: 700; font-size: .8rem; padding: 8px 14px; border-radius: 6px; }.cross-promo .cross-cta:hover { background: #145d86; }
.trust { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 12px 0 0; color: #486581; }.trust div { display: grid; }.trust span { font-size: 1.35rem; font-weight: 800; color: #243b53; }.trust p { font-size: .72rem; margin: 0; }footer { max-width: 1180px; margin: auto; padding: 6px 20px 16px; color: #627d98; display: flex; gap: 13px; flex-wrap: wrap; font-size: .7rem; }footer a { color: inherit; }.release-version { margin-left: auto; }
[data-theme="dark"] .card { background: #213441; border-color: #3c5365; box-shadow: 0 5px 16px #0005; }[data-theme="dark"] .dropzone { background: #1a2d3a; border-color: #587287; }[data-theme="dark"] .file-item { background: #1b2d3a; }[data-theme="dark"] fieldset { border-color: #486276; }[data-theme="dark"] fieldset select, [data-theme="dark"] fieldset input[type=number] { background: #1b2d3a; border-color: #587287; color: #e6edf3; }[data-theme="dark"] .preserve { background: #244536; border-color: #5eaa7a; color: #e6edf3; }[data-theme="dark"] .preserve span, [data-theme="dark"] #width-hint, [data-theme="dark"] #height-hint { color: #c8e3d2; }[data-theme="dark"] .secondary { background: #3a5061; color: #e6edf3; }[data-theme="dark"] .pwa-install-prompt { background: #213441; border-color: #3c5365; color: #e6edf3; }[data-theme="dark"] .convert-links a { background: #1b2d3a; border-color: #587287; color: #7cc0e6; }[data-theme="dark"] .cross-promo { background: #213441; border-color: #3c5365; }[data-theme="dark"] .cross-promo p { color: #b8c7d3; }[data-theme="dark"] .cross-promo strong { color: #e6edf3; }[data-theme="dark"] .trust span, [data-theme="dark"] .hero h1 { color: #e6edf3; }[data-theme="dark"] .hero p, [data-theme="dark"] .status, [data-theme="dark"] .trust { color: #b8c7d3; }[data-theme="dark"] .options-panel { background: #1b2d3a; border-color: #3c5365; }[data-theme="dark"] .options-panel > summary { color: #b8c7d3; }[data-theme="dark"] .options-body fieldset select, [data-theme="dark"] .options-body fieldset input[type=number] { background: #213441; }[data-theme="dark"] .breadcrumb a { color: #7cc0e6; }[data-theme="dark"] .output-fixed { color: #e6edf3; }[data-theme="dark"] .faq details { background: #1b2d3a; border-color: #3c5365; }[data-theme="dark"] .faq details p { color: #b8c7d3; }
@media(max-width:700px) { main { padding: 12px 12px 20px; }.hero { display: block; }.availability { margin-top: 5px !important; white-space: normal; }.card { padding: 12px; }.dropzone { min-height: 72px; flex-wrap: wrap; }.settings-grid { grid-template-columns: 1fr; }fieldset { grid-template-columns: 1fr; }.trust { display: grid; gap: 6px; }.actions { flex-direction: column; }.primary, .secondary { width: 100%; } }
