/* V53: Design Studio ONLY. Preserve V52 blue illumination and all other YouSite panels. */
.ysb-v50 .ysb-body{
  grid-template-columns:minmax(255px,27%) minmax(0,1fr)!important;
  gap:clamp(26px,3.5vw,56px)!important;
}
.ysb-v50 .ysb-left{
  background:rgba(191,213,233,.12)!important;
  border-color:rgba(216,239,255,.32)!important;
  box-shadow:7px 12px 38px rgba(0,8,24,.28),inset -1px 0 1px rgba(241,251,255,.11)!important;
}
.ysb-v50 .ysb-menu-title,
.ysb-v50 .ysb-submenu-heading{
  background:transparent!important;
  min-height:55px;
  border-bottom:1px solid rgba(206,240,255,.19)!important;
}
.ysb-v50 .ysb-menu-title{color:#b9ffde!important;text-shadow:0 0 10px rgba(55,255,179,.18);letter-spacing:.115em}
.ysb-v50 .ysb-menu-title .ysb-home-icon{color:#a8e6d4!important}
.ysb-v50 .ysb-menu-hint,.ysb-v50 .ysb-category-num{display:none!important}
/* Keep lighting flush at the left; settings themselves have proper inset padding. */
.ysb-v50 .ysb-menu-stage{padding:10px 0 22px!important}
.ysb-v50 .ysb-category{padding:9px 18px!important;min-height:44px!important;gap:13px!important;font-size:12px!important}
.ysb-v50 .ysb-category-icon{width:19px!important;flex-basis:19px!important}
.ysb-v50 .ysb-setting-body{padding:8px 19px 25px!important;box-sizing:border-box;min-width:0}
.ysb-v50 .ysb-setting-body>*{max-width:100%;box-sizing:border-box}
.ysb-v50 .ysb-setting-body .ysb-btn,
.ysb-v50 .ysb-setting-body .ysb-input,
.ysb-v50 .ysb-setting-body .ysb-select,
.ysb-v50 .ysb-setting-body .ysb-textarea,
.ysb-v50 .ysb-setting-body .ysb-upload{box-sizing:border-box;max-width:100%}
.ysb-v50 .ysb-setting-body .ysb-btn{margin:5px 7px 5px 0!important}
.ysb-v50 .ysb-setting-body .ysb-muted{margin:9px 0 15px!important;line-height:1.55}
.ysb-v50 .ysb-subheading{padding:5px 0 4px!important;line-height:1.5}
.ysb-v50 .ysb-side-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 19px 8px!important;border-top:1px solid rgba(180,215,238,.20);padding:17px 0 0;color:#a5cce0;line-height:1.2;font-size:9px;letter-spacing:.07em}
.ysb-v50 .ysb-side-foot b{color:#edd8a3;font-size:11px;font-weight:600}
.ysb-v50 .ysb-side-foot span{color:#9ad9f4;font-size:9px;white-space:nowrap}
.ysb-v50 .ysb-work{max-width:100%;min-width:0}
/* Shrink desktop BOTH dimensions, so it keeps legitimate widescreen proportions. */
.ysb-v50 .ysb-preview-canvas{align-items:flex-start!important;justify-content:center!important;min-height:0;overflow:auto}
.ysb-v50 .ysb-browser[data-device="desktop"]{
 width:min(96%,990px)!important;height:auto!important;
 aspect-ratio:16 / 10!important;min-height:0!important;
 max-height:100%!important;max-width:100%!important;
 border-radius:0!important;position:relative;overflow:hidden;
}
.ysb-v50 .ysb-browser[data-device="tablet"]{
 width:min(650px,84%)!important;height:auto!important;
 aspect-ratio:4 / 3!important;min-height:0!important;
 max-height:100%!important;max-width:100%!important;
 border-radius:17px!important;position:relative;overflow:hidden;
}
.ysb-v50 .ysb-browser[data-device="mobile"]{
 width:min(300px,47%)!important;height:auto!important;
 aspect-ratio:9 / 19.5!important;min-height:0!important;
 max-height:100%!important;max-width:100%!important;
 border-radius:30px!important;position:relative;overflow:hidden;
}
.ysb-v50 .ysb-site-frame[hidden],.ysb-v50 .ysb-grapes-mount[hidden]{display:none!important}
.ysb-v50 .ysb-site-frame{height:100%!important;width:100%!important;min-height:0!important}
.ysb-v50 .ysb-grapes-mount{position:absolute;inset:0;z-index:3;width:100%;height:100%;background:transparent}
.ysb-v50 .ysb-grapes-mount .gjs-editor{width:100%;height:100%;font-family:inherit;background:transparent}
.ysb-v50 .ysb-grapes-mount .gjs-cv-canvas{top:0;left:0;height:100%;width:100%;background:transparent}
.ysb-v50 .ysb-preview-head{align-items:center!important}
.ysb-v50 .ysb-header-quote{gap:2px;flex-direction:column;align-items:center;padding:0 8px;line-height:1.1;transform:translateY(1px)}
.ysb-v50 .ysb-header-quote .ysb-quote-label{font-size:9px;letter-spacing:.11em;color:#9dd8eb}
.ysb-v50 .ysb-header-quote strong{font-size:17px;color:#8bf8e0;line-height:1.2}
.ysb-v50 .ysb-header-quote small{display:flex;align-items:baseline;justify-content:center;gap:8px;font-size:12px;white-space:nowrap;color:#a6dceb;max-width:100%}
.ysb-v50 .ysb-header-quote small b{font-size:13px;font-weight:600;color:#c1fcff}
.ysb-v50 .ysb-header-quote small em{font-style:normal;font-size:9px;color:#ff8588;font-weight:600;letter-spacing:.01em}
.ysb-v50:has(.ysb-browser[data-device="mobile"]) .ysb-header-quote{transform:translateY(-3px)}
.ysb-v50 .ysb-gjs-tabs{display:flex;gap:4px;margin:8px 0 12px;border-bottom:1px solid #e0f5ff32;padding-bottom:9px}
.ysb-v50 .ysb-gjs-tabs button{border:1px solid #a5d3e74d;color:#d9edfa;background:transparent;padding:7px 10px;font-size:11px;cursor:pointer}
.ysb-v50 .ysb-gjs-tabs button.active{color:#49ddff;border-color:#38cdfa;box-shadow:inset 0 0 11px #129ce446}
.ysb-v50 .ysb-gjs-tools{min-height:40px}.ysb-v50 .ysb-gjs-tools[hidden]{display:none}
.ysb-v50 #ysbAdvancedTools .gjs-block{color:#e4f5ff;background:rgba(34,78,103,.26);border:1px solid #badfeb42;box-shadow:none;width:45%}
.ysb-v50 #ysbAdvancedTools .gjs-sm-sector{background:transparent!important;color:#e7f4fa!important}
.ysb-v50 #ysbAdvancedTools .gjs-sm-label,.ysb-v50 #ysbAdvancedTools .gjs-layer-name{color:#e1f2fd}
.ysb-v50 #ysbAdvancedTools{min-width:0;overflow:hidden}
/* Keep form entry as existing glass interface, with one new green action. */
.intake-page-panel .ys-gate-studio{background:rgba(34,180,123,.26)!important;border:1px solid rgba(120,255,183,.7)!important;color:#d8ffe7!important;box-shadow:0 0 16px rgba(48,234,140,.16)!important}
.intake-page-panel .ys-gate-studio:hover{background:rgba(25,203,132,.35)!important}
.intake-page-panel .intake-gate .ys-login-row{flex-wrap:wrap;gap:9px}
@media(max-width:1120px){.ysb-v50 .ysb-body{grid-template-columns:minmax(228px,29%) minmax(0,1fr)!important;gap:21px!important}.ysb-v50 .ysb-preview-head{grid-template-columns:minmax(165px,1fr) minmax(115px,.85fr) minmax(120px,1fr)!important}.ysb-v50 .ysb-header-quote strong{font-size:15px}.ysb-v50 .ysb-header-quote small{gap:4px}.ysb-v50 .ysb-header-quote small b{font-size:12px}}
@media(max-width:730px){.ysb-v50 .ysb-body{display:block!important}.ysb-v50 .ysb-preview-head{display:grid!important}.ysb-v50 .ysb-browser[data-device="mobile"]{width:min(300px,70%)!important;max-height:100%!important}.ysb-v50 .ysb-setting-body{padding:12px 19px 25px!important}}
/* Text and controls remain legible within the transparent glass settings sheet. */
.ysb-v50 .ysb-setting-body .ysb-muted,
.ysb-v50 .ysb-setting-body .ysb-footnote,
.ysb-v50 .ysb-setting-body .ysb-subheading{color:rgba(222,239,251,.91)!important;opacity:1!important}
.ysb-v50 .ysb-setting-body .ysb-btn{color:#e9faff!important;border-color:rgba(178,225,246,.42)!important;opacity:1!important}
.ysb-v50 .ysb-setting-body .ysb-btn.primary{color:#e3fdff!important;border-color:#60cfff!important}
.ysb-v50 .ysb-gjs-upload{display:block;margin:11px 0 17px!important;padding:11px!important;max-width:100%;color:#d9effb}

/* V53.1 entry visibility fix: keep both intake choices together and within the glass gate.
   Prior 520px absolute entry wrapped the green choice below the clipped gate. */
.intake-page-panel.gate-mode .intake-gate-entry{
  width:min(900px,100%)!important;
  max-width:100%!important;
}
.intake-page-panel.gate-mode .intake-gate .ys-login-row{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:9px!important;
}
.intake-page-panel.gate-mode .intake-gate-actions{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
  flex:0 0 auto!important;
  white-space:nowrap;
}
.intake-page-panel.gate-mode .intake-gate-actions .ys-go{
  display:inline-flex!important;
  justify-content:center;
  align-items:center;
  white-space:nowrap;
  visibility:visible!important;
  opacity:1!important;
}
@media(max-width:900px){
  .intake-page-panel.gate-mode:not(.expanded){height:calc(var(--banner-height) + 265px)!important}
  .intake-page-panel.gate-mode .intake-gate{height:115px!important;min-height:115px!important}
}
@media(max-width:420px){
  .intake-page-panel.gate-mode:not(.expanded){height:calc(var(--banner-height) + 300px)!important}
  .intake-page-panel.gate-mode .intake-gate-actions{gap:7px!important}
  .intake-page-panel.gate-mode .intake-gate-actions .ys-go{padding:0 9px!important;font-size:9px!important}
}
