/* STROYLAB AI v0.98.91: narrow-screen-only adaptation; no desktop modifications. */
@media (max-width:800px) {
  body.sl-app-mode .account-sidebar{position:static!important;inset:auto!important;left:auto!important;top:auto!important;width:auto!important;max-height:none!important;height:auto!important;overflow:visible!important;z-index:auto!important}
  body.sl-app-mode .account-main{grid-column:auto!important;width:auto!important;height:auto!important;max-height:none!important;overflow:visible!important}
  .account-layout, body.sl-app-mode .account-layout {min-width:0!important;grid-template-columns:minmax(0,1fr)!important}
  .account-main, body.sl-app-mode .account-main, #account-content {min-width:0!important;max-width:100%;box-sizing:border-box}
  .account-sidebar, body.sl-app-mode .account-sidebar {display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;grid-template-columns:none!important;align-items:stretch!important;gap:6px!important;min-width:0!important}
  .account-sidebar button, body.sl-app-mode .account-sidebar button {display:flex!important;width:100%!important;min-width:0!important;flex:0 0 auto!important;align-items:center!important;justify-content:flex-start!important;white-space:normal!important;text-align:left!important;box-sizing:border-box;gap:12px!important;min-height:48px!important;padding:12px 13px!important}
  .account-sidebar button[hidden],body.sl-app-mode .account-sidebar button[hidden]{display:none!important}
  .account-sidebar button .sl-nav-icon, .account-sidebar button .sl-nav-media-icon,.account-sidebar button .sl-static-nav-svg{flex:0 0 21px!important;width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;object-fit:contain}
  /* Scroll inside comparison, never across page. */
  .sl-comparison{max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important}
  .sl-comparison .sl-compare-scroll,.sl-comparison .sl-compare-wrap,.sl-comparison .sl-comparison-scroll,.sl-comparison .sl-matrix-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  .sl-compare-table{min-width:850px!important;max-width:none!important}
  /* Locked estimate = same as public estimate, with local x scrolling. */
  .sl-estimate-showcase,.sl-estimate-showcase .sl-estimate-demo,.sl-access-card082,.sl-access-card082 .sl-estimate-locked083{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .sl-estimate-showcase .sl-estimate-demo,.sl-access-card082 .sl-estimate-locked083{overflow-x:auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding:12px!important}
  .sl-estimate-showcase .sl-estimate-demo table,.sl-access-card082 .sl-estimate-locked083 table {width:680px!important;min-width:680px!important;table-layout:fixed!important}
  .sl-estimate-showcase .sl-estimate-demo table th:first-child,.sl-estimate-showcase .sl-estimate-demo table td:first-child,.sl-access-card082 .sl-estimate-locked083 table th:first-child,.sl-access-card082 .sl-estimate-locked083 table td:first-child{width:148px!important;min-width:148px!important;max-width:148px!important;white-space:normal!important;overflow-wrap:break-word!important}
  .sl-estimate-showcase .sl-estimate-demo table th,.sl-estimate-showcase .sl-estimate-demo table td,.sl-access-card082 .sl-estimate-locked083 table th,.sl-access-card082 .sl-estimate-locked083 table td{padding:10px 6px!important}
  .sl-estimate-showcase .sl-demo-estimate-track,.sl-access-card082 .sl-estimate-locked083 .sl-demo-estimate-track{animation:none!important;transform:none!important}
  .sl-example-card084,.sl-example-card084 .sl-demo-paper084,.sl-example-card084 .sl-demo-fade084{max-width:100%!important;min-width:0!important;box-sizing:border-box}
  .sl-example-card084 .sl-demo-table084{width:100%!important;table-layout:fixed!important;font-size:11px!important}
  .sl-example-card084 .sl-demo-table084 th:first-child,.sl-example-card084 .sl-demo-table084 td:first-child{width:44%!important;overflow-wrap:anywhere!important}
  .sl-example-card084 .sl-demo-table084 th,.sl-example-card084 .sl-demo-table084 td{padding:7px 3px!important;font-size:10px!important}
}
@media (max-width:700px){
  .sl-editorial-doc-demo091{display:block!important;max-width:100%;margin-top:15px}
  .sl-editorial-doc-demo091 .sl-document-viewport091{width:100%;max-width:100%;overflow:hidden;position:relative;height:240px;border-radius:14px;background:#fff;border:1px solid #d9e9de}
  .sl-editorial-doc-demo091 .sl-document-viewport091:after{content:'';position:absolute;left:0;right:0;bottom:0;height:100px;pointer-events:none;background:linear-gradient(transparent,rgba(255,255,255,.96))}
  .sl-editorial-doc-demo091 table{width:100%;border-collapse:collapse;font-size:10px;table-layout:fixed}
  .sl-editorial-doc-demo091 th,.sl-editorial-doc-demo091 td{border-bottom:1px solid #e8efe8;padding:7px 3px;overflow-wrap:anywhere}
  .sl-editorial-doc-demo091 th:first-child,.sl-editorial-doc-demo091 td:first-child{width:43%}
  .sl-editorial-doc-demo091 h4{margin:12px 10px 8px;font-size:15px}
}

/* v0.98.91.1: approved compact fixed/sticky name column, independent tariff scroll. */
@media (max-width:800px){
 .sl-comparison{padding:10px!important;width:100%!important}
 .sl-compare-scroll{width:100%!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain!important}
 .sl-compare-table{width:max-content!important;min-width:778px!important;table-layout:fixed!important}
 .sl-compare-table thead th:first-child,.sl-compare-table tbody th{width:128px!important;min-width:128px!important;max-width:128px!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:10px 7px!important;left:0!important}
 .sl-compare-table tbody td,.sl-compare-table thead th:not(:first-child){min-width:130px!important;width:130px!important;box-sizing:border-box!important;padding:10px 5px!important}
 .sl-compare-table .sl-matrix-group th{position:static!important}
 .account-sidebar button,body.sl-app-mode .account-sidebar button{font-size:16px!important;line-height:1.35!important;font-weight:700!important;letter-spacing:0!important}
}
