/* SLPT HEADER17 · completion of Calendar-derived Design 4 heading standard.
   Strictly scopes Performance and Owner Staff/Settings: no functional selectors,
   no global body styles, no width/margin changes to content cards. */

/* Same top/left workspace origin as Calendar, Nutrition and Academy. */
.workspace > #performancePage,
.workspace > #ownerAccessPage{
 box-sizing:border-box!important;
 width:100%!important;max-width:1500px!important;min-width:0!important;
 margin-left:auto!important;margin-right:auto!important;
 padding:22px 0 32px!important;
}
/* The Performance legacy theme uses multiple title overrides; this last,
   high-specificity block reuses Calendar's unboxed header and type hierarchy. */
#performancePage .perf-shell{width:100%!important;max-width:100%!important}
#performancePage .perf-title{
 display:flex!important;align-items:start!important;
 min-height:0!important;min-width:0!important;
 padding:0!important;margin:0 0 18px!important;
 border:0!important;border-radius:0!important;
 background:none!important;box-shadow:none!important;
 overflow:visible!important;backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
}
#performancePage .perf-title:before{display:none!important}
#performancePage .perf-title-copy{max-width:100%!important;padding:0!important;margin:0!important}
#performancePage .perf-title small,
#ownerAccessPage .coa-head>span{
 display:block!important;margin:0 0 4px!important;
 color:#ff9b40!important;
 font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;
 font-size:10px!important;font-weight:850!important;
 letter-spacing:.18em!important;line-height:1.35!important;
 text-transform:uppercase!important;
}
#performancePage .perf-title h1,
#ownerAccessPage .coa-head h1{
 margin:0 0 4px!important;padding:0!important;
 color:#fff!important;
 font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;
 font-size:clamp(25px,3vw,35px)!important;
 font-weight:830!important;line-height:1.15!important;
 letter-spacing:-.04em!important;text-shadow:none!important;
}
#performancePage .perf-title p,
#ownerAccessPage .coa-head p{
 margin:0!important;padding:0!important;
 max-width:800px!important;opacity:1!important;
 color:#aeb8bf!important;
 font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;
 font-size:12px!important;font-weight:400!important;
 line-height:1.5!important;letter-spacing:normal!important;
}
/* Owner Access has an additional 16-38px inset and 8px header offset in
   CANONACCESS6; remove them at the workspace/header level, not from cards. */
#ownerAccessPage .coa-head{
 box-sizing:border-box!important;
 width:100%!important;max-width:100%!important;
 padding:0!important;margin:0 0 18px!important;
 border:0!important;background:none!important;box-shadow:none!important;
}
@media(max-width:760px){
 .workspace > #performancePage,
 .workspace > #ownerAccessPage{padding:12px 0 28px!important}
 #performancePage .perf-title,
 #ownerAccessPage .coa-head{margin-bottom:13px!important}
 #performancePage .perf-title h1,
 #ownerAccessPage .coa-head h1{font-size:27px!important}
}

/* HEADER17 BODY-PORTAL MODALS: existing Nutrition Log Meals dialogs only. */
.nut2-log-dialog{width:min(430px,calc(100vw - 28px));padding:0;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:#0b1114;color:#edf3f5;box-shadow:0 26px 80px rgba(0,0,0,.48)}
.nut2-log-dialog::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(5.25px)}
.nut2-log-context{display:grid;gap:12px;padding:16px}
.nut2-log-context header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.nut2-log-context header small{color:#ff9140;font-weight:800}
.nut2-log-context h3{margin:3px 0 0}
.nut2-log-context header button{border:0;background:transparent;color:#cdd7da;font-size:24px}
.nut2-log-context label{display:grid;gap:5px;color:#aebbc0;font-size:12px}
.nut2-log-context input,.nut2-log-context select{min-height:40px;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:#11191d;color:#eef3f4;padding:8px}
.nut2-log-context footer{display:flex;justify-content:flex-end;gap:8px}
.nut2-log-context footer button{min-height:38px;padding:8px 14px;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:#151d21;color:#eef3f4}
.nut2-log-context footer .primary{border-color:#ff7c19;background:#ff760f;color:#fff}
html[data-route="nutrition"] .nut2-log-context{width:min(520px,calc(100vw - 28px));border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(10,16,19,.97);color:#eef4f6;box-shadow:0 24px 70px rgba(0,0,0,.48);padding:18px}
html[data-route="nutrition"] .nut2-log-context::backdrop{background:rgba(0,0,0,.56);backdrop-filter:blur(3.15px)}
html[data-route="nutrition"] .nut2-log-context form,html[data-route="nutrition"] form.nut2-log-context{display:grid;gap:12px}
html[data-route="nutrition"] .nut2-log-context header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.nut2-log-context header h3{margin:3px 0 0}
.nut2-log-context header small{color:#ff984a;font-weight:800}
.nut2-log-context header button{border:0;background:transparent;color:#c8d2d6;font-size:22px}
html[data-route="nutrition"] .nut2-log-context label{display:grid;gap:6px;color:#b5c0c5;font-size:11px;font-weight:750}
.nut2-log-context select,.nut2-log-context input{min-height:42px;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:#0a1115;color:#eef4f6;padding:8px 10px}
.nut2-log-context footer{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.nut2-log-context footer button{min-height:39px;padding:8px 14px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:rgba(255,255,255,.04);color:#e9eff1}
.nut2-log-context footer button.primary{border-color:rgba(255,122,0,.45);background:#ff7900;color:#111;font-weight:850}
.delivery1-food-dialog{width:min(520px,calc(100vw - 28px));max-width:calc(100vw - 28px);border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(10,16,19,.98);color:#eef4f6;box-shadow:0 24px 70px rgba(0,0,0,.48);padding:18px}
.delivery1-food-dialog::backdrop{background:rgba(0,0,0,.56);backdrop-filter:blur(3.15px)}
.delivery1-food-dialog form{display:grid;gap:12px;min-width:0}
.delivery1-food-dialog header{display:flex;justify-content:space-between;gap:12px}
.delivery1-food-dialog header small{color:#ff984a;font-weight:800}
.delivery1-food-dialog header h3{margin:3px 0 0}
.delivery1-food-dialog header button{border:0;background:transparent;color:#c8d2d6;font-size:22px}
.delivery1-food-dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.delivery1-food-dialog label{display:grid;gap:6px;min-width:0;color:#b5c0c5;font-size:11px;font-weight:750}
.delivery1-food-dialog input,.delivery1-food-dialog select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:42px;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:#0a1115;color:#eef4f6;padding:8px 10px}
.delivery1-food-dialog footer{display:flex;justify-content:flex-end;gap:8px}
.delivery1-food-dialog footer button{min-height:38px;padding:8px 13px;border:1px solid rgba(255,255,255,.10);border-radius:9px;background:rgba(255,255,255,.04);color:#e9eff1}
.delivery1-food-dialog-grid{grid-template-columns:1fr}

/* Preserve the Nutrition log context's dark modal surface even when the
   canonical main route does not set html[data-route="nutrition"]. */
dialog.nut2-log-context{
 width:min(520px,calc(100vw - 28px));
 max-width:calc(100vw - 28px);
 max-height:calc(100dvh - 28px);
 overflow:auto;
 border:1px solid rgba(255,255,255,.11);
 border-radius:16px;
 background:rgba(10,16,19,.97);
 color:#eef4f6;
 box-shadow:0 24px 70px rgba(0,0,0,.48);
}
dialog.nut2-log-context::backdrop{
 background:rgba(0,0,0,.56);
 backdrop-filter:blur(3px);
}
