/* The desktop renderer is retained. Mobile sections contain the same forms once. */
.ni395-mobile-only{display:none!important}
@media (max-width:1100px), (min-width:1101px) and (max-width:1400px) and (pointer:coarse){
 html body.tke-op-page .ni395-mobile-only{display:block!important}
 .ni395-project-app{--ni395-project-inset:0px}
 html body.tke-op-page .tke-v201-project-table-card{overflow-x:clip!important;min-width:0!important}
 .tke-v201-project-table-card>.tke-table-wrap,.tke-v201-project-table-card>.tke-live-search-empty{display:none!important}
 .ni395-project-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,38%) 12px!important;align-items:center;gap:10px;padding:15px 12px;min-height:70px;border-bottom:1px solid #e9e4f2;text-decoration:none!important;background:#fff}
 .ni395-project-row[hidden]{display:none!important}
 .ni395-project-row:active{background:#f0e8fb}
 .ni395-project-identity{display:flex;flex-direction:column;gap:4px;min-width:0}
 .ni395-project-identity strong{font-size:15px!important}
 .ni395-project-identity>span{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .ni395-project-status{font-size:10px!important;font-weight:700;padding:5px 7px;border-radius:7px;background:#eee7f8;overflow-wrap:anywhere;text-align:center;line-height:1.3}
 .ni395-status-action{background:#fff1d6}.ni395-status-project{background:#e1f3e9}
 .ni395-mobile-empty{padding:18px}.ni395-mobile-empty[hidden]{display:none!important}
 html body.tke-op-page .tke-v201-filterbar{display:flex!important;flex-wrap:wrap!important;padding:10px!important;gap:10px!important}
 .tke-v201-filterbar .tke-v204-overview-filters{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;gap:10px!important}
 .tke-v201-filterbar label{min-width:0!important;flex:1 1 130px!important}
 .tke-v201-filterbar select,.tke-v201-filterbar input{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 .tke-v201-filterbar .tke-v201-search{flex-basis:100%!important}
 html body.tke-op-page .ni395-project-app>.tke-main{display:flex!important;flex-direction:column!important;gap:12px!important}
 .ni395-project-app>.tke-main>*{order:3;flex-shrink:0;min-width:0;max-width:100%;box-sizing:border-box}
 html body.tke-op-page .ni395-mobile-header{order:0!important;margin:0 -12px!important;max-width:none!important;padding:17px 16px 14px!important;min-height:112px!important;background:#120b2c url('images/tke-v309-hero-fade.jpg') center/cover!important;border-bottom:3px solid #8c21da}
 .ni395-project-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
 .ni395-project-title h1{font-size:23px!important;line-height:1.15!important;margin:3px 0 0!important;overflow-wrap:anywhere}
 .ni395-eyebrow{font-size:9px!important;letter-spacing:.13em}
 .ni395-header-status{font-size:10px!important;padding:5px 8px;border:1px solid #ffffff60;border-radius:7px;white-space:nowrap}
 .ni395-nickname{font-size:14px!important;font-weight:700;margin:7px 0 0!important}
 .ni395-project-address{font-size:11px!important;line-height:1.4;margin:6px 0 0!important;overflow-wrap:anywhere}
 html body.tke-op-page .ni395-mobile-tabs{order:1!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important;padding:4px!important;border:1px solid #e4dbf0;border-radius:10px;background:#eee9f7;margin:0!important}
 .ni395-mobile-tabs>a{min-width:0;text-align:center;padding:11px 2px;text-decoration:none!important;font-size:10px!important;font-weight:750!important;line-height:1.2;display:flex;align-items:center;justify-content:center;border-radius:7px;overflow-wrap:anywhere}
 .ni395-mobile-tabs>a[aria-current=page]{background:#7416b5;box-shadow:0 2px 7px #3b126430}
 html body.tke-op-page .ni395-project-app .tke-v203-project-header{display:contents!important}
 .ni395-project-app .tke-v203-project-header>div:first-child{display:none!important}
 .ni395-project-app .tke-v203-header-actions{display:none!important;order:3!important}
 html body.tke-op-page .ni395-project-app[data-ni395-section=more] .tke-v203-header-actions{display:flex!important;flex-direction:column;align-items:stretch!important;gap:12px!important;width:100%!important}
 html body.tke-op-page .tke-app.tke-app-root.ni395-project-app .tke-v203-tabs{display:none!important}
 html body.tke-op-page .ni395-project-app [data-ni395-section]{display:none!important}
 html body.tke-op-page .ni395-project-app[data-ni395-section=overview] [data-ni395-section=overview],
 html body.tke-op-page .ni395-project-app[data-ni395-section=unit] [data-ni395-section=unit],
 html body.tke-op-page .ni395-project-app[data-ni395-section=timeline] [data-ni395-section=timeline],
 html body.tke-op-page .ni395-project-app[data-ni395-section=documents] [data-ni395-section=documents],
 html body.tke-op-page .ni395-project-app[data-ni395-section=more] [data-ni395-section=more]{display:block!important}
 .ni395-facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e9e3f1;border:1px solid #e9e3f1;border-radius:12px;overflow:hidden}
 .ni395-facts>div{display:flex;flex-direction:column;gap:5px;padding:13px;background:#fff;min-width:0}
 .ni395-facts>div:first-child{grid-column:1/-1}
 .ni395-facts span{font-size:10px!important;font-weight:700!important}
 .ni395-facts strong{font-size:13px!important;line-height:1.4;overflow-wrap:anywhere}
 .ni395-next-action{display:block;padding:18px;margin-top:13px;border-radius:12px;background:linear-gradient(110deg,#301052,#7319af 70%,#9f2cbd);text-decoration:none!important;box-shadow:0 4px 12px #431a6220}
 .ni395-next-action p{margin:8px 0 0!important;font-size:13px!important;line-height:1.4}
 .ni395-document-nav{padding:10px;background:#fff;border:1px solid #e7dfef;border-radius:10px}
 .ni395-document-nav a{display:inline-block;padding:10px;font-size:12px!important;text-decoration:none!important;border-radius:7px}
 .ni395-document-nav a[aria-current]{background:#efe5fa}
 .ni395-mobile-extra-actions{padding:12px;border:1px solid #e7dfef;border-radius:10px;background:#fff}
 .ni395-mobile-extra-actions button{min-height:44px;width:100%;margin-bottom:8px}
 .ni395-project-app .tke-v203-installation-card{padding:10px!important}
 .ni395-project-app .tke-v203-date-grid,.ni395-project-app .tke-v203-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ni395-project-app .tke-v203-section-head{flex-wrap:wrap}
 .ni395-project-app .tke-v203-summary-card{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){html body.tke-op-page .ni395-mobile-header{margin-left:-9px!important;margin-right:-9px!important}}
/* Respect the existing important typography layer when painting white glyphs. */
@layer tke-page-typography{
 @media (max-width:1100px), (min-width:1101px) and (max-width:1400px) and (pointer:coarse){
  html body.tke-op-page .ni395-mobile-header :is(h1,p,span),html body.tke-op-page .ni395-mobile-tabs>a[aria-current],html body.tke-op-page .ni395-next-action,html body.tke-op-page .ni395-next-action :is(strong,p,span,small){color:#fff!important;-webkit-text-fill-color:#fff!important}
 }
}

/* v3.0.96 uses the existing picker order; a chosen later product remains visible. */
.ni396-products-toggle{display:none!important}
@media(max-width:1100px),(min-width:1101px) and (max-width:1400px) and (pointer:coarse){
 .ni396-products-toggle{display:inline-flex!important;margin:12px 0!important}
 #tke-new-project-form:not(.ni396-all-products) [data-tke-v231-product-card]:nth-child(n+4):not([aria-pressed=true]){display:none!important}
 .ni395-project-app .ni395-tasks[data-ni395-section=more]{margin-top:0}
 [data-tke-v231-details] h3{scroll-margin-top:20px}
}
