/* Page-specific constraints load after local page styles. */
.page-index #kpiRow{min-height:100px}
.page-index #listFresh,.page-index #listBack{min-height:96px}
.page-index #fnBox{min-height:220px;overflow-x:auto;max-width:100%}
.page-index #supBox,.page-index #alertBox{min-height:100px}
.page-index #agentsList,.page-index #feed{min-height:240px}
.page-index #kb{min-height:220px;grid-template-columns:repeat(4,minmax(0,1fr))}
.page-leads #periodBar{min-height:54px}
.page-leads #funnelBar{min-height:80px}
.page-leads #funnelBar .fnStep{min-height:70px}
.page-leads #tabs{min-height:58px}
.page-leads #list{min-height:320px}
.page-leads #bookDlg .bk,.page-leads #ansDlg .an,.page-leads #rsDlg .rs{
  max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain
}
.page-leads #bookDlg,.page-leads #ansDlg,.page-leads #rsDlg{overflow-y:auto;overscroll-behavior:contain}
.page-leads #chatHead,.page-leads #composer{flex-shrink:0}
.page-leads #chat{min-height:0}
.page-clients #clRows{min-height:320px}
.page-clients #cpAbout,.page-clients #brandBox{min-height:120px}
.page-clients .frm,.page-clients .ctxGrid,.page-clients .pubWrap{min-width:0}
.page-clients .frm .fld,.page-clients .ctxGrid>*,.page-clients .pubWrap>*{min-width:0}
.page-clients .cpHead h2,.page-clients .clRow .nm{overflow-wrap:anywhere}
.page-reminders #list{min-height:320px}
.page-reminders #board{min-height:780px}
.page-reminders #evSheet,.page-reminders #addSheet{max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;padding-bottom:calc(22px + env(safe-area-inset-bottom))}
.page-reminders .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:899px){
  .page-index #kpiRow{grid-template-columns:repeat(2,minmax(0,1fr));min-height:320px}
  .page-index #kb{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible}
  .page-index .cRow{flex-wrap:wrap;overflow-wrap:anywhere}
  .page-index .cRow .acts{width:100%;justify-content:flex-end}
  .page-index .cRow .acts a,.page-index .cRow .acts button,.page-index .tk .btns .btn{min-height:44px;min-width:44px}
  .page-leads #app,.page-leads #listPane,.page-leads #infoPane{min-height:calc(100svh - var(--bottombar))}
  .page-leads .row .nm{min-width:0;flex-wrap:wrap}
  .page-leads #chatHead{flex-wrap:wrap;gap:4px}
  .page-leads #chatHead .who{flex-basis:calc(100% - 96px)}
  .page-leads .msg{max-width:90%;overflow-wrap:anywhere}
  .page-leads #stageSeg{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-leads #stageSeg button,.page-leads #tabs button,.page-leads #periodBar button{min-height:44px}
  .page-clients .toolbar .searchWrap{flex-basis:100%;min-width:0}
  .page-clients .frm{grid-template-columns:minmax(0,1fr)}
  .page-clients .tblWrap{width:100%;overflow-x:auto}
  .page-clients .mTile .del{min-width:44px;min-height:44px}
  .page-reminders .counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .page-reminders .cnt{min-width:0;padding:11px 8px;min-height:75px}
  .page-reminders .rem{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;overflow-wrap:anywhere}
  .page-reminders .rem .acts{justify-content:flex-end;width:100%}
  .page-reminders .rem .acts a,.page-reminders .rem .acts button,.page-reminders .bnav button,
  .page-reminders #addSheet .x button,.page-reminders #evSheet .x button{min-height:44px;min-width:44px}
  .page-reminders #addOpen{margin-inline-start:0;min-height:44px}
  .page-reminders .cal .hd,.page-reminders .cal .ad,.page-reminders .cal .bd2{grid-template-columns:44px repeat(var(--nd),minmax(0,1fr))}
}
