:root{--ink:#313a35;--muted:#77796f;--line:#b7ad953d;--paper:#f7f3e9;--green:#334c43;--gold:#9b7943;color:var(--ink);background:#e9e7dd;font-family:var(--font-ui);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,.button{cursor:pointer;border:1px solid #b9ae974f;border-radius:8px;background:#fffcf4;padding:10px 14px;line-height:1.35;transition:background .15s,color .15s}button:hover,.button:hover{background:#e5e4d5}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #8d7549;outline-offset:3px}.primary{background:var(--green);color:#fcf7e9;border-color:var(--green)}.primary:hover{background:#456052}input,select,textarea{display:block;width:100%;border:1px solid #c7c1b1;background:#fffdf7;border-radius:7px;padding:10px 11px;min-height:42px}textarea{resize:vertical;line-height:1.65}input[type=checkbox]{display:inline;width:auto;min-height:0;accent-color:var(--green)}label{display:block;font-size:12px;line-height:1.6}label>input,label>select,label>textarea{margin-top:5px}label small{color:var(--muted);font-size:10px}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.editor-header{display:flex;align-items:center;gap:28px;background:#293d35;color:#ede8d6;padding:20px 30px;border-bottom:1px solid #a68c4f;position:relative;z-index:2}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#dfc58e;font-size:32px}.brand span{font-size:16px;letter-spacing:.16em}.brand small{display:block;font-size:9px;letter-spacing:.34em}.header-title{padding-left:24px;border-left:1px solid #dfc58e33}.header-title h1{font-size:20px;margin:0 0 4px;font-weight:400}.header-title p{margin:0;color:#aebaab;font-size:11px}.header-actions{margin-left:auto;display:flex;gap:8px}.header-actions button{background:#ffffff0c;color:#ebe5d4;border-color:#e0cd9840}.header-actions .primary{background:#dcc48f;color:#283b31}.header-actions span{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:6px;border-radius:10px;background:#283b3122}.workspace{display:grid;grid-template-columns:254px minmax(0,1fr);max-width:1680px;margin:auto;min-height:calc(100dvh - 92px)}.catalog-panel{border-right:1px solid var(--line);background:#eeece2;position:sticky;top:0;max-height:100dvh;display:flex;flex-direction:column}.catalog-head{padding:25px 18px 16px}.catalog-head h2{font-size:16px;font-weight:400;margin:0 0 16px}.catalog-head h2 span{color:#8e8066;font-size:12px;margin-left:6px}.search input{background:#faf8f0;font-size:12px}.catalog-filters{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:9px}.catalog-filters select{font-size:11px;padding:6px;min-height:34px}.catalog-filters button{grid-column:1/-1;font-size:11px;padding:6px}.catalog-filters button[aria-pressed=true]{background:#dae3d6}.card-list{overflow:auto;padding:0 9px 20px;overscroll-behavior:contain}.card-choice{width:100%;display:flex;gap:11px;align-items:center;text-align:left;border:1px solid transparent;background:transparent;margin:2px 0;padding:7px;border-radius:8px}.card-choice[aria-current=true]{background:#fffdf6;border-color:#a78f5480;box-shadow:0 3px 12px #4b47200b}.card-choice img{width:37px;height:53px;object-fit:cover;border-radius:4px;flex-shrink:0}.card-choice span{min-width:0}.card-choice strong{display:block;font-size:12px;font-weight:400;line-height:1.6}.card-choice small{font-size:9px;color:#7e806f}.draft-dot{color:#aa7430;font-size:14px;margin-left:auto}.editor-main{min-width:0;padding:30px 34px 48px}.selection-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;gap:12px}.eyebrow{font-size:10px;letter-spacing:.16em;color:#8b7958;margin:0 0 8px}.selection-heading h2{font-size:27px;line-height:1.3;font-weight:400;margin:0;letter-spacing:-.03em}.review-badge{white-space:nowrap;border:1px solid #bba57566;color:#876f43;padding:6px 9px;border-radius:5px;font-size:10px}.editor-columns{display:grid;grid-template-columns:minmax(240px,.87fr) minmax(320px,1.13fr);gap:25px;align-items:start}.preview-panel{position:sticky;top:24px;min-width:0}.preview-top{display:flex;justify-content:space-between;font-size:11px;padding:0 5px 12px;color:#717466}.preview-top span:last-child{color:#8a7857;font-size:10px}.preview-stage{border-radius:16px;background:radial-gradient(ellipse at 50% 36%,#586756,#2c3b31 70%);box-shadow:inset 0 0 0 1px #ffffff18,0 15px 28px #2b351318;padding:12px;position:relative;overflow:hidden}.preview-stage:before{content:'';position:absolute;inset:14px;border:1px solid #b5aa7336;border-radius:50% 50% 18px 18px;pointer-events:none}.preview-stage iframe{display:block;position:relative;border:0;width:100%;height:clamp(370px,40vw,585px);background:transparent}.segmented{display:flex;gap:3px;background:#e3e2d7;border-radius:8px;padding:3px;margin-top:17px}.segmented button{flex:1;border:0;background:transparent;padding:8px}.segmented button[aria-pressed=true]{background:#fcf9ee;box-shadow:0 1px 3px #0001}.preview-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}.wide{grid-column:1/-1}.preview-hint{font-size:11px;color:#7f7e6e;line-height:1.8;text-align:center}.source-note{border-top:1px solid var(--line);margin-top:20px;padding-top:15px;display:grid;gap:5px;font-size:9px;color:#929181;overflow-wrap:anywhere}.source-note strong{font-weight:400;color:#75735f}.source-note a{color:#8e7646;text-decoration:none}.form-panel{min-width:0;border:1px solid #c9c2ac75;background:var(--paper);border-radius:13px;overflow:hidden;box-shadow:0 4px 15px #403b1806}.form-tabs{display:flex;background:#eae8db;border-bottom:1px solid var(--line)}.form-tabs button{padding:17px 8px;flex:1;border:0;border-radius:0;font-size:12px;background:none;white-space:nowrap;position:relative}.form-tabs button[aria-pressed=true]{background:var(--paper);color:#8a692d}.form-tabs button[aria-pressed=true]:after{content:'';position:absolute;bottom:0;left:20%;right:20%;height:2px;background:#9c7e48}.form-tabs span{font-size:10px;margin-left:3px;color:#9e8350}.form-content{padding:24px}.form-content>label{margin:15px 0}.section-intro h3,.subsection h3{font-size:17px;font-weight:400;margin:0 0 9px}.section-intro p,.subsection p{font-size:11px;color:#878371;line-height:1.8;margin:0 0 23px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:15px 13px}.subsection{margin-top:27px;border-top:1px solid var(--line);padding-top:25px}.subsection h4{font-size:12px;font-weight:400;margin:22px 0 12px}.tag-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.tag{display:inline-flex;align-items:center;gap:5px;background:#e4e9db;border:1px solid #b6bea366;border-radius:6px;padding:3px 7px;font-size:11px}.tag button{border:0;background:transparent;padding:1px 4px;color:#73846b}.inline-form{display:flex;gap:7px}.inline-form input{flex:1;min-width:0}.keyword-list{display:flex;flex-wrap:wrap;gap:8px 13px}.keyword-list label{white-space:nowrap;font-size:11px}.upload-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.button{display:inline-block}.muted{font-size:11px;color:#878371;line-height:1.7}.code-editor{font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2;background:#f0f0e6;white-space:pre;overflow:auto}.advanced{margin-top:30px;border-top:1px solid var(--line);padding-top:20px}.advanced summary{cursor:pointer}.advanced p{font-size:11px;line-height:1.7;color:#878371}.advanced button{margin-top:10px}.json-label{margin-top:30px!important}.form-footer{border-top:1px solid var(--line);padding:14px 19px;font-size:9px;color:#858774;display:flex;justify-content:space-between;gap:12px;background:#eeede2}.change-item{border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:12px}.change-item h4{font:11px monospace;margin:0;padding:10px;background:#eae8dc}.change-values{display:grid;grid-template-columns:1fr 1fr}.change-values>div{padding:12px;min-width:0}.change-values>div+div{border-left:1px solid var(--line);background:#edf0e3}.change-values small{font-size:9px;color:#858371}.change-values pre{font:11px/1.7 var(--font-ui);white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.comment{padding:13px 0;border-bottom:1px solid var(--line)}.comment strong{font-size:11px;font-weight:400;color:#8a7148}.comment p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.history-row{font-size:11px;padding:11px 0;border-bottom:1px solid var(--line);color:#7d7967}.export-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:20px}.export-actions button{font-size:11px}.empty-note{font-size:12px;line-height:1.9;color:#8b8776;padding:12px 0}.message{position:fixed;z-index:20;left:50%;bottom:22px;transform:translateX(-50%);background:#35483f;color:#f6f1e1;padding:13px 20px;border-radius:9px;box-shadow:0 5px 25px #0003;max-width:min(90vw,600px);font-size:12px;line-height:1.6}.message[data-error=true]{background:#754a3a}dialog{max-width:480px;width:calc(100vw - 32px);border:1px solid #b9a171;border-radius:16px;padding:30px;background:var(--paper);color:var(--ink);box-shadow:0 20px 90px #0004}dialog::backdrop{background:#1c2b2580;backdrop-filter:blur(4px)}dialog h2{font-size:23px;font-weight:400}dialog p{font-size:12px;line-height:1.9}.dialog-close{position:absolute;top:8px;right:8px;padding:5px 11px;border:0;background:transparent;font-size:22px}.dialog-actions{display:grid;gap:9px;margin:23px 0}.dialog-actions button{padding:13px}[hidden]{display:none!important}@media(min-width:1500px){.editor-main{padding-left:45px;padding-right:45px}.editor-columns{gap:40px}}@media(max-width:1100px){.workspace{grid-template-columns:215px minmax(0,1fr)}.editor-main{padding:25px 20px}.editor-columns{grid-template-columns:minmax(210px,.8fr) minmax(270px,1.2fr);gap:17px}.form-content{padding:18px}.form-tabs button{font-size:11px}.preview-stage iframe{height:390px}.editor-header{padding:18px 20px;gap:16px}}@media(max-width:850px){.workspace{grid-template-columns:190px minmax(0,1fr)}.editor-columns{grid-template-columns:1fr}.preview-panel{position:relative;top:auto}.preview-stage iframe{height:430px}.preview-controls{grid-template-columns:1fr 1fr 1fr}.preview-controls .wide{grid-column:auto}.source-note{margin:12px 0 3px}.header-title{display:none}.preview-hint br{display:none}}@media(max-width:580px){.editor-header{padding:14px 13px;gap:9px;flex-wrap:wrap}.brand{font-size:27px}.brand span{font-size:13px}.brand small{font-size:8px}.header-actions{gap:5px}.header-actions button{font-size:10px;padding:9px}.header-actions span{margin-left:2px;min-width:16px;height:16px}.workspace{display:block}.catalog-panel{position:relative;max-height:none;border-right:0;border-bottom:1px solid var(--line)}.catalog-head{padding:17px 15px 10px}.catalog-head h2{display:none}.catalog-filters{grid-template-columns:1fr 1fr 1fr}.catalog-filters button{grid-column:auto}.card-list{display:flex;overflow-x:auto;padding:0 12px 12px;max-height:94px;gap:4px}.card-choice{width:156px;min-width:156px;height:66px;padding:5px;gap:7px}.card-choice img{width:31px;height:46px}.card-choice strong{font-size:10px}.card-choice small{font-size:8px}.editor-main{padding:22px 14px 30px}.selection-heading{margin-bottom:19px}.selection-heading h2{font-size:22px}.eyebrow{font-size:9px;letter-spacing:.1em}.preview-stage{padding:5px}.preview-stage iframe{height:430px}.preview-controls{grid-template-columns:1fr 1fr}.preview-controls .wide{grid-column:1/-1}.preview-hint{font-size:10px}.form-content{padding:19px 16px}.form-tabs button{font-size:11px;padding:16px 5px}.fields{gap:13px 10px}.form-footer{font-size:8px;padding:13px}.preview-panel{margin-bottom:4px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
