:root{color-scheme:light;--ink:#1c2928;--green:#183d38;--accent:#d5edbb;--line:#dde2df;--muted:#6a7772;--bg:#f2f4f1}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}header{height:100px;padding:0 4.2%;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center;color:var(--green);text-decoration:none;font-size:23px;font-weight:650;letter-spacing:-.7px}.brand-icon{display:grid;place-items:center;background:var(--green);color:var(--accent);width:44px;height:48px;border-radius:5px;font-family:Georgia,serif;font-style:italic;font-size:36px}.brand small{display:block;font-size:10px;letter-spacing:1.9px;font-weight:550;margin-top:6px}.header-note{color:var(--muted);font-size:14px;display:flex;gap:9px;align-items:center}.privacy-dot{width:6px;height:6px;border-radius:50%;background:#638454}main{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:36px;max-width:1500px;margin:auto;padding:30px 4.2% 42px}.editor{background:white;border:1px solid var(--line);border-radius:12px;padding:23px;align-self:start}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}h1{font-size:18px;margin:0;font-weight:650;letter-spacing:-.35px}#charCount{font-size:12px;color:var(--muted);white-space:nowrap}textarea{display:block;width:100%;resize:vertical;min-height:220px;height:280px;padding:14px;border:1px solid #d4dcd7;border-radius:7px;line-height:1.65;font:15px/1.65 inherit;font-family:inherit;font-size:15px;color:var(--ink);background:#fcfdfb}textarea:focus,select:focus,button:focus-visible,input:focus-visible{outline:3px solid #accea5;outline-offset:2px}.settings-title{font-size:13px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin:23px 0 17px}.field{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;align-items:center;margin:12px 0}label{font-size:14px}select{min-width:0;width:100%;background:white;border:1px solid #d4dcd7;padding:9px 7px;font:14px inherit;color:var(--ink);border-radius:5px}.range-field{margin:20px 0}.range-field label{display:flex;justify-content:space-between}.range-field output{color:var(--muted);font-variant-numeric:tabular-nums}input[type=range]{width:100%;margin:13px 0 0;accent-color:var(--green);cursor:pointer}button{font-family:inherit;font-size:14px;font-weight:550;cursor:pointer;transition:background .15s,transform .15s;border-radius:6px;min-height:42px}button:disabled{opacity:.42;cursor:default}button:not(:disabled):active{transform:translateY(1px)}.rewrite{width:100%;border:1px solid #bdccc1;background:#f5f9f1;color:var(--green);padding:9px}.rewrite span{font-size:21px;vertical-align:-1px;margin-right:5px}.rewrite:hover{background:#ebf3e4}.hint{font-size:13px;line-height:1.55;color:var(--muted);margin:12px 0 0}.preview-toolbar{min-height:67px;display:flex;justify-content:space-between;align-items:start;gap:16px}.eyebrow{font-size:11px;letter-spacing:1.7px;color:var(--muted)}h2{font-size:21px;letter-spacing:-.5px;margin:6px 0 18px;font-weight:550}.exports{display:flex;gap:8px}.primary{background:var(--green);border:1px solid var(--green);color:#fff;padding:10px 19px}.primary:not(:disabled):hover{background:#28594e}.secondary{border:1px solid #c7d2ca;color:var(--green);background:transparent;padding:10px 18px}.preview-stage{min-height:520px;background:#dce1dc;border:1px solid #d4dad3;border-radius:10px;padding:25px;display:flex;justify-content:center;align-items:center;overflow:hidden}#preview{max-width:100%;max-height:calc(100vh - 265px);height:auto;width:auto;object-fit:contain;box-shadow:0 10px 24px #23342818}#preview[hidden],#empty[hidden],#loading[hidden]{display:none}#loading,#empty{text-align:center;color:var(--muted);line-height:1.8}#empty span{font-size:14px}.page-navigation{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:16px}#pageStatus{font-size:14px;font-variant-numeric:tabular-nums}.nav-button{width:39px;min-height:36px;background:white;border:1px solid #d2dad3;font-size:20px;font-weight:400}.text-button{border:0;background:none;color:var(--green);margin-left:10px;text-decoration:underline;text-underline-offset:3px;font-size:13px}.status{color:var(--muted);text-align:center;min-height:18px;font-size:13px;margin:12px 0 0}.warning{font-size:13px;line-height:1.5;background:#fff5dc;color:#72521b;padding:10px;border-radius:5px}footer{padding:18px 4.2%;border-top:1px solid var(--line);color:var(--muted);font-size:12px;display:flex;justify-content:space-between}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1500px){header,footer{padding-left:max(4.2%,calc((100vw - 1374px)/2));padding-right:max(4.2%,calc((100vw - 1374px)/2))}}@media(max-width:950px){main{gap:20px;padding:24px 22px;grid-template-columns:310px minmax(0,1fr)}.editor{padding:18px}.preview-toolbar{flex-direction:column;gap:0}.exports{width:100%;margin-bottom:14px}.primary{flex:1}.preview-stage{padding:12px}.page-navigation{gap:9px;flex-wrap:wrap}.text-button{margin:0}.header-note{font-size:12px}#preview{max-height:none}}@media(max-width:700px){header{height:80px;padding:0 20px}.header-note{display:none}main{display:flex;flex-direction:column;padding:20px 16px;gap:26px}.editor{width:100%}textarea{height:190px;min-height:160px;font-size:16px}.workspace{min-width:0}.preview-toolbar{flex-direction:row;align-items:center}.exports{width:auto}.primary{padding:10px 13px}.preview-stage{min-height:380px}.brand small{font-size:9px}footer{padding:20px;line-height:1.5;gap:16px}footer span{white-space:nowrap}}

.angle-button{width:100%;margin:3px 0 11px;background:transparent;border:1px solid #c6d2c8;color:var(--green);min-height:36px;font-size:13px}.check-field{display:flex;align-items:center;gap:9px;margin:20px 0;font-size:14px}.check-field input{accent-color:var(--green);width:16px;height:16px}
.preset-actions,.preset-transfer-actions{display:flex;gap:6px;flex-wrap:wrap}.preset-actions button,.preset-transfer-actions button{border:1px solid #c6d2c8;background:#f5f9f1;color:var(--green);padding:6px 9px;font-size:12px}.preset-transfer-actions{margin-top:7px}.preset-transfer-actions button{background:#fff}#presetName{min-width:0;width:100%;padding:9px 7px;border:1px solid #d4dcd7;border-radius:5px;font:inherit;font-size:13px}

#marginMark{min-width:0;width:100%;padding:9px 7px;border:1px solid #d4dcd7;border-radius:5px;font:inherit;font-size:14px}

.align-toolbar{display:flex;gap:6px;margin-bottom:10px}.align-toolbar button{flex:1;background:#f5f9f1;border:1px solid #c6d2c8;color:var(--green);font-size:13px}.align-toolbar+.hint{margin:0 0 10px}

#text{tab-size:4}

/* Clear editor / canvas / inspector workspace */
main.generator-layout{width:100%;max-width:1900px;margin:0 auto;padding:20px 2.4% 28px;display:grid;grid-template-columns:minmax(245px,285px) minmax(390px,1fr) minmax(250px,285px);grid-template-areas:"editor workspace settings";align-items:start;gap:18px}
.generator-layout>.editor{grid-area:editor;position:sticky;top:14px;padding:17px;border-radius:10px;max-height:calc(100vh - 28px);overflow:auto}
.generator-layout>.workspace{grid-area:workspace;min-width:0}
.generator-layout>.settings-panel{grid-area:settings;position:sticky;top:14px;max-height:calc(100vh - 28px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:17px}
.section-heading{align-items:start;margin-bottom:10px}.section-heading h1{font-size:20px}.panel-caption{font-size:12px;color:var(--muted);margin:4px 0 0}.section-heading #charCount{padding-top:7px}
.generator-layout textarea{height:calc(100vh - 315px);min-height:300px;max-height:660px;resize:vertical;padding:12px;border-color:#dce3df;background:#fcfdfb;line-height:1.65}
.align-toolbar{display:flex;gap:4px;margin-bottom:4px;width:max-content;padding:3px;background:#f1f4f1;border:1px solid #e3e8e4;border-radius:8px}.align-toolbar button{display:grid;place-items:center;width:36px;height:32px;min-height:32px;flex:0 0 36px;padding:5px;background:transparent;border:0;border-radius:5px;color:#52625a}.align-toolbar button:hover{background:#e4ebe5;color:var(--green)}.align-toolbar svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.editor-shortcut-hint{font-size:11px;margin:5px 0 10px}
.help-details,.settings-details{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}.help-details summary,.settings-details summary{cursor:pointer;list-style:none;position:relative;padding-right:20px;font-size:12px;font-weight:550;color:var(--green)}.help-details summary::-webkit-details-marker,.settings-details summary::-webkit-details-marker{display:none}.help-details summary:after,.settings-details summary:after{content:'+';position:absolute;right:2px;top:-2px;color:var(--muted);font-size:17px;font-weight:400}.help-details[open] summary:after,.settings-details[open] summary:after{content:'−'}.help-copy{font-size:12px;line-height:1.5;color:var(--muted)}.help-copy pre{white-space:pre-wrap;background:#f5f7f4;padding:8px;border-radius:5px;color:var(--ink)}
.settings-heading{margin-bottom:12px}.settings-heading .eyebrow{font-size:10px}.settings-heading h2{font-size:17px;margin:3px 0 13px;letter-spacing:-.3px}.settings-panel .field{grid-template-columns:minmax(78px,.8fr) minmax(105px,1.2fr);gap:8px;margin:9px 0}.settings-panel label{font-size:12px}.settings-panel select,.settings-panel input[type=text]{font-size:12px;padding:8px 7px}.settings-panel input[type=color]{width:100%;height:34px;padding:3px;border:1px solid #d4dcd7;border-radius:5px;background:#fff}.settings-panel .range-field{margin:15px 0}.settings-panel .range-field label{font-size:12px}.settings-panel .range-field output,.range-value{font-size:12px;color:var(--muted)}.settings-panel .check-field{font-size:12px;margin:10px 0;gap:7px}.settings-panel .check-field input{flex:0 0 15px;width:15px;height:15px}.settings-panel .hint{font-size:11px;line-height:1.45}.settings-panel .settings-details{margin-top:14px}.settings-panel .preset-actions{gap:5px}.settings-panel .preset-actions button{min-height:32px;font-size:11px;padding:5px 7px}.settings-panel #marginMark{font-size:12px}.settings-panel .rewrite{font-size:12px;min-height:36px}.settings-panel .angle-button{font-size:12px}
.workspace{position:relative}.preview-toolbar{min-height:58px;align-items:center}.preview-toolbar h2{font-size:17px;margin:3px 0 10px}.preview-toolbar .eyebrow{font-size:10px}.preview-toolbar .exports{align-items:center}.workspace-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.workspace-actions .status{flex:1;text-align:center;margin:0;min-height:0}.workspace-actions .exports{gap:6px}.workspace-actions button{min-height:36px;padding:7px 12px;font-size:12px}.workspace-actions .text-button{margin:0}.preview-stage{min-height:min(680px,calc(100vh - 160px));height:calc(100vh - 160px);max-height:790px;border-radius:9px;background:#e6e9e5;padding:18px}.generator-layout #preview{max-width:100%;max-height:calc(100vh - 205px);box-shadow:0 7px 22px #23342820}
@media(max-width:1100px){main.generator-layout{grid-template-columns:minmax(260px,1fr) 275px;grid-template-areas:"workspace workspace" "editor settings";gap:16px;padding:18px 22px}.generator-layout>.editor,.generator-layout>.settings-panel{position:static;max-height:none}.preview-stage{height:min(68vh,720px);min-height:440px}.generator-layout textarea{height:360px}.generator-layout #preview{max-height:calc(68vh - 45px)}}
@media(max-width:700px){main.generator-layout{display:flex;flex-direction:column;padding:14px 12px 24px;gap:14px}.generator-layout>.editor,.generator-layout>.workspace,.generator-layout>.settings-panel{width:100%;position:static;max-height:none}.generator-layout>.editor{order:0}.generator-layout>.workspace{order:1}.generator-layout>.settings-panel{order:2}.generator-layout textarea{height:220px;min-height:180px}.settings-panel .field{grid-template-columns:minmax(95px,.9fr) minmax(130px,1.1fr)}.preview-toolbar{flex-direction:row;align-items:center}.preview-toolbar .exports{width:auto;margin:0}.preview-stage{height:64vh;min-height:360px;padding:10px}.generator-layout #preview{max-height:calc(64vh - 25px)}.workspace-actions{flex-wrap:wrap}.workspace-actions .status{order:3;flex-basis:100%}.workspace-actions .exports{margin:0}.workspace-actions .primary{flex:0 1 auto}.settings-panel{padding:16px}.settings-panel .settings-details[open]{padding-bottom:7px}}
.preview-toolbar .preview-actions{display:flex;align-items:center;gap:8px}.preview-toolbar .page-navigation{display:flex;align-items:center;gap:6px;margin:0}.preview-toolbar .nav-button{width:32px;min-height:32px;height:32px;font-size:17px}.preview-toolbar #pageStatus{font-size:12px;white-space:nowrap}.preview-toolbar .exports{display:flex;gap:6px}.preview-toolbar .exports button{min-height:34px;padding:6px 10px;font-size:12px}.workspace-actions{justify-content:flex-start}.workspace-actions .status{text-align:left}
@media(max-width:700px){.preview-toolbar{flex-wrap:wrap;gap:9px}.preview-toolbar .preview-actions{width:100%;justify-content:space-between}.preview-toolbar h2{margin-bottom:0}.preview-toolbar .exports{width:auto}.preview-toolbar .exports button{flex:0 1 auto}.workspace-actions .status{order:initial;flex-basis:auto}}
