/* v464.1 split from legacy style.css lines 496-1410: Builder/editor foundation and early dashboard studio rules. Preserve order via style.css imports. */
/* Owner/Admin visual builder replacement */
.builder-dashboard .admin-main{background:linear-gradient(180deg,#fff,#fbf7fb);}
.builder-shell{display:grid;grid-template-columns:260px minmax(420px,1fr) 330px;gap:18px;align-items:start;min-height:calc(100vh - 165px)}
.builder-pages-panel,.builder-canvas-panel,.builder-inspector-panel{background:#fff;border:1px solid #ead7e8;border-radius:24px;box-shadow:0 18px 45px rgba(65,20,60,.08);padding:16px;position:sticky;top:16px;max-height:calc(100vh - 145px);overflow:auto}
.builder-canvas-panel{position:relative;top:0;max-height:none;min-height:720px;background:#faf7fb}
.builder-panel-head,.builder-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.builder-toolbar{background:#fff;border:1px solid #f0e1ef;border-radius:18px;padding:12px;position:sticky;top:0;z-index:4;box-shadow:0 10px 30px rgba(65,20,60,.06)}
.builder-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.btn.small{padding:8px 10px;font-size:12px;border-radius:12px}.btn.full{width:100%;justify-content:center;margin-top:10px}
.builder-page-tree{display:flex;flex-direction:column;gap:8px;margin:14px 0}.builder-page-item{border:1px solid #ead7e8;background:#fff;border-radius:16px;padding:11px;text-align:left;cursor:pointer;transition:.18s;display:flex;flex-direction:column;gap:4px;color:#4b0f45}.builder-page-item:hover,.builder-page-item.active{border-color:#79196f;box-shadow:0 12px 28px rgba(121,25,111,.12);transform:translateY(-1px)}.builder-page-item small{color:#8f6b8a}
.builder-canvas{display:flex;flex-direction:column;gap:14px;min-height:620px;border:2px dashed #e8d4e6;border-radius:24px;padding:16px;background:linear-gradient(135deg,#fff,#fcf8fb)}
.builder-canvas-block{border:1px solid #e6d0e4;background:#fff;border-radius:22px;padding:14px;box-shadow:0 12px 26px rgba(65,20,60,.06);cursor:grab;transition:.18s}.builder-canvas-block.active{outline:3px solid rgba(121,25,111,.18);border-color:#79196f}.builder-canvas-block.dragging{opacity:.45;transform:scale(.985)}
.builder-block-top{display:flex;gap:10px;align-items:center;border-bottom:1px solid #f1e4ef;padding-bottom:10px;margin-bottom:12px}.builder-block-actions{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}.drag-handle{border:0;background:#f7edf6;color:#79196f;border-radius:10px;padding:7px 9px;cursor:grab;font-size:17px}.builder-mini-preview{padding:10px;border-radius:16px;background:#fbf7fb}.builder-mini-preview img{width:100%;max-height:180px;object-fit:cover;border-radius:14px}.builder-mini-preview code{white-space:pre-wrap;word-break:break-word;color:#4b0f45}.builder-empty{border:1px dashed #cfa9ca;border-radius:18px;padding:28px;text-align:center;color:#8f6b8a;background:#fff}
.builder-inspector-panel .textarea.tall{min-height:150px}.code-area{min-height:240px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;direction:ltr;text-align:left}
.builder-image-block{margin:0;background:#fff;border-radius:24px;padding:12px;border:1px solid #ead7e8}.builder-image-block img{display:block;width:100%;border-radius:18px;max-height:560px;object-fit:cover}.builder-image-block figcaption{text-align:center;margin-top:8px;color:#8f6b8a}.builder-button-block{text-align:center;background:#fff;border-radius:24px;padding:34px;border:1px solid #ead7e8}.builder-button-block.align-left{text-align:left}.builder-button-block.align-right{text-align:right}.builder-hero-img{width:100%;height:280px;object-fit:cover;border-radius:22px}.builder-html-output iframe,.protected-embed iframe{width:100%;min-height:420px;border:0;border-radius:22px;background:#111}
.protected-embed{position:relative;overflow:hidden;border-radius:24px;background:#130912;border:1px solid rgba(121,25,111,.35);box-shadow:0 20px 45px rgba(0,0,0,.12)}.protected-embed iframe{display:block;aspect-ratio:16/9;min-height:auto}.embed-lock{position:absolute;top:12px;left:12px;z-index:3;background:rgba(20,8,18,.78);color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:7px 11px;font-size:12px;backdrop-filter:blur(8px)}.embed-watermark{position:absolute;right:14px;bottom:14px;z-index:3;color:rgba(255,255,255,.68);background:rgba(20,8,18,.55);border-radius:12px;padding:8px 10px;font-size:12px;pointer-events:none}
@media(max-width:1150px){.builder-shell{grid-template-columns:1fr}.builder-pages-panel,.builder-inspector-panel{position:relative;top:auto;max-height:none}.builder-toolbar{position:relative}}

/* TRUE OWNER DASHBOARD REPLACEMENT — second-project style app shell, not old dashboard */
.studio-dashboard{
  min-height:100vh;
  display:grid;
  grid-template-columns:292px 1fr;
  background:#f4f5f7;
  color:#18212f;
  padding:0;
}
.studio-rail{
  min-height:100vh;
  position:sticky;
  top:0;
  align-self:start;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:22px 18px;
  background:linear-gradient(180deg,#14101c,#2b1630 58%,#4b0f45);
  color:#fff;
  box-shadow:18px 0 45px rgba(22,16,28,.18);
  z-index:30;
}
.studio-logo{display:flex;align-items:center;gap:12px;padding:10px 8px 18px;border-bottom:1px solid rgba(255,255,255,.12)}
.studio-logo>span{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#fff;color:#4b0f45;font-weight:950;box-shadow:0 12px 34px rgba(0,0,0,.22)}
.studio-logo strong{display:block;font-size:20px;letter-spacing:.01em}.studio-logo small{display:block;color:#d9c4d7;text-transform:uppercase;font-weight:850;letter-spacing:.18em;font-size:10px;margin-top:2px}
.studio-nav{display:grid;gap:8px;overflow:auto;padding-right:2px;flex:1}.studio-nav-btn{display:grid;grid-template-columns:38px 1fr;gap:11px;align-items:center;width:100%;border:1px solid transparent;background:transparent;color:#d9c4d7;text-align:left;border-radius:16px;padding:10px;cursor:pointer;transition:.18s}.studio-nav-btn>span{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.08)}.studio-nav-btn strong{display:block;color:inherit;font-size:14px}.studio-nav-btn small{display:block;color:#b99bb6;font-size:11px;margin-top:2px}.studio-nav-btn:hover,.studio-nav-btn.active{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.15);color:#fff;transform:translateX(2px)}.studio-nav-btn.active>span{background:#fff;color:#4b0f45}.studio-user-card{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.09);border-radius:20px;padding:14px;display:grid;gap:6px}.studio-user-card strong{font-size:14px}.studio-user-card small{color:#d9c4d7}.studio-link{border:0;background:transparent;color:#fff;text-align:left;font-weight:900;padding:8px 0 0;cursor:pointer}.studio-workspace{min-width:0;padding:26px 28px 38px}.studio-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px;margin-bottom:18px;border-radius:28px;background:#fff;border:1px solid #e9e3ea;box-shadow:0 18px 55px rgba(20,16,28,.07)}.studio-kicker{display:inline-block;color:#79196f;text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:950;margin-bottom:6px}.studio-topbar h1{margin:0;font-size:36px;color:#15111b;line-height:1.1}.studio-topbar p{margin:6px 0 0;color:#667085}.studio-top-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.studio-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.studio-metrics>div{background:#fff;border:1px solid #e9e3ea;border-radius:22px;padding:18px;box-shadow:0 14px 35px rgba(20,16,28,.05)}.studio-metrics small{display:block;text-transform:uppercase;letter-spacing:.12em;color:#667085;font-size:11px;font-weight:900}.studio-metrics strong{display:block;font-size:30px;margin-top:6px;color:#15111b}.studio-panel{background:#fff;border:1px solid #e9e3ea;border-radius:28px;padding:22px;box-shadow:0 18px 55px rgba(20,16,28,.07);overflow:hidden}.studio-home-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:18px}.studio-hero-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:center;background:linear-gradient(135deg,#fff,#fff7fd 55%,#f0e2ee)}.studio-hero-panel h2{font-size:34px;line-height:1.1;margin:0 0 10px;color:#15111b}.studio-hero-panel p{color:#667085;line-height:1.7;max-width:760px}.studio-builder-illustration{min-height:220px;border-radius:26px;background:linear-gradient(135deg,#79196f,#4b0f45);color:#fff;display:grid;place-items:center;text-align:center;padding:20px;box-shadow:0 20px 50px rgba(75,15,69,.24)}.studio-builder-illustration span{font-size:56px}.studio-builder-illustration strong,.studio-builder-illustration small{display:block}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.panel-title.compact{align-items:flex-start}.panel-title h3{margin:0;color:#15111b}.panel-title p{margin:4px 0 0}.access-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #edf0f3;background:#fbfcfd;border-radius:18px;padding:12px;margin-bottom:10px}.access-row strong,.access-row small{display:block}.access-row small{color:#667085;margin-top:3px}.studio-dashboard .table-wrap{border-radius:20px;border-color:#e9e3ea}.studio-dashboard .table th{background:#f8f7fa;color:#667085}.studio-dashboard .table td{background:#fff}.studio-dashboard .card{box-shadow:none}
/* Visual Builder app */
.builder-app{display:grid;grid-template-columns:286px minmax(460px,1fr) 340px;gap:18px;align-items:start}.builder-app-pages,.builder-app-canvas,.builder-app-inspector{background:#fff;border:1px solid #e9e3ea;border-radius:28px;box-shadow:0 18px 55px rgba(20,16,28,.06);padding:18px}.builder-app-pages,.builder-app-inspector{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto}.builder-app-canvas{min-height:760px;background:#f9fafb}.builder-page-tree{display:grid;gap:9px;margin:16px 0}.builder-page-item{width:100%;border:1px solid #e4e7ec;background:#fff;border-radius:16px;padding:12px 13px;text-align:left;color:#18212f;cursor:pointer;display:grid;gap:4px;transition:.18s}.builder-page-item span{font-weight:900}.builder-page-item small{color:#667085}.builder-page-item:hover,.builder-page-item.active{border-color:#79196f;background:#fff7fd;box-shadow:0 12px 30px rgba(121,25,111,.11);transform:translateY(-1px)}.builder-page-actions{display:grid;gap:8px}.builder-app-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px;padding:16px;border-radius:22px;background:#fff;border:1px solid #edf0f3}.builder-app-toolbar h2{margin:0;color:#15111b}.builder-app-toolbar p{margin:5px 0 0;color:#667085}.builder-tool-palette{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.builder-tool{border:1px solid #ded3df;background:#fff;color:#4b0f45;border-radius:999px;padding:9px 12px;font-weight:900;cursor:pointer;transition:.16s}.builder-tool:hover{background:#79196f;color:#fff;border-color:#79196f;transform:translateY(-1px)}.builder-dropzone{min-height:640px;display:grid;gap:14px;align-content:start;border:2px dashed #d0d5dd;border-radius:28px;background:linear-gradient(135deg,#fff,#fcfcfd);padding:18px}.builder-canvas-block{border:1px solid #e4e7ec;background:#fff;border-radius:24px;padding:14px;box-shadow:0 12px 30px rgba(16,24,40,.06);cursor:grab;transition:.18s}.builder-canvas-block:hover{transform:translateY(-1px)}.builder-canvas-block.active{border-color:#79196f;box-shadow:0 0 0 4px rgba(121,25,111,.09),0 16px 35px rgba(16,24,40,.08)}.builder-canvas-block.dragging{opacity:.48;transform:scale(.985)}.builder-block-top{display:flex;gap:10px;align-items:center;border-bottom:1px solid #edf0f3;padding-bottom:10px;margin-bottom:12px}.builder-block-actions{margin-left:auto;display:flex;gap:7px;flex-wrap:wrap}.drag-handle{border:0;background:#f3eef3;color:#79196f;border-radius:12px;padding:7px 10px;cursor:grab;font-size:18px}.builder-mini-preview{padding:12px;border-radius:18px;background:#f8f7fa}.builder-mini-preview h2,.builder-mini-preview h3{margin:0 0 6px}.builder-mini-preview p{margin:0;color:#667085}.builder-mini-preview img{width:100%;max-height:210px;object-fit:cover;border-radius:16px}.builder-mini-preview code{display:block;white-space:pre-wrap;word-break:break-word;color:#4b0f45}.builder-empty{border:1px dashed #b8bdc7;border-radius:22px;padding:34px;text-align:center;color:#667085;background:#fff}.builder-app-inspector .textarea.tall{min-height:150px}.code-area{min-height:240px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;direction:ltr;text-align:left}.btn.small{padding:8px 10px;font-size:12px;border-radius:12px}.btn.full{width:100%;justify-content:center}.builder-image-block{margin:0;background:#fff;border-radius:24px;padding:12px;border:1px solid #ead7e8}.builder-image-block img{display:block;width:100%;border-radius:18px;max-height:560px;object-fit:cover}.builder-image-block figcaption{text-align:center;margin-top:8px;color:#8f6b8a}.builder-button-block{text-align:center;background:#fff;border-radius:24px;padding:34px;border:1px solid #ead7e8}.builder-button-block.align-left{text-align:left}.builder-button-block.align-right{text-align:right}.builder-hero-img{width:100%;height:280px;object-fit:cover;border-radius:22px}.builder-html-output iframe,.protected-embed iframe{width:100%;min-height:420px;border:0;border-radius:22px;background:#111}.protected-embed{position:relative;overflow:hidden;border-radius:24px;background:#130912;border:1px solid rgba(121,25,111,.35);box-shadow:0 20px 45px rgba(0,0,0,.12)}.protected-embed iframe{display:block;aspect-ratio:16/9;min-height:auto}.embed-lock{position:absolute;top:12px;left:12px;z-index:3;background:rgba(20,8,18,.78);color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:7px 11px;font-size:12px;backdrop-filter:blur(8px)}.embed-watermark{position:absolute;right:14px;bottom:14px;z-index:3;color:rgba(255,255,255,.68);background:rgba(20,8,18,.55);border-radius:12px;padding:8px 10px;font-size:12px;pointer-events:none}
@media(max-width:1200px){.studio-dashboard{grid-template-columns:1fr}.studio-rail{position:relative;min-height:auto}.studio-nav{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.studio-user-card{display:none}.builder-app{grid-template-columns:1fr}.builder-app-pages,.builder-app-inspector{position:relative;top:auto;max-height:none}.studio-home-grid{grid-template-columns:1fr}.studio-hero-panel{grid-template-columns:1fr}.studio-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.studio-workspace{padding:16px}.studio-topbar{align-items:flex-start;flex-direction:column;padding:18px}.studio-metrics{grid-template-columns:1fr}.studio-nav{grid-template-columns:1fr}.builder-app-toolbar{flex-direction:column}.builder-tool-palette{justify-content:flex-start}.studio-topbar h1{font-size:30px}.studio-hero-panel h2{font-size:28px}}


/* Power dashboard v5 */
.collapse-tab{position:absolute;z-index:20;width:28px;height:72px;border:1px solid #e7dce8;background:#fff;color:#79196f;border-radius:999px;font-weight:950;box-shadow:0 12px 28px rgba(20,16,28,.16);cursor:pointer;display:grid;place-items:center}.rail-collapse-tab{right:-14px;top:50%;transform:translateY(-50%)}.inspector-collapse-tab{left:-14px;top:50%;transform:translateY(-50%)}
.studio-dashboard.rail-collapsed{grid-template-columns:34px 1fr}.studio-dashboard.rail-collapsed .studio-rail{padding:0;overflow:visible}.studio-dashboard.rail-collapsed .studio-logo,.studio-dashboard.rail-collapsed .studio-nav,.studio-dashboard.rail-collapsed .studio-open-site{display:none}.studio-open-site{width:100%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.09);color:#fff;border-radius:16px;padding:12px;font-weight:900;cursor:pointer}.builder-app.inspector-collapsed{grid-template-columns:286px minmax(460px,1fr) 34px}.builder-app.inspector-collapsed .builder-app-inspector{padding:0;overflow:visible}.builder-app.inspector-collapsed .builder-app-inspector>*:not(.inspector-collapse-tab){display:none}
.role-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.role-tab{border:1px solid #e4d6e5;background:#fff;color:#4b0f45;border-radius:999px;padding:10px 14px;font-weight:950;cursor:pointer}.role-tab.active,.role-tab:hover{background:#79196f;color:#fff;border-color:#79196f}.access-course-list{display:grid;gap:10px;max-height:380px;overflow:auto;padding:4px}.access-course-check{display:flex;align-items:center;gap:12px;border:1px solid #ece6ef;border-radius:16px;padding:12px;background:#fff}.access-course-check span{display:grid}.access-course-check small{color:#667085;margin-top:3px}.three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.inspector-group{border:1px solid #eadfeb;background:#fff9fe;border-radius:18px;padding:12px}.inspector-group h4{margin:0 0 10px;color:#4b0f45}.textarea.xl{min-height:420px}.builder-preview-controls{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-bottom:12px}.builder-preview-controls span{font-weight:950;color:#4b0f45}.builder-preview-controls [disabled]{opacity:.45;cursor:not-allowed}.builder-live-shell{width:100%;min-height:720px;overflow:auto;border:1px solid #e4e7ec;border-radius:28px;background:#d9dce3;padding:26px}.builder-live-page{position:relative;width:1200px;min-height:900px;transform:scale(var(--preview-zoom,1));transform-origin:top left;background:#fff;border-radius:0;box-shadow:0 25px 80px rgba(16,24,40,.20);overflow:hidden}.builder-live-block{position:absolute;min-height:70px;border:1px dashed rgba(121,25,111,.25);border-radius:18px}.builder-live-block.active{outline:3px solid rgba(121,25,111,.28);outline-offset:3px}.builder-live-block.moving{opacity:.78;z-index:30}.live-drag-handle{position:absolute;top:-14px;left:-14px;width:32px;height:32px;border:0;border-radius:999px;background:#79196f;color:#fff;box-shadow:0 8px 18px rgba(0,0,0,.2);cursor:move;z-index:5}.builder-block-list{display:grid;gap:10px;margin-top:16px}.builder-block-list:empty{display:none}.preview-fullscreen{position:fixed;inset:0;z-index:190;background:#f4f1f6;padding:18px;grid-template-columns:286px minmax(650px,1fr) 360px!important;overflow:auto}.preview-fullscreen .builder-app-pages,.preview-fullscreen .builder-app-inspector{max-height:calc(100vh - 36px);top:0}.preview-fullscreen .builder-app-canvas{min-height:calc(100vh - 36px)}.preview-fullscreen .builder-live-shell{height:calc(100vh - 220px)}.free-page-canvas{position:relative;background:#fff;overflow:hidden}.free-page-block{position:absolute}.free-hero-card{background:linear-gradient(135deg,#79196f,#4b0f45);color:#fff;border-radius:28px;padding:34px;box-shadow:0 24px 55px rgba(75,15,69,.18)}.free-hero-card h1{font-family:Georgia,serif;font-size:44px;line-height:1.05}.certificate-template-card{background:#fff;padding:28px;border:1px solid #ddd;border-radius:18px;text-align:center;max-width:900px;margin:0 auto}.cert-border{border:8px double #79196f;padding:38px;min-height:520px}.cert-border h1{font-family:Georgia,serif;color:#4b0f45;font-size:44px;margin:0 0 18px}.cert-border h2{font-family:Georgia,serif;color:#15111b;font-size:36px;margin:10px 0}.cert-border h3{color:#79196f;font-size:24px}.cert-codes{display:flex;align-items:center;justify-content:center;gap:28px;margin:26px 0}.cert-qr{width:150px;height:150px}.cert-barcode{width:260px;height:110px}.cert-id{font-weight:950;letter-spacing:.08em}.certificate-preview-wrap{background:#f9fafb;border:1px solid #e4e7ec;border-radius:22px;padding:18px;overflow:auto}.custom-html-live{padding:24px}.builder-app .btn[disabled]{pointer-events:none}.program-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.program-visual img+span{position:relative;z-index:2;background:rgba(75,15,69,.8)}
@media(max-width:900px){.studio-dashboard.rail-collapsed{grid-template-columns:1fr}.builder-app.inspector-collapsed{grid-template-columns:1fr}.preview-fullscreen{grid-template-columns:1fr!important}.three-col{grid-template-columns:1fr}.cert-codes{flex-direction:column}}

/* V6 dashboard/builder corrections */
.command-center-grid{display:grid;grid-template-columns:1.35fr .9fr .9fr;gap:18px}.command-hero{grid-column:1 / span 3;display:grid;grid-template-columns:1fr 220px;align-items:center;background:linear-gradient(135deg,#fff,#fff7fd)}.command-hero h2{font-family:Georgia,serif;font-size:42px;line-height:1.08;margin:6px 0 12px;color:#2f0a2b}.command-orb{height:180px;border-radius:36px;background:radial-gradient(circle at 35% 20%,#fff,#ead7e8);display:grid;place-items:center;text-align:center;border:1px solid #ead7e8;box-shadow:0 24px 60px rgba(121,25,111,.14)}.command-orb span{font-size:38px}.command-orb strong{font-size:48px;color:#79196f;line-height:.9}.command-card h3{margin:0 0 12px;color:#4b0f45}.command-list{display:grid;gap:10px}.command-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #efe6ef;border-radius:14px;padding:10px;background:#fff}
.builder-app{grid-template-columns:286px minmax(620px,1fr) 360px}.builder-app.pages-collapsed{grid-template-columns:34px minmax(720px,1fr) 360px}.builder-app.pages-collapsed .builder-app-pages{padding:0;overflow:visible}.builder-app.pages-collapsed .builder-app-pages>*:not(.pages-collapse-tab){display:none}.pages-collapse-tab{right:-14px;top:50%;transform:translateY(-50%)}.builder-page-item{padding-left:calc(13px + (var(--depth,0) * 18px))}.builder-page-tree{display:grid;gap:8px;overflow:auto;max-height:calc(100vh - 330px)}
.builder-preview-controls{justify-content:space-between;flex-wrap:wrap;background:#fff;border:1px solid #edf0f3;border-radius:18px;padding:10px}.device-switcher{display:flex;gap:6px;align-items:center}.device-switcher .active{background:#79196f;color:#fff}.builder-live-shell{display:flex;justify-content:center;align-items:flex-start;min-height:760px;background:linear-gradient(135deg,#cfd3dd,#eef0f5);padding:28px;overflow:auto}.builder-device-frame{transform:scale(var(--preview-zoom,1));transform-origin:top center;background:#fff;box-shadow:0 28px 90px rgba(16,24,40,.28);border:1px solid rgba(16,24,40,.18);transition:width .18s ease;border-radius:22px;overflow:hidden}.builder-device-frame.device-desktop{width:1200px;min-height:900px}.builder-device-frame.device-tablet{width:820px;min-height:1080px}.builder-device-frame.device-mobile{width:390px;min-height:844px;border-radius:34px}.builder-preview-site{background:#fff;min-height:inherit;overflow:hidden}.preview-navbar{height:76px;background:#4b0f45;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 34px}.preview-brand{display:flex;align-items:center;gap:10px;font-weight:950}.preview-brand span{width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.14);display:grid;place-items:center}.preview-links{display:flex;gap:18px;color:rgba(255,255,255,.78);font-weight:800}.preview-navbar button{border:1px solid rgba(255,255,255,.3);background:#fff;color:#4b0f45;border-radius:13px;padding:10px 14px;font-weight:900}.preview-footer{background:#2f0a2b;color:#fff;padding:34px;text-align:center}.preview-footer p{max-width:700px;margin:8px auto 0;color:rgba(255,255,255,.7)}.builder-device-frame.device-tablet .grid-4,.builder-device-frame.device-tablet .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-device-frame.device-mobile .preview-navbar{height:auto;min-height:76px;padding:16px;align-items:flex-start}.builder-device-frame.device-mobile .preview-links{display:none}.builder-device-frame.device-mobile .hero-grid,.builder-device-frame.device-mobile .grid-4,.builder-device-frame.device-mobile .grid-3,.builder-device-frame.device-mobile .grid-2{grid-template-columns:1fr}.builder-device-frame.device-mobile .hero{min-height:auto;padding:120px 0 48px}.builder-device-frame.device-mobile .section{padding:44px 0}.builder-device-frame.device-mobile .container{width:min(100% - 28px,1200px)}
.builder-live-block{z-index:2;background:rgba(255,255,255,.86)}.free-page-canvas{min-height:900px}.builder-section-block{background:#fff;border:1px solid #ead7e8;border-radius:28px;padding:34px;box-shadow:0 18px 40px rgba(75,15,69,.07)}.builder-subsection-block{background:#fffafc;border:1px dashed #cfa8cb;border-radius:22px;padding:24px}.builder-section-block h2,.builder-subsection-block h3{margin-top:0;color:#4b0f45}.builder-bottom-html{margin-top:18px}.builder-bottom-html .page-html-live{min-height:360px}.inspector-html-under{margin-top:18px;border-top:1px solid #edf0f3;padding-top:16px}.inspector-html-under .page-html-live{min-height:260px}.preview-fullscreen .builder-live-shell{height:calc(100vh - 240px);min-height:620px}.preview-fullscreen.builder-app.pages-collapsed{grid-template-columns:34px minmax(850px,1fr) 360px!important}.preview-fullscreen.builder-app.inspector-collapsed{grid-template-columns:286px minmax(900px,1fr) 34px!important}.preview-fullscreen.builder-app.pages-collapsed.inspector-collapsed{grid-template-columns:34px minmax(1000px,1fr) 34px!important}.builder-app.inspector-collapsed.pages-collapsed{grid-template-columns:34px minmax(760px,1fr) 34px}.builder-app.inspector-collapsed.pages-collapsed .builder-app-inspector{padding:0;overflow:visible}
@media(max-width:1200px){.command-center-grid{grid-template-columns:1fr}.command-hero{grid-column:auto;grid-template-columns:1fr}.builder-app.pages-collapsed{grid-template-columns:1fr}.builder-app.pages-collapsed .builder-app-pages{display:block;min-height:34px}.builder-device-frame.device-desktop{width:1000px}}
@media(max-width:700px){.command-hero h2{font-size:30px}.builder-live-shell{padding:12px}.builder-device-frame.device-desktop{width:900px}.builder-device-frame.device-tablet{width:760px}}


/* v7 realistic preview + true fullscreen stage */
.builder-live-shell{position:relative;}
.builder-device-frame{box-sizing:border-box;position:relative;flex:0 0 auto;}
.builder-device-frame,.builder-preview-site{contain:layout style paint;}
.builder-device-frame .navbar{position:relative;top:auto;box-shadow:0 8px 24px rgba(16,24,40,.08);}
.builder-device-frame .mobile-drawer{display:none!important;}
.builder-device-frame.device-desktop{width:1440px;min-height:980px;border-radius:12px;background:#fff;padding:0;}
.builder-device-frame.device-desktop .builder-preview-site{min-height:980px;border-radius:12px;}
.builder-device-frame.device-tablet{width:820px;min-height:1108px;padding:22px;background:#111;border-radius:42px;border:8px solid #222;box-shadow:0 34px 110px rgba(0,0,0,.42);}
.builder-device-frame.device-tablet::before{content:"";position:absolute;top:9px;left:50%;width:9px;height:9px;border-radius:50%;transform:translateX(-50%);background:#444;z-index:3;}
.builder-device-frame.device-tablet .builder-preview-site{min-height:1024px;border-radius:18px;background:#fff;overflow:hidden;}
.builder-device-frame.device-mobile{width:430px;min-height:910px;padding:18px 14px 24px;background:#111;border-radius:46px;border:8px solid #222;box-shadow:0 34px 110px rgba(0,0,0,.45);}
.builder-device-frame.device-mobile::before{content:"";position:absolute;top:10px;left:50%;width:126px;height:26px;border-radius:0 0 16px 16px;transform:translateX(-50%);background:#111;z-index:4;}
.builder-device-frame.device-mobile::after{content:"";position:absolute;bottom:9px;left:50%;width:120px;height:5px;border-radius:999px;transform:translateX(-50%);background:#333;z-index:4;}
.builder-device-frame.device-mobile .builder-preview-site{min-height:844px;border-radius:30px;background:#fff;overflow:hidden;}
.builder-device-frame.device-tablet .container{width:min(100% - 44px,720px);}
.builder-device-frame.device-mobile .container{width:min(100% - 28px,390px);}
.builder-device-frame.device-tablet .nav-inner{height:auto;min-height:76px;padding:12px 0;gap:12px;}
.builder-device-frame.device-tablet .nav-links{gap:10px;}
.builder-device-frame.device-tablet .nav-actions{gap:8px;}
.builder-device-frame.device-tablet .btn{padding:10px 12px;}
.builder-device-frame.device-mobile .navbar{border-radius:30px 30px 0 0;}
.builder-device-frame.device-mobile .nav-inner{height:auto;min-height:78px;padding:16px 0;}
.builder-device-frame.device-mobile .brand-title{font-size:15px;}
.builder-device-frame.device-mobile .brand-sub{font-size:11px;}
.builder-device-frame.device-mobile .brand-mark{width:38px;height:38px;border-radius:13px;}
.builder-device-frame.device-mobile .nav-links,.builder-device-frame.device-mobile .nav-actions{display:none!important;}
.builder-device-frame.device-mobile .mobile-menu-btn{display:block;margin-left:auto;}
.builder-device-frame.device-mobile .hero h1{font-size:36px;line-height:1.08;}
.builder-device-frame.device-mobile .page-hero h1{font-size:36px;}
.builder-device-frame.device-mobile .free-hero-card h1{font-size:34px;}
.builder-device-frame.device-mobile .builder-live-block{max-width:calc(100% - 24px);}
.builder-live-block{touch-action:none;cursor:move;}
.builder-live-block *{user-select:none;}
.builder-live-block input,.builder-live-block textarea,.builder-live-block select{user-select:text;}
.preview-fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:9999!important;display:grid!important;grid-template-columns:1fr!important;background:#111!important;padding:0!important;margin:0!important;overflow:hidden!important;border-radius:0!important;}
.preview-fullscreen .builder-app-pages,.preview-fullscreen .builder-app-inspector,.preview-fullscreen .builder-app-toolbar,.preview-fullscreen .builder-block-list,.preview-fullscreen .builder-bottom-html{display:none!important;}
.preview-fullscreen .builder-app-canvas{height:100vh!important;min-height:100vh!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#111!important;padding:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
.preview-fullscreen .builder-preview-controls{height:58px;flex:0 0 58px;margin:0!important;border-radius:0!important;border:0!important;background:rgba(17,17,17,.96)!important;color:#fff!important;box-shadow:0 12px 38px rgba(0,0,0,.35);position:relative;z-index:20;padding:8px 14px!important;}
.preview-fullscreen .builder-preview-controls span{color:#fff!important;}
.preview-fullscreen .builder-preview-controls .btn{background:#fff;color:#3b0d36;border-color:rgba(255,255,255,.24);}
.preview-fullscreen .builder-preview-controls .device-switcher .active{background:#79196f!important;color:#fff!important;}
.preview-fullscreen .builder-live-shell{height:calc(100vh - 58px)!important;min-height:0!important;border:0!important;border-radius:0!important;background:radial-gradient(circle at top,#343844,#111 58%)!important;padding:28px!important;overflow:auto!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;}
.preview-fullscreen .builder-device-frame.device-desktop{width:1440px;min-height:1000px;border-radius:0;}
.preview-fullscreen .builder-device-frame.device-desktop .builder-preview-site{min-height:1000px;border-radius:0;}
.preview-fullscreen .builder-device-frame.device-tablet{width:820px;min-height:1108px;}
.preview-fullscreen .builder-device-frame.device-mobile{width:430px;min-height:910px;}
.preview-fullscreen .free-page-canvas{min-height:calc(100vh - 58px);}
.preview-fullscreen .builder-live-block.active{outline:4px solid rgba(255,255,255,.75);outline-offset:4px;}
@media(max-width:900px){.preview-fullscreen .builder-live-shell{justify-content:flex-start;padding:16px!important}.builder-device-frame.device-desktop{width:1200px}}

/* v8 manual-save builder polish */
.builder-toolbar-actions{display:grid;gap:10px;justify-items:end}.builder-save-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.builder-save-state{display:inline-flex;align-items:center;margin-top:8px;border-radius:999px;padding:7px 11px;background:#fff7e8;color:#8a4b00;font-weight:950;font-size:12px;border:1px solid #ffd8a8}.builder-save-state:has(+ *){display:inline-flex}.builder-app:not(.preview-fullscreen) .builder-save-state{box-shadow:0 8px 22px rgba(138,75,0,.08)}
.command-card .small{font-size:12px}.mt-1{margin-top:8px!important}.builder-save-actions .btn[disabled]{opacity:.42;cursor:not-allowed}.preview-fullscreen .builder-save-actions,.preview-fullscreen .builder-save-state{display:none!important}


/* v10 final pre-launch polish: smaller rail, true hidden rail, clear builder modes, safer fullscreen */
.studio-dashboard{grid-template-columns:236px 1fr!important;}
.studio-rail{padding:16px 12px!important;gap:12px!important;}
.studio-logo{padding:6px 6px 12px!important;gap:9px!important;}
.studio-logo>span{width:40px!important;height:40px!important;border-radius:13px!important;}
.studio-logo strong{font-size:16px!important;}
.studio-logo small{font-size:9px!important;letter-spacing:.13em!important;}
.studio-nav{gap:6px!important;}
.studio-nav-btn{grid-template-columns:32px 1fr!important;gap:8px!important;border-radius:13px!important;padding:8px!important;}
.studio-nav-btn>span{width:30px!important;height:30px!important;border-radius:10px!important;font-size:14px!important;}
.studio-nav-btn strong{font-size:12px!important;}
.studio-nav-btn small{font-size:10px!important;}
.studio-open-site{padding:10px!important;border-radius:13px!important;font-size:12px!important;}
.studio-dashboard.rail-collapsed{grid-template-columns:1fr!important;}
.studio-dashboard.rail-collapsed .studio-rail{display:none!important;}
.studio-title-row{display:flex;align-items:center;gap:12px;}
.builder-mode-switch{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.builder-mode-btn{border:1px solid #ead7e8;background:#fff;color:#4b0f45;border-radius:999px;padding:9px 12px;font-weight:950;cursor:pointer;box-shadow:0 8px 18px rgba(75,15,69,.06);}
.builder-mode-btn.active{background:#79196f;color:#fff;border-color:#79196f;}
.builder-html-mode-note{border:1px dashed #cfa8cb;background:#fff7fd;color:#4b0f45;border-radius:18px;padding:14px;margin-top:14px;font-weight:850;}
.page-html-live[readonly]{background:#f7f7f9;color:#344054;}
.builder-app.mode-html .builder-live-block{border-style:solid;}
.preview-fullscreen .builder-preview-controls{height:auto!important;min-height:58px!important;flex:0 0 auto!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:8px!important;overflow-x:auto!important;}
.preview-fullscreen .builder-live-shell{height:auto!important;min-height:0!important;flex:1 1 auto!important;align-items:flex-start!important;}
.preview-fullscreen .builder-device-frame{transform:scale(var(--preview-zoom,1))!important;transform-origin:top center!important;margin-bottom:calc((1 - var(--preview-zoom,1)) * -1000px)!important;}
.preview-fullscreen .builder-preview-site{box-shadow:0 30px 90px rgba(0,0,0,.48)!important;}
.preview-fullscreen .builder-device-frame.device-desktop{width:1440px!important;min-height:1000px!important;}
.preview-fullscreen .builder-device-frame.device-tablet{width:820px!important;min-height:1108px!important;}
.preview-fullscreen .builder-device-frame.device-mobile{width:430px!important;min-height:910px!important;}
@media(max-width:1200px){.studio-dashboard{grid-template-columns:1fr!important}.studio-rail{position:relative!important;min-height:auto!important}.studio-dashboard:not(.rail-collapsed) .studio-rail{display:flex!important}.studio-dashboard.rail-collapsed .studio-rail{display:none!important}}

/* v11 final preview correction: true-size preview, one HTML editor, compact dashboard UI */
.studio-dashboard .btn,
.builder-app .btn,
.modal .btn,
.studio-dashboard button:not(.floating-contact-main):not(.close):not(.mobile-menu-btn) {
  min-height:34px;
  padding:7px 11px;
  border-radius:10px;
  font-size:12px;
  line-height:1.15;
}
.builder-app .btn.full{min-height:38px;padding:8px 10px;border-radius:13px;}
.builder-app{grid-template-columns:250px minmax(640px,1fr) 310px!important;gap:12px!important;}
.builder-app.pages-collapsed{grid-template-columns:34px minmax(740px,1fr) 310px!important;}
.builder-app.inspector-collapsed{grid-template-columns:250px minmax(740px,1fr) 34px!important;}
.builder-app.pages-collapsed.inspector-collapsed{grid-template-columns:34px minmax(820px,1fr) 34px!important;}
.builder-app-pages,.builder-app-canvas,.builder-app-inspector{border-radius:18px!important;padding:14px!important;}
.builder-app-pages{max-height:calc(100vh - 28px)!important;}
.builder-app-pages .panel-title.compact{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;margin-bottom:8px;}
.builder-app-pages .panel-title h3{font-size:18px;margin:0 0 4px;}
.builder-app-pages .panel-title p{font-size:12px;line-height:1.35;margin:0;}
.builder-page-tree{gap:5px!important;margin:10px 0!important;max-height:calc(100vh - 250px)!important;padding:2px!important;}
.builder-page-item{border-radius:12px!important;padding:8px 9px!important;padding-left:calc(9px + (var(--depth,0) * 14px))!important;gap:1px!important;box-shadow:none!important;}
.builder-page-item:hover,.builder-page-item.active{transform:none!important;box-shadow:0 6px 14px rgba(121,25,111,.08)!important;}
.builder-page-item span{font-size:13px!important;line-height:1.25!important;}
.builder-page-item small{font-size:11px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.builder-page-actions{gap:6px!important;}
.builder-app-toolbar{padding:12px!important;border-radius:16px!important;margin-bottom:10px!important;}
.builder-app-toolbar h2{font-size:21px!important;line-height:1.15!important;}
.builder-tool-palette{gap:5px!important;}
.builder-tool{padding:6px 9px!important;border-radius:999px!important;font-size:11px!important;}
.builder-mode-btn{padding:7px 10px!important;font-size:12px!important;}
.builder-preview-controls{padding:7px 8px!important;margin-bottom:8px!important;border-radius:14px!important;gap:6px!important;}
.builder-preview-controls .btn{min-height:30px!important;padding:6px 9px!important;font-size:11px!important;}
.builder-block-list{gap:8px!important;margin-top:10px!important;}
.builder-canvas-block{border-radius:16px!important;padding:10px!important;}
.builder-block-top{gap:7px!important;padding-bottom:7px!important;margin-bottom:8px!important;}
.builder-mini-preview{padding:9px!important;border-radius:13px!important;}
.builder-bottom-html{display:none!important;}
.builder-app.mode-html .builder-bottom-html.single-html-editor{display:block!important;margin-top:12px!important;}
.builder-app.mode-smart .inspector-html-under,
.builder-app.mode-html .inspector-html-under{display:none!important;}
.builder-app.mode-smart .page-html-inline-form{display:none!important;}
.builder-live-shell{
  min-height:620px!important;
  background:#dfe3eb!important;
  padding:18px!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  overflow:auto!important;
  border-radius:18px!important;
}
.builder-device-zoom-wrap{position:relative;flex:0 0 auto;overflow:visible;}
.builder-device-frame{
  width:var(--preview-width)!important;
  min-height:var(--preview-height)!important;
  transform:scale(var(--preview-zoom,1))!important;
  transform-origin:top left!important;
  margin:0!important;
}
.builder-device-frame.device-desktop{width:1366px!important;min-height:900px!important;border-radius:0!important;}
.builder-device-frame.device-desktop .builder-preview-site{min-height:900px!important;border-radius:0!important;}
.builder-device-frame.device-tablet{width:820px!important;min-height:1108px!important;}
.builder-device-frame.device-tablet .builder-preview-site{min-height:1024px!important;}
.builder-device-frame.device-mobile{width:430px!important;min-height:910px!important;}
.builder-device-frame.device-mobile .builder-preview-site{min-height:844px!important;}
.builder-preview-site{width:100%!important;background:#fff!important;}
.free-page-canvas{overflow:visible!important;}
.builder-live-block{cursor:move!important;}
.builder-live-block .live-drag-handle{pointer-events:auto!important;}
.preview-fullscreen{background:#111!important;overflow:hidden!important;}
.preview-fullscreen .builder-app-canvas{height:100vh!important;min-height:100vh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
.preview-fullscreen .builder-preview-controls{position:sticky!important;top:0!important;z-index:100!important;background:#111!important;border-radius:0!important;border:0!important;color:#fff!important;min-height:46px!important;padding:6px 10px!important;}
.preview-fullscreen .builder-live-shell{height:auto!important;min-height:0!important;flex:1 1 auto!important;padding:18px!important;overflow:auto!important;justify-content:flex-start!important;align-items:flex-start!important;background:#151923!important;border-radius:0!important;border:0!important;}
.preview-fullscreen .builder-device-zoom-wrap{margin:0 auto 80px 0!important;}
.preview-fullscreen .builder-device-frame{margin:0!important;}
.preview-fullscreen .builder-preview-site{box-shadow:0 22px 70px rgba(0,0,0,.45)!important;}
.preview-fullscreen .builder-device-frame.device-desktop{width:1366px!important;min-height:900px!important;}
.preview-fullscreen .builder-device-frame.device-desktop .builder-preview-site{min-height:900px!important;}
.preview-fullscreen .builder-device-frame.device-tablet{width:820px!important;min-height:1108px!important;}
.preview-fullscreen .builder-device-frame.device-mobile{width:430px!important;min-height:910px!important;}
.preview-fullscreen .free-page-canvas{min-height:900px!important;}
.preview-fullscreen .builder-app-pages,
.preview-fullscreen .builder-app-inspector,
.preview-fullscreen .builder-app-toolbar,
.preview-fullscreen .builder-block-list,
.preview-fullscreen .builder-bottom-html{display:none!important;}
@media(max-width:1200px){
  .builder-app{grid-template-columns:1fr!important;}
  .builder-app-pages,.builder-app-inspector{position:relative!important;top:auto!important;max-height:none!important;}
  .preview-fullscreen{grid-template-columns:1fr!important;}
  .preview-fullscreen .builder-live-shell{padding:12px!important;}
}


/* v12 final builder refinement: compact dashboard, realistic full-page preview, no bold dashboard text */
.studio-dashboard, .studio-dashboard *, .builder-app, .builder-app * { font-weight: 400 !important; }
.studio-dashboard h1, .studio-dashboard h2, .studio-dashboard h3,
.builder-app h1, .builder-app h2, .builder-app h3 { font-weight: 520 !important; }
.studio-dashboard .btn, .builder-app .btn, .builder-tool, .builder-mode-btn { font-weight: 520 !important; }
.builder-page-item span { font-weight: 400 !important; }
.builder-page-item { min-height: 46px !important; padding: 7px 9px !important; }
.builder-page-tree { gap: 4px !important; }
.builder-page-actions .btn { min-height: 32px !important; padding: 6px 9px !important; }
.builder-app-pages .panel-title p { max-width: 150px; }
.builder-page-quick-actions { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.builder-toolbar-actions { gap: 7px !important; }
.builder-tool-palette { max-width: 540px; }
.builder-tool, .builder-mode-btn { min-height: 28px !important; padding: 5px 8px !important; font-size: 11px !important; }
.builder-save-actions .btn { min-height: 30px !important; padding: 6px 9px !important; }
.builder-app-toolbar { align-items:flex-start !important; }
.builder-live-shell { width:100% !important; min-height: 680px !important; overflow:auto !important; }
.builder-device-zoom-wrap { display:block !important; }
.builder-device-frame { width: var(--preview-width) !important; min-height: var(--preview-height) !important; height:auto !important; overflow:visible !important; transform:scale(var(--preview-zoom,1)) !important; transform-origin: top left !important; }
.builder-preview-site { width:100% !important; min-height: var(--preview-height) !important; height:auto !important; overflow:visible !important; }
.builder-device-frame.device-desktop { width:1366px !important; min-height:900px !important; }
.builder-device-frame.device-tablet { width:768px !important; min-height:1024px !important; border-radius:34px !important; border:14px solid #111827 !important; background:#fff !important; }
.builder-device-frame.device-mobile { width:390px !important; min-height:844px !important; border-radius:38px !important; border:14px solid #111827 !important; background:#fff !important; }
.builder-device-frame.device-tablet .builder-preview-site { min-height:1024px !important; border-radius:20px !important; overflow:visible !important; }
.builder-device-frame.device-mobile .builder-preview-site { min-height:844px !important; border-radius:24px !important; overflow:visible !important; }
.builder-device-frame.device-mobile:before { content:''; position:absolute; top:8px; left:50%; transform:translateX(-50%); width:84px; height:5px; border-radius:999px; background:#111827; z-index:6; }
.builder-device-frame.device-mobile { position:relative !important; }
.free-page-canvas { min-height:1200px !important; position:relative !important; }
.free-page-block { position:absolute !important; }
.preview-fullscreen .builder-live-shell { padding:18px !important; overflow:auto !important; align-items:flex-start !important; justify-content:flex-start !important; }
.preview-fullscreen .builder-device-zoom-wrap { margin:0 auto 120px 0 !important; }
.preview-fullscreen .builder-device-frame { height:auto !important; overflow:visible !important; }
.preview-fullscreen .builder-preview-controls .btn,
.preview-fullscreen .builder-preview-controls button { pointer-events:auto !important; }
.preview-fullscreen .builder-preview-controls { z-index:10000 !important; }
.access-denied-card { max-width: 760px; margin: 0 auto; text-align:center; }
@media(max-width:1200px){ .builder-app-toolbar{flex-direction:column!important}.builder-toolbar-actions{justify-items:start!important}.builder-page-quick-actions{justify-content:flex-start!important} }


/* v13 repair: no page-panel horizontal slider, safer fullscreen, no whole-section dragging */
.builder-app-pages,
.builder-page-tree,
.builder-page-item {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
.builder-page-actions,
.builder-page-quick-actions {
  display: none !important;
}
.builder-page-item {
  grid-template-columns: minmax(0,1fr) !important;
  white-space: normal !important;
}
.builder-page-item span,
.builder-page-item small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.builder-live-block.section-container-block {
  cursor: default !important;
  outline-style: dashed !important;
}
.builder-live-block.section-container-block * {
  user-select: auto !important;
}
.builder-live-block.section-container-block .live-drag-handle {
  display: none !important;
}
.builder-preview-site a,
.builder-preview-site button,
.builder-preview-site [data-go],
.builder-preview-site [data-link] {
  cursor: grab !important;
}
.builder-live-block.moving,
.builder-live-block.moving * {
  cursor: grabbing !important;
}
.preview-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483000 !important;
  background: #151923 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
}
.preview-fullscreen .builder-app-canvas {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  min-height: 100vh !important;
  background: #151923 !important;
}
.preview-fullscreen .builder-preview-controls {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147483001 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 48px !important;
  background: #111827 !important;
  color: #fff !important;
  border-radius: 0 !important;
  overflow-x: auto !important;
}
.preview-fullscreen .builder-live-shell {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: #dfe3eb !important;
  overflow: auto !important;
  padding: 18px !important;
}
.preview-fullscreen .builder-device-zoom-wrap {
  background: transparent !important;
}
.preview-fullscreen .builder-preview-site {
  background: #fff !important;
  color: inherit !important;
  min-height: var(--preview-height) !important;
}
.studio-dashboard .panel-actions {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}

/* v14 inner-drag correction: never drag/position whole sections; drag only inner text/images/buttons/links */
.builder-preview-site .builder-live-block,
.builder-preview-site .free-page-block,
.builder-preview-site .section-container-block {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 1px dashed transparent !important;
  border-radius: 0 !important;
  cursor: default !important;
  touch-action: auto !important;
}
.builder-preview-site .builder-live-block.active {
  outline: 2px solid rgba(121,25,111,.22) !important;
  outline-offset: -2px !important;
}
.builder-preview-site .live-drag-handle { display: none !important; }
.smart-inner {
  position: relative;
  display: block;
  max-width: 100%;
  will-change: transform;
}
.smart-inner-inline { display: inline-block; }
.builder-live-inner {
  cursor: move !important;
  touch-action: none !important;
  user-select: none !important;
  border-radius: 12px;
}
.builder-live-inner:hover {
  outline: 2px dashed rgba(121,25,111,.35);
  outline-offset: 4px;
}
.builder-live-inner.moving {
  z-index: 50;
  outline: 3px solid rgba(121,25,111,.55) !important;
  background: rgba(255,255,255,.52);
  cursor: grabbing !important;
}
.builder-preview-site a,
.builder-preview-site button,
.builder-preview-site [data-go],
.builder-preview-site [data-link] {
  cursor: move !important;
}
.builder-preview-site .section,
.builder-preview-site .hero,
.builder-preview-site .page-hero {
  overflow: visible !important;
}
.builder-preview-site .container {
  overflow: visible !important;
}

/* v15 fullscreen correction: the fullscreen preview must use the whole browser window, not the old grid columns. */
.builder-app.preview-fullscreen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  max-width:100vw!important;
  max-height:100vh!important;
  z-index:2147483000!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:1fr!important;
  gap:0!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  background:#e9edf5!important;
  border:0!important;
  border-radius:0!important;
}
.builder-app.preview-fullscreen .builder-app-pages,
.builder-app.preview-fullscreen .builder-app-inspector,
.builder-app.preview-fullscreen .builder-app-toolbar,
.builder-app.preview-fullscreen .builder-block-list,
.builder-app.preview-fullscreen .builder-bottom-html{
  display:none!important;
}
.builder-app.preview-fullscreen .builder-app-canvas{
  grid-column:1 / -1!important;
  grid-row:1 / -1!important;
  width:100vw!important;
  height:100vh!important;
  max-width:100vw!important;
  max-height:100vh!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#e9edf5!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.builder-app.preview-fullscreen .builder-preview-controls{
  flex:0 0 auto!important;
  width:100%!important;
  min-height:54px!important;
  max-height:none!important;
  margin:0!important;
  padding:8px 12px!important;
  border:0!important;
  border-bottom:1px solid #d8dde8!important;
  border-radius:0!important;
  background:#fff!important;
  color:#281126!important;
  position:relative!important;
  top:auto!important;
  z-index:2147483001!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
  box-shadow:0 10px 30px rgba(16,24,40,.10)!important;
}
.builder-app.preview-fullscreen .builder-preview-controls span{color:#281126!important;}
.builder-app.preview-fullscreen .builder-preview-controls .btn,
.builder-app.preview-fullscreen .builder-preview-controls button{
  pointer-events:auto!important;
  background:#fff!important;
  color:#3b0d36!important;
  border:1px solid #e4d9e5!important;
  min-height:30px!important;
  padding:6px 10px!important;
  border-radius:12px!important;
  font-size:12px!important;
}
.builder-app.preview-fullscreen .builder-preview-controls .btn.active,
.builder-app.preview-fullscreen .builder-preview-controls .device-switcher .active{
  background:#79196f!important;
  color:#fff!important;
  border-color:#79196f!important;
}
.builder-app.preview-fullscreen .builder-live-shell{
  flex:1 1 auto!important;
  width:100vw!important;
  height:auto!important;
  min-height:0!important;
  max-width:100vw!important;
  padding:24px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:#e9edf5!important;
  overflow:auto!important;
  display:block!important;
  box-sizing:border-box!important;
}
.builder-app.preview-fullscreen .builder-device-zoom-wrap{
  display:block!important;
  width:max-content!important;
  min-width:0!important;
  max-width:none!important;
  margin:0 auto 100px 0!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
}
.builder-app.preview-fullscreen .builder-device-frame{
  display:block!important;
  width:var(--preview-width)!important;
  min-width:var(--preview-width)!important;
  max-width:none!important;
  height:auto!important;
  min-height:var(--preview-height)!important;
  transform:scale(var(--preview-zoom,1))!important;
  transform-origin:top left!important;
  margin:0!important;
  background:#fff!important;
  overflow:visible!important;
}
.builder-app.preview-fullscreen .builder-preview-site{
  width:100%!important;
  min-height:var(--preview-height)!important;
  height:auto!important;
  overflow:visible!important;
  background:#fff!important;
  color:inherit!important;
  box-shadow:0 24px 80px rgba(16,24,40,.24)!important;
}
.builder-app.preview-fullscreen .builder-device-frame.device-desktop{
  --preview-width:1366px!important;
  --preview-height:900px!important;
  width:1366px!important;
  min-width:1366px!important;
  min-height:900px!important;
  border:0!important;
  border-radius:0!important;
}
.builder-app.preview-fullscreen .builder-device-frame.device-tablet{
  --preview-width:768px!important;
  --preview-height:1024px!important;
  width:768px!important;
  min-width:768px!important;
  min-height:1024px!important;
  border:14px solid #111827!important;
  border-radius:34px!important;
}
.builder-app.preview-fullscreen .builder-device-frame.device-mobile{
  --preview-width:390px!important;
  --preview-height:844px!important;
  width:390px!important;
  min-width:390px!important;
  min-height:844px!important;
  border:14px solid #111827!important;
  border-radius:38px!important;
}
.builder-app.preview-fullscreen .builder-device-frame.device-tablet .builder-preview-site{min-height:1024px!important;border-radius:20px!important;}
.builder-app.preview-fullscreen .builder-device-frame.device-mobile .builder-preview-site{min-height:844px!important;border-radius:24px!important;}
.builder-app.preview-fullscreen .builder-preview-site a,
.builder-app.preview-fullscreen .builder-preview-site button,
.builder-app.preview-fullscreen .builder-preview-site [data-go],
.builder-app.preview-fullscreen .builder-preview-site [data-link]{
  cursor:move!important;
}

/* v16 launch-prep polish */
.logo-brand{display:flex;align-items:center;gap:10px;color:#fff!important;text-decoration:none;min-width:210px;}
.logo-brand .brand-emblem{width:46px;height:46px;border-radius:14px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:23px;line-height:1;}
.logo-brand .brand-wordmark{display:grid;gap:0;line-height:.86;letter-spacing:.12em;color:#fff;text-transform:uppercase;font-weight:700;}
.logo-brand .brand-wordmark span:first-child{font-size:22px;letter-spacing:.13em;}
.logo-brand .brand-wordmark span:nth-child(2){font-size:17px;letter-spacing:.34em;}
.logo-brand .brand-wordmark small{font-size:10px;letter-spacing:0;text-transform:none;color:rgba(255,255,255,.78);margin-top:6px;}
.preview-navbar .logo-brand{min-width:210px;transform:scale(.88);transform-origin:left center;}
.builder-device-frame.device-mobile .logo-brand{min-width:150px;gap:7px;}
.builder-device-frame.device-mobile .brand-emblem{width:34px;height:34px;font-size:16px;border-radius:10px;}
.builder-device-frame.device-mobile .brand-wordmark span:first-child{font-size:15px;}
.builder-device-frame.device-mobile .brand-wordmark span:nth-child(2){font-size:12px;letter-spacing:.24em;}
.builder-device-frame.device-mobile .brand-wordmark small{font-size:8px;margin-top:4px;}

.course-lesson-row.active,
.course-sidebar .active,
.lesson-row.active{background:#fbecfb!important;color:#2b0a28!important;box-shadow:inset 3px 0 0 #d28acd!important;}
.course-lesson-row.active:hover,
.course-sidebar .active:hover,
.lesson-row.active:hover{background:#f7e1f7!important;}
.course-lesson-row.active *{color:#2b0a28!important;}

.studio-dashboard strong,.builder-app strong,.studio-dashboard b,.builder-app b{font-weight:500!important;}
.studio-dashboard h1,.studio-dashboard h2,.studio-dashboard h3,.studio-dashboard h4,
.builder-app h1,.builder-app h2,.builder-app h3,.builder-app h4{font-weight:520!important;}
.studio-dashboard .btn,.builder-app .btn,.builder-tool,.builder-mode-btn,.page-drill-btn,.template-pill{font-weight:500!important;}
.studio-dashboard .btn,.builder-app .btn{min-height:34px!important;padding:7px 11px!important;border-radius:11px!important;font-size:13px!important;}

.builder-page-tree{overflow-x:hidden!important;max-height:calc(100vh - 270px)!important;padding-right:2px!important;}
.builder-page-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;margin:4px 0!important;}
.builder-page-item{width:100%!important;text-align:left!important;border:1px solid #eee4ef!important;background:#fff!important;border-radius:13px!important;padding:7px 9px!important;min-height:40px!important;box-shadow:none!important;}
.builder-page-item.active,.builder-page-row.active .builder-page-item{background:#fff7fd!important;border-color:#e8c7e5!important;color:#351230!important;}
.builder-page-item span{display:block!important;font-size:13px!important;font-weight:400!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.builder-page-item small{display:block!important;font-size:11px!important;color:#667085!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.page-drill-btn{border:1px solid #ead7e8!important;background:#fff6fd!important;color:#79196f!important;border-radius:11px!important;padding:6px 8px!important;min-width:42px!important;min-height:34px!important;}
.page-layer-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;border:1px solid #f0e3ef!important;background:#fffaff!important;border-radius:14px!important;padding:8px 10px!important;margin:8px 0!important;}
.page-layer-head span{display:block!important;font-size:10px!important;letter-spacing:.12em!important;text-transform:uppercase!important;color:#9b6a96!important;}
.page-layer-head strong{display:block!important;font-size:13px!important;color:#3b1236!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:190px!important;}
.builder-layer-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin-top:8px!important;}
.builder-layer-actions .btn{flex:1 1 auto!important;min-width:100px!important;}
.command-actions-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
.command-actions-grid .full{grid-column:1/-1!important;}
.course-map-list{display:grid!important;gap:8px!important;}
.course-map-row{border:1px solid #efe3ef!important;border-radius:15px!important;background:#fff!important;overflow:hidden!important;}
.course-map-main{width:100%!important;border:0!important;background:#fff7fd!important;color:#4b0f45!important;padding:10px 12px!important;text-align:left!important;display:flex!important;justify-content:space-between!important;gap:10px!important;cursor:pointer!important;}
.course-map-main span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.course-map-lessons{padding:8px 12px 12px!important;display:grid!important;gap:5px!important;background:#fff!important;}
.course-map-lessons button{border:0!important;background:#f8f4f8!important;border-radius:10px!important;padding:7px 9px!important;text-align:left!important;color:#4b0f45!important;cursor:pointer!important;}
.certificate-template-strip{display:flex!important;gap:8px!important;overflow:auto!important;margin:10px 0 16px!important;padding-bottom:4px!important;}
.template-pill{border:1px solid #ead7e8!important;background:#fff!important;color:#4b0f45!important;border-radius:14px!important;padding:8px 10px!important;min-width:160px!important;text-align:left!important;display:grid!important;gap:2px!important;}
.template-pill small{color:#8b6c87!important;font-size:11px!important;}
.home-faq-mini{padding:0!important;}
.home-faq-mini .section-head{margin-bottom:18px!important;}
@media(max-width:760px){.logo-brand{min-width:170px}.logo-brand .brand-wordmark span:first-child{font-size:17px}.logo-brand .brand-wordmark span:nth-child(2){font-size:13px}.logo-brand .brand-emblem{width:38px;height:38px}.command-actions-grid{grid-template-columns:1fr!important}}

/* v17 pre-D1 polish */
.studio-dashboard .btn,
.builder-app .btn,
.modal .btn,
.command-actions-grid .btn,
.panel-actions .btn,
.table .btn{
  min-height:30px!important;
  padding:6px 10px!important;
  border-radius:10px!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:500!important;
}
.studio-dashboard h1,.studio-dashboard h2,.studio-dashboard h3,.studio-dashboard h4,
.builder-app h1,.builder-app h2,.builder-app h3,.builder-app h4,
.modal h1,.modal h2,.modal h3,.modal h4{font-weight:520!important;}
.template-browser{margin:12px 0 18px!important;}
.template-browser h4{margin:0 0 10px!important;color:#4b0f45!important;}
.footer-builder-grid{display:grid!important;grid-template-columns:minmax(0,1.75fr) minmax(260px,.85fr)!important;gap:18px!important;align-items:start!important;}
.footer-text-panel textarea{min-height:118px!important;}
.footer-columns-panel .table{min-width:720px!important;}
.form [hidden]{display:none!important;}
.command-card .command-actions-grid .btn{justify-content:center!important;}
.modal .close{min-width:32px!important;min-height:32px!important;padding:4px 9px!important;}
@media(max-width:980px){.footer-builder-grid{grid-template-columns:1fr!important;}}

/* v18 final launch polish */
.announcement-strip{background:#fff7fd;border-top:1px solid #ead7e8;border-bottom:1px solid #ead7e8;padding:18px 0;}
.announcement-strip .container{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:center;}
.announcement-head span{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:11px;color:#79196f;}
.announcement-head strong{display:block;font-size:18px;color:#2b0a28;font-weight:600!important;}
.announcement-list{display:flex;gap:10px;overflow:auto;padding-bottom:3px;}
.announcement-card{min-width:230px;border:1px solid #ead7e8;background:#fff;border-radius:16px;padding:10px 12px;text-align:left;cursor:pointer;color:#2b0a28;box-shadow:0 10px 22px rgba(121,25,111,.08);}
.announcement-card span,.announcement-card small{display:block;color:#8f6b8a;font-size:12px;}
.announcement-card strong{display:block;font-size:14px;margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media(max-width:760px){.announcement-strip .container{grid-template-columns:1fr}.announcement-card{min-width:210px}}

.studio-rail{height:100vh!important;max-height:100vh!important;overflow:hidden!important;}
.studio-nav{min-height:0!important;overflow:auto!important;padding-bottom:8px!important;}
.studio-open-site{flex:0 0 auto!important;position:sticky!important;bottom:0!important;border:1px solid rgba(255,255,255,.22)!important;background:#fff!important;color:#4b0f45!important;border-radius:14px!important;padding:10px 12px!important;font-size:13px!important;font-weight:600!important;box-shadow:0 -10px 24px rgba(20,8,18,.18)!important;cursor:pointer!important;}

.builder-app:not(.preview-fullscreen) .builder-live-shell{width:100%!important;min-height:560px!important;max-height:72vh!important;overflow-y:auto!important;overflow-x:hidden!important;background:#e9edf5!important;padding:16px!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;box-sizing:border-box!important;}
.builder-app:not(.preview-fullscreen) .builder-device-zoom-wrap{margin:0 auto 60px!important;max-width:100%!important;overflow:visible!important;}
.builder-app:not(.preview-fullscreen) .builder-device-frame{transform:scale(var(--preview-zoom,1))!important;transform-origin:top center!important;box-shadow:0 18px 55px rgba(16,24,40,.18)!important;background:#fff!important;}
.builder-app:not(.preview-fullscreen) .builder-device-frame.device-desktop{border-radius:8px!important;border:0!important;}
.builder-app:not(.preview-fullscreen) .builder-preview-site{background:#fff!important;min-height:var(--preview-height)!important;overflow:visible!important;}
.builder-app:not(.preview-fullscreen) .builder-preview-controls .btn[disabled]{opacity:.45!important;}

.builder-page-tree{padding-bottom:72px!important;}
.builder-layer-actions.fixed-actions{position:sticky!important;bottom:0!important;background:#fff!important;border-top:1px solid #f0e3ef!important;padding:8px 0 0!important;margin-top:0!important;z-index:5!important;}
.builder-layer-actions.fixed-actions:empty{display:none!important;}
.builder-layer-actions.fixed-actions .btn{flex:1 1 100%!important;}
.page-layer-head{min-height:48px!important;}
.page-layer-head strong{max-width:205px!important;}

.form .muted.small{font-size:11px!important;}
#programForm [data-payment-visible][hidden]{display:none!important;}
.modal .form .btn{width:auto!important;}
.course-map-main div{min-width:0!important;}
.course-map-main strong,.course-map-main small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.builder-app:not(.preview-fullscreen) .builder-device-frame{transform-origin:top left!important;}

/* v20 final lesson/platform touch */
.course-lesson-row.active{background:#f8eafa!important;color:#2b0a28!important;box-shadow:inset 4px 0 0 #b65aad!important;}
.course-lesson-row.active:hover{background:#f3dff1!important;}
.course-lesson-row.active .course-status-dot{background:#79196f!important;color:#fff!important;}
.builder-page-tree{overflow-x:hidden!important;}
.builder-app-pages{overflow-x:hidden!important;}
.builder-page-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;}
.builder-page-item{min-width:0!important;overflow:hidden;}
.builder-page-item span,.builder-page-item small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;}
.builder-layer-actions.fixed-actions{left:0;right:0;}


/* v21 final builder preview + lesson HTML polish */
.builder-app:not(.preview-fullscreen) .builder-live-shell{
  overflow-x:auto!important;
  overflow-y:auto!important;
  padding:18px 18px 64px!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  scrollbar-gutter:stable both-edges!important;
}
.builder-app:not(.preview-fullscreen) .builder-device-zoom-wrap{
  flex:0 0 auto!important;
  max-width:none!important;
  margin:0 auto 72px!important;
}
.builder-app:not(.preview-fullscreen) .builder-device-frame{
  transform-origin:top left!important;
}
.builder-app:not(.preview-fullscreen) .builder-preview-site{
  width:var(--preview-width)!important;
  min-width:var(--preview-width)!important;
  overflow:visible!important;
}
.builder-app:not(.preview-fullscreen) .builder-device-frame.device-desktop{
  width:1366px!important;
  min-width:1366px!important;
}
.builder-app:not(.preview-fullscreen) .builder-device-frame.device-tablet{
  width:820px!important;
  min-width:820px!important;
}
.builder-app:not(.preview-fullscreen) .builder-device-frame.device-mobile{
  width:430px!important;
  min-width:430px!important;
}
.builder-app.preview-fullscreen .builder-live-shell{
  overflow:auto!important;
  padding:18px 18px 96px!important;
  scrollbar-gutter:stable both-edges!important;
}
.builder-app.preview-fullscreen .builder-device-zoom-wrap{
  margin:0 auto 120px 0!important;
}
.builder-preview-site a,
.builder-preview-site button,
.builder-preview-site [data-go],
.builder-preview-site [data-link]{
  -webkit-user-drag:none!important;
}
.builder-preview-site [data-live-inner] a,
.builder-preview-site [data-live-inner] button,
.builder-preview-site [data-live-inner] [data-go],
.builder-preview-site [data-live-inner] [data-link]{
  cursor:move!important;
}
.builder-course-preview .course-topbar,
.builder-course-preview .course-sidebar,
.builder-course-preview .course-title-row{
  user-select:none!important;
}
.builder-course-preview .course-topbar *,
.builder-course-preview .course-sidebar *,
.builder-course-preview .course-title-row *{
  cursor:default!important;
}
.builder-course-preview .lesson-builder-content [data-live-inner],
.builder-course-preview .lesson-builder-content [data-live-inner] *{
  cursor:move!important;
}
.builder-course-preview .course-sidebar .course-lesson-row.active{
  background:#f8eafa!important;
  color:#2b0a28!important;
}
.mode-html .builder-app-inspector{display:block!important;}
.mode-html .builder-bottom-html.single-html-editor{display:block!important;}

/* v24 Pure HTML mode correction: the code editor replaces the smart block editor. */
.builder-app.mode-html .builder-pure-html-workspace{
  display:grid!important;
  grid-template-columns:minmax(420px,1.05fr) minmax(360px,.95fr)!important;
  gap:14px!important;
  align-items:start!important;
}
.builder-app.mode-html .builder-pure-html-editor,
.builder-app.mode-html .builder-html-preview-card{
  display:block!important;
  background:#fff!important;
  border:1px solid #e7dce8!important;
  border-radius:18px!important;
  padding:14px!important;
  box-shadow:0 14px 36px rgba(16,24,40,.06)!important;
}
.builder-app.mode-html .builder-pure-html-editor .page-html-live{
  min-height:62vh!important;
  resize:vertical!important;
  font-size:13px!important;
  line-height:1.55!important;
  background:#10131a!important;
  color:#f4f7fb!important;
  border-color:#2c3442!important;
}
.builder-app.mode-html .builder-pure-html-editor .page-html-live:focus{
  outline:3px solid rgba(121,25,111,.22)!important;
  border-color:#79196f!important;
}
.builder-html-preview-title{
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  gap:12px!important;
  margin-bottom:10px!important;
}
.builder-app.mode-html .html-mode-preview{
  min-height:520px!important;
  max-height:64vh!important;
}
.builder-app.mode-html .builder-tool-palette{
  max-width:360px!important;
}
.builder-app.mode-html .page-html-inline-form .two-col{
  grid-template-columns:1fr 1fr!important;
}
@media(max-width:1250px){
  .builder-app.mode-html .builder-pure-html-workspace{grid-template-columns:1fr!important;}
  .builder-app.mode-html .builder-pure-html-editor .page-html-live{min-height:520px!important;}
}

/* v25 Pure HTML vertical editor fix: preview first, full code editor underneath, no inspector. */
.builder-app.mode-html{
  grid-template-columns:250px minmax(740px,1fr)!important;
}
.builder-app.mode-html.pages-collapsed{
  grid-template-columns:34px minmax(820px,1fr)!important;
}
.builder-app.mode-html .builder-app-inspector{
  display:none!important;
}
.builder-app.mode-html .builder-pure-html-workspace{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:16px!important;
  align-items:start!important;
}
.builder-app.mode-html .builder-html-preview-card{
  order:1!important;
}
.builder-app.mode-html .builder-pure-html-editor{
  order:2!important;
  margin-top:0!important;
}
.builder-app.mode-html .builder-pure-html-editor .field label{
  display:block!important;
  padding-top:2px!important;
}
.builder-app.mode-html .builder-pure-html-editor .page-html-live{
  width:100%!important;
  min-height:560px!important;
}
.builder-app.mode-html .html-mode-preview{
  min-height:460px!important;
  max-height:62vh!important;
}
.builder-app.mode-html.preview-fullscreen{
  grid-template-columns:1fr!important;
}
.builder-app.mode-html.preview-fullscreen .builder-app-pages,
.builder-app.mode-html.preview-fullscreen .builder-app-inspector,
.builder-app.mode-html.preview-fullscreen .builder-toolbar-actions,
.builder-app.mode-html.preview-fullscreen .builder-pure-html-editor{
  display:none!important;
}
@media(max-width:1200px){
  .builder-app.mode-html,
  .builder-app.mode-html.pages-collapsed{
    grid-template-columns:1fr!important;
  }
}

