.post-workspace{width:100%;color:#262822;background:#f5f0e6}.post-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid #cbbfa9}.post-bar strong{margin-right:auto}.post-body{display:grid;grid-template-columns:220px minmax(0,1fr) 230px;min-height:70vh}.post-body aside{background:#fbf8ef;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0}.post-body h2{font-size:16px;margin:8px 0}.post-body label{display:flex;flex-direction:column;gap:4px;font-size:13px}.post-body input,.post-body button{max-width:100%;min-height:36px}.post-stage{background:#d8d6d0;min-width:0;display:grid;place-items:center;padding:16px;overflow:auto}.post-stage .canvas-container{box-shadow:0 6px 24px #0002}.post-body button{cursor:pointer;border:1px solid #93846f;background:#f5f0e6;border-radius:4px;padding:8px;color:#262822}.post-body button[aria-pressed=true]{background:#dce6e8;border-color:#35617c}#layers{display:grid;gap:4px}#status{font-size:13px;overflow-wrap:anywhere}@media(max-width:800px){.post-body{grid-template-columns:1fr}.post-stage{grid-row:1;min-height:300px}.post-body aside{border-top:1px solid #cbbfa9}.post-bar{gap:6px}}
.creator-app{margin:0;min-height:100dvh;font:14px/1.45 system-ui,sans-serif;background:#f5f0e6}.creator-app main{margin:0;padding:0;max-width:none}.creator-app [hidden]{display:none!important}.creator-app .post-workspace,.creator-app .image-workspace{display:flex;flex-direction:column;width:100%;max-width:none;margin:0;padding:0;height:100dvh;min-height:0}.creator-app .post-bar{flex:none;background:#f2eee4;padding:10px 14px;min-height:60px;gap:10px}.post-bar strong{font-size:15px;line-height:1.2}.post-bar small{display:block;font-weight:400;color:#70695d;font-size:11px;margin-top:4px}.creator-app button,.creator-app select,.creator-app input:not([type=range],[type=checkbox]){font:inherit}.creator-app button,.creator-app select{border:1px solid #b9ad98;background:#fbf8ef;color:#262822;border-radius:5px;padding:8px 12px;min-height:36px;cursor:pointer}.creator-app .button{background:#a8502f;color:white;border-color:#824128}.creator-app button:disabled{opacity:.5;cursor:default}.creator-app .post-body{flex:1;min-height:0;grid-template-columns:64px 230px minmax(0,1fr) 250px;overflow:hidden}.creator-app .post-body aside,.creator-app .creator-controls{overflow:auto;min-height:0;max-height:none;border:0;border-right:1px solid #d5cbb9;background:#f7f3e9;padding:16px}.creator-app h2{font:650 14px/1.3 system-ui;margin:0 0 12px}.creator-app .app-rail{background:#303a30;color:#fff;display:flex;flex-direction:column;gap:6px;padding:8px 5px;min-width:0}.creator-app .app-rail button,.creator-app .app-rail a{background:transparent;border:1px solid transparent;color:#f5f0e6;padding:7px 2px;text-align:center;font-size:10px;text-decoration:none;border-radius:6px;display:grid;gap:3px;place-items:center}.app-rail > button > span:not(.button-text){font-size:22px;line-height:1}.creator-app .app-rail button[aria-pressed=true]{background:#52604f;border-color:#7c8977}.creator-app .app-rail a{margin-top:auto}.app-panel [data-add]{display:block;width:100%;text-align:left;margin-bottom:8px}.panel-hint{font-size:12px;color:#70695d;margin:0 0 12px}.creator-app input[type=color]{width:100%;height:36px;padding:3px;background:#fbf8ef;border:1px solid #b9ad98;border-radius:5px}.creator-app input[type=number],.creator-app select{width:100%;min-width:0;border:1px solid #b9ad98;border-radius:5px;background:#fbf8ef;padding:7px}.creator-app .post-bar select{width:auto}.creator-app .post-stage{background:#d8d4ca;min-height:0}.app-status{display:flex;justify-content:space-between;gap:12px;align-items:center;flex:none;min-height:34px;padding:6px 14px;background:#f2eee4;border-top:1px solid #cbbfa9;font-size:12px;color:#625b50}.app-status [role=status]{overflow-wrap:anywhere}.creator-app .image-workspace .creator-work{flex:1;min-height:0;display:grid;grid-template-columns:64px minmax(0,1fr) 280px;gap:0;align-items:stretch;overflow:hidden}.creator-app .creator-main{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:auto;background:#d8d4ca;padding:12px}.creator-app .creator-toolbar{position:static;flex:none;background:#f5f0e6;border-radius:5px}.creator-app .creator-canvas{flex:1;min-height:0;overflow:auto;padding:16px;background:#d8d4ca!important;border:0}.creator-app .creator-canvas canvas{max-height:calc(100dvh - 220px);max-width:100%;object-fit:contain;background:repeating-conic-gradient(#ddd 0% 25%,#fff 0% 50%) 0 0/16px 16px}.creator-app .creator-controls label{display:grid;gap:5px;margin:12px 0;font-size:13px}.creator-app :focus-visible{outline:2px solid #35617c;outline-offset:2px}.creator-app .post-body button[aria-pressed=true]{background:#dce6e8;color:#262822}.creator-app .app-rail button[aria-pressed=true]{background:#52604f;color:#fff}.creator-app .creator-controls [data-panel]>button{width:100%}@media(max-width:850px){.creator-app .post-workspace,.creator-app .image-workspace{height:auto;min-height:100dvh}.creator-app .post-body,.creator-app .image-workspace .creator-work{grid-template-columns:1fr;overflow:visible}.creator-app .app-rail{flex-direction:row;flex-wrap:wrap}.creator-app .app-rail button,.creator-app .app-rail a{min-width:60px}.creator-app .app-rail a{margin:0 0 0 auto}.creator-app .post-stage,.creator-app .creator-main{grid-row:auto;min-height:300px}.creator-app .post-body aside,.creator-app .creator-controls{overflow:visible}.app-status{flex-wrap:wrap}.creator-app .creator-canvas canvas{max-height:60vh}}

.icon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.icon-grid button{padding:6px!important;font-size:12px!important}.swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:12px 0}.swatches button{min-height:30px;border:1px solid #93846f}.app-panel a{display:block;margin:12px 0}.creator-app .app-status a{color:inherit}.creator-app .post-body aside:last-child{gap:8px}.creator-app .post-body aside button{margin:2px 0}.creator-app .creator-controls [data-panel] a{display:block;margin:10px 0}

#style-list{display:grid;gap:8px;margin-bottom:20px}.style-choice{text-align:left;font-weight:650!important}#icons button{text-transform:capitalize}

/* V3.3: Artisan controls, architectural workspace, editorial template gallery. */
.creator-app #post-editor{--paper:#fbf8ef;--linen:#f5f0e6;--plaster:#e9e3d7;--carbon:#262822;--clay:#a8502f;--olive:#465346;--rule:#d7cdbb;--edge:#93846f;--focus:#35617c}
#post-editor .post-bar{min-height:62px;background:var(--linen);border-bottom:1px solid var(--rule);padding:8px 16px}
#post-editor .post-bar strong{font-weight:700;letter-spacing:-.015em;font-size:16px}#post-editor .post-bar small{font-size:12px}
#post-editor .suite-back{font-size:22px;color:var(--carbon);text-decoration:none;padding:6px 10px;border-radius:5px}
#post-editor button{border-color:var(--edge);box-shadow:0 1px 0 #9b8a7240;min-height:38px;font-weight:550}#post-editor button:not(:disabled):active{box-shadow:none;transform:translateY(1px)}
#post-editor button.button{background:#a8502f;border-color:#793a24;box-shadow:0 3px 0 #793a24;color:#fff;min-height:40px;padding-inline:20px}
#post-editor .post-body{grid-template-columns:68px 248px minmax(0,1fr) 264px}
#post-editor .app-rail{background:#303a30;padding:10px 5px;gap:8px}#post-editor .app-rail button{border-color:transparent;box-shadow:none;min-height:52px;font-weight:500;font-size:10px}#post-editor .app-rail button[aria-pressed=true]{background:#465346;color:#fff;border-color:#87947d}
#post-editor .app-panel,#post-editor .property-panel{background:var(--linen);padding:16px 14px;scrollbar-width:thin}
#post-editor h2{font-size:15px;margin:0 0 8px;letter-spacing:-.015em}#post-editor h3{font:650 13px/1.4 system-ui;margin:0 0 10px}#post-editor .panel-hint{font-size:12px;line-height:1.5;color:#625b50}
#post-editor .property-panel section{border-top:1px solid var(--rule);padding:14px 0}#post-editor .property-panel label{margin-bottom:10px;font-size:12px;color:#504b43}
#post-editor .property-panel input:not([type=range]),#post-editor .property-panel select{border:1px solid var(--edge);background:var(--paper);min-height:36px;box-shadow:inset 0 1px 2px #2628220b;padding:6px 8px;width:100%;border-radius:5px}
#post-editor .template-list{display:grid;gap:12px}#post-editor .template-card{display:grid;gap:5px;justify-items:start;text-align:left;width:100%;padding:8px;background:var(--paper);border:1px solid var(--rule);border-radius:6px;overflow:hidden}#post-editor .template-card:hover{border-color:var(--clay)}#post-editor .template-card img{display:block;width:100%;height:116px;object-fit:contain;background:var(--plaster);border-radius:3px}#post-editor .template-card strong{font-size:13px}#post-editor .template-card small{font-size:11px;color:#625b50;line-height:1.4;font-weight:400}
#post-editor .text-add{display:grid;gap:6px;margin-bottom:20px}#post-editor .text-add button{margin:0;background:var(--paper)}#post-editor .text-add button:first-child{font:700 19px/1.2 system-ui}#post-editor .text-add button:nth-child(2){font:600 15px/1.2 system-ui}#post-editor .shape-add,#post-editor .action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:12px}#post-editor .shape-add button,#post-editor .action-grid button{margin:0;text-align:center;font-size:12px;padding:7px 4px}#post-editor .danger-action{color:#873d29;grid-column:1/-1}#post-editor .post-stage{background:var(--plaster);background-image:radial-gradient(#b6ab9638 .65px,transparent .65px);background-size:16px 16px;padding:16px}#post-editor .post-stage .canvas-container{box-shadow:0 5px 24px #26282222,0 0 0 1px #93846f60}#post-editor .app-status{background:var(--linen);font-size:12px;min-height:38px}#post-editor :focus-visible{outline:3px solid var(--focus);outline-offset:2px}#post-editor #save-state{color:var(--olive)}
@media(min-width:851px) and (max-width:1100px){#post-editor .post-body{grid-template-columns:60px 205px minmax(0,1fr) 220px}}
@media(max-width:850px){#post-editor .post-body{grid-template-columns:minmax(0,1fr)}#post-editor .app-rail{flex-direction:row;overflow:auto;flex-wrap:nowrap}#post-editor .app-rail button{flex:0 0 64px}#post-editor .post-stage{grid-row:2;min-height:340px}#post-editor .app-panel{grid-row:3}#post-editor .template-list{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}#post-editor .post-bar strong{flex:1}#post-editor .post-bar select{max-width:100%}}
@media(prefers-reduced-motion:reduce){#post-editor button{transition:none!important}#post-editor button:not(:disabled):active{transform:none}}
@media(forced-colors:active){#post-editor .app-rail button[aria-pressed=true]{border:2px solid Highlight}#post-editor .template-card{border:1px solid ButtonText}}

/* V1 UX foundation: compact, contextual tools */
.creator-app .image-workspace .creator-work{grid-template-columns:minmax(0,1fr) 300px}.image-workspace .app-rail{display:none!important}.image-workspace .creator-main{gap:10px}.image-workspace .creator-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:8px}.image-workspace .creator-toolbar label{margin:0;flex:1;min-width:150px}.image-quickbar,.post-quickbar{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:8px;background:#f5f0e6;border:1px solid #d7cdbb;border-radius:6px}.image-quickbar button[aria-pressed=true]{background:#465346;color:white}.quick-upload{display:flex;align-items:center;gap:6px;font-size:12px}.quick-upload input{max-width:190px}.post-center{min-height:0;min-width:0;display:flex;flex-direction:column;background:#e9e3d7;padding:8px;gap:6px}.post-center .post-stage{flex:1;min-height:0}.post-quickbar{flex:none}.creator-app .image-workspace .creator-controls{border-left:1px solid #d7cdbb}.creator-app .image-workspace .creator-canvas canvas{max-height:calc(100dvh - 275px)}
@media(max-width:850px){.creator-app .image-workspace .creator-work{grid-template-columns:1fr}.creator-app .image-workspace .creator-canvas canvas{max-height:55vh}.post-center{grid-row:2;min-height:360px}.post-center .post-stage{min-height:300px}.image-workspace .creator-main{overflow:visible}.creator-app .post-bar{flex-wrap:wrap}}

/* Keep the whole artboard visible, with actions grouped at the canvas. */
#post-editor .post-body{grid-template-rows:minmax(0,1fr);min-height:0}#post-editor .post-center{min-height:0;overflow:hidden;padding:10px;gap:8px}#post-editor .post-stage{padding:16px;min-height:0;min-width:0;overflow:hidden;position:relative}#post-editor .post-quickbar{justify-content:flex-start;align-items:center;gap:6px;padding:8px;box-shadow:0 1px 0 #d7cdbb}#post-editor .post-quickbar button{font-size:12px;padding:7px 9px;min-height:40px}#post-editor .post-quickbar .quick-upload{margin:0}#post-editor .post-quickbar .file-action{min-height:40px;font-size:12px}#post-editor .app-panel button:has(>.ui-icon){justify-content:flex-start}#post-editor .shape-add button:has(>.ui-icon){flex-direction:column;justify-content:center;gap:4px;min-height:58px}#post-editor .app-rail button:has(>.ui-icon){display:grid;justify-items:center;gap:4px}#post-editor .app-rail .button-text{font-size:10px;line-height:1.15}#post-editor .app-rail .ui-icon{width:21px;height:21px}#post-editor .property-panel button:has(>.ui-icon){flex-wrap:wrap;gap:5px}#post-editor .property-panel button .ui-icon{width:15px;height:15px;flex-basis:15px}.creator-app .image-workspace .image-quickbar{justify-content:center;align-items:center}.image-workspace .image-quickbar button{min-height:44px}.image-workspace .creator-toolbar .quick-upload{flex:0 1 auto;min-width:0}.image-workspace .creator-toolbar .file-action{min-height:44px}.image-workspace .creator-controls button:has(>.ui-icon){flex-wrap:wrap}.creator-app .post-bar button:has(>.ui-icon){gap:7px}.creator-app .app-status{flex-wrap:wrap}.creator-app .post-workspace input[type=range],.creator-app .image-workspace input[type=range]{accent-color:#a8502f}
@media(max-width:850px){#post-editor .post-body{grid-template-rows:auto auto auto auto;overflow:visible}#post-editor .post-center{grid-row:2;min-height:400px}#post-editor .post-stage{min-height:300px}#post-editor .post-body aside{max-height:none}#post-editor .post-quickbar{justify-content:flex-start}#post-editor .post-quickbar button{min-height:44px}#post-editor .post-bar{gap:6px}#post-editor .app-rail .button-text{font-size:10px}#post-editor .property-panel{grid-row:4}}
#post-editor .selection-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:6px 10px;background:#fbf8ef;border:1px solid #d7cdbb;border-radius:5px;flex:none}#post-editor .selection-tools label{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:12px}#post-editor .selection-tools input[type=number]{width:68px;min-height:34px}#post-editor .selection-tools input[type=color]{width:42px;height:34px;min-height:34px}#post-editor .selection-tools button{min-height:34px;font-size:12px;padding:5px 9px}#post-editor .icon-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;line-height:1.1;font-size:11px}#post-editor .icon-grid .ui-icon{height:22px;width:22px}#post-editor .upper-canvas:focus-visible{outline:2px solid #35617c;outline-offset:2px}

#post-editor .template-filter{margin:12px 0}#post-editor #layers button{display:flex;align-items:center;gap:8px;text-align:left;overflow-wrap:anywhere}#post-editor .layer-mark{display:inline-grid;place-items:center;flex:0 0 23px;width:23px;height:23px;background:#e9e3d7;border-radius:3px;font-weight:700;color:#465346}

#post-editor .selection-tools{min-height:48px}#post-editor .selection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}#post-editor #selection-tip{font-size:12px;color:#625b50}

/* Rail labels must not inherit the old oversized glyph style. */
.creator-app #post-editor .app-rail{overflow-x:hidden;align-items:stretch;min-width:0}.creator-app #post-editor .app-rail button,.creator-app #post-editor .app-rail a{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:7px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;overflow:hidden;font:500 10px/1.2 system-ui,sans-serif}.creator-app #post-editor .app-rail .button-text{font:500 10px/1.2 system-ui,sans-serif!important;display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}.creator-app #post-editor .app-rail .ui-icon{width:20px;height:20px;flex:0 0 20px}.creator-app #post-editor .post-center{min-width:0;min-height:0}.creator-app #post-editor .post-stage{display:grid;place-items:center;min-width:0;min-height:0}.creator-app #post-editor .selection-tools{padding:6px 9px;min-height:36px}.creator-app #post-editor .property-panel{min-width:0;overflow-x:hidden}.creator-app #post-editor .post-bar{min-width:0}.creator-app #post-editor .post-bar button{white-space:nowrap}
@media(max-width:850px){.creator-app #post-editor .app-rail{overflow-x:auto}.creator-app #post-editor .app-rail button,.creator-app #post-editor .app-rail a{width:64px;flex:0 0 64px}.creator-app #post-editor .post-stage{min-height:300px}}
