/* EQUINOX INTELLIGENCE v5.2 — MOBILE OPERATIONS & LIVE WORKSPACE POLISH
   VISUAL-ONLY SAFE LAYER. No JS/API/Supabase/auth/workflow changes. */
:root{
  --eq52-gold:#e6b14f;
  --eq52-gold-soft:rgba(230,177,79,.10);
  --eq52-line:rgba(230,177,79,.17);
  --eq52-surface:rgba(12,15,19,.94);
  --eq52-surface2:rgba(17,21,27,.92);
  --eq52-text:#f5f7fa;
  --eq52-muted:#9da8b5;
}
body[data-eq-module]{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body[data-eq-module] .eq-shellbar{border-bottom-color:rgba(230,177,79,.16)!important}
body[data-eq-module] .eq-shellbar a.active{box-shadow:inset 0 -2px 0 rgba(230,177,79,.72)!important}
body[data-eq-module] h1,body[data-eq-module] h2,body[data-eq-module] h3{letter-spacing:-.025em}
body[data-eq-module] .muted,body[data-eq-module] small{color:var(--eq52-muted)}
body[data-eq-module] .card,body[data-eq-module] .panel,body[data-eq-module] .toolbar,body[data-eq-module] .table-card{border-color:rgba(230,177,79,.13)!important}
body[data-eq-module] table{font-variant-numeric:tabular-nums}
body[data-eq-module] th{letter-spacing:.045em;text-transform:uppercase;font-size:11px!important;color:#aeb7c2!important}
body[data-eq-module] td{vertical-align:middle}
body[data-eq-module] .badge,body[data-eq-module] [class*="status"]{font-weight:800;letter-spacing:.02em}
body[data-eq-module] button:focus-visible,body[data-eq-module] a:focus-visible{outline:2px solid rgba(230,177,79,.8)!important;outline-offset:2px!important}
/* Leads becomes a cleaner operations queue */
body[data-eq-module="leads"] .hero{position:relative;overflow:hidden}
body[data-eq-module="leads"] .hero:after{content:"";position:absolute;right:-90px;top:-110px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(230,177,79,.09),transparent 68%);pointer-events:none}
body[data-eq-module="leads"] .toolbar{position:sticky;top:70px;z-index:30;backdrop-filter:blur(14px);background:rgba(9,12,15,.90)!important}
body[data-eq-module="leads"] .grid{align-items:stretch}
body[data-eq-module="leads"] .card{position:relative;overflow:hidden}
body[data-eq-module="leads"] .card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:linear-gradient(180deg,rgba(230,177,79,.7),rgba(230,177,79,.08))}
/* Intake: stronger task-first visual hierarchy */
body[data-eq-module="intake"] .header{position:relative;overflow:hidden}
body[data-eq-module="intake"] form{border-color:rgba(230,177,79,.14)!important}
body[data-eq-module="intake"] label{font-weight:750!important;color:#c6ced8!important}
body[data-eq-module="intake"] input,body[data-eq-module="intake"] select,body[data-eq-module="intake"] textarea{background:rgba(5,8,11,.72)!important}
/* Review: keep decision workspace visually calm */
body[data-eq-module="review"] .toolbar{backdrop-filter:blur(14px)}
body[data-eq-module="review"] .card{border-left:2px solid rgba(230,177,79,.26)!important}
/* Company dashboard: make KPI band feel like an executive console */
body[data-eq-module="gnrg"] .stats{align-items:stretch}
body[data-eq-module="gnrg"] .stat{position:relative;overflow:hidden}
body[data-eq-module="gnrg"] .stat:after{content:"";position:absolute;right:-25px;bottom:-35px;width:90px;height:90px;border-radius:50%;background:radial-gradient(circle,rgba(230,177,79,.055),transparent 70%)}
body[data-eq-module="gnrg"] .stat strong{font-variant-numeric:tabular-nums;letter-spacing:-.04em}
body[data-eq-module="gnrg"] .table-card{overflow:hidden}
/* Users/performance/AI get the same premium surface language without logic changes */
body[data-eq-module="users"] .box,body[data-eq-module="performance"] .c,body[data-eq-module="performance"] .coach,body[data-eq-module="ai"] .chat{border-color:rgba(230,177,79,.14)!important;background:linear-gradient(150deg,rgba(15,19,24,.95),rgba(7,9,12,.97))!important;box-shadow:0 18px 48px rgba(0,0,0,.20)!important}
/* Tablet */
@media(max-width:900px){
  body[data-eq-module] .eq-shellbar{overflow-x:auto!important;overscroll-behavior-x:contain!important;scrollbar-width:none!important}
  body[data-eq-module] .eq-shellbar::-webkit-scrollbar{display:none!important}
  body[data-eq-module="gnrg"] .table-card,body[data-eq-module="gnrg"] .table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
}
/* Mobile: app-like, thumb-friendly, no desktop squeeze */
@media(max-width:700px){
  body[data-eq-module]{padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
  body[data-eq-module] .eq-shellbar{gap:4px!important;box-shadow:0 10px 28px rgba(0,0,0,.34)!important}
  body[data-eq-module] .eq-shellbar a{white-space:nowrap!important;font-size:12px!important;font-weight:800!important}
  body[data-eq-module] button,body[data-eq-module] .btn{min-height:44px!important}
  body[data-eq-module] input,body[data-eq-module] select{min-height:44px!important}
  body[data-eq-module] textarea{min-height:92px!important}
  body[data-eq-module="leads"] .wrap{width:calc(100% - 12px)!important;margin:0 auto!important}
  body[data-eq-module="leads"] .hero{padding:18px 16px!important;border-radius:0 0 16px 16px!important}
  body[data-eq-module="leads"] .hero h1{font-size:30px!important;line-height:1!important}
  body[data-eq-module="leads"] .toolbar{top:57px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;padding:9px!important;border-radius:13px!important}
  body[data-eq-module="leads"] .toolbar input{grid-column:1/-1!important}
  body[data-eq-module="leads"] .grid{grid-template-columns:1fr!important;gap:9px!important}
  body[data-eq-module="leads"] .card{border-radius:14px!important;padding:14px!important}
  body[data-eq-module="intake"] .wrap,body[data-eq-module="review"] .wrap{width:calc(100% - 10px)!important}
  body[data-eq-module="intake"] form,body[data-eq-module="review"] .card{border-radius:14px!important}
  body[data-eq-module="gnrg"] .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-eq-module="gnrg"] .stat{min-width:0!important}
  body[data-eq-module="gnrg"] .toolbar{position:sticky;top:57px;z-index:25;background:rgba(8,11,14,.92)!important;backdrop-filter:blur(14px)}
  body[data-eq-module="gnrg"] table{min-width:860px!important}
  body[data-eq-module="users"] .page,body[data-eq-module="performance"] .page,body[data-eq-module="ai"] .page{padding:12px!important}
  body[data-eq-module="performance"] .cards{gap:8px!important}
  body[data-eq-module="performance"] .c{padding:13px!important;border-radius:13px!important}
}
@media(max-width:430px){
  body[data-eq-module="gnrg"] .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-eq-module="gnrg"] .stat strong{font-size:21px!important}
  body[data-eq-module="performance"] .cards{grid-template-columns:1fr 1fr!important}
  body[data-eq-module="performance"] .months{grid-template-columns:1fr 1fr!important}
}
@media(prefers-reduced-motion:reduce){body[data-eq-module] *,body[data-eq-module] *:before,body[data-eq-module] *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
