*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#f1f1f1;color:#17212b}a{color:inherit}.login-page{min-height:100vh;display:grid;place-items:center;background:#333}.login-card{width:min(420px,calc(100% - 32px));background:#fff;padding:32px;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.1)}label{display:grid;gap:7px;margin:14px 0;font-weight:600}input,textarea,select{width:100%;padding:11px;border:1px solid #ccd3da;border-radius:8px;font:inherit}button,.button-link{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;padding:11px 16px;background:#1268e3;color:#fff;text-decoration:none;cursor:pointer}.secondary{background:#e9eef5;color:#17212b}.notice.error,.status-error{color:#b42318}.status-ok{color:#067647}.editor-topbar,.editor-toolbar{height:64px;padding:0 20px;background:#fff;border-bottom:1px solid #dde2e7;display:flex;align-items:center;gap:18px;position:relative;z-index:30}.editor-topbar span,.editor-toolbar strong{margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolbar-actions{display:flex;align-items:center;gap:10px}.mobile-menu-toggle,.mobile-actions,.property-panel-close,.property-panel-handle,.editor-backdrop{display:none}.dashboard{padding:32px;max-width:1200px;margin:auto}.site-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.site-card{background:#fff;padding:22px;border-radius:14px;border:1px solid #dde2e7}.site-card div{display:flex;gap:10px}.editor-page{height:100vh;overflow:hidden}.editor-layout{height:calc(100vh - 64px);display:grid;grid-template-columns:minmax(0,1fr) 360px}.preview-panel{padding:12px;background:#dce1e7;min-width:0}.preview-panel iframe{width:100%;height:100%;border:0;background:#fff;border-radius:10px}.property-panel{background:#fff;border-left:1px solid #dde2e7;padding:22px;overflow:auto;position:relative}.property-panel h2{margin-top:0}.property-panel button{margin-top:10px}.icon-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:330px;overflow:auto;padding:4px}.icon-choice{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:10px 6px;background:#fff;color:#17212b;border:1px solid #ccd3da;border-radius:8px}.icon-choice:hover,.icon-choice.active{border-color:#1268e3;background:#eef5ff}.icon-choice svg{width:25px;height:25px;fill:currentColor}.icon-choice span{width:100%;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.icon-choice.none svg{display:none}.icon-picker .icon-choice{margin:0;width:100%}.icon-search{margin-bottom:8px}.theme-editor-control{display:flex;align-items:center;gap:8px;padding-right:10px;border-right:1px solid #dde2e7}.theme-editor-control label{margin:0;font-size:12px}.theme-editor-control select{width:auto;min-width:150px;padding:8px}.theme-editor-control button{margin:0;padding:9px 12px;background:#475467}@media(max-width:1100px){.theme-editor-control label{display:none}.theme-editor-control select{min-width:120px}}
@media(max-width:768px){
body.editor-page{height:100dvh;overflow:hidden}.editor-toolbar{height:56px;padding:0 12px;gap:10px}.editor-toolbar>a{font-size:0}.editor-toolbar>a::before{content:"←";font-size:22px}.editor-toolbar strong{font-size:14px}.mobile-menu-toggle{display:inline-flex;width:42px;height:42px;padding:0;font-size:24px;background:#eef2f6;color:#17212b}.toolbar-actions{display:none;position:absolute;top:56px;right:8px;width:min(320px,calc(100vw - 16px));padding:12px;background:#fff;border:1px solid #dde2e7;border-radius:12px;box-shadow:0 18px 45px rgba(0,0,0,.18);flex-direction:column;align-items:stretch;z-index:50}.toolbar-actions.is-open{display:flex}.toolbar-actions>*{width:100%}.toolbar-actions>a,.toolbar-actions>button{min-height:44px}.theme-editor-control{display:grid;grid-template-columns:1fr auto;border:0;padding:0}.theme-editor-control label{display:block;grid-column:1/-1}.theme-editor-control select{min-width:0;width:100%}.editor-layout{height:calc(100dvh - 112px);display:block}.preview-panel{height:100%;padding:0;background:#dce1e7}.preview-panel iframe{border-radius:0}.property-panel{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-height:78dvh;padding:22px 18px calc(24px + env(safe-area-inset-bottom));border:0;border-radius:20px 20px 0 0;box-shadow:0 -18px 45px rgba(0,0,0,.24);transform:translateY(105%);transition:transform .24s ease;z-index:1000}.property-panel.is-open{transform:translateY(0)}.property-panel-handle{display:block;width:44px;height:5px;margin:-8px auto 14px;border-radius:999px;background:#c9d0d8}.property-panel-close{display:inline-flex;position:absolute;top:12px;right:12px;width:40px;height:40px;padding:0;border-radius:50%;font-size:24px;background:#eef2f6;color:#17212b}.editor-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:900}.editor-backdrop.is-open{display:block}.mobile-actions{position:fixed;left:0;right:0;bottom:0;z-index:800;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dde2e7}.mobile-actions button{min-height:44px}.icon-picker{grid-template-columns:repeat(3,minmax(0,1fr));max-height:42dvh}.icon-choice{min-height:72px}.property-panel-open .mobile-actions{visibility:hidden}.property-panel textarea{min-height:120px}}
.collection-help{margin:0 0 14px;color:#667085}.collection-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.collection-actions button{margin:0}.danger-button{background:#b42318}.danger-button:hover{background:#912018}@media(max-width:768px){.collection-actions{grid-template-columns:1fr}.collection-actions button{min-height:46px}}

#link-fields{margin-top:12px}.text-alignment-control{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.property-heading{display:flex;align-items:center;gap:10px;margin:0 42px 18px 0}.property-heading h2{margin:0;min-width:0}.property-tools{display:inline-flex;align-items:center;gap:4px;margin-left:auto}.property-tools[hidden]{display:none!important}.property-tool{width:36px;height:36px;margin:0!important;padding:0;background:transparent;color:#475467;border:1px solid transparent;border-radius:8px}.property-tool:hover{background:#eef5ff;color:#1268e3;border-color:#cfe0fb}.property-tool.danger{color:#b42318}.property-tool.danger:hover{background:#fff1f0;border-color:#f7c9c5}.property-tool svg{width:18px;height:18px;fill:currentColor}.collection-help,.collection-actions{display:none!important}@media(max-width:768px){.property-heading{margin-right:42px}.property-tool{width:40px;height:40px}}

#widget-fields .checkbox-label{display:flex;align-items:center;gap:8px}#widget-fields .checkbox-label input{width:auto}.widget-size-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* Section management */
.section-tools{margin:0 0 18px;padding:14px;border:1px solid #dde2e7;border-radius:10px;background:#f8fafc}.section-tools[hidden]{display:none!important}.section-tools-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.section-tools-label span{font-size:12px;color:#667085;text-transform:uppercase;letter-spacing:.04em}.section-tools-label strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-tools-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.section-tools-actions button{margin:0;min-width:0}.section-dialog-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.46);z-index:1400}.section-dialog-backdrop:not([hidden]){display:block}.section-dialog{position:fixed;z-index:1500;left:50%;top:50%;transform:translate(-50%,-50%);width:min(620px,calc(100vw - 32px));max-height:min(720px,calc(100dvh - 32px));overflow:auto;padding:20px;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.28)}.section-dialog[hidden]{display:none!important}.section-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.section-dialog-header h2{margin:0 0 4px}.section-dialog-header p{margin:0;color:#667085;font-size:13px}.section-dialog-close{flex:0 0 40px;width:40px;height:40px;margin:0!important;padding:0;background:#eef2f6;color:#17212b;font-size:24px}.section-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.section-type-grid button{margin:0;padding:14px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:5px;background:#fff;color:#17212b;border:1px solid #ccd3da}.section-type-grid button:hover{border-color:#1268e3;background:#eef5ff}.section-type-grid button:disabled{cursor:not-allowed;opacity:.5}.section-type-grid button span{font-size:12px;color:#667085;font-weight:400}.editor-toolbar #add-section-button:disabled,.mobile-actions [data-editor-action="section"]:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:768px){.mobile-actions{grid-template-columns:repeat(3,1fr)}.section-tools-actions{grid-template-columns:1fr}.section-dialog{left:12px;right:12px;bottom:12px;top:auto;transform:none;width:auto;max-height:76dvh;border-radius:18px}.section-type-grid{grid-template-columns:1fr}.section-type-grid button{min-height:62px}}

/* Section manager and link destinations */
.link-destination-editor{margin:12px 0 4px;padding:12px;border:1px solid #e2e7ec;border-radius:10px;background:#f8fafc}.link-destination-editor label:first-child{margin-top:0}.link-destination-editor label:last-child{margin-bottom:0}.section-dialog{width:min(940px,calc(100vw - 36px));max-height:min(760px,calc(100dvh - 36px));padding:22px}.section-dialog-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(360px,1.2fr);gap:22px}.section-add-panel,.section-order-panel{min-width:0}.section-dialog-subheading{margin-bottom:12px}.section-dialog-subheading h3{margin:0 0 4px;font-size:15px}.section-dialog-subheading p{margin:0;color:#667085;font-size:12px;line-height:1.4}.section-type-grid{grid-template-columns:1fr 1fr;gap:8px}.section-type-grid button{min-height:52px;padding:10px 11px;gap:3px}.section-type-grid button strong{font-size:13px}.section-type-grid button span{font-size:11px}.section-order-list{display:grid;gap:8px;max-height:520px;overflow:auto;padding:2px}.section-order-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:58px;padding:8px 9px;border:1px solid #d9e0e7;border-radius:10px;background:#fff;transition:border-color .15s ease,background .15s ease,opacity .15s ease}.section-order-item.is-dragging{opacity:.45}.section-order-item.is-drag-over{border-color:#1268e3;background:#eef5ff}.section-drag-handle{width:34px;height:38px;margin:0!important;padding:0;background:#eef2f6;color:#667085;font-size:19px;letter-spacing:-3px;cursor:grab;touch-action:none}.section-drag-handle:active{cursor:grabbing}.section-order-info{min-width:0;display:grid;gap:3px}.section-order-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.section-order-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667085;font-size:11px}.section-order-buttons{display:flex;gap:5px}.section-order-buttons button{width:32px;height:32px;margin:0!important;padding:0;background:#eef2f6;color:#344054}.section-order-buttons button:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:820px){.section-dialog{left:10px;right:10px;bottom:10px;top:auto;transform:none;width:auto;max-height:82dvh;padding:18px}.section-dialog-layout{grid-template-columns:1fr;gap:20px}.section-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-order-list{max-height:34dvh}.section-order-item{grid-template-columns:36px minmax(0,1fr) auto}.section-drag-handle{cursor:default}}
@media(max-width:480px){.section-type-grid{grid-template-columns:1fr 1fr}.section-type-grid button{min-height:48px;padding:9px}.section-type-grid button span{display:none}.section-order-buttons button{width:34px;height:34px}}

/* Automatic field retention and section layout */
.autosave-help{margin:14px 0 4px;padding:10px 12px;border-radius:8px;background:#f0f7ff;color:#475467;font-size:12px;line-height:1.45}.autosave-help strong{color:#17212b}.text-image-layout-control{margin:0 0 10px}.text-image-layout-control[hidden]{display:none!important}.text-image-layout-control select{background:#fff}

.image-action-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.image-action-row button{margin-top:10px}.image-library-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:1600}.image-library-backdrop:not([hidden]){display:block}.image-library-dialog{position:fixed;z-index:1700;left:50%;top:50%;transform:translate(-50%,-50%);width:min(980px,calc(100vw - 36px));max-height:min(780px,calc(100dvh - 36px));overflow:auto;padding:22px;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.3)}.image-library-dialog[hidden]{display:none!important}.image-library-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.image-library-header h2{margin:0 0 4px}.image-library-header p{margin:0;color:#667085;font-size:13px}.image-library-close{flex:0 0 40px;width:40px;height:40px;margin:0!important;padding:0;background:#eef2f6;color:#17212b;font-size:24px}.image-library-status{margin:0 0 14px;padding:10px 12px;border-radius:9px;background:#f8fafc;color:#475467;font-size:13px}.image-library-status.error{background:#fff1f0;color:#b42318}.image-library-empty{padding:42px 20px;text-align:center;color:#667085;border:1px dashed #cfd7df;border-radius:12px}.image-library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.image-library-card{min-width:0;border:1px solid #d9e0e7;border-radius:12px;overflow:hidden;background:#fff}.image-library-card.is-selected{border-color:#1268e3;box-shadow:0 0 0 2px rgba(18,104,227,.12)}.image-library-thumb{display:block;width:100%;aspect-ratio:4/3;padding:0;margin:0!important;border:0;border-radius:0;background:#eef2f6;overflow:hidden}.image-library-thumb img{display:block;width:100%;height:100%;object-fit:cover}.image-library-info{padding:10px}.image-library-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.image-library-meta{display:block;margin-top:4px;color:#667085;font-size:11px}.image-library-actions{display:flex;align-items:center;gap:7px;margin-top:9px}.image-library-actions button{margin:0!important;padding:8px 10px;font-size:12px}.image-library-actions .select-image{flex:1}.image-library-in-use{font-size:11px;font-weight:600;color:#475467;white-space:nowrap}.image-library-delete{background:#fff;color:#b42318;border:1px solid #f0b8b3}.image-library-delete:hover{background:#fff1f0}.image-library-delete:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:900px){.image-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.image-action-row{grid-template-columns:1fr}.image-library-dialog{left:10px;right:10px;bottom:10px;top:auto;transform:none;width:auto;max-height:84dvh;padding:16px;border-radius:18px}.image-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.image-library-info{padding:8px}.image-library-actions{align-items:stretch;flex-direction:column}.image-library-in-use{text-align:center}.image-library-actions button{width:100%}}

#editor-status{display:block;width:260px;min-width:260px;max-width:260px;padding:7px 10px;border-radius:8px;font-size:12px;line-height:1.25;color:#475467;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:transparent;transition:background-color .25s ease,color .25s ease}
#editor-status:empty{visibility:hidden}
#editor-status.error{color:#b42318}
#editor-status.status-flash{animation:editor-status-flash 2.4s ease-out}
#editor-status.status-flash.error{animation-name:editor-status-flash-error}
@keyframes editor-status-flash{0%,45%{background:#eaf3ff;color:#1849a9}100%{background:transparent;color:#475467}}
@keyframes editor-status-flash-error{0%,45%{background:#fff1f0;color:#b42318}100%{background:transparent;color:#b42318}}
@media(max-width:1180px) and (min-width:769px){#editor-status{width:190px;min-width:190px;max-width:190px}}
@media(max-width:960px) and (min-width:769px){#editor-status{width:130px;min-width:130px;max-width:130px}}
@media(max-width:768px){#editor-status{order:-2;width:100%;min-width:0;max-width:none;min-height:34px;white-space:normal;overflow:visible;text-overflow:clip}.theme-editor-control{order:-1}}

#logo-fields[hidden],#image-source-fields[hidden],#logo-text-row[hidden]{display:none!important}

.site-settings-menu{position:relative;display:flex;align-items:center}.site-settings-toggle{width:40px;height:40px;padding:0;font-size:24px;line-height:1}.site-settings-dropdown{position:absolute;right:0;top:46px;width:230px;padding:7px;background:#fff;border:1px solid #d9e0e7;border-radius:10px;box-shadow:0 16px 42px rgba(0,0,0,.16);z-index:90}.site-settings-dropdown[hidden]{display:none!important}.site-settings-dropdown button{display:flex;width:100%;justify-content:flex-start;margin:0;padding:10px 11px;background:#fff;color:#17212b;border-radius:7px;font-size:13px}.site-settings-dropdown button:hover{background:#f2f5f8}.site-settings-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:1800}.site-settings-backdrop[hidden]{display:none!important}.site-settings-dialog{position:fixed;z-index:1900;left:50%;top:50%;transform:translate(-50%,-50%);width:min(820px,calc(100vw - 36px));max-height:min(860px,calc(100dvh - 36px));overflow:auto;padding:22px;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.3)}.site-settings-dialog[hidden]{display:none!important}.site-settings-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.site-settings-header h2{margin:0 0 4px}.site-settings-header p{margin:0;color:#667085;font-size:13px}.site-settings-close{flex:0 0 40px;width:40px;height:40px;margin:0!important;padding:0;background:#eef2f6;color:#17212b;font-size:24px}.site-settings-status{margin:0 0 14px;padding:10px 12px;border-radius:9px;background:#eaf3ff;color:#1849a9;font-size:13px;white-space:pre-wrap}.site-settings-status.error{background:#fff1f0;color:#b42318}.site-settings-section{padding:16px 0;border-top:1px solid #e4e8ed}.site-settings-section:first-of-type{border-top:0}.site-settings-section h3{margin:0 0 5px}.site-settings-help{margin:0 0 12px;color:#667085;font-size:13px;line-height:1.45}.site-settings-inline-actions{display:flex;gap:8px;flex-wrap:wrap}.site-settings-inline-actions button{margin:0}.site-settings-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:16px;border-top:1px solid #e4e8ed}.site-settings-actions button{margin:0}.site-settings-dialog textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.45;resize:vertical}.site-settings-section.is-highlighted{animation:site-settings-section-flash 1.6s ease-out}@keyframes site-settings-section-flash{0%,45%{background:#f1f6ff}100%{background:transparent}}
@media(max-width:768px){.site-settings-menu{width:100%;display:block}.site-settings-toggle{width:100%;min-height:44px}.site-settings-dropdown{position:static;width:100%;margin-top:6px;box-shadow:none}.site-settings-dialog{left:10px;right:10px;bottom:10px;top:auto;transform:none;width:auto;max-height:88dvh;padding:16px;border-radius:18px}.site-settings-inline-actions,.site-settings-actions{flex-direction:column}.site-settings-inline-actions button,.site-settings-actions button{width:100%}}

.site-settings-dialog{display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;padding:0}
.site-settings-header{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,auto) 40px;align-items:start;gap:14px;margin:0;padding:18px 18px 14px;background:#fff;border-bottom:1px solid #e4e8ed}
.site-settings-header-main{min-width:0}.site-settings-header-main h2{margin:0 0 4px}.site-settings-header-main p{margin:0;color:#667085;font-size:13px}
.site-settings-status{align-self:start;margin:0;max-width:360px;padding:9px 11px;border-radius:9px;background:#eaf3ff;color:#1849a9;font-size:12px;line-height:1.35;white-space:pre-wrap;word-break:break-word}
.site-settings-status.error{background:#fff1f0;color:#b42318}
.site-settings-body{overflow:auto;padding:0 22px}
.site-settings-footer{position:sticky;bottom:0;z-index:2;padding:14px 18px;background:#fff;border-top:1px solid #e4e8ed}
.site-settings-actions{padding:0;border:0}
.site-settings-close{margin:0!important}
@media(max-width:768px){.site-settings-header{grid-template-columns:minmax(0,1fr) 40px;padding:14px}.site-settings-status{grid-column:1/-1;grid-row:2;max-width:none;width:100%}.site-settings-body{padding:0 16px}.site-settings-footer{padding:12px 16px}.site-settings-actions{flex-direction:column}}

/* Keep the close button pinned to the right whether status is visible or hidden. */
.site-settings-header{grid-template-columns:minmax(0,1fr) minmax(0,360px) 40px}
.site-settings-close{grid-column:3;justify-self:end}
.site-settings-status[hidden]{display:none!important}
@media(max-width:768px){
  .site-settings-header{grid-template-columns:minmax(0,1fr) 40px}
  .site-settings-close{grid-column:2;grid-row:1}
}
.password-field{position:relative;display:block}.password-field input{padding-right:46px}.password-field .password-toggle{position:absolute;top:50%;right:6px;transform:translateY(-50%);width:36px;height:36px;padding:0;background:transparent;color:#667085;border-radius:6px}.password-field .password-toggle:hover,.password-field .password-toggle:focus-visible{background:#eef2f6;color:#17212b}.password-field .password-toggle svg{width:18px;height:18px;fill:currentColor}

/* ===================================================================
   Toolbar: icon buttons with tooltips, grouped (Design / Structure / Save)
   =================================================================== */
.theme-select-hidden{display:none!important}
.editor-toolbar .tool-back{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;color:#17212b;text-decoration:none;position:relative;flex:none}
.editor-toolbar .tool-back:hover{background:#f2f5f8}
.editor-toolbar>a.tool-back::before{content:none}
.tool-group{display:flex;align-items:center;gap:4px;padding:0 8px;border-left:1px solid #e3e8ee}
.tool-group:first-of-type{border-left:0}
.editor-toolbar .tool-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:40px;height:40px;min-height:40px;margin:0;padding:0;border:1px solid transparent;border-radius:10px;background:transparent;color:#17212b;font-family:inherit;font-size:14px;font-weight:600;line-height:1;text-decoration:none;cursor:pointer}
.editor-toolbar .tool-button:hover{background:#f2f5f8;border-color:#e3e8ee}
.editor-toolbar .tool-button[aria-pressed="true"]{background:#eef5ff;border-color:#9cc2ff;color:#1268e3}
.editor-toolbar .tool-button.tool-primary{background:#1268e3;color:#fff}
.editor-toolbar .tool-button.tool-primary:hover{background:#0f57bf;border-color:transparent}
.editor-toolbar .tool-button:disabled{opacity:.45;cursor:not-allowed}
.tool-icon{width:19px;height:19px;fill:currentColor;flex:none}
.tool-label{display:none}
/* Tooltips (hover and keyboard focus); the text is also the aria-label. */
.editor-toolbar [data-tip]::after{content:attr(data-tip);position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%) translateY(-3px);padding:6px 9px;border-radius:7px;background:#17212b;color:#fff;font:600 12px/1.2 system-ui,sans-serif;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease,transform .12s ease,visibility .12s;z-index:120}
.editor-toolbar [data-tip]:hover::after,.editor-toolbar [data-tip]:focus-visible::after{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.editor-toolbar .tip-right[data-tip]::after{left:auto;right:0;transform:translateY(-3px)}
.editor-toolbar .tip-right[data-tip]:hover::after,.editor-toolbar .tip-right[data-tip]:focus-visible::after{transform:none}
.editor-toolbar .tool-back[data-tip]::after{left:0;transform:translateY(-3px)}
.editor-toolbar .tool-back[data-tip]:hover::after,.editor-toolbar .tool-back[data-tip]:focus-visible::after{transform:none}
.editor-toolbar .site-settings-toggle{width:40px;height:40px;font-size:14px}
@media(max-width:768px){
  /* Inside the mobile tools menu: icon + label, no tooltips (touch). */
  .tool-group{flex-direction:column;align-items:stretch;padding:6px 0;border-left:0;border-top:1px solid #e3e8ee}
  .tool-group:first-of-type{border-top:0}
  .editor-toolbar .tool-button,.editor-toolbar .site-settings-toggle{width:100%;height:44px;min-height:44px;justify-content:flex-start;padding:0 12px}
  .tool-label{display:inline}
  .editor-toolbar .toolbar-actions [data-tip]::after{display:none}
  .editor-toolbar>a.tool-back{font-size:0}
}

/* ===================================================================
   Design panel (Colors, Fonts, Transitions) in the sidebar
   =================================================================== */
.design-panel[hidden]{display:none!important}
.design-panel-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.design-panel-head h2{margin:0;flex:1;font-size:20px}
.property-panel .design-panel-close{width:34px;height:34px;min-height:34px;margin:0;padding:0;border-radius:8px;background:#eef2f6;color:#17212b;font-size:20px;line-height:1}
.design-help{color:#5b6775;font-size:13px;line-height:1.45;margin:6px 0 12px}
.design-subtitle{margin:18px 0 8px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#5b6775}
.design-loading,.design-error{color:#5b6775}.design-error{color:#b42318}
.design-panel label{display:grid;gap:5px;margin:8px 0;font-weight:600;font-size:13px}
.design-panel select{width:100%}
/* Colors */
.theme-list{display:grid;gap:6px}
.property-panel .theme-option{display:flex;align-items:center;gap:12px;width:100%;margin:0;padding:10px 12px;border:2px solid #e3e8ee;border-radius:10px;background:#fff;color:#17212b;text-align:left;font-weight:600}
.property-panel .theme-option:hover{border-color:#9cc2ff;background:#f7faff}
.property-panel .theme-option.is-active{border-color:#1268e3;background:#eef5ff}
.theme-swatches{display:flex;flex:none}
.theme-swatches span{width:26px;height:26px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.theme-swatches span+span{margin-left:-8px}
.theme-name{flex:1}
.theme-check{width:18px;height:18px;fill:#1268e3}
/* Fonts */
.pairing-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.property-panel .pairing-option{display:grid;gap:4px;margin:0;padding:10px;border:2px solid #e3e8ee;border-radius:10px;background:#fff;color:#17212b;text-align:left;min-height:0}
.property-panel .pairing-option:hover{border-color:#9cc2ff;background:#f7faff}
.property-panel .pairing-option.is-active{border-color:#1268e3;background:#eef5ff}
.pairing-option strong{font-size:17px;line-height:1.1}
.pairing-option span{font-size:12px;color:#5b6775;font-weight:400}
.font-sample{margin-top:10px;padding:12px;border:1px dashed #cbd5e1;border-radius:10px;display:grid;gap:4px}
.font-sample strong{font-size:22px;line-height:1.15}.font-sample span{font-size:14px;color:#334155}
/* Transitions */
.property-panel .ed-preview-motion{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:0 0 8px;background:#1268e3;color:#fff}
.ed-preview-motion svg{width:18px;height:18px;fill:currentColor}
.ed-opt{grid-template-columns:62px 1fr!important;align-items:center;gap:10px!important;padding:8px;border:2px solid #e3e8ee;border-radius:10px;cursor:pointer;margin:6px 0!important}
.ed-opt:has(input:checked){border-color:#1268e3;background:#eef5ff}
.ed-opt input,.ed-seg input{position:absolute;opacity:0;pointer-events:none}
.ed-opt-text{display:grid;gap:2px}.ed-opt-text span,.ed-check span span{color:#5b6775;font-weight:400}
.ed-sub{margin:0 0 6px 12px;padding-left:10px;border-left:3px solid #bfdbfe}
.ed-sub[hidden]{display:none}
.ed-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:6px 0}
.ed-seg label{margin:0!important;justify-items:center;padding:6px 4px;border:2px solid #e3e8ee;border-radius:8px;text-align:center;cursor:pointer;font-weight:500!important;font-size:12px!important}
.ed-seg label:has(input:checked){border-color:#1268e3;background:#eef5ff}
.ed-check{grid-template-columns:18px 1fr!important;align-items:start}
.ed-check > span{display:grid;gap:2px}
.ed-section-row{grid-template-columns:1fr!important}
.ed-section-row > span{font-weight:600}
/* Mini animated previews: A = current section, B = next section */
.ed-pv{position:relative;width:56px;height:36px;border-radius:6px;overflow:hidden;background:#94a3b8;flex:none;display:block}
.ed-pv i{position:absolute;inset:0;display:block}.ed-pv .a{background:#3b82f6}.ed-pv .b{background:#f97316}
.ed-pv .a::after,.ed-pv .b::after{content:"";position:absolute;left:8px;right:16px;top:10px;height:4px;border-radius:2px;background:rgba(255,255,255,.85);box-shadow:0 8px 0 rgba(255,255,255,.6)}
@keyframes edNormA{0%,25%{transform:translateY(0)}65%,100%{transform:translateY(-100%)}}
@keyframes edNormB{0%,25%{transform:translateY(100%)}65%,100%{transform:translateY(0)}}
@keyframes edUp{0%,25%{transform:translateY(100%)}65%,100%{transform:translateY(0)}}
@keyframes edFromRight{0%,25%{transform:translateX(100%)}65%,100%{transform:translateX(0)}}
@keyframes edFromLeft{0%,25%{transform:translateX(-100%)}65%,100%{transform:translateX(0)}}
@keyframes edReveal{0%,25%{clip-path:circle(0 at 50% 50%)}65%,100%{clip-path:circle(75% at 50% 50%)}}
.ed-pv.normal .a{animation:edNormA 2.6s infinite}.ed-pv.normal .b{animation:edNormB 2.6s infinite}
.ed-pv.up .b{animation:edUp 2.6s infinite}.ed-pv.left .b{animation:edFromRight 2.6s infinite}.ed-pv.right .b{animation:edFromLeft 2.6s infinite}
.ed-pv.reveal .b{animation:edReveal 2.6s infinite}
.ed-tp{width:56px;height:36px;border-radius:6px;background:#17212b;color:#fff;display:flex;align-items:center;justify-content:center;gap:3px;font:800 12px/1 system-ui,sans-serif;overflow:hidden;flex:none}
.ed-tp b{display:inline-block}
@keyframes edTpWords{0%,20%{transform:translateY(120%)}55%,100%{transform:none}}
@keyframes edTpBlur{0%,20%{opacity:0;filter:blur(5px)}55%,100%{opacity:1;filter:none}}
@keyframes edTpType{0%,15%{opacity:0}16%,100%{opacity:1}}
.ed-tp.words b{animation:edTpWords 2.6s infinite}.ed-tp.words b+b{animation-delay:.15s}
.ed-tp.blur b{animation:edTpBlur 2.6s infinite}.ed-tp.blur b+b{animation-delay:.2s}
.ed-tp.type{gap:0}.ed-tp.type b{animation:edTpType 2.6s infinite}
.ed-tp.type b:nth-child(2){animation-delay:.15s}.ed-tp.type b:nth-child(3){animation-delay:.3s}.ed-tp.type b:nth-child(4){animation-delay:.45s}
.ed-tp.none{color:#cbd5e1}
@media (prefers-reduced-motion:reduce){.ed-pv *,.ed-tp *{animation:none!important}}

/* ===================================================================
   Phase 4b: apply bar, motion preview inside the editor, mobile fixes
   =================================================================== */
/* Preview area: optional "Motion preview" bar above the iframe. */
.preview-panel{display:flex;flex-direction:column}
.preview-panel iframe{flex:1 1 auto;min-height:0;height:auto}
.motion-preview-bar{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:10px 12px;border-radius:10px;background:#17212b;color:#fff;font-size:13px;line-height:1.35}
.motion-preview-bar[hidden]{display:none}
.motion-preview-bar svg{width:20px;height:20px;fill:#7cc4ff;flex:none}
.motion-preview-bar span{flex:1}
.motion-preview-bar button{flex:none;margin:0;min-height:36px;padding:8px 12px;border-radius:8px;background:#fff;color:#17212b;font-weight:700}
.motion-preview-bar button:hover{background:#e9eef5}
/* Apply bar of the Fonts and Transitions panels (stays visible while scrolling the panel). */
.design-apply{position:sticky;bottom:-22px;margin:16px -22px -22px;padding:12px 22px 14px;background:#fff;border-top:1px solid #e3e8ee;display:grid;gap:6px;z-index:2}
.design-apply-row{display:flex;gap:8px}
.property-panel .design-apply button{flex:1;margin:0}
.property-panel .design-apply .design-cancel{background:#e9eef5;color:#17212b}
.design-apply-note{font-size:12px;color:#5b6775}
.design-apply-note.is-pending{color:#b54708;font-weight:600}
.ed-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 8px}
.property-panel .ed-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:0;font-size:13px}
.ed-actions svg{width:17px;height:17px;fill:currentColor}
.property-panel .ed-actions .ed-secondary{background:#e9eef5;color:#17212b}
/* Mobile: no bottom action bar; every action lives in the ⋮ tools menu
   (same order as the desktop toolbar), which scrolls inside. */
@media(max-width:768px){
  .toolbar-actions{max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}
  .mobile-actions{display:none!important}
  .editor-layout{height:calc(100dvh - 56px)}
  .design-apply{bottom:calc(-24px - env(safe-area-inset-bottom));margin:16px -18px -24px;padding:12px 18px calc(14px + env(safe-area-inset-bottom))}
  .motion-preview-bar{margin:0;border-radius:0}
}

/* ===================================================================
   Dashboard (My Websites)
   =================================================================== */
.dash-topbar .dash-brand{display:flex;align-items:center;gap:10px;margin-right:auto;font-size:16px}
.dash-topbar .dash-user{display:inline-flex;align-items:center;gap:8px;margin-right:0;color:#475467;font-size:14px;max-width:40vw}
.dash-topbar .dash-user svg{width:20px;height:20px;fill:currentColor;flex:none}
.dash-topbar .dash-user span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-logout-form{margin:0}
.dash-icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:1px solid transparent;border-radius:10px;background:transparent;color:#17212b;cursor:pointer}
.dash-icon-button:hover,.dash-icon-button:focus-visible{background:#f2f5f8;border-color:#e3e8ee}
.dash-icon-button svg{width:19px;height:19px;fill:currentColor}
.dash-icon-button[data-tip]::after{content:attr(data-tip);position:absolute;top:calc(100% + 8px);right:0;padding:6px 9px;border-radius:7px;background:#17212b;color:#fff;font:600 12px/1.2 system-ui,sans-serif;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-3px);transition:opacity .12s ease,transform .12s ease,visibility .12s;z-index:120}
.dash-icon-button[data-tip]:hover::after,.dash-icon-button[data-tip]:focus-visible::after{opacity:1;visibility:visible;transform:none}
.dashboard-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 24px}
.dashboard-head h1{margin:0;font-size:28px}
.dashboard-head p{margin:0;color:#667085;font-size:14px}
.site-card{display:flex;flex-direction:column;gap:14px;border-color:#e3e6ea;box-shadow:0 1px 2px rgba(16,24,40,.04);transition:box-shadow .15s ease,transform .15s ease}
.site-card:hover{box-shadow:0 10px 28px rgba(16,24,40,.08);transform:translateY(-1px)}
.site-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.site-card h2{margin:0;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.site-domain{display:flex;align-items:center;gap:7px;margin:0;color:#667085;font-size:14px;overflow-wrap:anywhere}
.site-domain svg{width:15px;height:15px;fill:currentColor;flex:none}
.site-status{display:inline-flex;align-items:center;gap:6px;flex:none;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}
.site-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.site-status.is-active{background:#ecfdf3;color:#067647}
.site-status.is-inactive{background:#f2f4f7;color:#667085}
.site-card .site-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto}
.site-card-actions .button-link{gap:8px;font-weight:600;font-size:14px}
.site-card-actions .button-link svg{width:16px;height:16px;fill:currentColor}
.site-card-actions .button-link.disabled{grid-column:1/-1;background:#f2f4f7;color:#98a2b3;cursor:not-allowed}
.dashboard-empty{grid-column:1/-1;padding:28px;border:1px dashed #cfd5dc;border-radius:14px;background:#fff;color:#667085;text-align:center}
@media(max-width:640px){
  .dashboard{padding:22px 16px}
  .dashboard-head{flex-direction:column;gap:4px}
  .dash-topbar{padding:0 12px;gap:10px}
  .dash-topbar .dash-brand span{display:none}
  .dash-topbar .dash-user{max-width:50vw}
}

/* Publish: neutral like the other tools; highlighted after a save until the website is published. */
.editor-toolbar .tool-button.needs-publish{background:#f79009;border-color:#f79009;color:#fff}
.editor-toolbar .tool-button.needs-publish:hover{background:#dc6803;border-color:#dc6803}
.editor-toolbar .tool-button.needs-publish::before{content:"";position:absolute;top:-3px;right:-3px;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#d92d20}
@media(max-width:768px){
  .editor-toolbar .tool-button.needs-publish .tool-label::after{content:" — pending changes";font-weight:400}
}

/* Hero background video fields (image panel of the hero background-image). */
.hero-video-fields{margin-top:18px;padding-top:16px;border-top:1px solid #e3e8ee}
.hero-video-fields h3{margin:0 0 6px;font-size:15px}
.hero-video-current{display:grid;gap:6px;margin:10px 0}
.hero-video-current video{width:100%;max-height:180px;border-radius:8px;background:#0b1220}
.hero-video-current span{font-size:12px;color:#667085;overflow-wrap:anywhere}
/* Cards layout select, under the transition of a cards section. */
.ed-cards-layout-row{margin-top:-6px;padding-left:12px;border-left:3px solid #e3e8ee}
.ed-cards-layout-row > span{font-weight:500;color:#475467}
.video-library-thumb video{width:100%;height:100%;object-fit:cover;display:block;background:#0b1220}
.hero-video-remove{width:100%;margin-top:8px}

/* Cards settings button (Transitions panel) and dialog with live demo. */
.property-panel .ed-cards-button{display:flex;align-items:center;gap:8px;width:100%;margin:0;padding:10px 12px;background:#f4f7fb;color:#17212b;border:1px solid #d9e0e7;text-align:left}
.property-panel .ed-cards-button:hover{border-color:#1268e3;background:#eef5ff}
.ed-cards-button svg{width:18px;height:18px;fill:currentColor;flex:none}
.ed-cards-button span{font-weight:700}
.ed-cards-button em{margin-left:auto;font-style:normal;font-size:12px;color:#475467;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cards-dialog-root[hidden]{display:none}
.cards-dialog-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:1800}
.cards-dialog{position:fixed;z-index:1900;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1180px,calc(100vw - 32px));height:min(760px,calc(100dvh - 32px));display:grid;grid-template-rows:auto 1fr auto;background:#fff;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.3);overflow:hidden}
.cards-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 22px;border-bottom:1px solid #e3e8ee}
.cards-dialog-header h2{margin:0 0 4px;font-size:20px}
.cards-dialog-header p{margin:0;color:#667085;font-size:13px}
.cards-dialog-close{flex:0 0 40px;width:40px;height:40px;margin:0!important;padding:0;background:#eef2f6;color:#17212b;font-size:24px}
.cards-dialog-body{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:0}
.cards-dialog-options{overflow:auto;padding:16px 18px 24px;border-right:1px solid #e3e8ee}
.cards-dialog-options h3{margin:6px 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:#475467}
.cards-dialog-options h3:not(:first-child){margin-top:20px}
.cd-group{margin:12px 0 6px;font-size:12px;font-weight:700;color:#667085}
.cd-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cd-tile{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:0!important;padding:10px 11px;background:#fff;color:#17212b;border:1px solid #d9e0e7;border-radius:10px;text-align:left;cursor:pointer;font:inherit}
.cd-tile strong{font-size:13px}
.cd-tile span{font-size:11px;line-height:1.35;color:#667085}
.cd-tile:hover{border-color:#9cc2ff}
.cd-tile.is-selected{border-color:#1268e3;background:#eef5ff;box-shadow:0 0 0 2px rgba(18,104,227,.15)}
.cards-dialog-demo{display:flex;flex-direction:column;gap:12px;padding:18px 22px;background:#eef1f5;min-width:0;overflow:auto}
.cards-dialog-frame{position:relative;width:100%;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.cards-dialog-frame iframe{position:absolute;top:0;left:0;width:1180px;height:600px;border:0;transform:scale(var(--cd-scale,1));transform-origin:0 0}
.cards-dialog-caption{margin:0;font-size:13px;color:#344054;line-height:1.45}
.cards-dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid #e3e8ee}
.cards-dialog-footer button{margin:0}
.cards-dialog-footer .ed-secondary{background:#e9eef5;color:#17212b}
@media(max-width:820px){
  .cards-dialog{left:8px;right:8px;top:8px;bottom:8px;transform:none;width:auto;height:auto}
  .cards-dialog-body{grid-template-columns:1fr;grid-template-rows:auto 1fr;overflow:auto}
  .cards-dialog-demo{order:-1;padding:12px}
  .cards-dialog-options{border-right:0;overflow:visible}
}

/* Uploads: highlighted status, toast with progress and busy buttons. */
#editor-status.is-busy{background:#fff4e5;color:#b54708;font-weight:700}
#editor-busy{position:fixed;top:76px;left:50%;z-index:2100;display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:center;width:min(420px,calc(100vw - 24px));padding:14px 18px 12px;border-radius:14px;background:#17212b;color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.35);transform:translateX(-50%);animation:editor-busy-in .25s ease-out}
#editor-busy[hidden]{display:none}
.editor-busy-spinner{grid-row:1 / span 2;width:26px;height:26px;border:3px solid rgba(255,255,255,.25);border-top-color:#f79009;border-radius:50%;animation:editor-busy-spin .8s linear infinite}
.editor-busy-text{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.editor-busy-text span{font-variant-numeric:tabular-nums;color:#fdb022;font-weight:700}
.editor-busy-bar{height:5px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden}
.editor-busy-bar span{display:block;height:100%;background:#f79009;transform-origin:0 50%;transform:scaleX(0);transition:transform .2s ease}
button.is-uploading{background:#f79009!important;color:#fff!important;cursor:progress!important;opacity:1!important}
@keyframes editor-busy-spin{to{transform:rotate(360deg)}}
@keyframes editor-busy-in{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:768px){#editor-busy{top:64px}}
