/* Shared interface rhythm; tenant colors stay scoped to consumer pages. */
:root{--ui-ink:#203a35;--ui-muted:#60746d;--ui-line:#dce5e0;--ui-canvas:#f3f6f4;--ui-primary:#176953}
[hidden]{display:none!important}.skip-link{position:fixed;top:10px;left:10px;z-index:100;background:white;padding:12px;transform:translateY(-160%)}.skip-link:focus{transform:none}
.admin-body{background:var(--ui-canvas);color:var(--ui-ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.5}
.admin-body h1,.admin-body h2,.admin-body h3{letter-spacing:-.035em;line-height:1.25}.admin-body h1{font-size:30px;font-weight:700}.admin-body h2{font-size:20px}.admin-body h3{font-size:16px}
.admin-body :is(button,input,select,textarea){font:inherit}.admin-body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #6dbea5;outline-offset:3px}
.admin-body .app-shell{align-items:start;min-height:100vh}.admin-body .sidebar{width:248px;height:100dvh;position:sticky;top:0;padding:24px 16px 16px;background:#143d33;display:flex;flex-direction:column;overflow:hidden;border-inline-end:1px solid #ffffff12}
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 10px 22px}.sidebar-heading .brand{font-size:25px;margin:0}.nav-toggle{display:none}
.navigation-content{display:flex;flex-direction:column;min-height:0;flex:1}.admin-body .workspace-chip{padding:12px;margin:0 4px 18px;background:#ffffff08;flex-shrink:0}.workspace-chip strong{line-height:1.5}
.nav-search{margin:0 4px 12px}.nav-search input{border:1px solid #ffffff25;background:#ffffff08;color:white;padding:9px 12px;min-height:38px;font-size:12px}.nav-search input::placeholder{color:#adc7bc}
.admin-body .sidebar-nav{display:block;overflow:auto;scrollbar-width:thin;scrollbar-color:#6d8e80 transparent;flex:1;padding:0 4px;min-height:0}.nav-group{margin-bottom:17px}.nav-group-title{color:#92b5a5;font-size:10px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;margin:0;padding:6px 12px}
.admin-body .sidebar .sidebar-nav a{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.4;color:#d1e1d9;margin:3px 0;font-weight:500}.sidebar-nav a .icon{width:17px;height:17px;opacity:.85}.admin-body .sidebar .sidebar-nav a:hover{background:#ffffff0d;color:white}.admin-body .sidebar .sidebar-nav a.active{background:#d4edc2;color:#173e2c;font-weight:700}
.admin-body .sidebar-bottom{display:grid;flex-shrink:0;padding:14px 10px 0;margin:8px 0 0;border-top:1px solid #ffffff22;gap:3px}.sidebar-bottom>strong{font-size:12px;color:#f1f8f4}.sidebar-bottom>small{font-size:10px}.sidebar-bottom>form{margin-top:8px}.sidebar-bottom .button{background:transparent!important;border-color:#ffffff30;color:#d3e6db!important;width:100%;min-height:34px!important;font-size:11px!important}.sidebar-bottom .instance-marker{padding:5px 9px;margin:0 0 8px;width:max-content;font-size:10px;letter-spacing:1.3px}
.admin-body .app-shell>.admin-main{width:calc(100% - 248px);max-width:1760px;padding:30px 36px;min-width:0;margin:0 auto}.topbar{margin-bottom:24px}.topbar .eyebrow{font-size:10px;letter-spacing:1px;color:#687d73;margin-bottom:8px}.topbar h1{margin-bottom:0}.topbar-actions .language-switcher{border:1px solid var(--ui-line);border-radius:9px;padding:2px 5px;background:white}.topbar-actions .language-switcher select{border:0}.topbar-actions .language-apply{color:#486458}
.admin-body .button{font-size:13px;line-height:1.4;font-weight:650;min-height:42px;padding:10px 15px;border-radius:9px;box-shadow:none;white-space:normal;transition:background .15s,border-color .15s}.admin-body .button:hover{transform:none}.admin-body .button.primary{background:var(--ui-primary);color:white}.admin-body .button.primary:hover{background:#115641}.admin-body .button.secondary{background:#fff;border-color:#d5dfd8;color:#365c4b}.admin-body .button.secondary:hover{background:#eff5f1}.admin-body .small-button{min-height:34px;padding:7px 11px;font-size:12px}
.admin-body .context-bar{padding:16px 20px;margin-bottom:28px;gap:14px;border-color:var(--ui-line);border-radius:12px;box-shadow:0 2px 2px #203a3503}.context-bar label{margin:0!important;font-size:11px;font-weight:650;line-height:1.5;gap:5px}.context-bar select,.context-bar>.button{height:44px;min-height:44px}.context-bar select{min-width:180px;max-width:360px}.context-bar .badge{text-transform:uppercase;letter-spacing:.7px;font-size:9px}
.admin-body .saas-panel{border:1px solid var(--ui-line);border-radius:14px;box-shadow:0 2px 6px #183a2c03;background:white;padding:24px;margin-bottom:24px}.saas-panel>.panel-heading{padding:0 0 18px;border:0}.panel-heading h2{margin:0 0 7px}.admin-body .panel-heading p{font-size:13px;line-height:1.7;color:var(--ui-muted);max-width:850px}.admin-body .muted-note{font-size:12px;line-height:1.75;color:var(--ui-muted)}
.admin-body .saas-form{gap:18px 22px;margin:16px 0;align-items:start}.admin-body .field{gap:7px}.admin-body .field label{margin:0;font-size:12px;line-height:1.5;color:#3d574b;font-weight:650}.admin-body .field :is(input,select,textarea){border:1px solid #cfdcd3;border-radius:8px;background:#fff;color:#253c31;font-size:13px;min-height:42px;padding:10px 12px;line-height:1.5}.field textarea{resize:vertical}.admin-body input::placeholder,.admin-body textarea::placeholder{color:#819187}.form-submit{padding-top:6px}.admin-body .filter-bar{padding:12px 0;gap:10px;border:0;align-items:end}.filter-bar label{margin:0}.admin-body .filter-bar input,.admin-body .filter-bar select{min-height:42px}.admin-body .inline-form{margin:3px}.admin-body .editor-details{border-top:1px solid #e5ebe6;padding:16px 0}.editor-details summary{font-size:13px;color:#355345;line-height:1.6;list-style-position:inside}
.admin-body .table-scroll{border:1px solid #e0e7e2;border-radius:10px;max-height:620px;overflow:auto;scrollbar-width:thin}.admin-body table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}.admin-body th{position:sticky;top:0;z-index:1;background:#f3f7f4;color:#4b6256;font-size:10px;font-weight:750;letter-spacing:.6px;text-transform:uppercase;padding:13px 16px;white-space:nowrap;border-bottom:1px solid #dae5dc}.admin-body td{padding:13px 16px;line-height:1.65;border-bottom:1px solid #edf1ee;font-variant-numeric:tabular-nums;vertical-align:middle}.admin-body tbody tr:last-child td{border-bottom:0}.admin-body tbody tr:hover td{background:#f8fbf8}.admin-body td a:not(.button){color:#176953;text-decoration:underline;text-decoration-color:#aacabb;text-underline-offset:3px}.admin-body .empty-state{padding:40px 20px;color:#73877b;text-align:center;font-size:13px}.table-tools{display:flex;gap:14px;align-items:center;justify-content:space-between;margin:0 0 12px}.table-tools input{max-width:270px;min-height:36px;padding:8px 11px;font-size:12px}.table-tools span{color:#6f8276;font-size:11px}.table-filter-empty{padding:18px;text-align:center;color:#6f8276}.pagination{padding:14px 0;font-size:12px}.pagination a{display:inline-block;border:1px solid var(--ui-line);border-radius:7px;min-width:34px;padding:6px 10px;text-align:center;background:white;margin-inline-start:6px}
.admin-body .badge{font-size:10px;line-height:1.4;padding:5px 8px;border-radius:6px}.badge.neutral{color:#5c7163;background:#eef3ee}.admin-body .notice{font-size:13px;line-height:1.7;border-radius:10px}.admin-body .metric-grid{gap:16px}.admin-body .metric{padding:22px;border-radius:12px;position:relative}.metric:before{content:'';position:absolute;left:0;top:23px;width:3px;height:28px;background:#8ab478;border-radius:0 3px 3px 0}.admin-body .metric strong{font-size:34px;font-weight:650;letter-spacing:-1px;margin:10px 0}.admin-body .metric span:first-child{font-size:12px;font-weight:650}.metric span:last-child{font-size:11px}.admin-body .saas-hero{padding:28px 30px;border-radius:14px;background:linear-gradient(110deg,#163f32,#2f5e43);position:relative;overflow:hidden}.saas-hero h2{font-size:28px!important;max-width:660px;margin:10px 0!important}.saas-hero p{font-size:13px;line-height:1.8;max-width:700px;margin-bottom:0}.saas-hero .eyebrow{color:#cae4b1!important}.admin-footer{padding-top:16px;font-size:11px;color:#6a7f72}
/* Workspace editor with a persistent, independent preview. */
.builder-layout{display:grid;grid-template-columns:minmax(370px,1fr) minmax(365px,.86fr);gap:24px;align-items:start}.builder-editor{min-width:0}.builder-editor>.saas-panel{padding:24px}.builder-editor .panel-heading h2{font-size:18px}.builder-editor .panel-heading p{font-size:12px}.builder-editor .muted-note{font-size:11px;padding:12px;background:#f5f8f5;border-radius:8px}.builder-editor .muted-note a{display:inline-block;color:#176953;text-decoration:underline;margin-top:5px}
.scope-tabs{display:flex;gap:4px;padding:4px;background:#edf3ee;border-radius:10px;margin:20px 0 16px}.admin-body .scope-tabs .button{flex:1;font-size:12px;border:0;background:transparent;min-height:36px;padding:8px}.admin-body .scope-tabs .button[aria-pressed=true]{background:white;color:#174f39;box-shadow:0 1px 5px #123b2314}.scope-title{margin:18px 0 8px!important;color:#60766a;font-size:12px!important;font-weight:600}.settings-search{font-size:11px;color:#566c5e;margin:0 0 14px}.settings-search input{margin-top:7px;min-height:38px;font-size:12px;padding:8px 11px}.settings-search-empty{font-size:12px;color:#6a7b70;padding:12px 0}
.experience-scope .saas-form{display:block;margin:0}.experience-section{border-top:1px solid #e1e9e3}.experience-section>summary{padding:16px 0;font-size:13px;font-weight:700;cursor:pointer;display:flex;justify-content:space-between;align-items:center;list-style:none}.experience-section>summary::-webkit-details-marker{display:none}.experience-section>summary:after{content:'+';font-size:19px;font-weight:400;color:#688172}.experience-section[open]>summary:after{content:'−'}.experience-scope .experience-group{padding:0 0 22px;border:0;margin:0;gap:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.experience-setting{position:relative}.experience-setting:has(textarea),.experience-setting:has(input[type=url]){grid-column:1/-1}.experience-setting .inherited-setting{margin:7px 0 0;font-size:10px;color:#75897c}.experience-setting>small{display:block;font-size:10px;color:#849388;margin-top:6px}.experience-setting .empty-override{margin:6px 0 0;font-size:10px;color:#748478}.experience-setting .experience-color{position:absolute;top:30px;inset-inline-end:7px;width:30px!important;height:29px!important;min-height:29px!important;margin:0!important;border:0;border-radius:5px;background:transparent}.experience-setting:has(.experience-color) .field input{padding-inline-end:46px}.experience-scope .form-submit{position:sticky;bottom:0;z-index:2;padding:14px 0;background:white;border-top:1px solid #e1e9e3;margin-top:8px}.experience-scope .form-submit .button{width:100%}.builder-publish{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0}.builder-publish .inline-form{margin:0}.builder-status{font-size:11px;color:#637b6b;max-width:260px}.builder-status[data-state=dirty]{color:#8a631b}.builder-status[data-state=error]{color:#ae4038}.release-history{margin-top:16px;padding:14px 0;border-top:1px solid #e1e9e3;font-size:12px}.release-history>summary{cursor:pointer;color:#687e6e;font-weight:600}.release-history p{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:12px 0;font-size:11px;color:#6c8173}
.builder-preview{position:sticky;top:20px;border:1px solid #dbe5de;border-radius:15px;background:#fff;padding:20px;min-width:0}.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.preview-heading h2{font-size:18px;margin:6px 0 0}.preview-heading .eyebrow{font-size:8px;letter-spacing:1.2px}.preview-dot{height:8px;width:8px;border-radius:50%;background:#78aa66;box-shadow:0 0 0 4px #eef5e9}.preview-explanation{font-size:11px;color:#6d8074;line-height:1.7;margin:12px 0}.preview-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.preview-controls .field label{font-size:10px}.preview-controls .field select{font-size:11px;min-height:36px;padding:7px 9px}.preview-device-switch{display:flex;gap:6px;margin:14px 0}.admin-body .preview-device-switch .button{font-size:10px;padding:6px 10px;min-height:30px}.preview-device-switch [aria-pressed=true]{background:#eaf3e6!important;color:#385c30!important;border-color:#c4d9bc!important}.preview-device-switch button:last-child{margin-inline-start:auto}.preview-stage{background:#e9eeeb;padding:16px 8px;border-radius:12px;display:flex;justify-content:center;overflow:hidden}.preview-stage iframe{background:#fff;border:1px solid #cfd9d2;border-radius:18px;display:block;width:390px;max-width:100%;height:650px;box-shadow:0 6px 18px #223d2a13}.preview-stage[data-device=wide] iframe{width:100%;border-radius:7px}.preview-state-message{font-size:10px;color:#6f8174;margin:12px 0 0}.preview-post-form{display:none}
/* Consumer refinements preserve all configurable brand values and RTL direction. */
.client-body .client-header{max-width:1200px;padding-block:20px;min-height:86px}.client-body .client-main{padding-top:48px;padding-bottom:42px}.client-body .client-main>h1{font-size:clamp(29px,4.6vw,43px);line-height:1.24;letter-spacing:-.035em}.client-body .client-intro{font-size:14px;line-height:1.8;max-width:550px;margin:0 auto 30px}.client-body .verification-card{border-radius:20px;box-shadow:0 12px 42px #294d3210;padding:26px 30px;max-width:460px}.client-body .verification-card>h2{font-size:26px;line-height:1.3}.client-body .verification-card>p{font-size:14px}.client-body .card-topline{font-size:10px;letter-spacing:.7px}.client-body .button{min-height:46px}.client-body .trust-row{font-size:11px;gap:20px}.client-body .card-footnote{font-size:11px;line-height:1.6}.client-body .client-footer{line-height:1.8}.client-body .confirmation-help summary{font-weight:600}.client-body .confirmation-help-image{height:auto}.client-body .confirm-dialog{padding:34px;max-height:90dvh;overflow:auto;border-radius:18px}.client-body .dialog-close{width:34px;height:34px}.client-body .confirmation-input{font-size:24px;min-height:65px}.client-body .product-info strong{font-size:14px}.client-body .product-info small{font-size:10px}.client-body .product-info span{font-size:11px}
.client-body.template-compact .client-main{padding-top:24px}.client-body.template-compact .client-main>h1{font-size:30px}.client-body[data-preview="1"] .preview-banner{display:none}.client-body[data-preview="1"] .client-header{padding:14px 18px;min-height:70px}.client-body[data-preview="1"] .header-note{display:none}
@media(min-width:1100px){.client-body.template-editorial .client-main{max-width:1150px}.client-body.template-editorial .client-intro{margin:0 0 24px}}
@media(max-width:1250px){.admin-body .sidebar{width:224px;padding-inline:12px}.admin-body .app-shell>.admin-main{width:calc(100% - 224px);padding:26px 24px}.builder-layout{grid-template-columns:minmax(325px,1fr) minmax(320px,.9fr);gap:18px}.builder-editor>.saas-panel,.builder-preview{padding:18px}.builder-editor .experience-group{grid-template-columns:1fr}.topbar-actions{gap:8px}.context-bar select{min-width:160px}}
@media(max-width:1080px){.builder-layout{grid-template-columns:1fr}.builder-preview{position:static;max-width:650px;width:100%;margin:0 auto}.builder-editor .experience-group{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-layout .preview-stage iframe{height:650px}.topbar{align-items:start}.topbar-actions{justify-content:flex-end}.admin-body .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.admin-body .app-shell{display:block}.admin-body .sidebar{width:100%;height:auto;position:relative;padding:16px 20px;overflow:visible}.sidebar-heading{padding:0}.sidebar-heading .brand{font-size:24px}.nav-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid #ffffff35;color:white;background:transparent;padding:8px 12px;border-radius:8px;font-size:12px}.nav-toggle .icon{width:16px;height:16px}.navigation-content{padding-top:20px}.admin-body .sidebar-nav{max-height:55vh;display:block;overflow:auto}.admin-body .sidebar .sidebar-nav a{padding:11px 12px;font-size:13px}.admin-body .sidebar-bottom{display:grid;padding:14px 10px 0}.admin-body .sidebar-bottom>strong,.admin-body .sidebar-bottom>small,.admin-body .sidebar-bottom>form{display:block}.nav-search{display:block}.admin-body .workspace-chip{display:flex}.admin-body .app-shell>.admin-main{width:100%;padding:24px}.topbar{flex-direction:row;align-items:center}.topbar-actions{width:auto}.topbar-actions .button{font-size:11px;min-height:36px}.admin-body h1{font-size:26px}.topbar .eyebrow{font-size:9px}.admin-body .context-bar{padding:16px}.context-bar label{flex:1;min-width:130px}.context-bar select{min-width:0;width:100%;max-width:none}.builder-layout{grid-template-columns:minmax(320px,1fr) minmax(300px,.9fr)}.builder-editor .experience-group{grid-template-columns:1fr}.builder-preview{position:sticky;top:12px}.sidebar-heading .instance-mobile{display:inline-flex;font-size:9px;letter-spacing:1px;color:#d4edc2;border:1px solid #ffffff30;border-radius:5px;padding:3px 7px;margin-inline-start:auto}}
@media(max-width:720px){.admin-body .app-shell>.admin-main{padding:20px 16px}.topbar{align-items:start;gap:14px;flex-direction:column}.topbar-actions{justify-content:space-between;width:100%}.topbar h1{font-size:25px}.admin-body .context-bar{gap:12px}.context-bar>.button{flex:1;min-width:110px}.context-bar .badge{margin:auto 0 auto auto}.admin-body .saas-panel{padding:18px}.admin-body .saas-form{grid-template-columns:1fr;gap:16px}.admin-body .panel-heading h2{font-size:18px}.admin-body .saas-hero{padding:24px}.saas-hero h2{font-size:24px!important}.admin-body .metric-grid{gap:10px}.admin-body .metric{padding:18px}.admin-body .metric strong{font-size:28px}.admin-body .metric span{font-size:10px!important}.builder-layout{grid-template-columns:1fr}.builder-preview{position:static}.builder-editor .experience-group{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-preview{padding:18px}.builder-editor>.saas-panel{margin-bottom:0}.table-tools{flex-wrap:wrap;gap:6px}.table-tools input{max-width:none;flex:1}.admin-body td,.admin-body th{padding:11px 13px}.admin-body .filter-bar input{max-width:100%;flex:1}.client-body .client-main{padding:34px 18px}.client-body .client-main>h1{font-size:31px}.client-body .verification-card{padding:22px;border-radius:18px}.client-body .verification-card>h2{font-size:24px}.client-body .trust-row{flex-wrap:wrap;font-size:10px;gap:10px 16px}.client-body .client-header{padding:16px 20px}.client-body .confirm-dialog{padding:28px 23px}.client-body .client-footer{margin-inline:18px;padding:22px 10px;justify-content:center;text-align:center;font-size:11px}.client-body .client-legal-links{justify-content:center}.client-body .client-footer-extra{font-size:11px}.preview-stage{padding:10px 5px}}
@media(max-width:420px){.builder-editor .experience-group{grid-template-columns:1fr}.preview-controls{gap:8px}.scope-tabs .button{font-size:11px!important}.admin-body .context-bar label{min-width:115px}.client-body .client-header-tools{max-width:100%}.client-body .client-header{gap:10px}.client-body .client-main>h1{font-size:28px}}
@media(min-width:901px){.instance-mobile{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.admin-body *{transition:none!important}.client-body .pulse-button{animation:none!important}}

/* Collapsible navigation groups and bulk controls. */
.nav-search-row{display:flex;align-items:center;gap:6px;margin:0 4px 12px;flex-shrink:0;min-width:0}
.nav-search-row .nav-search{flex:1;min-width:0;margin:0}
.nav-search-row .nav-search input{width:100%;min-width:0;margin:0;padding-inline:9px;font-size:11px}
.nav-fold-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:38px;min-height:38px;padding:5px;border:1px solid #ffffff25;border-radius:7px;background:#ffffff08;color:#d4e7dc;cursor:pointer}
.nav-fold-button .icon{width:17px;height:17px}.nav-fold-button:hover{background:#ffffff18;border-color:#ffffff55;color:white}
.nav-search-empty{margin:0 12px 14px;font-size:12px;color:#d1e1d9;line-height:1.6}
.admin-body .sidebar-nav details.nav-group{margin:0 0 8px;border:0;padding:0}
.admin-body .nav-group>.nav-group-title{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:8px 10px;margin:0;border-radius:7px;list-style:none;cursor:pointer;user-select:none;color:#a9c6b9;font-size:10px;font-weight:700;letter-spacing:.8px;line-height:1.6;text-transform:uppercase}
.nav-group>.nav-group-title::-webkit-details-marker{display:none}.nav-group>.nav-group-title::marker{content:''}
.nav-group>.nav-group-title>.icon{width:14px;height:14px;flex-shrink:0;transform:rotate(-90deg);transition:transform .15s}
.nav-group[open]>.nav-group-title>.icon{transform:rotate(0)}
.admin-body .nav-group>.nav-group-title:hover{background:#ffffff0d;color:#fff}
.admin-body .nav-group:has(a[aria-current=page])>.nav-group-title{color:#d4edc2}
@media(max-width:900px){.nav-fold-button{flex-basis:34px;width:34px}.admin-body .nav-group>.nav-group-title{min-height:40px}}
@media(prefers-reduced-motion:reduce){.nav-group>.nav-group-title>.icon{transition:none}}

.language-status-note{display:block;max-width:320px;margin-top:6px;font-size:11px;line-height:1.5;color:var(--muted,#61756c)}

.client-status-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:220px;max-width:440px}.client-status-actions .inline-form{margin:0}.client-status-actions>a{font-size:12px}
