:root{font-family:Arial,Helvetica,sans-serif;color:#493a32;background:#f8f6f3;font-size:16px;line-height:1.55;--brown:#754d39;--line:#e8ded2;--soft:#fbf7f2}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.file-button{cursor:pointer}button{border:1px solid var(--line);background:white;color:#493a32;border-radius:8px;padding:10px 16px;min-height:44px}button:hover{border-color:#bc8c69}button.primary{background:var(--brown);color:white;border-color:var(--brown)}button:disabled{opacity:.55}a{color:var(--brown)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.file-button:focus-within{outline:3px solid #bc8c69;outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:white;border-right:1px solid var(--line);padding:32px 24px;display:flex;flex-direction:column}.brand{font:italic 38px/1.2 Georgia,serif;color:var(--brown);text-decoration:none}.brand span{display:block;font:10px/1.7 Arial,sans-serif;letter-spacing:.22em;margin:4px 0 30px}.studio-label{font-size:13px;font-weight:700;letter-spacing:.1em;margin-bottom:24px}.studio-label span{background:var(--soft);padding:3px 6px;border-radius:4px;font-size:12px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{text-align:left;border:0;background:none;padding:12px}.sidebar nav button.active{background:var(--soft);color:var(--brown);font-weight:600}.sidebar-foot{margin-top:auto;font-size:13px;color:#766a60;display:grid;gap:8px}.sidebar-foot button,.file-button{font-size:14px}.file-button{display:block;border:1px solid var(--line);padding:10px 12px;border-radius:8px;text-align:center}.file-button input{display:none}main{margin-left:238px}.toolbar{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:26px 32px;background:#fffdfa;border-bottom:1px solid var(--line)}.eyebrow{display:block;font-size:12px;font-weight:600;letter-spacing:.12em;color:#8b7667;margin:0 0 5px}.toolbar h1{font:400 30px/1.3 Georgia,serif;color:var(--brown);margin:0}.tools{display:flex;gap:16px;align-items:center}.tools span{font-size:13px;color:#766a60}.workspace{display:grid;grid-template-columns:minmax(330px,430px) minmax(400px,1fr);gap:24px;padding:24px}.editor{min-width:0}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:18px}.panel h2{font:400 24px/1.3 Georgia,serif;color:var(--brown);margin:0 0 18px}.panel h3{font-size:17px;margin:0 0 14px}label{display:block;font-size:14px;font-weight:500;margin-bottom:16px}label>input,label>select,label>textarea{display:block;margin-top:7px;width:100%}input,select,textarea{border:1px solid #dacbbd;background:white;color:#493a32;border-radius:7px;padding:10px 12px;min-height:44px}textarea{resize:vertical;min-height:96px;line-height:1.6}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='m3 5 4.5 5L12 5' fill='none' stroke='%23754d39' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:35px}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hint,.preview-note{font-size:14px;color:#766a60;margin:0 0 16px;line-height:1.6}.callout{background:var(--soft);border-left:3px solid #bc8c69;padding:14px 16px;border-radius:0 8px 8px 0;font-size:14px;margin-bottom:18px}.section-setting{border-bottom:1px solid #eee5dd;padding:12px 0}.section-setting:last-child{border-bottom:0}.section-top{display:flex;gap:9px;align-items:center;margin-bottom:8px}.section-top label{margin:0;flex:1;font-size:15px}.section-top input{min-height:0;accent-color:var(--brown);width:17px;height:17px}.small{font-size:13px;padding:4px 9px;min-height:32px}.section-setting>input{width:100%;font-size:14px}.preview-pane{position:sticky;top:20px;height:calc(100vh - 158px);min-height:530px;background:#efebe5;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}.preview-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:16px 18px;background:white;border-bottom:1px solid var(--line)}.preview-toolbar strong{font-size:16px}.segmented{display:flex;gap:4px}.segmented button{font-size:13px;min-height:36px;padding:7px 10px}.segmented button.active{background:var(--soft);border-color:#bc8c69}.preview-note{padding:12px 18px;margin:0;font-size:12px}.frame-holder{flex:1;overflow:auto;text-align:center;padding:0 12px 12px}iframe{display:block;width:100%;height:100%;min-height:400px;border:0;background:white;box-shadow:0 4px 15px #493a3210;margin:auto}iframe.mobile{width:min(390px,100%)}details.form-section{background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:14px;overflow:hidden}details.form-section>summary{padding:16px 20px;cursor:pointer;font-weight:600;min-height:54px}.form-body{padding:0 20px 20px}.item-form{background:var(--soft);padding:15px;border-radius:8px;margin:12px 0}.item-form label{margin-bottom:10px}.danger-link{border:0;background:none;font-size:13px;color:#9b4937;padding:2px;min-height:30px}.check-label{display:flex;gap:10px;align-items:flex-start;font-size:14px}.check-label input{margin:5px 0 0;width:17px;min-height:17px;accent-color:var(--brown)}#notice{margin:16px 24px 0;padding:12px 18px;background:#eaf1e9;border-radius:8px;color:#365c45;font-size:14px}#notice.error{background:#f9eae5;color:#923f2b}.actions{display:flex;gap:10px;flex-wrap:wrap}.block-button{display:block;width:100%;margin-bottom:10px}.export-summary{font-size:14px}.tag{display:inline-block;padding:3px 8px;border-radius:4px;background:var(--soft);font-size:12px;color:var(--brown);margin-bottom:10px}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;max-width:820px;width:calc(100% - 32px);color:#493a32}dialog::backdrop{background:#493a3270}dialog h2{font:400 27px Georgia,serif;color:var(--brown);margin:0 0 18px}.dialog-head{display:flex;justify-content:space-between;gap:20px}.dialog-head button{min-height:36px}#export-code{width:100%;min-height:300px;height:42vh;font:12px/1.6 monospace;background:#faf8f5}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}#new-dialog{max-width:530px}#export-help{font-size:14px}.status-list{padding-left:20px;font-size:14px;line-height:1.8}input[type=color]{padding:5px;width:100%;height:44px}.guide-step{padding:0 0 18px}.guide-step strong{display:block;margin-bottom:6px}.guide-step p{font-size:14px;margin:0}.muted{color:#766a60}.import-target{margin-top:20px}.import-area{min-height:180px;width:100%}.editor hr{border:0;border-top:1px solid var(--line);margin:20px 0}
@media(max-width:1120px){.sidebar{width:205px;padding:25px 18px}main{margin-left:205px}.workspace{grid-template-columns:340px minmax(320px,1fr);padding:18px;gap:18px}.tools span{display:none}.toolbar{padding:22px}}
@media(max-width:900px){.sidebar{position:static;width:auto;padding:15px 18px}.brand{font-size:28px}.brand span,.studio-label,.sidebar-foot{display:none}.sidebar nav{display:flex;overflow:auto;gap:5px;margin-top:10px}.sidebar nav button{white-space:nowrap;font-size:14px;padding:8px 10px}.sidebar{border-right:0;border-bottom:1px solid var(--line)}main{margin:0}.workspace{grid-template-columns:1fr}.preview-pane{position:static;height:720px}.toolbar h1{font-size:26px}.toolbar{gap:10px;padding:20px 18px}.toolbar .primary{font-size:14px}.row{gap:10px}.panel{padding:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
