:root{--bg:#f5f7fb;--panel:#fff;--text:#172033;--muted:#687386;--line:#e4e9f1;--blue:#1769e8;--blue2:#0d57c9;--nav:#14243d;--nav2:#1c3152;--green:#169b62;--shadow:0 12px 30px rgba(32,53,84,.08);--radius:18px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;background:linear-gradient(180deg,var(--nav),#101d31);color:#fff;padding:24px 16px;display:flex;flex-direction:column;z-index:20}.brand-row{display:flex;align-items:center;gap:12px;padding:0 10px 22px;border-bottom:1px solid rgba(255,255,255,.09)}.brand-mark{width:44px;height:44px;border-radius:12px;background:#fff;color:var(--nav);display:grid;place-items:center;font-weight:800;letter-spacing:.5px}.brand-title{font-size:20px;font-weight:750}.brand-subtitle{font-size:12px;opacity:.65;margin-top:2px}.nav{display:flex;flex-direction:column;gap:5px;padding-top:18px}.nav-item{border:0;background:transparent;color:rgba(255,255,255,.76);border-radius:11px;padding:12px 13px;display:grid;grid-template-columns:22px 1fr auto;gap:9px;align-items:center;text-align:left;transition:.15s}.nav-item:hover{background:rgba(255,255,255,.07);color:#fff}.nav-item.active{background:var(--nav2);color:#fff;box-shadow:inset 3px 0 0 #5ea0ff}.badge{min-width:20px;padding:2px 6px;text-align:center;border-radius:999px;background:rgba(255,255,255,.12);font-size:11px}.sidebar-footer{margin-top:auto;padding:16px 10px 4px;font-size:12px;color:rgba(255,255,255,.58);display:flex;align-items:center;gap:8px}.connection-dot,.status-dot{width:8px;height:8px;border-radius:50%;background:#29c47f;display:inline-block}.main{margin-left:270px;min-width:0;flex:1}.topbar{height:86px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:0 30px;position:sticky;top:0;z-index:15}.topbar-title-wrap{min-width:0;flex:1}.topbar h1{font-size:22px;margin:0}.topbar p{margin:4px 0 0;color:var(--muted);font-size:13px}.topbar-actions{display:flex;align-items:center;gap:9px}.language-select,.secondary-button,.publish-button,.primary-button,.icon-button,.danger-outline{border-radius:10px;border:1px solid var(--line);padding:10px 14px;background:#fff;color:var(--text);font-weight:650}.publish-button,.primary-button{background:var(--blue);border-color:var(--blue);color:#fff}.publish-button:hover,.primary-button:hover{background:var(--blue2)}.publish-button.large{padding:14px 22px;font-size:16px}.secondary-button:hover{background:#f5f7fb}.menu-button{display:none;padding:8px 10px}.workspace{padding:28px;max-width:1600px;margin:0 auto}.view{display:none}.view.active{display:block}.hero-card{background:linear-gradient(135deg,#173761,#1f5b9e);color:#fff;border-radius:22px;padding:30px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px;box-shadow:var(--shadow)}.hero-card h2{font-size:30px;margin:7px 0 10px}.hero-card p{max-width:720px;margin:0;color:rgba(255,255,255,.76);line-height:1.55}.eyebrow{font-size:12px;letter-spacing:1.7px;font-weight:800;color:#95c4ff}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px}.stat-card,.panel,.preview-frame{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.stat-card{padding:20px}.stat-label,.stat-note{color:var(--muted);font-size:13px}.stat-value{font-size:29px;font-weight:760;margin:7px 0 4px}.status-online{font-size:18px;color:var(--green);display:flex;align-items:center;gap:8px}.section-grid{display:grid;grid-template-columns:1.35fr .8fr;gap:18px;margin-top:18px}.panel{padding:22px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.panel h3,.page-head h2{margin:0}.panel-head p,.page-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.quick-card{background:#f9fbfe;border:1px solid var(--line);border-radius:13px;padding:17px;text-align:left;display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;column-gap:12px}.quick-card:hover{border-color:#b8cff0;background:#f5f9ff}.quick-icon{grid-row:1/3;width:36px;height:36px;border-radius:10px;background:#eaf2ff;color:var(--blue);display:grid;place-items:center;font-size:18px}.quick-card b{font-size:14px}.quick-card small{color:var(--muted);margin-top:4px}.info-list{margin:0}.info-list>div{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.info-list>div:last-child{border-bottom:0}.info-list dt{color:var(--muted)}.info-list dd{margin:0;text-align:right;font-weight:650}.page-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.editor-layout{display:grid;grid-template-columns:390px 1fr;gap:18px}.editor-controls{display:flex;flex-direction:column;gap:8px}.field-label{font-size:12px;color:var(--muted);font-weight:700;margin-top:5px}.field{width:100%;border:1px solid #d6ddea;border-radius:10px;background:#fff;padding:11px 12px;outline:none}.field:focus{border-color:#84aef0;box-shadow:0 0 0 3px rgba(23,105,232,.09)}.textarea{resize:vertical;min-height:76px}.textarea.tall{min-height:120px}.full{width:100%;margin-top:9px}.preview-frame{overflow:hidden;min-height:600px}.preview-toolbar{height:42px;background:#eef2f7;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:7px;padding:0 13px}.preview-dot{width:10px;height:10px;border-radius:50%;background:#ccd4df}.preview-address{margin-left:8px;color:#6e7785;font-size:12px}.preview-page{height:calc(100% - 42px);background:#0e2541;color:#fff}.preview-nav{padding:18px 22px;border-bottom:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;font-weight:800}.preview-nav span{font-size:11px;font-weight:600;color:rgba(255,255,255,.72)}.preview-hero{min-height:500px;display:grid;place-items:center;align-content:center;text-align:center;padding:40px;background:radial-gradient(circle at 50% 20%,#315e8e,#0e2541 65%)}.preview-hero h3{font-size:52px;line-height:1.02;margin:0 0 18px}.preview-hero p{max-width:570px;color:rgba(255,255,255,.76);line-height:1.55}.preview-hero button{margin-top:15px;padding:11px 20px;border-radius:999px;border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff}.content-list{display:grid;gap:10px}.content-row{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px 18px;display:grid;grid-template-columns:1fr auto;align-items:center;box-shadow:0 6px 18px rgba(32,53,84,.04)}.content-row b{display:block}.content-row small{display:block;color:var(--muted);margin-top:3px}.content-row button{border:0;background:#eef5ff;color:var(--blue);padding:8px 12px;border-radius:9px;font-weight:700}.empty-state{text-align:center;padding:70px 20px;color:var(--muted)}.empty-state h3{color:var(--text);margin:8px 0}.empty-state p{margin:0}.empty-icon{font-size:34px;color:#9aabc0}.file-label input{display:none}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.media-card{border:1px solid var(--line);border-radius:12px;padding:14px;overflow:hidden}.media-card b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-card small{color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700}.language-list>div{display:grid;grid-template-columns:1fr 70px 100px;align-items:center;padding:14px 2px;border-bottom:1px solid var(--line)}.language-list>div:last-child{border-bottom:0}.pill{display:inline-flex;justify-content:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}.pill.green{background:#e9f8f1;color:#168455}.publish-panel{max-width:800px}.publish-check{display:flex;gap:16px;align-items:center}.check-icon{width:46px;height:46px;flex:0 0 46px;border-radius:50%;display:grid;place-items:center;background:#e7f8f0;color:#138658;font-weight:900;font-size:21px}.publish-check p{margin:4px 0 0;color:var(--muted)}.warning-box{margin:22px 0;padding:15px;border-radius:12px;background:#fff7df;border:1px solid #f2dda0;color:#725f27;line-height:1.45}.settings-list{max-width:780px}.toggle-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--line)}.toggle-row b,.toggle-row small{display:block}.toggle-row small{color:var(--muted);margin-top:4px}.danger-outline{margin-top:20px;border-color:#e5a9ae;color:#b82734;background:#fff}.toast{position:fixed;right:24px;bottom:24px;background:#16243b;color:#fff;padding:13px 17px;border-radius:11px;box-shadow:0 12px 30px rgba(0,0,0,.18);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:translateY(0)}.mobile-overlay{display:none}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,1fr)}.section-grid{grid-template-columns:1fr}.editor-layout{grid-template-columns:1fr}.preview-frame{min-height:520px}}
@media(max-width:820px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.menu-button{display:inline-block}.topbar{height:auto;min-height:78px;padding:12px 16px;flex-wrap:wrap}.topbar-title-wrap{min-width:180px}.topbar-actions{width:100%;overflow:auto;padding-bottom:2px}.topbar-actions .secondary-button{display:none}.workspace{padding:17px}.mobile-overlay.show{display:block;position:fixed;inset:0;background:rgba(8,16,28,.42);z-index:19}.hero-card{align-items:flex-start;flex-direction:column}.hero-card h2{font-size:25px}.form-grid{grid-template-columns:1fr}.preview-hero h3{font-size:40px}}
@media(max-width:560px){.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:15px}.stat-value{font-size:24px}.quick-grid{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.language-list>div{grid-template-columns:1fr 45px 84px}.preview-nav span{display:none}.preview-hero{padding:24px}.preview-hero h3{font-size:34px}.topbar p{display:none}.publish-button{white-space:nowrap}.language-select{padding:9px 11px}}


/* 003 — real Site 446 Visual Editor */
.editor-page-head{margin-bottom:12px}.editor-version-badge{font-size:11px;font-weight:800;letter-spacing:.08em;color:#315f96;background:#eaf3ff;border:1px solid #cfe1f8;border-radius:999px;padding:8px 11px;white-space:nowrap}.editor-language-bar{display:flex;gap:7px;overflow:auto;padding:0 0 12px}.editor-language-bar button{border:1px solid var(--line);background:#fff;color:#49566a;border-radius:9px;padding:9px 12px;font-weight:750;white-space:nowrap}.editor-language-bar button.active{border-color:#77a8ed;background:#eaf3ff;color:#0d57c9;box-shadow:0 0 0 2px rgba(23,105,232,.06)}.editor-layout-real{grid-template-columns:410px minmax(0,1fr);align-items:start}.real-editor-controls{position:sticky;top:104px;max-height:calc(100vh - 128px);overflow:auto}.editor-safety{display:flex;gap:10px;align-items:center;padding:11px 12px;background:#effaf5;border:1px solid #cfeee0;border-radius:11px;margin-bottom:7px}.editor-safety b,.editor-safety small{display:block}.editor-safety b{font-size:13px}.editor-safety small{font-size:11px;color:#5d7469;margin-top:2px}.editor-fields{display:grid;gap:10px;margin-top:4px}.editor-field-wrap{display:grid;gap:6px}.editor-field-wrap label{font-size:12px;color:var(--muted);font-weight:750}.editor-field-wrap textarea{resize:vertical;min-height:78px;line-height:1.4}.editor-field-wrap textarea.long{min-height:132px}.editor-field-wrap input,.editor-field-wrap textarea{width:100%;border:1px solid #d6ddea;border-radius:10px;background:#fff;padding:10px 11px;outline:none}.editor-field-wrap input:focus,.editor-field-wrap textarea:focus{border-color:#84aef0;box-shadow:0 0 0 3px rgba(23,105,232,.09)}.editor-actions-stack{display:grid;gap:8px;margin-top:9px}.editor-actions-stack .full{margin-top:0}.draft-summary{margin-top:12px;border-top:1px solid var(--line);padding-top:11px;display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px}.draft-summary b{background:#edf3fa;color:#294a72;border-radius:999px;min-width:24px;height:24px;padding:0 7px;display:grid;place-items:center}.real-preview-frame{height:calc(100vh - 175px);min-height:690px;position:sticky;top:104px}.real-preview-toolbar{position:relative}.device-switcher{margin-left:auto;display:flex;gap:4px}.device-switcher button{border:0;background:transparent;color:#667386;border-radius:6px;width:29px;height:29px}.device-switcher button.active{background:#dce8f7;color:#1769e8}.iframe-stage{height:calc(100% - 42px);background:#dbe2ea;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:0;transition:.2s}.iframe-stage iframe{display:block;width:100%;height:100%;border:0;background:#fff;transition:width .2s;box-shadow:0 0 0 1px rgba(0,0,0,.04)}.iframe-stage.tablet{padding:16px}.iframe-stage.tablet iframe{width:768px;max-width:100%}.iframe-stage.mobile{padding:16px}.iframe-stage.mobile iframe{width:390px;max-width:100%}.editor-empty{color:var(--muted);font-size:13px;padding:14px 0}.field-help{font-size:10px;color:#8a95a5;margin-top:-2px}.editor-dirty .real-editor-controls{box-shadow:0 12px 30px rgba(32,53,84,.08),inset 3px 0 0 #e3ad43}
@media(max-width:1180px){.editor-layout-real{grid-template-columns:360px minmax(0,1fr)}}
@media(max-width:1000px){.editor-layout-real{grid-template-columns:1fr}.real-editor-controls{position:static;max-height:none}.real-preview-frame{position:static;height:760px;min-height:600px}}
@media(max-width:560px){.editor-version-badge{font-size:9px}.editor-language-bar button{padding:8px 10px}.real-preview-frame{height:680px}.iframe-stage.mobile,.iframe-stage.tablet{padding:8px}.device-switcher{display:none}}

/* 004 — mobile editor polish after iPhone review */
html,body{max-width:100%;overflow-x:hidden}
@media(max-width:560px){
  .workspace{padding:12px}
  .topbar{padding:10px 12px;gap:10px;min-height:0}
  .menu-button{width:42px;height:42px;padding:7px}
  .topbar-title-wrap{min-width:0}
  .topbar h1{font-size:20px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;width:100%;overflow:visible;padding:0}
  .language-select{min-width:68px;height:44px;padding:8px 10px;font-size:16px}
  .topbar .publish-button{min-width:0;width:100%;height:44px;padding:8px 10px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  #view-editor .editor-page-head{margin-bottom:10px}
  #view-editor .editor-page-head h2{display:none}
  #view-editor .editor-page-head p{margin:0;font-size:14px;line-height:1.38}
  .editor-version-badge{font-size:9px;padding:7px 10px;align-self:flex-start}

  .editor-language-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:100%;overflow:visible;padding-bottom:10px}
  .editor-language-bar button{min-width:0;width:100%;padding:9px 2px;font-size:14px;border-radius:9px;overflow:hidden}

  .editor-layout-real{gap:12px}
  .real-editor-controls{padding:16px;border-radius:15px}
  .editor-safety{padding:10px;margin-bottom:4px}
  .editor-safety b{font-size:13px}
  .editor-safety small{font-size:11px}
  .field-label{font-size:12px;margin-top:7px}
  .field{font-size:16px;padding:11px 12px}
  .editor-field-wrap input,.editor-field-wrap textarea{font-size:16px}
  .real-preview-frame{height:650px;min-height:520px;border-radius:15px}
  .preview-address{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .toast{left:12px;right:12px;bottom:20px;text-align:center}
}
@media(max-width:380px){
  .topbar h1{font-size:18px}
  .topbar .publish-button{font-size:14px}
  .editor-language-bar button{font-size:13px}
}

/* 007 — direct visual editing, element sizing and block reordering */
.direct-editor-tip{display:flex;align-items:center;gap:6px;margin:0 0 12px;padding:10px 12px;border:1px solid #cfe1f8;background:#eef6ff;border-radius:11px;color:#315f96;font-size:13px;line-height:1.35}
.direct-editor-tip b{color:#174f8f}
.direct-edit-sheet{position:fixed;right:22px;bottom:22px;width:min(460px,calc(100vw - 44px));max-height:min(620px,75vh);overflow:auto;z-index:70;background:#fff;border:1px solid #d9e2ef;border-radius:20px;box-shadow:0 24px 70px rgba(20,38,65,.28);padding:15px;transform:translateY(calc(100% + 50px));opacity:0;pointer-events:none;transition:.2s ease}
.direct-edit-sheet.open{transform:translateY(0);opacity:1;pointer-events:auto}
.direct-sheet-handle{display:none;width:42px;height:5px;border-radius:999px;background:#d6dee9;margin:0 auto 9px}
.direct-sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.direct-sheet-head small,.direct-sheet-head b{display:block}.direct-sheet-head small{font-size:11px;color:#758296;margin-bottom:2px}.direct-sheet-head b{font-size:19px;color:#17243a}
.direct-sheet-close{width:36px;height:36px;border:1px solid #dce3ed;border-radius:10px;background:#f8fafc;color:#233652;font-size:24px;line-height:1;display:grid;place-items:center}
.direct-text-label{display:block;font-size:12px;font-weight:800;color:#657287;margin:4px 0 6px}.direct-text-input{width:100%;resize:vertical;min-height:76px;max-height:150px;border:1px solid #cfd8e6;border-radius:12px;padding:10px 11px;font:inherit;font-size:16px;line-height:1.35;outline:none}.direct-text-input:focus{border-color:#76a8ee;box-shadow:0 0 0 3px rgba(23,105,232,.10)}
.direct-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}.direct-control{border:1px solid #e0e6ef;border-radius:12px;padding:9px}.direct-control>span{display:block;font-size:11px;font-weight:800;color:#68758a;margin-bottom:7px}.stepper{display:grid;grid-template-columns:38px 1fr 38px;gap:6px;align-items:center}.stepper button{height:36px;border:1px solid #cbd6e5;background:#f7f9fc;border-radius:9px;color:#1b4e88;font-size:18px;font-weight:800}.stepper b{text-align:center;font-size:13px;color:#20324d;white-space:nowrap}
.block-order-row{margin-top:10px;padding:10px;border:1px solid #e0e6ef;border-radius:12px}.block-order-row>span{display:block;font-size:11px;font-weight:800;color:#68758a;margin-bottom:7px}.block-order-row>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.block-order-row button{min-height:40px;border:1px solid #cbd6e5;background:#f7f9fc;border-radius:9px;color:#234e7c;font-weight:800}.block-order-row button:disabled{opacity:.38}
.direct-sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}.direct-sheet-actions button{margin:0;min-height:44px;padding:9px 11px;font-size:13px}

@media(max-width:1000px){
  #view-editor .editor-layout-real{display:flex;flex-direction:column}
  #view-editor .real-preview-frame{order:1;width:100%}
  #view-editor .real-editor-controls{order:2;width:100%}
}
@media(max-width:560px){
  .direct-editor-tip{font-size:12px;margin-bottom:9px;padding:9px 10px}
  #view-editor .real-preview-frame{height:72vh;min-height:540px}
  #view-editor .real-editor-controls{margin-top:0}
  .direct-edit-sheet{left:0;right:0;bottom:0;width:100%;max-height:52vh;border-radius:20px 20px 0 0;border-left:0;border-right:0;border-bottom:0;padding:10px 14px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -18px 55px rgba(20,38,65,.26)}
  .direct-sheet-handle{display:block}
  .direct-sheet-head{margin-bottom:7px}.direct-sheet-head b{font-size:17px}.direct-sheet-close{width:34px;height:34px}
  .direct-text-input{min-height:68px;max-height:105px}
  .direct-control-grid{gap:7px;margin-top:8px}.direct-control{padding:8px}.stepper{grid-template-columns:34px 1fr 34px;gap:4px}.stepper button{height:34px}
  .block-order-row{margin-top:8px;padding:8px}.block-order-row button{font-size:12px;min-height:38px}
  .direct-sheet-actions{margin-top:8px}.direct-sheet-actions button{font-size:12px;min-height:40px}
}
@media(max-width:380px){.direct-control-grid{grid-template-columns:1fr}.direct-edit-sheet{max-height:58vh}.direct-sheet-actions{grid-template-columns:1fr 1fr}}

/* 008 — typography controls in direct visual editor */
.direct-control-wide{grid-column:1/-1}
.font-color-row{display:grid;grid-template-columns:48px 1fr;gap:7px;align-items:center}
.font-color-row input[type="color"]{width:48px;height:38px;padding:3px;border:1px solid #cbd6e5;border-radius:9px;background:#fff;cursor:pointer}
.font-color-row input[type="text"],.direct-select{width:100%;height:38px;border:1px solid #cbd6e5;border-radius:9px;background:#fff;color:#20324d;padding:0 9px;font:inherit;font-size:13px;font-weight:700;outline:none}
.font-color-row input[type="text"]:focus,.direct-select:focus{border-color:#76a8ee;box-shadow:0 0 0 3px rgba(23,105,232,.10)}
@media(max-width:760px){.font-color-row{grid-template-columns:44px 1fr}.font-color-row input[type="color"]{width:44px;height:36px}.font-color-row input[type="text"],.direct-select{height:36px;font-size:12px}}

/* 009 — full visual inspector: element / section / page */
.full-inspector{width:min(560px,calc(100vw - 44px));max-height:min(760px,84vh);padding:14px}
.inspector-scope-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:4px 0 11px;padding:4px;background:#eef3f8;border-radius:12px}
.inspector-scope-tabs button{min-height:36px;border:0;border-radius:9px;background:transparent;color:#617086;font-weight:800;font-size:12px}
.inspector-scope-tabs button.active{background:#fff;color:#1769e8;box-shadow:0 2px 10px rgba(32,53,84,.10)}
.inspector-scope-tabs button:disabled{opacity:.35}
.inspector-group{border:1px solid #e0e7f0;border-radius:13px;background:#fff;margin-top:9px;overflow:hidden}
.inspector-group>summary{list-style:none;cursor:pointer;padding:11px 12px;font-size:13px;font-weight:850;color:#213654;background:#f8fafc;display:flex;align-items:center;justify-content:space-between}
.inspector-group>summary::-webkit-details-marker{display:none}
.inspector-group>summary:after{content:'⌄';font-size:18px;color:#6f7d91;transform:rotate(-90deg);transition:.15s}
.inspector-group[open]>summary:after{transform:rotate(0)}
.inspector-body{padding:9px}
.direct-input{width:100%;height:38px;border:1px solid #cbd6e5;border-radius:9px;background:#fff;color:#20324d;padding:0 9px;font:inherit;font-size:13px;font-weight:650;outline:none}
.direct-input:focus{border-color:#76a8ee;box-shadow:0 0 0 3px rgba(23,105,232,.10)}
.direct-range{width:100%;accent-color:#1769e8}
.range-value{text-align:right;color:#52657f;font-size:11px;font-weight:800;margin-top:2px}
.gradient-only,.image-only{display:none}
.full-inspector .direct-control-grid{grid-template-columns:1fr 1fr;gap:8px;margin-top:0}
.full-inspector .direct-control{padding:8px}
.full-inspector .direct-control>span{font-size:10.5px;margin-bottom:6px}
.full-inspector .block-order-row{margin-top:10px}
.full-inspector .direct-sheet-actions{position:sticky;bottom:-14px;background:#fff;padding:9px 0 1px;z-index:2}
@media(max-width:760px){
  .full-inspector{left:0;right:0;bottom:0;width:100%;max-height:68vh;border-radius:20px 20px 0 0;padding:9px 12px calc(10px + env(safe-area-inset-bottom))}
  .full-inspector .direct-sheet-head{position:sticky;top:-9px;background:#fff;z-index:5;padding-top:2px}
  .inspector-scope-tabs{position:sticky;top:42px;z-index:4;background:#eef3f8}
  .full-inspector .direct-control-grid{gap:6px}
  .full-inspector .direct-control{padding:7px}
  .full-inspector .direct-control>span{font-size:10px}
  .full-inspector .stepper{grid-template-columns:32px 1fr 32px}
  .full-inspector .stepper button{height:32px}
  .direct-input,.full-inspector .direct-select{height:35px;font-size:12px}
  .inspector-group>summary{padding:10px 11px}
  .inspector-body{padding:7px}
}
@media(max-width:380px){
  .full-inspector{max-height:72vh}
  .full-inspector .direct-control-grid{grid-template-columns:1fr 1fr}
  .full-inspector .direct-control-wide{grid-column:1/-1}
}
.preview-page-style-btn{margin-left:auto;border:1px solid #cbd6e5;background:#f7f9fc;color:#294d78;border-radius:8px;min-height:30px;padding:4px 9px;font-size:11px;font-weight:800;white-space:nowrap}
.real-preview-toolbar .device-switcher{margin-left:6px}
@media(max-width:560px){.preview-page-style-btn{margin-left:auto;padding:4px 8px}.preview-page-style-btn span{display:none}.real-preview-toolbar .device-switcher{display:none}}

/* 010 — Multi-site Site Manager */
.project-switch-wrap{display:flex;align-items:center;gap:12px;min-width:0}.project-switch{display:flex;align-items:center;gap:7px;max-width:210px;border:1px solid #d8e0ec;background:#fff;border-radius:11px;padding:7px 10px;color:#20324d;font-weight:850;white-space:nowrap;overflow:hidden}.project-switch #activeProjectName{overflow:hidden;text-overflow:ellipsis}.project-dot{width:9px;height:9px;border-radius:50%;background:#1769e8;flex:0 0 auto}.project-chevron{color:#718096}.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.project-card{background:#fff;border:1px solid #dfe6ef;border-radius:16px;padding:16px;box-shadow:0 5px 20px rgba(29,48,78,.05);position:relative}.project-card.active{border-color:#78aaf0;box-shadow:0 0 0 3px rgba(23,105,232,.08),0 8px 24px rgba(29,48,78,.07)}.project-card-top{display:flex;gap:11px;align-items:center}.project-avatar{width:44px;height:44px;border-radius:13px;background:#edf4ff;color:#1769e8;display:grid;place-items:center;font-size:13px;font-weight:900}.project-card h3{margin:0;font-size:17px}.project-card p{margin:3px 0 0;color:#718096;font-size:12px}.project-card-meta{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.project-card-meta span{background:#f3f6fa;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800;color:#617086}.project-card-actions{display:grid;grid-template-columns:1fr auto;gap:8px}.project-card-actions button{min-height:39px;border-radius:10px;font-weight:800}.open-project{border:0;background:#1769e8;color:#fff}.project-more{width:42px;border:1px solid #d9e1ec;background:#fff;color:#52647c}.security-foundation{margin-top:16px;background:#f5fbf8;border:1px solid #cfe9dc;border-radius:15px;padding:14px 16px;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}.security-icon{font-size:22px}.security-foundation b{color:#173d32}.security-foundation p{margin:3px 0 0;color:#5b746c;font-size:12px}.security-state{font-size:10px;font-weight:900;color:#147553;background:#dcf5e9;padding:6px 9px;border-radius:999px}.pages-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:12px}.pages-toolbar .field{max-width:320px}.pages-toolbar span{margin-left:auto;color:#718096;font-size:12px;font-weight:800}.pages-manager-list{display:grid;gap:8px}.page-manager-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid #e1e7ef;border-radius:12px;padding:11px 12px}.page-manager-row b,.page-manager-row small{display:block}.page-manager-row small{color:#7a8798;margin-top:3px}.page-row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.page-row-actions button{border:1px solid #d7e0eb;background:#fff;color:#315275;border-radius:8px;padding:7px 9px;font-size:11px;font-weight:800}.page-row-actions button[data-danger]{color:#a33b3b}.page-home-pill{display:inline-block;margin-left:7px;background:#e9f2ff;color:#1769e8;border-radius:999px;padding:3px 6px;font-size:9px;font-weight:900}.sm-modal-backdrop{position:fixed;inset:0;background:rgba(19,31,49,.50);display:none;align-items:center;justify-content:center;padding:18px;z-index:5000}.sm-modal-backdrop.open{display:flex}.sm-modal{width:min(480px,100%);background:#fff;border-radius:18px;padding:17px;box-shadow:0 30px 90px rgba(15,28,47,.30)}.sm-modal-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:13px}.sm-modal-head small{font-size:10px;font-weight:900;letter-spacing:.08em;color:#1769e8}.sm-modal-head h3{margin:3px 0 0;font-size:20px}.sm-modal-head button{width:36px;height:36px;border:1px solid #dce4ee;background:#fff;border-radius:10px;font-size:23px}.sm-modal label{display:block;font-size:12px;font-weight:800;color:#596a80;margin:10px 0}.sm-modal label>span{font-weight:500;color:#8893a2}.sm-modal .field{margin-top:6px}.sm-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.project-popover{position:fixed;top:72px;left:270px;width:290px;background:#fff;border:1px solid #dce4ee;border-radius:14px;box-shadow:0 18px 55px rgba(25,42,68,.18);padding:8px;z-index:4000;display:none}.project-popover.open{display:block}.project-popover-head{font-size:10px;font-weight:900;color:#8190a3;padding:7px 8px;text-transform:uppercase}.project-popover-item{display:flex;align-items:center;gap:8px;width:100%;border:0;background:#fff;padding:9px;border-radius:9px;text-align:left;color:#243750;font-weight:800}.project-popover-item:hover,.project-popover-item.active{background:#f0f5fc;color:#1769e8}.project-popover>button{width:100%;margin-top:5px;border:1px dashed #a9bdd5;background:#f8fbff;color:#1769e8;border-radius:9px;padding:9px;font-weight:850}
@media(max-width:1000px){.projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-popover{left:18px;top:68px}.project-switch-wrap h1{display:none}}
@media(max-width:620px){.projects-grid{grid-template-columns:1fr}.security-foundation{grid-template-columns:auto 1fr}.security-state{grid-column:2}.page-manager-row{grid-template-columns:1fr}.page-row-actions{justify-content:flex-start}.project-switch{max-width:145px;padding:6px 8px}.topbar-title-wrap{min-width:0}.topbar-actions{gap:5px}.topbar-actions .secondary-button{display:none}.project-popover{left:12px;right:12px;width:auto}.pages-toolbar{align-items:stretch;flex-direction:column}.pages-toolbar .field{max-width:none}.pages-toolbar span{margin-left:0}}

/* 011 — universal multi-site visual builder */
.universal-builder[hidden]{display:none!important}.universal-builder{display:grid;gap:14px}.builder-topbar{display:flex;align-items:end;gap:12px;padding:12px;position:sticky;top:0;z-index:10}.builder-page-picker{min-width:220px}.builder-page-picker label{display:block;font-size:11px;font-weight:800;color:#6b778c;margin:0 0 5px}.builder-add-tools{display:flex;gap:7px;flex:1;flex-wrap:wrap}.builder-add-tools button,.builder-history button,.builder-object-actions button,.builder-inspector-head button,.builder-bottom-add button{border:1px solid #d9e1ec;background:#fff;color:#23324a;border-radius:9px;padding:9px 11px;font-weight:700;cursor:pointer}.builder-add-tools button:hover,.builder-object-actions button:hover{background:#f4f7fb}.builder-history{display:flex;gap:6px}.builder-history button{font-size:19px;line-height:1;padding:8px 11px}.builder-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:14px;align-items:start}.builder-inspector{padding:14px;position:sticky;top:74px;max-height:calc(100vh - 96px);overflow:auto}.builder-inspector-head{display:flex;justify-content:space-between;gap:10px;align-items:start;padding-bottom:12px;border-bottom:1px solid #e7ebf1}.builder-inspector-head small{display:block;color:#79869a;font-size:10px;font-weight:800;letter-spacing:.08em}.builder-inspector-head b{font-size:16px}.builder-help{font-size:13px;color:#6b778c;background:#f6f8fb;border-radius:10px;padding:11px;margin-top:12px}.builder-field{display:block;font-size:12px;font-weight:700;color:#526078;margin-top:12px}.builder-field textarea,.builder-field input,.builder-control-grid input,.builder-control-grid select{width:100%;box-sizing:border-box;border:1px solid #d8e0ea;border-radius:8px;background:#fff;padding:9px;font:inherit;margin-top:5px}.builder-upload{display:block;margin-top:10px;border:1px dashed #b9c5d6;border-radius:9px;padding:10px;font-size:12px;font-weight:700}.builder-upload input{width:100%;margin-top:7px}.builder-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.builder-control-grid>label{font-size:11px;font-weight:700;color:#59667a;min-width:0}.builder-color{display:grid;grid-template-columns:38px 1fr;gap:5px;margin-top:5px}.builder-color input{margin:0;padding:3px;min-width:0;height:38px}.builder-color input[type=text]{padding:8px}.builder-control-grid input[type=range]{padding:0}.builder-object-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:14px}.builder-object-actions .danger{color:#bd2938;border-color:#efc4c9}.builder-preview{overflow:hidden;padding:0;min-width:0}.builder-preview-toolbar{padding:9px 12px}.builder-stage{background:#e9edf3;min-height:680px;padding:22px;overflow:auto;display:flex;justify-content:center}.builder-canvas{width:min(100%,1180px);min-height:640px;background:#fff;box-shadow:0 3px 22px rgba(27,39,59,.12);transition:width .2s ease}.builder-canvas[data-device=tablet]{width:768px}.builder-canvas[data-device=mobile]{width:390px}.builder-page{min-height:640px;background:var(--page-bg,#fff);overflow:hidden}.builder-section{position:relative;min-height:120px;padding:48px 7%;border:2px solid transparent;transition:border-color .12s;background:var(--section-bg,transparent)}.builder-section:hover{border-color:#9bc2ff}.builder-section.builder-selected,.builder-element.builder-selected{outline:2px solid #1769e8!important;outline-offset:2px}.builder-section-handle{position:absolute;top:5px;left:5px;background:#1769e8;color:#fff;border:0;border-radius:6px;padding:4px 7px;font-size:10px;font-weight:800;opacity:0;cursor:grab}.builder-section:hover>.builder-section-handle,.builder-section.builder-selected>.builder-section-handle{opacity:1}.builder-section-inner{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:16px;align-items:flex-start}.builder-element{max-width:100%;position:relative;cursor:pointer;border:1px dashed transparent}.builder-element:hover{border-color:#86aef0}.builder-element[contenteditable=true]{cursor:text}.builder-element h1,.builder-element h2,.builder-element h3,.builder-element p{margin:0}.builder-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#1769e8;color:#fff;padding:13px 22px;border-radius:9px;font-weight:700}.builder-image{display:block;max-width:100%;height:auto;border-radius:8px}.builder-image-placeholder{width:100%;min-height:180px;background:#eef2f7;border:1px dashed #b7c3d4;display:flex;align-items:center;justify-content:center;color:#6f7c90;border-radius:10px}.builder-bottom-add{text-align:center;padding:12px;background:#f7f9fc;border-top:1px solid #e1e7f0}.builder-empty{padding:90px 20px;text-align:center;color:#69778c}.builder-empty b{display:block;font-size:22px;color:#26354c;margin-bottom:8px}.builder-two-col .builder-section-inner{display:grid;grid-template-columns:1fr 1fr;gap:32px}.builder-two-col .builder-col{display:flex;flex-direction:column;gap:14px}.builder-canvas[data-device=mobile] .builder-two-col .builder-section-inner{grid-template-columns:1fr}.builder-text-field,.builder-link-field,.builder-image-field{display:none}.builder-controls-text .builder-text-field{display:block}.builder-controls-link .builder-link-field{display:block}.builder-controls-image .builder-image-field{display:block}.builder-preview .device-switcher button.active{background:#e8f0ff;color:#1769e8}.builder-dragging{opacity:.4}.builder-drop-target{box-shadow:inset 0 4px 0 #1769e8}.builder-page-selected{box-shadow:inset 0 0 0 3px #1769e8}.builder-stage *{box-sizing:border-box}
@media(max-width:900px){.builder-topbar{position:static;align-items:stretch;flex-direction:column}.builder-page-picker{min-width:0}.builder-workspace{grid-template-columns:1fr}.builder-preview{order:1}.builder-inspector{order:2;position:static;max-height:none}.builder-stage{min-height:560px;padding:10px}.builder-canvas{width:100%!important}.builder-control-grid{grid-template-columns:1fr 1fr}.builder-add-tools{display:grid;grid-template-columns:repeat(3,1fr)}.builder-add-tools button{padding:9px 6px;font-size:12px}}
@media(max-width:520px){.builder-control-grid{grid-template-columns:1fr}.builder-add-tools{grid-template-columns:repeat(2,1fr)}.builder-stage{padding:4px}.builder-section{padding:36px 6%}.builder-object-actions{grid-template-columns:1fr 1fr}}
/* 012 — per-project analytics dashboard */
.analytics-range{display:flex;gap:6px}.analytics-range button{border:1px solid #dbe3ed;background:#fff;border-radius:9px;padding:8px 10px;font-weight:800;color:#56677e}.analytics-range button.active{background:#eaf2ff;color:#1769e8;border-color:#bcd2f5}.analytics-notice{display:flex;gap:10px;align-items:center;background:#eef7ff;border:1px solid #cfe4fa;border-radius:12px;padding:11px 13px;margin-bottom:14px}.analytics-notice b{color:#23577f}.analytics-notice span{font-size:12px;color:#60758a}.analytics-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.analytics-kpis article{background:#fff;border:1px solid #e0e6ee;border-radius:14px;padding:15px}.analytics-kpis small,.analytics-kpis span{display:block;color:#77869a}.analytics-kpis small{font-weight:800}.analytics-kpis strong{display:block;font-size:29px;margin:7px 0;color:#243750}.analytics-kpis span{font-size:11px}.analytics-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px}.analytics-grid .panel{min-width:0}.analytics-chart{grid-row:span 2}.chart-empty{min-height:260px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#7b889a;font-size:12px}.chart-bars{height:145px;width:100%;display:flex;align-items:end;gap:5px;border-bottom:1px solid #dce3ec;margin-bottom:16px;padding:0 6px}.chart-bars i{display:block;flex:1;min-width:3px;background:#dce8f8;border-radius:4px 4px 0 0}.analytics-list{display:grid;gap:0}.analytics-list>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f4;font-size:12px}.analytics-list>div:last-child{border-bottom:0}.analytics-list span{color:#637287}.analytics-list b{color:#263850}.analytics-connect{margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:15px}.analytics-connect b{color:#263850}.analytics-connect p{margin:4px 0 0;color:#6c7a8d;font-size:12px;max-width:720px}.analytics-connect>span{white-space:nowrap;background:#f1f3f6;color:#748194;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:900}
@media(max-width:900px){.analytics-kpis{grid-template-columns:repeat(2,1fr)}.analytics-grid{grid-template-columns:1fr}.analytics-chart{grid-row:auto}.analytics-notice{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.analytics-kpis{grid-template-columns:1fr 1fr;gap:8px}.analytics-kpis article{padding:12px}.analytics-kpis strong{font-size:24px}.analytics-range{width:100%}.analytics-range button{flex:1;padding:7px 5px}.analytics-connect{align-items:flex-start;flex-direction:column}}
