/* Homepage only. Shared styles and every other tool remain unchanged. */
.rz-page [hidden]{display:none!important}
.rz-page .hero{padding:32px 20px 8px;max-width:1050px;margin:auto}
.rz-page .hero h1{font-size:clamp(28px,4.2vw,46px);line-height:1.12;margin:12px 0}
.rz-page .hero p{font-size:16px;max-width:650px;margin:12px auto}
.rz-page .trust-badges{margin-top:16px;gap:8px}
.rz-page .trust-badges span{font-size:11px;padding:5px 10px}
.rz-page .rz-workspace{display:grid;grid-template-columns:minmax(0,1fr) 324px;grid-template-areas:"presets presets" "upload settings" "stage settings";gap:20px;align-items:start;margin-top:24px;max-width:1220px}
.rz-page .rz-presets{grid-area:presets;position:static;width:auto;display:grid;grid-template-columns:190px minmax(0,1fr) auto;align-items:center;gap:18px;padding:18px 22px;border-radius:14px}
.rz-page .rz-presets .preset-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0}
.rz-page .preset-btn{padding:10px 5px;min-height:58px;font-size:12px;line-height:1.35;border-radius:9px}
.rz-page .preset-btn small{font-size:10px;display:block;margin-top:4px}
.rz-page .rz-upload{grid-area:upload;padding:22px;border-radius:14px;min-width:0}
.rz-page .rz-settings{grid-area:settings;width:auto;position:static;padding:20px;border-radius:14px;min-width:0}
.rz-page .rz-stage{grid-area:stage;min-width:0;order:initial}
.rz-page .rz-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.rz-page .rz-section-head h2,.rz-page .stage-card-head h2{font-size:16px;line-height:1.4;margin:0;display:flex;align-items:center;gap:8px}
.rz-page .rz-number{display:inline-grid;place-items:center;width:26px;height:26px;background:#eff6ff;color:#1d4ed8;font-size:12px;border-radius:8px;flex-shrink:0}
.rz-page .rz-step{font-size:10px;color:#475569;font-weight:750;letter-spacing:.12em}
.rz-page .rz-caption{font-size:12px;line-height:1.65;color:#526174;margin:8px 0}
.rz-page .rz-small{padding:7px 10px;font-size:12px;min-height:36px}
.rz-page .rz-text-link{font-size:12px;color:#1d4ed8;text-decoration:underline;text-underline-offset:3px}
.rz-page .upload-zone{padding:24px 15px;margin:0 0 12px;border:1.5px dashed #93b4e3;border-radius:12px;background:#f8fbff}
.rz-page .upload-title{font-size:16px}.rz-page .upload-icon{margin-bottom:9px}.rz-page .upload-icon .ui-icon{width:28px;height:28px}
.rz-page details summary{cursor:pointer;font-size:13px;font-weight:650;line-height:1.5;padding:12px 0;min-height:44px}
.rz-page .rz-settings details{border-top:1px solid #e2e8f0}
.rz-page .rz-detail-body{padding:2px 0 14px}
.rz-page .rz-settings .input-row{gap:10px}.rz-page .rz-settings .input-group{min-width:0;margin-bottom:12px}
.rz-page .rz-settings input,.rz-page .rz-settings select{width:100%;max-width:100%;min-width:0}
.rz-page .rz-settings .checkbox-group{display:flex;align-items:center;gap:9px;padding:10px}
.rz-page .rz-settings input[type=checkbox]{width:17px;flex:0 0 17px;height:17px}
.rz-page .rz-settings label{font-size:12px;line-height:1.5}
.rz-page .rz-color{display:flex;align-items:center;justify-content:space-between;gap:16px}
.rz-page .rz-color input[type=color]{width:52px;height:36px;padding:3px}
.rz-page input[aria-invalid=true],.rz-page select[aria-invalid=true]{border-color:#b91c1c;outline-color:#b91c1c}
.rz-page .rz-muted{opacity:.55}.rz-page .rz-limits{margin-top:6px}.rz-page .rz-limits summary{font-size:11px;color:#526174}
.rz-page .rz-limits p{font-size:12px;color:#526174;line-height:1.65}
.rz-page .thumbnail-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:8px;margin:12px 0}
.rz-page .rz-file{position:relative;border:1px solid #dbe3ef;border-radius:10px;overflow:hidden;background:#fff}
.rz-page .rz-file.selected{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb}
.rz-page .rz-file-select{display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;text-align:left;width:100%;border:0;border-radius:8px;background:transparent;padding:10px 38px 10px 10px;color:#172033;cursor:pointer;min-height:70px}
.rz-page .rz-file-select img{grid-row:1/3;object-fit:contain;border-radius:5px;background:#e2e8f0;max-width:48px}
.rz-page .rz-file-name{grid-column:2;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.rz-page .rz-file-select small{grid-column:2;font-size:10px;color:#526174;line-height:1.4}
.rz-page .rz-remove{position:absolute;right:2px;top:5px;background:transparent;border:0;color:#475569;width:34px;height:36px;cursor:pointer;font-size:21px}
.rz-page .stage-card{border-radius:14px;overflow:hidden;margin-bottom:16px}
.rz-page .stage-card-head{padding:18px 20px;gap:10px;flex-wrap:wrap}
.rz-page .rz-preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:0 20px 12px}
.rz-page .rz-preview-toolbar label{font-size:11px;color:#526174;margin-right:6px}
.rz-page .rz-preview-toolbar select{font-size:11px;padding:6px 9px;min-height:34px;width:auto}
.rz-page .preview-container{margin:0 18px;padding:22px;min-height:280px;max-height:440px;overflow:hidden;border:1px solid #e2e8f0;border-radius:10px;background-color:#f8fafc;background-image:conic-gradient(#e2e8f0 25%,transparent 0 50%,#e2e8f0 0 75%,transparent 0);background-size:20px 20px}
.rz-page #preview-area[data-surface=light]{background:#fff}.rz-page #preview-area[data-surface=dark]{background:#182235;color:#fff}
.rz-page #preview-canvas{background:none;box-shadow:0 4px 24px #0f172a20;max-height:360px;max-width:100%;width:auto;height:auto;border-radius:0}
.rz-page .preview-empty{color:#475569;padding:20px;background:#fffffff0;border-radius:14px}
.rz-page .rz-empty-mark{font-size:36px;font-weight:750;color:#1d4ed8;letter-spacing:-.05em;margin-bottom:10px}
.rz-page .preview-empty p{font-size:14px;margin:0 0 6px}.rz-page .preview-empty small{font-size:12px}
.rz-page .rz-output-summary{padding:12px 20px 16px}.rz-page .rz-output-summary>p:first-child{font-size:13px;font-weight:600;margin:0}
.rz-page .rz-error:not(:empty){background:#fef2f2;color:#991b1b;border:1px solid #fecaca;padding:12px;border-radius:9px;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.rz-page .rz-warning:not(:empty){background:#fffbeb;color:#854d0e;border:1px solid #fde68a;padding:10px;border-radius:8px;font-size:12px;line-height:1.6;margin:10px 0 0}
.rz-page .rz-error:empty,.rz-page .rz-warning:empty{display:none}
.rz-page .rz-export{padding:20px;border-radius:14px}.rz-page .action-buttons{display:flex;flex-direction:row;flex-wrap:wrap;margin:0;gap:10px}
.rz-page .action-buttons .btn{min-height:44px;padding:11px 17px;font-size:13px;border-radius:9px}
.rz-page button:disabled{cursor:not-allowed;opacity:.48}.rz-page .rz-job-status{font-size:12px;line-height:1.65;color:#475569;margin:12px 0 0}
.rz-page progress{width:100%;height:8px;accent-color:#2563eb;margin-top:10px}
.rz-page .rz-pack{margin-top:14px;border-top:1px solid #e2e8f0}.rz-page .rz-pack summary{font-size:12px}
.rz-page #output-head:not(:empty){font-size:17px;margin:22px 0 12px;color:#172033}
.rz-page .output-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}
.rz-page .output-item{border-radius:12px}.rz-page .output-image{height:160px;width:100%;object-fit:contain;padding:12px}
.rz-page .output-meta span,.rz-page .output-meta small{display:block;font-size:11px;line-height:1.6}.rz-page .output-link{min-height:44px;display:flex;align-items:center;justify-content:center}
.rz-page button:focus-visible,.rz-page a:focus-visible,.rz-page summary:focus-visible,.rz-page select:focus-visible,.rz-page input:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(max-width:1050px){.rz-page .rz-presets{grid-template-columns:1fr}.rz-page .rz-presets>div:first-child{display:none}.rz-page .rz-workspace{grid-template-columns:minmax(0,1fr) 290px;gap:14px}.rz-page .rz-settings{padding:16px}}
@media(max-width:760px){.rz-page .hero{padding-top:20px}.rz-page .hero .eyebrow{font-size:10px}.rz-page .hero p{font-size:14px}.rz-page .trust-badges{display:none}.rz-page .rz-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"upload" "presets" "settings" "stage";padding:0 14px;margin-top:18px}.rz-page .rz-presets{padding:14px}.rz-page .rz-presets .preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rz-page .rz-upload,.rz-page .rz-export{padding:16px}.rz-page .preview-container{margin:0 12px;min-height:230px;padding:12px}.rz-page .rz-section-head h2,.rz-page .stage-card-head h2{font-size:15px}.rz-page .rz-settings details:not([open]) summary{padding:12px 0}.rz-page .rz-preview-toolbar{padding:0 14px 10px}.rz-page .stage-card-head{padding:16px 14px}.rz-page .dim-pill{font-size:11px}.rz-page .rz-preview-toolbar>div{width:100%}.rz-page .action-buttons .btn{flex:1 1 auto}.rz-page .rz-output-summary{padding:12px 14px}.rz-page .rz-text-link{justify-self:start}}
@media(prefers-reduced-motion:reduce){.rz-page *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
