/* UI49 · Canonical responsive density pass.
   Goal: smaller desktop scale, fluid phone scale, compact product-card chrome.
   Loaded last on purpose so historical visual layers cannot re-enlarge the UI. */

/* Desktop / laptop: denser CRM without browser zoom hacks. */
@media (min-width:761px){
  :root{--b-topbar-h:60px;--b-sidebar-w:218px;--b-sidebar-collapsed-w:68px}
  .beta-topbar{gap:8px!important;padding:6px 12px!important}
  .beta-brand{min-width:178px!important;gap:8px!important}.beta-brand-logo-wrap{width:36px!important;height:36px!important;border-radius:11px!important}.beta-brand-logo{width:28px!important;height:28px!important}.beta-brand-copy strong{font-size:14px!important}.beta-brand-copy small{font-size:9px!important;margin-top:2px!important}
  .beta-context{height:40px!important;min-width:156px!important;padding:5px 10px!important;border-radius:11px!important}.beta-context-label{font-size:8.5px!important}.beta-context strong{font-size:11px!important}
  .beta-search-trigger{height:40px!important;min-width:250px!important;max-width:480px!important;flex-basis:480px!important;padding:0 11px!important;border-radius:11px!important;font-size:11px!important}.beta-search-trigger kbd{font-size:8.5px!important}
  .beta-readonly{font-size:9px!important;padding:5px 8px!important}.beta-icon-button{width:36px!important;height:36px!important;min-height:36px!important;border-radius:10px!important}
  .beta-profile{min-width:140px!important;max-width:210px!important;min-height:36px!important;height:36px!important;padding:0 9px!important;gap:7px!important}.beta-profile>.beta-profile-avatar{width:26px!important;height:26px!important;flex-basis:26px!important}.beta-profile>.beta-profile-copy{max-width:154px!important}.beta-profile-copy small{font-size:8px!important}.beta-profile-copy strong{font-size:10px!important;margin-top:1px!important}.beta-logout{min-width:58px!important;height:36px!important;padding:0 9px!important;font-size:9.5px!important}

  .beta-sidebar{padding:11px 8px 10px!important}.beta-sidebar nav{gap:3px!important}.beta-nav-item{min-height:38px!important;padding:7px 9px!important;gap:8px!important;border-radius:10px!important;font-size:11.5px!important}.beta-nav-icon{width:23px!important;height:23px!important;border-radius:7px!important;font-size:10px!important}.beta-sidebar-foot{padding:8px!important}.beta-sidebar-foot small{font-size:8px!important}.beta-sidebar-foot span{font-size:9px!important}
  .beta-main{padding:18px clamp(16px,2vw,30px) 50px!important}.beta-page-head{gap:12px!important;margin-bottom:14px!important}.beta-eyebrow{font-size:8px!important;margin-bottom:4px!important}.beta-page-head h1{font-size:28px!important;line-height:1.04!important}.beta-page-head p{font-size:11px!important;margin-top:5px!important;line-height:1.4!important}.beta-page-actions{gap:6px!important}
  .beta-btn,.ui-button-primary,.beta-btn-primary{min-height:34px!important;padding:0 11px!important;border-radius:10px!important;font-size:10.5px!important}
  .beta-grid{gap:10px!important}.beta-kpi-grid{margin-bottom:10px!important}.beta-kpi{min-height:96px!important;padding:12px 13px!important}.beta-kpi-label{font-size:9.5px!important}.beta-kpi-icon{width:27px!important;height:27px!important;border-radius:8px!important;font-size:11px!important}.beta-kpi-value{font-size:23px!important;margin-top:9px!important}.beta-kpi-meta{font-size:8.5px!important;padding-top:6px!important}.beta-panel{padding:13px!important}.beta-panel h2{font-size:13.5px!important}.beta-panel p{font-size:9.5px!important}.beta-list-row{padding:8px 0!important}.beta-list-title{font-size:10.5px!important}.beta-list-meta{font-size:8.5px!important}.beta-list-value{font-size:9.5px!important}
  .beta-view-tabs{gap:4px!important;margin-bottom:8px!important}.beta-view-tab{padding:6px 9px!important;font-size:9.5px!important}.beta-toolbar{gap:7px!important;padding:8px!important;margin-bottom:8px!important;border-radius:13px!important}.beta-search{flex-basis:250px!important}.beta-search input,.beta-select{height:34px!important;padding:0 10px!important;border-radius:9px!important;font-size:10.5px!important}.beta-select{min-width:140px!important}.beta-count{font-size:9px!important;padding:4px 7px!important}
  #inventoryResults .beta-table{min-width:1020px!important}.beta-table th,#inventoryResults .beta-table th,.ui-table th{height:32px!important;padding:0 9px!important;font-size:8.75px!important;line-height:1.2!important}.beta-table td,#inventoryResults .beta-table td,.ui-table td{height:39px!important;padding:6px 9px!important;font-size:10.75px!important;line-height:1.28!important}#inventoryResults .beta-item-title,.beta-item-title{font-size:11.25px!important}#inventoryResults .beta-item-sub,.beta-item-sub{font-size:8.5px!important}.beta-status,#inventoryResults .beta-status{padding:4px 6px!important;font-size:9px!important}
}

/* Override the previous large-screen enlargement: wide displays gain workspace, not oversized controls. */
@media (min-width:1600px){
  :root{--b-max:9999px;--b-topbar-h:62px;--b-sidebar-w:224px}
  .beta-main{padding:20px clamp(22px,1.55vw,38px) 56px!important}.beta-topbar{gap:9px!important;padding:7px 14px!important}.beta-brand{min-width:184px!important}.beta-brand-logo-wrap{width:38px!important;height:38px!important}.beta-brand-logo{width:29px!important;height:29px!important}.beta-brand-copy strong{font-size:14.5px!important}.beta-brand-copy small{font-size:9.5px!important}
  .beta-context{height:41px!important;min-width:164px!important;padding:5px 10px!important}.beta-context-label{font-size:8.75px!important}.beta-context strong{font-size:11.25px!important}.beta-search-trigger{height:41px!important;min-width:290px!important;max-width:560px!important;flex-basis:560px!important;font-size:11.25px!important}.beta-readonly{font-size:9.25px!important}.beta-icon-button{width:37px!important;height:37px!important}.beta-profile{min-width:145px!important;max-width:220px!important;min-height:37px!important;height:37px!important}.beta-profile>.beta-profile-avatar{width:27px!important;height:27px!important;flex-basis:27px!important}.beta-profile-copy small{font-size:8.25px!important}.beta-profile-copy strong{font-size:10.25px!important}.beta-logout{min-width:60px!important;font-size:9.75px!important}
  .beta-sidebar{padding:12px 9px 10px!important}.beta-sidebar nav{gap:3px!important}.beta-nav-item{min-height:39px!important;padding:7px 9px!important;gap:8px!important;border-radius:10px!important;font-size:11.75px!important}.beta-nav-icon{width:24px!important;height:24px!important;border-radius:8px!important}.beta-sidebar-foot{padding:8px!important}.beta-sidebar-foot small{font-size:8.25px!important}.beta-sidebar-foot span{font-size:9.25px!important}
  .beta-page-head{gap:13px!important;margin-bottom:15px!important}.beta-eyebrow{font-size:8.25px!important;margin-bottom:4px!important}.beta-page-head h1{font-size:29px!important}.beta-page-head p{font-size:11.25px!important;margin-top:5px!important}.beta-btn,.ui-button-primary,.beta-btn-primary{min-height:35px!important;padding:0 11px!important;font-size:10.75px!important}.beta-grid{gap:11px!important}.beta-kpi{min-height:99px!important;padding:12px 14px!important}.beta-kpi-label{font-size:9.75px!important}.beta-kpi-icon{width:28px!important;height:28px!important}.beta-kpi-value{font-size:24px!important;margin-top:9px!important}.beta-kpi-meta{font-size:8.75px!important}.beta-panel{padding:14px!important}.beta-panel h2{font-size:14px!important}.beta-panel p{font-size:9.75px!important}
  .beta-view-tab{padding:6px 9px!important;font-size:9.75px!important}.beta-toolbar{gap:7px!important;padding:8px!important;margin-bottom:9px!important}.beta-search input,.beta-select{height:35px!important;font-size:10.75px!important}.beta-select{min-width:145px!important}.beta-table th,#inventoryResults .beta-table th,.ui-table th{height:33px!important;font-size:9px!important;padding:0 9px!important}.beta-table td,#inventoryResults .beta-table td,.ui-table td{height:40px!important;font-size:11px!important;padding:6px 9px!important}#inventoryResults .beta-item-title{font-size:11.5px!important}#inventoryResults .beta-item-sub{font-size:8.75px!important}
}
@media (min-width:2400px){
  :root{--b-topbar-h:64px;--b-sidebar-w:230px}.beta-main{padding:22px 34px 58px!important}.beta-page-head h1{font-size:30px!important}.beta-page-head p{font-size:11.5px!important}.beta-table td,#inventoryResults .beta-table td,.ui-table td{font-size:11.25px!important;height:41px!important}
}

/* Mobile/tablet: fluid scale for 320–760px. */
@media (max-width:760px){
  :root{--b-topbar-h:clamp(48px,12.5vw,54px)}
  .beta-app{padding-bottom:clamp(66px,17vw,76px)!important}.beta-topbar{height:var(--b-topbar-h)!important;gap:clamp(4px,1.25vw,7px)!important;padding:clamp(5px,1.6vw,7px) clamp(7px,2.4vw,11px)!important;overflow:hidden!important}
  .beta-brand{min-width:0!important;flex:1 1 auto!important;gap:clamp(6px,1.8vw,9px)!important}.beta-brand-logo-wrap{width:clamp(31px,9vw,36px)!important;height:clamp(31px,9vw,36px)!important;flex:0 0 clamp(31px,9vw,36px)!important;border-radius:clamp(9px,2.8vw,11px)!important}.beta-brand-logo{width:clamp(24px,7vw,28px)!important;height:clamp(24px,7vw,28px)!important}.beta-brand-copy strong{font-size:clamp(12.5px,3.7vw,15px)!important}.beta-brand-copy small{display:none!important}
  .beta-profile{width:clamp(32px,9vw,36px)!important;min-width:clamp(32px,9vw,36px)!important;max-width:clamp(32px,9vw,36px)!important;flex:0 0 clamp(32px,9vw,36px)!important;height:clamp(32px,9vw,36px)!important;min-height:0!important;padding:0!important;justify-content:center!important;gap:0!important}.beta-profile>.beta-profile-avatar{width:clamp(25px,7vw,28px)!important;height:clamp(25px,7vw,28px)!important;flex-basis:clamp(25px,7vw,28px)!important}.beta-profile>.beta-profile-copy{display:none!important}
  .beta-icon-button{width:clamp(32px,9vw,36px)!important;height:clamp(32px,9vw,36px)!important;min-height:0!important;flex:0 0 clamp(32px,9vw,36px)!important;border-radius:10px!important}
  .beta-logout{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:clamp(42px,12vw,50px)!important;height:clamp(32px,9vw,36px)!important;padding:0 clamp(6px,1.8vw,8px)!important;flex:0 0 auto!important;border-radius:10px!important;font-size:clamp(8.5px,2.45vw,9.5px)!important;line-height:1!important;white-space:nowrap!important}
  .beta-topbar-spacer{display:none!important}

  .beta-main{padding:clamp(10px,3vw,14px) clamp(8px,2.8vw,12px) clamp(18px,5vw,24px)!important}.beta-page-head{gap:8px!important;margin-bottom:clamp(10px,3.2vw,13px)!important}.beta-eyebrow{font-size:clamp(7.5px,2.25vw,9px)!important;margin-bottom:3px!important}.beta-page-head h1{font-size:clamp(21px,6.4vw,25px)!important;line-height:1.05!important}.beta-page-head p{font-size:clamp(9.5px,2.85vw,11px)!important;line-height:1.35!important;margin-top:4px!important}.beta-page-actions{gap:5px!important}.beta-btn,.ui-button-primary,.beta-btn-primary{min-height:clamp(32px,9vw,36px)!important;padding:0 clamp(8px,2.6vw,11px)!important;border-radius:10px!important;font-size:clamp(9px,2.6vw,10.5px)!important}
  .beta-kpi-grid{gap:clamp(6px,2vw,8px)!important;margin-bottom:8px!important}.beta-kpi{min-height:clamp(84px,23vw,98px)!important;padding:clamp(9px,2.8vw,12px)!important}.beta-kpi-label{font-size:clamp(8px,2.35vw,9.5px)!important}.beta-kpi-icon{width:clamp(24px,7vw,28px)!important;height:clamp(24px,7vw,28px)!important}.beta-kpi-value{font-size:clamp(19px,5.8vw,22px)!important;margin-top:clamp(7px,2vw,9px)!important}.beta-kpi-meta{font-size:clamp(7.5px,2.1vw,8.5px)!important;padding-top:5px!important}
  .beta-toolbar{gap:6px!important;padding:7px!important;margin-bottom:8px!important;border-radius:12px!important}.beta-search input,.beta-select{height:clamp(33px,9.4vw,37px)!important;font-size:clamp(9.5px,2.8vw,11px)!important;padding:0 9px!important;border-radius:9px!important}.beta-view-tabs{gap:4px!important;margin-bottom:8px!important}.beta-view-tab{padding:6px 9px!important;font-size:clamp(8.5px,2.5vw,9.75px)!important}.beta-mobile-cards{gap:7px!important}.beta-mobile-item{padding:clamp(9px,2.8vw,12px)!important}.beta-mobile-item-top{gap:8px!important}.beta-mobile-item-price{font-size:clamp(10.5px,3vw,12px)!important}.beta-mobile-item-bottom{gap:5px!important;margin-top:8px!important}.beta-mobile-stat{padding:6px!important;border-radius:8px!important}.beta-mobile-stat small{font-size:clamp(6.5px,1.9vw,7.5px)!important}.beta-mobile-stat strong{font-size:clamp(8px,2.4vw,9.5px)!important;margin-top:2px!important}

  .beta-mobile-nav{left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;bottom:max(8px,env(safe-area-inset-bottom))!important;padding:5px!important;border-radius:20px!important}.beta-mobile-dock-inner{min-height:clamp(50px,14vw,56px)!important;gap:2px!important}.beta-mobile-nav-item{gap:3px!important;padding:5px 2px!important;border-radius:15px!important;font-size:clamp(8px,2.3vw,9px)!important}.beta-mobile-nav-icon{height:19px!important}.beta-mobile-nav-label{font-size:clamp(7.5px,2.2vw,8.75px)!important}.beta-mobile-search{flex-basis:clamp(42px,12vw,48px)!important;border-radius:15px!important;gap:3px!important;padding:5px 2px!important;font-size:8px!important}.beta-mobile-search span{font-size:clamp(7.5px,2.2vw,8.5px)!important}

  /* Product card: keep chrome compact so overview remains readable. */
  .inventory-product-backdrop{padding:4px!important;place-items:center!important}.inventory-product-modal{width:calc(100vw - 8px)!important;max-height:calc(100dvh - 8px)!important;border-radius:clamp(15px,4.5vw,19px)!important}
  .inventory-product-head{grid-template-columns:clamp(36px,10vw,42px) minmax(0,1fr) auto clamp(30px,8.5vw,34px)!important;gap:clamp(5px,1.7vw,8px)!important;padding:clamp(7px,2.2vw,9px)!important;align-items:center!important}.inventory-product-photo-mini{width:clamp(36px,10vw,42px)!important;height:clamp(36px,10vw,42px)!important;border-radius:10px!important;font-size:18px!important}.inventory-product-eyebrow{display:none!important}.inventory-product-title-wrap h2{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:clamp(15px,4.45vw,17.5px)!important;line-height:1.08!important}.inventory-product-statusline{margin-top:4px!important;gap:4px!important;flex-wrap:nowrap!important;overflow:hidden!important}.inventory-product-statusline .beta-status{padding:3px 5px!important;font-size:clamp(7.5px,2.2vw,8.5px)!important;white-space:nowrap!important}.inventory-product-statusline>span:not(.beta-status){padding:2px 4px!important;font-size:7.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.inventory-save-state:not([data-state="saving"]):not([data-state="error"]){display:none!important}
  .inventory-product-price{grid-column:3!important;grid-row:1!important;align-self:center!important;min-width:clamp(68px,19vw,82px)!important;max-width:clamp(82px,23vw,98px)!important;padding:0!important;text-align:right!important;display:block!important;background:transparent!important;border:0!important;box-shadow:none!important}.inventory-product-price small{display:none!important}.inventory-product-price strong{font-size:clamp(13px,3.8vw,15.5px)!important;line-height:1!important;white-space:nowrap!important}.inventory-product-price span{display:block!important;margin-top:2px!important;font-size:clamp(7px,2vw,8px)!important;white-space:nowrap!important}.inventory-product-price [data-card-price-header]{margin-top:2px!important;font-size:clamp(6.5px,1.9vw,7.5px)!important;line-height:1.05!important;white-space:nowrap!important}.inventory-product-price [data-card-price-header] b{font-size:inherit!important}.inventory-product-close{grid-column:4!important;grid-row:1!important;width:clamp(30px,8.5vw,34px)!important;height:clamp(30px,8.5vw,34px)!important;border-radius:9px!important;font-size:20px!important}
  .inventory-product-facts{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1px!important;overflow:visible!important}.inventory-product-facts>div{min-width:0!important;min-height:42px!important;padding:5px 6px!important;text-align:center!important}.inventory-product-facts span{margin-bottom:2px!important;font-size:clamp(6.5px,1.85vw,7.5px)!important;letter-spacing:.03em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.inventory-product-facts strong{display:block!important;font-size:clamp(8px,2.35vw,9.5px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.inventory-status-select{height:27px!important;padding:0 18px 0 5px!important;border-radius:8px!important;font-size:clamp(7.5px,2.15vw,8.5px)!important;text-align:center!important}
  .inventory-product-tabs{gap:4px!important;padding:4px 7px!important;justify-content:center!important}.inventory-product-tabs button{min-height:28px!important;padding:0 11px!important;border-radius:9px!important;font-size:clamp(8px,2.35vw,9px)!important}
  .inventory-product-body{padding:clamp(6px,2vw,8px)!important 7px clamp(9px,2.6vw,11px)!important;min-height:0!important}.inventory-overview-top,.inventory-overview-grid,.inventory-overview-grid-main{gap:7px!important}.inventory-card-section{border-radius:11px!important}.inventory-card-section>header{padding:7px 9px!important}.inventory-card-section h3{font-size:clamp(10px,2.9vw,11.5px)!important;text-align:center!important}.inventory-card-section-body{padding:1px 9px!important}.inventory-info-row,.inventory-edit-row{grid-template-columns:minmax(90px,.62fr) minmax(0,1fr)!important;gap:7px!important;min-height:34px!important}.inventory-info-row>span,.inventory-edit-row>span{font-size:clamp(8px,2.35vw,9px)!important}.inventory-info-row>strong,.inventory-edit-row input,.inventory-edit-row textarea,.inventory-appearance-select{font-size:clamp(9.5px,2.75vw,10.5px)!important}.inventory-edit-row textarea{min-height:42px!important}.inventory-photo-stage{height:clamp(150px,45vw,190px)!important}
  .inventory-product-foot{padding:5px 7px max(5px,env(safe-area-inset-bottom))!important;gap:0!important}.inventory-product-foot>div:first-child{display:none!important}.inventory-product-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;align-items:center!important}.inventory-product-foot button{width:100%!important;min-width:0!important;min-height:31px!important;height:31px!important;padding:0 4px!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-size:clamp(8px,2.35vw,9.25px)!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

  /* Sold UI48 has a two-value price block; keep it in the same compact header row. */
  .inventory-product-modal[data-sold-ui48="1"] .inventory-product-head{grid-template-columns:clamp(36px,10vw,42px) minmax(0,1fr) minmax(104px,29vw) clamp(30px,8.5vw,34px)!important;gap:clamp(5px,1.6vw,7px)!important;padding:clamp(7px,2.2vw,9px)!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-photo-mini{width:clamp(36px,10vw,42px)!important;height:clamp(36px,10vw,42px)!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-price-ui48{grid-column:3!important;grid-row:1!important;display:grid!important;grid-template-columns:1fr 1fr!important;min-width:104px!important;max-width:none!important;width:100%!important;border-radius:9px!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-price-ui48>div{padding:5px!important;gap:1px!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-price-ui48 small{display:block!important;font-size:6.5px!important;white-space:nowrap!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-head-sale-ui48 strong{font-size:clamp(11px,3.2vw,13px)!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-head-buy-ui48 strong{font-size:clamp(8.5px,2.55vw,10px)!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-facts.inventory-sold-facts-ui48{grid-template-columns:repeat(4,minmax(0,1fr))!important;padding:0!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-facts.inventory-sold-facts-ui48>div{min-height:42px!important;padding:5px 6px!important;border-top:0!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-facts.inventory-sold-facts-ui48>div:nth-child(3){border-left:1px solid var(--b-line)!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-sold-buyer-fact-ui48 small{display:none!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-tabs{padding:4px 7px!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-body{padding:6px 7px 9px!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-foot{padding:5px 7px max(5px,env(safe-area-inset-bottom))!important}
}

@media (max-width:360px){
  .beta-brand-copy strong{font-size:12.5px!important}.beta-logout{min-width:41px!important;padding:0 5px!important;font-size:8.25px!important}.beta-topbar{gap:4px!important;padding-left:6px!important;padding-right:6px!important}
  .inventory-product-head{grid-template-columns:34px minmax(0,1fr) 67px 29px!important;gap:4px!important;padding:6px!important}.inventory-product-photo-mini{width:34px!important;height:34px!important}.inventory-product-title-wrap h2{font-size:14.5px!important}.inventory-product-price{min-width:67px!important;max-width:67px!important}.inventory-product-close{width:29px!important;height:29px!important}.inventory-product-facts>div{padding-left:4px!important;padding-right:4px!important}.inventory-product-foot button{font-size:7.75px!important;padding:0 2px!important}
  .inventory-product-modal[data-sold-ui48="1"] .inventory-product-head{grid-template-columns:34px minmax(0,1fr) 100px 29px!important;gap:4px!important;padding:6px!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-price-ui48{min-width:100px!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-price-ui48>div{padding:4px!important}.inventory-product-modal[data-sold-ui48="1"] .inventory-product-price-ui48 small{font-size:6px!important}
}
