/* Published visual identity, bounded by the founder design editor. */
:root{--site-primary:#366d60;--site-background:#f7f5f2;--site-text:#243339;--site-font:Manrope,'Noto Sans Georgian',system-ui,sans-serif}
body{font-family:var(--site-font)}
.vm,.vm-header{background:var(--site-background);color:var(--site-text)}
.vm .vm-hero h1{color:var(--site-text)}
.vm .vm-primary,.vm .vm-nav-start,.button:not(.secondary):not(.danger){background:var(--site-primary);color:var(--site-button-text,#fff)}
.vm .vm-kicker,.vm .vm-hero h1 em{color:var(--site-primary)}
:root{--primary:var(--site-primary)}
/* Founder visual editor */
.sp-designer{max-width:1200px;margin:0 auto;padding:22px 20px 100px}
.sp-designer-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:24px}
.sp-designer-grid{display:grid;grid-template-columns:minmax(285px,420px) minmax(0,1fr);gap:22px;align-items:start}
.sp-designer-panel{background:#fff;border:1px solid #e5e5e5;border-radius:18px;padding:20px;display:grid;gap:16px;color:#283330}
.sp-designer-panel h2{font-size:1.2rem}
.sp-designer-panel label{display:grid;gap:5px;font-size:.86rem;font-weight:700}
.sp-designer-panel input,.sp-designer-panel textarea,.sp-designer-panel select{width:100%;padding:10px 12px;border:1px solid #cbd5d0;border-radius:10px;background:#fff;color:#202e29}
.sp-designer-panel textarea{min-height:70px;resize:vertical}
.sp-designer-color{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.sp-designer-color input{height:43px;padding:3px}
.sp-designer-actions{display:flex;gap:9px;flex-wrap:wrap}
.sp-designer-preview{border:1px solid #d1ded5;border-radius:20px;overflow:hidden;background:var(--sp-bg,#f7f5f2);color:var(--sp-text,#243339);min-height:365px}
.sp-designer-preview-inner{padding:40px 26px;display:grid;gap:20px;grid-template-columns:minmax(0,1fr) 45%;align-items:center;font-family:var(--sp-font,system-ui)}
.sp-designer-preview h2{font-size:clamp(1.45rem,3vw,2.4rem);line-height:1.2;letter-spacing:-.04em;overflow-wrap:anywhere}
.sp-designer-preview p{line-height:1.6}
.sp-designer-preview img{width:100%;aspect-ratio:1.18;object-fit:cover;border-radius:15px}
.sp-designer-preview .preview-cta{display:inline-flex;background:var(--sp-primary,#366d60);border-radius:10px;color:white;padding:11px 17px;font-weight:700;max-width:max-content}
.sp-designer-preview [contenteditable]{outline:2px dashed transparent;cursor:text}
.sp-designer-preview [contenteditable]:hover,.sp-designer-preview [contenteditable]:focus{outline-color:var(--sp-primary,#366d60);outline-offset:5px}
.sp-designer-help{font-size:.82rem;color:#5f6d65;line-height:1.6}
.sp-designer-status{padding:9px 12px;background:#eff7f1;border-radius:9px;color:#24513c}
.sp-designer-thumb{width:100%;max-height:165px;object-fit:cover;border-radius:11px}
@media(max-width:850px){.sp-designer-grid{grid-template-columns:1fr}.sp-designer-preview-inner{grid-template-columns:1fr}.sp-designer-preview img{max-height:250px}}

/* Founder content constructor: controls never affect salon data or login flows. */
.sp-builder-regions{display:grid;gap:13px;padding:18px;border:1px solid #c9dfd4;
 border-radius:16px;background:linear-gradient(155deg,#f5faf7,#fff);min-width:0}
.sp-builder-regions h2{font-size:1.12rem;margin:0}
.sp-builder-regions label{display:grid;gap:7px;color:#273c32;font-weight:700}
.sp-builder-regions textarea{min-height:105px;resize:vertical}
.sp-builder-regions .sp-builder-inline-preview{border:1px dashed #b9d2c5;border-radius:12px;
 background:#fff;padding:13px;overflow-wrap:anywhere;display:grid;gap:7px}
.sp-builder-inline-preview small{color:#526e60}
.sp-builder-inline-preview p{color:#2e463a;font-size:.87rem;white-space:pre-wrap}
.sp-builder-inline-preview img{max-height:190px;width:100%;object-fit:contain;border-radius:9px}
.sp-builder-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sp-builder-palette label{font-size:.85rem}
.sp-builder-palette input{height:43px;padding:4px;cursor:pointer}
.sp-designer [hidden]{display:none!important}
.sp-designer-preview h2{color:var(--sp-heading,var(--sp-text,#243339))}
.sp-designer-preview .preview-cta{color:var(--sp-button-text,#fff)}
.sp-designer-preview-inner{background:var(--sp-bg,#f7f5f2)}
.sp-designer-region-preview{background:var(--sp-card,#fff)}
.vm .vm-hero h1,.vm .vm-section-head h2,.vm .vm-editorial h2{color:var(--site-heading,var(--site-text,#243339))}
/* Dark feature cards retain readable text even when the founder changes the general heading color. */
.vm .vm-final h2{color:#ffffff}
.vm a:not(.button){color:var(--site-link,var(--site-primary,#366d60))}
.vm .vm-benefit,.vm .vm-faq-item{background:var(--site-card,#fff)}
/* Pricing is a distinct dark feature card. Resetting an element must restore
   readable white-on-green content and a light CTA, not theme card/button defaults. */
.vm .vm-price-card{background:linear-gradient(150deg,#2d624b,#1a4233)}
.vm .vm-price-card .button{background:#fcfbf5;color:#234d39}
/* Keep the light CTA on this dark panel; generic theme buttons must not override it. */
.vm .vm-final .button{background:#f7f6ef;color:#21503b}
.vm .vm-primary,.vm .vm-nav-start{color:var(--site-button-text,#fff)}
@media(max-width:500px){.sp-builder-palette{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sp-builder-regions{padding:14px}}

.sp-builder-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;
 padding:12px;background:#f8faf8;border:1px solid #d3e3d9;border-radius:12px;
 max-height:260px;overflow-y:auto}
.sp-builder-library p{grid-column:1/-1}
.sp-builder-media-tile{padding:4px;border:1px solid #d1ddd5;border-radius:10px;
 background:#fff;cursor:pointer;aspect-ratio:1.15;overflow:hidden}
.sp-builder-media-tile:hover,.sp-builder-media-tile:focus-visible{
 border-color:#376853;outline:2px solid #376853;outline-offset:1px}
.sp-builder-media-tile img{width:100%;height:100%;object-fit:cover;border-radius:6px}

/* Visual editing uses an actual same-origin public page rather than a mock. */
.sp-live-studio{margin-top:26px;padding:22px;border-radius:22px;border:1px solid #cbdad1;
 background:#f6faf7;scroll-margin-top:24px}
.sp-live-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:20px}
.sp-live-head h2{font-size:clamp(1.3rem,2vw,1.9rem);margin:5px 0 8px}
.sp-live-head p{color:#52685b;font-size:.92rem;max-width:720px}
.sp-live-kicker{font-size:.72rem;letter-spacing:.15em;font-weight:800;color:#2f8169}
.sp-live-toolbar{display:flex;gap:7px;flex-wrap:wrap}
.sp-live-toolbar button[aria-pressed="true"]{border:2px solid #32785f;background:#e0f2e8}
.sp-live-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,310px);gap:18px;align-items:start}
.sp-live-stage{min-width:0;display:grid;justify-items:center;background:#e5ebe7;border-radius:17px;padding:12px}
.sp-live-browser{width:100%;max-width:100%;overflow:hidden;border-radius:13px;background:white;
 border:1px solid #b6c7ba;box-shadow:0 10px 32px rgba(13,45,29,.12);transition:max-width .25s}
.sp-live-studio[data-device="mobile"] .sp-live-browser{max-width:390px}
.sp-live-address{padding:9px 13px;background:#ecf2ed;border-bottom:1px solid #d2ded6;
 color:#486458;font-size:.76rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-live-address span:first-child{color:#6b8d74;margin-right:9px}
.sp-live-frame-wrap{height:min(70vh,750px);min-height:480px;overflow:hidden}
.sp-live-frame-wrap iframe{width:100%;height:100%;display:block;border:0;background:#fff}
.sp-live-properties{background:#fff;border:1px solid #d3dfd7;border-radius:16px;padding:18px;
 display:grid;gap:13px;position:sticky;top:12px;max-height:92vh;overflow-y:auto}
.sp-live-properties h3{font-size:1.12rem;margin:0}
.sp-live-properties p{font-size:.78rem;color:#587064;overflow-wrap:anywhere}
.sp-live-properties #spLiveFields{display:grid;gap:12px}
.sp-live-properties label{display:grid;gap:6px;font-weight:650;font-size:.84rem;color:#2e4437}
.sp-live-properties input,.sp-live-properties select,.sp-live-properties textarea{
 max-width:100%;width:100%;border:1px solid #bdcfc3;border-radius:10px;
 padding:9px;background:#fff;color:#243b2d}
.sp-live-properties input[type="color"]{height:44px;padding:4px}
.sp-live-properties textarea{resize:vertical;min-height:95px}
.sp-live-color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.sp-live-studio [hidden]{display:none!important}
@media(max-width:860px){.sp-live-layout{grid-template-columns:1fr}.sp-live-properties{position:static;max-height:none}}
@media(max-width:460px){.sp-live-studio{padding:12px}.sp-live-stage{padding:6px}
 .sp-live-head{gap:10px}.sp-live-toolbar button{font-size:.8rem}
 .sp-live-frame-wrap{height:620px}}

/* Founder-only section structure: accessible reorder arrows, drag handles and visibility. */
.sp-structure-panel{margin-top:18px;border:1px solid #c9dccf;background:#fff;
 border-radius:16px;padding:17px;display:grid;gap:9px}
.sp-structure-panel h3{margin:0;font-size:1.08rem}
.sp-structure-panel>p{color:#5d7668;font-size:.84rem;margin:0 0 5px}
.sp-structure-list{display:grid;gap:7px}
.sp-structure-row{display:flex;align-items:center;gap:10px;min-width:0;
 padding:8px 10px;border:1px solid #d9e5db;background:#f8fbf8;border-radius:11px}
.sp-structure-row strong{flex:1;min-width:0;font-size:.9rem;color:#2b4535}
.sp-structure-grip{font-size:1.25rem;color:#649079;cursor:grab}
.sp-structure-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.sp-structure-actions .button{min-height:32px;padding:6px 11px}
.sp-structure-visibility{display:flex!important;align-items:center;gap:5px!important;
 margin:0;color:#506c5a;font-size:.75rem!important;white-space:nowrap}
.sp-structure-visibility input{width:18px!important;height:18px!important;margin:0;accent-color:#347b60}
.sp-live-toolbar button:disabled,.sp-structure-actions button:disabled{opacity:.45;cursor:not-allowed}
.sp-structure-panel[hidden]{display:none!important}
@media(max-width:600px){
 .sp-structure-row{flex-wrap:wrap;gap:7px}
 .sp-structure-row strong{flex-basis:70%}
 .sp-structure-actions{width:100%;justify-content:flex-end}
}

/* Georgian capitals / founder-licensed BPG face selector. */
#designerLiveHeading{font-family:var(--sp-heading-font,inherit)}
.sp-licensed-font-panel{margin:12px 0;display:grid;gap:10px;padding:16px;border:1px solid #cbded2;border-radius:14px;background:#f6faf7}
.sp-licensed-font-panel h3{font-size:1rem;margin:0}
.sp-licensed-font-panel .sp-designer-help{line-height:1.5;margin:0;font-size:.8rem}
.sp-font-license-confirm{display:flex!important;align-items:flex-start;gap:9px!important;font-size:.85rem;font-weight:550}
.sp-font-license-confirm input[type="checkbox"]{width:18px!important;height:18px!important;margin:2px 0 0;flex:none;accent-color:#366d60}
.sp-licensed-font-panel input[type="file"]{font-size:.8rem;max-width:100%}

/* Publication feedback is visible directly below the Live Studio toolbar,
   including on narrow mobile screens and when the form is far above. */
.sp-live-action-status{margin:0 0 15px;padding:12px 15px;
 border:1px solid #c8d8cc;border-radius:12px;background:#f4f8f5;
 color:#244536;font-weight:650;line-height:1.45;font-size:.88rem;
 overflow-wrap:anywhere}
.sp-live-action-status[data-kind="busy"]{background:#eaf2fa;border-color:#a2c1e0;color:#21496d}
.sp-live-action-status[data-kind="success"]{background:#ecf8f0;border-color:#9aceb2;color:#1d6747}
.sp-live-action-status[data-kind="error"]{background:#fff1ed;border-color:#eab4a4;color:#8c3029}
.sp-live-action-status[hidden]{display:none!important}
.sp-designer-status[data-kind="error"]{color:#9a312c}
@media(max-width:600px){.sp-live-action-status{margin-top:12px;padding:14px;font-size:.9rem}}

/* Live Georgian heading preview: source text stays editable in Mkhedruli,
   display text uses actual Mtavruli capitals (including uninstalled BPG fallback). */
.sp-live-font-preview{border:1px solid #b7d6c7;border-radius:12px;
 background:#edf7f0;padding:12px 13px;display:grid;gap:8px;max-width:100%}
.sp-live-font-preview-label{font-size:.76rem;font-weight:650;color:#426f56}
.sp-live-font-preview strong{font-size:clamp(1rem,3.4vw,1.25rem);font-weight:750;
 line-height:1.45;color:#224a37;overflow-wrap:anywhere}
.sp-live-font-preview[hidden]{display:none!important}

/* Compact founder Design Studio on phones. The public site and owner cabinets
   intentionally do not inherit these editor-only layout adjustments. */
@media (max-width:700px){
  .operator-workspace .sp-designer{padding:14px 12px 56px}
  .operator-workspace .sp-designer-head{align-items:stretch;gap:10px;margin-bottom:12px}
  .operator-workspace .sp-designer-head>div:first-child{min-width:0;width:100%}
  .operator-workspace .sp-designer-head .eyebrow{font-size:.65rem;letter-spacing:.1em}
  .operator-workspace .sp-designer-head h1{
    font-size:clamp(1.5rem,6.4vw,1.85rem)!important;
    line-height:1.2;letter-spacing:-.025em;margin:5px 0 7px;
    overflow-wrap:anywhere
  }
  .operator-workspace .sp-designer-help{font-size:.77rem;line-height:1.45}
  .operator-workspace .sp-designer-head>.sp-designer-actions{
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    width:100%;gap:7px
  }
  .operator-workspace .sp-designer-head>.sp-designer-actions .button{
    width:100%;min-width:0;min-height:42px;
    padding:8px 10px;font-size:.79rem;line-height:1.25;
    border-radius:10px;white-space:normal;text-align:center
  }
  .operator-workspace .sp-designer-grid{gap:12px;min-width:0}
  .operator-workspace .sp-designer-panel{
    min-width:0;padding:13px;gap:11px;border-radius:14px
  }
  .operator-workspace .sp-designer-panel h2{
    font-size:1.06rem;line-height:1.28;
    letter-spacing:-.02em;overflow-wrap:anywhere
  }
  .operator-workspace .sp-designer-panel h3{font-size:.94rem;line-height:1.3}
  .operator-workspace .sp-designer-panel label{
    min-width:0;gap:5px;font-size:.82rem;line-height:1.35
  }
  .operator-workspace .sp-designer-panel input:not([type="file"]):not([type="color"]):not([type="checkbox"]),
  .operator-workspace .sp-designer-panel select{
    min-height:42px;height:42px;padding:7px 10px;
    font-size:.85rem;border-radius:9px
  }
  .operator-workspace .sp-designer-panel input[type="file"]{
    min-width:0;max-width:100%;min-height:42px;
    padding:7px;font-size:.78rem
  }
  .operator-workspace .sp-designer-panel textarea{
    min-height:70px;padding:8px 10px;
    font-size:.85rem;line-height:1.35;border-radius:9px
  }
  .operator-workspace .sp-designer-panel .button{
    min-width:0;min-height:40px;padding:8px 11px;
    font-size:.81rem;line-height:1.25;border-radius:9px;
    white-space:normal;text-align:center
  }
  .operator-workspace .sp-designer-actions{gap:7px}
  .operator-workspace .sp-builder-regions{
    padding:10px;gap:10px;border-radius:12px
  }
  .operator-workspace .sp-builder-regions h2{font-size:1.01rem}
  .operator-workspace .sp-builder-regions textarea{min-height:70px}
  .operator-workspace .sp-builder-regions .sp-builder-inline-preview{padding:9px;gap:5px}
  .operator-workspace .sp-designer-color{gap:7px}
  .operator-workspace .sp-designer-color input[type="color"]{height:38px;min-height:38px}
  .operator-workspace .sp-licensed-font-panel{margin:5px 0;padding:11px;gap:8px}
  .operator-workspace .sp-designer-preview{min-height:0;border-radius:13px}
  .operator-workspace .sp-designer-preview-inner{padding:13px;gap:11px}
  .operator-workspace .sp-designer-preview-inner>div{gap:8px!important}
  .operator-workspace .sp-designer-preview-inner strong{font-size:.8rem}
  .operator-workspace .sp-designer-preview h2{
    font-size:1.2rem;line-height:1.22;letter-spacing:-.025em
  }
  .operator-workspace .sp-designer-preview p{font-size:.82rem;line-height:1.4}
  .operator-workspace .sp-designer-preview-inner img{
    max-height:165px;aspect-ratio:16/9;border-radius:10px
  }
  .operator-workspace .sp-designer-preview .preview-cta{
    padding:8px 11px;border-radius:8px;font-size:.81rem
  }
  .operator-workspace .sp-live-studio{
    margin-top:14px;padding:12px;border-radius:14px
  }
  .operator-workspace .sp-live-head{gap:10px;margin-bottom:11px}
  .operator-workspace .sp-live-head h2{
    font-size:1.16rem;line-height:1.25;margin:5px 0 6px
  }
  .operator-workspace .sp-live-head p{font-size:.79rem;line-height:1.4}
  .operator-workspace .sp-live-kicker{font-size:.62rem;letter-spacing:.1em}
  .operator-workspace .sp-live-toolbar{gap:6px}
  .operator-workspace .sp-live-toolbar .button{
    min-height:40px;padding:7px 10px;
    font-size:.75rem;line-height:1.2;border-radius:9px
  }
  .operator-workspace .sp-live-layout{gap:10px}
  .operator-workspace .sp-live-stage{padding:4px;border-radius:10px}
  .operator-workspace .sp-live-address{padding:6px 9px;font-size:.68rem}
  .operator-workspace .sp-live-frame-wrap{height:400px;min-height:0}
  .operator-workspace .sp-live-properties{
    padding:12px;gap:10px;border-radius:12px
  }
  .operator-workspace .sp-live-properties h3{font-size:1rem}
  .operator-workspace .sp-live-properties #spLiveFields{gap:9px}
  .operator-workspace .sp-live-properties textarea{min-height:70px}
  .operator-workspace .sp-structure-panel{margin-top:12px;padding:11px}
  .operator-workspace .sp-live-action-status{
    margin:0 0 10px;padding:9px 10px;
    font-size:.78rem;line-height:1.35;overflow-wrap:anywhere
  }
}
