:root{--ink:#233a36;--muted:#667570;--green:#245f50;--line:#dfe5df;--paper:#fff;--bg:#f5f6f2;--soft:#edf3ed;font-family:Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{padding:11px 17px;border:1px solid #ccd7ce;border-radius:9px;background:#fff;color:var(--ink);font-weight:600}button.primary{background:var(--green);color:#fff;border-color:var(--green)}button:disabled{opacity:.48;cursor:not-allowed}a{color:inherit}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #a8c4ad;outline-offset:3px}[hidden]{display:none!important}
.topbar{min-height:91px;background:#fff;border-bottom:1px solid var(--line);padding:20px max(28px,calc((100vw - 1320px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-weight:700;font-size:18px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--green);color:white;font-size:26px;font-family:Georgia,serif}.brand small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:4px}.local-badge{font-size:12px;background:var(--soft);padding:8px 12px;border-radius:20px;white-space:nowrap}.local-badge span{color:#4b805d;margin-right:5px}
main{max-width:1376px;padding:39px 28px 0;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;gap:26px;margin-bottom:25px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:var(--green);margin:0 0 13px}h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-1px;font-size:36px;margin:0 0 12px}.intro p:not(.eyebrow){color:var(--muted);font-size:14px;margin:0;line-height:1.6}.actions{display:flex;gap:9px;flex-shrink:0}.stage-note{border:1px solid #d8e3d7;background:#edf3e9;padding:13px 17px;border-radius:10px;display:flex;gap:15px;font-size:12px;line-height:1.5;margin-bottom:25px}.stage-note strong{flex-shrink:0}.stage-note span{color:#52634f}.workspace{display:grid;grid-template-columns:350px minmax(0,1fr);gap:29px;align-items:start}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:22px;margin-bottom:19px}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:22px}h2{font-size:15px;margin:0}.section-number{font-size:10px;font-weight:700;color:var(--green);background:var(--soft);padding:6px;border-radius:6px}.count{margin-left:auto;color:var(--muted);font-size:11px;background:var(--bg);padding:4px 8px;border-radius:6px}label{display:block;font-size:12px;font-weight:600;margin:18px 0 8px}.optional{font-weight:400;color:var(--muted);margin-left:5px}input{width:100%;border:1px solid #cdd6cf;border-radius:8px;padding:11px 12px;font-size:13px;background:#fff;color:var(--ink)}input::placeholder{color:#7d8981}.field-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:9px 0 0}.upload-placeholder{border:1px dashed #cbd6ca;border-radius:10px;background:#fafbf8;padding:25px 15px;text-align:center;color:#6c8b77}.upload-placeholder h3{font-size:13px;color:var(--ink);margin:12px 0 7px}.upload-placeholder p:not(.field-hint){font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 16px}.small-note{font-size:11px;line-height:1.6;color:var(--muted);margin-bottom:0}.privacy-note{font-size:11px;line-height:1.8;color:var(--muted);padding:0 9px}.privacy-note strong{color:var(--green);font-weight:600}.preview-panel{background:#eaece6;border:1px solid #dde2d9;border-radius:14px;padding:0 25px 16px}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 0}.preview-toolbar h2{font-size:12px}.preview-toolbar span{font-size:11px;color:var(--muted)}.guide-paper{max-width:760px;margin:auto;background:var(--paper);box-shadow:0 5px 16px #273e2d0a;border:1px solid #dfe3da;border-radius:3px;overflow:hidden}.paper-accent{height:5px;background:var(--green)}.paper-content{padding:38px 40px 22px}.paper-content>h2{font-family:Georgia,serif;font-size:32px;font-weight:400;line-height:1.3;overflow-wrap:anywhere;white-space:pre-wrap}.client-line{font-size:13px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}.paper-rule{height:1px;background:var(--line);margin-top:26px}.empty-preview{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 12px}.empty-number{font-family:Georgia,serif;font-size:25px;background:#f0f3ec;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;color:#7e947d}.empty-preview h3{font-size:16px;font-weight:500;margin:20px 0 9px}.empty-preview p{font-size:13px;color:var(--muted);line-height:1.8;max-width:300px;margin:0}.example-lines{width:180px;display:grid;gap:8px;margin-top:23px}.example-lines span{height:6px;background:#f0f2ed;border-radius:6px}.example-lines span:nth-child(2){width:85%;margin:auto}.example-lines span:nth-child(3){width:60%;margin:auto}.paper-footer{border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:space-between;gap:15px;font-size:9px;color:#78847b}.export-note{text-align:center;color:var(--muted);font-size:11px;line-height:1.6;margin:15px 0 0}.app-footer{padding:25px 0;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}
@media(min-width:1450px){main{padding-top:48px}.empty-preview{min-height:350px}}
@media(max-width:1000px){.intro{align-items:flex-start;flex-direction:column}.workspace{grid-template-columns:310px minmax(0,1fr);gap:18px}.paper-content{padding:28px 22px 20px}.preview-panel{padding:0 15px 15px}.stage-note{flex-direction:column;gap:4px}}
@media(max-width:720px){.topbar{padding:16px;min-height:76px}.brand{font-size:15px}.brand small{font-size:10px}.local-badge{font-size:10px;padding:7px 9px}.brand-mark{width:34px;height:34px;font-size:22px}main{padding:28px 16px 0}h1{font-size:30px}.workspace{grid-template-columns:1fr}.card{padding:19px}.preview-toolbar span{font-size:10px}.paper-content>h2{font-size:28px}.empty-preview{min-height:260px}.app-footer{font-size:10px}.actions{flex-wrap:wrap}}

button:not(:disabled){cursor:pointer}.editor-steps{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:10px}.editor-step{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:9px;min-width:0}.editor-step img{width:64px;height:48px;object-fit:contain;background:var(--bg);border-radius:4px;flex-shrink:0}.step-details{min-width:0}.step-details strong{font-size:11px;color:var(--green)}.step-filename{display:block;font-size:11px;overflow-wrap:anywhere;margin-top:4px;line-height:1.5}.guide-step{margin:24px 0}.guide-step h3{font-size:14px;color:var(--green);margin:0 0 12px}.guide-step img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:5px}.upload-errors{font-size:12px;line-height:1.6;color:#8a352b;background:#fff3ef;border-radius:8px;padding:12px 12px 12px 28px;overflow-wrap:anywhere}

.step-details{flex:1}.step-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.step-actions button{font-size:11px;padding:5px 9px}.step-actions button:last-child{color:#8a352b}

/* Stage 3: compact step cards, native keyboard-accessible disclosure. */
.editor-step{display:block;padding:0;transition:border-color .15s,box-shadow .15s}
.editor-step.is-active{border-color:var(--green);box-shadow:0 0 0 2px #245f501a}
.editor-step details{min-width:0}
.editor-step summary{display:flex;align-items:center;gap:9px;cursor:pointer;padding:10px;border-radius:8px;list-style:none}
.editor-step summary::-webkit-details-marker{display:none}
.editor-step summary::after{content:'+';color:var(--green);font-size:18px;margin-left:auto}
.editor-step details[open]>summary::after{content:'−'}
.editor-step summary:focus-visible,textarea:focus-visible{outline:3px solid #a8c4ad;outline-offset:3px}
.step-details strong{display:block;overflow-wrap:anywhere;line-height:1.5}
.step-fields{padding:0 12px 12px;border-top:1px solid var(--line)}
.step-fields label{margin-top:12px}
.step-fields textarea{font:inherit;width:100%;max-width:100%;min-height:90px;resize:vertical;border:1px solid #cdd6cf;border-radius:8px;padding:10px;font-size:13px;color:var(--ink)}
.step-fields .step-actions{margin-top:12px}
.step-instructions{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);margin:0 0 15px}
.guide-step h3{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.6}
.workspace>*{min-width:0}.guide-step img{max-width:100%}

.actions{flex-wrap:wrap;justify-content:flex-end;max-width:480px}.project-state{display:flex;flex-wrap:wrap;gap:12px;margin:-10px 0 22px;font-size:12px;color:var(--muted)}#save-state{font-weight:600;color:var(--green)}#save-state.is-dirty{color:#965b16}


select{font:inherit;width:100%;padding:10px;border:1px solid #cdd6cf;border-radius:8px;background:#fff;color:var(--ink);font-size:13px}select:focus-visible{outline:3px solid #a8c4ad;outline-offset:3px}input[type=range]{padding:6px 0;accent-color:var(--green)}#image-width-value{float:right;color:var(--green)}#layout-summary{margin:0 0 12px}.preview-toolbar{flex-wrap:wrap}

/* Touch targets without changing the established desktop layout. */
@media (pointer:coarse){button,select,.editor-step summary{min-height:44px}.step-actions{gap:8px}}
