:root{color-scheme:light;--paper:#f5f3eb;--surface:#fffef8;--ink:#272e27;--muted:#60665a;--line:#d7d8cb;--accent:#365f45;--focus:#9a511c;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.45}
button,input,textarea,select{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.48}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.skip{position:fixed;z-index:20;left:16px;top:-80px;padding:12px 18px;background:var(--ink);color:white}
.skip:focus{top:12px}
.masthead{position:sticky;top:0;z-index:5;height:76px;display:flex;gap:20px;align-items:center;padding:0 28px;border-bottom:1px solid var(--line);background:var(--paper)}
.wordmark{text-decoration:none;font-weight:700;font-size:17px;letter-spacing:-.035em}
.page-name{padding-left:20px;border-left:1px solid #bdc1b1;color:var(--muted);font-size:13px}
.button{min-height:42px;padding:10px 16px;border:1px solid transparent;border-radius:5px;font-weight:600}
.primary{background:var(--ink);color:white}
.masthead .button{margin-left:auto}
.button span{margin-left:10px}
.workspace{display:grid;grid-template-columns:390px minmax(0,1fr);height:calc(100dvh - 76px)}
.editor{overflow:auto;padding:27px 25px 35px;border-right:1px solid var(--line);scrollbar-gutter:stable}
.editor-heading h1{font:400 31px/1.1 Georgia,"Times New Roman",serif;letter-spacing:-.025em;margin:0 0 12px}
.editor-heading p{font-size:13px;color:var(--muted);max-width:32ch;margin:0 0 25px}
.example-picker{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:10px}
.example-picker>label{font-weight:600}
.example-picker select{min-height:42px}
.feedback{font-size:12px;color:var(--muted);min-height:18px;margin:12px 0 16px}
.feedback.error{color:#9b321a}
.editor details{border-top:1px solid var(--line)}
.editor details:last-of-type{border-bottom:1px solid var(--line)}
.editor summary{padding:15px 0;cursor:pointer;font-weight:650;display:list-item;list-style-position:inside}
.editor summary::marker{color:#6c7962}
.section-content{padding:0 0 18px}
.field{display:grid;gap:6px;margin-bottom:14px;min-width:0}
.field>span{font-size:12px;font-weight:600}
.field small{font-size:11px;color:var(--muted)}
input,textarea,select{width:100%;min-width:0;border:1px solid #acb5a3;border-radius:4px;background:var(--surface);color:var(--ink);padding:9px 10px;min-height:40px}
textarea{resize:vertical;line-height:1.45;min-height:76px}
textarea.short{min-height:65px}
input[type=color]{padding:4px;min-width:44px;max-width:70px;cursor:pointer}
input:invalid:not(:placeholder-shown),textarea:invalid:not(:placeholder-shown){border-color:#a9492b}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.accent-field{display:grid;grid-template-columns:66px 1fr;gap:10px}
.accent-field input[type=text]{font-family:ui-monospace,monospace}
.item-card{border:1px solid var(--line);border-radius:5px;margin:0 0 10px;background:#eeefe5}
.editor .item-card summary{padding:12px 13px;font-size:12px;font-weight:600}
.item-card .item-content{padding:0 13px 12px}
.item-card .field{margin-bottom:11px}
.item-card textarea{min-height:95px}
.item-card .item-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.text-button{border:0;background:transparent;color:var(--accent);font-weight:600;padding:8px 0;min-height:40px;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.remove-button{border:0;background:transparent;color:#92472d;font-weight:600;font-size:12px;min-height:36px;padding:5px 0}
.add-button{display:block;border:1px solid #a9b69f;background:transparent;color:var(--ink);border-radius:4px;width:100%;padding:9px 12px;min-height:41px;font-size:12px;font-weight:600}
.brief-actions{display:flex;justify-content:space-between;gap:16px;padding-top:15px}
.privacy-note{font-size:11px;line-height:1.5;color:var(--muted);max-width:40ch;margin:15px 0 0}
.preview-panel{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;min-width:0;min-height:0;background:#e6e7dc;padding:18px}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 0 14px;font-size:12px}
.preview-label{display:flex;align-items:center;gap:8px}
.preview-label strong{font-weight:600}
.live-dot{width:6px;height:6px;border-radius:100%;background:#557b4d}
.viewport-buttons{display:flex;gap:3px;background:#d7dbcd;padding:3px;border-radius:5px}
.viewport-buttons button{border:0;border-radius:3px;padding:7px 11px;font-size:11px;background:transparent;color:#4e5847;min-height:32px}
.viewport-buttons button[aria-pressed=true]{background:#fafbf3;color:#273027;box-shadow:0 1px 3px #1c33151a}
.preview-stage{position:relative;min-height:0;overflow:hidden;display:flex;justify-content:center;align-items:stretch;background:#fffef8;border:1px solid #bfc7b3;box-shadow:0 2px 13px #33402609;border-radius:3px}
.preview-stage.phone{background:#d5dacc}
.preview-stage iframe{display:block;width:100%;height:100%;border:0;background:#fff;transition:width 180ms ease-out}
.preview-stage.phone iframe{width:min(390px,100%);border-inline:1px solid #b9c1ad}
.preview-empty{position:absolute;inset:0;display:grid;place-items:center;color:#68745e;font:22px Georgia,serif}
.preview-empty[hidden]{display:none}
.preview-footer{display:flex;justify-content:space-between;gap:20px;padding-top:12px;color:#5b6552;font-size:11px;align-items:baseline}
.preview-footer p{margin:0}
.preview-footer a{white-space:nowrap;text-underline-offset:3px}
.preview-error{border:1px solid #bb775b;padding:10px 12px;margin-bottom:12px;border-radius:3px;color:#792a17;background:#fff0df;font-size:12px}
.preview-error[hidden]{display:none}
.input-hint{font-size:11px;color:#626b58;margin:-4px 0 12px}
.loading .live-dot{background:#8d8e79}
@media(min-width:1600px){.workspace{grid-template-columns:420px minmax(0,1fr)}
}
@media(max-width:900px){.workspace{grid-template-columns:340px minmax(0,1fr)}
.editor{padding:24px 20px}
.preview-panel{padding:14px}
.preview-footer{flex-direction:column;gap:7px}
}
@media(max-width:700px){.masthead{height:auto;min-height:72px;padding:14px 16px;gap:12px;flex-wrap:wrap}
.page-name{font-size:11px;padding-left:12px}
.masthead .button{font-size:11px;padding:9px 11px;min-height:38px}
.button span{margin-left:4px}
.workspace{height:auto;display:flex;flex-direction:column}
.editor{overflow:visible;padding:25px 19px 24px;border-right:0;border-bottom:1px solid var(--line);order:2}
.editor-heading p{max-width:46ch;margin-bottom:20px}
.preview-panel{height:58dvh;min-height:430px;order:1;padding:13px 12px 12px}
.preview-toolbar{padding-bottom:11px}
.preview-footer{font-size:10px;gap:4px}
.preview-footer p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%}
.editor-heading h1{font-size:30px}
.field-row{gap:12px}
.example-picker{grid-template-columns:90px 1fr}
}
@media(max-width:370px){.page-name{display:none}
.preview-footer a{display:none}
}
@media(prefers-reduced-motion:reduce){.preview-stage iframe{transition:none}
}
.preview-toolbar{grid-row:1}
.preview-error{grid-row:2}
.preview-stage{grid-row:3}
.preview-footer{grid-row:4}
[hidden]{display:none!important}
.photo-controls{margin-bottom:15px}
.photo-controls .field{margin-bottom:10px}
.photo-button{min-height:38px;padding:8px 12px;border:1px solid #a9b69f;border-radius:4px;color:var(--ink);background:#f9faef;font-weight:600;font-size:12px}
.photo-controls>.text-button{margin-left:12px}
.photo-feedback{font-size:11px;color:#5c6a51;line-height:1.45;margin:8px 0 0;min-height:1em}
.photo-feedback.error{color:#9b321a}
.embedded-photo{margin:0 0 10px;padding:10px;border:1px solid #b8c5ad;background:#e5eddc;border-radius:4px;font-size:11px;overflow-wrap:anywhere}
.photo-size{display:flex;align-items:center;gap:10px;font-size:11px;margin:0 0 10px}
.photo-size>span{white-space:nowrap;color:var(--muted)}
.photo-size select{font-size:11px;min-height:34px;padding:6px 9px}
.marker-placement{margin:15px 0 12px}
.position-map{display:block;position:relative;width:100%;max-width:100%;overflow:hidden;padding:0;border:1px solid #9eac91;border-radius:4px;background:#1c2920;cursor:crosshair}
.position-map img{display:block;width:100%;height:auto}
.position-pin{position:absolute;width:14px;height:14px;border-radius:50%;background:var(--pin-color,#d9a96f);border:2px solid white;box-shadow:0 0 0 1px #233224,0 1px 5px #0006;transform:translate(-50%,-50%);pointer-events:none}
.marker-placement .input-hint{font-size:11px;margin:0 0 7px}
.edition-theme{display:grid;grid-template-columns:1fr 1fr 1.6fr;gap:12px;margin:8px 0 14px;padding:0;border:0}
.edition-theme legend{margin:0 0 9px;font-weight:600;font-size:13px}
.edition-theme label{display:grid;gap:5px;font-size:12px}
.edition-theme select,.edition-theme input{width:100%;min-height:38px}
