/* FEBRY.OPS V317 — universal controls + restrained scale, no global zoom */
:root{--febry-ui-scale:1}
.febry-v317-trigger{position:relative!important;flex-shrink:0!important}
.febry-v317-fallbackbar{display:flex;align-items:center;justify-content:flex-end;padding:8px 15px;background:#090D0B;border-bottom:1px solid #2D442F}
.febry-v317-language-modal{position:fixed;inset:0;z-index:2147483200;background:rgba(0,0,0,.72);display:none;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(7px)}
.febry-v317-language-modal.open{display:flex}
.febry-v317-language-card{width:min(350px,100%);padding:20px;border:1px solid #3C5B37;border-radius:17px;background:#142017;color:#F5F9F3;font:500 13px/1.5 Inter,system-ui,sans-serif;box-shadow:0 20px 80px #0009}
.febry-v317-language-title{display:flex;align-items:center;justify-content:space-between;font-weight:800;font-size:16px;margin-bottom:18px}
.febry-v317-close{border:1px solid #39533B;border-radius:8px;color:#F5F9F3;background:#090D0B;width:30px;height:30px;cursor:pointer;font-size:20px}
.febry-v317-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.febry-v317-options button{border:1px solid #38523A;border-radius:10px;min-height:44px;cursor:pointer;background:#090D0B;color:#F5F9F3;font-size:13px;font-weight:700}
.febry-v317-options button.active{border-color:#B6FF40;background:rgba(182,255,64,.13);color:#B6FF40}
.febry-v317-language-card p{color:#F5F9F3;font-size:11px;line-height:1.6;margin:14px 0 0}
/* All pages: slightly tighter spacing and typography while preserving touch targets. */
body.cl-home .cl-hero h1{font-size:clamp(38px,4.4vw,61px)!important}
body.cl-home .cl-hero p{font-size:clamp(13px,1.3vw,16px)!important}
body.cl-home .cl-section{padding-top:66px;padding-bottom:66px}
body.cl-home .cl-section h2{font-size:clamp(27px,2.9vw,41px)!important}
body.cl-home .cl-product{padding:19px!important}
body.cl-home .cl-product h3{font-size:clamp(21px,2vw,28px)!important}
body.cl-services .hero h1{font-size:clamp(37px,4.5vw,57px)!important}
body.cl-services .hero .intro{font-size:14px!important}
body.cl-services :where(.service-card,.ws-card,.ws-feature-card){padding:clamp(15px,2vw,22px)}
body.cl-services :where(h2){letter-spacing:-.035em}
body.cl-portfolio :where(h1){font-size:clamp(38px,4.5vw,62px)!important}
body.cl-pricing :where(h1){font-size:clamp(38px,4.5vw,62px)!important}
body.cl-pricing :where(h2){letter-spacing:-.04em}
body.cl-public:not(.cl-portfolio):not(.cl-pricing) :where(h1){font-size:clamp(37px,5vw,62px)!important}
body.cl-public :where(.lead){font-size:clamp(14px,1.4vw,17px)!important}
body.cl-public :where(.card){padding:clamp(15px,2vw,23px)}
body.cl-public :where(.card h3){font-size:clamp(19px,2vw,25px)!important}
body.cl-ms .chat-head{padding-top:12px!important;padding-bottom:12px!important}
body.cl-ms .chat-title h1{font-size:19px!important}
body.cl-ms :where(.bubble){font-size:12.4px!important}
body.cl-ms #sdScreen :where(h2){font-size:clamp(21px,2.1vw,29px)}
body.cl-admin #adminView .admin-top h1{font-size:clamp(21px,2vw,27px)!important}
body.cl-admin #adminView .oc-title-row h2{font-size:clamp(18px,2vw,23px)!important}
body.cl-admin #adminView :where(.card h2){font-size:16px!important}
body.cl-admin #adminView .card{padding:12px!important}
body.cl-admin #adminView .oc-main-tab{min-height:34px!important}
/* Feature catalog standalone */
body:has(#featureGrid) .hero h1{font-size:clamp(35px,4.4vw,62px)!important}
body:has(#featureGrid) .section-heading h2{font-size:clamp(24px,3vw,40px)!important}
@media(max-width:760px){
  body.cl-home .cl-hero h1{font-size:clamp(36px,10vw,48px)!important}
  body.cl-home .cl-section{padding-top:52px;padding-bottom:52px}
  body.cl-public:not(.cl-portfolio):not(.cl-pricing) :where(h1){font-size:clamp(34px,8vw,48px)!important}
  body.cl-admin #adminView .btn,body.cl-ms .btn{min-height:40px}
  .febry-v317-trigger{min-height:32px;min-width:32px}
}
/* Catalog mobile: older .febry-font-host display override must not resurrect
   desktop navigation and overflow the 390px header. Tools live in the drawer. */
@media(max-width:900px){
  body:has(#featureGrid) .site-header .nav .navlinks.febry-font-host{display:none!important}
  body:has(#featureGrid) .site-header .nav > .navcta{display:none!important}
  body:has(#featureGrid) .site-header .nav > .menu-toggle:not(.febry-global-menu-btn){display:none!important}
  body:has(#featureGrid) .site-header .nav{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;max-width:calc(100% - 24px)!important}
  body:has(#featureGrid) .site-header .nav > .brand{margin-right:auto!important;flex:0 1 auto!important;min-width:0!important}
}
/* Small legacy OPTIMIZE mobile 8px overhang fix. */
@media(max-width:760px){
  body:has(.brand-wrap-opt){width:100%;max-width:100%;overflow-x:clip}
  body:has(.brand-wrap-opt) :is(.topbar,.topbar-inner,main,.public-view,.hero-shell){max-width:100%}
}
