:root{color-scheme:light;--ink:#202520;--muted:#767d76;--line:#e5e7df;--paper:#fff;--canvas:#f6f5f1;--green:#37694f;--green-dark:#28553e;--sage:#eaf0e7;--peach:#faeee1;--shadow:0 14px 36px rgba(34,47,35,.07)}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:"DM Sans",Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button{cursor:pointer}
.topbar,.footer{height:68px;padding:0 max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between}
.brand{display:inline-flex;align-items:center;gap:9px;color:var(--ink);font:800 18px Manrope,Arial,sans-serif;text-decoration:none;letter-spacing:-.7px}
.brand-dot{color:#e29c66}
.brand-mark{width:25px;height:25px;position:relative;display:inline-block}
.brand-mark span{position:absolute;display:block;width:15px;height:18px;border:1.8px solid var(--green);border-radius:9px 9px 7px 7px;background:#f8f9f5;transform:rotate(-28deg);top:3px;left:0}
.brand-mark span:nth-child(2){left:6px;top:2px;transform:rotate(0);background:#edf2e8}
.brand-mark span:nth-child(3){left:11px;top:4px;transform:rotate(28deg);background:#f8eadb}
.privacy-note{font-size:12px;color:#647367;display:flex;gap:8px;align-items:center;font-weight:600}
.lock-icon{font-size:11px;color:var(--green)}
main{max-width:1160px;margin:18px auto 0;padding:0 20px}
.tool-shell{background:var(--paper);border:1px solid #eeefe9;border-radius:20px;box-shadow:var(--shadow);overflow:hidden}
.tool-heading{display:flex;align-items:center;justify-content:space-between;padding:29px 34px 24px;border-bottom:1px solid #eff0eb;gap:16px}
.eyebrow{font-size:10px;letter-spacing:1.35px;font-weight:700;color:#718071;margin:0 0 8px}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-family:Manrope,"DM Sans",Arial,sans-serif;letter-spacing:-.7px}
h1{font-size:27px;line-height:1.2;margin:0 0 6px;font-weight:800}
.subheading{margin:0;color:var(--muted);font-size:14px}
.local-badge{display:flex;align-items:center;gap:8px;padding:9px 13px;background:#f0f5ef;color:#4b7056;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.local-badge span{font-size:8px;color:#64a275}
.workspace{display:grid;grid-template-columns:minmax(300px,.89fr) minmax(370px,1.11fr);min-height:484px}
.input-panel{padding:25px 30px 21px;border-right:1px solid #eff0eb}
.result-panel{padding:25px 30px 20px;background:#fbfbf9;display:flex;flex-direction:column}
.section-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:17px}
.section-heading h2{font-size:15px;margin:1px 0 4px;font-weight:800;letter-spacing:-.25px}
.section-heading p{font-size:11px;color:var(--muted);margin:0;line-height:1.45}
.step-number{display:inline-flex;align-items:center;justify-content:center;flex:none;width:25px;height:25px;border-radius:50%;background:#eef2eb;color:var(--green);font-size:11px;font-weight:700}
.upload-zone{min-height:143px;border:1.5px dashed #cbd5c9;border-radius:13px;background:#fbfcfa;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;position:relative;cursor:pointer;transition:border-color .18s,background .18s,transform .18s;padding:16px 12px}
.upload-zone:hover,.upload-zone:focus-visible,.upload-zone.dragover{outline:none;border-color:#598267;background:#f4f8f2}
.upload-zone:focus-visible{box-shadow:0 0 0 3px rgba(73,125,87,.17)}
#photo-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.upload-icon{height:33px;width:33px;border-radius:10px;background:#eaf0e7;color:#4f785a;display:grid;place-items:center;margin-bottom:9px}
.upload-icon svg{width:20px;height:20px}
.upload-title{font-size:13px;font-weight:700;margin-bottom:4px}
.upload-subtitle{font-size:11px;color:var(--muted)}
.browse-link{font-weight:700;color:var(--green);text-decoration:underline;text-underline-offset:2px}
.file-types{font-size:9px;letter-spacing:.1px;color:#929990;margin-top:11px}
.selected-file{display:flex;align-items:center;gap:10px;margin-top:10px;padding:7px 9px;border:1px solid var(--line);border-radius:10px;min-width:0}
.file-thumb{width:36px;height:36px;border-radius:6px;background-size:cover;background-position:center;flex:none;background-color:#e9ebe6}
.file-name{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.remove-file{border:0;border-radius:50%;width:28px;height:28px;background:transparent;color:#737c73;font-size:20px;line-height:1;flex:none}
.remove-file:hover{background:#f1f1ed}
.control-row{margin-top:20px}
.control-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700}
.control-label output{color:var(--green);font-size:10px;font-weight:600}
input[type=range]{appearance:none;width:100%;height:4px;border-radius:9px;background:#e7e9e2;margin:14px 0 5px;display:block;accent-color:var(--green)}
input[type=range]::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border-radius:50%;background:var(--green);border:3px solid white;box-shadow:0 0 0 1px #b6c6b7;cursor:pointer}
input[type=range]::-moz-range-thumb{width:11px;height:11px;border-radius:50%;background:var(--green);border:3px solid white;box-shadow:0 0 0 1px #b6c6b7;cursor:pointer}
.range-ends{display:flex;justify-content:space-between;color:#929990;font-size:9px}
.paper-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px 10px}
.paper-row .control-label{display:contents}
.paper-row .control-label output{display:none}
select{border:1px solid #dce1d8;border-radius:8px;background:#fff;padding:8px 28px 8px 10px;color:var(--ink);font-size:11px;min-width:112px;outline:none}
select:focus{border-color:#75967d;box-shadow:0 0 0 3px rgba(73,125,87,.12)}
.control-hint{font-size:9px;color:#858d84;margin:0;grid-column:1/-1}
.generate-button{border:0;border-radius:10px;width:100%;height:44px;margin-top:18px;background:var(--green);color:white;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:700;transition:background .15s,transform .15s}
.generate-button:hover:not(:disabled){background:var(--green-dark);transform:translateY(-1px)}
.generate-button:disabled{background:#c5cec4;cursor:not-allowed;color:#f8faf7}
.sparkle{font-size:15px}
.privacy-copy{font-size:10px;color:#6d7d70;text-align:center;margin:11px 0 0}
.privacy-copy span{color:#4f8a5e;font-weight:800;margin-right:4px}
.status-message{font-size:10px;min-height:14px;text-align:center;margin:7px 0 0;color:#647367}
.status-message.error{color:#ab493e}
.result-heading{margin-bottom:14px}
.preview-stage{flex:1;min-height:325px;border-radius:13px;border:1px solid #eceee7;background-color:#f1f1eb;background-image:radial-gradient(#d9ddd4 1px,transparent 1px);background-size:15px 15px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:17px}
.empty-preview{text-align:center;display:flex;align-items:center;flex-direction:column}
.empty-preview p{font-size:12px;font-weight:700;margin:15px 0 4px;color:#697369}
.empty-preview>span{font-size:10px;color:#929990}
.paper-stack{width:96px;height:100px;position:relative}
.paper-stack>span{position:absolute;width:65px;height:84px;top:9px;left:20px;background:white;border:1px solid #e2e3dd;border-radius:3px;transform:rotate(9deg);box-shadow:0 3px 5px rgba(40,50,39,.06)}
.paper-stack>span:nth-child(2){transform:rotate(-7deg);left:15px;top:7px}
.paper-front{transform:rotate(0)!important;left:16px!important;top:5px!important;padding:15px 9px 9px;display:flex;flex-direction:column;gap:5px;align-items:center}
.paper-front i{display:block;width:35px;height:1px;background:#daddd6}
.paper-front i:nth-child(2){width:43px}
.paper-front b{width:25px;height:24px;border:1px solid #91a18f;border-radius:60% 35% 55% 38%;transform:rotate(-22deg);position:relative;margin-top:3px}
.paper-front b:after{content:"";position:absolute;width:6px;height:7px;border:1px solid #91a18f;border-radius:50%;top:7px;left:8px}
.preview-card{max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:10px}
.preview-card img{display:block;max-width:100%;max-height:270px;width:auto;height:auto;object-fit:contain;border-radius:3px;box-shadow:0 5px 22px rgba(33,40,32,.13);background:#fff}
.preview-meta{display:flex;gap:10px;justify-content:space-between;width:100%;font-size:8px;font-weight:700;letter-spacing:.55px;color:#657367}
.download-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}
.download-actions button{height:39px;border-radius:9px;font-size:11px;font-weight:700;display:flex;justify-content:center;align-items:center;gap:8px}
.download-primary{border:1px solid var(--green);background:var(--green);color:#fff}
.download-primary:hover{background:var(--green-dark)}
.download-secondary{border:1px solid #dce2d9;background:#fff;color:#3e5c46}
.download-secondary:hover{background:#f3f6f1}
.download-actions button span{font-size:15px}
.output-spec{text-align:center;color:#818981;font-size:9px;margin:12px 0 0}
.tool-footnote{height:42px;border-top:1px solid #f0f0ec;display:flex;align-items:center;justify-content:center;gap:7px;color:#727b71;font-size:10px}
.tiny-sparkle{color:#d59a64}
.details-section{padding:24px 0 38px;display:grid;gap:14px}
.detail-card{background:#fff;border:1px solid #eeefe9;border-radius:15px;padding:22px 25px}
.detail-card h2{font-size:17px;line-height:1.3;margin:0 0 15px;font-weight:800}
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:20px}
.steps-grid article{padding:15px;border-radius:11px;background:#fafaf8}
.steps-grid .step-number{margin-bottom:10px}
.steps-grid h3{font-size:12px;margin:0 0 5px;font-weight:800}
.steps-grid p{font-size:10px;line-height:1.55;color:var(--muted);margin:0}
.details-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.plain-list{padding-left:17px;margin:0;color:#495149;font-size:11px;line-height:1.9}
.plain-list li::marker{color:#6d9271}
.small-note{font-size:10px;line-height:1.55;color:#858c83;margin:11px 0 0}
.faq-card h2{margin-bottom:9px}
.faq-card details{border-top:1px solid #eff0eb;padding:12px 0}
.faq-card summary{font-size:11px;font-weight:700;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}
.faq-card summary::-webkit-details-marker{display:none}
.faq-card summary:after{content:"+";font-size:16px;color:#66816b;font-weight:400}
.faq-card details[open] summary:after{content:"−"}
.faq-card details p{font-size:10px;color:var(--muted);line-height:1.65;margin:9px 22px 0 0}
.footer{height:72px;border-top:1px solid #e6e7e1;color:#828980;font-size:10px;margin:0 auto;max-width:1160px}
.footer .brand{font-size:15px}
.footer-links{display:flex;gap:16px;flex-wrap:wrap}
.footer-links a{color:#647367;text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.content-page{max-width:820px;margin:28px auto 52px;padding:0 20px}
.content-card{background:#fff;border:1px solid #eeefe9;border-radius:18px;padding:clamp(22px,5vw,44px);box-shadow:var(--shadow)}
.content-card h1{font-size:clamp(26px,4vw,36px);margin-bottom:12px}
.content-card h2{font-size:18px;margin:30px 0 9px}
.content-card p,.content-card li{font-size:14px;line-height:1.75;color:#596159}
.content-card a{color:var(--green-dark)}
.content-lede{font-size:16px!important;color:#6e776f!important}
@media(max-width:600px){.footer{height:auto;min-height:72px;padding:16px;gap:12px;flex-wrap:wrap}.footer-links{order:3;width:100%;gap:18px}.content-page{margin:14px auto 30px;padding:0 12px}.content-card{border-radius:14px}}

@media(max-width:760px){
  .topbar{height:58px;padding:0 16px}
  main{margin:10px auto 0;padding:0 12px}
  .tool-shell{border-radius:15px}
  .tool-heading{padding:20px 18px 17px;align-items:flex-start}
  h1{font-size:22px}
  .subheading{font-size:12px;max-width:270px;line-height:1.45}
  .local-badge{font-size:0;padding:9px;margin-top:2px}
  .local-badge span{font-size:9px}
  .workspace{grid-template-columns:minmax(0,1fr);min-height:0}
  .input-panel{padding:20px 17px 19px;border-right:0;border-bottom:1px solid #eff0eb}
  .result-panel{padding:19px 17px 18px;min-height:400px}
  .upload-zone{min-height:132px}
  .preview-stage{min-height:260px}
  .preview-card img{max-height:245px}
  .tool-footnote{height:auto;min-height:42px;padding:8px 14px;text-align:center;font-size:9px}
  .details-section{padding-top:13px;gap:10px}
  .detail-card{padding:19px 18px;border-radius:13px}
  .steps-grid{grid-template-columns:1fr;gap:8px;margin-top:15px}
  .steps-grid article{display:grid;grid-template-columns:25px 1fr;column-gap:10px;align-items:center;padding:11px}
  .steps-grid .step-number{grid-row:span 2;margin:0}
  .steps-grid h3{margin:0 0 3px}
  .steps-grid p{grid-column:2}
  .details-columns{grid-template-columns:1fr;gap:10px}
  .footer{height:62px;padding:0 16px}
}
@media(max-width:360px){
  .tool-heading{padding-left:14px;padding-right:14px}
  .input-panel,.result-panel{padding-left:13px;padding-right:13px}
  .download-actions{gap:6px}
  .download-actions button{font-size:10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
