/* Production responsive closure shared by LAM OS and VISAR.
   This file only changes composition: it does not hide modules or alter routes. */
*,*::before,*::after{box-sizing:border-box}
html,body{max-width:100%;margin:0}
img,svg,canvas,video{max-width:100%}
.shell,.visar-app,.main,.hub-shell,.lam-command-workspace,.module-groups,.module-grid,.command-grid{min-width:0;max-width:100%}
.module-card,.module-group,.hero,.project-console,.visar-intro{min-width:0}
.module-card h3,.module-card p,.module-foot,.project-console,.lam-os-purpose{overflow-wrap:anywhere}

/* LAM desktop / installed-app command centre. The purpose block, all module
   links and the complete territorial animation remain visible in one view. */
@media (min-width:1180px) and (max-height:900px){
  body>.shell{width:calc(100% - 18px)!important;height:calc(100dvh - 22px)!important;min-height:0!important;margin:0 auto!important;padding:6px 0 8px!important;grid-template-rows:76px minmax(0,1fr) 12px!important;gap:6px!important}
  body>.shell>.topbar{height:76px!important;min-height:0!important;margin:0!important;padding:0 2px!important;align-items:center!important}
  body>.shell>.topbar .brand{min-width:0!important;gap:10px!important}
  body>.shell>.topbar .brand img{width:56px!important;height:56px!important}
  body>.shell>.topbar .brand h1{font-size:42px!important;line-height:.9!important;margin:0!important}
  body>.shell>.topbar .brand p{font-size:13px!important;line-height:1.05!important;margin:5px 0 0!important;max-width:430px!important}
  body>.shell>.topbar .top-meta{gap:6px!important;align-content:center!important}
  body>.shell>.topbar .pill{min-height:31px!important;padding:6px 10px!important;font-size:11px!important;white-space:nowrap!important}
  .lam-command-workspace{height:calc(100dvh - 124px)!important;min-height:0!important;grid-template-columns:minmax(0,2.18fr) minmax(350px,1fr)!important;gap:9px!important;align-items:stretch!important}
  .lam-command-workspace>*,.lam-twin-deck{min-height:0!important;height:100%!important}
  .lam-command-workspace .modules-title{height:30px!important;min-height:0!important;margin:0 0 5px!important;align-items:center!important}
  .lam-command-workspace .modules-title h2{font-size:20px!important;line-height:1!important;margin:0!important}
  .lam-command-workspace .modules-title p{font-size:10px!important;line-height:1!important;margin:0!important}
  .lam-command-workspace .lam-os-purpose{height:88px!important;min-height:0!important;margin:0 0 6px!important;padding:10px 12px!important;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr)!important;gap:12px!important;align-items:center!important}
  .lam-command-workspace .lam-os-purpose-copy p{display:none!important}
  .lam-command-workspace .lam-os-purpose h3{font-size:18px!important;line-height:1.08!important;margin:3px 0 0!important}
  .lam-command-workspace .lam-os-purpose-flow{gap:7px!important}
  .lam-command-workspace .lam-os-purpose-flow>div{min-height:52px!important;padding:7px 9px!important}
  .lam-command-workspace .lam-os-purpose-flow strong{font-size:13px!important;line-height:1!important}
  .lam-command-workspace .lam-os-purpose-flow small{font-size:9px!important;line-height:1.15!important}
  .lam-command-workspace .module-groups{height:calc(100% - 129px)!important;min-height:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:7px!important;margin:0!important}
  .lam-command-workspace .module-group{height:100%!important;min-height:0!important;padding:7px!important;grid-template-rows:24px minmax(0,1fr)!important;gap:5px!important}
  .lam-command-workspace .module-group-title{min-height:0!important;height:24px!important}
  .lam-command-workspace .module-group-title span{font-size:11px!important}
  .lam-command-workspace .module-group-title small{font-size:8px!important}
  .lam-command-workspace .module-group-grid{height:100%!important;min-height:0!important;grid-auto-rows:minmax(0,1fr)!important;gap:5px!important}
  .lam-command-workspace .module-card{height:auto!important;min-height:0!important;padding:6px 7px!important;border-radius:12px!important;gap:3px!important}
  .lam-command-workspace .module-card p{display:none!important}
  .lam-command-workspace .module-head{gap:6px!important;align-items:center!important}
  .lam-command-workspace .module-icon{width:30px!important;height:30px!important;font-size:11px!important}
  .lam-command-workspace .module-card h3{font-size:13px!important;line-height:1.02!important;margin:0!important}
  .lam-command-workspace .module-foot{font-size:8px!important;line-height:1!important;margin-top:3px!important}
  .lam-command-workspace .module-foot i{font-size:12px!important}
  .lam-twin-deck .hero{height:100%!important;min-height:0!important;grid-template-rows:minmax(0,1.55fr) minmax(155px,.9fr)!important;gap:7px!important;padding:8px!important}
  .lam-twin-deck .urban-graphic,.lam-twin-deck .hero-copy{min-height:0!important;height:100%!important}
  .lam-twin-deck .green-twin-launch{min-height:0!important;padding:9px!important}
  .lam-twin-deck .green-twin-description,.lam-twin-deck .green-twin-summary{display:none!important}
  .lam-twin-deck .green-twin-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  .lam-twin-deck .green-twin-actions>*{min-height:30px!important;padding:5px!important;font-size:9px!important}
  body>.shell>.footer{height:12px!important;min-height:0!important;margin:0!important;font-size:8px!important;line-height:1!important}
}

/* VISAR desktop: the animated satellite, territorial scene, active-project
   console and every operational centre share one non-scrolling command view. */
@media (min-width:1180px) and (max-height:900px){
  .visar-app{height:calc(100dvh - 22px)!important;min-height:0!important;grid-template-rows:66px minmax(0,1fr) 14px!important;gap:4px!important;padding:0 10px!important}
  .visar-app>.topbar{height:66px!important;min-height:0!important;padding:6px 0!important}
  .visar-app>.topbar .brand img{width:42px!important;height:42px!important}
  .visar-app>.topbar .brand h1{font-size:25px!important;line-height:1!important}
  .visar-app>.topbar .brand p{font-size:9px!important;line-height:1!important}
  .visar-app>.topbar .context{gap:5px!important}
  .visar-app>.topbar .context>*{min-height:39px!important;padding:6px 9px!important}
  .visar-app>.topbar .top-actions{gap:5px!important}
  .visar-app>.topbar .button{min-height:34px!important;padding:7px 10px!important;font-size:10px!important}
  .visar-app>.main{height:auto!important;min-height:0!important;padding:4px 0!important}
  .visar-app .hub-shell{height:100%!important;min-height:0!important;grid-template-rows:92px minmax(245px,1fr) 28px 172px!important;gap:6px!important;padding:0!important}
  .visar-app .visar-intro{height:92px!important;min-height:0!important;padding:9px 18px!important;grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr)!important;gap:18px!important;align-items:center!important}
  .visar-app .visar-intro-copy{height:auto!important;min-height:0!important;align-self:center!important}
  .visar-app .visar-intro-copy .eyebrow{font-size:9px!important;margin-bottom:3px!important}
  .visar-app .visar-intro-copy h1{font-size:22px!important;line-height:1.02!important;margin:0 0 4px!important;max-width:none!important}
  .visar-app .visar-intro-copy p{font-size:10px!important;line-height:1.1!important;margin:0!important}
  .visar-app .visar-live{font-size:8px!important;margin-top:5px!important}
  .visar-app .visar-intro-visual,.visar-app .visar-satellite-stage{height:70px!important;min-height:0!important}
  .visar-app .command-grid{height:100%!important;min-height:0!important;grid-template-columns:minmax(0,3fr) minmax(285px,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:7px!important}
  .visar-app .command-hero,.visar-app .project-console{height:100%!important;min-height:0!important}
  .visar-app .command-hero{grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr)!important;gap:8px!important;padding:11px!important}
  .visar-app .command-hero .hero-copy h1{font-size:24px!important;line-height:1.02!important;margin:3px 0 5px!important}
  .visar-app .command-hero .hero-copy p{font-size:10px!important;line-height:1.25!important;margin:0 0 7px!important}
  .visar-app .hero-actions .button{min-height:31px!important;padding:6px 9px!important;font-size:9px!important}
  .visar-app .telemetry-grid{gap:4px!important}
  .visar-app .telemetry{min-height:39px!important;padding:5px 7px!important}
  .visar-app .telemetry strong{font-size:14px!important}
  .visar-app .telemetry span{font-size:7px!important}
  .visar-app .territory-graphic{height:100%!important;min-height:0!important}
  .visar-app .project-console{padding:11px!important;gap:6px!important}
  .visar-app .project-console .project-summary{font-size:10px!important;line-height:1.2!important;margin:0!important}
  .visar-app .project-matrix{gap:5px!important}
  .visar-app .project-matrix>div{min-height:39px!important;padding:6px 7px!important}
  .visar-app .project-matrix span{font-size:7px!important}
  .visar-app .project-matrix strong{font-size:10px!important;line-height:1.05!important}
  .visar-app .console-sources{gap:4px!important}
  .visar-app .source-chip{font-size:7px!important;padding:4px 6px!important}
  .visar-app .console-actions .button{min-height:31px!important;padding:6px!important;font-size:9px!important}
  .visar-app .module-heading{height:28px!important;min-height:0!important;margin:0!important;align-items:center!important}
  .visar-app .module-heading .eyebrow{display:none!important}
  .visar-app .module-heading h2{font-size:18px!important;line-height:1!important;margin:0!important}
  .visar-app .module-heading p{font-size:9px!important;line-height:1!important;margin:0!important;max-width:55%!important}
  .visar-app .module-grid{height:172px!important;min-height:0!important;grid-template-columns:repeat(auto-fit,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:6px!important}
  .visar-app .module-card{height:172px!important;min-height:0!important;padding:8px!important;gap:4px!important}
  .visar-app .module-card .module-top{margin-bottom:2px!important}
  .visar-app .module-card .module-icon{width:32px!important;height:32px!important;font-size:11px!important}
  .visar-app .module-card h3{font-size:13px!important;line-height:1.02!important;margin:3px 0!important}
  .visar-app .module-card p{font-size:8px!important;line-height:1.18!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .visar-app .module-features{gap:3px!important;margin-top:4px!important}
  .visar-app .module-features span{font-size:7px!important;padding:3px 4px!important}
  .visar-app .module-foot{font-size:8px!important;line-height:1!important;margin-top:3px!important}
  .visar-app>.footer{height:14px!important;min-height:0!important;padding:0!important;font-size:8px!important;line-height:1!important}
  body>.lam-release-footer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:22px!important;min-height:22px!important;padding:2px 12px!important;margin:0!important;z-index:1200!important;font-size:8px!important;line-height:1!important}
  body>.lam-jobs-launcher{position:fixed!important;right:16px!important;bottom:28px!important;margin:0!important;z-index:1250!important}
  body>.lam-lock-overlay{position:fixed!important;inset:76px 0 22px!important;width:100%!important;height:auto!important;max-width:none!important;margin:0!important;transform:none!important;z-index:3000!important;padding:22px!important;text-align:center!important}
}

/* Tablet and phone: natural vertical flow, fluid grids and no body overflow. */
@media (max-width:1179px){
  body>.shell,.visar-app{width:100%!important;max-width:100%!important;margin:0!important;padding-inline:12px!important}
  .lam-command-workspace,.visar-app .command-grid,.visar-app .visar-intro{grid-template-columns:minmax(0,1fr)!important;height:auto!important}
  .module-groups,.module-grid{width:100%!important}
  .hero,.project-console,.visar-intro,.command-hero{width:100%!important;max-width:100%!important}
}
@media (min-width:701px) and (max-width:1179px){
  .module-groups{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:700px){
  body>.shell,.visar-app{padding-inline:8px!important}
  .module-groups,.module-grid,.module-group-grid,.command-hero{grid-template-columns:minmax(0,1fr)!important}
  .topbar,.top-meta,.top-actions,.context{max-width:100%!important}
  .button,.pill{max-width:100%!important}
}


