@import url("/image-optimiser/styles.css");
.editor { grid-template-columns: minmax(0, 1fr) 340px; }
.upload-icon { color: #a44650; background: #f9ecee; }
.pdf-badge { display: grid; place-items: center; width: 38px; height: 46px; flex-shrink: 0; border: 1px solid #ebc8cc; border-radius: 4px; color: #9c3b47; background: #fff2f3; font-size: 10px; font-weight: 700; }
.file-info .pdf-badge { display: grid; font-size: 10px; color: #9c3b47; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; min-height: 40px; padding: 8px 12px; background: transparent; color: var(--muted); font-size: 12px; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.page-controls { display: flex; align-items: center; gap: 8px; }
.page-controls span { min-width: 64px; text-align: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.page-controls .icon-button { width: 32px; height: 32px; min-height: 32px; }
.preview-stage { height: 560px; padding: 24px; background: #e9edeb; overflow: hidden; }
.preview-stage canvas { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 3px 14px #26332b1c; background: #fff; }
#preview-status { font-size: 13px; color: var(--muted); text-align: center; max-width: 300px; }
.preview-footer { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; padding-top: 12px; }
.settings-panel { border-left: 1px solid var(--line); padding: 24px; min-width: 0; }
.settings-panel h2 { margin: 0 0 16px; }
.presets { display: grid; gap: 8px; }
.presets label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 12px; cursor: pointer; min-height: 66px; }
.presets label:has(input:checked) { border-color: var(--accent); background: #eef5f4; }
.presets strong { display: block; font-size: 13px; font-weight: 600; }
small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 3px; }
input[type="radio"], input[type="checkbox"] { width: 16px; min-height: 16px; height: 16px; flex-shrink: 0; margin: 0; accent-color: var(--accent); }
.recommended { margin-left: auto; color: var(--accent); font-size: 10px; }
.metadata-option { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; margin: 24px 0; cursor: pointer; }
.metadata-option input { margin-top: 2px; }
.filename-label { display: block; font-size: 12px; font-weight: 550; margin: 0 0 7px; }
.full-width { width: 100%; }
#optimise { margin-top: 16px; }
.processing { margin-top: 16px; }
progress { width: 100%; height: 6px; accent-color: var(--accent); }
.processing p { color: var(--muted); font-size: 12px; margin: 8px 0 12px; }
.result { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.result h2 { font-size: 13px; }
.size-track { height: 5px; background: #e2e7e4; margin-top: 16px; overflow: hidden; }
.size-track span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.saving { min-height: 36px; }
.document-note { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 850px) { .editor { grid-template-columns: minmax(0, 1fr) 310px; } .settings-panel { padding: 20px 16px; } .workspace { padding-right: 16px; } .preview-stage { height: 500px; padding: 16px; } }
@media (max-width: 760px) { .editor { grid-template-columns: minmax(0, 1fr); } .workspace { padding-right: 0; } .settings-panel { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; } .preview-stage { height: 420px; } .tool-footer { flex-wrap: wrap; } }
@media (max-width: 380px) { .preview-toolbar { gap: 6px; } .tabs button { padding: 8px; } .page-controls { gap: 2px; } .preview-stage { height: 360px; } }
@media (prefers-reduced-motion: reduce) { .size-track span { transition: none; } }
