:root { --ink:#182129; --muted:#60707b; --line:#dce5e7; --surface:#fff; --wash:#f5f8f7; --accent:#0c7c62; --accent-dark:#075643; --gold:#f4b83f; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); font:16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:linear-gradient(155deg,#f7fbfa 0%,#fff 44%,#f8faf8 100%); }
button,input { font:inherit; }
button { cursor:pointer; }
.button-link { display:inline-block; text-decoration:none; }
.error-page { max-width:760px; margin:9vh auto 0; text-align:center; }
.error-page h1 { margin:0; font-size:clamp(36px,6vw,64px); line-height:1.05; letter-spacing:-1.5px; }
.site-header { max-width:1160px; margin:auto; padding:24px 28px; display:flex; justify-content:space-between; align-items:center; }
.brand { color:var(--ink); font-size:21px; font-weight:800; letter-spacing:-.8px; text-decoration:none; }.brand span { color:var(--accent); }.site-header p { margin:0; color:var(--muted); font-size:14px; }
main { max-width:1160px; margin:auto; padding:20px 28px 72px; }.tool-shell { padding:clamp(24px,5vw,56px); border:1px solid var(--line); border-radius:26px; background:rgba(255,255,255,.94); box-shadow:0 18px 50px rgba(23,49,43,.08); }
.tool-intro { max-width:660px; }.eyebrow { margin:0 0 8px; color:var(--accent); font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }.tool-intro h1,.content-section h2 { margin:0; letter-spacing:-1.5px; line-height:1.05; }.tool-intro h1 { font-size:clamp(38px,6vw,66px); }.lede { margin:16px 0; font-size:clamp(17px,2vw,21px); color:#43515a; }.trust-row { display:flex; flex-wrap:wrap; gap:10px 18px; color:var(--accent-dark); font-size:14px; font-weight:700; }
.workspace { display:grid; grid-template-columns:minmax(0,1fr) 276px; gap:20px; margin-top:34px; }.drop-panel,.result-panel { min-height:400px; border:1px solid var(--line); border-radius:18px; background:var(--surface); overflow:hidden; }.drop-panel { position:relative; }.empty-state { height:100%; min-height:400px; padding:48px 24px; display:grid; place-content:center; text-align:center; border:2px dashed #b6cbc5; margin:10px; border-radius:13px; transition:.2s; }.drop-panel.dragging .empty-state { border-color:var(--accent); background:#eef8f5; }.upload-icon { width:48px; height:48px; display:grid; place-items:center; margin:0 auto 14px; border-radius:50%; color:white; background:var(--accent); font-size:29px; font-weight:800; }.empty-state h2 { margin:0; font-size:23px; letter-spacing:-.5px; }.empty-state p { margin:6px 0 19px; color:var(--muted); }.privacy-note { margin-top:16px!important; font-size:12px; }
.primary,.secondary,.download { border:0; border-radius:10px; padding:12px 17px; font-weight:800; }.primary { color:white; background:var(--accent); }.primary:hover { background:var(--accent-dark); }.secondary { color:var(--ink); background:#eaf0ee; }.secondary:disabled,.primary:disabled,.download:disabled { cursor:not-allowed; opacity:.5; }.editor { padding:12px; }.canvas-frame { position:relative; min-height:340px; display:grid; place-items:center; overflow:auto; background:repeating-conic-gradient(#edf2f0 0% 25%,#fff 0% 50%) 50% / 20px 20px; border-radius:12px; }.canvas-frame canvas { max-width:100%; height:auto; touch-action:none; }.canvas-frame #imageCanvas { display:block; }.canvas-frame #overlayCanvas { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); }.canvas-hint { position:absolute; bottom:8px; margin:0; padding:5px 9px; border-radius:7px; color:#fff; background:rgba(12,31,29,.72); font-size:12px; }.editor-controls { display:flex; gap:14px; align-items:end; justify-content:space-between; padding:14px 4px 2px; }.brush-control { min-width:170px; }.brush-control label { display:flex; justify-content:space-between; font-size:13px; font-weight:700; }.brush-control output { color:var(--accent); }.brush-control input { width:100%; accent-color:var(--accent); }.actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:end; }
.result-panel { display:flex; flex-direction:column; padding:18px; background:var(--wash); }.status { display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; }.status-dot { width:9px; height:9px; border-radius:50%; background:#8a9a9f; }.status[data-state="working"] .status-dot { background:var(--gold); animation:pulse 1s infinite; }.status[data-state="done"] .status-dot { background:var(--accent); }.progress-wrap { display:flex; align-items:center; gap:8px; margin-top:13px; font-size:12px; font-weight:700; }.progress-track { flex:1; height:7px; border-radius:99px; background:#dbe6e2; overflow:hidden; }.progress-bar { width:0%; height:100%; background:var(--accent); transition:width .2s; }.result-placeholder { flex:1; display:grid; align-content:center; text-align:center; color:var(--muted); }.result-placeholder p { margin:0 0 5px; }.result-placeholder small { font-weight:700; }.result-panel img { width:100%; max-height:272px; object-fit:contain; margin:auto 0; border-radius:9px; background:repeating-conic-gradient(#e7edeb 0% 25%,#fff 0% 50%) 50% / 16px 16px; }.download { width:100%; margin-top:16px; color:#fff; background:var(--ink); }
.content-section { margin:76px 4px 0; max-width:900px; }.content-section h2 { font-size:clamp(28px,4vw,43px); }.steps { margin:25px 0 0; padding:0; list-style:none; counter-reset:step; display:grid; gap:15px; }.steps li { padding:16px 18px 16px 57px; position:relative; border-radius:12px; background:#fff; border:1px solid var(--line); }.steps li::before { counter-increment:step; content:counter(step); position:absolute; left:17px; top:15px; width:25px; height:25px; display:grid; place-items:center; color:white; background:var(--accent); border-radius:50%; font-size:12px; font-weight:800; }.split { max-width:none; display:grid; grid-template-columns:1fr 1fr; gap:50px; padding-top:45px; border-top:1px solid var(--line); }.split p:not(.eyebrow),.faq p { color:#526069; }.faq details { padding:17px 0; border-bottom:1px solid var(--line); }.faq summary { cursor:pointer; font-weight:800; }.faq p { margin:9px 0 0; } footer { padding:30px; text-align:center; color:var(--muted); font-size:13px; border-top:1px solid var(--line); } @keyframes pulse { 50% { opacity:.35; } }
@media (max-width:760px) { .site-header { padding:18px 20px; }.site-header p { display:none; } main { padding:10px 16px 48px; }.tool-shell { padding:24px 16px; border-radius:18px; }.workspace { grid-template-columns:1fr; }.result-panel { min-height:250px; }.drop-panel { min-height:360px; }.empty-state { min-height:340px; }.editor-controls { align-items:stretch; flex-direction:column; }.actions { justify-content:stretch; }.actions button { flex:1; }.split { grid-template-columns:1fr; gap:28px; }.content-section { margin-top:54px; }.canvas-frame { min-height:270px; } }
