.page-editing .page-edit-tools,.page-editing .page-edit-status { display:none !important; }
.editor-toolbar { display:none; position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:1000; align-items:center; gap:8px; padding:10px; border:1px solid #43433f; border-radius:12px; background:#171816ed; box-shadow:0 10px 40px #0008; color:#ddd; max-width:calc(100vw - 40px); }
.page-editing .editor-toolbar {display:flex;}
.editor-toolbar [data-save-state]{font-size:12px;min-width:72px;max-width:250px;}
.editor-toolbar button,.editor-workspace button,.editor-action button {font:inherit;cursor:pointer;border:1px solid #41443e;border-radius:7px;background:#282b25;color:#e9ece3;padding:9px 12px;white-space:nowrap;}
.editor-toolbar button:hover,.editor-workspace button:hover,.editor-action button:hover {background:#363e30;border-color:#8a9c76;}
.editor-workspace button:disabled,.editor-toolbar button:disabled {opacity:.35;cursor:default;}
.editor-workspace,.editor-action {box-sizing:border-box;color:#e8ebe3;background:#171a16;border:1px solid #444b3f;border-radius:16px;box-shadow:0 30px 120px #0009;font:14px/1.5 Arial,"Microsoft YaHei",sans-serif;}
.editor-workspace {width:min(1320px,96vw);height:min(900px,92vh);max-width:none;max-height:none;padding:0;overflow:hidden;}
.editor-workspace::backdrop,.editor-action::backdrop {background:#0009;backdrop-filter:blur(5px);}
.editor-workspace header {height:92px;box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:18px 24px;border-bottom:1px solid #353b30;}
.editor-workspace h1{margin:3px 0 0;font-size:23px;font-weight:600;letter-spacing:-.5px;}
.editor-eyebrow{font-size:10px;letter-spacing:2px;color:#aebfa0;}
.editor-workspace [data-workspace-status]{margin-left:auto;font-size:12px;color:#b8c4ac;max-width:260px;}
.editor-body{display:flex;height:calc(100% - 92px);}
.editor-body>aside{width:260px;flex:0 0 260px;display:flex;flex-direction:column;background:#121510;border-right:1px solid #353b30;}
.editor-aside-head{display:flex;align-items:center;justify-content:space-between;padding:18px 14px;}
.editor-aside-head button{padding:5px 8px;}
.editor-projects{overflow-y:auto;flex:1;padding:0 10px;}
.editor-project{display:flex;align-items:center;border:1px solid transparent;border-radius:8px;margin-bottom:6px;gap:2px;}
.editor-project.selected{background:#303b28;border-color:#6a7b57;}
.editor-project button{padding:10px 5px;border:0;background:transparent;font-size:12px;}
.editor-project .editor-grow{text-align:left;white-space:normal;}
.editor-project small{display:block;color:#8f9e80;font-size:10px;}
.editor-aside-foot{padding:16px;display:grid;gap:12px;}
.editor-aside-foot small{color:#88937f;font-size:11px;}
.editor-main{flex:1;min-width:0;display:flex;flex-direction:column;}
.editor-main>nav{display:flex;gap:8px;padding:15px 24px;border-bottom:1px solid #353b30;}
.editor-main>nav button{background:none;border-color:transparent;padding:8px 20px;}
.editor-main>nav .selected,.editor-tabs .selected{background:#c3d6a7;color:#15210c;border-color:#c3d6a7;}
.editor-pane{padding:24px;overflow-y:auto;flex:1;}
.editor-pane h2{font-size:23px;margin:0 0 8px;}
.editor-pane h3,.editor-action h3{font-size:15px;margin:20px 0 12px;}
.editor-muted{color:#98a48e;font-size:12px;line-height:1.8;}
.editor-workspace label,.editor-action label{display:block;font-size:12px;color:#aeb9a4;margin:12px 0;}
.editor-workspace input,.editor-workspace textarea,.editor-workspace select,.editor-action input,.editor-action textarea,.editor-action select{font:14px/1.5 Arial,"Microsoft YaHei",sans-serif;box-sizing:border-box;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #434d3b;border-radius:6px;background:#0e120c;color:#e7eedd;}
.editor-workspace input:focus,.editor-workspace textarea:focus,.editor-workspace select:focus,.editor-action input:focus,.editor-action textarea:focus{outline:1px solid #bbce9c;}
.editor-workspace textarea,.editor-action textarea{resize:vertical;min-height:90px;}
.editor-workspace input[type=color],.editor-action input[type=color]{height:42px;padding:4px;}
.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;}
.editor-workspace .primary,.editor-action .primary{background:#c3d6a7;color:#14200a;border-color:#c3d6a7;font-weight:600;}
.editor-workspace .danger,.editor-action .danger{color:#efa99d;}
.editor-section{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0;}
.editor-list{display:grid;gap:8px;margin-top:18px;}
.editor-row{display:flex;align-items:center;gap:8px;border:1px solid #394032;border-radius:7px;padding:10px;}
.editor-grow{flex:1;min-width:0;}
.editor-grow small{display:block;color:#96a28b;}
.editor-row strong{font-weight:500;}
.editor-tabs{display:flex;gap:8px;margin-top:20px;}
.editor-assets{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px;}
.editor-asset{border:1px solid #3a4332;border-radius:10px;background:#1e241a;padding:10px;min-width:0;}
.editor-asset>img,.editor-empty-art{width:100%;height:130px;object-fit:contain;background:#0c100a;border-radius:5px;}
.editor-empty-art{display:grid;place-items:center;color:#8d9a80;}
.editor-asset strong{display:block;font-size:12px;margin:10px 0;overflow-wrap:anywhere;}
.editor-asset button{padding:5px 8px;font-size:11px;margin-right:4px;}
.editor-empty{color:#96a28b;padding:30px 0;}
.editor-action{padding:26px;width:min(620px,92vw);max-height:88vh;overflow:auto;}
.editor-action h2{margin:0 0 18px;font-size:22px;}
.editor-action footer{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;}
.editor-action [data-action-error]{color:#efa99d;}
.editor-templates{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.editor-templates label{margin:0;border:1px solid #444d3c;padding:10px;border-radius:8px;cursor:pointer;}
.editor-templates label:has(input:checked){border-color:#c3d6a7;background:#303d24;}
.editor-templates input{width:auto;}
.editor-templates strong{display:block;color:#d7e0cc;margin-top:8px;}
.template-art{display:flex;gap:4px;height:44px;margin-top:8px;}
.template-art i{display:block;flex:1;background:linear-gradient(135deg,#9bad85,#526446);border-radius:3px;}
.template-single i:not(:first-child),.template-none i:not(:first-child){display:none;}
.template-dual i:last-child{display:none;}
.template-stack i{transform:rotate(-7deg);margin-left:-6px;}
.template-none i{height:5px;margin:20px 12px;}
.template-long{flex-direction:column;}
.editor-tags{display:flex;gap:16px;flex-wrap:wrap;}
.editor-tags input{width:auto;}
.editor-workspace.is-busy .editor-body{pointer-events:none;opacity:.65;}
.portfolio-text-blocks{width:min(1300px,calc(100% - 100px));margin:24px auto 40px;}
.portfolio-text-block{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:12px 0;font-size:18px;}
.page-editing .portfolio-text-block{outline:1px dashed #607d4d;padding:10px;}
@media(max-width:760px){.editor-workspace{width:98vw;height:95vh;}.editor-body>aside{width:180px;flex-basis:180px;}.editor-pane{padding:14px;}.editor-workspace header{padding:12px;gap:5px;}.editor-workspace h1{font-size:18px;}.editor-workspace header button{padding:7px;}.editor-workspace [data-workspace-status]{max-width:100px;}.editor-grid{grid-template-columns:1fr;}.editor-toolbar{width:95vw;flex-wrap:wrap;justify-content:center;}.editor-templates{grid-template-columns:1fr 1fr;}}
