/* SiteTie 300 — canonical light project renderer cleanup plus stable mobile project editor. */
body.st-authenticated #hsiProjects{background:transparent!important;color:#111a35!important;overflow:visible!important}
body.st-authenticated #hsiProjects>.st63-shell{width:100%!important;max-width:760px!important;margin:0 auto!important;padding:0!important;background:transparent!important;color:#111a35!important}
body.st-authenticated #hsiProjects .st63-head{display:grid!important;gap:12px!important;margin:0 0 14px!important}
body.st-authenticated #hsiProjects .st63-head h2{margin:0!important;color:#111a35!important;font-size:31px!important;line-height:1.05!important;background:none!important;-webkit-text-fill-color:initial!important}
body.st-authenticated #hsiProjects .st63-top-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.st-authenticated #hsiProjects .st63-top-actions button{min-width:0!important;min-height:52px!important;border-radius:17px!important;font-weight:850!important}
body.st-authenticated #hsiProjects .st63-add{background:linear-gradient(135deg,#653bff,#2d9cf4)!important;color:#fff!important;border:0!important}
body.st-authenticated #hsiProjects .st63-contractors{background:#fff!important;color:#111a35!important;border:1px solid #dbe2ed!important}
body.st-authenticated #hsiProjects .st63-filters,
body.st-authenticated #hsiProjects .st63-search{background:#fff!important;color:#111a35!important;border:1px solid #dbe2ed!important;box-shadow:0 7px 20px rgba(28,40,75,.05)!important}
body.st-authenticated #hsiProjects .st63-filters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;padding:8px!important;border-radius:18px!important;margin:0 0 14px!important}
body.st-authenticated #hsiProjects .st63-filters button{min-width:0!important;min-height:48px!important;border-radius:13px!important;background:#f5f7fb!important;color:#667089!important;border:1px solid transparent!important}
body.st-authenticated #hsiProjects .st63-filters button.active{background:#efeaff!important;color:#5a3be8!important;border-color:#cfc5ff!important}
body.st-authenticated #hsiProjects .st63-search{padding:15px!important;border-radius:20px!important;margin:0 0 14px!important}
body.st-authenticated #hsiProjects .st63-search-row{display:grid!important;grid-template-columns:minmax(0,1fr) 58px!important;gap:8px!important}
body.st-authenticated #hsiProjects .st63-search input{min-width:0!important;height:54px!important;border-radius:15px!important;background:#fff!important;color:#111a35!important;border:1px solid #ccd5e4!important}
body.st-authenticated #hsiProjects .st63-search button{width:58px!important;height:54px!important;border-radius:15px!important;background:#f4f6fb!important;color:#111a35!important;border:1px solid #dbe2ed!important}
body.st-authenticated #hsiProjects .st63-list{display:grid!important;gap:14px!important}
body.st-authenticated #hsiProjects .st63-card{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:14px!important;row-gap:12px!important;position:relative!important;width:100%!important;min-width:0!important;margin:0!important;padding:14px!important;border-radius:20px!important;background:#fff!important;background-image:none!important;color:#111a35!important;border:1px solid #dbe2ed!important;box-shadow:0 8px 24px rgba(28,40,75,.06)!important;overflow:hidden!important;filter:none!important;-webkit-filter:none!important}
body.st-authenticated #hsiProjects .st63-card:before,
body.st-authenticated #hsiProjects .st63-card:after{display:none!important;content:none!important;background:none!important}
body.st-authenticated #hsiProjects .st63-photo{grid-column:1!important;grid-row:1!important;width:88px!important;height:88px!important;border-radius:16px!important;overflow:hidden!important;background:#eef2f8!important}
body.st-authenticated #hsiProjects .st63-photo img{width:100%!important;height:100%!important;object-fit:cover!important}
body.st-authenticated #hsiProjects .st63-info{grid-column:2!important;grid-row:1!important;min-width:0!important;padding:0!important}
body.st-authenticated #hsiProjects .st63-name{margin:1px 0 6px!important;color:#111a35!important;font-size:18px!important;line-height:1.15!important;font-weight:900!important}
body.st-authenticated #hsiProjects .st63-city,
body.st-authenticated #hsiProjects .st63-meta,
body.st-authenticated #hsiProjects .st63-progress-row{color:#6f7a91!important;font-size:13px!important}
body.st-authenticated #hsiProjects .st63-progress{height:5px!important;margin:9px 0 7px!important;background:#edf0f5!important;border-radius:999px!important;overflow:hidden!important}
body.st-authenticated #hsiProjects .st63-progress span{display:block!important;height:100%!important;background:linear-gradient(90deg,#653bff,#2d9cf4)!important}
body.st-authenticated #hsiProjects .st63-dots{display:none!important}
body.st-authenticated #hsiProjects .st63-actions{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body.st-authenticated #hsiProjects .st63-actions.two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.st-authenticated #hsiProjects .st63-actions button{width:100%!important;min-width:0!important;min-height:46px!important;padding:0 8px!important;border-radius:14px!important;background:#f5f6ff!important;color:#5b3de9!important;border:1px solid #ddd7ff!important;font-size:12px!important;font-weight:850!important;white-space:normal!important}
body.st-authenticated #hsiProjects .st63-actions .deactivate{grid-column:1/-1!important;background:#fff2f3!important;color:#b42336!important;border-color:#ffd6db!important}
body.st-authenticated #hsiProjects .st63-actions .activate{grid-column:1/-1!important;background:#edf9f1!important;color:#17663d!important;border-color:#ccebd7!important}
body.st-authenticated #hsiProjects .st63-offline{margin:0 0 14px!important;padding:11px 13px!important;border-radius:14px!important;background:#fff8e8!important;color:#72540d!important;border:1px solid #efd28b!important}

/* Project editor RC cleanup: do not allow the close control to scroll behind the app chrome. */
body.st-modal-open #hsiDemoNav{display:none!important}
#stProjectEditor195{box-sizing:border-box!important;padding:calc(env(safe-area-inset-top,0px) + 12px) 12px calc(env(safe-area-inset-bottom,0px) + 12px)!important;align-items:flex-start!important;overflow:hidden!important}
#stProjectEditor195 .st195-sheet{box-sizing:border-box!important;display:block!important;width:min(760px,100%)!important;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px)!important;margin:0 auto!important;padding:0 18px 18px!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
#stProjectEditor195 .st195-head{position:sticky!important;top:0!important;z-index:6!important;margin:0 -18px 14px!important;padding:16px 18px 12px!important;background:#fff!important;border-bottom:1px solid #edf0f5!important}
#stProjectEditor195 .st195-close{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 48px!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border:1px solid #dce3ef!important;border-radius:14px!important;background:#f6f8fc!important;color:#111a35!important;font-size:28px!important;line-height:1!important;position:relative!important;z-index:7!important;opacity:1!important;visibility:visible!important}
#stProjectEditor195 .st195-save{margin-bottom:calc(env(safe-area-inset-bottom,0px) + 4px)!important}

@media(max-width:430px){
 body.st-authenticated #hsiProjects>.st63-shell{padding:0!important}
 body.st-authenticated #hsiProjects .st63-card{grid-template-columns:82px minmax(0,1fr)!important;padding:13px!important;column-gap:12px!important}
 body.st-authenticated #hsiProjects .st63-photo{width:82px!important;height:82px!important}
 body.st-authenticated #hsiProjects .st63-actions{gap:7px!important}
 body.st-authenticated #hsiProjects .st63-actions button{font-size:11.5px!important}
 #stProjectEditor195{padding-left:8px!important;padding-right:8px!important}
 #stProjectEditor195 .st195-sheet{border-radius:22px!important;padding-left:14px!important;padding-right:14px!important}
 #stProjectEditor195 .st195-head{margin-left:-14px!important;margin-right:-14px!important;padding-left:14px!important;padding-right:14px!important}
}
