/* FEBRY.OPS V303 — Owner identity + mobile fit & layout corrections.
   CSS-only stabilization. No business, API, payment, OAuth or demo changes. */
:root{--cl-carbon:#090D0B;--cl-forest:#142017;--cl-lime:#B6FF40;--cl-ivory:#F5F9F3}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:clip}
img,video,svg{max-width:100%}
:where(.cl-owner-intro,.cl-owner-feature,.cl-service-owner,.cl-ms-owner){box-sizing:border-box}

/* Owner identity is first-party content, not placeholder data. */
.cl-owner-intro{display:flex;gap:13px;align-items:center;width:max-content;max-width:100%;margin-top:22px;padding:12px 16px 12px 12px;border:1px solid rgba(182,255,64,.23);border-radius:17px;background:linear-gradient(120deg,#18271C,#0E1711)}
.cl-owner-intro img,.cl-service-owner img,.cl-ms-owner img{width:65px;height:65px;border-radius:13px;object-fit:cover;flex:0 0 auto;border:1px solid rgba(182,255,64,.25)}
.cl-owner-intro>div,.cl-service-owner>div,.cl-ms-owner>div{display:grid;gap:2px;min-width:0}
.cl-owner-label,.cl-service-owner small{font-size:9px;letter-spacing:.13em;font-weight:750;color:#F5F9F3}
.cl-owner-intro strong,.cl-service-owner strong,.cl-ms-owner strong{font-size:15px;letter-spacing:-.025em;color:#F5F9F3}
.cl-owner-intro>div>span:last-child,.cl-service-owner span,.cl-ms-owner small{font-size:11px;color:#B6FF40;line-height:1.4}
.cl-owner-section{padding-top:20px!important}
.cl-owner-feature{display:grid;grid-template-columns:205px minmax(0,1fr);gap:34px;align-items:center;background:linear-gradient(120deg,#17251A,#111C14);border:1px solid rgba(182,255,64,.18);padding:28px;border-radius:22px}
.cl-owner-photo{width:205px;height:205px;overflow:hidden;border-radius:18px;border:1px solid rgba(182,255,64,.20)}
.cl-owner-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.cl-owner-feature h2{font-size:clamp(26px,3vw,40px);line-height:1.15;letter-spacing:-.04em;margin:7px 0 13px}
.cl-owner-feature-copy p{margin:0 0 12px;color:#F5F9F3;font-size:13px;line-height:1.7}
.cl-owner-feature-copy p strong{color:#F5F9F3;letter-spacing:.02em}
.cl-owner-feature-copy p span{color:#B6FF40}
.cl-owner-feature-copy>.cl-button{margin-top:6px}
.cl-service-owner{display:flex;grid-column:1;align-items:center;gap:12px;width:max-content;max-width:100%;padding:10px 15px 10px 10px;border:1px solid rgba(182,255,64,.2);border-radius:15px;background:#142017}
.cl-service-owner img{width:54px;height:54px;border-radius:11px}
.cl-service-owner strong{font-size:13px}
.cl-ms-owner{display:flex;align-items:center;gap:11px;width:max-content;max-width:100%;margin:12px 0 18px;padding:8px 12px 8px 8px;border:1px solid rgba(182,255,64,.23);background:#152319;border-radius:14px}
.cl-ms-owner img{width:50px;height:50px;border-radius:10px}
.cl-ms-owner strong{font-size:12px}

/* Public header/mobile: no conflicting old menu bars. */
@media(max-width:900px){
  html,body{width:100%;min-width:0;max-width:100%}
  .cl-page :where(main,section,article,div,form,header,footer,nav){min-width:0}
  .cl-page :where(input:not([type="radio"]):not([type="checkbox"]),select,textarea){min-width:0;max-width:100%;box-sizing:border-box}
  .cl-page :where(button,a){touch-action:manipulation}
  .cl-page :where(.cl-container,.cl-hero,.cl-product,.cl-feature,.cl-work,.cl-cta,.cl-showcase){min-width:0}
  .cl-nav{height:64px!important;min-height:64px;gap:9px;padding-inline:15px!important}
  .cl-brand{font-size:17px!important;letter-spacing:-.05em}
  .cl-brand-icon{width:32px;height:32px;font-size:17px}
  .cl-nav-links{display:none!important}
  .cl-mobile-menu{display:block!important;margin-left:auto;flex:0 0 auto}
  .cl-mobile-menu>summary{font-size:12px;padding:9px 11px}
  .cl-mobile-menu>div{width:min(255px,calc(100vw - 30px));right:0;z-index:3500}
  .cl-container{width:calc(100% - 32px)!important;max-width:100%}
  .cl-hero{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:24px!important;padding:46px 0 52px!important}
  .cl-hero h1{font-size:clamp(38px,10.3vw,56px)!important;line-height:1.05!important;margin:12px 0 15px!important;letter-spacing:-.065em}
  .cl-hero p{font-size:14px!important;line-height:1.62!important}
  .cl-actions{gap:10px;margin-top:22px}
  .cl-hero .cl-button{min-height:45px}
  .cl-hero-note{font-size:11px;margin-top:15px}
  .cl-showcase{min-height:0!important;padding:15px!important;border-radius:21px}
  .cl-show-window{padding:12px}
  .cl-show-footer{gap:8px;align-items:flex-start;font-size:10px}
  .cl-show-footer b{white-space:nowrap;font-size:10px}
  .cl-show-result div{font-size:9px;padding:8px 4px}
  .cl-show-result b{font-size:17px}
  .cl-section{padding:52px 0!important}
  .cl-section h2{font-size:clamp(27px,7.5vw,37px)!important;line-height:1.16}
  .cl-section-head{display:block;margin-bottom:20px}
  .cl-section-head>.cl-button{margin-top:15px}
  .cl-products,.cl-grid-3,.cl-work{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
  .cl-product{padding:18px;border-radius:18px}
  .cl-product-media{min-height:185px}
  .cl-product-media img{height:188px}
  .cl-product h3{font-size:25px}
  .cl-feature{padding:19px}
  .cl-cta{display:grid;grid-template-columns:1fr;gap:12px;padding:21px!important;border-radius:19px}
  .cl-cta .cl-actions{margin-top:3px}
  .cl-footer{gap:16px;padding:32px 0 90px!important}
  .cl-footer>div:last-child{display:flex;flex-wrap:wrap;gap:10px 15px}
  .cl-footer>div:last-child>a{margin:0;font-size:12px}
  .cl-owner-section{padding-top:12px!important}
  .cl-owner-feature{grid-template-columns:90px minmax(0,1fr);gap:13px;padding:15px;border-radius:18px;align-items:start}
  .cl-owner-photo{width:90px;height:112px;border-radius:12px}
  .cl-owner-feature h2{font-size:clamp(21px,5.8vw,27px)!important;line-height:1.16;margin:7px 0 9px}
  .cl-owner-feature-copy p{font-size:12px;line-height:1.55}
  .cl-owner-feature-copy .cl-button{font-size:11px;min-height:40px;padding:10px 12px}

  /* Website Services: mobile hero/action layout and full-width forms. */
  body.cl-services .hero{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:15px!important;padding:40px 0 38px!important}
  body.cl-services .hero h1{font-size:clamp(36px,10vw,56px)!important;letter-spacing:-.06em!important;line-height:1.12!important}
  body.cl-services .hero .intro{font-size:14px!important;line-height:1.66!important}
  body.cl-services .hero .buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.cl-services .hero .buttons>:last-child:nth-child(odd){grid-column:1/-1}
  body.cl-services .hero .buttons a{width:100%;min-width:0;text-align:center;justify-content:center;line-height:1.25;min-height:43px;padding:11px 9px;font-size:12px}
  body.cl-services .hero>.tiny{font-size:11px;line-height:1.5}
  body.cl-services .cl-service-art{margin:5px 0 0!important;order:5;min-width:0}
  body.cl-services .cl-service-art img{height:195px}
  body.cl-services .cl-service-owner{order:4;margin:4px 0 2px}
  body.cl-services :where(.cards,.split,.two,.steps,.portfolio,.row,.form-grid,.grid){max-width:100%;min-width:0}
  body.cl-services .split,body.cl-services .two{grid-template-columns:minmax(0,1fr)!important}
  body.cl-services :where(.panel,.card,.step){min-width:0;max-width:100%;padding:18px!important}
  body.cl-services :where(.button,.action){max-width:100%;white-space:normal}
  body.cl-services #tracking{padding:17px}
  body.cl-services .qr-payment{grid-template-columns:minmax(0,1fr)!important}

  /* MS-Chat: keep login usable and do not overlay it with in-app navigation. */
  body.cl-ms:has(#loginView:not(.hidden)) .ms-mobile-nav,
  body.cl-ms:has(#loginView:not(.hidden)) .ms-mobile-shell{display:none!important}
  body.cl-ms .login-wrap:not(.hidden){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:22px!important;padding:26px 15px 50px!important}
  body.cl-ms .login-hero-copy,body.cl-ms .login-card{width:100%!important;min-width:0!important;max-width:100%!important}
  body.cl-ms .login-hero-copy h1{font-size:clamp(39px,11vw,53px)!important;line-height:1.1!important;margin:10px 0}
  body.cl-ms .login-hero-copy>p{font-size:13px!important;line-height:1.64!important;margin:8px 0 13px!important}
  body.cl-ms .ms-buy-login-link{display:flex!important;flex-direction:column!important;gap:5px!important}
  body.cl-ms .ms-buy-login-link a,body.cl-ms .ms-buy-login-link span{display:block!important;font-size:12px!important;line-height:1.5!important}
  body.cl-ms .login-hero-points{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.cl-ms .login-hero-points>div{padding:11px!important;min-width:0}
  body.cl-ms .login-hero-points b{font-size:11px!important}
  body.cl-ms .login-hero-points span{font-size:10px!important;line-height:1.45!important}
  body.cl-ms .login-card{border-radius:19px!important;padding:20px 16px!important}
  body.cl-ms .login-card h1{font-size:30px}
  body.cl-ms .login-card .input{width:100%;min-width:0}
  body.cl-ms :where(.ms-buy-panel,.ms-buy-card,.ms-public-info,.ms-tier-card,.ms-mobile-pane,.mobile-card,.account-usage){min-width:0;max-width:100%}
  body.cl-ms #msOrderSection :where(.ms-buy-panel,.ms-buy-card,.ms-buy-form,.ms-buy-grid,.ms-buy-field){min-width:0;max-width:100%}
  body.cl-ms #msOrderSection :where(label,select,input,textarea){max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  body.cl-ms #msOrderSection .ms-plan-table,body.cl-ms #msOrderSection .ms-plan-matrix{min-width:0}
  body.cl-ms .ms-plan-compare-scroll,body.cl-ms .ms-plan-matrix-scroll,body.cl-ms .table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.cl-ms .app,body.cl-ms #chatView{min-width:0;max-width:100vw}
  body.cl-ms #sdScreen :where(.sd-shell,.sd-compose,.sd-card,.sd-step,.sd-side,.sd-top){min-width:0;max-width:100%}
  body.cl-ms #sdScreen :where(input,select,textarea){box-sizing:border-box;width:100%;max-width:100%}

  /* Admin: keep tabs usable without forcing entire page horizontally. */
  body.cl-admin .topbar{gap:10px;flex-wrap:wrap;padding:9px 12px!important}
  body.cl-admin .topbar .brand{font-size:12px}
  body.cl-admin .topbar>.brand{min-width:0;max-width:100%}
  body.cl-admin .admin-shell{width:calc(100% - 24px)!important;padding:14px 0 58px!important}
  body.cl-admin .oc-main-nav{display:flex!important;flex-wrap:nowrap;gap:6px;padding:5px;overflow-x:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  body.cl-admin .oc-main-nav .oc-main-tab{flex:0 0 auto!important;min-width:110px;min-height:39px;font-size:11px!important;padding:8px 12px!important}
  body.cl-admin .admin-grid,body.cl-admin .admin-grid-wide,body.cl-admin .free-event-dates,body.cl-admin .row2{grid-template-columns:minmax(0,1fr)!important}
  body.cl-admin .admin-top{align-items:flex-start;gap:12px}
  body.cl-admin .admin-top h1{font-size:27px!important;line-height:1.2}
  body.cl-admin .admin-top p{font-size:12px!important;line-height:1.5}
  body.cl-admin :where(.card,.free-event-card,.oc-card,.oc-section,.demo-card){padding:14px!important;max-width:100%;min-width:0}
  body.cl-admin :where(.table-wrap,.subscription-table-wrap){overflow-x:auto;max-width:100%}
  body.cl-admin .free-event-foot{display:flex;gap:9px}
  body.cl-admin :where(.input,.select,input,textarea){max-width:100%;min-width:0}

  /* Supporting public pages: constrain large decorative elements to the viewport. */
  body.cl-public :where(.hero,.shell,.wrap,.container,.cards,.grid,.pricing-grid,.faq-grid){min-width:0;max-width:100%}
  body.cl-public :where(.flow,.flow-steps){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.cl-public :where(.filters,.filter-list){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.cl-public :where(.flow-step,.filter){flex-shrink:0}
  body.cl-public .orbit,body.cl-public .flare{pointer-events:none}
}
@media(max-width:390px){
  .cl-owner-intro{padding:10px;gap:9px}
  .cl-owner-intro img{width:53px;height:53px}
  .cl-owner-intro strong{font-size:13px}
  .cl-owner-intro>div>span:last-child{font-size:10px}
  .cl-owner-feature{grid-template-columns:70px minmax(0,1fr);gap:10px;padding:11px}
  .cl-owner-photo{width:70px;height:98px}
  .cl-owner-feature h2{font-size:21px!important}
  body.cl-ms .login-hero-points{grid-template-columns:minmax(0,1fr)!important}
  body.cl-services .hero .buttons{grid-template-columns:minmax(0,1fr)}
  body.cl-services .hero .buttons>:last-child:nth-child(odd){grid-column:auto}
}
@media(min-width:901px){.cl-owner-feature{min-height:260px}}

/* Feature explanation stays available but does not bury the login on mobile. */
.cl-ms-benefits{display:none}
@media(max-width:900px){
 body.cl-ms .login-hero-copy>.login-hero-points{display:none!important}
 body.cl-ms .cl-ms-benefits{order:3;display:block;width:100%;max-width:100%;border:1px solid rgba(182,255,64,.18);background:#142017;border-radius:14px;padding:12px 14px;margin-top:0}
 body.cl-ms .cl-ms-benefits summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:750;list-style:none;color:#F5F9F3}
 body.cl-ms .cl-ms-benefits summary::-webkit-details-marker{display:none}
 body.cl-ms .cl-ms-benefits summary span{color:#B6FF40}
 body.cl-ms .cl-ms-benefits .login-hero-points{display:grid!important;margin-top:12px!important}
}

/* V320 regression hotfix: the member workspace must NEVER display the login form.
   The V303 mobile override used `display:flex!important` on `.login-wrap`
   even when the application had added `.hidden` following successful login.
   Keep this protection across all breakpoints and all mobile tabs. */
body.cl-ms #loginView.hidden{display:none!important;visibility:hidden!important}
