/* Approved workbench layout. Keep the original ConvertOtter logo and controls. */
:root{--background:#f1f4ea;--foreground:#203b2e;--primary:#22543d;--secondary:#f0f4ec;--border:#d6ddcc;--muted-foreground:#53665a}
body{line-height:1.55}.shell{max-width:1220px;padding-left:30px;padding-right:30px}.site-header{min-height:88px;height:auto;padding-top:20px;padding-bottom:20px;gap:18px}.brand{font-size:23px;letter-spacing:-.7px}.brand img{object-fit:contain}.site-header nav{margin-left:auto}.header-allowance{font-size:12px;font-weight:600;background:#e4eddd;border:1px solid var(--border);border-radius:30px;padding:8px 12px;white-space:nowrap}.workspace{padding-top:32px}.page-title{margin-bottom:24px}.page-title h1{font-size:36px;letter-spacing:-1px;max-width:740px}.page-title p{font-size:17px;max-width:740px;color:var(--muted-foreground)}
.skip-link{position:absolute;left:15px;top:-100px;background:white;border:2px solid var(--primary);padding:12px;z-index:30}.skip-link:focus{top:12px}
button,a,input,textarea,summary,select{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #357254;outline-offset:3px}button{min-height:44px}button:disabled{opacity:.6}.lane{display:inline-flex;align-items:center;width:fit-content;border-radius:7px;padding:3px 9px;font-size:12px;font-weight:700;line-height:1.5;letter-spacing:0}.lane.local{color:#245533;background:#dfedda}.lane.hosted{color:#274e7b;background:#e1eaf4}.lane-explainer{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:24px}.lane-explainer section{background:white;border:1px solid var(--border);border-radius:12px;padding:17px 20px}.lane-explainer h2{font-size:16px;margin:0 0 9px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.lane-explainer p{font-size:14px;color:var(--muted-foreground)}
.category-title,.shortcut-section h2{font-size:20px;margin:0 0 14px;letter-spacing:-.4px}.tool-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:14px;margin:0 0 28px}.tool-nav .tool-card{display:flex;flex-direction:column;align-items:start;text-align:left;padding:18px 16px;background:#fff;border:1px solid var(--border);color:var(--foreground);border-radius:13px;font-weight:400;transition:border-color .12s,box-shadow .12s}.tool-nav .tool-card:hover{border-color:#89a18a;box-shadow:0 3px 12px #203b2e0d}.card-title{display:flex;align-items:center;gap:9px;margin-bottom:12px;font-size:16px}.card-icon{font-size:22px;line-height:1;background:#f5f7f0;border-radius:7px;padding:8px;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.card-description{font-size:14px;line-height:1.6;color:var(--muted-foreground);margin:11px 0 17px}.card-cost{font-size:12px;border-top:1px solid var(--border);padding-top:10px;margin-top:auto;width:100%;color:var(--muted-foreground)}.shortcut-section{margin-bottom:22px}.shortcuts{display:flex;gap:9px;flex-wrap:wrap}.shortcuts button{padding:9px 13px;color:var(--primary);background:white;border:1px solid var(--border);font-size:14px}.home-file-finder{margin:22px 0 26px}.file-finder{display:flex;align-items:center;gap:14px;justify-content:space-between;border:1px dashed #a5b7a0;border-radius:12px;padding:17px 20px;cursor:pointer;background:#f8faf5}.file-finder strong{font-size:15px}.file-finder span{font-size:13px;color:var(--muted-foreground);max-width:460px}.file-finder.dragging{border:2px solid var(--primary)}#finder-options{margin-top:12px;font-size:14px}#finder-options button{margin:10px 9px 0 0;padding:10px 14px;color:var(--primary);background:white;border:1px solid var(--border)}.quick-start{padding:16px 20px;border:1px solid var(--border);border-radius:12px;background:white;margin-bottom:20px}.quick-start summary{cursor:pointer;font-weight:600;min-height:32px}.quick-start li{margin:13px 0}.quick-start p,.release-status{font-size:14px;color:var(--muted-foreground)}
.back-button{background:none;color:var(--primary);padding:7px 0;font-weight:600;margin-bottom:16px}.workspace-grid{grid-template-columns:minmax(0,1fr);max-width:960px;margin:auto}.conversion-panel{padding:26px;border-radius:15px}.tool-heading{margin-top:12px;font-size:26px;letter-spacing:-.5px}.tool-heading-row{align-items:center;gap:14px}.tool-intro{font-size:15px;color:var(--muted-foreground)}.example-button{display:inline-flex;padding:9px 12px;border:1px solid var(--border);background:white;color:var(--primary);font-size:13px;margin:12px 0}.example-view{border:1px solid #b8cab3;border-radius:10px;background:#f6f9f1;padding:18px;margin:12px 0 18px}.example-view h3{font-size:18px;margin:0 0 12px}.example-view p{margin-bottom:12px;font-size:14px}.example-view table{font-size:13px;border-collapse:collapse;width:100%;overflow-wrap:anywhere}.example-view th,.example-view td{padding:8px;border:1px solid var(--border);text-align:left}.example-view .example-label{font-weight:600;color:var(--primary)}
.upload-guidance{border:1px solid var(--border);border-radius:10px;background:#f7f9f2;margin:16px 0}.upload-guidance summary{cursor:pointer;min-height:44px;padding:12px 14px;font-size:14px;font-weight:600}.upload-guidance[open] summary{border-bottom:1px solid var(--border)}#guidance-detail{padding:12px 14px;font-size:14px}#guidance-detail dl{margin:0;display:grid;grid-template-columns:70px 1fr;gap:9px}#guidance-detail dt{font-weight:600}#guidance-detail dd{margin:0;overflow-wrap:anywhere}.upload-zone{min-height:175px;padding:24px}.upload-zone strong{display:block;min-height:44px;background:var(--primary);color:#fff;border-radius:9px;padding:10px 18px;font-size:16px}.upload-zone.selected{min-height:112px;padding:16px}.upload-zone.selected strong{background:transparent;color:var(--foreground);padding:0;min-height:0}.upload-zone.selected svg{display:none}.upload-zone.selected small{margin:0}.upload-zone span,.upload-zone small{color:var(--muted-foreground)}.selected-files li{gap:6px}.selected-files button,.rule-row button{min-height:44px;min-width:44px;padding:8px 10px}.selected-files span{min-width:0}.resize-controls>div{min-width:0}.resize-controls input[type=color]{height:44px}.resize-controls input[type=checkbox]{width:20px;height:20px}.checkbox-label{min-height:44px}select,input,textarea{color:var(--foreground)}
.table-steps{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.table-steps button{background:#edf2e7;border:1px solid var(--border);color:var(--primary);font-size:13px;padding:9px 13px}.table-steps button[aria-current=step]{background:#22543d;color:white}.table-steps button:disabled{opacity:.55}.conversion-panel details summary{min-height:44px;display:list-item;align-content:center;font-size:14px}.conversion-panel fieldset{margin-top:18px}.rule-toolbar{align-items:center}.rule-toolbar label{font-size:14px}.rule-toolbar select{min-height:44px}.rule-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto}#table-more-options{border:1px solid var(--border);border-radius:9px;padding:0 14px}.review-status{padding:12px 14px;margin:14px 0;background:#fff0c8;border-radius:9px;font-size:14px;color:#684300}.review-row{margin:12px 0;padding:16px;border:1px solid #d8c597;border-radius:10px;background:#fffcf4}.review-row h4{font-size:16px;margin:0 0 8px}.review-row p{font-size:13px;margin:8px 0}.review-values{display:grid;grid-template-columns:minmax(90px,.4fr) minmax(0,1fr);gap:8px;font-size:14px;margin:12px 0}.review-values dt{font-weight:600}.review-values dd{margin:0;overflow-wrap:anywhere}.review-row details{margin:10px 0}.review-row input[type=checkbox]{width:20px;height:20px}.review-row label{min-height:44px;cursor:pointer}.source-actions{display:flex;gap:8px;flex-wrap:wrap}.source-actions a,.source-actions button{min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:13px;background:white;color:var(--primary)}.table-scroll th{position:static}.table-scroll caption{font-size:13px;text-align:left;padding:10px;font-weight:600}
.tool-actions{position:sticky;bottom:0;padding:14px 0;background:white;border-top:1px solid var(--border);z-index:3;align-items:center}.tool-actions button{min-height:46px}.tool-actions button:first-child{flex:1}.job-progress{border:1px solid #c4d3e1;border-radius:12px;background:#f1f6fc;padding:16px;margin:18px 0}.job-progress h3{font-size:17px;margin:0 0 10px}.job-progress progress{width:100%;height:13px;accent-color:var(--primary)}.job-progress p{font-size:14px;margin-top:10px}.job-progress .small{font-size:12px;color:var(--muted-foreground)}.feedback:not(:empty){padding:16px;border:1px solid var(--border);border-radius:10px;background:#f4f8ef;margin:16px 0}.feedback.error{background:#fff3e8;border-color:#d6ad8e}.feedback h3{font-size:17px;margin:0 0 8px}.feedback p{font-size:14px;margin:6px 0}.feedback .credit-line{font-size:13px;font-weight:600}.feedback button{padding:9px 13px;margin-top:12px;border:1px solid var(--border);background:white;color:var(--primary)}.result-card{padding:18px;border-radius:12px;background:#fbfcf8}.result-card h3{font-size:17px}.result-card button{min-height:44px}.result-card .countdown{font-weight:600;font-variant-numeric:tabular-nums}.result-card.expiring{border-color:#d3a55c;background:#fffaf0}.result-card.expired{border-color:#bac1b8;background:#f1f3ef}.recovery-banner{padding:15px 18px;background:#e7f0df;border:1px solid #b6c7a8;border-radius:12px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:960px;margin-left:auto;margin-right:auto}.recovery-banner p{font-size:14px;overflow-wrap:anywhere}.recovery-banner button{padding:10px 14px;white-space:nowrap}.geometry-preview{background:#f3f7ee;padding:13px;border-radius:9px}.file-note{color:var(--muted-foreground)}dialog{max-width:min(520px,calc(100% - 32px));border:1px solid var(--border);border-radius:14px;padding:24px;color:var(--foreground);background:white}dialog::backdrop{background:#16302170}dialog h2{margin:0 0 14px;font-size:23px}.dialog-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.dialog-actions button{padding:10px 15px}
@media(max-width:1000px){.tool-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.header-allowance{font-size:11px}.site-header nav{gap:18px}}
@media(max-width:760px){.shell{padding-left:20px;padding-right:20px}.site-header{padding-top:14px;padding-bottom:14px;gap:12px}.site-header nav{gap:16px}.header-allowance{width:100%;text-align:center;white-space:normal}.tool-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.page-title h1{font-size:30px}.lane-explainer{grid-template-columns:1fr}.lane-explainer section{padding:15px}.file-finder{align-items:start;flex-direction:column;gap:7px}.conversion-panel{padding:20px}.tool-actions{flex-wrap:wrap}.tool-actions button:first-child{flex-basis:100%}.review-values{grid-template-columns:1fr}.review-values dd{margin-bottom:10px}.recovery-banner{flex-wrap:wrap}.recovery-banner button{width:100%}.selected-files li{flex-wrap:wrap}.selected-files li>span{flex-basis:100%}.rule-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.table-steps{gap:5px}.table-steps button{flex:1 1 40%;font-size:12px}.review-row{padding:13px}}
@media(max-width:440px){.shell{padding-left:16px;padding-right:16px}.tool-nav{grid-template-columns:1fr}.tool-nav .tool-card{padding:17px}.card-description{margin:9px 0 12px}.card-title{margin-bottom:9px}.conversion-panel{padding:16px}.page-title h1{font-size:28px}.shortcuts button{flex:1 1 43%;font-size:12px}.tool-heading{font-size:23px}.tool-heading-row{align-items:start}.tool-heading-row button{font-size:13px}.rule-toolbar button{flex:1}.rule-row{grid-template-columns:1fr}.rule-case{grid-column:auto}.table-scroll table{min-width:600px}.dialog-actions button{flex:1}.site-footer nav{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Image comparison and explicit opt-in preferences. */
.image-settings-memory{border:1px solid var(--border);border-radius:10px;background:#f7f9f2;padding:12px 15px;margin:18px 0}.image-settings-memory .checkbox-label{font-size:14px;font-weight:600;margin:0;cursor:pointer}.image-settings-memory p{font-size:13px;color:var(--muted-foreground);margin:5px 0}.image-settings-memory button{font-size:13px;padding:9px 12px;margin-top:8px}.image-comparison{margin:22px 0}.image-comparison h3{font-size:18px;margin:0 0 12px}.comparison-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.comparison-grid figure{margin:0;min-width:0}.comparison-grid figcaption{font-size:13px;font-weight:600;margin-bottom:8px;overflow-wrap:anywhere}.preview-mat{height:260px;border:1px solid var(--border);border-radius:9px;display:flex;align-items:center;justify-content:center;padding:12px;background-color:#fff;background-image:linear-gradient(45deg,#e4e9e1 25%,transparent 25%),linear-gradient(-45deg,#e4e9e1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e4e9e1 75%),linear-gradient(-45deg,transparent 75%,#e4e9e1 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.preview-mat canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 1px 5px #18362d20}.image-comparison>p{font-size:13px;color:var(--muted-foreground);margin-top:10px}@media(max-width:500px){.comparison-grid{grid-template-columns:1fr}.preview-mat{height:220px}}

/* Visible completion action and an explicit resolution trade-off before resize. */
#image-panel .image-quality-warning{padding:16px;margin:12px 0 18px;border:1px solid #d2ac60;border-radius:10px;background:#fff8e8;color:#624617;font-size:14px}
#image-panel .image-quality-warning p{margin:0 0 12px}#image-panel .image-quality-warning button{min-height:44px;padding:10px 14px;background:#fff;color:#624617;border:1px solid #cbb47f}
#image-panel .image-result{padding:22px;margin-top:16px;border:1px solid #8ab89c;border-radius:12px;background:#eef8f0}
#image-panel .image-result h3{margin:0 0 8px;font-size:22px}#image-result-file{overflow-wrap:anywhere;font-size:14px;color:#355344}
#image-panel a#download{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:56px;padding:16px 22px;margin:18px 0 12px;background:#14634b;color:#fff;border:2px solid #14634b;border-radius:10px;text-decoration:none;font-size:18px;font-weight:700;line-height:1.3;box-shadow:0 3px 0 #0c4232}
#image-panel a#download:hover{background:#0d4e3a;border-color:#0d4e3a}#image-panel a#download:focus-visible{outline:3px solid #164bb0;outline-offset:4px}
#image-panel .image-full-preview{display:inline-flex;align-items:center;min-height:44px;color:#14543f;font-weight:600;text-decoration:underline}
#image-panel .image-download-help{font-size:13px;color:#355344;margin-top:6px}
