/* FEBRY.OPS V316 — admin-only compact layout; no zoom, no API/logic changes */
body.cl-admin{font-size:13px;line-height:1.48}
body.cl-admin *,body.cl-admin *::before,body.cl-admin *::after{box-sizing:border-box}
body.cl-admin .topbar{min-height:54px!important;height:54px!important;padding:7px 18px!important;gap:12px}
body.cl-admin .topbar .brand{gap:9px;font-size:13px;letter-spacing:.045em}
body.cl-admin .topbar .brand-mark{width:29px;height:29px;border-radius:8px}
body.cl-admin .topbar .brand small{font-size:9px;letter-spacing:.11em}
body.cl-admin .topbar .btn{min-height:35px;padding:7px 12px!important;font-size:12px}
body.cl-admin #adminView.admin-shell{width:min(1280px,calc(100% - 32px))!important;max-width:1280px!important;padding:17px 0 48px!important}
body.cl-admin #adminView .oc-main-nav{gap:6px!important;padding:6px!important;margin:0 0 16px!important;border-radius:12px}
body.cl-admin #adminView .oc-main-tab{flex:1 1 136px!important;min-width:0;min-height:35px!important;padding:8px 10px!important;font-size:11px!important;line-height:1.3;border-radius:8px}
body.cl-admin #adminView .oc-count{font-size:10px;padding:1px 5px}
body.cl-admin #adminView .admin-top{margin:0 0 12px;align-items:center}
body.cl-admin #adminView .admin-top h1{font-size:clamp(22px,2.05vw,29px)!important;line-height:1.15;letter-spacing:-.035em;margin:0 0 6px}
body.cl-admin #adminView .admin-top p{font-size:11px!important;line-height:1.55}
body.cl-admin #adminView .admin-grid-wide{grid-template-columns:minmax(0,330px) minmax(0,1fr)!important;gap:12px}
body.cl-admin #adminView .card{padding:14px!important;border-radius:13px!important;min-width:0}
body.cl-admin #adminView .card h2{font-size:17px!important;margin:0 0 10px!important;line-height:1.3}
body.cl-admin #adminView .free-event-card{margin:12px 0 15px!important;padding:14px!important;border-radius:14px!important}
body.cl-admin #adminView .free-event-card h2{font-size:16px!important;margin:0 0 4px!important}
body.cl-admin #adminView .free-event-card p{font-size:11px!important;line-height:1.5;margin-bottom:9px}
body.cl-admin #adminView .free-event-dates{margin:10px 0;gap:10px}
body.cl-admin #adminView .free-event-dates label{font-size:11px!important;gap:4px}
body.cl-admin #adminView .free-event-dates input{font-size:12px!important;padding:8px 10px!important;min-height:36px;border-radius:9px}
body.cl-admin #adminView .free-event-toggle input{width:42px;height:24px}
body.cl-admin #adminView .free-event-toggle input::after{width:16px;height:16px}
body.cl-admin #adminView .free-event-toggle input:checked::after{transform:translateX(18px)}
body.cl-admin #adminView .stat-grid{gap:9px!important;margin-bottom:12px!important}
body.cl-admin #adminView .stat{padding:10px 12px!important;border-radius:11px!important}
body.cl-admin #adminView .stat strong{font-size:19px!important;line-height:1.2}
body.cl-admin #adminView .stat span{font-size:10px!important}
body.cl-admin #adminView .notice{padding:9px 10px!important;font-size:11px!important;line-height:1.5;margin-bottom:10px}
body.cl-admin #adminView .field{gap:5px;margin-bottom:9px}
body.cl-admin #adminView .field label,body.cl-admin #adminView .client-filter-field label{font-size:10px!important}
body.cl-admin #adminView .input,body.cl-admin #adminView .select,body.cl-admin #adminView .textarea{font-size:12px!important;padding:8px 10px!important;min-height:36px;border-radius:9px}
body.cl-admin #adminView .btn{font-size:11px!important;min-height:35px;padding:8px 12px!important;border-radius:9px}
body.cl-admin #adminView .btn.mini{font-size:10px!important;min-height:30px;padding:6px 9px!important}
body.cl-admin #adminView .row2{gap:8px}
body.cl-admin #adminView .client-search-toolbar{padding:10px!important}
body.cl-admin #adminView .client-card-list{gap:9px}
body.cl-admin #adminView .oc-section{padding-bottom:22px!important}
body.cl-admin #adminView .oc-title-row{gap:10px;margin:7px 0 12px}
body.cl-admin #adminView .oc-title-row h2{font-size:clamp(19px,2.15vw,25px)!important;line-height:1.2}
body.cl-admin #adminView .oc-stat{padding:10px!important}
body.cl-admin #adminView .oc-stat strong{font-size:17px!important}
body.cl-admin #adminView .oc-item{padding:11px!important;gap:8px;border-radius:12px!important}
body.cl-admin #adminView .oc-detail{padding:13px!important;margin-top:12px!important}
body.cl-admin #adminView .oc-detail-bill{font-size:21px!important}
body.cl-admin #adminView .oc-detail-grid>div{padding:8px!important}
body.cl-admin #adminView .oc-tools{gap:8px!important;margin-bottom:11px!important}
body.cl-admin #adminView :is(.demo-help,.demo-row,.demo-credentials){padding:11px!important;border-radius:12px!important}
body.cl-admin #adminView .ai-provider-panel{max-width:none!important;padding:15px!important;margin:12px 0!important}
body.cl-admin #adminView .ai-provider-heading h2{font-size:20px!important}
body.cl-admin #adminView .ai-flow-choices{gap:9px}
body.cl-admin #adminView .ai-flow-choice{padding:11px!important;gap:8px;border-radius:10px!important}
body.cl-admin #adminView .ai-flow-choice b{font-size:13px!important;margin-bottom:4px}
body.cl-admin #adminView .ai-flow-choice small{font-size:11px!important}
body.cl-admin #adminView .ai-flow-sequence{padding:10px!important;margin:8px 0 12px!important}
body.cl-admin #adminView .ai-speedtest{padding:14px!important;margin:16px 0 8px!important}
body.cl-admin #adminView .ai-speed-model{padding:10px!important}
body.cl-admin #adminView .ai-speed-model strong{font-size:17px!important}
body.cl-admin #adminView .ai-speed-head h3{font-size:18px!important}
body.cl-admin #adminView .ai-speed-actions{margin:12px 0!important}
body.cl-admin #adminView .ai-speed-actions select{height:36px!important}
/* Maintain genuinely accessible touch targets on phones, avoid horizontal overflow. */
@media(max-width:960px){
  body.cl-admin #adminView.admin-shell{width:calc(100% - 24px)!important;padding-top:12px!important}
  body.cl-admin #adminView .admin-grid-wide{grid-template-columns:1fr!important}
  body.cl-admin #adminView .oc-main-nav{gap:5px!important}
  body.cl-admin #adminView .oc-main-tab{flex:1 1 calc(33.333% - 6px)!important;min-height:39px!important}
  body.cl-admin #adminView .input,body.cl-admin #adminView .select,body.cl-admin #adminView .textarea{min-height:41px}
  body.cl-admin #adminView .btn{min-height:39px}
}
@media(max-width:540px){
  body.cl-admin .topbar{padding:7px 10px!important;min-height:56px!important;height:56px!important}
  body.cl-admin #adminView.admin-shell{width:calc(100% - 18px)!important}
  body.cl-admin #adminView .oc-main-tab{flex:1 1 calc(50% - 6px)!important;padding:8px 5px!important;font-size:10px!important}
  body.cl-admin #adminView .admin-top{align-items:flex-start;flex-wrap:wrap}
  body.cl-admin #adminView .admin-top h1{font-size:23px!important}
  body.cl-admin #adminView .free-event-dates{grid-template-columns:1fr}
  body.cl-admin #adminView .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.cl-admin #adminView .oc-tools{flex-direction:column;align-items:stretch}
  body.cl-admin #adminView .oc-tools .select{width:100%}
  body.cl-admin #adminView .ai-flow-choices{grid-template-columns:1fr}
  body.cl-admin #adminView .ai-speed-models{grid-template-columns:1fr}
  body.cl-admin #adminView .ai-speed-actions button{min-height:42px}
}

/* V316 responsive navigation readability and symmetric status grid */
@media(max-width:540px){
  body.cl-admin #adminView .oc-main-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body.cl-admin #adminView .oc-main-tab{flex:none!important;width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;font-size:10.5px!important;min-height:39px!important;padding:8px 6px!important}
  body.cl-admin #adminView .stat-grid .stat:last-child{grid-column:auto!important}
}
@media(max-width:359px){body.cl-admin #adminView .oc-main-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
